/* ==========================================================================
   TUAH Numberplates — public site
   --------------------------------------------------------------------------
   One stylesheet, organised by block. Colours, spacing and radii are tokens so
   the light/dark switch is a token swap on <html data-theme>, never a second
   set of rules.

   Rules that matter beyond looks:
   - No colour-only signals: every category badge carries its name in text.
   - Every interactive element keeps a visible focus ring (see :focus-visible).
   - Tap targets are at least 44px high on touch layouts.
   - Motion is opt-out via prefers-reduced-motion.
   ========================================================================== */

/* --- 1. Tokens ------------------------------------------------------------ */

:root {
    --bg: #05080f;
    --bg-elev: #0a101c;
    --panel: #0c1220;
    --panel-2: #0f1726;
    --panel-3: #131d30;
    --line: #1c2740;
    --line-soft: #162034;
    --line-gold: rgba(201, 162, 39, 0.28);

    --ink: #eef2f9;
    --ink-strong: #ffffff;
    --muted: #97a2b6;
    --muted-2: #7c879b;

    --gold: #c9a227;
    --gold-2: #f0d68f;
    --gold-deep: #8f6f18;
    --gold-soft: rgba(201, 162, 39, 0.12);
    --gold-glow: rgba(201, 162, 39, 0.16);


    /* Header rail capsule: a dark shell with a hairline ring and a lit top edge. */
    --nav-rail-from: #111a2a;
    --nav-rail-to: #060a12;
    --nav-ring: rgba(255, 255, 255, 0.07);
    --nav-sheen: rgba(255, 255, 255, 0.08);
    --nav-inner-shade: rgba(0, 0, 0, 0.55);

    --danger: #ff6b5e;
    --success: #45c98a;

    /* Error text that sits on --bg rather than on a dark panel. */
    --danger-ink: #ff9a90;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
    --shadow-lift: 0 24px 52px -30px rgba(0, 0, 0, 0.85);

    --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
        "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

    --wrap: 1240px;
    --head-height: 88px;
}

[data-theme="light"] {
    --bg: #f7f5ef;
    --bg-elev: #fffdf8;
    --panel: #ffffff;
    --panel-2: #fbf8f1;
    --panel-3: #f4efe4;
    --line: #e7e0d1;
    --line-soft: #efe9dc;
    --line-gold: rgba(166, 124, 31, 0.28);

    --ink: #101728;
    --ink-strong: #05080f;
    --muted: #5c6675;
    --muted-2: #6f7887;

    --gold: #9a7418;
    --gold-2: #7d5d10;
    --gold-deep: #6b4f0c;
    --gold-soft: rgba(201, 162, 39, 0.14);
    --gold-glow: rgba(201, 162, 39, 0.2);


    --danger-ink: #9f1d16;

    --nav-rail-from: #fffdf8;
    --nav-rail-to: #f1ebdd;
    --nav-ring: rgba(24, 20, 10, 0.1);
    --nav-sheen: #ffffff;
    --nav-inner-shade: rgba(24, 20, 10, 0.08);

    --shadow-card: 0 16px 36px -30px rgba(24, 20, 10, 0.45);
    --shadow-lift: 0 22px 48px -30px rgba(24, 20, 10, 0.5);
}

/* --- 2. Base -------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--gold);
    color: #140f02;
}

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

/* --- 3. Utilities --------------------------------------------------------- */

.wrap {
    width: min(var(--wrap), 100% - 48px);
    margin-inline: auto;
}

.page-narrow {
    max-width: 760px;
    padding: 64px 0 96px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: #140f02;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.18s ease;
}

.skip-link:focus {
    top: 14px;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.icon--sm {
    width: 14px;
    height: 14px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-2);
}

.eyebrow--rule::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

.gold-text {
    background: linear-gradient(100deg, #f8e6b4 0%, #d9b45f 42%, #b98d2c 72%, #f1d9a4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- 4. Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease,
        border-color 0.2s ease, color 0.2s ease;
}

.btn--gold {
    background: linear-gradient(135deg, #f6e0a6 0%, #d7b258 46%, #c9a227 72%, #eed08b 100%);
    color: #191203;
    box-shadow: 0 14px 30px -16px rgba(201, 162, 39, 0.85);
}

.btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -16px rgba(201, 162, 39, 0.95);
}

.btn--quiet {
    color: var(--ink);
    border-color: transparent;
    padding-inline: 12px;
}

.btn--quiet:hover {
    color: var(--gold);
}

.btn--outline {
    border-color: var(--line-gold);
    color: var(--gold);
    background: transparent;
}

.btn--outline:hover {
    background: var(--gold-soft);
}

.btn--sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12.5px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.icon-btn:hover {
    color: var(--gold);
    border-color: var(--line-gold);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}

.link-more:hover {
    color: var(--gold-2);
}

.link-more--sm {
    font-size: 11.5px;
}

/* --- 5. Header ------------------------------------------------------------ */

.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
}

.site-head__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--head-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* A flex item shrinks by default; the lockup must not, or a wider header row (the
       language pill) squeezes the logo down over the wordmark beside it. */
    flex: none;
    text-decoration: none;
    color: var(--gold);
}

/*
 * The official lockup. Height is set and the width follows, so the transparent artwork
 * keeps its 2.9:1 ratio. It is a detailed banner rather than a compact mark, so it needs
 * real height before the word MALAYSIA and the two games lines stay legible; below 980px
 * the wordmark beside it is dropped to make that room.
 */
.brand__logo {
    height: 58px;
    width: auto;
}

.brand__logo--foot {
    height: 64px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__word {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--ink-strong);
}

.brand__sub {
    font-size: 7.5px;
    letter-spacing: 0.34em;
    color: var(--muted);
    margin-top: 3px;
}

/*
 * Primary navigation: a single pill set in a pill-shaped rail.
 *
 * The reference for this block was a dark capsule with one solid highlight that travels
 * between labels (a `layoutId` shared element). This is server-rendered PHP with no React
 * runtime, so the same effect is built from one decorative element (`.site-nav__pill`)
 * that app.js positions behind the current link through four custom properties: moving
 * between pages slides and resizes the highlight instead of fading a background in and
 * out. Its transitions only run once `.is-ready` is set, which stops the pill animating
 * out of the corner on first paint.
 */
.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 5px;
    border: 1px solid var(--nav-ring);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--nav-rail-from), var(--nav-rail-to));
    box-shadow:
        inset 0 1px 0 var(--nav-sheen),
        inset 0 -1px 1px var(--nav-inner-shade),
        0 0 0 1px var(--gold-glow),
        0 12px 26px -20px rgba(0, 0, 0, 0.9);
}

.site-nav__pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: var(--pill-w, 0);
    height: var(--pill-h, 0);
    transform: translate(var(--pill-x, 0), var(--pill-y, 0));
    border-radius: 999px;
    background: linear-gradient(180deg, #f4e0a8 0%, #ddba5e 48%, #c19c26 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 2px 6px -3px rgba(0, 0, 0, 0.5),
        0 10px 20px -14px rgba(201, 162, 39, 0.75);
    pointer-events: none;
}

.site-nav.is-ready .site-nav__pill {
    transition:
        transform 0.46s cubic-bezier(0.34, 1.4, 0.44, 1),
        width 0.46s cubic-bezier(0.34, 1.4, 0.44, 1),
        height 0.2s ease;
}

.site-nav__link {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav__link:hover {
    color: var(--ink);
}

.site-nav__link[aria-current="page"] {
    color: #140f02;
    font-weight: 700;
}

/* The gold pill is the marker, so the ring has to contrast with gold rather than with
   the page background. */
.site-nav__link[aria-current="page"]:focus-visible {
    outline-color: #140f02;
}

/* On the dark rail the light-mode gold token is too dim for the label. */
[data-theme="light"] .site-nav__link[aria-current="page"] {
    color: #140f02;
}

.site-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
}

.icon--xs {
    width: 11px;
    height: 11px;
}

/* Language switcher. A pill rather than a bare "EN": the header now says which language
   it is and that it is a control, which the old static label did not. It opens the
   dialog below; every option inside is a link, so the picker works without JavaScript. */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
    border-color: var(--line-gold);
    color: var(--gold-2);
}

.lang-btn__code {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* The language name is not shown in the pill at any width: "Bahasa Melayu" alone is
   wider than the rest of the actions put together, and the code plus the globe already
   say which language is active. The full name lives in the dialog and the aria-label. */
.lang-btn__name {
    display: none;
}

.lang-btn__chev {
    transform: rotate(90deg);
    opacity: 0.65;
}

/* The picker. A native <dialog>, so focus trapping, Escape and the backdrop come from the
   browser rather than from a script that has to re-implement them. */
.lang-dialog {
    width: min(400px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 64px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    color: var(--ink);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lang-dialog::backdrop {
    background: rgba(4, 8, 15, 0.55);
}

.lang-dialog[open] {
    display: flex;
    flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
    .lang-dialog[open] {
        animation: lang-in 0.22s ease both;
    }
}

@keyframes lang-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
}

.lang-dialog__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.lang-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 8px;
}

.lang-dialog__title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lang-dialog__close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.lang-dialog__close:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.lang-dialog__search {
    position: relative;
    margin: 0 16px 10px;
}

.lang-dialog__search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.lang-dialog__input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.lang-dialog__input::placeholder {
    color: var(--muted);
}

.lang-dialog__input:focus {
    outline: none;
    border-color: var(--line-gold);
}

.lang-list {
    margin: 0;
    padding: 0 8px 10px;
    list-style: none;
    overflow-y: auto;
}

.lang-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.16s ease;
}

.lang-list__item:hover,
.lang-list__item:focus-visible {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.lang-list__item.is-current {
    background: color-mix(in srgb, var(--gold-2) 14%, transparent);
}

.lang-list__badge {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-2);
}

.lang-list__name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.lang-list__check {
    color: var(--gold-2);
}

.lang-list__empty {
    margin: 0;
    padding: 8px 18px 18px;
    font-size: 12.5px;
    color: var(--muted);
}

/* The full language name is the first thing to go: the pill sits in a row that already
   carries a search button, a theme toggle and two CTAs, and the header must not clip. */
