/* wildtexas.quest — event signup + "spot secured" pages.
   Standalone from styles.css (that sheet locks body scrolling for the teaser).

   Neon cyber-frontier: an old western town (Rye headlines in gold, weathered
   wood boards with brass rivets, a parchment playbill, sheriff-star seats,
   flyers nailed along the walls) plus neon video-game tech (Tektur for UI and
   body copy, a teal accent). Every material is pure CSS gradients. */

:root {
    --wt-ink: #0a0e1a;
    --wt-sky-top: #07163f; /* the tall splash's solid top row */
    --wt-text: #f6f1e6;
    --wt-muted: #d3c4a6; /* warm muted, ≥9:1 on the wood */
    --wt-gold: #fcd34d;
    --wt-gold-hi: #fde68a;
    --wt-orange: #f8890a;
    --wt-brass: #c9a24a;
    --wt-brass-hi: #f3d98b;
    --wt-brass-lo: #7a5419;
    --wt-rim: #4a1405; /* the lockup's red-brown outline */
    --wt-teal: #2de2c8;
    --wt-danger: #fb7185;
    --wt-radius: 10px;
    --wt-main-max: 480px;

    /* Horizontal planks: seams, per-plank tone, grain that drifts across the
       boards, a knot, weathering, then the base brown. Near-black on purpose
       so white and gold text keep their contrast. */
    --wt-wood:
        repeating-linear-gradient(180deg, transparent 0 41px, rgba(0, 0, 0, 0.55) 41px 43px, rgba(255, 214, 160, 0.07) 43px 44px),
        repeating-linear-gradient(180deg, rgba(255, 196, 130, 0.035) 0 44px, rgba(0, 0, 0, 0.16) 44px 88px, transparent 88px 132px),
        repeating-linear-gradient(178.8deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 5px, rgba(255, 210, 160, 0.035) 5px 6px, transparent 6px 11px),
        repeating-linear-gradient(181.1deg, rgba(0, 0, 0, 0.16) 0 1.5px, transparent 1.5px 19px),
        repeating-linear-gradient(179.5deg, rgba(255, 205, 150, 0.03) 0 2px, transparent 2px 29px),
        radial-gradient(ellipse 26px 7px at 78% 64%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12) 60%, transparent 72%),
        radial-gradient(ellipse 18px 5px at 16% 22%, rgba(0, 0, 0, 0.32), transparent 70%),
        radial-gradient(130% 100% at 50% 40%, rgba(120, 72, 34, 0.16), rgba(0, 0, 0, 0.42)),
        linear-gradient(180deg, #2b1a0f, #1e120a);

    /* One brass rivet, then one per corner. */
    --wt-rivet: radial-gradient(circle at 42% 38%, #fff5cc 0 1px, #e9c46c 1.8px, #a87624 3.4px, #4d300d 4.6px, rgba(0, 0, 0, 0.55) 5.2px, transparent 6px);
    --wt-rivets:
        var(--wt-rivet) left 7px top 7px / 12px 12px no-repeat,
        var(--wt-rivet) right 7px top 7px / 12px 12px no-repeat,
        var(--wt-rivet) left 7px bottom 7px / 12px 12px no-repeat,
        var(--wt-rivet) right 7px bottom 7px / 12px 12px no-repeat;

    /* Nail head for anything pinned up (flyers, the playbill). */
    --wt-nail: radial-gradient(circle at 38% 34%, #fff4c9 0 1.4px, #d9b057 2.6px, #8a6020 4.6px, #3e2808 5.6px, transparent 6.2px);
}

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

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

body.wt {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--wt-ink);
    color: var(--wt-text);
    font-family: 'Tektur', system-ui, sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Dusk town up top, fading to ink so the form reads cleanly.
   The tall splash is 1:1.5 with the original town frame in its bottom 37.21%.
   The layer is sized so that frame lands exactly where it always did — the
   top 72vh of the viewport (72 / 0.3721 = 193.5vh) — and the extra sky runs
   up ABOVE the viewport. iOS drags fixed layers along during rubber-band
   overscroll and paints page content under the status bar; both used to
   expose the layer's top edge as a hard ink band. */
.wt-bg {
    position: fixed;
    inset: calc(72vh - 193.5vh) 0 auto 0;
    height: 193.5vh;
    z-index: -1;
    background:
        /* One gradient for the whole layer: a flat 20% tint over the added
           sky, then the old 0.2 → 0.45 → 0.85 → ink ramp across the town
           frame (62.79% = 121.5/193.5; 45% and 80% of the frame map to
           79.53% and 92.56%). Two stacked layers here double-darkened the
           frame's top edge into a visible line. */
        linear-gradient(180deg, rgba(10, 14, 26, 0.2) 0%, rgba(10, 14, 26, 0.2) 62.79%, rgba(10, 14, 26, 0.45) 79.53%, rgba(10, 14, 26, 0.85) 92.56%, var(--wt-ink) 100%),
        url('/static/images/wildtexas_quest_splash_tall.webp') center bottom / cover no-repeat,
        var(--wt-sky-top);
}

.wt-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wt-main-max);
    margin: 0 auto;
    padding: 24px 16px calc(40px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 18px;
}

a {
    color: var(--wt-gold);
}

/* ---------- Materials ---------- */

/* Weathered wood board, thin brass border, a rivet in each corner. */
.wt-when,
.wt-seats,
.wt-card,
.wt-preview,
.wt-posted {
    position: relative;
    border: 2px solid var(--wt-brass);
    border-color: #dcb663 #8f6524 #6f4b16 #b88c3a;
    border-radius: var(--wt-radius);
    background: var(--wt-rivets), var(--wt-wood);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 1px rgba(255, 226, 150, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 14px 34px rgba(0, 0, 0, 0.5);
}

/* Western display type: Rye, gold fill, red-brown outline and a hard drop,
   like the lockup. The fill only goes transparent where background-clip:text
   exists, so an old browser still gets gold text. */
.wt-headline,
.wt-card-title,
.wt-posted-title {
    font-family: 'Rye', 'Tektur', Georgia, serif;
    font-weight: 400;
    color: var(--wt-gold);
    text-shadow: 0 1px 0 var(--wt-rim), 0 2px 0 #2a0a02, 0 4px 8px rgba(0, 0, 0, 0.6);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .wt-headline,
    .wt-card-title,
    .wt-posted-title {
        /* One gradient per line box: the size matches the line height. */
        background-image: linear-gradient(180deg, #fef3c7 0%, #fcd34d 34%, #f9a826 68%, #f8890a 100%);
        background-size: 100% 1.12em;
        background-repeat: repeat-y;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        filter:
            drop-shadow(1px 0 0 var(--wt-rim))
            drop-shadow(-1px 0 0 var(--wt-rim))
            drop-shadow(0 1px 0 var(--wt-rim))
            drop-shadow(0 -1px 0 var(--wt-rim))
            drop-shadow(0 2px 0 #2a0a02)
            drop-shadow(0 5px 7px rgba(0, 0, 0, 0.55));
    }
}

/* ---------- Hero ---------- */

.wt-hero {
    text-align: center;
}

.wt-logo {
    display: block;
    width: min(88vw, 440px);
    height: auto;
    margin: 0 auto 6px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.wt-logo-sm {
    width: min(72vw, 320px);
}

.wt-headline {
    margin: 0;
    font-size: clamp(25px, 7.4vw, 36px);
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.wt-tagline {
    margin: 6px 0 16px;
    font-size: clamp(16px, 4.6vw, 19px);
    font-weight: 500;
    color: var(--wt-gold-hi);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Date strip: a board over the door. */
.wt-when {
    display: grid;
    gap: 8px;
    padding: 16px 22px;
    text-align: center;
}

.wt-date {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wt-gold-hi);
}

.wt-date span {
    display: block;
}

.wt-time {
    margin-top: 2px;
    font-size: 22px;
    color: #fff;
}

.wt-where {
    display: grid;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 162, 74, 0.35);
    text-decoration: none;
    color: var(--wt-text);
}

.wt-venue {
    font-weight: 600;
}

.wt-address {
    font-size: 14px;
    color: var(--wt-muted);
    text-decoration: underline;
    text-decoration-color: rgba(211, 196, 166, 0.45);
    text-underline-offset: 3px;
    text-wrap: balance;
}

/* ---------- Seats: a row of sheriff stars ---------- */

.wt-seats {
    padding: 12px 20px 14px;
}

.wt-seats-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wt-muted);
}

.wt-seats-count {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--wt-gold);
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.35);
}

.wt-seats.is-low .wt-seats-count {
    color: var(--wt-orange);
    text-shadow: 0 0 10px rgba(248, 137, 10, 0.5);
}

.wt-pips {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 3px;
    align-items: center;
    /* The glow lives on the row: clip-path would cut it off each star. */
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 5px rgba(252, 190, 60, 0.45));
}

