:root {
    --primary: #6200ff;
    --primary-hover: #e91e47;
    --primary-light: rgba(252, 38, 81, 0.1);
    --primary-lighter: rgba(252, 38, 81, 0.05);
    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(252, 38, 81, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --gradient-primary: linear-gradient(135deg, #6200ff 0%, #e91e47 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-surface: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.dark-mode {
    --primary: #6200ff;
    --primary-hover: #008cff;
    --primary-light: rgba(252, 38, 81, 0.15);
    --primary-lighter: rgba(252, 38, 81, 0.08);
    --accent: #a855f7;
    --accent-light: rgba(168, 85, 247, 0.15);
    --success: #34d399;
    --warning: #fbbf24;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --surface: #1e293b;
    --surface-hover: #334155;
    --border: #334155;
    --border-light: #475569;
    --glass: rgba(30, 41, 59, 0.8);
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7), 0 8px 10px -6px rgb(0 0 0 / 0.7);
    --shadow-glow: 0 0 20px rgba(252, 38, 81, 0.4);
    --gradient-primary: linear-gradient(135deg, #6200ff 0%, #ff0000 100%);
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    --gradient-surface: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  max-height: 500px; /* give it a starting height to animate from */
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s ease;
}


header {
    background: var(--gradient-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

<style>
  /* ... your other styles ... */

  /* === Info Section Styles === */
  .info-section {
    background: var(--card-bg);
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 800px;
    padding: 1.5rem;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .section-header {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .section-text {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
  }
</style>

.search-container {
    display: flex;
    flex: 1;
    max-width: 500px;
    gap: 0.75rem;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0;

  min-height: 85vh; /* Takes up full screen height */
  padding: 2rem;

  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1.2s ease-out forwards;
}

/* Add spacing before game list */
#featuredZonesWrapper {
  margin-top: 3rem; /* adjust this number to taste */
}

#featuredZonesWrapper.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 1rem; /* keeps a little space so layout doesn't jump */
}


.zone-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* Zone Card Container */
.zone-card {
  background: rgba(255, 255, 255, 0.05); /* subtle glass background */
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Game Image */
.zone-card img {
  width: 100%;
  height: auto; /* no squishing */
  object-fit: cover;
  display: block;
}

.zone-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.zone-card-title {
  padding: 0.75rem;
  font-weight: 600;
  color: white;
}


body {
  margin: 0;
  padding: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Frosted glass look */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Smooth transition */
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}

.site-header::after {
  /* Gradient fade to blend with page */
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}


.site-header.scrolled {
  background: rgba(0, 0, 0, 0.6);
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-right input,
.header-right select {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s ease;
}

.header-right input:focus,
.header-right select:hover {
  background: rgba(255,255,255,0.2);
}

#settings {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

#settings:hover {
  transform: rotate(20deg);
}



.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.search-container {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.search-container input,
.search-container select {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  outline: none;
}

.search-container input::placeholder {
  color: rgba(255,255,255,0.6);
}

.control-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Cards start invisible and slightly shifted */
.zone-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zone-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.zone-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

html {
  scroll-behavior: smooth;
}


.control-buttons svg {
  width: 28px;
  height: 28px;
  transition: transform 0.6s linear;
  transform-origin: center;
}

.control-buttons button:hover svg {
  transform: rotate(360deg);
}


.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}



@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#searchBar {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

#searchBar:focus {
    background: var(--text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), var(--shadow);
    transform: translateY(-1px);
    color: var(--glass);
}

#searchBar::placeholder {
    color: var(--text-muted);
}

#sortOptions {
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 130px;
    box-shadow: var(--shadow-sm);
}

#sortOptions:hover {
    background: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    color: var(--glass);
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
}

#settings {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

#settings:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#zoneCount {
    margin: 0 0 1.5rem;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#zoneCount::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

#container,
#featuredZones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.zone-item {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.zone-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.zone-item:hover::before {
    opacity: 1;
}

.zone-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-light);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.zone-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--border-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zone-item:hover img {
    transform: scale(1.05);
}

.zone-item button {
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 1.25rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.zone-item:hover button {
    color: var(--primary);
    background: rgba(252, 38, 81, 0.05);
}

#zoneViewer {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: none;
    flex-direction: column;
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.zone-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.zone-title {
    flex: 1;
    min-width: 0;
}

#zoneName {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

#zoneId {
    display: none;
}

