/* ==========================================================================
   polished-ui tokens v2 · Zyperax "Deep Field"
   A custom theme rather than one off the shelf: the palette is lifted from the
   game's own braxis skin (public/assets/theme/braxis/polished.css) so the
   page and the product it advertises read as one thing.
   ========================================================================== */
:root {
    /* ---- Easing ------------------------------------------------------- */
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-enter:  cubic-bezier(0.17, 1, 0.32, 1);
    --ease-spring: cubic-bezier(0.35, 1.55, 0.65, 1);
    --ease-move:   cubic-bezier(0.66, 0, 0.34, 1);

    /* ---- Duration ----------------------------------------------------- */
    --duration-fast:   150ms;
    --duration-normal: 200ms;
    --duration-slow:   300ms;
    --stagger:         40ms;

    /* ---- Motion distances (zeroed under reduced motion) --------------- */
    --enter-y:     6px;
    --enter-blur:  2px;
    --popover-y:   4px;
    --press-scale: 0.98;

    /* ---- Radius ------------------------------------------------------- */
    --radius-control: 8px;
    --radius-card:    12px;
    --radius-sheet:   20px;

    /* ---- Colour (from the game's skin) -------------------------------- */
    --bg-deep:     #050810;
    --bg-lift:     #070c18;
    --surface:     rgba(12, 20, 40, 0.72);
    --surface-2:   rgba(18, 30, 58, 0.55);
    --accent:      #4dd4ff;
    --accent-2:    #7fffe5;
    --accent-warm: #ffb84d;
    --gold:        #ffd24a;
    --danger:      #ff5d6c;
    --success:     #6cffa1;
    --text:        #e8eef7;
    --text-soft:   #b9c8de;
    --text-dim:    #8aa0bf;
    --ring:        rgba(86, 175, 235, 0.16);
    --ring-hot:    rgba(86, 175, 235, 0.42);
    --shadow-rgb:  2, 6, 18;

    /* ---- Shadows: layered light, hairline ring instead of a border ----- */
    --shadow-card:
        0 0 0 0.5px rgb(var(--shadow-rgb) / 0.60),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.045),
        0 1px 2px rgb(var(--shadow-rgb) / 0.50),
        0 2px 8px rgb(var(--shadow-rgb) / 0.35);
    --shadow-card-hover:
        0 0 0 0.5px var(--ring-hot),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.07),
        0 2px 6px rgb(var(--shadow-rgb) / 0.55),
        0 12px 32px rgb(var(--shadow-rgb) / 0.45);
    --shadow-elevated:
        0 0 0 0.5px var(--ring-hot),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.08),
        0 4px 10px rgb(var(--shadow-rgb) / 0.55),
        0 24px 64px rgb(var(--shadow-rgb) / 0.55);

    /* ---- Type --------------------------------------------------------- */
    --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --tracking-display: -0.02em;
    --tracking-label: 0.09em;
}

@media (prefers-reduced-motion: reduce) {
    :root { --enter-y: 0px; --enter-blur: 0px; --popover-y: 0px; --press-scale: 1; --stagger: 0ms; }
}

/* ==================== base ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    min-height: 100dvh;
    background: var(--bg-deep);
    color: var(--text);
    font: 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: var(--tracking-display);
    line-height: 1.1;
    text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.eyebrow {
    font-family: var(--font-display);
    font-size: 12px; font-weight: 600;
    letter-spacing: var(--tracking-label); text-transform: uppercase;
    color: var(--accent);
}
.lede { color: var(--text-soft); font-size: 17px; max-width: 62ch; }
.dim { color: var(--text-dim); }
.num { font-variant-numeric: tabular-nums; }

/* ==================== entrances ==================== */
@keyframes enter {
    from { opacity: 0; transform: translateY(var(--enter-y)); filter: blur(var(--enter-blur)); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}
.enter { animation: enter var(--duration-slow) var(--ease-smooth) both; }
html:not(.no-js) .reveal { opacity: 0; }
.reveal.is-in {
    animation: enter var(--duration-slow) var(--ease-smooth) both;
    animation-delay: calc(var(--i, 0) * var(--stagger));
}

/* ==================== press ==================== */
.press { transition: transform var(--duration-fast) var(--ease-smooth); }
.press:active { transform: scale(var(--press-scale)); }

/* ==================== buttons ==================== */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 20px;
    border: 0; border-radius: var(--radius-control);
    background: var(--surface-2);
    box-shadow: 0 0 0 0.5px var(--ring);
    font-family: var(--font-display);
    font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
    color: var(--text); cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth),
                background-color var(--duration-normal) var(--ease-smooth),
                color var(--duration-normal) var(--ease-smooth);
}
.btn:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { background: rgba(86, 175, 235, 0.12); box-shadow: 0 0 0 0.5px var(--ring-hot); }
}
.btn .arrow { transition: transform var(--duration-normal) var(--ease-smooth); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover .arrow { transform: translateX(3px); }
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04121c;
    box-shadow: 0 0 0 0.5px rgba(127, 255, 229, 0.45), 0 6px 20px rgba(77, 212, 255, 0.22);
}
@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover {
        background: linear-gradient(135deg, #6adcff, #93ffec);
        box-shadow: 0 0 0 0.5px rgba(127, 255, 229, 0.7), 0 10px 30px rgba(77, 212, 255, 0.32);
    }
}
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }

