:root{
  --bg:#0b1220;
  --bg-soft:#111b31;
  --hero-1:#0b1220;
  --hero-2:#0f172a;
  --hero-3:#10254a;
  --card:#ffffff;
  --card-soft:#f8fafc;
  --text:#0f172a;
  --muted:#475569;
  --line:#dbe4f0;
  --line-strong:#cbd5e1;
  --brand:#22c55e;
  --brand-dark:#15803d;
  --accent:#38bdf8;
  --accent-soft:#dbeafe;
  --shadow:0 20px 50px rgba(15,23,42,.10);
  --shadow-hero:0 32px 80px rgba(15,23,42,.28);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#eaf1fb 0%,#f7fafc 240px,#f8fafc 100%);
  line-height:1.68;
}
img{max-width:100%;display:block}
a{color:#0f4bbf;text-decoration:none}
a:hover{text-decoration:underline}
iframe{width:100%;height:72vh;min-height:540px;border:0;background:#0f172a}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,18,32,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header__inner,
.container,
.footer__inner{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:74px;
}
.site-logo{
  font-size:1.12rem;
  font-weight:800;
  letter-spacing:.01em;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.site-logo::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--brand);
  box-shadow:0 0 18px rgba(34,197,94,.35);
}
.site-logo:hover{text-decoration:none}
.site-nav ul{
  display:flex;
  list-style:none;
  gap:12px;
  margin:0;
  padding:0;
  align-items:center;
  flex-wrap:wrap;
}
.site-nav a{
  color:#dbe7ff;
  font-weight:700;
  font-size:.94rem;
  display:block;
  padding:10px 14px;
  border-radius:999px;
}
.site-nav a.is-current,
.site-nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
  text-decoration:none;
}
.nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.18);
  background:#13203a;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.hero{
  width:min(1180px,calc(100% - 32px));
  margin:34px auto 22px;
  padding:34px;
  border-radius:32px;
  background:linear-gradient(135deg,var(--hero-1) 0%,var(--hero-2) 42%,var(--hero-3) 100%);
  color:#fff;
  box-shadow:var(--shadow-hero);
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,400px);
  gap:28px;
  align-items:center;
}
.hero__copy{max-width:760px}
.eyebrow,
.section-kicker{
  margin:0 0 12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#93c5fd;
  font-size:.76rem;
  font-weight:800;
}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(2.1rem,4vw,3.8rem);
  line-height:1.05;
  letter-spacing:-.02em;
}
.lead{
  margin:0;
  color:#dce7f8;
  font-size:1.06rem;
  max-width:57ch;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:22px 0 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 20px;
  border-radius:14px;
  font-weight:800;
  font-size:.98rem;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{
  transform:translateY(-1px);
  text-decoration:none;
}
.btn-primary{
  background:var(--brand);
  color:#062813;
  box-shadow:0 12px 24px rgba(34,197,94,.25);
}
.btn-secondary{
  background:rgba(255,255,255,.09);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.hero-inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0 0 18px;
}
.hero-inline-links a{
  color:#c7defc;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  padding:8px 12px;
  border-radius:999px;
  font-size:.92rem;
}
.hero-inline-links a:hover{text-decoration:none;color:#fff}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  color:#dbe7ff;
  font-size:.84rem;
  font-weight:700;
}
.hero-card{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  overflow:hidden;
  height:100%;
  padding:22px;
}
.hero-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:24px;
  background:#fff;
}
.hero-card__body{
  padding:18px 6px 4px;
  text-align:left;
}
.hero-card__label{
  margin:0 0 8px;
  color:#93c5fd;
  text-transform:uppercase;
  font-size:.78rem;
  letter-spacing:.12em;
  font-weight:800;
}
.hero-card__keyword{
  margin:0 0 6px;
  font-size:1.3rem;
  font-weight:800;
}
.hero-card__text{
  margin:0;
  color:#dce7f8;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:18px;
}
.section-head h2,
.content-card h2,
.sidebar-card h2,
.footer h2,
.footer h3{
  margin:0;
}
.play-section,
.content-card,
.sidebar-card,
.related-section{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.play-section{
  padding:24px;
  margin:16px 0 26px;
}
.iframe-shell{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background:#0f172a;
}
.iframe-shell iframe{
  border-radius:20px;
}
.play-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:16px;
}
.play-toolbar__hint{
  color:var(--muted);
  font-size:.95rem;
}
.fullscreen-btn{
  border:1px solid var(--brand-dark);
  background:var(--brand);
  color:#062813;
  padding:13px 18px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  min-width:220px;
  box-shadow:0 12px 24px rgba(34,197,94,.18);
}
.fullscreen-btn:hover{transform:translateY(-1px)}
.note-band,
.callout,
.notice-box{
  margin-top:14px;
  padding:16px 18px;
  border-radius:18px;
  background:#f0f7ff;
  border:1px solid #d6e7ff;
  color:#334155;
}
.video-section {
  margin: 26px 0 30px 0;
}
.video-section .content-card {
  padding: 24px;
}
.video-embed{
  position:relative;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  border-radius:16px;
  background:#0f172a;
}
.video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.play-note,
.article-note,
.sidebar-note,
.page-note{
  margin:14px 0 0;
  color:var(--muted);
}
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:4px 0 14px;
  color:#475569;
  font-size:.94rem;
}
.crumb-sep{
  color:#94a3b8;
}
.content-layout{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);
  gap:24px;
  align-items:start;
}
.content-card{
  padding:26px;
}
.content-card h2{
  margin:28px 0 10px;
  font-size:1.55rem;
  line-height:1.2;
}
.content-card h3{
  margin:18px 0 8px;
  font-size:1.08rem;
}
.content-card p{
  margin:0 0 14px;
  color:#1e293b;
}
.content-card ul,
.content-card ol{
  color:#1e293b;
}
.content-card li{margin-bottom:8px}
.toc{
  background:var(--card-soft);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  margin-bottom:22px;
}
.toc__title{
  margin:0 0 10px;
  font-weight:800;
}
.toc ul{
  margin:0;
  padding-left:18px;
}
.toc li+li{margin-top:6px}
.sidebar{
  display:grid;
  gap:18px;
}
.sidebar-card{
  padding:20px;
}
.quick-facts,
.sidebar-links{
  list-style:none;
  padding:0;
  margin:0;
}
.quick-facts li{
  display:grid;
  gap:4px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.quick-facts li:last-child{border-bottom:0;padding-bottom:0}
.quick-facts span{
  color:#64748b;
  font-size:.88rem;
}
.quick-facts strong{
  font-size:.98rem;
  color:#0f172a;
}
.sidebar-links li+li{margin-top:10px}
.related-section{
  margin:28px 0 34px;
  padding:24px;
}
.game-grid,
.feature-grid,
.footer-columns,
.grid-2{
  display:grid;
  gap:18px;
}
.game-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:18px 0;
}
.feature-card{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:18px;
}
.feature-card h3{margin-top:0}
.game-card{
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
}
.thumb-box{
  display:block;
  background:#f8fafc;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.thumb-box img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:18px;
  background:#fff;
}
.game-card__body{
  padding:16px;
}
.game-card__tag{
  margin:0 0 8px;
  color:#16a34a;
  font-weight:800;
  text-transform:uppercase;
  font-size:.72rem;
  letter-spacing:.12em;
}
.game-card h3{
  margin:0 0 8px;
  font-size:1.08rem;
  line-height:1.25;
}
.game-card p{
  margin:0;
  color:#475569;
}
.code-inline{
  display:inline-block;
  padding:2px 8px;
  border-radius:8px;
  background:#eaf2ff;
  border:1px solid #d6e7ff;
  color:#0f4bbf;
  font-weight:700;
  font-size:.95em;
}
.clean-list{padding-left:18px}
.ordered{padding-left:22px}
.footer{
  background:#0b1220;
  color:#dbe7ff;
  padding:40px 0 26px;
  margin-top:38px;
}
.footer__inner{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
}
.footer p{
  margin:0 0 14px;
  color:#c7d2fe;
}
.footer ul{
  list-style:none;
  padding:0;
  margin:12px 0 0;
}
.footer li+li{margin-top:8px}
.footer a{
  color:#dbe7ff;
}
.footer-columns{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.wrap{width:min(100%,1040px);padding:14px}
.panel,.step-card,.stat-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.top,.controls,.stage{padding:16px}
.brand{font-weight:800}
.hint{color:var(--muted)}
.hud{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.score{font-weight:900}
.mini{
  border:1px solid var(--line-strong);
  background:#fff;
  color:#0f172a;
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
@media (max-width: 1024px){
  .hero,
  .content-layout,
  .footer__inner{
    grid-template-columns:1fr;
  }
  .game-grid,
  .feature-grid,
  .footer-columns,
  .grid-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 760px){
  .site-header__inner{min-height:68px}
  .nav-toggle{display:inline-flex}
  .site-nav{
    position:absolute;
    top:68px;
    left:16px;
    right:16px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:12px;
    display:none;
  }
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;align-items:flex-start;gap:10px}
  .hero{padding:24px}
  .play-section,.content-card,.related-section,.sidebar-card{padding:18px}
  iframe{min-height:440px;height:65vh}
  .game-grid,.feature-grid,.footer-columns,.grid-2{grid-template-columns:1fr}
  .fullscreen-btn{width:100%}
}
