/* Level Vane: "vane and instruments". A night cockpit: dark panels, copper bezels, verdigris rings and signal yellow,
   with Barlow Condensed for readings and headings and Manrope for text. Each game carries its own tone (--t). */
:root {
  --night: #13171c;
  --panel: #1b2027;
  --panel-2: #232a33;
  --line: #2f3842;
  --line-2: #3d4854;
  --text: #e9e4da;
  --muted: #a9b0b8;
  --copper: #c8743a;
  --copper-lt: #e09a63;
  --verdigris: #3f9c8a;
  --yellow: #f2c230;
  --red: #e5533d;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-lt); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--night); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55em 1.25em; border: 1.5px solid var(--line-2); border-radius: 999px;
  background: var(--panel-2); color: var(--text); font: 700 1.02rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { border-color: var(--copper); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.btn--go:hover { background: #ffd451; color: var(--night); border-color: #ffd451; }
.btn--warn { border-color: var(--red); color: #ff8f7d; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 .8em; color: var(--copper-lt); font: 700 .86rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--copper); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(15, 19, 23, .96); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(200, 116, 58, .35); }
.top-bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.logo svg { width: 36px; height: 36px; flex: none; }
.age-chip { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.age-chip b { background: var(--yellow); color: var(--night); padding: .05em .4em; border-radius: 4px; margin-right: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: .6em .7em; border-radius: 8px; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--yellow); }
.gauge { display: flex; border: 1.5px solid var(--copper); border-radius: 10px; overflow: hidden; text-decoration: none; background: #0d1013; }
.gauge > span { display: flex; flex-direction: column; padding: 4px 12px; line-height: 1.05; }
.gauge small { font: 600 .66rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gauge b { font: 800 1.25rem/1.1 var(--display); color: var(--yellow); }
.gauge-lvl { border-left: 1px solid var(--line-2); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 700 1rem var(--display); letter-spacing: .08em; text-transform: uppercase; border-radius: 10px; cursor: pointer; }

/* hero with the compass lobby */
.hero { padding: 56px 0 72px; background: radial-gradient(70% 60% at 75% 40%, rgba(63, 156, 138, .14), transparent 70%), var(--night); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 12ch; }
.lead { font-size: 1.18rem; line-height: 1.6; max-width: 58ch; color: #f1ece3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.hero-read { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; width: max-content; max-width: 100%; }
.hero-read div { padding: 8px 16px; border-right: 1px solid var(--line-2); background: #0f1317; }
.hero-read div:last-child { border-right: 0; }
.hero-read dt { font: 600 .7rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-read dd { margin: 0; font: 800 1.7rem/1.1 var(--display); color: var(--yellow); }

.compass { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; margin: 0 auto; }
.rose { position: absolute; inset: 9%; width: 82%; height: 82%; }
.rose .r1 { fill: #161b21; stroke: var(--copper); stroke-width: .6; }
.rose .r2 { fill: none; stroke: var(--verdigris); stroke-width: .35; stroke-dasharray: 1 1.2; }
.rose .r3 { fill: #1d232b; stroke: var(--line-2); stroke-width: .4; }
.rose .tk { stroke: #5a6672; stroke-width: .35; }
.rose .star { fill: #262e37; stroke: var(--copper); stroke-width: .35; }
.rose .star2 { fill: var(--copper); opacity: .55; }
.rose text { font: 700 3.3px var(--display); fill: var(--muted); text-anchor: middle; letter-spacing: .05em; }
.needle { position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.needle svg { width: 100%; height: 100%; }
.ports { list-style: none; margin: 0; padding: 0; }
.ports li { position: absolute; transform: translate(-50%, -50%); width: 22%; }
.port { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.port-ring { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--copper); box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--t, var(--verdigris)); transition: transform .25s; }
.port-img { width: 100%; height: 100%; object-fit: cover; }
.port:hover .port-ring, .port:focus-visible .port-ring { transform: scale(1.06); }
.port-name { font: 700 .95rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-align: center; background: rgba(15, 19, 23, .85); padding: 2px 8px; border-radius: 6px; }

/* sections */
.sec { padding: 78px 0; }
.sec--tight { padding: 44px 0; }
.sec--panel { background: #171c22; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-lead { max-width: 72ch; color: #d8d2c6; }
.more { font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.split > * { min-width: 0; }
.note { font-size: .92rem; color: var(--muted); max-width: 82ch; margin-top: 14px; }

/* game rows with readings */
.rows { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--t); border-radius: var(--radius); padding: 16px 22px 16px 16px; }
.row-art { display: block; border-radius: 10px; overflow: hidden; }
.row-art img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .4s; }
.row:hover .row-art img { transform: scale(1.04); }
.row-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 .4em; font: 700 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row-body h2, .row-body h3 { font-size: 1.75rem; margin: 0 0 .25em; text-transform: none; }
.row-body h2 a, .row-body h3 a { color: var(--text); text-decoration: none; }
.row-body h2 a:hover, .row-body h3 a:hover { color: var(--yellow); }
.row-line { color: #d8d2c6; margin-bottom: 12px; }
.point { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 50%; border: 2px solid var(--t); color: var(--t); font: 800 .95rem/1 var(--display); letter-spacing: .04em; }
.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.readouts div { background: #0f1317; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; }
.readouts dt { font: 600 .68rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.readouts dd { margin: 0; font: 700 1.05rem/1.2 var(--display); color: var(--text); }
.row-go { margin: 0; }

/* mechanics tiles */
.mech { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mech li { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--t); border-radius: var(--radius); padding: 16px; }
.mech img { width: 64px; height: 64px; flex: none; }
.mech h3 { font-size: 1.3rem; margin-bottom: .2em; }
.mech p { font-size: .96rem; margin-bottom: .5em; color: #d8d2c6; }
.mech a { font-weight: 700; font-size: .95rem; }

/* ledger and the dial of levels */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 22px; }
.ledger div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.ledger dt { font: 600 .74rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger dd { margin: 0; font: 800 1.9rem/1.1 var(--display); color: var(--yellow); }
.gift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gift-row span { font-size: .92rem; color: var(--muted); }
.dial { margin: 0; background: radial-gradient(circle at 50% 45%, #232a33, #14181d 70%); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px 18px 0; }
.dial svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; }
.dial .d1 { fill: none; stroke: var(--copper); stroke-width: .8; }
.dial .d2 { fill: #161b21; stroke: var(--verdigris); stroke-width: .5; stroke-dasharray: 1.2 1.4; }
.dial .pt circle { fill: #262e37; stroke: #5a6672; stroke-width: .6; transition: fill .4s; }
.dial .pt text { font: 800 3.2px var(--display); fill: var(--muted); text-anchor: middle; }
.dial .pt.lit circle { fill: var(--yellow); stroke: var(--copper); }
.dial .pt.lit text { fill: var(--night); }
.dial .vane { transform-box: view-box; transform-origin: 50px 50px; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); }
.dial .shaft { stroke: var(--copper); stroke-width: 2; }
.dial .head { fill: var(--yellow); stroke: var(--copper); stroke-width: .6; }
.dial .tail { fill: var(--copper); }
.dial .hub { fill: var(--copper); }
.dial figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 14px -18px 0; padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: .95rem; color: var(--muted); }
.dial figcaption b { color: var(--yellow); font: 800 1.15rem var(--display); }

/* checklist and questions */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: c; }
.checks li { counter-increment: c; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 60px; }
.checks li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 14px; top: 12px; font: 800 1.5rem/1 var(--display); color: var(--verdigris); }
.checks b { color: var(--yellow); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 46px 14px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font: 800 1.5rem var(--display); color: var(--copper-lt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #d8d2c6; }

/* inner pages */
.inner-hero { padding: 56px 0 40px; background: linear-gradient(180deg, #171c22, var(--night)); border-bottom: 1px solid var(--line); }
.inner-hero h1 { max-width: 18ch; }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--copper); }
.credit-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.credit-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.credit-list .thumb { border-radius: 10px; }
.credit-list span { display: block; color: var(--muted); font-size: .95rem; }

/* filters and tables */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: 999px; font: 700 1rem var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.empty { font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.facts-table, .paytable { border-collapse: collapse; width: 100%; font-size: .95rem; }
.facts-table { min-width: 780px; }
.facts-table th, .facts-table td, .paytable th, .paytable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.facts-table thead th, .paytable thead th { background: #0f1317; font: 700 .9rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--copper-lt); }
.facts-table thead a { color: var(--text); }
.facts-table tbody th { white-space: nowrap; color: var(--muted); font-weight: 600; }
.paytable tbody th { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.paytable tbody th img { width: 48px; height: 48px; background: #0f1317; border-radius: 8px; padding: 4px; }
.paytable small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.paytable td { font: 700 1.1rem var(--display); color: var(--yellow); }

/* game page: the instrument panel */
.game-top { padding: 26px 0 26px; border-top: 6px solid var(--t); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.game-title { display: flex; align-items: center; gap: 18px; }
.game-title .point { min-width: 74px; height: 74px; font-size: 1.6rem; border-width: 3px; }
.game-title h1 { margin: 0; }
.game-title .kicker { margin-bottom: .4em; }
.game-top .lead { margin-top: 16px; }
.stage-sec { padding: 8px 0 44px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.cab { background: linear-gradient(180deg, #262e37, #1a1f26); border: 1px solid var(--line-2); border-radius: 22px; padding: 16px 18px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.cab-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 2px 4px 10px; }
.cab-name { font: 700 1rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--copper-lt); }
.cab-tag { background: var(--yellow); color: var(--night); font: 800 .95rem/1.5 var(--display); letter-spacing: .05em; padding: 0 .6em; border-radius: 6px; text-transform: uppercase; }
.cab-window { position: relative; display: flex; justify-content: center; background: #0b0e11; border: 3px solid var(--copper); border-radius: 14px; padding: 8px; box-shadow: inset 0 0 0 1px #000, 0 0 0 4px #14181d, 0 0 0 5px var(--t); }
.cab-window canvas { display: block; max-width: 100%; }
.cab-cover { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(11, 14, 17, .9); font-weight: 700; border-radius: 10px; }
.cab-msg { min-height: 3.2em; margin: 12px 4px; font-size: .98rem; }
.cab-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 2px 4px; }
.knob { display: flex; align-items: center; gap: 10px; }
.knob button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: radial-gradient(circle at 35% 30%, #4a5561, #232a33 70%); color: var(--text); font: 700 1.4rem/1 var(--body); cursor: pointer; box-shadow: 0 2px 0 #0b0e11; }
.knob button:disabled { opacity: .35; cursor: not-allowed; }
.knob-read b { display: block; font: 800 1.6rem/1 var(--display); color: var(--yellow); text-align: center; min-width: 4ch; }
.knob-read small { display: block; font: 600 .72rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.spin { width: 108px; height: 108px; border-radius: 50%; border: 4px solid var(--copper); background: radial-gradient(circle at 40% 35%, #ffe07a, var(--yellow) 55%, #c99a12); color: var(--night); font: 800 1.5rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 5px #14181d, 0 6px 0 #6b4a0e; justify-self: center; }
.spin:hover { filter: brightness(1.06); }
.spin:active { transform: translateY(3px); box-shadow: 0 0 0 5px #14181d, 0 2px 0 #6b4a0e; }
.spin:disabled { opacity: .45; cursor: not-allowed; }
.cab-read { display: flex; gap: 8px; margin: 0; justify-self: end; }
.cab-read div { background: #0b0e11; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 12px; min-width: 96px; }
.cab-read dt { font: 600 .7rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cab-read dd { margin: 0; font: 800 1.3rem/1.15 var(--display); color: var(--yellow); }
.cab-note { margin: 12px 4px 2px; font-size: .82rem; color: var(--muted); }
.facts { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 8px; }
.facts h2 { font-size: 1.5rem; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--verdigris); color: var(--verdigris); font: 800 1.1rem/30px var(--display); text-align: center; }
.world { margin: 20px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.world figcaption { padding: 14px 16px; font-size: .95rem; color: #d8d2c6; }
.port-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.port--sm .port-ring { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--t); }

/* your logbook */
.logstats { margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.logstats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.logstats dt { font: 600 .74rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.logstats dd { margin: 0; font: 800 1.5rem/1.2 var(--display); color: var(--text); }
.panel { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel h2 { font-size: 1.5rem; margin-top: 1em; }
.panel h2:first-child { margin-top: 0; }
.pause-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pause-state { font-weight: 700; color: var(--yellow); }
select { font: 600 1rem var(--body); min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line-2); background: var(--panel-2); color: var(--text); border-radius: 8px; }

/* footer */
.foot { background: #0d1013; border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.foot-logo svg { width: 34px; height: 34px; }
.foot-about p { color: #d0cabf; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-content: start; }
.foot-nav a { color: var(--text); }
.fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* gate, modal, cookie notice, toast, back to top */
.gate, .modal { position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 12, .84); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-box, .modal-box { background: var(--panel); border: 1px solid var(--line-2); border-top: 4px solid var(--copper); border-radius: 18px; max-width: 470px; width: 100%; padding: 28px 26px; text-align: center; box-shadow: 0 30px 80px -20px #000; }
.gate-badge { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--copper); box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--verdigris); display: flex; align-items: center; justify-content: center; font: 800 2rem var(--display); color: var(--yellow); }
.gate-actions, .modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.gate-sorry { margin-top: 16px; font-weight: 700; color: #ff8f7d; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px -10px #000; transform: translateY(140%); transition: transform .35s ease; }
.cookie.show { transform: none; }
.cookie p { font-size: .92rem; }
.cookie-actions { display: flex; gap: 10px; }
.toast { position: fixed; top: 92px; left: 50%; transform: translate(-50%, -20px); z-index: 70; margin: 0; background: #0d1013; color: var(--text); border: 1.5px solid var(--yellow); padding: 10px 18px; border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--copper); background: var(--panel-2); color: var(--yellow); font: 800 1.2rem var(--body); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
body.cookie-open .to-top { bottom: var(--cookie-h, 16px); }

@media (max-width: 1120px) {
  .row { grid-template-columns: 220px minmax(0, 1fr); }
  .row-go { grid-column: 2; }
  .stage { grid-template-columns: 1fr; }
  .facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .mech { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #0f1317; border-bottom: 1px solid var(--line); padding: 10px 22px 16px; }
  .nav.open { display: flex; }
  .gauge { margin-left: auto; }
  .top-bar { position: relative; gap: 12px; }
  .age-chip > span { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .port-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .top-bar { min-height: 62px; }
  .logo { font-size: 1.25rem; }
  .logo svg { width: 28px; height: 28px; }
  .gauge > span { padding: 3px 8px; }
  .gauge b { font-size: 1.05rem; }
  .gauge-lvl { display: none !important; }
  .top-bar { gap: 10px; }
  .hero { padding: 34px 0 48px; }
  .hero-read { grid-template-columns: repeat(2, auto); }
  .hero-read div:nth-child(2) { border-right: 0; }
  .hero-read div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .ports li { width: 25%; }
  .port-name { font-size: .7rem; padding: 1px 4px; }
  .sec { padding: 54px 0; }
  .row { grid-template-columns: 1fr; padding: 14px; }
  .row-go { grid-column: auto; }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mech { grid-template-columns: 1fr; }
  .ledger, .logstats { grid-template-columns: 1fr 1fr; }
  .facts dl { grid-template-columns: 1fr; }
  .cab { padding: 12px 10px 10px; border-radius: 16px; }
  .cab-bar { grid-template-columns: 1fr 1fr; }
  .spin { grid-column: 1 / -1; order: -1; width: 100%; height: 64px; border-radius: 999px; }
  .cab-read { justify-self: end; }
  .cab-read div { min-width: 0; padding: 4px 8px; }
  .port-row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .credit-list li { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