/* ==================== chips, cards ==================== */
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    height: 28px; padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 0.5px var(--ring);
    font-size: 12px; font-weight: 500; color: var(--text-soft);
    white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.is-live { color: var(--success); }
.chip.is-live .dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.chip.is-soon { color: var(--accent-warm); }
.chip.is-full { color: var(--text-dim); }

.card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card--hover { transition: box-shadow var(--duration-normal) var(--ease-smooth), transform var(--duration-normal) var(--ease-smooth); }
@media (hover: hover) and (pointer: fine) {
    .card--hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
}

/* ==================== starfield ==================== */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-deep); }
.sky::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(60% 40% at 18% 8%, rgba(77, 212, 255, 0.16), transparent 60%),
        radial-gradient(50% 45% at 84% 22%, rgba(127, 255, 229, 0.10), transparent 62%),
        radial-gradient(70% 55% at 50% 108%, rgba(120, 90, 220, 0.16), transparent 64%);
}
.sky-stars {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.2px 1.2px at 68% 14%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1.6px 1.6px at 41% 61%, rgba(190,235,255,0.65), transparent),
        radial-gradient(1.1px 1.1px at 86% 72%, rgba(255,255,255,0.45), transparent),
        radial-gradient(1.3px 1.3px at 26% 84%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 92% 44%, rgba(190,235,255,0.5), transparent),
        radial-gradient(1px 1px at 7% 52%, rgba(255,255,255,0.35), transparent);
    background-size: 620px 620px;
}
@media (prefers-reduced-motion: no-preference) {
    .sky-stars { animation: drift 150s linear infinite; }
    .sky-stars.is-far { opacity: 0.55; background-size: 380px 380px; animation-duration: 260s; animation-direction: reverse; }
    @keyframes drift { to { background-position: 620px 310px; } }
}
/* A faint grid gives the depth a sense of scale the gradients alone do not. */
.sky-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(86, 175, 235, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(86, 175, 235, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ==================== header ==================== */
.head {
    position: sticky; top: 0; z-index: 40;
    transition: background-color var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}
.head.is-stuck {
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0.5px 0 var(--ring);
}
/* Inner pages (account, universes, guide, login, error) have no hero to be transparent over and no
   scroll listener of their own (home.php's is-stuck toggle is wired on the home page only), so their
   header stays solid and blurred all the time instead of only after a scroll: otherwise a page's own
   title or content shows through it once the page scrolls under it. */
body[data-page="inner"] .head {
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0.5px 0 var(--ring);
}
.head-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.head-nav { display: flex; gap: 4px; margin-left: auto; }
.head-nav a {
    padding: 8px 12px; border-radius: var(--radius-control);
    font-size: 14px; color: var(--text-soft);
    transition: color var(--duration-fast) var(--ease-smooth), background-color var(--duration-normal) var(--ease-smooth);
}
@media (hover: hover) and (pointer: fine) {
    .head-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
}
@media (max-width: 860px) { .head-nav { display: none; } .head-in { gap: 16px; } .head-cta { margin-left: auto; } }

/* ==================== hero ==================== */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 64px 0 56px; } }

