/* ==========================================================================
   Random hədiyyə — "Kosmos"
   Tokens are copied verbatim from design/design-tokens.css; everything below
   rebuilds the mockups (design/pages) as responsive components.
   Mobile layout < 768px, web layout ≥ 768px (the field scales down to 1024).
   ========================================================================== */

/* ---------- fonts (self-hosted, T18) ----------
   The woff2 files are the variable fonts Google Fonts serves (one file per subset holds every
   weight); licences next to them in fonts/OFL-*.txt. Only latin, latin-ext (az) and cyrillic are
   shipped; unicode-range keeps a page from downloading a subset it does not use.
   The ?v= suffix makes the URLs immutable-cacheable — bump it here AND in the preload list in
   layouts/app.blade.php when a file changes. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2?v=1) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2?v=1) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin.woff2?v=1) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-ext.woff2?v=1) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2?v=1) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* arrows (→ in links) — the only symbols the UI uses; Space Grotesk has none, so it borrowed Onest's */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-symbols.woff2?v=1) format("woff2");
  unicode-range: U+2190-2199; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2?v=1) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2?v=1) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* mono Cyrillic: ru labels set in mono (table heads, field hint, dimension words) */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2?v=1) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Metric-matched stand-ins shown until the web font arrives, so the swap does not reflow the
   56–64 px hero title. size-adjust = average advance of the web font (weight 500) over Arial's
   on the landing copy; ascent/descent = the web font's hhea metrics ÷ size-adjust.
   Their unicode-range is the web font's own, so after the swap a glyph the web font lacks still
   falls through to the next real family (→ to Onest), not to Arial. */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 109.5%; ascent-override: 89.9%; descent-override: 26.7%; line-gap-override: 0%;
  unicode-range: U+0000-02FF, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 104%; ascent-override: 93.3%; descent-override: 29.3%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Roboto Mono");
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --space: #05070F;
  --surface: rgba(199, 211, 240, 0.03);
  --surface-input: rgba(199, 211, 240, 0.04);
  --line: #22304F;
  --line-strong: #2E3D62;
  --text: #E8EEFC;
  --text-2: #C7D3F0;
  --text-3: #8E9DC4;
  --text-4: #6E7FA8;
  --gold: #F0C86A;
  --gold-soft: #F5D98F;
  --gold-tint: rgba(240, 200, 106, 0.14);
  --on-gold: #05070F;
  --danger: #E86A5A;
  --nebula-blue: #3B4A82;
  --nebula-deep: #26315A;
  --nebula-violet: #6E4A7A;
  --nebula-teal: #2E6A82;
  --star: #C7D3F0;
  --box-front: linear-gradient(180deg, #1F2949, #131B33);
  --box-back: linear-gradient(180deg, #19213D, #10162C);
  --box-left: linear-gradient(180deg, #151C36, #0D1227);
  --box-right: linear-gradient(180deg, #222D50, #161E39);
  --box-bottom: #0B1022;
  --lid-front: linear-gradient(180deg, #2E3A62, #1F2948);
  --lid-back: linear-gradient(180deg, #212C4F, #161E3A);
  --lid-left: linear-gradient(180deg, #1C2646, #131B35);
  --lid-right: linear-gradient(180deg, #27335C, #1B2441);
  --lid-top: linear-gradient(140deg, #36446F, #222C50);
  --box-edge: rgba(123, 138, 180, 0.40);
  --dim-line: #8E9DC4;
  --dim-ext: #5E6E96;
  --dim-chip-bg: rgba(5, 7, 15, 0.88);
  --font-sans: "Space Grotesk", "Space Grotesk Fallback", "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-panel: 28px;
  --radius-chip: 5px;
  --tap-min: 44px;
  --cta-height: 58px;
  --tier-height: 46px;
  --gutter: 24px;
  --maxw: 1344px;
  --ease-flight: cubic-bezier(0.18, 0.85, 0.22, 1);
  --ease-anticipate: cubic-bezier(0.3, 0, 0.2, 1);
  --t-hover: 220ms;
}
@media (min-width: 768px) { :root { --gutter: 48px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--space); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html[lang="ru"] { --font-sans: "Onest", "Onest Fallback", "Space Grotesk", system-ui, sans-serif; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--space); color: var(--text-2);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); }

.eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-4); font-weight: 500; }
.eyebrow--gold { color: var(--gold); }
.h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.7px; line-height: 1.12; color: var(--text); }
.h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.6px; line-height: 1.15; color: var(--text); }
.lead { font-size: 16px; color: var(--text-3); line-height: 1.55; }
@media (min-width: 768px) {
  .h1 { font-size: 42px; letter-spacing: -1px; line-height: 1.08; }
  .h2 { font-size: 34px; letter-spacing: -0.8px; }
  .lead { font-size: 18px; }
}

/* ---------- sky (decorative, fixed behind everything) ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky svg { width: 100%; height: 100%; }
@keyframes sky-far { from { transform: translate3d(-26px, 8px, 0); } to { transform: translate3d(26px, -8px, 0); } }
@keyframes sky-mid { from { transform: translate3d(34px, -10px, 0); } to { transform: translate3d(-34px, 10px, 0); } }
@keyframes sky-near { from { transform: translate3d(-52px, -14px, 0); } to { transform: translate3d(52px, 14px, 0); } }
.sky-far { animation: sky-far 210s ease-in-out infinite alternate; }
.sky-mid { animation: sky-mid 150s ease-in-out infinite alternate; }
.sky-near { animation: sky-near 96s ease-in-out infinite alternate; }
@keyframes tw-a { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
@keyframes tw-b { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.2; } }
.tw1 { animation: tw-a 3.4s ease-in-out infinite; }
.tw2 { animation: tw-b 5.1s ease-in-out infinite; }
.tw4 { animation: tw-a 4.6s ease-in-out infinite; animation-delay: -2s; }
@keyframes shoot { 0%, 86% { opacity: 0; transform: translate3d(0, 0, 0); } 88% { opacity: 0.9; } 100% { opacity: 0; transform: translate3d(-420px, 190px, 0); } }
.shoot1 { animation: shoot 19s linear infinite; }
.shoot2 { animation: shoot 27s linear infinite; animation-delay: -11s; }

/* ---------- page shell ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 8px; }
@media (min-width: 768px) { .header { padding-top: 30px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--tap-min); }
.brand__word { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; color: var(--text-2); text-transform: uppercase; white-space: nowrap; }
@media (min-width: 380px) { .brand__word { font-size: 15px; } }
.header__right { display: flex; align-items: center; gap: 10px; }
.navlink { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); min-width: var(--tap-min); justify-content: center; padding: 0 12px; border-radius: var(--radius-pill); color: var(--text-3); font-size: 13px; font-weight: 500; text-decoration: none; transition: color var(--t-hover); }
.navlink:hover { color: var(--text); }
.navlink__txt { display: none; }
@media (min-width: 768px) { .navlink__txt { display: inline; } }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.lang a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; letter-spacing: 0.8px; color: var(--text-3); text-decoration: none; transition: color var(--t-hover); }
@media (min-width: 768px) { .lang a { width: 46px; } }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.lang a:focus-visible { outline-offset: -4px; }

.back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); color: var(--text-3); font-size: 15px; font-weight: 500; text-decoration: none; }
.back:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--cta-height); padding: 0 34px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background var(--t-hover), color var(--t-hover), border-color var(--t-hover), opacity var(--t-hover);
}
.btn svg { flex: none; }
.btn--outline { border: 1.5px solid var(--gold); color: var(--gold); }
.btn--outline:hover:not(:disabled) { background: var(--gold-tint); }
.btn--solid { background: var(--gold); color: var(--on-gold); border: 1.5px solid var(--gold); }
.btn--solid:hover { background: var(--gold-soft); }
.btn--tint { border: 1.5px solid var(--gold); background: var(--gold-tint); color: var(--gold); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 500; font-size: 16px; }
.btn--ghost:hover { border-color: var(--text-4); color: var(--text); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; }
.btn[aria-disabled="true"] { pointer-events: none; cursor: default; }
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.iconbtn { width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); transition: border-color var(--t-hover), color var(--t-hover); }
.iconbtn:hover { border-color: var(--text-4); color: var(--text); }
.iconbtn .i-check { display: none; color: var(--gold); }
.iconbtn.is-copied .i-copy { display: none; }
.iconbtn.is-copied .i-check { display: block; }

/* ---------- tier selector ---------- */
.tiers { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tiers__row { display: flex; gap: 9px; width: 100%; justify-content: center; }
.tier {
  flex: 1 1 0; max-width: 150px; height: var(--tier-height); border: 1px solid var(--line); border-radius: 23px;
  font-size: 13px; font-weight: 500; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; transition: border-color var(--t-hover), color var(--t-hover), background var(--t-hover);
}
@media (min-width: 768px) { .tier { flex: 0 0 150px; } }
.tier:hover { color: var(--text); border-color: var(--line-strong); }
.tier[aria-current="true"] { border-color: var(--gold); background: var(--gold-tint); color: var(--gold); font-weight: 600; }
.tier[aria-current="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tiers.is-attention .tiers__row { border-radius: 30px; box-shadow: 0 0 0 2px var(--gold); padding: 6px; width: auto; }

/* ---------- serial field ---------- */
.serial { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 9px 9px 9px 16px; min-width: 0; }
.serial__body { min-width: 0; flex: 1; }
.serial__label { font-size: 11px; letter-spacing: 1.4px; color: var(--text-4); text-transform: uppercase; margin-bottom: 3px; }
.serial__value { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
@media (max-width: 380px) { .serial__value { font-size: 11px; } }

/* ==========================================================================
   3D gift box — real CSS geometry (body + lid cuboids). Sizes are set per box
   by kosmos.js from the gift's w × h × d.
   ========================================================================== */
.gbox { display: block; position: relative; width: 260px; height: 260px; transform-style: preserve-3d; }
.c3d-body, .c3d-lid { position: absolute; display: block; transform-style: preserve-3d; }
.c3d-face { position: absolute; left: 0; top: 0; display: block; overflow: hidden; backface-visibility: hidden; border: 1px solid var(--box-edge); }
.c3d-band { position: absolute; left: 50%; top: 0; width: 18%; height: 100%; transform: translateX(-50%); display: block; background: var(--gold); }
.c3d-cv { position: absolute; left: 50%; top: 0; width: 15%; height: 100%; transform: translateX(-50%); display: block; background: var(--gold); }
.c3d-ch { position: absolute; top: 50%; left: 0; height: 15%; width: 100%; transform: translateY(-50%); display: block; background: var(--gold); }
.c3d-bl, .c3d-br { position: absolute; top: 30%; width: 30%; height: 22%; display: block; border: 3px solid var(--gold-soft); background: rgba(240, 200, 106, 0.28); }
.c3d-bl { left: 16%; border-radius: 28px 8px 28px 8px; transform: rotate(-16deg); }
.c3d-br { right: 16%; border-radius: 8px 28px 8px 28px; transform: rotate(16deg); }
.c3d-bc { position: absolute; left: 50%; top: 36%; width: 14%; height: 14%; transform: translateX(-50%); display: block; border-radius: 50%; background: var(--gold-soft); }
.f-fr { background: var(--box-front); }
.f-bk { background: var(--box-back); }
.f-lf { background: var(--box-left); }
.f-rt { background: var(--box-right); }
.f-bt { background: var(--box-bottom); }
.c3d-lid .f-fr { background: var(--lid-front); }
.c3d-lid .f-bk { background: var(--lid-back); }
.c3d-lid .f-lf { background: var(--lid-left); }
.c3d-lid .f-rt { background: var(--lid-right); }
.c3d-lid .f-tp { background: var(--lid-top); }
/* Image-failed state (page 05): outline only, no fills. Also the fallback when
   the browser can't do 3D transforms. */
.gbox.is-outline .c3d-face { background: transparent !important; border-color: var(--text-4); }
.gbox.is-outline .c3d-band, .gbox.is-outline .c3d-cv, .gbox.is-outline .c3d-ch { background: transparent; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.gbox.is-outline .c3d-ch { border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.gbox.is-outline .c3d-bl, .gbox.is-outline .c3d-br, .gbox.is-outline .c3d-bc { background: transparent; border-width: 1px; }
@supports not (transform-style: preserve-3d) {
  .gbox .c3d-face { background: transparent !important; border-color: var(--text-4); }
}

/* idle motion */
@keyframes cos-dr1 { from { transform: translate(0, 0); } to { transform: translate(18px, -24px); } }
@keyframes cos-dr2 { from { transform: translate(0, 0); } to { transform: translate(-20px, 16px); } }
@keyframes cos-dr3 { from { transform: translate(0, 0); } to { transform: translate(14px, 22px); } }
@keyframes cos-dr4 { from { transform: translate(0, 0); } to { transform: translate(-16px, -18px); } }
@keyframes cos-dr5 { from { transform: translate(0, 0); } to { transform: translate(22px, 12px); } }
.cos-d1 { animation: cos-dr1 11s ease-in-out infinite alternate; }
.cos-d2 { animation: cos-dr2 13s ease-in-out infinite alternate; }
.cos-d3 { animation: cos-dr3 9s ease-in-out infinite alternate; }
.cos-d4 { animation: cos-dr4 15s ease-in-out infinite alternate; }
.cos-d5 { animation: cos-dr5 12s ease-in-out infinite alternate; }
@keyframes cos-sp1 { from { transform: rotateY(0) rotateZ(0); } to { transform: rotateY(360deg) rotateZ(-12deg); } }
@keyframes cos-sp2 { from { transform: rotateX(0) rotateZ(0); } to { transform: rotateX(-360deg) rotateZ(10deg); } }
@keyframes cos-sp3 { from { transform: rotateY(0) rotateX(8deg); } to { transform: rotateY(-360deg) rotateX(8deg); } }
@keyframes cos-sp4 { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes cos-sp5 { from { transform: rotateZ(0) rotateY(16deg); } to { transform: rotateZ(360deg) rotateY(16deg); } }
.cos-s1 { animation: cos-sp1 18s linear infinite; }
.cos-s2 { animation: cos-sp2 23s linear infinite; }
.cos-s3 { animation: cos-sp3 27s linear infinite; }
.cos-s4 { animation: cos-sp4 31s linear infinite; }
.cos-s5 { animation: cos-sp5 25s linear infinite; }
@keyframes cos-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes cos-tilt { from { transform: rotateY(-14deg) rotateX(6deg); } to { transform: rotateY(14deg) rotateX(-6deg); } }
.cos-dc { animation: cos-float 9s ease-in-out infinite alternate; }
.cos-sc { animation: cos-tilt 16s ease-in-out infinite alternate; }

/* ==========================================================================
   Box field (page 01 + states 02–05)
   ========================================================================== */
.orbit { flex: 1; display: flex; flex-direction: column; padding-bottom: 24px; }
/* page title + intro above the tier pills (T11): quiet, so the field stays the hero */
.orbit__head { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.orbit__title { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; color: var(--text); text-wrap: balance; }
.orbit__intro { font-size: 14px; line-height: 1.5; color: var(--text-3); max-width: 620px; text-wrap: pretty; }
.orbit__tiers { margin-top: 16px; }
@media (min-width: 768px) {
  .orbit__head { margin-top: 4px; }
  .orbit__title { font-size: 24px; letter-spacing: -0.4px; }
  .orbit__intro { font-size: 15px; }
  .orbit__tiers { margin-top: 14px; }
}

/* The wrap has the artboard's aspect ratio (web 1344×480, mobile 342×420), so the space is reserved
   before kosmos.js runs (T20); the field fills it and JS only fine-tunes the pixel size. Rings, glow
   and the stage state sit at the artboard's stage centre in % (web 672,240; mobile 171,190). */
.field-wrap { position: relative; width: 100%; margin-top: 8px; aspect-ratio: 1344 / 480; }
.field { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; margin: 0 auto; transform-origin: 50% 50%; transition: transform 420ms var(--ease-anticipate); }
.field > .field__rings { left: 27.679%; top: -12.5%; width: 44.643%; height: 125%; }
.field > .field__glow { left: 30.655%; top: 66.25%; width: 38.69%; height: 33.58%; }
.field > .stage-state { left: 50%; top: 50%; }
@media (max-width: 767px) {
  .field-wrap { aspect-ratio: 342 / 420; }
  .field > .field__rings { left: 0.292%; top: 9.524%; width: 99.415%; height: 80.952%; }
  .field > .field__glow { left: 6.14%; top: 59.524%; width: 87.719%; height: 22.143%; }
  .field > .stage-state { top: 45.238%; }
}
.is-picking .field { transform: rotate(3deg) scale(0.972); }

.field__rings, .field__glow { position: absolute; pointer-events: none; }
.field__glow { transform-origin: 50% 50%; }
@keyframes cos-breathe { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 1; transform: scale(1.1); } }
.is-picking .field__glow { animation: cos-breathe 400ms ease-in-out infinite alternate; }

.slot {
  position: absolute; left: 0; top: 0; width: 260px; height: 260px; margin: -130px 0 0 -130px;
  perspective: 1100px; border-radius: 50%;
  transition: transform 900ms var(--ease-flight), opacity 600ms ease;
}
.slot:focus-visible { outline: none; }
.slot__drift { display: block; position: relative; width: 260px; height: 260px; transform-style: preserve-3d; perspective: 900px; }
.slot__inner { display: block; position: relative; width: 260px; height: 260px; transform-style: preserve-3d; }
.slot__halo { position: absolute; left: -14px; top: -14px; width: 288px; height: 288px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transition: opacity var(--t-hover); }
.slot__tip { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-family: var(--font-mono); font-size: 26px; letter-spacing: 2px; color: var(--gold); opacity: 0; transition: opacity var(--t-hover); }
.slot:not([aria-pressed="true"]):hover .slot__halo, .slot:not([aria-pressed="true"]):focus-visible .slot__halo { opacity: 0.85; }
.slot:not([aria-pressed="true"]):focus-visible .slot__halo { border-width: 6px; }
@media (hover: hover) and (min-width: 768px) {
  .slot:not([aria-pressed="true"]):hover .slot__tip, .slot:not([aria-pressed="true"]):focus-visible .slot__tip { opacity: 1; }
}
.slot[aria-pressed="true"] { cursor: default; }
@keyframes cos-jit { 0% { transform: rotate(-2deg) translateY(0); } 100% { transform: rotate(2deg) translateY(-6px); } }
.is-picking .slot__drift { animation: cos-jit 150ms ease-in-out infinite alternate; }

.dims { position: absolute; inset: 0; pointer-events: none; z-index: 7; transition: opacity 400ms ease; }
.dims svg { position: absolute; left: 0; top: 0; overflow: visible; }
.is-picking .dims, .is-flying .dims { opacity: 0; }
.chip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.6px; color: var(--text); padding: 3px 9px; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: var(--dim-chip-bg); }
.chip--quiet { padding: 0; border: 0; background: none; color: var(--text-3); font-size: 11px; transform: translate(-100%, -50%); }

/* placeholder disc (loading) + empty/error glyphs, centred on the stage */
.stage-state { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; z-index: 4; }
.pulse-disc { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(142, 157, 196, 0.22), rgba(142, 157, 196, 0.02) 70%); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1); } }
.stage-state .h-state { font-size: 18px; font-weight: 500; color: var(--text); max-width: 260px; }
.stage-state p { font-size: 14px; color: var(--text-3); }
.stage-state .stage-hint { max-width: 230px; line-height: 1.45; }

.orbit__bottom { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.result__meta { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.result__label { font-size: 15px; color: var(--text-3); }
.result__spec { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.6px; color: var(--gold); }
.result__sep { display: none; width: 1px; height: 14px; background: var(--line); }
.orbit__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.orbit__actions .serial { width: 100%; }
.orbit__ctas { display: flex; flex-direction: column; gap: 12px; }
.field-hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
.skel { display: block; height: 14px; border-radius: 7px; background: rgba(142, 157, 196, 0.14); animation: pulse 1.4s ease-in-out infinite; }

/* Tablets / small laptops: result centred on top, serial + buttons centred below (wrapping) —
   the single row below only fits from 1200px (it clipped the claim button at 768–1199). */
@media (min-width: 768px) {
  .result__meta { flex-direction: row; justify-content: center; gap: 12px; align-items: center; }
  .result__sep { display: block; }
  .orbit__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; width: auto; gap: 16px; }
  .orbit__actions .serial { width: auto; }
  .orbit__ctas { flex-direction: row; }
  .field-hint { margin-top: 10px; }
}
@media (min-width: 1200px) {
  .orbit__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; text-align: left; margin-top: auto; }
  .result { max-width: 560px; }
  .result__meta { justify-content: flex-start; }
  .orbit__actions { flex-wrap: nowrap; }
}

/* ==========================================================================
   Forms & panels (claim)
   ========================================================================== */
.panel { border: 1px solid var(--line); border-radius: var(--radius-panel); background: linear-gradient(180deg, rgba(20, 28, 54, 0.55), rgba(8, 11, 24, 0.55)); padding: 24px; backdrop-filter: blur(2px); }
@media (min-width: 768px) { .panel { padding: 40px; } }
.field-row { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.field-row label { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: var(--radius-card); border: 1px solid var(--dim-ext);
  background: var(--surface-input); color: var(--text); font: inherit; font-size: 16px; transition: border-color var(--t-hover);
}
.input::placeholder { color: var(--text-4); }
.input:hover { border-color: var(--text-4); }
.input:focus { outline: 2px solid var(--gold); outline-offset: 4px; border-color: var(--gold); }
.input--mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2px; }
.input[aria-invalid="true"] { border-color: var(--gold); }
.err { font-size: 13px; color: var(--gold-soft); display: flex; gap: 8px; align-items: flex-start; }
.note { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 13px; color: var(--text-3); }
.alert { margin-top: 20px; border: 1px solid rgba(240, 200, 106, 0.4); background: var(--gold-tint); color: var(--text); border-radius: var(--radius-card); padding: 14px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.alert a { color: var(--gold); font-weight: 600; }

.split { display: grid; gap: 32px; padding-top: 16px; padding-bottom: 48px; flex: 1; align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr minmax(0, 560px); gap: 64px; align-items: center; align-content: center; padding-bottom: 64px; }
}
.split__intro { display: flex; flex-direction: column; gap: 14px; }
.illus { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1.35; margin-top: 8px; }
.illus--square { aspect-ratio: 1; max-width: 600px; }
.illus svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.illus .stage-box { position: absolute; left: 50%; top: 50%; }

/* claim-done */
.code-block { margin-top: 28px; border: 1px solid var(--gold); border-radius: 20px; background: rgba(240, 200, 106, 0.05); padding: 20px 24px; }
@media (min-width: 768px) { .code-block { padding: 26px 32px; } }
.code-block__value { margin-top: 10px; font-family: var(--font-mono); font-weight: 600; color: var(--gold); font-size: 44px; letter-spacing: 4px; line-height: 1; white-space: nowrap; }
@media (min-width: 768px) { .code-block__value { font-size: 72px; letter-spacing: 6px; } }
.kv { margin-top: 18px; }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv__row:last-child { border-bottom: 0; }
.kv__row dt { color: var(--text-3); }
.kv__row dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.kv__row dd small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .btn-row { flex-direction: row; } }
.hint-line { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.badge-check { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); background: var(--space); display: flex; align-items: center; justify-content: center; z-index: 5; }

/* ---------- history ---------- */
.history { padding-top: 16px; padding-bottom: 56px; flex: 1; }
.history__head { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 28px; }
.htable { width: 100%; border-collapse: collapse; display: none; }
.htable th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-4); font-weight: 500; padding: 0 20px 14px; }
.htable th:last-child, .htable td:last-child { text-align: right; }
.htable td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.htable tr.is-pending td { background: rgba(240, 200, 106, 0.04); }
.htable .box-cell { display: flex; align-items: center; gap: 18px; color: var(--text); font-weight: 500; }
.htable .date, .htable .ser { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.ser-cell { display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.status--pending { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }
.status--muted { color: var(--text-4); font-weight: 500; }
.hcards { display: flex; flex-direction: column; gap: 12px; }
.hcard { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center; }
.hcard.is-pending { border-color: rgba(240, 200, 106, 0.45); }
.hcard__title { color: var(--text); font-weight: 500; }
.hcard__sub { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.hcard__code { grid-column: 1 / 4; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 13px; color: var(--text-3); }
.hcard__code b { font-family: var(--font-mono); color: var(--gold); letter-spacing: 2px; font-size: 16px; }
@media (min-width: 768px) { .htable { display: table; } .hcards { display: none; } }
.empty-card { border: 1px dashed var(--line-strong); border-radius: var(--radius-panel); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.device-note { margin-top: 20px; font-size: 12px; color: var(--text-4); font-family: var(--font-mono); }

/* ---------- system pages (404 / maintenance) ---------- */
.sys { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-top: 12px; padding-bottom: 56px; }
.sys__art { position: relative; width: min(100%, 520px); aspect-ratio: 1.3; }
.sys__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.big404 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-sans); font-weight: 500; font-size: clamp(96px, 26vw, 170px); letter-spacing: -6px; color: var(--text); line-height: 1; }
.sys .coord { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
@keyframes drift-off { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(36px, -22px) rotate(24deg); } }
.drift-off { animation: drift-off 14s ease-in-out infinite alternate; }
@keyframes orbit-dot { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.orbit-dot { transform-origin: 50% 50%; transform-box: view-box; animation: orbit-dot 12s linear infinite; }

/* ==========================================================================
   Landing (home)
   ========================================================================== */
.hero { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 40px; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; min-height: min(760px, calc(100vh - 110px)); padding-top: 8px; } }
.hero__copy { display: flex; flex-direction: column; gap: 18px; }
.hero__title { font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1.06; color: var(--text); text-wrap: balance; }
@media (min-width: 768px) { .hero__title { font-size: 56px; letter-spacing: -1.8px; } }
@media (min-width: 1280px) { .hero__title { font-size: 64px; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .hero__ctas .btn { flex: 0 0 auto; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 12px; color: var(--text-3); background: var(--surface); }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__art { position: relative; width: 100%; aspect-ratio: 1.08; max-width: 640px; justify-self: center; }
.hero__art .rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini { position: absolute; width: 260px; height: 260px; margin: -130px 0 0 -130px; pointer-events: none; }

.section { position: relative; padding: 56px 0; }
/* Landing sections are below the fold: skip their layout/paint until they come near (T19).
   "auto" remembers the real height once rendered, so scrolling back does not jump. */
.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (min-width: 1024px) { .section { contain-intrinsic-size: auto 760px; } }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 32px; }
@media (min-width: 768px) { .section__head { margin-bottom: 48px; } }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

.steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: step; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.step { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.step__num { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.step__icon { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--text-2); margin: 6px 0 4px; }
.step h3 { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.2px; }
.step p { font-size: 14px; color: var(--text-3); }

.hint { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hint { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hint__art { position: relative; width: 100%; aspect-ratio: 1.25; max-width: 560px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: radial-gradient(ellipse at 50% 60%, rgba(59, 74, 130, 0.22), transparent 70%); overflow: hidden; }
.hint__art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(142, 157, 196, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 157, 196, 0.06) 1px, transparent 1px); background-size: 24px 24px; }
.shapes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
@media (min-width: 560px) { .shapes { grid-template-columns: repeat(4, 1fr); } }
.shape { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--surface); }
.shape span { font-size: 13px; color: var(--text-2); }
.shape small { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }

.tier-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .tier-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; text-decoration: none; transition: border-color var(--t-hover), background var(--t-hover); min-height: 280px; }
.tcard:hover { border-color: var(--line-strong); background: rgba(199, 211, 240, 0.05); }
.tcard--mid { border-color: rgba(240, 200, 106, 0.35); }
.tcard__rings { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; opacity: 0.9; pointer-events: none; }
.tcard__orbit { display: flex; gap: 5px; }
.tcard__orbit i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--text-4); }
.tcard__orbit i.on { background: var(--gold); border-color: var(--gold); }
.tcard h3 { font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: -0.5px; }
.tcard p { font-size: 15px; color: var(--text-3); flex: 1; }
.tcard__go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 15px; }

.pickup { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .pickup { grid-template-columns: 1fr 1fr; gap: 56px; } }
.flow { display: flex; flex-direction: column; gap: 14px; }
.flow__arrow { align-self: center; color: var(--text-4); }
.flow .code-block { margin-top: 0; }
.flow .code-block__value { font-size: 40px; }
@media (min-width: 768px) { .flow .code-block__value { font-size: 56px; } }
.sample { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-4); border: 1px solid var(--line); border-radius: var(--radius-chip); padding: 1px 6px; margin-left: 8px; }
.rules { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.rules li svg { flex: none; margin-top: 3px; color: var(--gold); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 17px; font-weight: 500; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: transform var(--t-hover), color var(--t-hover), border-color var(--t-hover); }
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--gold); border-color: var(--gold); }
.faq details p { padding: 0 48px 20px 0; color: var(--text-3); font-size: 15px; }

