/* KND Verse · kndverse.com — the shared shell of the site's inner pages (News, How to play, Support, …): header, language
   switch, footer, page frame and a few content primitives. Pages load tokens.css + this file (+ their own sheet) and
   assets/site.js, which injects the header/footer into <header data-site-header> / <footer data-site-footer>.
   Bilingual: write both languages side by side — <span data-lang="es">…</span><span data-lang="en">…</span> — and the
   html[data-lang] attribute (site.js) shows one. The home (index.html + landing.css) stays its own full-screen page. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; color: var(--kv-text); font: 16px/1.6 var(--kv-font);
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 255, .22), transparent 70%), var(--kv-void); }
img { max-width: 100%; height: auto; }
a { color: var(--kv-cyan-hi); }
:focus-visible { outline: 3px solid var(--kv-cyan-hi); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: fixed; z-index: 90; left: 8px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--kv-cyan); color: var(--kv-ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }

/* one language at a time (html[data-lang] from site.js; Spanish until it runs) */
html:not([data-lang="en"]) [data-lang="en"], html[data-lang="en"] [data-lang="es"] { display: none !important; }

/* ── header ── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(5, 4, 15, .82); border-bottom: 1px solid var(--kv-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-head__in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.site-brand { display: block; width: 150px; flex: none; }
.site-brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: #dfe3ff; text-decoration: none; font: 700 12px/1 var(--kv-hud); letter-spacing: .12em; text-transform: uppercase; }
.site-nav a:hover { color: var(--kv-cyan-hi); background: rgba(111, 244, 255, .06); }
.site-nav a[aria-current="page"] { color: var(--kv-cyan-hi); box-shadow: inset 0 -2px 0 var(--kv-cyan); border-radius: 10px 10px 0 0; }
.site-lang { display: inline-flex; border: 1px solid var(--kv-line); border-radius: 999px; overflow: hidden; flex: none; }
.site-lang button { border: 0; background: none; color: var(--kv-muted); padding: 6px 10px; cursor: pointer; font: 700 11px/1 var(--kv-mono); letter-spacing: .1em; }
.site-lang button[aria-pressed="true"] { background: var(--kv-cyan); color: var(--kv-ink); }
.site-play { flex: none; padding: 9px 16px; border-radius: 12px; background: linear-gradient(180deg, var(--kv-cyan-hi), var(--kv-cyan)); color: var(--kv-ink);
  text-decoration: none; font: 900 13px/1 var(--kv-display); font-stretch: 120%; letter-spacing: .1em; border: 2px solid var(--kv-void); box-shadow: var(--kv-bevel-sm); }
.site-menu { display: none; border: 1px solid var(--kv-line); background: none; color: var(--kv-text); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .site-head__in { flex-wrap: wrap; gap: 10px; }
  .site-brand { width: 120px; }
  .site-menu { display: inline-block; margin-left: auto; }
  .site-nav { order: 9; width: 100%; flex-direction: column; margin: 0; display: none; }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; }
}
/* phones: the brand, the menu, ES/EN and PLAY share one row (the PLAY button used to wrap to a second line at 390 px) */
@media (max-width: 480px) {
  .site-head__in { padding: 8px 14px; gap: 8px; }
  .site-brand { width: 96px; }
  .site-lang button { padding: 5px 7px; font-size: 10px; }
  .site-play { padding: 7px 10px; font-size: 11px; letter-spacing: .06em; }
}

/* ── page frame ── */
.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 20px 72px; }
.site-hero { text-align: center; padding: 28px 0 36px; }
.site-kicker { margin: 0 0 10px; font: 600 11px/1 var(--kv-mono); letter-spacing: .42em; color: #6aa6b8; text-transform: uppercase; }
.site-title { margin: 0; font: 500 clamp(30px, 5vw, 58px)/1.05 var(--kv-hud); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-lede { max-width: 62ch; margin: 16px auto 0; color: var(--kv-muted); font-size: 17px; }
.site-h2 { margin: 48px 0 16px; font: 700 20px/1.2 var(--kv-hud); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-prose { max-width: 72ch; }
.site-prose p, .site-prose li { color: #dfe3ff; }
.site-card { background: var(--kv-panel); border: 1px solid var(--kv-line); border-radius: var(--kv-radius); padding: 20px; }
.site-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.site-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--kv-line-strong); background: rgba(16, 13, 48, .9); color: var(--kv-text); text-decoration: none; font: 700 13px/1 var(--kv-hud); letter-spacing: .1em; }
.site-btn--primary { background: linear-gradient(180deg, var(--kv-cyan-hi), var(--kv-cyan)); color: var(--kv-ink); border-color: transparent; }
.site-note { color: var(--kv-muted); font-size: 14px; }
.site-state { text-align: center; color: var(--kv-muted); padding: 40px 0; font: 600 12px/1.5 var(--kv-mono); letter-spacing: .2em; text-transform: uppercase; }

/* ── footer ── */
.site-foot { border-top: 1px solid var(--kv-line); background: rgba(5, 4, 15, .7); }
.site-foot__in { max-width: 1180px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between;
  color: var(--kv-muted); font-size: 13px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: #c6cbf2; text-decoration: none; }
.site-foot a:hover { color: var(--kv-cyan-hi); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