/* The full language name is the first thing to go: the pill sits in a row that already
   carries a search button, a theme toggle and two CTAs, and the header must not clip.
   "Bahasa Melayu" is wide enough to squeeze the sign-in button onto two lines. */
/* Malay labels are longer than their English counterparts, and the language pill is a new
   item in a row that was already full. Tighten the header rather than let the sign-in
   button fall off the edge; the search icon is redundant beside Browse. */
@media (max-width: 1600px) {
    .lang-btn {
        gap: 6px;
        padding: 0 10px;
    }

    .site-head__inner {
        gap: 14px;
    }

    .site-nav__link {
        padding-inline: 12px;
    }
}

@media (max-width: 1240px) {
    .site-head__actions .icon-btn {
        display: none;
    }

    .brand__logo {
        height: 50px;
    }
}

.lang-btn,
.site-head__actions .btn {
    white-space: nowrap;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
    color: var(--gold);
    border-color: var(--line-gold);
}

[data-theme="dark"] .theme-toggle__sun,
[data-theme="light"] .theme-toggle__moon {
    display: none;
}

.menu-btn {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.menu-btn__close {
    display: none;
}

/* --- 6. Cover ------------------------------------------------------------- */

/* The cover is one cinematic surface: a lit arena floor, the mascot standing on
   the far side of it, and the copy held to the left. Everything below the band
   stays quiet so this reads as the entrance.

   The mascot is a transparent cut-out, which is why its shadow and rim light are
   filter: drop-shadow() — those follow the silhouette, where box-shadow would
   trace a rectangle around him. */

.cover {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background: #04070e;
    color: #eef2f9;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.cover__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Arena wash: warm light behind the mascot, cool night sky above the copy. */
.cover__aurora {
    position: absolute;
    inset: -25% -15%;
    background:
        radial-gradient(30% 34% at 74% 54%, rgba(255, 214, 140, 0.32), transparent 70%),
        radial-gradient(44% 50% at 76% 42%, rgba(201, 162, 39, 0.28), transparent 68%),
        radial-gradient(38% 44% at 94% 80%, rgba(138, 56, 18, 0.42), transparent 72%),
        radial-gradient(52% 58% at 2% 0%, rgba(20, 50, 108, 0.62), transparent 72%);
    animation: cover-drift 28s ease-in-out infinite alternate;
}

/* Two stadium beams from the top right. */
.cover__beam {
    position: absolute;
    top: -30%;
    right: 6%;
    width: 210px;
    height: 150%;
    background: linear-gradient(180deg, rgba(255, 232, 190, 0.5), rgba(255, 232, 190, 0) 76%);
    filter: blur(26px);
    transform: rotate(16deg);
    transform-origin: top center;
    opacity: 0.34;
    mix-blend-mode: screen;
    animation: cover-beam 19s ease-in-out infinite alternate;
}

.cover__beam--b {
    right: 28%;
    width: 130px;
    opacity: 0.2;
    transform: rotate(24deg);
    animation-duration: 24s;
    animation-delay: -7s;
}

/*
 * The hero artwork: the skyline, the stadium and a car carrying TUAH 1. It replaces
 * the drawn SVG skyline, so there is only one skyline in the stack. It sits at the
 * bottom of the layers; the shade above it is what keeps the headline readable.
 */
.cover__photo {
    position: absolute;
    inset: 0;
}

/* Biased right so the artwork's own TUAH wordmark stays clear of the countdown
   and the buttons, which live in the lower left of the stage. */
.cover__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 84% 44%;
    opacity: 0.68;
    filter: saturate(1.05);
}

/* Night-dark on the left where the copy sits, blended into the header at the top,
   fading under the floor grid at the bottom. */
.cover__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #04070e 0%, rgba(4, 7, 14, 0.86) 30%, rgba(4, 7, 14, 0.34) 62%, rgba(4, 7, 14, 0.2) 100%),
        linear-gradient(
            180deg,
            rgba(4, 7, 14, 0.5) 0%,
            rgba(4, 7, 14, 0) 24%,
            rgba(4, 7, 14, 0.58) 58%,
            rgba(4, 7, 14, 0.93) 100%
        );
}

/* One column on a phone: the copy spans the full width, so the artwork is carried
   by a softer, more even scrim than the desktop's left-to-right one. */
@media (max-width: 760px) {
    .cover__photo img {
        object-position: 72% 34%;
        opacity: 0.75;
    }

    .cover__photo::after {
        background: linear-gradient(
            180deg,
            rgba(4, 7, 14, 0.62) 0%,
            rgba(4, 7, 14, 0.34) 42%,
            rgba(4, 7, 14, 0.8) 74%,
            rgba(4, 7, 14, 0.95) 100%
        );
    }
}

/* Floor: a perspective grid meeting the horizon the mascot stands on. */
.cover__floor {
    position: absolute;
    left: 50%;
    bottom: -16%;
    width: 190%;
    height: 58%;
    transform: translateX(-50%) perspective(560px) rotateX(66deg);
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.26) 1px, transparent 1px),
        radial-gradient(60% 70% at 62% 100%, rgba(201, 162, 39, 0.28), transparent 70%);
    background-size: 78px 78px, 78px 78px, 100% 100%;
    -webkit-mask-image: radial-gradient(50% 66% at 60% 100%, #000 0%, transparent 76%);
    mask-image: radial-gradient(50% 66% at 60% 100%, #000 0%, transparent 76%);
    opacity: 0.6;
}

/* A very large, very quiet outline fills the empty upper right without competing
   with the headline. Decorative only. */
.cover__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 7, 14, 0.97) 0%, rgba(4, 7, 14, 0.9) 30%, rgba(4, 7, 14, 0.34) 62%, rgba(4, 7, 14, 0.1) 100%),
        linear-gradient(180deg, rgba(4, 7, 14, 0.72) 0%, rgba(4, 7, 14, 0) 28%, rgba(4, 7, 14, 0.5) 100%);
}

.cover__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 36px;
    align-items: end;
}

.cover__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 60px 0 68px;
}

/* One orchestrated entrance: the copy settles in reading order, then the stage. */
.cover__copy > * {
    animation: cover-rise 0.85s cubic-bezier(0.19, 0.7, 0.2, 1) both;
}

.cover__copy > *:nth-child(1) {
    animation-delay: 0.04s;
}

.cover__copy > *:nth-child(2) {
    animation-delay: 0.13s;
}

.cover__copy > *:nth-child(3) {
    animation-delay: 0.22s;
}

.cover__copy > *:nth-child(4) {
    animation-delay: 0.31s;
}

.cover__copy > *:nth-child(5) {
    animation-delay: 0.4s;
}

.cover__copy > *:nth-child(6) {
    animation-delay: 0.49s;
}

.cover__chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 6px 13px 6px 10px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.1);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #f0d68f;
}

.cover__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f0d68f;
    box-shadow: 0 0 0 0 rgba(240, 214, 143, 0.55);
    animation: cover-pulse 2.6s ease-out infinite;
}

.cover__chip--closed {
    border-color: rgba(255, 143, 132, 0.4);
    background: rgba(255, 107, 94, 0.1);
    color: #ff9a90;
}

.cover__chip--closed .cover__dot {
    background: #ff8f84;
    box-shadow: none;
    animation: none;
}

.cover__title {
    margin: 20px 0 0;
    font-size: clamp(36px, 4.8vw, 66px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #ffffff;
}

.cover__lede {
    margin-top: 20px;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.72;
    color: #a9b4c6;
}

.cover__clock {
    margin-top: 30px;
}

.cover__window {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11.5px;
    color: #8b96a9;
}

.cover__window .icon {
    color: #c9a227;
}

.cover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cover__actions .btn {
    min-height: 50px;
    padding-inline: 26px;
    font-size: 13.5px;
}

/* The cover is dark in both themes, so its controls cannot follow the light
   theme's darker gold — that token is unreadable on this band. */
.cover .btn--outline {
    border-color: rgba(240, 214, 143, 0.45);
    color: #f0d68f;
}

.cover .btn--outline:hover {
    background: rgba(201, 162, 39, 0.16);
}

.cover :focus-visible {
    outline-color: #f0d68f;
}

/* The stage. The figure is anchored to the bottom edge of the band, so the feet
   meet the floor line and the section crops like a poster. */

.cover__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 640px;
    perspective: 1200px;
    animation: cover-rise 1.1s 0.18s cubic-bezier(0.19, 0.7, 0.2, 1) both;
}

.stage__glow,
.stage__ring,
.stage__base {
    position: absolute;
    pointer-events: none;
}

.stage__glow {
    left: 50%;
    bottom: 2%;
    width: min(900px, 150%);
    height: 92%;
    transform: translateX(-50%);
    background: radial-gradient(50% 56% at 50% 54%, rgba(255, 214, 140, 0.4) 0%, rgba(201, 162, 39, 0.2) 46%, transparent 74%);
    filter: blur(22px);
    animation: stage-halo 7s ease-in-out infinite;
}

/* One flattened ring behind the figure reads as a spotlight hoop, not a planet. */
.stage__ring {
    left: 50%;
    top: 54%;
    width: min(520px, 108%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 214, 143, 0.28);
    -webkit-mask-image: conic-gradient(from 0deg, #000 0deg 40deg, transparent 60deg 214deg, #000 232deg 292deg, transparent 312deg);
    mask-image: conic-gradient(from 0deg, #000 0deg 40deg, transparent 60deg 214deg, #000 232deg 292deg, transparent 312deg);
    /* The resting transform is also the animated one, so a visitor who asks for
       reduced motion still gets a flattened, centred ring rather than a circle
       thrown half a stage to the right. */
    transform: translate(-50%, -50%) rotateX(74deg);
    animation: stage-orbit 32s linear infinite;
}

/* Warm spill on the floor plus the contact shadow under the feet. */
.stage__base {
    left: 50%;
    bottom: -2%;
    width: min(560px, 112%);
    height: 130px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 26% 20% at 50% 36%, rgba(0, 0, 0, 0.85) 0%, transparent 72%),
        radial-gradient(ellipse 64% 42% at 50% 52%, rgba(240, 214, 143, 0.34) 0%, transparent 72%);
    filter: blur(15px);
}

.stage__tilt {
    position: relative;
    z-index: 1;
    height: min(620px, 53vw);
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(-1.5deg);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stage__float {
    height: 100%;
    animation: stage-float 9s ease-in-out infinite;
}

.stage__figure {
    display: block;
    height: 100%;
    width: auto;
    filter:
        drop-shadow(0 22px 26px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 46px rgba(201, 162, 39, 0.22));
}

@keyframes cover-drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(2%, 2%, 0) scale(1.06);
    }
}