.final { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 0 88px; overflow: hidden; }
.final .rings { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); pointer-events: none; }
.final > *:not(.rings) { position: relative; }

.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer__in { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 768px) { .footer__in { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.footer__links a { color: var(--text-3); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--text); }
.footer small { color: var(--text-4); font-size: 12px; }

/* reveal on scroll (landing only; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms var(--ease-flight); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
/* Motion budget (T19): kosmos.js pauses every animation while the tab is hidden (html.is-hidden)
   and inside blocks scrolled out of view (.is-offscreen). */
html.is-hidden *, .is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* Save-Data gets the reduced-motion treatment (kosmos.js sets html.reduce-motion). */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition-duration: 1ms !important; }
html.reduce-motion .field, html.reduce-motion .slot { transition: none !important; }
html.reduce-motion .is-picking .field { transform: none; }
html.reduce-motion.js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .field, .slot { transition: none !important; }
  .is-picking .field { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* broken orbit rings (error state) */
.field__rings .broken { display: none; }
.field__rings.is-broken .normal { display: none; }
.field__rings.is-broken .broken { display: inline; }

/* narrow phones: keep brand + history + language switcher on one line */
@media (max-width: 440px) {
  .brand { gap: 8px; }
  .brand__word { font-size: 12px; letter-spacing: 1.2px; }
  .header__right { gap: 2px; }
  .lang a { width: 40px; }
  .navlink { padding: 0 6px; }
}
.serial { text-align: left; }
.field-hint { text-align: center; margin-top: 14px; }
@media (min-width: 1200px) { .field-hint { text-align: left; } }

/* ---------- account (login / register) ---------- */
.auth-why { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 520px; }
.check { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; min-height: 44px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-3); }
.auth-switch a { color: var(--gold); font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }
.account-line { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.account-line b { color: var(--text-2); font-weight: 500; }
/* Sign in with Google (F11): Google's light button — white, #747775 border, #1F1F1F label, the four-colour G. */
.btn--google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; height: 52px; padding: 0 24px; gap: 12px; font-size: 16px; font-weight: 500; }
.btn--google:hover { background: #F2F2F2; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 10px; color: var(--text-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-on { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.google-on svg { color: var(--gold); }
@media (max-width: 440px) { .navlink--history { display: none; } }

/* ---------- phase 2 ---------- */
.linkbtn { color: var(--text-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.linkbtn:hover { color: var(--text); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.account-grid { display: grid; gap: 18px; }
@media (min-width: 1024px) { .account-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.danger-zone { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0 20px; }
.danger-zone summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; color: var(--text-3); font-size: 15px; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone[open] { padding-bottom: 22px; }
@media (min-width: 1024px) { .split--done { grid-template-columns: 1fr minmax(0, 600px); } }
@media (max-width: 1023px) { .split--done .illus { max-width: 320px; margin: 0 auto; } }


/* ---------- F12: checkout and order pages ---------- */
/* long pages: the intro (back link, box) stays at the top instead of being centred against the form */
@media (min-width: 1024px) {
  .split--checkout, .split--order { align-items: start; }
  .split--checkout .split__intro, .split--order .split__intro { position: sticky; top: 24px; }
}
.co-section { border: 0; margin: 30px 0 0; padding: 0; min-width: 0; }
.checkout > fieldset.co-section:first-of-type { margin-top: 8px; }
.co-section > legend { padding: 0; }
.co-pair { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .co-pair { grid-template-columns: 1fr 1fr; } }
.co-refresh { margin-top: 16px; }
.co-method { margin-top: 8px; }
.co-method__title { display: block; margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--gold); }
.input--area { min-height: 96px; padding: 14px 18px; line-height: 1.45; resize: vertical; }
select.input { cursor: pointer; }
.methods { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface-input); cursor: pointer; transition: border-color var(--t-hover), background var(--t-hover); }
.method:hover { border-color: var(--text-4); }
.method:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.method input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.method__name { color: var(--text); font-weight: 500; }
.method__fee { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.method__eta { grid-column: 2 / 4; font-size: 13px; color: var(--text-3); }
.kv__row--total dt { color: var(--text-2); font-weight: 500; }
.kv__row--total dd { color: var(--gold); font-size: 18px; }
.order .co-section { margin-top: 32px; }
.order__msg { white-space: pre-line; font-weight: 400; }
.order-link { color: var(--text); text-decoration: none; }
.order-link:hover { color: var(--gold); }
.timeline { list-style: none; margin: 14px 0 0 4px; padding: 0 0 0 18px; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--text-3); }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.timeline li.is-current::before { background: var(--gold); }
.timeline__label { color: var(--text); font-weight: 500; }
.timeline time { font-family: var(--font-mono); font-size: 12px; }
