/* ProyectoMMO portal — design tokens and shared components.
   Palette mirrors the in-game auth HUD (client/auth_hud/ui.gd): deep navy,
   cyan accent, gold highlight. No external fonts or libraries. */
:root {
  --bg-0: #04121c;
  --bg-1: #071e2b;
  --bg-2: #0b2a3a;
  --bg-3: #10394d;
  --line: #17455b;
  --line-strong: #1f6a86;
  --cyan: #18d7ff;
  --cyan-deep: #0ea5c9;
  --gold: #f3cc52;
  --text: #ecf9ff;
  --muted: #95bfd1;
  --ok: #4ade80;
  --warn: #f3cc52;
  --danger: #ff7b7b;
  --info: #7dd3fc;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(24, 215, 255, .35), 0 8px 30px rgba(24, 215, 255, .12);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --speed: .22s;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --font-small: .9rem;
  --font-body: 1rem;
  --focus-color: var(--gold);
  --focus-width: 3px;
  /* Breakpoints: mobile 480px, shell 1080px, hero 960px; media queries below. */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(24, 215, 255, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(243, 204, 82, .06), transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #7ee8ff; }
:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
kbd { background: var(--bg-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; color: var(--text); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--gold); color: #02233a; padding: .6em 1em; border-radius: var(--radius-s); z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(4, 18, 28, .78); border-bottom: 1px solid rgba(23, 69, 91, .7); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.wordmark-text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; display: inline-flex; }
.wordmark-a { color: var(--text); }
.wordmark-b { background: linear-gradient(90deg, var(--cyan), #9be9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark-mark { filter: drop-shadow(0 0 6px rgba(24, 215, 255, .45)); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: .5em .85em; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; transition: background var(--speed), color var(--speed); }
.site-nav a:hover { color: var(--text); background: rgba(24, 215, 255, .08); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(24, 215, 255, .14); box-shadow: inset 0 0 0 1px rgba(24, 215, 255, .35); }
.site-nav a.nav-play { color: #02233a; background: var(--cyan); }
.site-nav a.nav-play:hover { background: #5ee3ff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2); position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--speed), opacity var(--speed); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-ready .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(4, 18, 28, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: none; }
  .nav-ready .site-nav.is-open, html:not(.nav-ready) .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: .8em 1em; border-radius: var(--radius-s); font-size: 1.05rem; }
  .nav-ready .site-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
  html:not(.nav-ready) .header-row { flex-wrap: wrap; padding-block: var(--space-4); }
  html:not(.nav-ready) .site-nav { position: static; width: 100%; padding: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.5em; border-radius: 12px; border: 1px solid transparent; font-weight: 750; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed); min-height: 48px; max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #34deff, var(--cyan-deep)); color: #02233a; box-shadow: 0 8px 26px rgba(24, 215, 255, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #6ae7ff, #17b7dc); color: #02233a; box-shadow: 0 10px 34px rgba(24, 215, 255, .38); }
.btn-gold { background: linear-gradient(180deg, #ffe07a, var(--gold)); color: #2b2003; }
.btn-gold:hover { background: linear-gradient(180deg, #ffe89b, #ffd86a); color: #2b2003; }
.btn-secondary { background: rgba(7, 30, 43, .8); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--text); background: rgba(24, 215, 255, .08); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn-lg { font-size: 1.1rem; padding: 1em 2em; min-height: 56px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Badges / pills */
.badge { display: inline-flex; align-items: center; gap: .45em; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; border: 1px solid; }
.badge-dot { width: .55em; height: .55em; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-ok { color: var(--ok); border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.badge-dev { color: var(--gold); border-color: rgba(243, 204, 82, .4); background: rgba(243, 204, 82, .08); }
.badge-soon { color: var(--info); border-color: rgba(125, 211, 252, .4); background: rgba(125, 211, 252, .08); }
.badge-unknown { color: var(--muted); border-color: rgba(149, 191, 209, .4); background: rgba(149, 191, 209, .08); }
.badge-danger { color: var(--danger); border-color: rgba(255, 123, 123, .4); background: rgba(255, 123, 123, .08); }
.status-pill { display: inline-flex; align-items: center; gap: .5em; color: var(--muted); text-decoration: none; font-size: .9rem; }
.platform-name svg, .roadmap-col h3 svg { width: 22px; height: 22px; flex: none; }
.tab svg, .toc svg { width: 1em; height: 1em; }
.status-pill .badge-dot { color: var(--muted); }
.status-pill[data-state="ok"] .badge-dot { color: var(--ok); }
.status-pill[data-state="down"] .badge-dot { color: var(--danger); }

/* Sections / cards */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-head { max-width: 70ch; margin-bottom: 32px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: .6em; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: linear-gradient(180deg, rgba(11, 42, 58, .85), rgba(7, 30, 43, .92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed); }
.card:hover { border-color: var(--line-strong); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), var(--glow); }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(24, 215, 255, .1); color: var(--cyan); border: 1px solid rgba(24, 215, 255, .25); }
.card-icon svg { width: 26px; height: 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-media { margin: -24px -24px 18px; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.panel { background: rgba(7, 30, 43, .75); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.notice { border-left: 4px solid var(--cyan); background: rgba(24, 215, 255, .06); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.notice-warn { border-left-color: var(--gold); background: rgba(243, 204, 82, .06); }
.notice-danger { border-left-color: var(--danger); background: rgba(255, 123, 123, .06); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: .3em .75em; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }

/* Page hero (secondary pages) */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(24, 215, 255, .06), transparent); }
.page-hero h1 { margin-bottom: .3em; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg-grid { position: absolute; inset: -20% 0 0; background-image: linear-gradient(rgba(24, 215, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 215, 255, .08) 1px, transparent 1px); background-size: 32px 32px; transform: perspective(700px) rotateX(58deg); transform-origin: 50% 100%; mask-image: linear-gradient(180deg, transparent 10%, #000 65%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 65%, transparent 100%); }
.hero-bg-glow { position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg-glow.a { background: rgba(24, 215, 255, .35); top: -20%; right: -10%; }
.hero-bg-glow.b { background: rgba(243, 204, 82, .18); bottom: -30%; left: -10%; animation-delay: -6s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-title { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; margin-bottom: .35em; }
.hero-title .wordmark-b { display: inline; }
.hero-title small { display: block; font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .4em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.hero-meta svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.hero-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0d3346, #061a27 60%, #04121c); box-shadow: var(--shadow), var(--glow); overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-art-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.hero-art-caption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); background: rgba(4, 18, 28, .7); padding: 8px 12px; border-radius: 10px; backdrop-filter: blur(6px); }
.hero-art-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 4px); pointer-events: none; mix-blend-mode: multiply; }

/* Features */
.feature-list { counter-reset: feature; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.stat { background: rgba(7, 30, 43, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 1.6rem; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Platforms */
.platform { display: flex; flex-direction: column; gap: 14px; }
.platform-name { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.platform-requirements { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.platform .btn { align-self: flex-start; }

/* News */
.news-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.news-card time { color: var(--muted); font-size: .88rem; display: block; margin-bottom: .4em; }
.news-card h3 { margin-top: 4px; }
.news-card .badge { margin-bottom: 8px; }
.article { max-width: 72ch; }
.article header { margin-bottom: 28px; }
.article time { color: var(--muted); }
.article img { border-radius: var(--radius); border: 1px solid var(--line); margin: 20px 0; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* Status */
.status-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.status-item { background: rgba(7, 30, 43, .8); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.status-item h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.05rem; }
.status-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.status-item dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.status-item dt { color: var(--muted); }
.status-item dd { margin: 0; font-family: var(--mono); word-break: break-all; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 460px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input { padding: .75em .9em; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-0); color: var(--text); }
.field input:focus-visible { outline-offset: 0; border-color: var(--cyan); outline-color: var(--cyan); }
.field small { color: var(--muted); }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.4em; }
.form-error:empty { display: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: transparent; border: 0; padding: .7em 1em; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }

/* Help / FAQ */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.toc a { font-size: .9rem; padding: .35em .8em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }
details.faq { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(7, 30, 43, .6); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--muted); }
.controls-table { width: 100%; border-collapse: collapse; }
.controls-table th, .controls-table td { text-align: left; padding: .6em .5em; border-bottom: 1px solid var(--line); }
.controls-table th { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Roadmap */
.roadmap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.roadmap-col h3 { display: flex; align-items: center; gap: 10px; }
.roadmap-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.roadmap-col li { background: rgba(7, 30, 43, .7); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.roadmap-col li small { display: block; color: var(--muted); }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(4, 18, 28, .9); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--cyan); }
.footer-tagline { color: var(--muted); max-width: 44ch; }
.footer-meta { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-meta p { margin: 0; }
.footer-provisional { max-width: 70ch; }

/* Utilities */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.error-page { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.error-page h1 { font-size: clamp(3rem, 12vw, 7rem); color: var(--cyan); margin-bottom: 0; }
.offline-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; background: var(--bg-3); border: 1px solid var(--gold); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); }
.offline-banner[hidden] { display: none; }

/* Intrinsic sizing keeps text and controls within every reviewed viewport. */
.site-main, .header-row, .grid > *, .hero-grid > *, .footer-grid > *, .platform-name, .field { min-width: 0; }
.site-main, .card, .panel, .notice, .prose, .footer-meta, .build-details { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; }
input, select, textarea { min-width: 0; max-width: 100%; }
.wordmark-mark { flex: none; }
.global-alerts > :first-child { margin-top: var(--space-4); }
.build-details, .download-details { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
.build-details dt, .download-details dt { color: var(--muted); }
.build-details dd, .download-details dd { margin: 0; overflow-wrap: anywhere; }
.download-checksum { overflow-wrap: anywhere; user-select: all; }
.card-head, .status-item h3 { flex-wrap: wrap; }
.badge { max-width: 100%; }
.hero-meta span { white-space: normal; }
.controls-wrap { overflow-x: auto; max-width: 100%; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); max-width: none; }
.home-steps { list-style: none; padding: 0; margin: 0; }
.home-cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--line-strong); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .hero-actions .btn, .platform .btn, .btn-row .btn { width: 100%; }
  .hero-art-caption { flex-direction: column; gap: var(--space-1); }
  .status-item dl, .build-details, .download-details { grid-template-columns: minmax(0, 1fr); }
  .tab { padding-inline: var(--space-2); }
  .site-footer li a, .toc a { display: inline-flex; align-items: center; min-height: 44px; }
}