@keyframes cover-beam {
    from {
        opacity: 0.24;
        transform: rotate(13deg) translateX(-3%);
    }

    to {
        opacity: 0.42;
        transform: rotate(19deg) translateX(3%);
    }
}

@keyframes cover-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes cover-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 214, 143, 0.5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(240, 214, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240, 214, 143, 0);
    }
}

@keyframes stage-float {
    0%,
    100% {
        transform: translate3d(0, 2px, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes stage-orbit {
    from {
        transform: translate(-50%, -50%) rotateX(74deg) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg);
    }
}

@keyframes stage-halo {
    0%,
    100% {
        opacity: 0.92;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.62;
        transform: translateX(-50%) scale(1.06);
    }
}

/* --- 7. Search, countdown & category rail --------------------------------- */

.search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
    max-width: 560px;
    padding: 7px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search__icon {
    display: grid;
    place-items: center;
    width: 40px;
    color: #e6c778;
}

.search__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
}

.search__input::placeholder {
    color: #7f8a9d;
}

.search__input:focus {
    outline: none;
}

.search:focus-within {
    border-color: rgba(240, 214, 143, 0.7);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.search__submit {
    min-height: 44px;
    border-radius: 10px;
    padding-inline: 26px;
}

/*
 * Plate search.
 *
 * One plate-shaped control: a fixed, non-editable TUAH prefix and the digits, with the
 * Search button inside the same frame. The prefix is presentational — the field carries
 * `q`, which is what the browse page already reads — so it is hidden from assistive
 * technology and the field keeps its own label.
 */
.plate-search {
    margin-top: 26px;
    max-width: 560px;
}

.plate-search__field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 23, 37, 0.92), rgba(7, 11, 19, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 36px -30px #000;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plate-search__field:focus-within {
    border-color: rgba(240, 214, 143, 0.75);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plate-search__prefix {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(240, 214, 143, 0.34);
    border-radius: 10px;
    background: linear-gradient(180deg, #1a2233, #0b101c);
    color: #f0d68f;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    user-select: none;
}

/* The two rivets of the reference plate. */
.plate-search__prefix::before,
.plate-search__prefix::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f6e6b4, #6f5310);
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.6);
}

.plate-search__input {
    min-width: 0;
    height: 46px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 15px;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    appearance: none;
}

.plate-search__input::placeholder {
    color: #7f8a9d;
}

.plate-search__input:focus {
    outline: none;
}

.plate-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.plate-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
}

.plate-search__hint {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #8b96a9;
}

/*
 * The same control on the catalogue page.
 *
 * The plate itself stays dark in both themes — it is the physical object the site sells —
 * but the hint and error sit on --bg out here instead of on the cover photograph, so they
 * take the theme's text colours rather than the fixed palette used on the hero.
 */
.plate-search--page {
    margin-top: 20px;
    max-width: 620px;
}

.plate-search--page .plate-search__hint {
    color: var(--muted);
}

/* The `[role="alert"]` qualifier is needed: the generic `.site-main [role="alert"]` rule
   paints the same colour at equal specificity but later in the file. */
.plate-search--page .plate-search__error[role="alert"] {
    color: var(--danger-ink);
}

.plate-search__error {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #ff9a90;
}

.plate-search__error[hidden] {
    display: none;
}

.plate-search.is-invalid .plate-search__field {
    border-color: rgba(255, 107, 94, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.2);
}

.plate-search.is-loading .plate-search__submit {
    opacity: 0.72;
    cursor: progress;
}

.plate-search.is-loading .plate-search__submit .icon {
    animation: plate-search-spin 0.8s linear infinite;
}

@keyframes plate-search-spin {
    to {
        transform: rotate(360deg);
    }
}

/*
 * The auction clock: dark panels with hairline gold frames, gold numerals and a
 * heading block above them.
 */
.countdown {
    max-width: 620px;
}

.countdown__head {
    margin-bottom: 14px;
}

.countdown__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #e6c778;
}

.countdown__rule {
    width: 42px;
    height: 1px;
    flex: none;
    background: linear-gradient(90deg, rgba(240, 214, 143, 0), rgba(240, 214, 143, 0.7));
}

.countdown__rule:last-child {
    transform: scaleX(-1);
}

.countdown__title {
    margin-top: 8px;
    font-size: clamp(14px, 1.35vw, 17px);
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #ffffff;
}

.countdown__note {
    margin-top: 6px;
    font-size: 12px;
    color: #9aa6ba;
}

.countdown__panel {
    padding: 7px;
    border: 1px solid rgba(201, 162, 39, 0.34);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 33, 52, 0.82), rgba(7, 11, 19, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 40px -32px #000;
}

