@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700;800&display=swap');

/* VERSION B: “cool premium” — slightly cleaner blues, less pink, more cohesive */
:root{
    /* Backgrounds: a touch less purple, more deep blue */
    --bg0:#070A18;
    --bg1:#0A1226;
    --bg2:#121F3F;

    /* Surfaces */
    --panel: rgba(255,255,255,.028);
    --panel2: rgba(255,255,255,.018);

    /* Borders */
    --stroke: rgba(255,255,255,.075);
    --stroke2: rgba(255,255,255,.11);

    /* Text */
    --text: #E9EEF8;
    --muted:#AAB5C9;
    --muted2:#7E8EAA;

    /* Accent gradient: more human + modern (blue → indigo → soft rose) */
    --g1:#6EA8FF;   /* sky/azure */
    --g2:#7B61FF;   /* indigo */
    --g3:#FF7EB6;   /* soft rose */

    --radius: 18px;
    --radius2: 22px;

    /* Shadows */
    --shadow: 0 18px 70px rgba(0,0,0,.34);
    --shadowSoft: 0 14px 40px rgba(0,0,0,.24);
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
    font-family:'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--text);
    background:
    radial-gradient(900px 600px at 18% 22%, rgba(110,168,255,.11), transparent 62%),
    radial-gradient(900px 600px at 82% 72%, rgba(123,97,255,.10), transparent 62%),
    radial-gradient(900px 600px at 50% 58%, rgba(255,126,182,.06), transparent 62%),
    linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg0) 100%);
    overflow-x:hidden;
}

/* subtle grid texture (slightly cleaner) */
body::before{
    content:"";
    position:fixed; inset:0;
    background:
    linear-gradient(to right, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.014) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: radial-gradient(760px 360px at 50% 0%, black 34%, transparent 82%);
    pointer-events:none;
    opacity:.28;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    position:relative;
    z-index:1;
}

/* NAV */
nav{
    position:sticky; top:0;
    background: rgba(8,12,28,.56);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stroke);
  z-index: 9999;   /* was 20 */

}

.nav-inner{
    max-width:1200px;
    margin:0 auto;
    padding: 14px 16px;
    display:flex;
    gap:14px;
    align-items:center;
    justify-content:space-between;
}
/* Logo container */
/* Logo container (now an anchor) */
.logo{
  display:flex;
  align-items:center;
  gap: 0px;
  transform: translateY(1.5px);
  cursor: pointer;

  text-decoration: none;   /* ← important */
  color: inherit;          /* ← important */

  transition: transform .15s ease;
}
.logo:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(110,168,255,.35);
  border-radius: 6px;
}


/* very subtle lift on hover */
.logo:hover{
  transform: translateY(0.5px);
}

/* Logo image */
.logo-img{
  width:54px;
  height:54px;
  object-fit:contain;
  transform: translateY(4px) scale(1.23);

  filter:
    drop-shadow(0 0 18px rgba(110,168,255,.35))
    drop-shadow(0 0 32px rgba(123,97,255,.25));

  transition: filter .18s ease;
}

/* slightly stronger glow on hover */
.logo:hover .logo-img{
  filter:
    drop-shadow(0 0 22px rgba(110,168,255,.45))
    drop-shadow(0 0 40px rgba(123,97,255,.32));
}

/* Site name text */
.logo-text{
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -0.25px;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(110,168,255,.95) 45%,
    rgba(123,97,255,.95) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transition: opacity .15s ease;
}

/* tiny soft fade — very premium */
.logo:hover .logo-text{
  opacity: .92;
}


.nav-links{
    display:flex;
    align-items:center;
    gap:18px;
}
.nav-link{
    color: var(--muted);
    text-decoration:none;
    font-weight:700;
    font-size:.82rem;
    letter-spacing:1px;
    text-transform:uppercase;
    padding:9px 10px;
    border-radius:12px;
    transition: .15s ease;
}
.nav-link:hover{
    color:#fff;
    background: rgba(255,255,255,.03);
}