#zoneAuthor {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

#zoneAuthor:hover {
    color: white;
    text-decoration: underline;
}

.zone-controls {
    display: flex;
    gap: 0.75rem;
}

.zone-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.zone-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

#zoneFrame {
    flex-grow: 1;
    border: none;
    width: 90%;
    height: 90%;
}

#popupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    animation: slideInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInScale {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#popupTitle {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

#popupClose {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

#popupClose:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#popupBody {
    padding: 1.5rem;
    overflow-y: auto;
    color: var(--text);
}

#popupBody input[type="text"],
#popupBody input[type="file"] {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

#popupBody input[type="text"]:focus,
#popupBody input[type="file"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#settings-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

#settings-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#settings-button:active {
    transform: translateY(0);
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.footer-links a:hover {
    color: var(--primary-hover);
    background: var(--primary-light);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
    }

    main {
        padding: 1.5rem 1rem;
    }

    #container,
    #featuredZones {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .zone-item button {
        padding: 1rem 0.75rem;
        min-height: 65px;
        font-size: 13px;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    #container,
    #featuredZones {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .popup {
        margin: 0.5rem;
    }

    .zone-item:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* ================================
   SAFE OVERRIDE — paste at END of style.css
   This forces non-cropped images, pins title bars to bottom,
   and matches a frosted-glass header look while leaving
   existing CSS in place.
   ================================ */

/* reset tiny layout gaps */
html,body { margin:0; padding:0; }

/* 1) Header/frosted glass (gentle, non-destructive) */
header,
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999 !important;
  background: rgba(17,17,17,0.18) !important;    /* light glass by default */
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: background 350ms ease, box-shadow 350ms ease;
}

/* When header gets 'scrolled' class, make it slightly stronger */
header.scrolled,
.site-header.scrolled {
  background: rgba(10,10,10,0.62) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
}

/* 2) Grid layout for game lists (safe defaults) */
#container, #featuredZones {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.25rem !important;
  padding: 1rem 1.5rem !important;
  align-items: start !important;
  transition: opacity 280ms ease !important;
}

/* 3) Card shell: unify different class names (.zone-card, .zone-item) */
.zone-card, .zone-item, .zone {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  color: inherit !important;
  min-height: 260px !important; /* prevents super-short cards */
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 320ms ease !important;
}

/* nice hover */
.zone-card:hover, .zone-item:hover, .zone:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.40) !important;
}

/* 4) Image rules — FORCE no cropping and preserve aspect ratio */
.zone-card img,
.zone-item img,
.zone img,
img.cover,
img.game-cover,
.card img {
  width: 100% !important;
  height: auto !important;           /* keep natural proportions */
  max-height: 260px !important;      /* cap so cards stay consistent */
  object-fit: contain !important;    /* <--- key: contain not cover */
  display: block !important;
  margin: 0 auto !important;
  background-color: #000 !important; /* prevents transparency weirdness */
}

/* If an image container element is used (thumb wrappers), ensure it doesn't force a height */
.thumb, .thumb img, .cover-wrap, .img-wrap {
  height: auto !important;
  max-height: none !important;
}

/* 5) Title bar/frosted look — target many possible title selectors */
.zone-card-title,
.zone-item .title,
.zone .title,
.card .title,
.card-title,
.zone-title {
  background: rgba(20,20,20,0.55) !important;   /* frosted glass look */
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-align: center !important;
  padding: 0.6rem 0.8rem !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  margin: 0 !important;
  border-radius: 0 0 12px 12px !important; /* rounded bottom if card is rounded */
  align-self: stretch !important;
}

/* ensure title sits at the bottom of variable-height cards */
.zone-card .zone-card-title,
.zone-item .zone-card-title,
.zone .zone-card-title {
  margin-top: auto !important;
}

/* 6) Remove any forced cropping rules (override dangerous previous rules) */
img[style*="height"], .zone-card img[style*="height"], .zone-item img[style*="height"] {
  height: auto !important;
}