.countdown__units {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.countdown__unit {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 12px 6px 10px;
    border: 1px solid rgba(240, 214, 143, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 25, 40, 0.95), rgba(6, 10, 18, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.countdown__value {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: #f4dfa4;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.countdown__caption {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93a1b6;
}

/* Two gold dots rather than a typed colon: the glyph's baseline sat too low between
   the panels, and dots keep their alignment at every height. */
.countdown__sep {
    align-self: center;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 8px;
    height: 24px;
    padding: 0 1px;
    font-size: 0;
    line-height: 0;
}

.countdown__sep::before,
.countdown__sep::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(240, 214, 143, 0.7);
    box-shadow: 0 0 6px rgba(240, 214, 143, 0.35);
}

.countdown.is-expired .countdown__value {
    color: #ff8f84;
}

.countdown.is-expired .countdown__note {
    color: #ff9a90;
}

.countdown__unit.is-tick {
    border-color: rgba(240, 214, 143, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px -6px rgba(240, 214, 143, 0.45);
}

@media (max-width: 560px) {
    .plate-search__field {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "prefix input"
            "button button";
    }

    .plate-search__prefix {
        grid-area: prefix;
        padding: 0 11px;
        font-size: 13px;
    }

    .plate-search__input {
        grid-area: input;
    }

    .plate-search__submit {
        grid-area: button;
        width: 100%;
    }

    .countdown__sep {
        display: none;
    }
}

.cover .countdown__unit.is-tick {
    border-color: rgba(240, 214, 143, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px -6px rgba(240, 214, 143, 0.45);
}

/* Category rail: the tier shortcuts, kept out of the cover so the stage has room. */
.rail {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.rail__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 20px 0;
}

.rail__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.rail__meta {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.rail__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.rail__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    border-left: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.rail__link:hover {
    background: var(--gold-soft);
}

.rail__range {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.rail__name {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.rail__count {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* --- 8. Plate artwork ----------------------------------------------------- */

/* The number sits inside the glossy ring. The supplied artwork carries the blue, red and
   yellow ribbons around a navy field that meets them edge to edge, so the interior is one
   image and the number is text on top. Sizes are container units, so the same component
   serves a 58px roundel in the sold list and a 330px badge on the plate page. */

.plate {
    position: relative;
    container-type: inline-size;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    isolation: isolate;
}

/* Optically centred in the opening rather than on the frame: the ring's ribbons sit lower
   at the bottom, so a true centre reads as high. The field is part of the artwork, so the
   text is simply the top layer — there is no second image that can fail to arrive. */
.plate__body {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8cqw;
    transform: translate(-50%, -50%);
}

.plate__frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: url("/assets/img/plate-frame.webp?v=20261029j") center / 100% 100% no-repeat;
    pointer-events: none;
    user-select: none;
}

/* The light theme gets its own artwork, not a recoloured one: ivory field, ink digits.
   Gold on a navy disc inside cream cards reads as dim; a dark number on a pale plate is
   the contrast the theme was missing. The ?v= is bumped by bin/make-plate-art.py. */
[data-theme="light"] .plate__frame {
    background-image: url("/assets/img/plate-frame-light.webp?v=20261029j");
}

.plate__prefix {
    font-size: 6cqw;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    line-height: 1;
    color: rgba(243, 220, 157, 0.76);
}

/* One flat colour, no gradient and no glow: the digits are the thing being read. Weight,
   size and the dark stroke carry the legibility instead — at 58px a soft gradient turns
   the number to mush, and a bright halo on a pale card spread it further. */
.plate__digits {
    font-family: var(--font-display);
    font-size: 41cqw;
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: -0.01em;
    color: #f8e3a8;
    -webkit-text-stroke: 0.5cqw rgba(3, 7, 13, 0.55);
    paint-order: stroke fill;
    text-shadow: 0 1.6cqw 2.4cqw rgba(0, 0, 0, 0.5);
}

.plate--len-2 .plate__digits {
    font-size: 31cqw;
}

.plate--len-3 .plate__digits {
    font-size: 25cqw;
}
.plate--len-4 .plate__digits {
    font-size: 20cqw;
}

/* Light theme: the plate is ivory, so the number is ink. Deep navy-charcoal against the
   pale field is the one colour that stays legible at 58px inside a cream card, where the
   gold was washing out. A hair of white under the glyphs keeps them from looking pasted on. */
[data-theme="light"] .plate__digits {
    color: #16203a;
    -webkit-text-stroke: 0.4cqw rgba(255, 255, 255, 0.5);
    paint-order: stroke fill;
    text-shadow: 0 1.4cqw 2cqw rgba(28, 24, 16, 0.22);
}

[data-theme="light"] .plate__prefix {
    color: rgba(70, 56, 24, 0.72);
}

.plate--card {
    width: 100%;
}

.plate--lg {
    width: min(330px, 100%);
}

/* Roundels in list rows are small enough that only the number survives; the row carries
   the full label as text, so nothing is lost. */
.plate--sm {
    width: 58px;
}

/* Ring thumbnails: the frame stays, the labels go — at this size only the digits read. */
.plate--thumb {
    width: 100%;
}

.plate--thumb .plate__prefix {
    display: none;
}

.plate--thumb .plate__digits {
    font-size: 40cqw;
}

.plate--thumb.plate--len-2 .plate__digits {
    font-size: 31cqw;
}

.plate--thumb.plate--len-3 .plate__digits {
    font-size: 25cqw;
}

.plate--thumb.plate--len-4 .plate__digits {
    font-size: 20cqw;
}

.plate--sm .plate__prefix {
    display: none;
}

.plate--sm .plate__digits {
    font-size: 40cqw;
}

.plate--sm.plate--len-2 .plate__digits {
    font-size: 31cqw;
}

.plate--sm.plate--len-3 .plate__digits {
    font-size: 25cqw;
}

.plate--sm.plate--len-4 .plate__digits {
    font-size: 20cqw;
}

.plate.is-closed {
    filter: saturate(0.4);
    opacity: 0.72;
}

/* --- 9. Badges & meta ----------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.badge--premium {
    color: #f2d68d;
    border-color: rgba(216, 179, 92, 0.5);
    background: rgba(60, 44, 10, 0.72);
}

.badge--special {
    color: #9fe4ff;
    border-color: rgba(104, 197, 232, 0.45);
    background: rgba(12, 46, 62, 0.75);
}

.badge--classic {
    color: #c9bcff;
    border-color: rgba(150, 134, 240, 0.45);
    background: rgba(34, 30, 66, 0.75);
}

.badge--general {
    color: #cfd8e6;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(16, 22, 34, 0.75);
}

.badge--neutral {
    color: var(--muted);
}

[data-theme="light"] .badge--premium {
    background: #fbf0d3;
    color: #7a5a0c;
    border-color: #e0c88a;
}

[data-theme="light"] .badge--special {
    background: #e4f5fc;
    color: #135d78;
    border-color: #a9d8ea;
}

[data-theme="light"] .badge--classic {
    background: #eeebfd;
    color: #443a86;
    border-color: #c3b9ee;
}

[data-theme="light"] .badge--general {
    background: #f1f2f5;
    color: #414a59;
    border-color: #d6dae1;
}

.meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
}

/* --- 10. Trust strip ------------------------------------------------------ */

.trust {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 24px 0;
}

.trust__item {
    display: flex;
    gap: 13px;
    padding: 0 20px;
    border-left: 1px solid var(--line);
}

.trust__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.trust__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.trust__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-strong);
}

.trust__text {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* --- 11. Sections & featured ---------------------------------------------- */

.section {
    padding: 56px 0 72px;
    background: var(--bg);
}

.section--tight {
    padding-top: 32px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head__title {
    margin-top: 8px;
    font-size: clamp(22px, 2.3vw, 30px);
    letter-spacing: -0.025em;
}

.featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

/* Related numbers on the plate page. */
.bid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* The featured numbers orbit the selected one: the ring is placed by --x/--y, which the
   script writes from a slot angle. Without the script the same list wraps as a row of
   links and the centre stays hidden, so nothing here depends on it. */
.radial {
    --thumb: clamp(76px, 9vw, 116px);
    --center: 240px;
    margin-top: 6px;
}

.radial__stage {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(360px, 46vw, 560px);
    touch-action: pan-y;
}

.radial__ring {
    margin: 0;
    padding: 0;
    list-style: none;
}

.radial__slot {
    width: var(--thumb);
}

.radial__item {
    display: block;
    border-radius: 50%;
}

.radial__item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 5px;
}

.radial__item .plate {
    width: 100%;
}

.radial:not(.is-ready) .radial__ring {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.radial:not(.is-ready) .radial__stage {
    height: auto;
    padding: 0;
}

.radial:not(.is-ready) .radial__center,
.radial:not(.is-ready) .radial__arrow {
    display: none;
}

.radial.is-ready .radial__ring {
    position: absolute;
    inset: 0;
}

.radial.is-ready .radial__stage {
    cursor: grab;
}

.radial.is-ready.is-dragging .radial__stage {
    cursor: grabbing;
}

.radial.is-ready .radial__slot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0));
    transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1);
}

.radial.is-dragging .radial__slot {
    transition: none;
}

.radial__center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: var(--center);
    transform: translate(-50%, -50%);
}

.radial__plate {
    grid-area: 1 / 1;
    width: 100%;
    animation: radial-in 0.45s ease both;
}

.radial__plate[hidden] {
    display: none;
}

@keyframes radial-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.radial__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    color: var(--ink);
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.radial.is-ready .radial__arrow {
    display: grid;
}

.radial__arrow:hover {
    border-color: var(--line-gold);
    color: var(--gold);
    background: var(--panel-2);
}

.radial__arrow--prev {
    left: 0;
}

.radial__arrow--next {
    right: 0;
}

.radial__arrow--prev .icon {
    transform: rotate(180deg);
}

.radial__detail {
    display: grid;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(80% 120% at 50% 0%, var(--gold-glow), transparent 60%),
        var(--panel);
    box-shadow: var(--shadow-card);
}

.radial__panel {
    grid-area: 1 / 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
}

.radial__panel[hidden] {
    display: none;
}

.radial__figures {
    margin-right: auto;
}

.radial__number {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.radial__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.radial__price-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.radial__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-left: 20px;
    border-left: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
    .radial__meta {
        padding-left: 0;
        border-left: 0;
    }
}

/* On touch widths the arrows would sit on top of the ring, so they move below it. */
@media (max-width: 560px) {
    .radial.is-ready .radial__stage {
        padding-bottom: 56px;
    }

    .radial.is-ready .radial__arrow {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .radial__arrow--prev {
        left: calc(50% - 46px);
    }

    .radial__arrow--next {
        right: calc(50% - 46px);
    }
}

.bid-card {
    position: relative;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(120% 86% at 50% -8%, var(--gold-glow), transparent 58%),
        var(--panel);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bid-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    box-shadow: var(--shadow-lift);
}

.bid-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 24px 12px 12px;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.bid-card__media {
    position: relative;
    display: grid;
    place-items: center;
    padding: 4px 6px 16px;
}

/* The tier badge straddles the top of the ring, as on the printed badge. */
.bid-card .badge {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    max-width: calc(100% - 12px);
    transform: translateX(-50%);
    overflow: hidden;
    border-color: rgba(216, 179, 92, 0.45);
    text-overflow: ellipsis;
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.95);
}

.bid-card__panel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
    padding: 11px 13px 9px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--panel-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bid-card__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.bid-card__label {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.bid-card__price {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.bid-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bid-card__foot .meta + .meta {
    padding-left: 8px;
    border-left: 1px solid var(--line-soft);
}

/* --- 12. Sold panel ------------------------------------------------------- */

.sold-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.sold-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sold-panel__title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-strong);
}

.sold-panel__empty {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.sold-list {
    list-style: none;
    margin-top: 10px;
}

.sold-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--line-soft);
}

.sold-row:first-child {
    border-top: 0;
}

.sold-row__number {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-strong);
}

.sold-row__category {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sold-row__figures {
    margin-left: auto;
    text-align: right;
}

.sold-row__amount {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.sold-row__date {
    font-size: 9.5px;
    color: var(--muted-2);
}

/* --- 13. Empty states ----------------------------------------------------- */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 46px 24px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--panel);
    text-align: center;
}

.empty__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.empty__title {
    font-size: 16px;
}

.empty__text {
    max-width: 42ch;
    font-size: 12.5px;
    color: var(--muted);
}

.empty .btn {
    margin-top: 10px;
}

/* --- 14. Browse ----------------------------------------------------------- */

.page-head {
    padding: 40px 0 26px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(70% 120% at 12% -30%, var(--gold-glow), transparent 60%),
        var(--bg);
}

/*
 * Catalogue head artwork.
 *
 * The catalogue heading is short and the band is full width, which left a large empty
 * block to the right of it. A cropped strip of the cover photograph fills that space and
 * ties the page back to the hero. It is a pseudo-element on the section, faded into --bg
 * on its left and bottom edges and clipped by the section's overflow, so it stops at the
 * band's bottom border and never sits behind the result grid.
 *
 * --art-fade is the point where the left fade becomes a soft wash; the narrow layout
 * pushes it right so the lede never sits on bare photograph.
 */
.page-head--browse {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.page-head--browse::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(900px, 66%);
    --art-fade: 42%;
    background:
        linear-gradient(90deg,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 60%, transparent) var(--art-fade),
            transparent 88%),
        linear-gradient(0deg,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 30%, transparent) 36%,
            transparent 84%),
        url("/assets/img/prestige-kl.webp") center 30% / cover no-repeat;
    opacity: 0.62;
    pointer-events: none;
}

/* On the ivory page the same photograph reads much louder, so it is held back further. */
[data-theme="light"] .page-head--browse::after {
    --art-fade: 52%;
    opacity: 0.34;
}

@media (max-width: 860px) {
    /* The copy spans the full width here, so only the last quarter of the band shows
       photograph: every label keeps sitting on --bg rather than on bright stadium light. */
    .page-head--browse::after {
        width: 100%;
        --art-fade: 72%;
        opacity: 0.3;
    }

    [data-theme="light"] .page-head--browse::after {
        --art-fade: 78%;
        opacity: 0.22;
    }
}

.page-head__title {
    margin-top: 10px;
    font-size: clamp(26px, 3vw, 38px);
}

.page-head__lede {
    margin-top: 8px;
    max-width: 62ch;
    font-size: 13.5px;
    color: var(--muted);
}

.page-body {
    padding: 34px 0 76px;
}