.hero h1 { font-size: clamp(38px, 6vw, 66px); margin-top: 16px; }
.hero h1 .glow {
    background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, var(--gold) 115%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 20px; font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* The planet is drawn, not photographed: one element, no image request. */
.orb-wrap { position: relative; display: grid; place-items: center; min-height: 340px; }
.orb {
    position: relative;
    width: min(330px, 70vw); aspect-ratio: 1; border-radius: 50%;
    background:
        radial-gradient(38% 34% at 32% 28%, rgba(127, 255, 229, 0.45), transparent 62%),
        radial-gradient(60% 50% at 70% 76%, rgba(46, 92, 180, 0.65), transparent 70%),
        linear-gradient(150deg, #123a5e, #071428 62%, #04101f);
    box-shadow:
        inset -26px -20px 60px rgba(0, 0, 0, 0.78),
        inset 14px 12px 40px rgba(127, 255, 229, 0.10),
        0 0 0 0.5px var(--ring-hot),
        0 0 90px rgba(77, 212, 255, 0.22);
}
.orb::after {
    content: ""; position: absolute; inset: -18%;
    border-radius: 50%;
    border: 1px solid rgba(86, 175, 235, 0.22);
    border-left-color: transparent; border-right-color: transparent;
    transform: rotate(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
    .orb { animation: bob 9s var(--ease-move) infinite; }
    .orb::after { animation: spin 42s linear infinite; }
    @keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
    @keyframes spin { to { transform: rotate(342deg); } }
}

/* ==================== stat band ==================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 18px 20px; border-radius: var(--radius-card); background: var(--surface-2); box-shadow: 0 0 0 0.5px var(--ring); }
.stat-n { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.stat-l { margin-top: 2px; font-size: 12px; color: var(--text-dim); }

/* ==================== sections ==================== */
.section { padding: 88px 0; }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 12px; }
.section-head p { margin-top: 14px; }

/* ==================== universes ==================== */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.uni { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.uni-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.uni-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.uni-host { margin-top: 4px; font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.uni-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.uni-meta div { padding: 10px 12px; border-radius: var(--radius-control); background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 0.5px var(--ring); }
.uni-meta dt { font-size: 11px; color: var(--text-dim); }
.uni-meta dd { margin-top: 2px; font-family: var(--font-display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.uni-bar { height: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 0.5px var(--ring); overflow: hidden; }
.uni-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease-smooth) 200ms; }
.uni.is-in .uni-bar i { transform: scaleX(var(--fill, 0)); }
.uni-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.uni--soon { opacity: 0.72; }

/* ==================== account / SSO ==================== */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; gap: 32px; } }
.sso { padding: 28px; }
.sso h3 { font-size: 20px; }
.sso-list { display: grid; gap: 10px; margin-top: 20px; }
.sso-btn { justify-content: flex-start; gap: 12px; padding: 0 16px; min-height: 48px; font-family: var(--font-body); font-weight: 500; font-size: 14px; }
.sso-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sso-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--text-dim); }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: var(--ring); }
.sso-foot { margin-top: 16px; font-size: 12px; color: var(--text-dim); }

.bullets { display: grid; gap: 18px; margin-top: 28px; }
.bullet { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.bullet-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-control); background: rgba(77, 212, 255, 0.10); box-shadow: inset 0 0 0 0.5px var(--ring-hot); color: var(--accent); }
.bullet-ico svg { width: 17px; height: 17px; }
.bullet h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bullet p { margin-top: 3px; font-size: 14px; color: var(--text-soft); }

/* ==================== features ==================== */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.feat { padding: 22px; }
.feat-ico { width: 30px; height: 30px; color: var(--accent); }
.feat h3 { margin-top: 16px; font-size: 17px; }
.feat p { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
/* The two that carry the pitch get the width; the rest fill in around them. */
.feat--wide { grid-column: span 2; }
@media (max-width: 720px) { .feat--wide { grid-column: span 1; } }

/* ==================== steps ==================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px; padding-top: 30px; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; top: 20px; right: 22px;
    font-family: var(--font-display); font-size: 34px; font-weight: 700;
    color: rgba(86, 175, 235, 0.16); letter-spacing: -0.03em;
}
.step h3 { font-size: 17px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--text-soft); }

/* ==================== faq ==================== */
.faq { max-width: 820px; margin-top: 36px; }
.faq-item { border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    padding: 18px 22px; border: 0; background: none;
    font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text);
    text-align: left; cursor: pointer;
    transition: color var(--duration-fast) var(--ease-smooth);
}
.faq-q .mark { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent); transition: transform var(--duration-normal) var(--ease-smooth); }
.faq-item[data-open="true"] .faq-q .mark { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-normal) var(--ease-smooth); }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; font-size: 15px; color: var(--text-soft); }

