:root {
  --bg: #050816;
  --bg-2: #071022;
  --panel: rgba(11, 18, 36, 0.78);
  --panel-strong: rgba(14, 23, 46, 0.94);
  --line: rgba(91, 142, 255, 0.22);
  --line-bright: rgba(54, 229, 255, 0.44);
  --text: #f8fbff;
  --muted: #9fb0ca;
  --cyan: #36e5ff;
  --blue: #4aa8ff;
  --violet: #8b5cf6;
  --green: #67e8a5;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, rgba(54, 229, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 84% 12%, rgba(139, 92, 246, 0.28), transparent 36rem),
    linear-gradient(180deg, #050816 0%, #071022 46%, #050816 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.glow { position: fixed; width: 24rem; height: 24rem; filter: blur(80px); opacity: .35; pointer-events: none; z-index: -1; }
.glow-cyan { top: 12rem; left: -9rem; background: var(--cyan); }
.glow-purple { right: -8rem; top: 4rem; background: var(--violet); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4.5rem);
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.74);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(54,229,255,.18));
  box-shadow: 0 0 32px rgba(54,229,255,.22);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.brand small { display: block; color: var(--muted); font-size: .76rem; margin-top: .1rem; }
nav { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  font-size: .92rem;
  padding: .58rem .82rem;
  border-radius: 999px;
}
nav a:hover, .support-link { color: var(--text); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
main { width: min(1180px, calc(100vw - 2rem)); margin: 0 auto; }
.hero { padding: clamp(4rem, 10vw, 8rem) 0 4rem; text-align: center; }
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  margin: 0 auto 1.15rem;
  font-size: clamp(2.55rem, 8vw, 6.1rem);
  line-height: .93;
  letter-spacing: -.075em;
}
h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); letter-spacing: -.05em; margin-bottom: .55rem; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
.hero-copy {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.search {
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 820px;
  margin: 0 auto;
  padding: .72rem;
  border: 1px solid var(--line-bright);
  background: rgba(8, 14, 32, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  border-radius: 24px;
}
.search span { color: var(--cyan); font-size: 1.35rem; padding-left: .55rem; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}
.search button {
  border: 0;
  color: #03101a;
  font-weight: 800;
  padding: .86rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}
.quick-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.quick-tags a, .pill {
  color: #c9f8ff;
  font-size: .8rem;
  border: 1px solid rgba(54, 229, 255, .2);
  background: rgba(54, 229, 255, .08);
  border-radius: 999px;
  padding: .42rem .72rem;
}
.section { padding: 3rem 0; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 580px; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.guide-card, .game-card, .topic-grid a {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 25, 50, .86), rgba(8, 13, 28, .86));
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.guide-card:hover, .game-card:hover, .topic-grid a:hover { transform: translateY(-3px); border-color: var(--line-bright); }
.guide-card { display: flex; min-height: 245px; flex-direction: column; padding: 1.15rem; }
.guide-card.featured { background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(54, 229, 255, .12)), var(--panel-strong); }
.guide-card p { color: var(--muted); line-height: 1.6; }
.meta { margin-top: auto; color: var(--green); font-family: "JetBrains Mono", monospace; font-size: .78rem; }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.game-card { padding: 1.15rem; min-height: 118px; }
.game-card strong { display: block; font-size: 1.15rem; margin-bottom: .45rem; }
.game-card span { display: block; color: var(--muted); line-height: 1.5; }
.game-card.active { border-color: var(--line-bright); box-shadow: 0 0 36px rgba(54, 229, 255, .08); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.topic-grid a { padding: 1.1rem; font-weight: 700; }
.topic-grid span { color: var(--cyan); font-family: "JetBrains Mono", monospace; margin-right: .55rem; }
.article-shell { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 3rem 0 5rem; }
.sidebar { position: sticky; top: 88px; align-self: start; border: 1px solid var(--line); border-radius: 22px; padding: 1rem; background: var(--panel); }
.sidebar a { display: block; color: var(--muted); padding: .65rem .75rem; border-radius: 12px; }
.sidebar a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.article { max-width: 820px; padding: 2rem; border: 1px solid var(--line); border-radius: 28px; background: rgba(7, 12, 27, .72); }
.article h1 { font-size: clamp(2.1rem, 5vw, 4rem); text-align: left; margin-left: 0; }
.article p, .article li { color: var(--muted); line-height: 1.75; }
.step { border-left: 2px solid var(--cyan); padding-left: 1rem; margin: 1.4rem 0; }
code, pre { font-family: "JetBrains Mono", monospace; }
code { color: #b9f7ff; background: rgba(54,229,255,.08); border: 1px solid rgba(54,229,255,.14); padding: .13rem .35rem; border-radius: .45rem; }
pre { overflow: auto; padding: 1rem; border-radius: 16px; background: #030713; border: 1px solid rgba(255,255,255,.08); color: #d8ecff; }
footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100vw - 2rem)); margin: 2rem auto 0; padding: 2rem 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .guide-grid, .split-section, .article-shell { grid-template-columns: 1fr; }
  .topic-grid, .game-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .search { align-items: stretch; flex-direction: column; }
  .search span { display: none; }
  .search input { width: 100%; padding: .5rem; }
  footer { flex-direction: column; }
}

.full-library{grid-template-columns:repeat(4,minmax(0,1fr));}
.full-games{grid-template-columns:repeat(2,minmax(0,1fr));}
.games-clean{display:block;}
.featured-games{grid-template-columns:repeat(3,minmax(0,1fr));}
.search{position:relative;}
.search-suggestions{position:absolute;left:0;right:0;top:calc(100% + .7rem);z-index:40;display:none;max-height:390px;overflow:auto;padding:.55rem;border:1px solid var(--line-bright);border-radius:22px;background:rgba(5,8,22,.96);box-shadow:0 28px 90px rgba(0,0,0,.48);backdrop-filter:blur(18px);text-align:left;}
.search-suggestions.show{display:grid;gap:.45rem;}
.search-suggestions a,.search-suggestions p{display:grid;gap:.22rem;margin:0;padding:.85rem 1rem;border-radius:16px;color:var(--text);border:1px solid transparent;}
.search-suggestions strong{display:block;font-size:.98rem;line-height:1.25;}
.search-suggestions a:hover{background:rgba(54,229,255,.08);border-color:rgba(54,229,255,.22);}
.search-suggestions span{display:block;padding:0;color:var(--muted);font-size:.86rem;line-height:1.45;}
.game-drawer-toggle{position:fixed;left:0;top:84px;z-index:60;display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.75rem 1rem .75rem .8rem;border:1px solid rgba(139,92,246,.45);border-left:0;border-radius:0 16px 16px 0;background:linear-gradient(90deg,rgba(49,32,82,.98),rgba(28,45,80,.96));color:#dbeafe;font-weight:900;letter-spacing:.01em;box-shadow:0 18px 55px rgba(0,0,0,.32),0 0 24px rgba(139,92,246,.22);cursor:pointer;}
.game-drawer-toggle .hamb{font-size:1.2rem;color:#c4b5fd;line-height:1;}
.game-drawer-toggle:hover{border-color:rgba(54,229,255,.5);background:linear-gradient(90deg,rgba(65,44,110,.98),rgba(28,63,105,.96));}
.drawer-scrim{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.48);backdrop-filter:blur(3px);}
.game-drawer{position:fixed;left:0;top:0;bottom:0;z-index:80;width:min(285px,calc(100vw - 1.5rem));padding:0;background:#07101f;border-right:1px solid rgba(139,92,246,.55);box-shadow:30px 0 90px rgba(0,0,0,.48);transform:translateX(-105%);transition:transform .22s ease;overflow:auto;}
.game-drawer.open{transform:translateX(0);}
.drawer-brand{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .85rem;border-bottom:1px solid rgba(139,92,246,.45);background:linear-gradient(90deg,#322154,#171b3b);}
.drawer-brand .brand{gap:.55rem;}
.drawer-brand .brand-mark{width:34px;height:34px;border-radius:10px;}
.drawer-brand strong{font-size:1rem;}
.drawer-brand small{font-size:.7rem;}
.drawer-head{padding:1rem .85rem .65rem;margin:0;}
.drawer-head h2{font-size:1.35rem;margin:.15rem 0 .35rem;}
.drawer-help{display:block;color:var(--muted);font-size:.86rem;line-height:1.45;}
.drawer-close{width:38px;height:38px;border-radius:12px;border:1px solid rgba(196,181,253,.32);background:rgba(255,255,255,.06);color:#ddd6fe;font-size:1.2rem;cursor:pointer;}
.drawer-links{display:grid;gap:.32rem;padding:.2rem .55rem 1rem;}
.drawer-links a{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:.55rem;padding:.72rem .75rem;border:1px solid transparent;border-radius:10px;background:transparent;color:#aeb8ca;}
.drawer-links a:hover{border-color:rgba(54,229,255,.35);background:linear-gradient(90deg,rgba(139,92,246,.28),rgba(54,229,255,.13));color:#eaf7ff;}
.drawer-links a[aria-current="page"]{border-color:rgba(54,229,255,.32);background:linear-gradient(90deg,rgba(139,92,246,.36),rgba(54,229,255,.18));color:#dbeafe;}
.drawer-links strong{font-size:.94rem;font-weight:800;}
.drawer-icon{display:grid;place-items:center;width:24px;height:24px;color:#aeb8ca;font-size:1rem;}
.drawer-links span:not(.drawer-icon){display:none;}
@media (max-width:1100px){.full-library{grid-template-columns:repeat(3,minmax(0,1fr));}.featured-games{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:760px){.full-library,.full-games,.featured-games{grid-template-columns:1fr;}.game-drawer-toggle{top:318px;left:0;bottom:auto;border-left:0;border-radius:0 999px 999px 0;min-height:44px;padding:.65rem .9rem .65rem .75rem;}.search input{font-size:1rem;}.search-suggestions{position:static;margin-top:.5rem;width:100%;}}


/* Real game icons in manual drawer */
.drawer-icon.game-thumb{width:30px;height:30px;border-radius:9px;overflow:hidden;background:#0f172a;border:1px solid rgba(148,163,184,.24);box-shadow:0 8px 20px rgba(0,0,0,.22);}
.drawer-icon.game-thumb img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.08) contrast(1.03);}
.drawer-links a{grid-template-columns:34px 1fr;}


/* Game guide hero artwork */
.game-hero{position:relative;isolation:isolate;overflow:hidden;min-height:460px;display:grid;place-items:center;text-align:center;padding:7.5rem clamp(1.2rem,5vw,5rem) 6.25rem;border-radius:0 0 34px 34px;margin:0 calc(clamp(1rem,5vw,4.5rem) * -1) 3rem;background:#050816;}
.game-hero::before{content:"";position:absolute;inset:0;background-image:var(--game-art);background-size:cover;background-position:var(--game-pos, center);filter:saturate(1.08) contrast(1.05);transform:scale(var(--game-zoom, 1.04));z-index:-3;}
.game-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 12%,rgba(139,92,246,.34),transparent 34rem),linear-gradient(180deg,rgba(5,8,22,.48),rgba(5,8,22,.84) 54%,#050816 100%),linear-gradient(90deg,rgba(5,8,22,.92),rgba(5,8,22,.62),rgba(5,8,22,.88));z-index:-2;}
.game-hero .eyebrow{color:#67e8f9;text-shadow:0 2px 20px rgba(0,0,0,.55);}
.game-hero h1{max-width:980px;margin-left:auto;margin-right:auto;font-size:clamp(3.3rem,8vw,7.2rem);line-height:.9;text-shadow:0 5px 42px rgba(0,0,0,.6);}
.game-hero .hero-copy{max-width:720px;margin-left:auto;margin-right:auto;color:#d5def2;text-shadow:0 2px 22px rgba(0,0,0,.72);font-size:clamp(1rem,1.8vw,1.25rem);}
.game-hero + .section{margin-top:0;}
@media (max-width:760px){.game-hero{min-height:360px;padding:5.5rem 1.1rem 4rem;margin-left:-1rem;margin-right:-1rem;border-radius:0 0 24px 24px;}.game-hero h1{font-size:clamp(2.7rem,14vw,4.5rem);}.game-hero .hero-copy{font-size:1rem;}}


/* Guides homepage game mosaic hero */
.guides-home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:650px;display:grid;place-items:center;text-align:center;padding:5.9rem clamp(1rem,5vw,4.5rem) 4.8rem;border-bottom:1px solid rgba(54,229,255,.12);background:#050816;}
.guides-home-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 8%,rgba(139,92,246,.30),transparent 34rem),linear-gradient(90deg,rgba(5,8,22,.88),rgba(5,8,22,.42) 50%,rgba(16,10,48,.78)),linear-gradient(180deg,rgba(5,8,22,.20),rgba(5,8,22,.84));z-index:-1;}
.guides-home-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(5,8,22,.62),rgba(5,8,22,.42) 42%,rgba(5,8,22,.78) 72%,#050816 100%);z-index:-1;}
.guide-hero-mosaic{position:absolute;inset:-6rem -3rem -3rem;z-index:-2;display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));grid-auto-rows:150px;gap:13px;transform:rotate(-7deg) scale(1.12);opacity:.72;filter:saturate(1.22) contrast(1.12);pointer-events:none;}
.guide-hero-mosaic span{display:block;border-radius:24px;background-image:var(--i);background-size:cover;background-position:center;box-shadow:0 20px 70px rgba(0,0,0,.36),inset 0 0 0 1px rgba(255,255,255,.16);overflow:hidden;}
.guide-hero-mosaic span:nth-child(2n){transform:translateY(28px);}
.guide-hero-mosaic span:nth-child(3n){transform:translateY(-20px);}
.guides-home-hero > :not(.guide-hero-mosaic){position:relative;z-index:1;}
.guides-home-hero h1{text-shadow:0 8px 52px rgba(0,0,0,.9),0 0 36px rgba(4,8,22,.82);}
.guides-home-hero .hero-copy{text-shadow:0 4px 30px rgba(0,0,0,.92);}
.guides-home-hero .search{box-shadow:0 24px 80px rgba(0,0,0,.48),0 0 0 1px rgba(54,229,255,.18);background:rgba(5,10,25,.86);backdrop-filter:blur(18px);}
@media (max-width:760px){.guides-home-hero{min-height:610px;padding-top:4.6rem;padding-bottom:3.5rem;}.guide-hero-mosaic{inset:-4rem -7rem -2rem;grid-template-columns:repeat(3,minmax(132px,1fr));grid-auto-rows:132px;gap:10px;transform:rotate(-8deg) scale(1.08);opacity:.58;}.guides-home-hero h1{font-size:clamp(3.25rem,17vw,5.5rem);}.guides-home-hero .search{width:100%;}}


/* Guides homepage mosaic blend + bigger search */
.guides-home-hero{margin:0!important;width:100%!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-height:690px!important;}
.guides-home-hero::before{background:radial-gradient(circle at 80% 7%,rgba(139,92,246,.34),transparent 35rem),linear-gradient(90deg,rgba(5,8,22,.92),rgba(5,8,22,.38) 50%,rgba(16,10,48,.80)),linear-gradient(180deg,rgba(5,8,22,.10),rgba(5,8,22,.74) 78%,#050816 100%)!important;}
.guides-home-hero::after{background:radial-gradient(ellipse at center,rgba(5,8,22,.48),rgba(5,8,22,.35) 42%,rgba(5,8,22,.72) 76%,#050816 100%)!important;}
.guide-hero-mosaic{inset:-7rem -5rem -3rem!important;opacity:.76!important;filter:saturate(1.2) contrast(1.08)!important;}
.guides-home-hero .search{width:min(620px,92vw)!important;min-height:74px!important;padding:.75rem!important;border-radius:28px!important;background:rgba(4,9,24,.86)!important;border-color:rgba(54,229,255,.46)!important;}
.guides-home-hero .search input{font-size:1.05rem!important;padding:.9rem 1rem!important;min-height:52px!important;}
.guides-home-hero .search button{min-height:52px!important;padding:0 1.65rem!important;border-radius:18px!important;font-size:.98rem!important;}
.guides-home-hero .quick-tags{margin-top:1rem!important;}
@media (max-width:760px){.guides-home-hero{min-height:650px!important;padding-left:1rem!important;padding-right:1rem!important;}.guide-hero-mosaic{inset:-4rem -8rem -2rem!important;opacity:.60!important;}.guides-home-hero .search{width:100%!important;min-height:auto!important;padding:.7rem!important;border-radius:24px!important;}.guides-home-hero .search button{width:100%!important;}}


/* Guides homepage hero full-bleed container escape */
.guides-home-hero{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-radius:0!important;border:0!important;}
.guides-home-hero .guide-hero-mosaic{left:-7rem!important;right:-7rem!important;}
.guides-home-hero + .section{margin-top:3rem;}
@media (max-width:760px){.guides-home-hero{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding-left:1.2rem!important;padding-right:1.2rem!important;}.guides-home-hero .guide-hero-mosaic{left:-9rem!important;right:-9rem!important;}}


/* Guides homepage hero headline spacing fix */
.guides-home-hero h1{font-size:clamp(4.1rem,7.2vw,6.55rem)!important;line-height:1.02!important;letter-spacing:-.065em!important;max-width:1050px!important;margin-top:.65rem!important;margin-bottom:1.45rem!important;}
.guides-home-hero .hero-copy{margin-top:0!important;}
@media (max-width:760px){.guides-home-hero h1{font-size:clamp(3rem,13.5vw,4.85rem)!important;line-height:1.04!important;letter-spacing:-.055em!important;margin-bottom:1.15rem!important;}}
@media (max-width:430px){.guides-home-hero h1{font-size:clamp(2.65rem,12.8vw,4rem)!important;line-height:1.06!important;}}


/* Keep mobile Game Manuals trigger out of hero headline */
@media (max-width:760px){
  .game-drawer-toggle{position:fixed!important;top:136px!important;left:0!important;bottom:auto!important;z-index:65!important;border-radius:0 999px 999px 0!important;min-height:44px!important;padding:.65rem .9rem .65rem .75rem!important;}
}
@media (max-width:430px){
  .game-drawer-toggle{top:132px!important;}
}


/* Mobile header overlap fix: keep nav compact and keep Game Manuals in normal flow. */
@media (max-width:760px){
  .site-header{
    position:relative!important;
    align-items:flex-start!important;
    gap:1rem!important;
    padding:1.1rem 1rem 1.05rem!important;
  }
  .site-header nav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:.55rem!important;
  }
  .site-header nav a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:42px!important;
    padding:.55rem .35rem!important;
    font-size:.95rem!important;
    white-space:nowrap!important;
  }
  .site-header nav a[href="#games"],
  .site-header nav a[href="#topics"]{display:none!important;}
  .game-drawer-toggle{
    position:static!important;
    left:auto!important;
    top:auto!important;
    bottom:auto!important;
    z-index:5!important;
    width:min(100%, 360px)!important;
    min-height:46px!important;
    margin:.05rem 0 0!important;
    border-left:1px solid rgba(139,92,246,.45)!important;
    border-radius:999px!important;
    padding:.62rem .95rem!important;
    transform:none!important;
  }
}
@media (max-width:430px){
  .site-header nav a{font-size:.9rem!important;}
  .game-drawer-toggle{width:100%!important;}
}


/* Mobile header overlap final fix: compact phone nav and non-overlap drawer trigger. */
@media (max-width:760px){
  .site-header{
    position:sticky!important;
    align-items:flex-start!important;
    gap:.85rem!important;
    padding:1rem 1rem .85rem!important;
  }
  .site-header nav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:.5rem!important;
  }
  .site-header nav a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    padding:.5rem .35rem!important;
    font-size:.92rem!important;
    white-space:nowrap!important;
  }
  .site-header nav a[href="/#games"],
  .site-header nav a[href="/#topics"]{display:none!important;}
  .game-drawer-toggle{
    position:fixed!important;
    top:176px!important;
    left:.75rem!important;
    right:auto!important;
    bottom:auto!important;
    z-index:65!important;
    width:auto!important;
    max-width:calc(100vw - 1.5rem)!important;
    min-height:42px!important;
    margin:0!important;
    border-left:1px solid rgba(139,92,246,.45)!important;
    border-radius:999px!important;
    padding:.58rem .9rem!important;
    transform:none!important;
  }
  .guides-home-hero{padding-top:5.4rem!important;}
}
@media (max-width:430px){
  .site-header nav a{font-size:.9rem!important;}
  .game-drawer-toggle{top:176px!important;}
}


/* Mobile header final: keep Games visible, hide only Topics to prevent wrapping overlap. */
@media (max-width:760px){
  .site-header nav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:.42rem!important;
  }
  .site-header nav a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    padding:.48rem .25rem!important;
    font-size:.88rem!important;
    white-space:nowrap!important;
  }
  .site-header nav a[href="/#games"]{display:flex!important;}
  .site-header nav a[href="/#topics"]{display:none!important;}
  .game-drawer-toggle{
    position:fixed!important;
    top:176px!important;
    left:.75rem!important;
    right:auto!important;
    bottom:auto!important;
    z-index:65!important;
    width:auto!important;
    max-width:calc(100vw - 1.5rem)!important;
    min-height:42px!important;
    margin:0!important;
    border-left:1px solid rgba(139,92,246,.45)!important;
    border-radius:999px!important;
    padding:.58rem .9rem!important;
    transform:none!important;
  }
}
@media (max-width:430px){
  .site-header nav{gap:.35rem!important;}
  .site-header nav a{font-size:.84rem!important;padding:.46rem .18rem!important;}
}


/* Mobile Game Manuals placement nudge: slightly higher under the phone nav. */
@media (max-width:760px){
  .game-drawer-toggle{top:154px!important;}
}
@media (max-width:430px){
  .game-drawer-toggle{top:154px!important;}
}

/* Mobile nav overlap repair 20260711: hide Topics consistently and keep Game Manuals in page flow. */
@media (max-width:760px){
  .site-header nav{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .site-header nav a[href="#topics"],
  .site-header nav a[href="/#topics"]{
    display:none!important;
  }
  .site-header nav a[href="#games"],
  .site-header nav a[href="/#games"]{
    display:flex!important;
  }
  .game-drawer-toggle{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:20!important;
    width:max-content!important;
    max-width:calc(100vw - 2rem)!important;
    margin:.75rem 0 1rem 1rem!important;
    border-left:1px solid rgba(139,92,246,.45)!important;
    border-radius:999px!important;
    transform:none!important;
  }
  .guides-home-hero{padding-top:3.5rem!important;}
}
@media (max-width:430px){
  .site-header nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.32rem!important;}
  .site-header nav a{font-size:.82rem!important;padding:.46rem .12rem!important;}
  .game-drawer-toggle{margin:.65rem 0 .9rem .85rem!important;}
}

/* Mobile nav overlap repair final 20260711: fixed drawer pill below one-row nav. */
@media (max-width:760px){
  .site-header nav a[href="#topics"],
  .site-header nav a[href="/#topics"]{display:none!important;}
  .site-header nav a[href="#games"],
  .site-header nav a[href="/#games"]{display:flex!important;}
  .game-drawer-toggle{
    position:fixed!important;
    top:136px!important;
    left:.85rem!important;
    right:auto!important;
    bottom:auto!important;
    z-index:65!important;
    width:auto!important;
    max-width:calc(100vw - 1.7rem)!important;
    margin:0!important;
    border-left:1px solid rgba(139,92,246,.45)!important;
    border-radius:999px!important;
    transform:none!important;
  }
  .guides-home-hero{padding-top:5.15rem!important;}
}
@media (max-width:430px){
  .game-drawer-toggle{top:136px!important;left:.75rem!important;}
}



/* COO QA 20260715: keep the Game Manuals trigger fully visible on desktop and keep mobile search readable. */
@media (min-width: 761px) {
  .game-drawer-toggle {
    left: 1rem !important;
    border-left: 1px solid rgba(139,92,246,.45) !important;
    border-radius: 999px !important;
  }
}
@media (max-width: 760px) {
  .guides-home-hero .search input::placeholder {
    font-size: .95rem;
  }
}

/* sidepanel fallback thumbnails 20260717 */
.drawer-icon-fallback {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,211,238,.72));
  color:#f8fbff;
  font-size:.66rem;
  font-weight:850;
  letter-spacing:.02em;
  box-shadow:0 0 18px rgba(34,211,238,.2);
}