/* The hero search sits on a dark band; this variant sits on the page surface. */
.search--page {
    max-width: 600px;
    border-color: var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.search--page .search__icon {
    color: var(--gold);
}

.search--page .search__input {
    color: var(--ink);
}

.search--page .search__input::placeholder {
    color: var(--muted-2);
}

.search--page:focus-within {
    border-color: var(--gold);
}

.browse-layout {
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 34px;
    padding: 32px 0 80px;
}

.filters {
    position: sticky;
    top: calc(var(--head-height) + 18px);
    align-self: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.filter-group + .filter-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.filter-title {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    list-style: none;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.filter-link:hover {
    background: var(--gold-soft);
}

.filter-link[aria-current="true"] {
    border-color: var(--line-gold);
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 600;
}

.filter-count {
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    color: var(--muted-2);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field__label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.input,
.select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
}

.input::placeholder {
    color: var(--muted-2);
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.result-count {
    font-size: 12.5px;
    color: var(--muted);
}

.result-count strong {
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-sort .select {
    width: auto;
    min-width: 170px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 16px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.page-link {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ink);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.page-link:hover {
    border-color: var(--line-gold);
    color: var(--gold);
}

.page-link[aria-current="page"] {
    border-color: transparent;
    background: var(--gold);
    color: #191203;
    font-weight: 700;
}

.page-link--gap {
    border: 0;
    color: var(--muted-2);
}

/* --- 15. Plate detail ----------------------------------------------------- */

.plate-page {
    padding: 34px 0 80px;
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 11.5px;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--gold);
}

.plate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 30px;
    align-items: start;
}

.detail-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.detail-card__top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-card__title {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.detail-plate {
    display: grid;
    place-items: center;
    margin: 20px 0;
    padding: 26px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background:
        radial-gradient(70% 90% at 50% 0%, var(--gold-glow), transparent 62%),
        var(--panel-2);
}

.price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.price-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.price-value {
    margin-top: 4px;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
}

.price-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.price-meta .meta {
    font-size: 11.5px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 12.5px;
}

.info-table caption {
    padding-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
}

.info-table th,
.info-table td {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 42%;
    font-weight: 500;
    color: var(--muted);
}

.info-table td {
    font-weight: 600;
    color: var(--ink-strong);
}

.bid-panel {
    position: sticky;
    top: calc(var(--head-height) + 18px);
    padding: 20px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(80% 60% at 50% 0%, var(--gold-soft), transparent 60%),
        var(--panel);
    box-shadow: var(--shadow-lift);
}

.bid-panel__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-strong);
}

.bid-panel__hint {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
}

.bid-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
}

.bid-amount__prefix {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.bid-amount__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.bid-amount__input:focus {
    outline: none;
}

.bid-amount:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.bid-panel .btn {
    width: 100%;
    margin-top: 12px;
}

.bid-panel__note {
    margin-top: 10px;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--muted-2);
}

.bid-panel__list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    list-style: none;
    font-size: 11.5px;
    color: var(--muted);
}

.bid-panel__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bid-panel__list strong {
    color: var(--ink-strong);
    font-weight: 600;
}

.history {
    margin-top: 30px;
}

.history__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.history__title {
    font-size: 16px;
}

.table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.data-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 12.5px;
}

.data-table th {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table .is-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-strong);
}

.data-table .is-muted {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--muted);
}

.status-pill--active {
    border-color: rgba(69, 201, 138, 0.4);
    background: rgba(69, 201, 138, 0.12);
    color: var(--success);
}

.status-pill--outbid {
    border-color: rgba(255, 107, 94, 0.4);
    background: rgba(255, 107, 94, 0.1);
    color: var(--danger);
}

/* --- 16. Prose & static pages -------------------------------------------- */

.prose {
    max-width: 68ch;
}

.prose h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -0.03em;
}

.prose h2 {
    margin: 34px 0 10px;
    font-size: 19px;
}

.prose h3 {
    margin: 24px 0 8px;
    font-size: 15px;
}

.prose p {
    margin: 10px 0;
    font-size: 13.8px;
    line-height: 1.75;
    color: var(--muted);
}

.prose p strong {
    color: var(--ink);
}

.prose ul,
.prose ol {
    margin: 10px 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13.8px;
    line-height: 1.75;
}

.prose li {
    margin: 6px 0;
}

.prose a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose__lede {
    font-size: 15px;
    color: var(--ink) !important;
}

.prose--spaced {
    margin-top: 40px;
}

/* FAQ accordion. <details> is used rather than a script so it works everywhere. */
.faq {
    margin-top: 4px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-strong);
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    font-size: 18px;
    line-height: 1;
    color: var(--gold);
}

.faq[open] summary::after {
    content: "\2212";
}

.faq p {
    margin: 10px 0 2px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.notice {
    margin: 22px 0;
    padding: 14px 16px;
    border: 1px solid var(--line-gold);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink);
}

/* Steps (How It Works) */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0 10px;
    list-style: none;
    padding: 0;
}

.step {
    position: relative;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.step__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: var(--gold-soft);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold);
}

.step__title {
    font-size: 13.5px;
}

.step__text {
    margin-top: 6px;
    font-size: 11.8px;
    line-height: 1.6;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 10px;
}

.contact-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.contact-card__title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card__value {
    margin-top: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-strong);
    overflow-wrap: anywhere;
}

.contact-card__note {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted);
}

/* --- 17. Footer -----------------------------------------------------------
 *
 * The footer is its own canvas: a deep-navy night field that stays dark in both
 * themes. Gold on navy is the event identity, and a cream footer would have to give
 * it up; so the block carries --foot-* tokens instead of --ink, which flips with the
 * theme. Every decorative mark lives in one inline SVG layer
 * (resources/views/partials/footer-art.php) behind the content and is clipped by the
 * footer's overflow, so there is no background image, no extra request, and nothing
 * that can push the document wider than the viewport.
 *
 * The only motion is transform on the ornaments: three drifting ribbons and three
 * floating marks, all cancelled by prefers-reduced-motion.
 */

.site-foot {
    --foot-bg: #04070d;
    --foot-bg-2: #070c16;
    --foot-ink: #eaeff8;
    --foot-muted: #9aa6ba;
    --foot-dim: #8794aa;
    --foot-gold: #c9a227;
    --foot-gold-2: #f0d68f;
    --foot-line: rgba(201, 162, 39, 0.18);
    --foot-line-soft: rgba(255, 255, 255, 0.07);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: auto;
    border-top: 1px solid var(--foot-line);
    background:
        radial-gradient(120% 86% at 50% 0%, rgba(201, 162, 39, 0.08), transparent 62%),
        radial-gradient(90% 80% at 100% 10%, rgba(47, 93, 190, 0.16), transparent 62%),
        linear-gradient(180deg, var(--foot-bg) 0%, var(--foot-bg-2) 100%);
    color: var(--foot-muted);
}

/* A lit gold hairline over the top border, brightest in the middle. */
.site-foot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(620px, 72%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--foot-gold-2), transparent);
    opacity: 0.55;
}

/* --- Decoration layer ---------------------------------------------------- */

.foot-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    color: var(--foot-gold);
}

.foot-art > svg {
    position: absolute;
    height: auto;
    max-width: none;
}

/* Both large marks sit fully inside the footer. Anchoring them to an edge and letting
   overflow clip them was what turned the M and the 27 into unreadable slabs. */
.foot-art__m {
    top: 9%;
    left: 4%;
    width: 34%;
    max-width: 520px;
    opacity: 0.07;
}

.foot-art__num {
    top: 15%;
    right: 4%;
    width: 23%;
    max-width: 340px;
    opacity: 0.11;
}

.foot-art__hibiscus {
    left: 1%;
    bottom: 24%;
    width: 180px;
    opacity: 0.14;
}

.foot-art__motion {
    right: 5%;
    bottom: 19%;
    width: 270px;
    opacity: 0.16;
}

/* Outline drawings need more than a fill would: a 1.5px hairline at the same opacity
   reads as nothing on a navy field. */
.foot-art__skyline {
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: 0.11;
}

.foot-art__ribbons {
    left: 0;
    bottom: -10px;
    width: 100%;
    opacity: 0.2;
}

/* --- Brand column -------------------------------------------------------- */

.foot-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.75fr));
    gap: 44px 46px;
    padding: 62px 0 46px;
}

.foot-brand {
    min-width: 0;
}

.foot-brand .brand {
    text-decoration: none;
}

.site-foot .brand__logo--foot {
    height: 54px;
}

/* The brand words take --ink in the header, which flips to near-black in the light
   theme. The footer is dark in both, so it states the colour itself. */
.site-foot .brand__word {
    color: var(--foot-ink);
}

.site-foot .brand__sub {
    color: var(--foot-dim);
}

.foot-brand__tagline {
    margin-top: 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--foot-gold-2);
}

.foot-brand__blurb {
    max-width: 34ch;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--foot-dim);
}

.foot-social {
    margin-top: 22px;
}

.foot-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.foot-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--foot-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    color: var(--foot-gold-2);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.25s ease;
}

.foot-social a:hover,
.foot-social a:focus-visible {
    border-color: var(--foot-gold-2);
    background: var(--foot-gold-2);
    color: #140f02;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 8px 20px -10px rgba(240, 214, 143, 0.8);
}

.foot-social .icon {
    width: 18px;
    height: 18px;
}

/* --- Link columns -------------------------------------------------------- */

.foot-col {
    min-width: 0;
}

.foot-col__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--foot-ink);
}

/* The gold rule that trails each heading, fading out towards the column edge. */
.foot-col__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--foot-line), transparent);
}

.foot-col ul {
    display: flex;
    flex-direction: column;
    gap: 1px;
    list-style: none;
}

.foot-col a {
    display: inline-block;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--foot-muted);
    text-decoration: none;
    /* The hover underline grows from the left without moving the text. */
    background-image: linear-gradient(var(--foot-gold-2), var(--foot-gold-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color 0.2s ease, background-size 0.26s ease;
}

.foot-col a:hover,
.foot-col a:focus-visible {
    color: var(--foot-gold-2);
    background-size: 100% 1px;
}

/* --- Unity band ---------------------------------------------------------- */

.foot-unity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 26px 0;
    border-top: 1px solid var(--foot-line-soft);
    border-bottom: 1px solid var(--foot-line-soft);
}

.foot-unity__rings {
    flex: none;
    width: min(272px, 42vw);
    height: auto;
    color: var(--foot-gold);
    opacity: 0.85;
}

.foot-unity__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.foot-unity__kicker {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--foot-gold);
}

.foot-unity__title {
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 27px);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--foot-ink);
}

.foot-unity__year {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.34em;
    color: var(--foot-gold-2);
}

/* --- Legal -------------------------------------------------------------- */

/* The skyline runs behind the last line, so the legal bar carries a soft scrim: the
   outline stays visible above it and the small print never sits on a line. */
.foot-legal {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 28px;
    padding: 20px 0 26px;
    background: linear-gradient(180deg, rgba(4, 7, 13, 0) 0%, rgba(4, 7, 13, 0.72) 62%);
    font-size: 11.5px;
    color: var(--foot-dim);
}