/* ==================== cta band ==================== */
.band {
    position: relative; overflow: hidden;
    padding: 56px; border-radius: var(--radius-sheet);
    background:
        radial-gradient(100% 120% at 0% 0%, rgba(77, 212, 255, 0.14), transparent 58%),
        radial-gradient(90% 120% at 100% 100%, rgba(255, 210, 74, 0.10), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-elevated);
    text-align: center;
}
.band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.band p { margin: 14px auto 0; }
.band .hero-cta { justify-content: center; }
@media (max-width: 640px) { .band { padding: 36px 24px; } }

/* ==================== footer ==================== */
.foot { margin-top: 88px; padding: 48px 0 40px; box-shadow: inset 0 0.5px 0 var(--ring); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot h4 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-dim); }
.foot ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.foot li a { font-size: 14px; color: var(--text-soft); transition: color var(--duration-fast) var(--ease-smooth); }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--accent); } }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; box-shadow: inset 0 0.5px 0 var(--ring); font-size: 13px; color: var(--text-dim); }
.foot-note { margin-top: 16px; font-size: 12px; color: var(--text-dim); max-width: 60ch; }

/* ---- Forms -----------------------------------------------------------
   The landing page had no inputs, only a mocked sign-in card. These are the
   first real ones, and they borrow the card's own ring and radius so a form
   reads as part of the same surface rather than as a browser default. */
.field + .field { margin-top: 16px; }

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    background: rgba(0, 0, 0, 0.32);
    border: 0;
    border-radius: var(--radius-control);
    box-shadow: inset 0 0 0 0.5px var(--ring);
    transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.input:hover { box-shadow: inset 0 0 0 0.5px var(--ring-hot); }

.input:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgb(77 212 255 / 0.15);
}

.notice {
    padding: 12px 16px;
    border-radius: var(--radius-control);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 0.5px var(--ring);
}

.notice.is-bad {
    color: var(--danger);
    box-shadow: inset 0 0 0 0.5px currentColor;
}

/* ==================== universe positioning ==================== */
/* The front page has five counters where a card has three, so this row sizes itself. */
.uni-meta--wide { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fit-list { margin-top: 10px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-soft); font-size: 14px; }
.fit-mini-h { margin-top: 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

/* The table scrolls sideways inside its own box, so a phone never scrolls the whole page. */
.compare-scroll { overflow-x: auto; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--ring); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 0.5px solid var(--ring); }
.compare th { white-space: nowrap; }
.compare td { min-width: 160px; }
.compare thead th, .compare thead td { border-top: 0; }
.compare thead th { font-family: var(--font-display); font-size: 16px; }
.compare tbody th { color: var(--text-dim); font-weight: 500; }
.compare .is-current { background: var(--surface-2); }
.compare thead .is-current { color: var(--accent); }
.compare a { color: inherit; }
.compare-note { margin-top: 10px; font-size: 12px; color: var(--text-dim); }

/* The account page's universe table (landing/lib/pages/account.php): one row per universe, inside
   .compare-scroll so a phone never scrolls the page. Wide screens get a table; below 760px each
   row stacks into a labelled block (the td's data-label). */