/* 7) Animation / reveal safe defaults */
.zone-card, .zone-item {
  opacity: 0;
  transform: translateY(30px);
}
.zone-card.visible, .zone-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 8) Accessibility + small screens safety */
@media (max-width: 480px) {
  #container, #featuredZones {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 0.6rem !important;
    padding: 0.75rem !important;
  }
  .zone-card, .zone-item { min-height: 200px !important; }
  .zone-card img, .zone-item img { max-height: 180px !important; }
}

/* 9) Debug helpers (uncomment when troubleshooting)
.debug-outline * { outline: 1px dashed rgba(255,0,0,0.2) !important; }
*/

}

#featuredZonesWrapper {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

#featuredZonesWrapper.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-section {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s ease;
}

.hero-section.collapsed {
  opacity: 0;
  transform: translateY(-40px); /* pushes it up while fading */
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

#featuredZonesWrapper {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#featuredZonesWrapper.collapsed {
  opacity: 0;
  transform: translateY(-40px);
  max-height: 0;
  pointer-events: none;
}

footer {
  width: 100%;
  background: rgba(20, 20, 20, 0.7); /* Match header transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #7aa2ff; /* Accent color like hover effects in header */
  transform: translateY(-2px);
}

/* Frosted glass header style for zone viewer */
.zone-header {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.results-container {
  min-height: 200px; /* keeps space reserved even if empty */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#resultsWrapper {
  transition: all 0.3s ease-in-out;
  min-height: 150px; /* keeps some space so header doesn't jump */
  opacity: 1;
}

#resultsWrapper.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

/* Settings Popup Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.settings-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.settings-popup {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px;
    color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.2s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Header with close button */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.settings-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Settings Buttons */
.settings-body button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-body button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero section smooth collapse */
.hero-section {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s ease;
}

.hero-section.collapsed {
  opacity: 0;
  transform: translateY(-40px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.settings-overlay.active {
  display: flex;
}

.settings-popup {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.2rem;
  min-width: 280px;
  max-width: 360px;
  color: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.settings-header h3 {
  margin: 0;
}

#closeSettings {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.settings-item {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  padding: 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.about-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.about-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Unified header control style */
.header-right a,
.header-right button,
#searchBar,
#sortOptions {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Hover/active states */
.header-right a:hover,
.header-right button:hover,
#searchBar:hover,
#sortOptions:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Ensure inputs still work */
#searchBar::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

#searchBar {
  min-width: 180px;
}

#sortOptions {
  min-width: 140px;
  appearance: none;
}

/* Force #sortOptions to look like the other header controls */
#sortOptions {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 140px;
  appearance: none; /* hides default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

/* Add custom arrow icon */
#sortOptions::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Dropdown menu (options) styling */
#sortOptions option {
  background: rgba(20, 20, 20, 0.9);
  color: white;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

/* Hover/active effect for the whole dropdown */
#sortOptions:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Menu styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 160px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg); /* bigger rounded corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  z-index: 2000;
  overflow: hidden; /* ensures rounded corners clip children */
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Smooth hover */
.dropdown-menu li:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Optional: make first and last items rounded if overflow:hidden is removed */
.dropdown-menu li:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.dropdown-menu li:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* custom dropdown (match header controls) */
.dropdown { position: relative; display: inline-block; margin: 0 0.4rem; }
.dropdown-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius); /* pill */
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.dropdown-toggle .caret { font-size: 0.85rem; opacity: 0.9; margin-left: 6px; }

.dropdown-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* the floating menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);   /* rounded corners */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 0.4rem 0;
  list-style: none;
  margin: 0;
  z-index: 2000;
  overflow: hidden;
}

/* items */
.dropdown-menu li {
  padding: 0.55rem 1rem;
  color: white;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.dropdown-menu li:hover,
.dropdown-menu li[aria-current="true"] {
  background: rgba(255,255,255,0.12);
}

/* open state */
.dropdown.open .dropdown-menu { display: block; }

/* make toggle larger-rounded if you want perfect match to menu */
.dropdown.open .dropdown-toggle { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }

/* Small-screen tweak */
@media (max-width: 600px) {
  .dropdown-menu { min-width: 140px; }
}

.background-box {
  position: absolute;
  top: 50%;
  right: -320px; /* start hidden off screen */
  transform: translateY(-50%);
  width: 260px;
  background: rgba(20,20,20,0.9);
  color: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: right 0.4s ease;
  z-index: 1100;
}

.background-box.active {
  right: 20px; /* slides into view */
}

.background-box h4 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.background-box button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.background-box button:hover {
  background: rgba(255,255,255,0.25);
}

main {
  margin-top: 80px; /* adjust to the height of your header */
}

#featuredZonesWrapper {
  margin-bottom: 2rem; /* optional spacing below */
}