.foot-legal__sign {
    font-weight: 600;
    color: var(--foot-gold-2);
}

/* --- Footer motion ------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .foot-art__num {
        animation: foot-float 17s ease-in-out infinite alternate;
    }

    .foot-art__hibiscus {
        animation: foot-float 23s ease-in-out infinite alternate-reverse;
    }

    .foot-art__motion {
        animation: foot-float 13s ease-in-out infinite alternate;
    }

    .foot-ribbon--a {
        animation: foot-drift 34s ease-in-out infinite alternate;
    }

    .foot-ribbon--b {
        animation: foot-drift 46s ease-in-out infinite alternate-reverse;
    }

    .foot-ribbon--c {
        animation: foot-drift 58s ease-in-out infinite alternate;
    }
}

@keyframes foot-float {
    from {
        transform: translate3d(0, -10px, 0);
    }

    to {
        transform: translate3d(0, 10px, 0);
    }
}

/* The ribbons run 160 units past each side of their viewBox, so a 24-unit drift never
   uncovers an edge. */
@keyframes foot-drift {
    from {
        transform: translate3d(-24px, 0, 0);
    }

    to {
        transform: translate3d(24px, 0, 0);
    }
}

/* --- Footer breakpoints --------------------------------------------------
 *
 * Tablets go to two columns with the brand above them; phones to one. The ornaments
 * shrink and fade as the columns narrow so they never sit under a link.
 */

@media (max-width: 1120px) {
    .foot-main {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
        gap: 36px 30px;
    }

    .foot-art__num {
        width: 30%;
        opacity: 0.12;
    }
}

@media (max-width: 980px) {
    /* Three link columns, not two: at this width the labels still fit, and two would
       leave the third group alone on a row of its own. */
    .foot-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 28px;
        padding: 52px 0 40px;
    }

    .foot-brand {
        grid-column: 1 / -1;
    }

    .foot-brand__blurb {
        max-width: 46ch;
    }

    .foot-art__m {
        top: 2%;
        left: 2%;
        width: 52%;
        opacity: 0.055;
    }

    .foot-art__num {
        top: 9%;
        right: 2%;
        width: 27%;
        opacity: 0.09;
    }

    /* Tucked half off the edge so it frames the column rather than sitting behind a link. */
    .foot-art__hibiscus {
        left: -46px;
        bottom: 26%;
        width: 150px;
        opacity: 0.12;
    }

    .foot-art__motion {
        right: 2%;
        bottom: 22%;
        width: 200px;
        opacity: 0.13;
    }

    .foot-art__skyline {
        opacity: 0.1;
    }
}

@media (max-width: 640px) {
    .foot-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 40px 0 30px;
    }

    .site-foot .brand__logo--foot {
        height: 46px;
    }

    .foot-brand__tagline {
        margin-top: 16px;
    }

    .foot-brand__blurb {
        max-width: none;
    }

    .foot-social {
        margin-top: 18px;
    }

    .foot-col__title {
        margin-bottom: 8px;
    }

    /* Roomier rows: a thumb, not a cursor, does the tapping here. */
    .foot-col a {
        padding: 9px 0;
        font-size: 13.5px;
    }

    .foot-unity {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 0;
    }

    .foot-unity__rings {
        width: 100%;
        max-width: 280px;
    }

    .foot-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px 0 24px;
    }

    .foot-art__m {
        top: 3%;
        left: -8%;
        width: 80%;
        opacity: 0.045;
    }

    /* Moved clear of the brand copy: on a phone the columns stack under it, so the
       numeral belongs down beside the last link group, not behind the tagline. */
    .foot-art__num {
        top: auto;
        right: 1%;
        bottom: 30%;
        width: 42%;
        opacity: 0.05;
    }

    /* Off the left edge and clear of the ring motif, which owns the bottom corner here. */
    .foot-art__hibiscus {
        left: -34px;
        bottom: 40%;
        width: 110px;
        opacity: 0.06;
    }

    .foot-art__motion {
        right: 0;
        bottom: 24%;
        width: 130px;
        opacity: 0.1;
    }

    .foot-art__skyline {
        opacity: 0.08;
    }

    .foot-art__ribbons {
        opacity: 0.15;
    }
}

/* --- 18. Forms on the auth pages ----------------------------------------- */

.site-main form {
    margin-top: 8px;
}

.site-main label {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="password"],
.site-main input[type="tel"],
.site-main input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
}

.site-main input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.site-main form p {
    margin: 12px 0;
    font-size: 12.5px;
    color: var(--muted);
}

.site-main [role="alert"] {
    color: var(--danger);
}

.page-narrow h1 {
    margin-bottom: 16px;
    font-size: clamp(26px, 3vw, 34px);
}

/* --- 19. Administration --------------------------------------------------- */

.admin {
    padding: 56px 0 96px;
}

.admin-head {
    max-width: 720px;
}

.admin-head__eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.admin-head__title {
    margin: 10px 0 12px;
    font-size: clamp(28px, 3.2vw, 38px);
    color: var(--ink-strong);
}

.admin-head__lead {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

.admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 26px 0 34px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 26px 0 34px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

/* Inside the bar the divider belongs to the bar, so it is drawn once. */
.admin-bar .admin-tabs {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-signout {
    margin-left: auto;
}

.admin-signout__btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: pointer;
}

.admin-signout__btn:hover {
    color: var(--ink);
    border-color: var(--line-gold);
    background: var(--panel);
}

.admin-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-decoration: none;
}

.admin-tabs__link:hover {
    color: var(--ink);
    background: var(--panel);
}

.admin-tabs__link[aria-current="page"] {
    color: var(--gold);
    border-color: var(--line-gold);
    background: var(--gold-soft);
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section__title {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.admin-state {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.admin-card__label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.admin-card__value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-strong);
}

.admin-card__value--open {
    color: var(--success);
}

.admin-card__value--closed {
    color: var(--danger);
}

.admin-card__note {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.admin-card__action {
    margin-top: auto;
    padding-top: 6px;
    font-size: 12.5px;
}

.admin-card__action a {
    color: var(--gold);
}

.admin-card__action a:hover {
    color: var(--gold-2);
}

.admin-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-count {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-2);
}

.admin-count__value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-strong);
}

.admin-count__label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.admin-note {
    max-width: 720px;
    margin-bottom: 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}

.admin-note a {
    color: var(--gold);
}

.admin-saved {
    border-color: rgba(69, 201, 138, 0.4);
    background: rgba(69, 201, 138, 0.1);
}

.admin-warning {
    border-color: rgba(255, 107, 94, 0.4);
    background: rgba(255, 107, 94, 0.08);
    color: var(--ink);
}

.admin-warning code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 11.5px;
}

.admin-form {
    max-width: 760px;
    margin-top: 8px;
}

.admin-fieldset {
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-fieldset:disabled {
    opacity: 0.6;
}

.admin-fieldset__legend {
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.admin-fieldset__note {
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.admin-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Label styling from the auth section must not turn these into small caps. */
.site-main .admin-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    cursor: pointer;
}

.site-main .admin-choice:hover {
    border-color: var(--line-gold);
}

.admin-choice input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
}

.admin-choice__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-strong);
}

.admin-choice input:checked + span .admin-choice__title {
    color: var(--gold);
}

.admin-choice__text {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.site-main .admin-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 13px;
}

.site-main .admin-input label {
    margin-bottom: 0;
}

.site-main .admin-input input {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    color-scheme: dark;
}

[data-theme="light"] .admin-input input {
    color-scheme: light;
}

.site-main .admin-input input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.site-main .admin-help {
    max-width: 520px;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted-2);
}

.site-main .admin-error {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--danger);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 760px) {
    .admin {
        padding: 40px 0 72px;
    }

    .admin-state,
    .admin-choices {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-fieldset {
        padding: 18px;
    }

    .site-main .admin-input input {
        max-width: none;
    }
}

/* --- 19b. Administrator gate ---------------------------------------------- */

/*
 * The sign-in screen at /admin/login renders its own document, so it cannot rely
 * on the auth form rules: those are scoped to .site-main, which this page does
 * not have. It does reuse the tokens, so the light/dark switch still applies.
 */

.gate {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(760px 380px at 50% -6%, var(--gold-glow), transparent 70%),
        var(--bg);
}

.gate__main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gate__card {
    width: min(430px, 100%);
    padding: 32px 30px 26px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-lift);
}

.gate__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gold);
}

.gate__logo {
    height: 70px;
    width: auto;
    flex: none;
}

.gate__brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    color: var(--ink-strong);
}

.gate__brand-text span {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--muted-2);
}

.gate__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.gate__title {
    margin: 8px 0 10px;
    font-size: clamp(24px, 5vw, 28px);
}

.gate__lead {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}

.gate__notice {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.gate__notice strong {
    color: var(--ink);
    font-weight: 600;
}

.gate__inline-btn {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.gate__inline-btn:hover {
    color: var(--gold-2);
}

.gate__error {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 94, 0.4);
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 94, 0.08);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink);
}

.gate__form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.gate__field {
    display: grid;
    gap: 7px;
}

.gate__label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.gate__input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.gate__input:hover {
    border-color: var(--line-gold);
}

.gate__input:focus {
    outline: 2px solid var(--gold-2);
    outline-offset: 1px;
    border-color: var(--line-gold);
}

.gate__field-error {
    font-size: 12px;
    color: var(--danger);
}

.gate__hint {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted-2);
}