.uni-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.uni-table th, .uni-table td { padding: 16px 14px; text-align: left; vertical-align: middle; border-top: 0.5px solid var(--ring); white-space: nowrap; }
.uni-table th:first-child, .uni-table td:first-child { padding-left: 22px; }
.uni-table th:last-child, .uni-table td:last-child { padding-right: 22px; }
.uni-table thead th {
    padding-top: 14px; padding-bottom: 12px;
    border-top: 0; border-bottom: 0.5px solid var(--ring-hot);
    font-family: var(--font-display); font-size: 11px; font-weight: 600;
    letter-spacing: var(--tracking-label); text-transform: uppercase;
    color: var(--text-dim);
}
.uni-table thead + tbody tr:first-child > * { border-top: 0; }
.uni-table .uni-unit { letter-spacing: 0.02em; text-transform: none; opacity: 0.8; }
.uni-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.uni-table tbody th { font-weight: 500; }
.uni-table .uni-name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.uni-table .uni-host { margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.uni-table .uni-speed { color: var(--text-soft); }
.uni-table .uni-note { margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.uni-table form { margin: 0; }

/* One fixed-width slot, so Start, Pre-register, a countdown and the muted states line up. */
.uni-table .uni-act { width: 1%; text-align: right; }
.uni-table .uni-act .btn,
.uni-table .uni-state { width: 164px; padding: 0 14px; }
.uni-table .uni-state {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-control);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 0.5px var(--ring);
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    color: var(--text-dim);
}
.uni-table .uni-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.uni-table tbody tr { transition: background-color var(--duration-fast) var(--ease-smooth); }
@media (hover: hover) and (pointer: fine) {
    .uni-table tbody tr:hover { background: rgba(86, 175, 235, 0.05); }
}

/* The speeds stack one per line and the season puts its days left under its name, so the table
   fits the page without a horizontal scrollbar. Narrower, each speed becomes a chip and they wrap
   whole instead of widening the table. */
.uni-table .uni-speed-part { white-space: nowrap; }
.uni-table .uni-speeds { display: flex; flex-direction: column; gap: 2px; }
.uni-table .uni-speed-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.uni-table .uni-season-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.uni-table .uni-season-left { display: block; margin-top: 3px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 1180px) {
    .uni-table .uni-speed { white-space: normal; }
    .uni-table .uni-speeds { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; max-width: 240px; }
    .uni-table .uni-speed-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .uni-table .uni-speed-part {
        display: inline-flex; align-items: center;
        height: 24px; padding: 0 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: 0 0 0 0.5px var(--ring);
        font-size: 12px; font-weight: 500;
    }
}

@media (max-width: 760px) {
    .uni-table, .uni-table tbody { display: block; }
    .uni-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .uni-table tbody tr {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px;
        padding: 18px;
        border-top: 0.5px solid var(--ring);
    }
    .uni-table tbody tr:first-child { border-top: 0; }
    .uni-table tbody th, .uni-table tbody td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
    .uni-table tbody th:first-child, .uni-table tbody td:first-child,
    .uni-table tbody th:last-child, .uni-table tbody td:last-child { padding: 0; }
    .uni-table tbody .num { text-align: left; }
    /* The three counters share a line, then the speeds, then season and commander, then the action. */
    .uni-table tbody th, .uni-table .uni-speed, .uni-table .uni-act { grid-column: 1 / -1; }
    .uni-table .uni-speed { order: 1; }
    .uni-table [data-cell="season"] { order: 2; }
    .uni-table [data-cell="player"] { order: 2; grid-column: span 2; }
    .uni-table .uni-act { order: 3; }
    .uni-table td[data-label]::before {
        content: attr(data-label);
        display: block; margin-bottom: 3px;
        font-family: var(--font-display); font-size: 11px; font-weight: 600;
        letter-spacing: var(--tracking-label); text-transform: uppercase;
        color: var(--text-dim);
    }
    .uni-table .uni-speeds { max-width: none; }
    .uni-table .uni-act { width: auto; margin-top: 2px; }
    .uni-table .uni-act .btn, .uni-table .uni-state { width: 100%; }
}

/* ==================== guide ==================== */
/* The public guide (landing/lib/pages/guide.php and guide-article.php). Prose keeps a reading
   width; tables sit in .compare-scroll, so a wide one scrolls inside its box and a phone never
   scrolls the page sideways. */
.guide { padding: 40px 0 88px; }
.guide-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-dim); }
.guide-crumbs a { color: var(--text-soft); }
.guide-head { margin-top: 20px; max-width: 72ch; }
.guide-head h1 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); letter-spacing: var(--tracking-display); }
.guide-head .lede { margin-top: 14px; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.guide-meta strong { color: var(--text-soft); font-weight: 600; }
.guide-universes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.guide-universes a {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
    border-radius: 999px; color: var(--text-soft);
    box-shadow: inset 0 0 0 0.5px var(--ring);
    transition: color var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}
.guide-universes a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 0 0 0.5px var(--ring-hot); }
.guide-section { margin-top: 48px; }
.guide-section h2 { font-family: var(--font-display); font-size: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 18px; }
.guide-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.guide-card-content { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.guide-card h3 { font-size: 18px; }
/* Article headers show rows 320 through 704; cards reveal a taller centered crop. */
.guide-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; object-position: center; background: var(--bg); }
.guide-card-art { aspect-ratio: 16 / 9; flex-shrink: 0; }
.guide-header-art { border-radius: 12px; margin-bottom: 24px; }
.guide-card p { font-size: 14px; color: var(--text-soft); }
.guide-card .guide-meta { margin-top: auto; padding-top: 4px; }
.guide-notice { margin-top: 24px; max-width: 72ch; }
.guide-notice p + p { margin-top: 8px; }
.guide-notice a { color: var(--accent); }
.guide-body { margin-top: 32px; color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.guide-body > h2, .guide-body > h3, .guide-body > p, .guide-body > ul, .guide-body > ol { max-width: 72ch; }
.guide-body > h2 { margin-top: 40px; font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--text); }
.guide-body > h3 { margin-top: 28px; font-size: 18px; color: var(--text); }
.guide-body > p, .guide-body > ul, .guide-body > ol { margin-top: 14px; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li + li { margin-top: 6px; }
.guide-body strong { color: var(--text); }
.guide-body a { color: var(--accent); }
.guide-value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.guide-body .guide-table { margin-top: 18px; }
.guide-table .compare th, .guide-table .compare td { white-space: nowrap; }
.guide-table .compare td { min-width: 0; }
.guide-table .compare .num { text-align: right; font-variant-numeric: tabular-nums; }
.guide-body > table { display: block; overflow-x: auto; margin-top: 18px; border-collapse: collapse; font-size: 14px; }
.guide-body > table th, .guide-body > table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 0.5px solid var(--ring); }
.guide-empty { font-style: italic; color: var(--text-dim); }
.guide-faq { max-width: 72ch; margin-top: 48px; }
.guide-faq h2 { font-family: var(--font-display); font-size: 24px; }
.guide-faq details { margin-top: 10px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.guide-faq summary { cursor: pointer; min-height: 44px; padding: 16px 22px; font-weight: 600; color: var(--text); }
.guide-faq details p { padding: 0 22px 20px; font-size: 15px; color: var(--text-soft); }
.guide-related { margin-top: 48px; }
.guide-related h2 { font-family: var(--font-display); font-size: 20px; }
.guide-related ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 18px; }
.guide-related a { color: var(--accent); }
.guide-band { margin-top: 64px; }
.guide-band .lede { margin-inline: auto; }
@media (max-width: 640px) {
    .guide { padding-top: 24px; }
    .guide-body { font-size: 15px; }
}