/* Contact form submit button – muted */
.contact-submit {
   background-color:    rgba(45, 134, 223, 0.95);
  border-color: rgba(51, 78, 151, 0.85);
  box-shadow:
    0 0 2px rgba(114, 157, 221, 0.45),
    inset 0 0 0 999px rgba(255,255,255,.06);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover {
     background-color:    rgba(17, 94, 172, 0.95);

}

.contact-submit:active {
  transform: translateY(0);
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



/* Search (slightly more “glassy”) */
.search{
    display:flex;
    align-items:center;
    gap:10px;
    border: 1px solid rgba(255,255,255,.085);
    background: rgba(255,255,255,.02);
    padding: 10px 12px;
    border-radius: 14px;
    min-width: 320px;
    box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.search input{
    width:100%;
    border:0; outline:0;
    background:transparent;
    color:var(--text);
    font-size:.95rem;
    font-weight:600;
}
.search input::placeholder{ color: rgba(170,181,201,.65); }
.search kbd{
    font-size:.75rem;
    color: var(--muted2);
    border:1px solid rgba(255,255,255,.085);
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,.16);
}

/* ===== Autocomplete dropdown ===== */
.search { position: relative; }
/* =========================
   Autocomplete (Search) – Solid Style
   ========================= */

.search-wrap{
  position: relative;
  width: 100%;
  max-width: 420px;
}

.ac{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  background: #0f1429; /* solid dark */
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;

  box-shadow:
    0 12px 30px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.03);

  z-index: 1000;
}

.ac-list{
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

/* Section headers */
.ac-section{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 8px 10px;
  margin-top: 6px;

  font-size:.7rem;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;

  color: #9aa6c9;
  border-top: 1px solid rgba(255,255,255,.06);
}

.ac-section:first-child{
  border-top: none;
}

.ac-count{
  opacity:.6;
}

/* Items */
.ac-item{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items:center;

  padding: 9px;
  border-radius: 10px;
  cursor:pointer;

  transition:
    background .12s ease,
    transform .08s ease;
}

.ac-item:hover,
.ac-item.is-active{
  background: #1a2245;
}

.ac-item:active{
  transform: scale(.985);
}

/* Thumbnail */
.ac-thumb{
  width:44px;
  height:44px;
  border-radius:8px;
  overflow:hidden;

  background: #1a2245;
  border: 1px solid rgba(255,255,255,.08);
}

.ac-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Text */
.ac-main{
  min-width:0;
}

.ac-title{
  font-weight:800;
  color:#ffffff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ac-sub{
  font-size:.72rem;
  font-weight:700;
  color:#8b94b8;
  margin-top:2px;
}

/* Right pill */
.ac-pill{
  font-size:.65rem;
  font-weight:900;
  padding: 4px 9px;
  border-radius: 999px;

  background: #23306b;
  color:#cfe0ff;
}

/* Highlighted search text */
.ac-mark{
  background: none;
  color:#7fb2ff;
}

/* Empty state */
.ac-empty{
  padding: 16px;
  text-align:center;
  font-weight:700;
  color:#8b94b8;
}


/* HERO */
.hero{
    text-align:center;
    padding: 34px 10px 8px;
}
h1{
    font-size: clamp(2.2rem, 5vw, 4.0rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, rgba(110,168,255,.95) 48%, rgba(123,97,255,.95) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    margin-bottom: 10px;
}
.tagline{
    font-size: 1.02rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 18px;
}

/* Stats */
.stats-bar{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin: 18px 0 6px;
}
.stat{
    min-width: 170px;
    padding: 14px 16px;
    border-radius: 14px;
    border:1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.015);
    backdrop-filter: blur(10px);
}
.stat-number{
    display:block;
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(110,168,255,.95), rgba(123,97,255,.95));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    margin-bottom: 2px;
}
.stat-label{
    font-size:.78rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight:700;
}

/* Pills */
.category-pills{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
    margin: 22px 0 18px;
}
.pill{
    border: 1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.02);
    padding: 10px 16px;
    border-radius: 999px;
    cursor:pointer;
    font-weight: 700;
    color: var(--text);
    user-select:none;
    transition: .15s ease;
    outline:none;
}
.pill:hover{
    border-color: rgba(110,168,255,.30);
    background: rgba(255,255,255,.028);
}
.pill.active{
    border-color: rgba(123,97,255,.35);
    background: linear-gradient(135deg, rgba(110,168,255,.12), rgba(123,97,255,.10));
}