/* Six digits, spaced like the app shows them. Tabular figures keep the boxes aligned. */
.gate__code {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.gate__secret {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
}

.gate__secret-value {
    margin: 6px 0 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.7;
    word-break: break-word;
    color: var(--ink-strong);
    user-select: all;
}

.gate__details {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

.gate__details summary {
    cursor: pointer;
    color: var(--gold);
}

.gate__uri {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    word-break: break-all;
    user-select: all;
}

.gate__restart {
    margin-top: 16px;
    text-align: center;
}

.gate__submit {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    justify-content: center;
}

.gate__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
}

.gate__foot a {
    color: var(--muted);
    text-decoration: none;
}

.gate__foot a:hover {
    color: var(--gold);
}

@media (max-width: 480px) {
    .gate {
        padding: 28px 14px;
    }

    .gate__card {
        padding: 26px 20px 22px;
    }
}

/* --- 20. Responsive ------------------------------------------------------- */

@media (max-width: 1120px) {
    .site-nav {
        gap: 0;
        padding-inline: 4px;
    }

    /* The rail leaves less room for the actions, and "Sign Up" must not break in two. */
    .site-head__actions .btn {
        white-space: nowrap;
    }

    .site-nav__link {
        padding-inline: 11px;
        font-size: 12.5px;
    }

    .featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .sold-panel {
        max-width: 520px;
    }
}

@media (max-width: 980px) {
    .cover__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cover__copy {
        max-width: 640px;
        padding: 46px 0 18px;
    }

    /* The stage still closes the cover on a tablet; it shrinks rather than
       disappearing, because the mascot is the reason the cover exists. */
    .cover__stage {
        min-height: 440px;
    }

    .stage__tilt {
        height: min(440px, 70vw);
    }

    .stage__glow {
        width: 116%;
        height: 76%;
    }

    .stage__ring {
        top: 56%;
        width: min(380px, 94%);
    }

    .cover__watermark {
        right: 2%;
        bottom: 26%;
        font-size: clamp(120px, 26vw, 210px);
    }

    .rail__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .rail__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 0;
    }

    .trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .trust__item:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .browse-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .filters {
        position: static;
        order: 2;
    }

    .plate-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .bid-panel {
        position: static;
        order: -1;
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* The pill rail is wider than the old flat links, so the header collapses into the
   drawer earlier than it used to: below this width the six labels plus the logo and
   the actions no longer fit on one line. */
@media (max-width: 980px) {
    .menu-btn {
        display: grid;
        margin-left: auto;
        order: 3;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 18px 16px;
        /* The desktop pill rail becomes a plain drawer: no radius, no gold frame. */
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: var(--panel);
        box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.8);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    body.nav-open .menu-btn__open {
        display: none;
    }

    body.nav-open .menu-btn__close {
        display: block;
    }

    .site-nav__link {
        padding: 12px 10px;
        border-radius: 8px;
        font-size: 14px;
    }

    /* The dropdown is a stack, not a rail, so the sliding pill has nothing to slide
       along; the current page is marked by the gold label instead. */
    .site-nav__pill {
        display: none;
    }

    .site-nav__link[aria-current="page"] {
        color: var(--ink-strong);
    }

    .site-nav__link[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 10px;
        bottom: 6px;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--gold);
    }

    .site-head__actions .btn--quiet,
    .lang {
        display: none;
    }

    .site-head__inner {
        gap: 10px;
    }

    /* The header keeps logo + primary action + menu on a phone. The magnifier is
       dropped because the hero and the browse page both start with a search field. */
    .site-head__actions {
        padding-left: 0;
        gap: 6px;
        order: 2;
    }

    .site-head__actions .icon-btn {
        display: none;
    }

    .brand__word {
        font-size: 19px;
    }

    .brand__logo {
        height: 42px;
    }

    .brand__logo--foot {
        height: 52px;
    }

    /* The lockup already carries the event and the plate; the wordmark is what is
       dropped when the header runs out of room. */
    .brand__text {
        display: none;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(var(--wrap), 100% - 32px);
    }

    .site-head__actions .btn--sm {
        padding-inline: 12px;
        font-size: 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand__sub {
        font-size: 6.5px;
        letter-spacing: 0.28em;
    }

    .search {
        flex-wrap: wrap;
        gap: 6px;
    }

    .search__input {
        flex: 1 0 60%;
    }

    .search__submit {
        flex: 1 0 100%;
        height: 44px;
    }

    .cover__copy {
        padding: 34px 0 12px;
    }

    .cover__title {
        font-size: clamp(30px, 8.4vw, 42px);
        letter-spacing: -0.032em;
    }

    .cover__lede {
        font-size: 14.5px;
    }

    .cover .countdown__units {
        gap: 7px;
    }

    .cover .countdown__value {
        font-size: 22px;
    }

    .cover .countdown__caption {
        font-size: 8px;
        letter-spacing: 0.12em;
    }

    .cover__actions .btn {
        flex: 1 1 auto;
        padding-inline: 16px;
    }

    .cover__stage {
        min-height: 360px;
    }

    .stage__tilt {
        height: min(350px, 84vw);
    }

    .stage__base {
        width: 100%;
        height: 96px;
    }

    .rail {
        padding: 4px 0;
    }

    .rail__link {
        padding: 8px 10px;
    }

    .rail__range {
        font-size: 13.5px;
    }

    .section {
        padding: 40px 0 54px;
    }

    .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bid-card__link {
        padding: 18px 9px 9px;
    }

    .bid-card__panel {
        padding: 9px 10px 8px;
    }

    .bid-card__price {
        font-size: 13px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .trust__grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px 0;
    }

    .trust__item {
        border-left: 0;
        padding: 10px 0;
    }

    .trust__item:nth-child(n) {
        border-top: 1px solid var(--line);
        padding-top: 16px;
    }

    .trust__item:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }



    .detail-card {
        padding: 18px;
    }

    .bid-panel {
        padding: 16px;
    }

    .page-head {
        padding: 28px 0 20px;
    }
}

/* --- 20. Sign in and sign up ---------------------------------------------- */

/*
 * A two-column screen: the photograph carries the mood, the form carries the task.
 * On narrow screens the panel keeps the crest and the three brand words but drops
 * the headline, because a portrait phone cannot give the image enough height to
 * stay readable and the site header already carries the brand.
 */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    min-height: calc(100vh - var(--head-height));
    min-height: calc(100dvh - var(--head-height));
    border-top: 1px solid var(--line-soft);
}

.auth__aside {
    position: relative;
    display: flex;
    overflow: hidden;
    border-right: 1px solid var(--line-gold);
    background: #05080f;
    color: #eef2f9;
}

.auth__media {
    position: absolute;
    inset: 0;
}

/* Held down so the artwork reads as a texture behind the copy rather than as a
   competing wordmark: the panel's headline sits over the image's own logo. */
.auth__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 42%;
    filter: brightness(0.6) saturate(1.05);
}

/* The photograph is bright in the middle, so the copy sits on a gradient rather
   than on the picture itself. The lower half is carried almost to black because the
   artwork's own wordmark sits directly behind the headline. */
.auth__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 15, 0.8) 0%, rgba(5, 8, 15, 0.18) 30%, rgba(5, 8, 15, 0.74) 62%, rgba(5, 8, 15, 0.96) 100%),
        linear-gradient(90deg, rgba(5, 8, 15, 0.72) 0%, rgba(5, 8, 15, 0.2) 56%, rgba(5, 8, 15, 0) 82%);
}

.auth__aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3.6vw, 52px);
}

.auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    text-decoration: none;
    color: #f0d68f;
}

.auth__logo {
    height: 92px;
    width: auto;
    flex: none;
}

.auth__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.auth__brand-word {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #ffffff;
}

.auth__brand-sub {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(238, 242, 249, 0.62);
}

.auth__aside-copy {
    display: grid;
    gap: 12px;
    max-width: 26rem;
}

.auth__aside-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #f0d68f;
}

.auth__aside-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-wrap: balance;
}

.auth__aside-lead {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(238, 242, 249, 0.76);
}

.auth__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth__pillars li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f0d68f;
}

.auth__pillars li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9a227;
}

.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 4vw, 64px) clamp(20px, 4vw, 56px);
    background:
        radial-gradient(620px 320px at 78% -8%, var(--gold-glow), transparent 70%),
        var(--bg);
}

.auth__card {
    width: min(432px, 100%);
}

.auth__kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.auth__title {
    margin: 10px 0 8px;
    font-size: clamp(26px, 2.8vw, 34px);
}

.auth__lead {
    font-size: 13.5px;
    color: var(--muted);
}

/* The message is carried by the border and the heading, not by colour alone. */
.auth__alert {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 94, 0.42);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 94, 0.09);
    color: var(--ink);
    font-size: 12.5px;
}

.auth .auth__form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.auth__field {
    display: grid;
    gap: 6px;
}

.auth__labelrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth .auth__label {
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth input.auth__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14.5px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth input.auth__input:hover {
    border-color: var(--line-gold);
}

.auth input.auth__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.auth input.auth__input[aria-invalid="true"] {
    border-color: var(--danger);
}

.auth input.auth__input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.16);
}

.auth .auth__hint {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted-2);
}

.auth .auth__error {
    font-size: 12px;
    line-height: 1.5;
    color: var(--danger);
}

.auth__submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: 4px;
}

.auth__alt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--muted);
}

.auth__note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted-2);
}

.auth__link {
    color: var(--gold-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line-gold);
}

.auth__link:hover {
    border-bottom-color: var(--gold);
}

@media (max-width: 1024px) {
    .auth {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth__aside {
        min-height: 210px;
        border-right: 0;
        border-bottom: 1px solid var(--line-gold);
    }

    .auth__aside-copy {
        display: none;
    }

    .auth__aside-inner {
        gap: 20px;
        padding: 22px clamp(20px, 5vw, 36px);
    }

    .auth__main {
        padding: 34px 20px 56px;
    }
}

/* --- 21. The mark --------------------------------------------------------- */

.mark {
    padding: clamp(52px, 6.5vw, 92px) 0;
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
}

.mark__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(28px, 4.6vw, 60px);
    align-items: center;
}

.mark__figure {
    margin: 0;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #05080f;
    box-shadow: var(--shadow-lift);
}

.mark__figure img {
    width: 100%;
    height: auto;
}

/* The caption sits under a permanently dark image, so it keeps a dark bar in both
   themes instead of alternating against the artwork. */
.mark__figure figcaption {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a101c;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(238, 242, 249, 0.62);
}

.mark__copy {
    display: grid;
    gap: 16px;
}

.mark__title {
    font-size: clamp(23px, 2.8vw, 32px);
}

.mark__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.mark__list {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.mark__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.mark__num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.mark__term {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-strong);
}