/* The store (landing/lib/pages/store.php, store-order.php, test-checkout.php, account-premium.php). */
.store-form { gap: 18px; }
.store-blocks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.store-note { margin: 0; font-size: 13px; }
.store-slider { width: 100%; margin-top: 8px; accent-color: var(--accent); }
.store-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.store-presets .chip { cursor: pointer; }
.store-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14px; }
.store-step[hidden] { display: none; }
.store-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.store-row .field + .field { margin-top: 0; }
.store-quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; margin: 0; }
.store-quote dt { font-size: 12px; color: var(--text-dim); }
.store-quote dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.store-dialog { max-width: 480px; width: calc(100% - 32px); padding: 24px; color: var(--text); background: var(--surface); border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.store-dialog h2 { font-family: var(--font-display); font-size: 20px; }
.store-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.store-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.store-tile { height: 96px; border-radius: 12px; margin: 12px 0; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%), rgba(0, 0, 0, 0.32); }
.store-tile[data-tier="2"] { filter: hue-rotate(20deg) saturate(1.2); }
.store-tile[data-tier="3"] { filter: hue-rotate(40deg) saturate(1.4); }
.store-tile[data-tier="4"] { filter: hue-rotate(60deg) saturate(1.6); }
.store-tile[data-tier="5"] { filter: hue-rotate(90deg) saturate(1.8); }
.store-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-status[data-state="delivered"] { color: var(--success); }
.store-blocks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.store-block { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--radius-control); background: rgba(0, 0, 0, 0.24); }
.legal-text { line-height: 1.7; }
@media (max-width: 480px) { .store-dialog { padding: 16px; } }