/* Grid */
.games-grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    padding: 10px 0 60px;
}
.game-card{
    grid-column: span 4;
    display: flex;
    flex-direction: column;

    border-radius: var(--radius2);
    border:1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.015);
    overflow:hidden;
    cursor:pointer;
    position:relative;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: none;
}

.game-card:hover{
    border-color: rgba(110,168,255,.20);
    box-shadow: var(--shadowSoft);
    background: rgba(255,255,255,.02);
}

.rgb-border{
    height: 2px;
    background: linear-gradient(90deg,
    rgba(110,168,255,.82),
    rgba(123,97,255,.82),
    rgba(255,126,182,.76)
    );
    opacity:0;
    transition:.18s ease;
}
.game-card:hover .rgb-border{opacity:.9;}

.game-thumbnail{
    height: 190px;
    display:flex; align-items:center; justify-content:center;
    font-size: 4.2rem;
    background:
    radial-gradient(360px 200px at 35% 30%, rgba(110,168,255,.13), transparent 62%),
    radial-gradient(360px 200px at 70% 70%, rgba(123,97,255,.10), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
    position:relative;
    overflow:hidden;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.video-overlay{
    position:absolute; inset:0;
    background: rgba(0,0,0,.26);
    display:flex; align-items:center; justify-content:center;
    opacity:0;
    transition: opacity .16s ease;
}
.game-card:hover .video-overlay{opacity:1;}

.play-icon{
    width: 60px; height: 60px;
    border-radius: 999px;
    border:1px solid rgba(255,255,255,.30);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.5rem;
}

.game-info{
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-header{
    display:flex; justify-content:space-between; align-items:flex-start;
    gap:10px;
    margin-bottom: 10px;
}
.game-title{
    font-size: 1.18rem;
    font-weight: 800;
    color:#fff;
    line-height:1.1;
}
.game-description{
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 44px;
}
.game-footer{
    display: flex;
    align-items: center;
    justify-content: space-between; /* ⭐ left, ▶ right */
    margin-top: auto;               /* keeps same height */
    gap: 10px;
}


.live-badge{
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing:1px;
    text-transform: uppercase;
    border: 1px solid rgba(239,68,68,.42);
    background: rgba(239,68,68,.09);
    color: #ff7b7b;
    display:flex; align-items:center; gap:6px;
    flex-shrink:0;
}
.live-dot{
    width:6px; height:6px; border-radius:50%;
    background:#ff5a5a;
    animation: pulse 1.8s infinite;
}
@keyframes pulse{
    0%,100%{opacity:1}
    50%{opacity:.35}
}

.player-count{
    display:flex; align-items:center; gap:8px;
    color: var(--muted2);
    font-size: .9rem;
    font-weight: 700;
}
.glow-text{
    color: var(--g1);
    text-shadow: 0 0 10px rgba(110,168,255,.20);
}

/* Button: slightly more “premium” but still calm */
.play-btn{
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.035));
    color: #fff;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor:pointer;
    transition: background .15s ease, border-color .15s ease;
    white-space:nowrap;
}
.play-btn:hover{
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
    border-color: rgba(110,168,255,.20);
}

/* Modal */
.modal{
    position:fixed; inset:0;
    background: rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding: 16px;
    z-index:50;
}
.modal.open{display:flex}
.modal-card{
    width: min(980px, 96vw);
    border-radius: 22px;
    border:1px solid rgba(255,255,255,.11);
    background: rgba(10,16,36,.86);
    backdrop-filter: blur(16px);
    overflow:hidden;
    box-shadow: var(--shadow);
}
.modal-top{
    display:flex; justify-content:space-between; align-items:center;
    padding: 12px 14px;
    border-bottom:1px solid rgba(255,255,255,.075);
}
.modal-title{
    font-weight: 900;
    letter-spacing: .6px;
    color: rgba(255,255,255,.95);
}
.close{
    border:1px solid rgba(255,255,255,.085);
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 14px;
    padding: 8px 12px;
    cursor:pointer;
    font-weight:800;
    transition: background .15s ease, border-color .15s ease;
}
.close:hover{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}
.modal-body{
    display:grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 0;
}
.frame{
    height: 520px;
    display:grid; place-items:center;
    background:
    radial-gradient(520px 260px at 50% 30%, rgba(110,168,255,.10), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border-right:1px solid rgba(255,255,255,.075);
    color: var(--muted);
    padding: 16px;
    text-align:center;
}
.side{
    padding: 14px;
}
.side .box{
    border:1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.02);
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 12px;
}
.side .k{color: var(--muted2); font-size:.8rem; text-transform:uppercase; letter-spacing:1px; font-weight:800}
.side .v{margin-top:6px; font-weight:800}
.side .cta{
    width:100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border:1px solid rgba(110,168,255,.18);
    background: rgba(255,255,255,.05);
    color:#fff;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
    cursor:pointer;
    transition: background .15s ease, border-color .15s ease;
}
.side .cta:hover{
    background: rgba(255,255,255,.07);
    border-color: rgba(123,97,255,.18);
}

/* Focus */
.pill:focus-visible, .play-btn:focus-visible, .close:focus-visible, .nav-link:focus-visible{
    outline: 3px solid rgba(110,168,255,.18);
    outline-offset: 2px;
}

/* ONLY the tiny corner favorite on game cards */
/* Footer-aligned favorite button */
.game-footer .fav-btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,12,18,.55);
  color: rgba(255,255,255,.85);

  display: grid;
  place-items: center;

  cursor: pointer;
  line-height: 1;
  font-size: 18px;
  backdrop-filter: blur(6px);

  transition: background .15s ease, border-color .15s ease;
}

