:root{
  /* Brand palette */
  --bg-950:#0b0c10;
  --bg-900:#0f1117;
  --bg-850:#141620;
  --bg-800:#171a27;
  --line:#21283a;
  --text:#e6ebf2;
  --muted:#a6afc3;
  --brand:#8b5cf6;
  --accent:#22d3ee;
  --shadow-1:0 6px 20px rgba(3,6,17,.32), 0 1px 0 rgba(255,255,255,.02) inset;
  --ring:0 0 0 3px rgba(139,92,246,.35);
  --radius-lg:16px;
  --radius:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(1200px 520px at 15% -14%,rgba(139,92,246,.08),transparent 60%),var(--bg-950);
  color:var(--text);
  font:16px/1.65 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,rgba(20,22,32,.92),rgba(20,22,32,.75));
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  gap:16px;
  height:60px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.35px;
}
.brand i{color:var(--accent);font-size:18px}
.brand .wordmark{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:20px;
  letter-spacing:.55px;
}
.nav{
  margin-left:auto;
  display:flex;
  gap:18px;
}
.nav a{
  display:flex;
  align-items:center;
  gap:6px;
  opacity:.9;
  padding:8px 12px;
  border-radius:12px;
  transition:opacity .2s ease,background .2s ease,color .2s ease;
}
.nav a:hover{
  opacity:1;
  color:var(--accent);
  background:rgba(34,211,238,.08);
}
.nav-toggle{
  display:none;
  margin-left:8px;
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:6px 10px;
}

main.play-container{padding:24px 0 48px}
h1{margin:0}
.title{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:44px;
  letter-spacing:.4px;
  margin:6px 0 6px;
}
.subtitle{color:var(--muted);margin:0 0 20px}

.game-frame-wrapper{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-1);
}
.game-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#000;
  scrollbar-width:none;
}
.game-frame::-webkit-scrollbar{display:none}
.game-run-cta{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:2;
  pointer-events:auto;
}
.game-frame-wrapper.running .game-run-cta{display:none}
.game-run-cta:hover,
.game-run-cta:focus-visible{
  transform:translate(-50%,-50%);
}

.play-actions{
  display:flex;
  gap:18px;
  padding-top:16px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:48px;
  padding:0 20px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:linear-gradient(180deg,var(--bg-900),var(--bg-850));
  color:var(--text);
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease,filter .2s ease;
}
.btn i{opacity:1}
.btn:hover{
  border-color:rgba(34,211,238,.45);
  box-shadow:0 8px 28px rgba(34,211,238,.22);
  transform:translateY(-2px);
}
.game-run-cta.btn:hover,
.game-run-cta.btn:active{
  transform:translate(-50%,-50%);
}
.btn:focus-visible{
  outline:none;
  box-shadow:var(--ring);
}
.btn-primary{
  background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 70%,#ffffff 12%),color-mix(in srgb,var(--brand) 78%,#000000 22%));
  border:1px solid rgba(139,92,246,.75);
  color:#0b0c10;
  font-weight:700;
  text-transform:uppercase;
}
.btn-primary i{color:#0b0c10}
.btn-primary:hover{
  filter:brightness(1.08);
  border-color:rgba(34,211,238,.7);
}
.btn-primary:disabled{
  opacity:.75;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

#fullscreen-btn{
  border:1px solid rgba(34,211,238,.55);
  color:var(--accent);
  text-transform:uppercase;
  font-weight:700;
  background:linear-gradient(180deg,rgba(16,24,34,.95),rgba(10,16,24,.8));
  box-shadow:0 6px 22px rgba(34,211,238,.16);
}
#fullscreen-btn i{color:var(--accent)}
#fullscreen-btn:hover{
  border-color:rgba(34,211,238,.85);
  color:#0b0c10;
  background:linear-gradient(180deg,rgba(34,211,238,.92),rgba(34,211,238,.72));
  box-shadow:0 10px 30px rgba(34,211,238,.28);
}

.section{padding:52px 0}
.section hr{
  border:none;
  height:1px;
  background:var(--line);
  margin:26px 0;
}
.cols{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
}
.card{
  background:var(--bg-800);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-1);
}
.card img{border-radius:var(--radius)}
.intro-card{padding:26px}
.intro-header{margin-bottom:24px}
.intro-header .title{margin-bottom:6px}
.intro-header .subtitle{margin:0;color:var(--muted)}
.intro-body{
  display:flex;
  gap:32px;
  align-items:flex-start;
}
.intro-main{flex:3;min-width:0}
.intro-main h2{margin:0 0 14px;font-size:24px}
.intro-list{margin:0 0 16px;padding-left:20px;display:grid;gap:10px}
.intro-list li{color:var(--text);line-height:1.55}
.intro-list li strong{color:var(--accent);font-weight:600}
.intro-side{flex:2;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.intro-callout{
  background:rgba(15,18,30,.65);
  border:1px solid rgba(47,55,75,.7);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  display:grid;
  gap:6px;
  color:var(--muted);
}
.intro-callout h3{
  margin:0;
  font-size:15px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:8px;
}
.intro-callout.warning{border-color:rgba(245,158,11,.6);background:rgba(32,24,8,.6)}
.intro-callout.tip{border-color:rgba(34,211,238,.4);background:rgba(10,28,35,.6)}
.intro-callout.note{border-color:rgba(139,92,246,.4);background:rgba(24,18,38,.6)}
.intro-callout.info{border-color:rgba(148,163,184,.4);background:rgba(20,24,32,.6)}
.intro-callout .key{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(230,235,242,.1);
  color:var(--text);
  font-size:13px;
}

.meta-list{
  list-style:none;
  margin:16px 0 0;
  padding:0;
  display:grid;
  gap:10px;
  color:var(--muted);
}
.meta-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.meta-list i{
  min-width:18px;
  color:var(--accent);
  margin-top:3px;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  background:var(--bg-950);
  color:var(--muted);
}
.site-footer .container{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.sep{opacity:.6}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width:900px){
  .cols{grid-template-columns:1fr}
  .title{font-size:36px}
  .intro-body{flex-direction:column}
  .intro-side{grid-template-columns:1fr}
  .intro-header .title{font-size:32px}
  .nav{display:none}
  .nav.open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:60px;
    right:12px;
    background:var(--bg-900);
    border:1px solid var(--line);
    padding:14px 16px;
    border-radius:var(--radius);
    box-shadow:var(--shadow-1);
  }
  .nav-toggle{display:inline-block}
}

@media (max-width:600px){
  .btn{flex:1 1 auto; justify-content:center}
  .play-actions{gap:12px}
  .intro-card{padding:20px}
  .intro-header .title{font-size:28px}
}