.wt-pip {
    width: 100%;
    max-width: 30px;
    justify-self: center;
    aspect-ratio: 1;
    clip-path: polygon(50% 0%, 63.2% 31.8%, 97.6% 34.5%, 71.4% 57%, 79.4% 90.5%, 50% 72.5%, 20.6% 90.5%, 28.6% 57%, 2.4% 34.5%, 36.8% 31.8%);
    /* Center boss, then ten bevelled facets lit from the upper left. */
    background:
        radial-gradient(circle at 50% 50%, #fff6cf 0 7%, #b8822a 8% 11%, transparent 12%),
        conic-gradient(from 0deg at 50% 50%,
            #e7b44a 0 36deg, #fde9a0 36deg 72deg, #a8701a 72deg 108deg, #e2ab40 108deg 144deg,
            #8a5a10 144deg 180deg, #b98126 180deg 216deg, #edc05a 216deg 252deg, #c48b2c 252deg 288deg,
            #fff1bd 288deg 324deg, #f7d77a 324deg 360deg);
    transition: opacity 0.3s ease;
}

/* Taken: dull tin. */
.wt-pip.is-taken {
    opacity: 0.85;
    background:
        radial-gradient(circle at 50% 50%, #8a909b 0 7%, #3a3e45 8% 11%, transparent 12%),
        conic-gradient(from 0deg at 50% 50%,
            #3f434b 0 36deg, #5a5f69 36deg 72deg, #25282d 72deg 108deg, #3b3f47 108deg 144deg,
            #1f2126 144deg 180deg, #2c2f35 180deg 216deg, #484c55 216deg 252deg, #31343a 252deg 288deg,
            #60656f 288deg 324deg, #4f535c 324deg 360deg);
}

.wt-seats.is-loading .wt-pip {
    animation: wt-pulse 1.2s ease-in-out infinite;
}

@keyframes wt-pulse {
    50% {
        opacity: 0.35;
    }
}

/* ---------- Signup card ---------- */

.wt-card {
    padding: 24px 20px;
}

.wt-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.wt-step[hidden] {
    display: none;
}

.wt-card-title {
    margin: 0;
    font-size: 23px;
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
}

.wt-card-sub {
    margin: 0;
    color: var(--wt-muted);
    text-align: center;
    text-wrap: pretty;
}

.wt-card-sub strong {
    color: var(--wt-text);
    white-space: nowrap;
}

.wt-label {
    margin: 4px 0 -4px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wt-muted);
}

.wt-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(201, 162, 74, 0.42);
    border-radius: 8px;
    background: #110a05;
    color: var(--wt-text);
    font: inherit;
    font-size: 18px; /* ≥16px stops iOS zooming on focus */
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wt-input::placeholder {
    color: rgba(211, 196, 166, 0.45);
}

.wt-input:focus {
    border-color: #e6bd62;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(230, 189, 98, 0.4);
}

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

.wt-input-phone {
    letter-spacing: 0.04em;
}

.wt-input-code {
    height: 64px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
    padding-left: calc(16px + 0.42em);
}

/* Primary: an embossed brass plate. */
.wt-btn {
    position: relative;
    width: 100%;
    min-height: 56px;
    margin-top: 6px;
    padding: 0 18px;
    border: 1px solid #7a4e12;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 46%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(120, 60, 0, 0.035) 1px 2px, transparent 2px 5px),
        linear-gradient(180deg, #fde68a 0%, #fcd34d 30%, #f5a524 72%, #f8890a 100%);
    color: #2a1503;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.65);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 225, 0.9),
        inset 0 -3px 0 rgba(122, 62, 4, 0.45),
        0 5px 0 #6e3a06,
        0 9px 22px rgba(0, 0, 0, 0.55);
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.wt-btn:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 225, 0.7),
        inset 0 -1px 0 rgba(122, 62, 4, 0.45),
        0 1px 0 #6e3a06,
        0 3px 10px rgba(0, 0, 0, 0.5);
}

.wt-btn:focus-visible {
    outline: 3px solid var(--wt-teal);
    outline-offset: 3px;
}

.wt-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.wt-btn.is-loading {
    color: transparent;
    text-shadow: none;
}

.wt-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(26, 15, 0, 0.3);
    border-top-color: #1a0f00;
    border-radius: 50%;
    animation: wt-spin 0.7s linear infinite;
}

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

.wt-btn-danger {
    border-color: #5f1111;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, #f87171 0%, #b91c1c 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 220, 0.6),
        inset 0 -3px 0 rgba(80, 0, 0, 0.35),
        0 5px 0 #6b1111,
        0 9px 22px rgba(0, 0, 0, 0.5);
}

.wt-btn-danger:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 220, 0.5),
        inset 0 -1px 0 rgba(80, 0, 0, 0.35),
        0 1px 0 #6b1111,
        0 3px 10px rgba(0, 0, 0, 0.5);
}