/* === Apply search box style site-wide to inputs and selects === */
input[type="text"],
input[type="file"],
input[type="password"],
input[type="email"],
textarea,
select {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    font-size: 15px;
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: var(--radius);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="file"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    background: var(--text);
    color: var(--glass);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), var(--shadow);
    transform: translateY(-1px);
}

::placeholder {
    color: var(--text-muted);
}

#idInput {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#idInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#idInput:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

#show-id-input,
#show-id-input:focus,
#show-id-input:invalid,
#show-id-input:focus:invalid {
    outline: none !important;
    box-shadow: none !important;
}

/* Make all inputs same height and style */
#showId,
.input-row input {
  padding: 1rem;          /* consistent padding */
  font-size: 1.1rem;      /* same font size */
  border-radius: 8px;     /* consistent rounding */
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  outline: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 500px;
}

/* Focus effect */
#showId:focus,
.input-row input:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(255,255,255,0.25), 0 4px 6px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Arrange season/episode inputs side by side with same width */
.input-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.input-row input {
  flex: 1; /* make them equal width */
}

/* Go button - same style as inputs */
#goButton {
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  outline: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  margin-top: 1rem;
}

/* Hover / focus effect like inputs */
#goButton:hover,
#goButton:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(255,255,255,0.25), 0 4px 6px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Make Show ID same height as season/episode inputs */
#showId {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  outline: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  height: calc(1.1rem + 2 * 1rem); /* font-size + 2*padding */
  box-sizing: border-box;          /* ensures padding included in height */
}

#goButton {
  display: inline-block;            /* instead of block fill */
  padding: 1rem;                    /* same vertical/horizontal space */
  font-size: 1rem;                  /* match text size */
  border-radius: var(--radius);     /* same rounding */
  border: none;
  background: rgba(255, 255, 255, 0.1); /* frosted look */
  backdrop-filter: blur(10px);      /* frosted glass effect */
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

#goButton:hover {
  background: rgba(255, 255, 255, 0.2);
}

#goButton.active {
  background: rgba(255,255,255,0.3);
}

.input-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: var(--radius, 8px);
  border: none;
  background: rgba(255, 255, 255, 0.1);        /* semi-transparent */
  backdrop-filter: blur(20px);                  /* frosted glass */
  -webkit-backdrop-filter: blur(20px);          /* for Safari */
  color: white;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.input-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.input-btn.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.25), 0 4px 6px rgba(0,0,0,0.1);
}

.toggle-slider {
  position: relative;
  width: 300px;
  max-width: 90%;
  display: flex;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  overflow: hidden;
  margin: 0 auto 1rem auto;
}

.toggle-slider button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  font-size: 16px;
  color: white;
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: color 0.3s ease;
}

.toggle-slider button.active {
  color: black;
}

.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #4FC3F7;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 1;
}

.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #4FC3F7;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 0;           /* behind buttons */
  pointer-events: none;  /* allows clicks to go through */
}

.toggle-slider {
  position: relative;
  width: 300px;
  max-width: 90%;
  display: grid;          /* changed from flex */
  grid-template-columns: 1fr 1fr; /* 2 equal columns */
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  overflow: hidden;
  margin: 0 auto 1rem auto;
}

.toggle-slider button {
  background: transparent;
  border: none;
  font-size: 16px;
  color: white;
  cursor: pointer;
  z-index: 2;             /* above slider */
  width: 100%;
  padding: 0.75rem 0;
  position: relative;     /* needed for z-index */
  transition: color 0.3s ease;
}

.toggle-slider button.active {
  color: black;
}

.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #4FC3F7;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 1;             /* behind buttons */
  pointer-events: none;   /* ensure clicks pass through */
}

.toggle-slider {
  position: relative;
  width: 300px;
  max-width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  user-select: none;
}

.toggle-slider button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  font-size: 16px;
  color: white;
  cursor: pointer;
  width: 100%;
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.toggle-slider button.active {
  color: black;
}

