:root {
  color-scheme: dark;
  --ink: #050b11;
  --ink-2: #08131f;
  --panel: #0a1824;
  --panel-strong: #0d2130;
  --line: rgba(103, 232, 249, 0.2);
  --line-strong: rgba(103, 232, 249, 0.58);
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --text: #f1f5f8;
  --muted: #a9bac8;
  --danger: #ff8f82;
  --radius: 12px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 6, 12, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.1), transparent 28rem), linear-gradient(180deg, #05090e, var(--ink));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; }
h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: #001018;
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
  background: rgba(5, 11, 17, 0.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 0.9rem; font-weight: 750; }
.nav-links a:hover { color: var(--text); background: rgba(103, 232, 249, 0.07); }
.nav-links .nav-cta { margin-left: 6px; background: var(--cyan); color: #001018; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.menu-button span { display: block; width: 19px; height: 2px; margin: 5px auto; background: var(--cyan); }

.hero { padding: 36px 0 42px; }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 16px;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
}
.hero-copy { padding: 20px 0; }
.hero h1 { max-width: 10ch; margin-bottom: 18px; }
.hero-lede { max-width: 35rem; margin-bottom: 22px; color: #d3e2ea; font-size: 1.08rem; }
.hero-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #02070b; box-shadow: var(--shadow); }
.hero-visual::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 0 70px rgba(5, 11, 17, 0.55); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.kicker { margin-bottom: 9px; color: var(--cyan); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-actions, .tag-row, .panel-head, .panel-controls, .frame-footer, .frame-actions { display: flex; align-items: center; }
.hero-actions { flex-wrap: wrap; gap: 10px; }
.tag-row { flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag, .card-label, .state-label {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(103, 232, 249, 0.07);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 0 17px; cursor: pointer; font-weight: 850; white-space: nowrap; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--cyan); color: #001018; box-shadow: 0 0 24px rgba(34, 211, 238, 0.18); }
.button.primary:hover { background: #a5f3fc; }
.button.ghost { border-color: var(--line); background: var(--panel); color: var(--text); }
.button.ghost:hover { border-color: var(--line-strong); }
.button.compact { min-height: 40px; padding-inline: 13px; font-size: 0.84rem; }

.play-section, .section-grid, .article-hero, .article-layout, .site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.play-section { padding: 42px 0 52px; border-top: 1px solid rgba(103, 232, 249, 0.12); }
.section-grid { padding: 52px 0; }
.section-grid + .section-grid { border-top: 1px solid rgba(103, 232, 249, 0.1); }
.section-heading { max-width: 760px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }

.game-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.panel-head { justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-strong); }
.panel-head h3 { margin: 7px 0 0; }
.panel-controls { flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.state-label { color: var(--muted); }
.game-panel[data-state="loading"] .state-label { color: var(--cyan); }
.game-panel[data-state="error"] .state-label { color: var(--danger); border-color: rgba(255, 143, 130, 0.35); background: rgba(255, 143, 130, 0.08); }
.frame-wrap { position: relative; min-height: 560px; aspect-ratio: 16 / 9; overflow: hidden; background: #020507; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame-loading, .frame-error { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; background: #02070b; }
.frame-loading > span:last-child, .frame-error p { color: var(--muted); }
.frame-error p { max-width: 44rem; }
.frame-launch { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: linear-gradient(rgba(2, 7, 11, 0.62), rgba(2, 7, 11, 0.82)), url("images/voxalike-neon-host.png") center / cover no-repeat; text-align: center; }
.frame-launch-card { display: grid; max-width: 540px; justify-items: center; }
.frame-launch-logo { width: min(280px, 70vw); height: auto; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48); }
.frame-launch-card h3 { margin: 16px 0 22px; font-size: clamp(2rem, 5vw, 3.4rem); }
.frame-launch-card p { max-width: 38rem; margin-bottom: 20px; color: #d6e8ef; }
.frame-launch-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button.primary.frame-play-button { min-width: 190px; color: #fff; background: #6d43ff; font-size: 1.05rem; }
.button.primary.frame-play-button:hover { background: #7b56ff; }
.loader { width: 48px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(103,232,249,.16), var(--cyan), rgba(103,232,249,.16)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.frame-footer { min-height: 58px; justify-content: space-between; gap: 16px; padding: 11px 18px; color: var(--muted); font-size: 0.88rem; }
.frame-footer p { margin-bottom: 0; }
.frame-actions { gap: 16px; white-space: nowrap; }
.frame-actions a, .text-button, .text-link { color: var(--cyan); font-weight: 800; }
.text-button { border: 0; padding: 8px 0; background: transparent; cursor: pointer; }
.rights-note { max-width: 78rem; margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; }

.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.step-grid li, .info-card, .guide-list a, .content-panel, .callout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step-grid li { min-height: 200px; padding: 17px; }
.step-grid li > span { color: var(--cyan); font-size: 0.78rem; font-weight: 900; }
.step-grid h3 { margin: 30px 0 9px; }
.step-grid p, .info-card p { margin-bottom: 0; color: var(--muted); }
.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.compact-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card { min-height: 190px; padding: 17px; transition: border-color 180ms ease, transform 180ms ease; }
a.info-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.info-card h3 { margin: 30px 0 9px; }
.split-content { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 44px; }
.split-content p { max-width: 65ch; color: var(--muted); }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.guide-list a { display: flex; min-height: 155px; flex-direction: column; align-items: flex-start; padding: 16px; }
.guide-list a:hover { border-color: var(--line-strong); }
.guide-list span { color: var(--cyan); font-size: 0.75rem; font-weight: 850; text-transform: uppercase; }
.guide-list strong { margin: 20px 0 8px; font-size: 1.05rem; }
.guide-list small { margin-top: auto; color: var(--muted); }
.faq-section { max-width: 900px; margin-inline: auto; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 800; }
summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details p { max-width: 68ch; padding-right: 32px; color: var(--muted); }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.site-footer p { max-width: 72ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--cyan); }

/* Guide and article pages */
.article-hero { padding: 38px 0 28px; border-bottom: 1px solid rgba(103, 232, 249, 0.12); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; color: var(--muted); font-size: 0.82rem; }
.breadcrumbs a { color: var(--cyan); }
.article-hero h1 { max-width: 16ch; margin-bottom: 13px; font-size: clamp(2.45rem, 5vw, 3.8rem); }
.article-hero .answer { max-width: 68ch; margin-bottom: 14px; color: #d6e8ef; font-size: 1.08rem; }
.verified-row { display: flex; flex-wrap: wrap; gap: 7px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 34px; padding: 34px 0 60px; align-items: start; }
.article-content { min-width: 0; }
.article-content > section { padding: 26px 0; border-bottom: 1px solid rgba(103, 232, 249, 0.12); }
.article-content > section:first-child { padding-top: 0; }
.article-content h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.article-content h3 { margin: 24px 0 9px; }
.article-content p, .article-content li { max-width: 72ch; color: #c2d0d9; }
.article-content li + li { margin-top: 8px; }
.article-content a:not(.button) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-content ol, .article-content ul { padding-left: 1.25rem; }
.article-content ol.task-list { padding: 0; list-style: none; counter-reset: tasks; }
.task-list > li { position: relative; max-width: none; margin: 0 0 10px; padding: 15px 16px 15px 52px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); counter-increment: tasks; }
.task-list > li::before { position: absolute; top: 14px; left: 16px; content: counter(tasks, decimal-leading-zero); color: var(--cyan); font-size: 0.75rem; font-weight: 900; }
.task-list strong { display: block; margin-bottom: 4px; color: var(--text); }
.article-aside { position: sticky; top: 88px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.article-aside strong { display: block; margin-bottom: 10px; }
.article-aside a { display: block; padding: 8px 0; color: var(--muted); font-size: 0.88rem; }
.article-aside a:hover { color: var(--cyan); }
.callout { padding: 16px; }
.callout.warning { border-color: rgba(255, 143, 130, 0.34); background: rgba(255, 143, 130, 0.07); }
.callout p:last-child { margin-bottom: 0; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 !important; list-style: none; }
.checklist li { max-width: none; margin: 0 !important; padding: 12px 14px 12px 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.checklist li::before { content: "✓"; margin-left: -24px; margin-right: 10px; color: var(--cyan); font-weight: 900; }
.guide-group { margin-bottom: 28px; }
.guide-group h2 { margin-bottom: 12px; font-size: 1.5rem; }
.guide-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card { display: flex; min-height: 175px; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-card:hover { border-color: var(--line-strong); }
.guide-card h3 { margin: 24px 0 8px; }
.guide-card p { margin-bottom: 14px; color: var(--muted); }
.guide-card small { margin-top: auto; color: var(--muted); }
.source-list { font-size: 0.9rem; }

@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 920px) {
  .menu-button { display: block; }
  .nav-links { position: absolute; top: 60px; right: 0; display: none; width: min(300px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #07121c; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0 12px; }
  .nav-links .nav-cta { margin: 4px 0 0; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 12ch; }
  .hero-visual { max-height: 430px; }
  .hero-visual img { max-height: 430px; }
  .step-grid, .compact-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
}

@media (max-width: 680px) {
  .hero { padding-top: 20px; }
  .hero-shell, .play-section, .section-grid, .article-hero, .article-layout, .site-footer, .site-header { width: min(var(--max), calc(100% - 22px)); }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .frame-wrap { min-height: 420px; aspect-ratio: auto; }
  .frame-footer, .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-controls { width: 100%; justify-content: flex-start; }
  .frame-actions { width: 100%; justify-content: space-between; }
  .step-grid, .compact-grid, .compact-grid.four-up, .guide-list, .guide-card-grid, .checklist { grid-template-columns: 1fr; }
  .split-content { grid-template-columns: 1fr; gap: 10px; }
  .button { width: 100%; }
  .frame-launch-actions { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
}