.wt-btn-danger.is-loading::after {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.wt-link {
    min-height: 40px;
    border: 0;
    background: none;
    color: var(--wt-muted);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: rgba(211, 196, 166, 0.5);
    text-underline-offset: 3px;
    cursor: pointer;
}

.wt-link:focus-visible {
    outline: 2px solid var(--wt-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

.wt-link-quiet {
    display: block;
    margin: 4px auto 0;
    font-size: 13px;
    color: rgba(211, 196, 166, 0.82);
    text-align: center;
    text-wrap: balance;
}

.wt-link:disabled {
    text-decoration: none;
    opacity: 0.6;
    cursor: default;
}

.wt-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(251, 113, 133, 0.45);
    border-radius: 8px;
    background: rgba(90, 10, 20, 0.45);
    color: #fecdd3;
    font-size: 14px;
    text-align: center;
}

.wt-error[hidden] {
    display: none;
}

.wt-fine {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(211, 196, 166, 0.85);
    text-align: center;
}

/* Returning player */

.wt-player {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 4px 0;
}

.wt-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, #3a2616, #140c06);
    border: 3px solid var(--wt-brass);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(201, 162, 74, 0.25), 0 0 26px rgba(252, 211, 77, 0.3);
}

.wt-avatar[hidden] {
    display: none;
}

.wt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.wt-avatar img[hidden] {
    display: none;
}

.wt-avatar-empty {
    font-family: 'Rye', 'Tektur', serif;
    font-size: 44px;
    color: var(--wt-gold);
}

.wt-avatar-lg {
    width: 144px;
    height: 144px;
    margin: 0 auto;
}

.wt-player-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

/* New player: selfie tile + gender toggle */

.wt-selfie {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 2px auto 4px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(230, 189, 98, 0.75);
    background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
    color: var(--wt-gold);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wt-selfie.has-photo {
    border-style: solid;
    border-color: var(--wt-brass);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 26px rgba(252, 211, 77, 0.3);
}

.wt-selfie.is-invalid {
    border-color: var(--wt-danger);
}

.wt-selfie img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-selfie img[hidden],
.wt-selfie-empty[hidden],
.wt-selfie-retake[hidden] {
    display: none;
}

.wt-selfie-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wt-selfie-retake {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(17, 10, 5, 0.85);
    color: var(--wt-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wt-gender {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.wt-gender legend {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.wt-choice {
    position: relative;
    cursor: pointer;
}

.wt-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wt-choice span {
    display: grid;
    place-items: center;
    height: 52px;
    border: 1px solid rgba(201, 162, 74, 0.42);
    border-radius: 8px;
    background: #110a05;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
    font-size: 17px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.wt-choice input:checked + span {
    border-color: #e6bd62;
    background: linear-gradient(180deg, rgba(252, 211, 77, 0.22), rgba(248, 137, 10, 0.14)), #1a1008;
    color: var(--wt-gold-hi);
    box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.2), 0 0 0 3px rgba(230, 189, 98, 0.3);
}

.wt-choice input:focus-visible + span {
    outline: 3px solid var(--wt-teal);
    outline-offset: 2px;
}

.wt-gender.is-invalid .wt-choice span {
    border-color: var(--wt-danger);
}

/* ---------- Tonight's Bill: a playbill on aged paper ---------- */

.wt-levels {
    position: relative;
    padding: 26px 22px 20px;
    border-radius: 2px;
    color: #2b1a0c;
    background:
        radial-gradient(ellipse at 18% 12%, rgba(130, 78, 24, 0.2), transparent 38%),
        radial-gradient(ellipse at 88% 84%, rgba(120, 66, 18, 0.24), transparent 42%),
        radial-gradient(circle at 66% 32%, rgba(255, 250, 232, 0.4), transparent 48%),
        radial-gradient(circle 16px at 9% 74%, rgba(120, 70, 20, 0.14), transparent 100%),
        repeating-linear-gradient(0.7deg, rgba(90, 60, 20, 0.035) 0 1px, transparent 1px 5px, rgba(90, 60, 20, 0.02) 5px 6px, transparent 6px 11px),
        repeating-linear-gradient(89.3deg, rgba(90, 60, 20, 0.018) 0 1px, transparent 1px 13px),
        radial-gradient(125% 110% at 50% 45%, transparent 58%, rgba(96, 50, 12, 0.5) 100%),
        linear-gradient(180deg, #f1e2bb, #e0c690);
    box-shadow:
        inset 0 0 0 1px rgba(90, 50, 15, 0.25),
        inset 0 0 36px rgba(120, 70, 20, 0.3),
        0 16px 34px rgba(0, 0, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.4);
    transform: rotate(-0.6deg);
}

/* Two nails holding it up. */
.wt-levels::before,
.wt-levels::after {
    content: "";
    position: absolute;
    top: 7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--wt-nail);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
}

.wt-levels::before {
    left: 10px;
}

.wt-levels::after {
    right: 10px;
}

.wt-bill-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6e3f16;
}

.wt-bill-kicker::before,
.wt-bill-kicker::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.wt-levels-title {
    margin: 0;
    font-family: 'Rye', 'Tektur', Georgia, serif;
    font-size: clamp(26px, 7.6vw, 32px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #7c1d0c;
    text-shadow: 0 0 1px rgba(124, 29, 12, 0.45), 0 1px 0 rgba(255, 244, 214, 0.55);
    text-align: center;
}

.wt-bill-sub {
    margin: 4px 0 10px;
    padding-bottom: 10px;
    border-bottom: 3px double rgba(70, 40, 12, 0.55);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5a3a1a;
    text-align: center;
    text-wrap: balance;
}

.wt-level-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-level-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 2px;
    border-bottom: 1px dashed rgba(70, 40, 12, 0.32);
}

.wt-level-list li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.wt-level-name {
    font-family: 'Rye', 'Tektur', Georgia, serif;
    font-size: 19px;
    line-height: 1.2;
    color: #2b1a0c;
    text-shadow: 0 0 1px rgba(43, 26, 12, 0.3);
}

/* Brass tag with a punched hole: the level numbers, and "Next" on /secured. */
.wt-level-n {
    flex: none;
    min-width: 46px;
    padding: 3px 8px 3px 15px;
    border: 1px solid #6f4a12;
    border-radius: 3px 9px 9px 3px;
    background:
        radial-gradient(circle at 7px 50%, #2b1a0c 0 2px, #7a5419 2.4px, transparent 3.2px),
        linear-gradient(180deg, #f8e19a 0%, #d8ab4c 45%, #a8781f 100%);
    color: #2a1503;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 248, 210, 0.8), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------- Flyers (shared by the strip and the rails) ---------- */

.wt-flyer {
    position: relative;
    display: block;
    background: #1a120b; /* holds the poster's place until the lazy image lands */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.45);
    transform-origin: 50% 10px; /* it swings on its nail */
    transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.wt-flyer img {
    display: block;
    width: 100%;
    height: auto;
}

/* Nail head at top centre. */
.wt-flyer::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 50%;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: var(--wt-nail);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* Paper sheen: lighter where the light hits, a little curl at the bottom. */
.wt-flyer::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 250, 235, 0.1), transparent 34%, transparent 72%, rgba(0, 0, 0, 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 240, 210, 0.08);
}

.wt-flyer:hover,
.wt-flyer:focus-visible {
    z-index: 3;
    transform: translateY(-6px) rotate(0deg) scale(1.04);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.45);
}

.wt-flyer:focus-visible {
    outline: 3px solid var(--wt-teal);
    outline-offset: 4px;
}

/* ---------- Posted around town (below 1360px) ---------- */

.wt-posted {
    min-width: 0;
    padding: 20px 0 6px;
    text-align: center;
}

.wt-posted-title {
    margin: 0 18px;
    text-wrap: balance;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.wt-posted-sub {
    margin: 6px 18px 0;
    font-size: 13px;
    color: var(--wt-muted);
}

.wt-strip {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 22px 18px 24px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 74, 0.7) transparent;
    -webkit-overflow-scrolling: touch;
}

/* One poster height for the whole row (a 3:4 flyer ~62vw wide); each
   flyer's width follows its own shape, so a 9:16 one is simply narrower. */
.wt-strip {
    --sh: calc(clamp(168px, 62vw, 280px) * 1.34);
}

.wt-strip-item {
    flex: none;
    scroll-snap-align: start;
}

.wt-strip .wt-flyer img {
    width: auto;
    height: var(--sh);
}

/* ---------- Rails: flyers nailed to the walls either side (≥1360px) ---------- */

.wt-rail {
    display: none;
}

/* ---------- Secured page ---------- */

.wt-hero-compact .wt-logo {
    margin-bottom: 0;
}

.wt-card-secured {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

/* The one loud neon accent: the cyber half of the brand. */
.wt-badge {
    align-self: center;
    margin: 0;
    padding: 6px 14px;
    border: 2px solid var(--wt-teal);
    border-radius: 999px;
    background: rgba(4, 30, 28, 0.55);
    color: var(--wt-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(45, 226, 200, 0.6);
    box-shadow: 0 0 18px rgba(45, 226, 200, 0.3), inset 0 0 12px rgba(45, 226, 200, 0.2);
}

.wt-secured-title {
    font-size: clamp(26px, 8vw, 34px);
}

/* On /secured the date strip sits inside the card: drop the second board. */
.wt-card .wt-when {
    border: 1px solid rgba(201, 162, 74, 0.35);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wt-next {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wt-next-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-align: left;
}

.wt-see-you {
    color: var(--wt-gold);
    font-weight: 600;
}

.wt-stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wt-stores a {
    display: inline-flex;
}

.wt-stores img {
    height: 50px;
    width: auto;
}

/* ---------- Footer / utilities ---------- */

.wt-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wt-footer a {
    color: rgba(211, 196, 166, 0.85);
    text-decoration: none;
}

.wt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* Tablets and landscape phones: smaller flyers in the strip. */
@media (min-width: 600px) {
    .wt-strip {
        --sh: 268px; /* a 3:4 flyer 200px wide */
    }
}

@media (min-width: 720px) {
    .wt-main {
        padding-top: 44px;
    }
}

/* Desktop: the story on the left, the signup card pinned on the right, so a
   wide screen isn't one phone-width column floating in the middle. */
@media (min-width: 960px) {
    body[data-page="signup"] {
        --wt-main-max: 1080px;
    }

    body[data-page="signup"] .wt-main {
        display: grid;
        padding: 52px 32px 48px;
        grid-template-columns: minmax(0, 1fr) 440px;
        grid-template-areas:
            "hero   card"
            "seats  card"
            "levels card"
            "preview preview"
            "posted posted"
            "footer footer";
        grid-template-rows: auto auto 1fr auto auto auto;
        column-gap: 48px;
        row-gap: 20px;
        align-items: start;
    }

    body[data-page="signup"] .wt-hero {
        grid-area: hero;
        text-align: left;
    }

    body[data-page="signup"] .wt-logo {
        width: min(100%, 520px);
        margin: 0 0 10px -6px; /* the art's own padding, so the letters line up with the column */
    }

    body[data-page="signup"] .wt-headline {
        font-size: clamp(34px, 3.4vw, 44px);
    }

    body[data-page="signup"] .wt-tagline {
        font-size: 21px;
    }

    body[data-page="signup"] .wt-when {
        text-align: left;
        max-width: 520px;
    }

    body[data-page="signup"] .wt-seats {
        grid-area: seats;
        max-width: 520px;
    }

    body[data-page="signup"] .wt-card {
        grid-area: card;
        /* Keep the form inside its grid area, clear of the full-width preview. */
        position: relative;
    }

    body[data-page="signup"] .wt-levels {
        grid-area: levels;
        max-width: 520px;
        margin-top: 8px;
    }

    body[data-page="signup"] .wt-preview {
        grid-area: preview;
    }

    body[data-page="signup"] .wt-posted {
        grid-area: posted;
        margin-top: 8px;
    }

    body[data-page="signup"] .wt-footer {
        grid-area: footer;
        justify-content: flex-start;
    }

    /* Same idea on desktop: a viewport of town, a viewport of sky above it. */
    .wt-bg {
        inset: -100vh 0 auto 0;
        height: 200vh;
        background:
            linear-gradient(90deg, rgba(10, 14, 26, 0.2) 0%, rgba(10, 14, 26, 0.55) 55%, rgba(10, 14, 26, 0.85) 100%),
            linear-gradient(180deg, rgba(10, 14, 26, 0) 70%, var(--wt-ink) 100%),
            url('/static/images/wildtexas_quest_splash_tall.webp') center bottom / cover no-repeat,
            var(--wt-sky-top);
    }

    body[data-page="secured"] {
        --wt-main-max: 560px;
    }
}

/* Wide screens: the strip gives way to flyers nailed to wooden walls in both
   gutters. The page narrows so no rail ever sits over the content: a rail is
   exactly one gutter wide. */
@media (min-width: 1360px) and (min-height: 620px) {
    body[data-page="signup"] {
        --wt-main-max: 960px;
    }

    body[data-page="signup"] .wt-main {
        grid-template-columns: minmax(0, 1fr) 400px;
        column-gap: 40px;
    }

    .wt-posted {
        display: none;
    }

    .wt-rail {
        /* Flyer width: fit the gutter, cap it, and keep three stacked
           posters inside the window height. */
        --fw: min(100%, 230px, calc((100vh - 134px) / 4.02));
        position: fixed;
        z-index: 1;
        top: 0;
        bottom: 0;
        width: calc((100% - var(--wt-main-max)) / 2);
        padding: 30px 26px 20px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        align-content: flex-start;
        justify-content: space-evenly;
        row-gap: 22px;
        column-gap: 100vw; /* a poster that can't fit wraps out of sight… */
        overflow: hidden;
        overflow: clip; /* …and clip (unlike hidden) can't be scrolled to by focus */
        /* Vertical boards. */
        background:
            repeating-linear-gradient(90deg, transparent 0 58px, rgba(0, 0, 0, 0.55) 58px 60px, rgba(255, 214, 160, 0.06) 60px 61px),
            repeating-linear-gradient(90deg, rgba(255, 196, 130, 0.035) 0 61px, rgba(0, 0, 0, 0.16) 61px 122px, transparent 122px 183px),
            repeating-linear-gradient(90.9deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 6px, rgba(255, 210, 160, 0.03) 6px 7px, transparent 7px 12px),
            repeating-linear-gradient(88.8deg, rgba(0, 0, 0, 0.15) 0 1.5px, transparent 1.5px 21px),
            radial-gradient(ellipse 7px 24px at 30% 58%, rgba(0, 0, 0, 0.35), transparent 72%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.45)),
            linear-gradient(180deg, #2a190e, #1c1109);
    }

    .wt-rail-left {
        left: 0;
        box-shadow: inset -14px 0 22px -8px rgba(0, 0, 0, 0.7), 6px 0 22px rgba(0, 0, 0, 0.5);
        border-right: 3px solid #120a05;
    }

    .wt-rail-right {
        right: 0;
        box-shadow: inset 14px 0 22px -8px rgba(0, 0, 0, 0.7), -6px 0 22px rgba(0, 0, 0, 0.5);
        border-left: 3px solid #120a05;
    }

    /* One column: the two DOM columns interleave via each flyer's order. */
    .wt-rail-col {
        display: contents;
    }

    .wt-rail .wt-flyer {
        flex: none;
        width: var(--fw);
    }

    .wt-rail .wt-flyer[data-rank="4"],
    .wt-rail .wt-flyer[data-rank="5"] {
        display: none;
    }
}

/* Taller windows get a fourth and fifth poster per side. */
@media (min-width: 1360px) and (min-height: 1150px) {
    .wt-rail {
        --fw: min(100%, 230px, calc((100vh - 170px) / 5.36));
    }

    .wt-rail .wt-flyer[data-rank="4"] {
        display: block;
    }
}

@media (min-width: 1360px) and (min-height: 1500px) {
    .wt-rail {
        --fw: min(100%, 230px, calc((100vh - 206px) / 7.15));
    }

    .wt-rail .wt-flyer[data-rank="5"] {
        display: block;
    }
}

@media (min-width: 1600px) and (min-height: 620px) {
    body[data-page="signup"] {
        --wt-main-max: 1080px;
    }

    body[data-page="signup"] .wt-main {
        grid-template-columns: minmax(0, 1fr) 440px;
        column-gap: 48px;
    }
}

/* Very wide: two staggered columns per wall, all five posters a side. */
@media (min-width: 1800px) and (min-height: 620px) {
    .wt-rail {
        --fw: min(100%, 250px, calc((100vh - 134px) / 4.47));
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        column-gap: 0;
        padding: 0 14px;
    }

    .wt-rail-right {
        flex-direction: row-reverse; /* outer column against the window edge */
    }

    .wt-rail-col {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        align-content: flex-start;
        justify-content: space-evenly;
        row-gap: 22px;
        column-gap: 100vw;
        flex: 1 1 0;
        min-width: 0;
        padding: 30px 12px 20px;
    }

    .wt-rail-col + .wt-rail-col {
        padding-top: calc(30px + min(130px, 12vh));
    }

    .wt-rail .wt-flyer[data-rank] {
        display: block;
    }
}

/* Very narrow phones (iPhone SE / 320px): tighten so nothing crowds. */
@media (max-width: 360px) {
    .wt-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wt-card {
        padding: 20px 14px;
    }

    .wt-when,
    .wt-seats {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wt-levels {
        padding: 24px 16px 18px;
    }

    .wt-bill-sub {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .wt-posted-title {
        font-size: 20px;
    }

    .wt-card-title {
        font-size: 21px;
    }

    .wt-input-code {
        font-size: 26px;
        letter-spacing: 0.32em;
        padding-left: calc(16px + 0.32em);
    }

    .wt-pips {
        gap: 2px;
    }

    .wt-strip {
        gap: 14px;
        padding-left: 14px;
        padding-right: 14px;
        scroll-padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-seats.is-loading .wt-pip,
    .wt-btn.is-loading::after {
        animation: none;
    }
    .wt-btn,
    .wt-pip,
    .wt-flyer {
        transition: none;
    }
}

/* ---------- Full-screen flyer viewer ---------- */

html.wt-lock {
    overflow: hidden;
}

.wt-viewer {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wt-text);
    overflow: hidden;
}

.wt-viewer::backdrop {
    background:
        radial-gradient(120% 90% at 50% 45%, rgba(58, 34, 16, 0.55), rgba(0, 0, 0, 0.2) 70%),
        rgba(8, 6, 4, 0.93);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wt-viewer[open] {
    display: flex;
    animation: wt-viewer-in 0.22s ease-out;
}

@keyframes wt-viewer-in {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
}

.wt-viewer-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding:
        max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.wt-viewer-top {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wt-viewer-count {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wt-muted);
}

.wt-viewer-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(243, 217, 139, 0.55);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 240, 200, 0.35), transparent 55%),
        linear-gradient(180deg, #3a2615, #1d120a);
    color: var(--wt-brass-hi);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 230, 170, 0.25);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.wt-viewer-btn:hover {
    border-color: var(--wt-brass-hi);
}

.wt-viewer-btn:active {
    transform: scale(0.94);
}

.wt-viewer-btn:focus-visible,
.wt-viewer-save:focus-visible {
    outline: 3px solid var(--wt-teal);
    outline-offset: 3px;
}

.wt-viewer-figure {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    margin: 14px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    touch-action: pan-y;
}

.wt-viewer-figure:focus {
    outline: none;
}

.wt-viewer-img {
    display: block;
    max-width: min(92vw, 760px);
    max-height: calc(100% - 44px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 6px 18px rgba(0, 0, 0, 0.6);
    transition: filter 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.wt-viewer-img.is-loading {
    filter: saturate(0.9) blur(0.4px);
}

.wt-viewer-title {
    font-family: 'Rye', serif;
    font-size: clamp(18px, 4.8vw, 24px);
    text-align: center;
    color: var(--wt-gold);
    text-shadow: 0 2px 0 var(--wt-rim), 0 0 18px rgba(248, 137, 10, 0.35);
}

.wt-viewer-bar {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wt-viewer-actions {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wt-viewer-save {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid rgba(243, 217, 139, 0.45);
    color: var(--wt-brass-hi);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.wt-viewer .wt-viewer-cta {
    width: auto;
    min-height: 46px;
    margin-top: 0;
    padding: 0 22px;
    font-size: 14px;
}

@media (max-width: 420px) {
    .wt-viewer-save {
        padding: 0 12px;
        font-size: 12px;
    }

    .wt-viewer .wt-viewer-cta {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-viewer[open] {
        animation: none;
    }
}

/* ---------- Riding with you: who's already signed up ---------- */

.wt-riders {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(243, 217, 139, 0.18);
}

.wt-riders[hidden] {
    display: none;
}

.wt-riders-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--wt-muted);
}

.wt-riders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-rider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.wt-rider-face {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #3a2615, #140c06);
    border: 2px solid var(--wt-brass);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 230, 170, 0.18);
}

.wt-rider-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.wt-rider-face.is-initial {
    font-family: 'Rye', serif;
    font-size: 20px;
    color: var(--wt-gold);
    text-shadow: 0 1px 0 var(--wt-rim);
}

.wt-rider-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--wt-text);
}

/* ---------- Preview: a brass-framed window into the frontier ---------- */

.wt-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--wt-brass-hi);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.wt-preview {
    min-width: 0;
    padding: clamp(16px, 3vw, 28px);
}

.wt-preview-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 18px;
}

.wt-preview-heading .wt-card-title {
    margin: 0;
    font-size: clamp(22px, 4vw, 32px);
    text-wrap: balance;
}

.wt-preview-heading > .wt-link,
.wt-preview-nav .wt-link,
.wt-preview-cta > .wt-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.wt-preview-kicker {
    margin: 0 0 8px;
    color: var(--wt-teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.wt-preview-film {
    margin: 0;
}

.wt-preview-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #070707;
    border: 1px solid var(--wt-brass-lo);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wt-preview-video:focus-visible {
    outline: 3px solid var(--wt-teal);
    outline-offset: 4px;
}

.wt-preview-film figcaption {
    margin-top: 14px;
    color: var(--wt-muted);
    font-size: 13px;
    text-align: center;
    text-wrap: balance;
}

body[data-page="preview"] {
    --wt-main-max: 1040px;
}

body[data-page="preview"] .wt-logo {
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 18px;
}

body[data-page="preview"] .wt-headline {
    font-size: clamp(28px, 5vw, 48px);
    text-wrap: balance;
}

.wt-preview-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.wt-preview-cta p {
    margin: 6px 0 0;
    color: var(--wt-muted);
}

.wt-preview-cta .wt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px);
    text-decoration: none;
}