.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #4FC3F7;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 500px; /* same as Show ID */
  border-radius: 8px; /* same as Show ID */
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  margin-bottom: 1rem;
  height: 3rem; /* match Show ID height */
}

.toggle-slider button {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  z-index: 2;
  cursor: pointer;
  transition: color 0.25s;
  font-weight: 500;
}

.toggle-slider button.active {
  color: #000; /* text color of selected button */
}

.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.25); /* slightly lighter for selected */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  transition: left 0.25s;
  z-index: 1;
}

.panel {
    background: rgba(255, 255, 255, 0.1);  /* translucent layer */
    backdrop-filter: blur(20px);           /* frosted glass blur */
    -webkit-backdrop-filter: blur(20px);   /* Safari support */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* subtle glass edge */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
}

.site-header .logo img {
  height: 40px;       /* Adjust as needed */
  width: auto;
  display: block;
}

/* === Force About.html header to match index.html header === */
#mainHeader.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Frosted glass look like index.html */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Smooth transition + shadow */
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}

#mainHeader.site-header.scrolled {
  background: rgba(0, 0, 0, 0.6);
}

/* Inner content */
#mainHeader .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo (match Toga Games style) */
#mainHeader .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

/* Header right controls */
#mainHeader .header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Links */
#mainHeader .header-right a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#mainHeader .header-right a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Settings button */
#mainHeader #settings {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#mainHeader #settings:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* === Force About.html header buttons to match Index.html === */
#mainHeader .header-right a,
#mainHeader .header-right button {
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 0.5rem 0.75rem !important;
  color: white !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

#mainHeader .header-right a:hover,
#mainHeader .header-right button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow) !important;
}

/* Default header styling */
.site-header {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

/* When scrolled */
.site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  background: #0c0c24; /* dark background like your image */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border-radius: 9999px; /* rounded edges like screenshot */
  max-width: 900px;
  margin: 0 auto;
  right: 0;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(10px);
}

/* Right-side links/buttons */
.header-right a,
.header-right button {
  margin-left: 1rem;
  color: #fff;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Purple button (Redeem look) */
.header-right .redeem-btn {
  background: linear-gradient(90deg, #6a5af9, #7b61ff);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-weight: bold;
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0c0c24; /* dark background */
  border-radius: 0; /* no weird pill edges */
  padding: 0.3rem 1rem; /* MUCH smaller padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px; /* force a compact height */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

/* default header */
.site-header {
  position: fixed;       /* keep it fixed */
  width: calc(100% - 0px);
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
  border-radius: 0;      /* no rounding initially */
  z-index: 1000;
}

/* when scrolled */
.site-header.scrolled {
  top: 10px;             /* move header down */
  left: 10px;            /* small offset from left */
  right: 10px;           /* small offset from right */
  border-radius: 12px;   /* rounded corners */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: auto;           /* let left/right offsets shrink it */
}

/* default header */
.site-header {
  position: fixed;
  top: 8px;             /* small offset from top */
  left: 0;
  right: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 1000;
  border-radius: 0;
  background: rgba(0,0,0,0.9); /* optional for visibility */
  padding: 0.5rem 1rem;        /* keep content aligned */
}

/* when scrolled */
.site-header.scrolled {
  top: 12px;              /* slightly lower */
  left: 10px;             /* margin from edges */
  right: 10px;
  width: auto;            /* let it shrink slightly */
  border-radius: 12px;    /* rounded corners */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.site-header.scrolled {
  top: 12px !important;
  left: 10px !important;
  right: 10px !important;
}

#featuredZonesWrapper,
#allZonesWrapper,
main {
  background: none; /* remove gray */
}

/* Base header */
#mainHeader {
  position: fixed;       /* stay at top */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;          /* default height */
  background-color: #111; /* change to your preferred color */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 0 0 rgba(0,0,0,0); /* initial no shadow */
  transition: all 0.4s ease;  /* smooth transition */
  z-index: 1000;
}

/* Scrolled / floating state */
#mainHeader.scrolled {
  height: 60px;          /* smaller height */
  padding: 0 15px;       /* optional tighter padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* subtle shadow */
  background-color: rgba(17,17,17,0.95);   /* slightly transparent for effect */
}

.logo-img {
  height: 80px; /* increase size */
  transition: transform 0.2s ease;
}