.game-footer .fav-btn:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(10,12,18,.70);
}

.game-footer .fav-btn.is-fav{
  color: #ffd36b;
}

/* ===============================
   Pagination (Gamethropic)
================================ */

.pagination{
  margin: 34px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  user-select: none;
}

/* Prev / Next buttons */
.pg-btn{
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .02em;

  background: linear-gradient(
    180deg,
    rgba(40,40,55,.85),
    rgba(25,25,35,.85)
  );
  color: #eaeaff;

  border: 1px solid rgba(130,140,255,.22);
  border-radius: 10px;

  cursor: pointer;
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    border-color .14s ease,
    background .14s ease;
}

.pg-btn:hover:not(:disabled){
  transform: translateY(-1px);
  border-color: rgba(130,140,255,.45);
  box-shadow:
    0 0 2px rgba(110,168,255,.22),
    inset 0 0 0 999px rgba(255,255,255,.02);
}

.pg-btn:disabled{
  opacity: .4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Page numbers wrapper */
.pg-pages{
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Page number buttons */
.pg-num{
  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 700;

  color: #cfd4ff;
  background: rgba(22,22,32,.75);

  border: 1px solid rgba(120,130,255,.18);
  border-radius: 10px;

  cursor: pointer;
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    background .14s ease,
    border-color .14s ease;
}

.pg-num:hover{
  transform: translateY(-1px);
  border-color: rgba(120,130,255,.45);
  box-shadow: 0 0 2px rgba(120,130,255,.25);
}

/* Active page */
.pg-num.active{
  color: #fff;
  background-color:    rgba(45, 134, 223, 0.95);
  border-color: rgba(51, 78, 151, 0.85);
  box-shadow:
    0 0 2px rgba(114, 157, 221, 0.45),
    inset 0 0 0 999px rgba(255,255,255,.06);
  cursor: default;
}

/* Ellipsis */
.pg-ellipsis{
  padding: 0 6px;
  font-weight: 800;
  color: rgba(200,205,255,.55);
}
/* ===============================
   Mobile "Show more games"
================================ */

.mobile-more-wrap{
  display: none;
  justify-content: center;
  margin: 10px auto 34px;
  user-select: none;
}

.mobile-more-btn{
  padding: 12px 18px;
  min-width: 220px;

  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: .02em;

  color: #fff;
  background-color: rgba(45, 134, 223, 0.95);
  border: 1px solid rgba(51, 78, 151, 0.85);
  border-radius: 999px;

  cursor: pointer;
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    background-color .14s ease,
    border-color .14s ease;
}

.mobile-more-btn:hover{
  transform: translateY(-1px);
  background-color: rgba(17, 94, 172, 0.95);
  box-shadow:
    0 0 2px rgba(114, 157, 221, 0.45),
    inset 0 0 0 999px rgba(255,255,255,.04);
}

.mobile-more-btn:active{
  transform: translateY(0);
}

/* Mobile homepage improvements */
@media (max-width: 768px){
  .pagination{
    display: none !important;
  }

  .mobile-more-wrap{
    display: flex;
  }

  .container{
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero{
    padding-top: 24px;
  }

  .tagline{
    font-size: .95rem;
    margin-bottom: 14px;
  }

  .category-pills{
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    margin: 18px 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-pills::-webkit-scrollbar{
    display: none;
  }

  .pill{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
  }

  .games-grid{
    gap: 12px;
    padding: 8px 0 24px;
  }

  .game-card{
    border-radius: 18px;
  }

  .game-thumbnail{
    height: 180px;
  }

  .game-info{
    padding: 14px 14px 16px;
  }

  .game-title{
    font-size: 1.05rem;
  }

  .game-description{
    font-size: .9rem;
    min-height: auto;
    margin-bottom: 10px;
  }

  .play-btn{
    padding: 10px 12px;
    font-size: .8rem;
  }

  .game-footer .fav-btn{
    width: 36px;
    height: 36px;
  }
}
/* ===============================
   Homepage mobile card reveal
================================ */

.game-card.reveal-in{
  animation: gameReveal .32s ease both;
}

@keyframes gameReveal{
  from{
    opacity: 0;
    transform: translateY(8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 980px){
    .search{min-width: 220px;}
    .game-card{grid-column: span 6;}
    .modal-body{grid-template-columns: 1fr;}
    .frame{border-right:0; border-bottom:1px solid rgba(255,255,255,.075); height: 420px;}
}
@media (max-width: 720px){
  .nav-links{display:none;}
  .nav-links.is-open{display:flex;}   
  .game-card{grid-column: span 12;}
  .search kbd{display:none;}

  /* 🔥 Hide search bar completely on mobile */
  #searchWrap{
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    *{transition:none !important; animation:none !important;}
    html{scroll-behavior:auto;}
}
/* =========================================
   MOBILE NAV PATCH (keeps desktop unchanged)
   Put this at the very bottom
========================================= */
@media (max-width: 720px){

  /* show hamburger on mobile */
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.085);
    background: rgba(255,255,255,.02);
    color: var(--text);
    font-size:22px;
    cursor:pointer;
    flex: 0 0 auto;
  }

  /* allow overlay positioning */
.nav-inner{
  position: relative;
  justify-content: space-between; /* logo left, hamburger right */
}

  /* keep search from forcing overflow */
  .search{
    min-width: 0;      /* ✅ overrides your min-width:320px */
    flex: 1 1 auto;
    box-shadow: none;  /* optional: reduces bulky look on mobile */
  }

  /* Mobile menu overlay */
  .nav-links.is-open{
    position:absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);

    display:flex;
    flex-direction:column;
    gap:10px;

    padding: 12px;
    border-radius: 16px;

    background: rgba(8,12,28,.96);
    border: 1px solid var(--stroke2);
    box-shadow: var(--shadowSoft);
    z-index: 10000;
  }

  .nav-links.is-open .nav-link{
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
  }

  /* autocomplete must float above menu */
  .ac{
    z-index: 11000;
  }
}

/* Desktop: keep hamburger hidden */
@media (min-width: 721px){
  .nav-toggle{ display:none; }
}