.mark__desc {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

@media (max-width: 900px) {
    .mark__grid {
        grid-template-columns: 1fr;
    }
}

/* --- 22. Not found --------------------------------------------------------
 *
 * The 404 borrows the home cover's vocabulary instead of inventing a second one: the
 * arena wash, the gold plate search, the mascot on a lit stage. What it drops is the
 * countdown and the bid call to action, because neither is true on this page.
 *
 * Like the cover, the band is dark in both themes, so it carries its own colour tokens
 * rather than the theme's — --ink-strong is near-black in the light theme and would
 * vanish here. The page fills the viewport minus the header so the footer stays below
 * the fold, and the ornament layer is clipped by the section.
 */

.lost {
    --lost-ink: #eef2f9;
    --lost-muted: #a6b1c4;
    --lost-soft: #8b96a9;
    --lost-gold: #f0d68f;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--head-height));
    min-height: calc(100dvh - var(--head-height));
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    background: #04070e;
    color: var(--lost-ink);
}

/* --- Backdrop ------------------------------------------------------------ */

.lost__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* The supplied skyline, laid along the bottom edge. It is scenery, and its own sky is a
   shade lighter than this band, so the top of the artwork is masked out rather than
   left as a visible seam across the page. */
.lost__sky {
    position: absolute;
    inset: auto 0 0;
    display: block;
    height: 78%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
}

.lost__sky img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    opacity: 0.85;
    filter: brightness(1.18);
}

.lost__aurora {
    position: absolute;
    inset: -25% -15%;
    background:
        radial-gradient(30% 34% at 74% 54%, rgba(255, 214, 140, 0.26), transparent 70%),
        radial-gradient(44% 50% at 76% 42%, rgba(201, 162, 39, 0.22), transparent 68%),
        radial-gradient(52% 58% at 2% 0%, rgba(20, 50, 108, 0.55), transparent 72%);
    animation: cover-drift 30s ease-in-out infinite alternate;
}

/* The status code itself, drawn as an outline rather than set as a heading: the page
   says "404" in its chip, and this is the poster behind it. */
.lost__watermark {
    position: absolute;
    top: 46%;
    right: -1%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(200px, 30vw, 460px);
    font-weight: 800;
    line-height: 0.78;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(240, 214, 143, 0.22);
    user-select: none;
    pointer-events: none;
    animation: lost-drift 26s ease-in-out infinite alternate;
}

.lost__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 7, 14, 0.97) 0%, rgba(4, 7, 14, 0.88) 34%, rgba(4, 7, 14, 0.34) 68%, rgba(4, 7, 14, 0.12) 100%),
        linear-gradient(180deg, rgba(4, 7, 14, 0.78) 0%, rgba(4, 7, 14, 0) 32%, rgba(4, 7, 14, 0.42) 100%);
}

/* --- Copy ---------------------------------------------------------------- */

.lost__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 32px;
    align-items: center;
    padding: 64px 0;
}

.lost__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 560px;
}

/* One entrance in reading order, the same curve the cover uses. */
.lost__copy > * {
    animation: cover-rise 0.8s cubic-bezier(0.19, 0.7, 0.2, 1) both;
}

.lost__copy > *:nth-child(1) {
    animation-delay: 0.04s;
}

.lost__copy > *:nth-child(2) {
    animation-delay: 0.12s;
}

.lost__copy > *:nth-child(3) {
    animation-delay: 0.2s;
}

.lost__copy > *:nth-child(4) {
    animation-delay: 0.28s;
}

.lost__copy > *:nth-child(5) {
    animation-delay: 0.36s;
}

.lost__chip {
    margin: 0;
}

.lost__title {
    margin-top: 18px;
    font-size: clamp(30px, 3.9vw, 46px);
    letter-spacing: -0.028em;
    color: var(--lost-ink);
}

.lost__lede {
    max-width: 46ch;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.72;
    color: var(--lost-muted);
}

/* The shared .site-main form rules are written for a light panel, so the search's own
   spacing and colours are restated for this dark band. */
.lost .plate-search {
    margin-top: 26px;
}

.lost .plate-search__hint {
    color: var(--lost-soft);
}

.lost .plate-search__error {
    color: #ff9a90;
}

.lost__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.lost__actions .btn {
    min-height: 48px;
    padding-inline: 24px;
}

/* Dark band in both themes: its outline button cannot follow the light theme's gold,
   which is too dark to read here. Same treatment as the cover. */
.lost .btn--outline {
    border-color: rgba(240, 214, 143, 0.45);
    color: var(--lost-gold);
}

.lost .btn--outline:hover {
    background: rgba(201, 162, 39, 0.16);
}

.lost :focus-visible {
    outline-color: var(--lost-gold);
}

/* --- Mascot stage -------------------------------------------------------- */

.lost__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 420px;
    animation: cover-rise 1s 0.18s cubic-bezier(0.19, 0.7, 0.2, 1) both;
}

.lost__halo,
.lost__ring,
.lost__base {
    position: absolute;
    pointer-events: none;
}

.lost__halo {
    left: 50%;
    bottom: 6%;
    width: min(460px, 118%);
    height: 74%;
    transform: translateX(-50%);
    background: radial-gradient(
        50% 54% at 50% 56%,
        rgba(255, 214, 140, 0.34) 0%,
        rgba(201, 162, 39, 0.16) 48%,
        transparent 74%
    );
    filter: blur(18px);
    animation: stage-halo 8s ease-in-out infinite;
}

.lost__ring {
    left: 50%;
    top: 58%;
    width: min(360px, 104%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 214, 143, 0.26);
    -webkit-mask-image: conic-gradient(from 0deg, #000 0deg 40deg, transparent 60deg 214deg, #000 232deg 292deg, transparent 312deg);
    mask-image: conic-gradient(from 0deg, #000 0deg 40deg, transparent 60deg 214deg, #000 232deg 292deg, transparent 312deg);
    transform: translate(-50%, -50%) rotateX(74deg);
    animation: stage-orbit 32s linear infinite;
}

.lost__base {
    left: 50%;
    bottom: 0;
    width: min(400px, 110%);
    height: 90px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 24% 18% at 50% 40%, rgba(0, 0, 0, 0.8) 0%, transparent 72%),
        radial-gradient(ellipse 62% 40% at 50% 54%, rgba(240, 214, 143, 0.3) 0%, transparent 72%);
    filter: blur(13px);
}

.lost__figure {
    position: relative;
    z-index: 1;
    display: block;
    animation: stage-float 9s ease-in-out infinite;
}

.lost__mascot {
    display: block;
    height: min(420px, 40vw);
    width: auto;
    filter:
        drop-shadow(0 20px 24px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 40px rgba(201, 162, 39, 0.22));
}

@keyframes lost-drift {
    from {
        transform: translateY(-50%) translate3d(0, 0, 0);
    }

    to {
        transform: translateY(-50%) translate3d(-20px, -16px, 0) scale(1.02);
    }
}

/* --- Breakpoints --------------------------------------------------------- */

@media (max-width: 980px) {
    /* Stacked, the content is taller than the viewport, so centring it inside a
       full-height band would only add a void above the headline. The band hugs its
       content instead. */
    .lost {
        align-items: flex-start;
        min-height: 0;
    }

    .lost__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 52px 0 8px;
    }

    .lost__copy {
        max-width: none;
    }

    .lost__stage {
        min-height: 300px;
    }

    .lost__mascot {
        height: min(300px, 44vw);
    }

    .lost__watermark {
        right: -6%;
        font-size: clamp(160px, 44vw, 320px);
        opacity: 0.8;
    }
}

@media (max-width: 640px) {
    .lost__inner {
        padding: 36px 0 24px;
    }

    .lost__stage {
        min-height: 240px;
    }

    .lost__mascot {
        height: 240px;
    }

    .lost__title {
        font-size: clamp(25px, 6.6vw, 32px);
    }

    .lost__lede {
        font-size: 14.5px;
    }

    .lost__actions .btn {
        flex: 1 1 auto;
    }
}

/* --- 23. Motion & forced colours ----------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (forced-colors: active) {
    .gold-text {
        background: none;
        color: CanvasText;
    }

    .btn--gold {
        border: 1px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }

    .plate {
        border: 2px solid CanvasText;
    }

    /* The rail and its pill are gradients, which forced colours strips: without this the
       current page would lose its marker entirely. */
    .site-nav {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    .site-nav__pill {
        background: Highlight;
        box-shadow: none;
        forced-color-adjust: none;
    }

    .site-nav__link[aria-current="page"] {
        color: HighlightText;
        forced-color-adjust: none;
    }
}

/* --- Console shell -------------------------------------------------------
   The admin area is not a page of the marketing site: it is the control surface.
   These rules dress the header tabs, the catalogue table and the one-plate editor. */

.site-head--console .admin-bar {
    flex: 1;
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
    justify-content: flex-end;
}

.site-head--console .admin-tabs {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
    justify-content: flex-end;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-filters .admin-input {
    flex: 0 1 200px;
}

.admin-actions--inline {
    display: flex;
    gap: 8px;
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.admin-table thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.admin-table tbody tr:last-child th,
.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: var(--bg-elev);
}

.admin-table th a {
    font-weight: 600;
    color: var(--ink-strong);
    text-decoration: none;
}

.admin-table th a:hover {
    color: var(--gold);
}

.admin-table__edit {
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.admin-tag--available,
.admin-tag--live {
    color: var(--gold);
    border-color: var(--line-gold);
    background: var(--gold-soft);
}

.admin-tag--draft,
.admin-tag--unlisted {
    color: var(--muted-2);
}

.admin-tag--sold,
.admin-tag--settled,
.admin-tag--closed {
    color: var(--ink);
    border-color: var(--line-gold);
}

.admin-tag--withdrawn,
.admin-tag--cancelled {
    border-style: dashed;
    color: var(--muted-2);
}

.admin-pager {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.admin-pager__status {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.admin-edit {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.admin-edit__preview {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-edit .admin-form {
    max-width: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.site-main .admin-input select,
.site-main .admin-input textarea {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
}

.site-main .admin-input textarea.admin-textarea {
    max-width: 100%;
    min-height: 110px;
    resize: vertical;
}

.admin-input .admin-help,
.admin-input .admin-error {
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .admin-edit {
        grid-template-columns: 1fr;
    }

    .admin-edit__preview {
        position: static;
    }
}
