/* ==========================================================================
   Vice Drive-In — blue-hour Art Deco drive-in
   Tokens → base → shell → components → pages → player → motion
   ========================================================================== */

/* Fonts: local installs first. To ship font files, drop WOFF2s in /fonts and
   uncomment the url() lines (see fonts/README.md). Readable fallbacks follow. */

@font-face {
    font-family: 'VDI Display';
    font-weight: 500 800;
    font-display: swap;
    src: local('Barlow Condensed SemiBold'), local('BarlowCondensed-SemiBold'), local('Barlow Condensed');
    /* src: url('../fonts/BarlowCondensed-SemiBold.woff2') format('woff2'); */
}

@font-face {
    font-family: 'VDI UI';
    font-weight: 400 700;
    font-display: swap;
    src: local('DM Sans'), local('DMSans-Regular');
    /* src: url('../fonts/DMSans-Variable.woff2') format('woff2'); */
}

/* ---------------------------------------------------------------- tokens */

:root {
    color-scheme: dark;
    --font-display: 'VDI Display', 'Barlow Condensed', 'Avenir Next Condensed', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --font-ui: 'VDI UI', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* brand */
    --indigo: #131727;
    --slate: #20293c;
    --paper: #fff1db;
    --paper-ink: #231b2d;
    --coral: #ff887b;
    --amber: #ffc879;
    --seafoam: #63ddc1;
    --peri: #a79af0;
    /* theme (night / blue hour) */
    --bg: var(--indigo);
    --bg-2: #181d31;
    --surface: var(--slate);
    --surface-2: #283350;
    --surface-glass: rgb(32 41 60 / 0.72);
    --ink: #f8eedf;
    --ink-2: #c9c2d9;
    --ink-3: #a19bb6;
    --line: rgb(167 154 240 / 0.22);
    --line-strong: rgb(248 238 223 / 0.42);
    --success: var(--seafoam);
    --success-ink: var(--seafoam);
    --accent-ink: var(--peri);
    --danger: #ff9d8f;
    --focus: var(--amber);
    --grad-primary: linear-gradient(100deg, var(--coral) 0%, #ffa57a 48%, var(--amber) 100%);
    --grad-sky: radial-gradient(120% 70% at 85% -10%, rgb(167 154 240 / 0.28), transparent 60%), radial-gradient(90% 60% at -10% 105%, rgb(255 136 123 / 0.22), transparent 60%), radial-gradient(60% 40% at 60% 110%, rgb(99 221 193 / 0.1), transparent 70%), linear-gradient(180deg, #161b2e 0%, var(--indigo) 55%, #10131f 100%);
    --chrome: linear-gradient(135deg, #f3f0ff 0%, #8e88a9 22%, #ffffff 46%, #6f6a8a 66%, #dcd7f0 84%, #9a95b5 100%);
    --shadow-lg: 0 30px 60px -28px rgb(0 0 0 / 0.7), 0 10px 24px -12px rgb(0 0 0 / 0.5);
    --shadow-md: 0 14px 32px -18px rgb(0 0 0 / 0.65);
    --glow-coral: 0 10px 30px -10px rgb(255 136 123 / 0.65);
    --radius: 20px;
    --radius-sm: 14px;
    --gutter: 16px;
    --header-h: 68px;
}

/* sunrise (light) — explicit choice */

:root[data-theme='light'] {
    color-scheme: light;
    --bg: #ffeedd;
    --bg-2: #fff4e6;
    --surface: #fffaf2;
    --surface-2: #fff1db;
    --surface-glass: rgb(255 250 242 / 0.82);
    --ink: #231b2d;
    --ink-2: #4f4159;
    --ink-3: #6e5f78;
    --line: rgb(35 27 45 / 0.14);
    --line-strong: rgb(35 27 45 / 0.38);
    --success: #138a70;
    --success-ink: #0e6f5a;
    --accent-ink: #5747c2;
    --danger: #b4372b;
    --focus: #5747c2;
    --grad-sky: radial-gradient(110% 70% at 90% -15%, rgb(255 200 121 / 0.55), transparent 60%), radial-gradient(80% 60% at -10% 0%, rgb(255 136 123 / 0.28), transparent 60%), radial-gradient(70% 50% at 50% 120%, rgb(167 154 240 / 0.25), transparent 70%), linear-gradient(180deg, #ffe3d0 0%, #fff1db 45%, #fff6ea 100%);
    --shadow-lg: 0 30px 60px -30px rgb(84 45 60 / 0.35), 0 10px 24px -14px rgb(84 45 60 / 0.25);
    --shadow-md: 0 14px 30px -18px rgb(84 45 60 / 0.35);
    --glow-coral: 0 10px 26px -12px rgb(226 96 80 / 0.55);
}

/* sunrise (light) — follow the system when nothing is saved */

@media (prefers-color-scheme: light) {
    :root:not([data-theme='dark']) {
        color-scheme: light;
        --bg: #ffeedd;
        --bg-2: #fff4e6;
        --surface: #fffaf2;
        --surface-2: #fff1db;
        --surface-glass: rgb(255 250 242 / 0.82);
        --ink: #231b2d;
        --ink-2: #4f4159;
        --ink-3: #6e5f78;
        --line: rgb(35 27 45 / 0.14);
        --line-strong: rgb(35 27 45 / 0.38);
        --success: #138a70;
        --success-ink: #0e6f5a;
        --accent-ink: #5747c2;
        --danger: #b4372b;
        --focus: #5747c2;
        --grad-sky: radial-gradient(110% 70% at 90% -15%, rgb(255 200 121 / 0.55), transparent 60%), radial-gradient(80% 60% at -10% 0%, rgb(255 136 123 / 0.28), transparent 60%), radial-gradient(70% 50% at 50% 120%, rgb(167 154 240 / 0.25), transparent 70%), linear-gradient(180deg, #ffe3d0 0%, #fff1db 45%, #fff6ea 100%);
        --shadow-lg: 0 30px 60px -30px rgb(84 45 60 / 0.35), 0 10px 24px -14px rgb(84 45 60 / 0.25);
        --shadow-md: 0 14px 30px -18px rgb(84 45 60 / 0.35);
        --glow-coral: 0 10px 26px -12px rgb(226 96 80 / 0.55);
    }
}

/* ------------------------------------------------------------------ base */

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font: 400 1rem/1.55 var(--font-ui);
    color: var(--ink);
    background: var(--bg);
    background-image: var(--grad-sky);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    transition: opacity 0.25s ease;
}

.booting body {
    opacity: 0;
    animation: boot-reveal 0.01s 1.6s forwards;
    /* failsafe if scripts are slow */
}

@keyframes boot-reveal {
    to {
        opacity: 1;
    }
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.005em;
    margin: 0;
    font-stretch: condensed;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

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

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--paper);
    color: var(--paper-ink);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

@media (min-width: 720px) {
    :root {
        --gutter: 28px;
    }
}

main {
    flex: 1;
}

/* ----------------------------------------------------------------- shell */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-height: 44px;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    font-stretch: condensed;
}

.header-tools {
    display: flex;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--ink-2);
    white-space: nowrap;
}

.chip-demo {
    border-color: color-mix(in srgb, var(--peri) 55%, transparent);
    color: var(--accent-ink);
}

@media (max-width: 440px) {
    .chip-demo {
        display: none;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 1.2rem;
        letter-spacing: 0.04em;
    }
}

.site-footer {
    margin-top: 48px;
    padding: 22px 0 calc(26px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer p {
    max-width: 76ch;
}

/* --------------------------------------------------------------- buttons */

.btn {
    --btn-h: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--btn-h);
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
    text-align: center;
}

.btn:active {
    transform: translateY(1px) scale(0.985);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn-primary {
    color: var(--paper-ink);
    background: var(--grad-primary);
    box-shadow: var(--glow-coral), inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -2px 0 rgb(35 27 45 / 0.12);
}

.btn-primary:hover {
    filter: brightness(1.05) saturate(1.05);
    transform: translateY(-1px);
}

.btn-secondary {
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--ink-2);
    background: var(--surface);
}

.btn-quiet {
    background: transparent;
    padding-inline: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 4px;
}

.btn-quiet:hover {
    text-decoration-color: currentColor;
}

.btn-lg {
    --btn-h: 56px;
    font-size: 1.0625rem;
    padding: 0 28px;
    border-radius: 16px;
}

.btn-xl {
    --btn-h: 64px;
    font-size: 1.25rem;
    padding: 0 36px;
    border-radius: 18px;
}

.btn-block {
    width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: saturate(0.6);
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
    border: 1.5px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome) border-box;
    transition: transform 0.15s ease, filter 0.2s;
}

.icon-btn:hover {
    filter: brightness(1.08);
}

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

.icon-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn svg circle,
.icon-btn[data-theme-toggle] svg path:only-child {
    fill: none;
}

.link-btn {
    background: none;
    border: 0;
    padding: 0 4px;
    min-height: 44px;
    font-weight: 700;
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* ------------------------------------------------------- shared pieces */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seafoam);
    box-shadow: 0 0 0 4px rgb(99 221 193 / 0.2), 0 0 12px var(--seafoam);
}

.lede {
    font-size: 1.0625rem;
    color: var(--ink-2);
    max-width: 56ch;
}

.fine {
    font-size: 0.875rem;
    color: var(--ink-3);
}

.card {
    background: var(--surface-glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chrome-trim {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome) border-box;
}

/* chasing marquee bulbs — a repeating radial pattern */

.bulbs {
    --bulb: var(--amber);
    height: 14px;
    background-image: radial-gradient(circle at 50% 50%, #fffbe9 0 2px, var(--bulb) 3px, rgb(255 200 121 / 0.25) 5px, transparent 7px);
    background-size: 22px 14px;
    background-repeat: repeat-x;
    animation: bulb-chase 1.4s steps(2) infinite;
    filter: drop-shadow(0 0 4px rgb(255 200 121 / 0.6));
}

@keyframes bulb-chase {
    to {
        background-position: 22px 0;
    }
}

.signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    vertical-align: middle;
}

.signal span {
    width: 5px;
    height: var(--h);
    border-radius: 2px;
    background: currentColor;
    opacity: 0.22;
}

.signal span.on {
    opacity: 1;
}

.signal[data-bars='4'],
.signal[data-bars='3'] {
    color: var(--success);
}

.signal[data-bars='2'] {
    color: #e7a64d;
}

.signal[data-bars='1'] {
    color: var(--danger);
}

.spinner {
    --size: 22px;
    width: var(--size);
    height: var(--size);
    flex: none;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 20%, var(--coral) 55%, var(--amber) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    animation: spin 0.9s linear infinite;
}

.spinner-lg {
    --size: 76px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

.bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 12%, transparent);
    overflow: hidden;
}

.bar>span {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--p, 0) * 1%);
    border-radius: inherit;
    background: var(--grad-primary);
    box-shadow: 0 0 16px rgb(255 136 123 / 0.6);
}

.bar.is-done>span {
    background: linear-gradient(90deg, var(--seafoam), #9ff0dc);
    box-shadow: 0 0 16px rgb(99 221 193 / 0.55);
}

/* ticket paper (same in both themes — tickets are paper) */

.ticket {
    --notch: 14px;
    --notch-y: 50%;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: 18px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--notch-y), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--notch-y), #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 var(--notch-y), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--notch-y), #0000 98%, #000) right / 51% 100% no-repeat;
}

/* dialogs */

dialog {
    color: var(--ink);
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(560px, calc(100vw - 24px));
    width: 100%;
    max-height: calc(100dvh - 24px);
}

dialog::backdrop {
    background: rgb(10 11 22 / 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sheet {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: auto;
}

.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 6px;
}

.sheet-head h2 {
    font-size: 2rem;
}

.sheet-body {
    padding: 8px 22px 22px;
    display: grid;
    gap: 16px;
}

dialog[open] {
    animation: dialog-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
}

/* fields */

.field-label {
    display: block;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.input,
.select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-strong);
    background: var(--bg-2);
    font-size: 1rem;
    color: var(--ink);
}

.input::placeholder {
    color: var(--ink-3);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 24px) 52%, calc(100% - 18px) 52%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.input:focus-visible,
.select:focus-visible {
    outline-offset: 1px;
    border-color: var(--focus);
}

.field-error {
    margin-top: 8px;
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9375rem;
}

.field-error::before {
    content: '! ';
}

/* =============================================================== HOME */

.home-grid {
    display: grid;
    gap: 20px;
    padding-top: 16px;
}

@media (min-width: 1000px) {
    .home-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
        gap: 24px;
        padding-top: 24px;
        align-items: stretch;
    }
}

.marquee-hero {
    position: relative;
}

.marquee-frame {
    position: relative;
    min-height: 520px;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 2px solid transparent;
    background: linear-gradient(var(--indigo), var(--indigo)) padding-box, var(--chrome) border-box;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgb(255 136 123 / 0.08);
}

@media (min-width: 1000px) {
    .marquee-frame {
        min-height: 640px;
    }
}

.marquee-frame .bulbs {
    position: absolute;
    inset: 12px 18px auto;
    z-index: 3;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 30%;
    z-index: -2;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(19 23 39 / 0.1) 0%, rgb(19 23 39 / 0) 22%, rgb(19 23 39 / 0.55) 46%, rgb(19 23 39 / 0.9) 70%, var(--indigo) 100%), linear-gradient(90deg, rgb(19 23 39 / 0.72), rgb(19 23 39 / 0.2) 60%, transparent 80%);
}

.palms {
    position: absolute;
    bottom: 0;
    z-index: -1;
    height: 78%;
    width: auto;
    max-width: none;
    pointer-events: none;
    opacity: 0.92;
}

.palms-l {
    left: -6%;
}

.palms-r {
    right: -8%;
    transform: scaleX(-1);
    height: 62%;
}

.hero-copy {
    position: relative;
    padding: 24px 20px 24px;
    display: grid;
    gap: 16px;
    color: #f8eedf;
}

@media (min-width: 720px) {
    .hero-copy {
        padding: 40px 44px 40px;
    }
}

.hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgb(19 23 39 / 0.66);
    border: 1px solid rgb(167 154 240 / 0.5);
    color: #fff1db;
    backdrop-filter: blur(6px);
}

.hero-copy h1 {
    font-size: clamp(3rem, 13vw, 6.4rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #fff4e4;
    text-shadow: 0 3px 0 rgb(19 23 39 / 0.55), 0 0 2px rgb(19 23 39 / 0.6), 0 0 28px rgb(255 136 123 / 0.55), 0 0 60px rgb(19 23 39 / 0.7);
    max-width: 11ch;
}

.hero-copy h1 .accent {
    color: var(--amber);
}

.hero-copy .lede {
    color: #e9e1f1;
    font-size: 1.125rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-copy .btn-secondary {
    color: #fff1db;
    background: rgb(19 23 39 / 0.5);
    border-color: rgb(255 241 219 / 0.5);
    backdrop-filter: blur(6px);
}

.hero-copy .btn-secondary:hover {
    background: rgb(19 23 39 / 0.75);
}

.hero-facts {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.9375rem;
    color: #d6cde6;
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-facts li::before {
    content: '';
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: var(--seafoam);
}

.hero-note {
    font-size: 0.8125rem;
    color: #bdb4cf;
    letter-spacing: 0.02em;
}

@media (max-width: 420px) {
    .cta-row .btn {
        flex: 1 1 100%;
    }
    .marquee-frame {
        min-height: 560px;
    }
}

/* how it works */

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: how;
}

.how-steps li {
    counter-increment: how;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 14px;
}

.how-steps li::before {
    content: counter(how);
    grid-row: span 2;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    background: var(--grad-primary);
    color: var(--paper-ink);
}

.how-steps strong {
    font-size: 1.0625rem;
}

.how-steps span {
    color: var(--ink-2);
}

.callout {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed color-mix(in srgb, var(--peri) 60%, transparent);
    background: color-mix(in srgb, var(--peri) 10%, transparent);
    color: var(--ink-2);
}

.callout strong {
    display: block;
    color: var(--ink);
    margin-bottom: 2px;
}

/* =============================================================== LOBBY */

.lobby {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
}

@media (min-width: 1000px) {
    .lobby {
        height: auto;
        max-height: calc(100dvh - var(--header-h) - 48px);
        min-height: 560px;
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

.lobby-head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 4px;
}

.lobby-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lobby-head h2 {
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lobby-sub {
    font-size: 0.875rem;
    color: var(--ink-3);
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--success-ink);
}

.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seafoam);
    box-shadow: 0 0 10px var(--seafoam);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.4;
    }
}

.lobby-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    margin: 0;
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.msg {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
    animation: msg-in 0.35s ease-out;
}

@keyframes msg-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--paper-ink);
    background: var(--amber);
}

.avatar[data-c='coral'] {
    background: var(--coral);
}

.avatar[data-c='seafoam'] {
    background: var(--seafoam);
}

.avatar[data-c='peri'] {
    background: var(--peri);
}

.avatar[data-c='host'] {
    background: var(--chrome);
}

.msg-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.msg-meta b {
    color: var(--ink);
    font-size: 0.9375rem;
}

.msg-text {
    margin-top: 2px;
    padding: 8px 12px;
    border-radius: 4px 14px 14px 14px;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    overflow-wrap: anywhere;
    font-size: 0.9375rem;
}

.msg.mine .msg-text {
    background: color-mix(in srgb, var(--coral) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--coral) 40%, transparent);
}

.msg.host .msg-text {
    background: color-mix(in srgb, var(--seafoam) 14%, transparent);
}

.tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
}

.lobby-composer {
    border-top: 1px solid var(--line);
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    gap: 6px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.composer-row {
    display: flex;
    gap: 8px;
}

.composer-row .input {
    min-height: 48px;
    flex: 1;
    min-width: 0;
}

.composer-row .btn {
    padding-inline: 18px;
}

.composer-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--ink-3);
    min-height: 24px;
}

.composer-foot .link-btn {
    min-height: 32px;
    font-size: 0.8125rem;
}

/* =============================================================== SETUP */

.setup-grid {
    display: grid;
    gap: 24px;
    padding-top: 24px;
}

@media (min-width: 960px) {
    .setup-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
        gap: 48px;
        padding-top: 48px;
        align-items: start;
    }
    .setup-intro {
        position: sticky;
        top: calc(var(--header-h) + 40px);
    }
}

.page-title {
    font-size: clamp(2.6rem, 9vw, 4.6rem);
    text-transform: uppercase;
    margin: 10px 0 12px;
}

.journey {
    list-style: none;
    padding: 0;
    margin: 24px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.journey li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.journey li span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8125rem;
    background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.journey li[aria-current='step'] {
    border-color: var(--coral);
    color: var(--ink);
}

.journey li[aria-current='step'] span {
    background: var(--grad-primary);
    color: var(--paper-ink);
}

.journey li.done span {
    background: var(--seafoam);
    color: var(--paper-ink);
}

@media (max-width: 959px) {
    .setup-grid {
        gap: 18px;
        padding-top: 16px;
    }
    .setup-intro .journey,
    .setup-intro .intro-note {
        display: none;
    }
    .setup-intro .page-title {
        margin: 6px 0 8px;
    }
}

@media (min-width: 960px) {
    .kiosk-note {
        display: none;
    }
}

.kiosk-note {
    text-align: center;
}

.kiosk {
    border-radius: 26px;
    padding: 0 0 20px;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome) border-box;
    box-shadow: var(--shadow-lg);
}

.kiosk-head {
    position: relative;
    padding: 16px 20px 14px;
    background: linear-gradient(100deg, rgb(255 136 123 / 0.95), rgb(255 200 121 / 0.95));
    color: var(--paper-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kiosk-head h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kiosk-head .bulbs {
    --bulb: #fff;
    position: absolute;
    inset: auto 0 -7px;
    filter: none;
    opacity: 0.9;
}

.kiosk-body {
    padding: 22px 20px 0;
    display: grid;
    gap: 22px;
}

@media (min-width: 520px) {
    .kiosk-body {
        padding-inline: 24px;
    }
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

.device-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.device-card {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 2px;
    padding: 16px 14px 14px;
    min-height: 132px;
    border-radius: 18px;
    cursor: pointer;
    border: 2px solid var(--line-strong);
    background: var(--bg-2);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 4px 0 rgb(0 0 0 / 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s, background-color 0.2s;
}

.device-card:hover {
    border-color: var(--ink-2);
}

.device-card:active {
    transform: translateY(3px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 1px 0 rgb(0 0 0 / 0.18);
}

.device-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.device-card:has(input:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.device-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    color: var(--ink-2);
}

.device-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.device-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
}

.device-sub {
    font-size: 0.8125rem;
    color: var(--ink-3);
    line-height: 1.35;
}

.device-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--line-strong);
    transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.2s;
}

.device-check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--paper-ink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.device-card:has(input:checked) {
    border-color: var(--seafoam);
    background: color-mix(in srgb, var(--seafoam) 16%, var(--bg-2));
    box-shadow: inset 0 0 0 1px var(--seafoam), 0 4px 0 color-mix(in srgb, var(--seafoam) 40%, transparent), 0 0 24px -6px rgb(99 221 193 / 0.5);
}

.device-card:has(input:checked) .device-icon {
    color: var(--success-ink);
}

.device-card:has(input:checked) .device-check {
    background: var(--seafoam);
    border-color: var(--seafoam);
    transform: scale(1.08);
}

.device-card:has(input:checked) .device-check svg {
    opacity: 1;
}

.legend {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 10px;
    display: block;
}

.origin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    font-size: 0.9375rem;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.origin-row strong {
    color: var(--ink);
}

.origin-hint {
    flex-basis: 100%;
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.origin-picker {
    margin-bottom: 14px;
}

.receipt {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--paper-ink);
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    align-items: center;
    box-shadow: 0 6px 18px -10px rgb(0 0 0 / 0.5);
    background-image: linear-gradient(90deg, rgb(35 27 45 / 0.2) 50%, transparent 50%);
    background-size: 10px 1.5px;
    background-repeat: repeat-x;
    background-position: 0 0;
}

.receipt-kicker {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b5a72;
}

.receipt-city {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.05;
}

.receipt-city small {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: #5c4d64;
}

.receipt-ping {
    text-align: right;
    display: grid;
    justify-items: end;
    gap: 2px;
}

.receipt-ping b {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.receipt-ping b small {
    font-size: 1rem;
    margin-left: 2px;
}

.receipt-ping span.lbl {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b5a72;
}

.receipt .signal[data-bars='4'],
.receipt .signal[data-bars='3'] {
    color: #0e7a63;
}

.receipt .signal[data-bars='2'] {
    color: #a8610f;
}

.receipt .signal[data-bars='1'] {
    color: #b4372b;
}

.receipt-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1.5px dashed rgb(35 27 45 / 0.25);
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d3046;
}

.receipt-note.best::before {
    content: '★';
    color: #0e7a63;
}

.kiosk-actions {
    padding: 22px 20px 0;
    display: grid;
    gap: 10px;
}

@media (min-width: 520px) {
    .kiosk-actions {
        padding-inline: 24px;
    }
}

/* ========================================================== PROCESS */

.process {
    padding-top: 28px;
    display: grid;
    place-items: start center;
}

@media (min-width: 720px) {
    .process {
        padding-top: 56px;
    }
}

.process-card {
    width: 100%;
    max-width: 760px;
    padding: 24px 20px 26px;
    display: grid;
    gap: 18px;
    text-align: center;
    justify-items: center;
}

@media (min-width: 720px) {
    .process-card {
        padding: 36px 40px 40px;
    }
}

.process-card h1 {
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    text-transform: uppercase;
}

.route-line {
    color: var(--ink-2);
    font-weight: 600;
}

.readout {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.pct {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.4rem, 14vw, 5rem);
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.pct small {
    font-size: 0.5em;
    margin-left: 2px;
    color: var(--ink-2);
}

.phase-label {
    font-size: 1.125rem;
    font-weight: 700;
    min-height: 1.6em;
}

.process-card .bar {
    width: 100%;
}

.phase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: grid;
    gap: 8px;
    text-align: left;
}

@media (min-width: 640px) {
    .phase-list {
        grid-template-columns: repeat(var(--cols, 3), 1fr);
    }
}

.phase-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 48px;
}

.phase-list li i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: none;
    border: 2px solid currentColor;
    display: grid;
    place-items: center;
    opacity: 0.6;
}

.phase-list li i svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--paper-ink);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.phase-list li.active {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--coral) 60%, transparent);
}

.phase-list li.active i {
    border-color: var(--coral);
    border-top-color: transparent;
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

.phase-list li.done {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--seafoam) 50%, transparent);
}

.phase-list li.done i {
    background: var(--seafoam);
    border-color: var(--seafoam);
    opacity: 1;
}

.phase-list li.done i svg {
    opacity: 1;
}

.retry-box {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1.5px solid color-mix(in srgb, var(--danger) 55%, transparent);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    display: grid;
    gap: 12px;
    justify-items: center;
}

.retry-box h2 {
    font-size: 1.8rem;
}

.retry-box .cta-row {
    justify-content: center;
}

/* ticket reader */

.reader-stage {
    --tw: min(330px, 84vw);
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(60% 80% at 50% 50%, rgb(167 154 240 / 0.18), transparent 70%), linear-gradient(180deg, rgb(19 23 39 / 0.65), rgb(19 23 39 / 0.85));
    border: 1px solid var(--line);
}

:root[data-theme='light'] .reader-stage {
    background: radial-gradient(60% 80% at 50% 50%, rgb(167 154 240 / 0.3), transparent 70%), linear-gradient(180deg, #2a2340, #1c1830);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme='dark']) .reader-stage {
        background: radial-gradient(60% 80% at 50% 50%, rgb(167 154 240 / 0.3), transparent 70%), linear-gradient(180deg, #2a2340, #1c1830);
    }
}

.feed-ticket {
    --notch-y: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--tw);
    height: 112px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: translate(calc(-50% + var(--x, -70%)), -50%);
    will-change: transform;
}

.feed-ticket .tk {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(35 27 45 / 0.55);
    transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.feed-ticket .tk+.tk {
    border-left: 2px dashed rgb(35 27 45 / 0.28);
}

.feed-ticket .tk::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.feed-ticket .tk.lit {
    color: #0b5c4a;
    background: linear-gradient(180deg, rgb(99 221 193 / 0.55), rgb(99 221 193 / 0.3));
}

.feed-ticket .tk.lit::before {
    background: #0e7a63;
    border-color: #0e7a63;
    box-shadow: 0 0 10px rgb(99 221 193 / 0.9);
}

.reader {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 50%;
    width: 64px;
    transform: translateX(-50%);
    border-radius: 14px;
    background: linear-gradient(90deg, rgb(32 41 60 / 0.92), rgb(55 66 96 / 0.75) 50%, rgb(32 41 60 / 0.92));
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgb(167 154 240 / 0.6), 0 0 22px rgb(255 136 123 / 0.55), inset 0 0 18px rgb(167 154 240 / 0.35);
    z-index: 2;
}

.reader::before {
    /* neon scan beam */
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 3px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: var(--coral);
    box-shadow: 0 0 10px 2px var(--coral), 0 0 26px 6px rgb(255 136 123 / 0.45);
    animation: beam 1.1s ease-in-out infinite alternate;
}

.reader::after {
    content: '';
    position: absolute;
    inset: -6px -18px auto;
    height: 6px;
    border-radius: 6px;
    background: var(--peri);
    box-shadow: 0 0 14px var(--peri);
}

.reader-stage.is-done .reader::before {
    background: var(--seafoam);
    box-shadow: 0 0 10px 2px var(--seafoam), 0 0 26px 6px rgb(99 221 193 / 0.45);
}

.reader-stage.is-fail .reader::before {
    background: #ff5d4d;
    animation: none;
}

@keyframes beam {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

.stamp {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 104px;
    height: 104px;
    margin: -52px 0 0 -52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    border: 4px solid #0e7a63;
    color: #0e7a63;
    background: rgb(255 241 219 / 0.92);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.875rem;
    text-transform: uppercase;
    transform: rotate(-12deg) scale(2.2);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 0 6px rgb(14 122 99 / 0.15), 0 10px 26px -8px rgb(0 0 0 / 0.6);
}

.stamp svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reader-stage.is-done .stamp {
    animation: stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes stamp-in {
    to {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
}

/* ============================================================== READY */

.ready {
    padding-top: 20px;
}

@media (min-width: 720px) {
    .ready {
        padding-top: 40px;
    }
}

.pass {
    --notch: 16px;
    max-width: 1080px;
    margin-inline: auto;
    border-radius: 28px;
    overflow: hidden;
    background: var(--paper);
    color: var(--paper-ink);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgb(35 27 45 / 0.08);
    /* perforated bottom edge */
    padding-bottom: 8px;
    -webkit-mask: radial-gradient(circle 6px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
    mask: radial-gradient(circle 6px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
}

.pass-body {
    border-top: 3px solid transparent;
    border-image: repeating-linear-gradient(90deg, var(--coral) 0 14px, transparent 14px 20px) 3;
}

.pass-art {
    margin: 0;
    position: relative;
    background: #241c38;
    aspect-ratio: var(--ratio, 2400 / 1012);
}

.pass-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pass-art .bulbs {
    position: absolute;
    inset: auto 0 6px;
}

.pass-body {
    display: grid;
}

@media (min-width: 860px) {
    .pass-body {
        grid-template-columns: 1.35fr 1fr;
    }
}

.pass-main {
    padding: 24px 20px 26px;
    display: grid;
    gap: 14px;
    align-content: start;
}

@media (min-width: 720px) {
    .pass-main {
        padding: 34px 40px 38px;
    }
}

.pass .eyebrow {
    color: #0e6f5a;
}

.pass .eyebrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pass h1 {
    font-size: clamp(3.4rem, 15vw, 6.2rem);
    text-transform: uppercase;
    line-height: 0.88;
    letter-spacing: 0.01em;
    background: linear-gradient(100deg, #e0604f, #c94a68 45%, #6a4bd8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pass .lede {
    color: #4b3d55;
}

.pass .fine {
    color: #6b5a72;
}

.pass-main .btn-primary {
    justify-self: start;
    margin-top: 6px;
}

@media (max-width: 520px) {
    .pass-main .btn-primary {
        justify-self: stretch;
    }
}

.pass-stub {
    position: relative;
    padding: 22px 20px 26px;
    display: grid;
    gap: 14px;
    align-content: start;
    background: linear-gradient(180deg, rgb(255 200 121 / 0.22), rgb(255 136 123 / 0.14));
    border-top: 2.5px dashed rgb(35 27 45 / 0.28);
}

@media (min-width: 860px) {
    .pass-stub {
        border-top: 0;
        border-left: 2.5px dashed rgb(35 27 45 / 0.28);
        padding: 34px 32px;
    }
}

.summary {
    margin: 0;
    display: grid;
    gap: 0;
}

.summary>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1.5px solid rgb(35 27 45 / 0.12);
}

.summary dt {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b5a72;
}

.summary dd {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.summary .signal[data-bars='4'],
.summary .signal[data-bars='3'] {
    color: #0e7a63;
}

.summary .signal[data-bars='2'] {
    color: #a8610f;
}

.summary .signal[data-bars='1'] {
    color: #b4372b;
}

.admit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3d3046;
}

.barcode {
    height: 44px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, #231b2d 0 2px, transparent 2px 4px, #231b2d 4px 7px, transparent 7px 8px, #231b2d 8px 9px, transparent 9px 12px);
    opacity: 0.85;
}

.pass-stub .btn-quiet {
    justify-self: start;
    padding-inline: 0;
    color: #3d3046;
}

/* ===================================================== YOUTUBE MODAL */

.yt-modal {
    max-width: min(480px, calc(100vw - 24px));
}

.yt-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

:root[data-theme='light'] .yt-card {
    background: var(--paper);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme='dark']) .yt-card {
        background: var(--paper);
    }
}

.yt-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px 22px 20px;
    color: var(--paper-ink);
    background: linear-gradient(110deg, var(--coral), #ffaa7d 55%, var(--amber));
}

.yt-head::after {
    /* ticket perforation */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 10px;
    background: radial-gradient(circle at 8px 10px, var(--surface) 0 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x;
}

:root[data-theme='light'] .yt-head::after {
    background: radial-gradient(circle at 8px 10px, var(--paper) 0 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme='dark']) .yt-head::after {
        background: radial-gradient(circle at 8px 10px, var(--paper) 0 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x;
    }
}

.yt-icon-wrap {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px -8px rgb(35 27 45 / 0.6);
}

.yt-icon {
    width: 44px;
    height: auto;
    /* keeps the icon's original proportions */
}

.yt-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
}

.yt-head h2 {
    font-size: 1.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.yt-head .icon-btn {
    margin-left: auto;
    align-self: flex-start;
    background: rgb(255 255 255 / 0.45);
    border-color: rgb(35 27 45 / 0.2);
    color: var(--paper-ink);
}

.yt-body {
    padding: 22px 20px 18px;
    display: grid;
    gap: 16px;
}

.yt-state {
    display: grid;
    gap: 14px;
    animation: msg-in 0.3s ease-out;
}

.yt-state h3 {
    font-size: 1.6rem;
    line-height: 1.1;
}

.yt-state p {
    color: var(--ink-2);
}

.yt-actions {
    display: grid;
    gap: 10px;
}

.yt-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--peri) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--peri) 40%, transparent);
    font-weight: 600;
}

.yt-checking {
    justify-items: center;
    text-align: center;
    padding: 10px 0 4px;
}

.yt-checking .bar {
    width: 100%;
}

.yt-complete {
    justify-items: center;
    text-align: center;
}

.big-check {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--seafoam);
    color: #0b3a30;
    box-shadow: 0 0 0 8px rgb(99 221 193 / 0.2), 0 0 32px rgb(99 221 193 / 0.5);
    animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.big-check svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
}

.yt-complete .btn {
    width: 100%;
}

.yt-notice {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-3);
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
}

.wiggle-loop {
    animation: wiggle-loop 2.6s ease-in-out infinite;
}

/* ============================================================== LAUNCH */

.sign {
    --bulb-off: rgb(255 200 121 / 0.18);
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 8;
    border-radius: 22px;
    padding: 26px;
    border: 3px solid transparent;
    background: linear-gradient(160deg, #2a2148, #1a1530 60%, #2b1f3a) padding-box, var(--chrome) border-box;
    box-shadow: var(--shadow-lg), 0 0 40px -10px rgb(255 136 123 / 0.35);
    overflow: hidden;
    isolation: isolate;
}

.sign-face {
    position: absolute;
    inset: 34px;
    border-radius: 12px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 4px;
    color: #fff1db;
    background: radial-gradient(120% 90% at 50% 0%, rgb(167 154 240 / 0.25), transparent 70%), rgb(19 23 39 / 0.6);
    border: 1px solid rgb(167 154 240 / 0.35);
}

.sign-top,
.sign-sub {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 2.6vw, 0.95rem);
    color: var(--peri);
}

.sign-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 12vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0.06em;
    color: #ffd9c7;
    text-shadow: 0 0 8px rgb(255 136 123 / 0.9), 0 0 24px rgb(255 136 123 / 0.6), 0 0 48px rgb(255 136 123 / 0.35);
}

.sign-bulbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sign-bulbs i {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    background: var(--bulb-off);
    transition: background-color 0.25s, box-shadow 0.25s;
}

.sign-bulbs i.on {
    background: #fff6d8;
    box-shadow: 0 0 0 2px var(--amber), 0 0 12px 3px rgb(255 200 121 / 0.8);
}

.sign.is-done .sign-bulbs i.on {
    animation: bulb-blink 0.5s steps(2) infinite;
}

.sign.is-done .sign-bulbs i:nth-child(odd).on {
    animation-delay: 0.25s;
}

@keyframes bulb-blink {
    50% {
        background: var(--bulb-off);
        box-shadow: none;
    }
}

.projector {
    position: absolute;
    inset: -20% -40%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: conic-gradient(from 200deg at 0% 100%, transparent 0deg, rgb(255 241 219 / 0) 6deg, rgb(255 241 219 / 0.55) 14deg, rgb(255 241 219 / 0) 22deg, transparent 30deg);
    mix-blend-mode: screen;
}

.sign.sweep .projector {
    animation: sweep var(--sweep, 1.1s) cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: rotate(-26deg);
    }
    20% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(40deg);
    }
}

/* ============================================================== PLAYER */

.player-page {
    background: #000;
    overflow: hidden;
}

.player {
    /* safe areas in the player's own (landscape) frame */
    --sa-top: env(safe-area-inset-top);
    --sa-right: env(safe-area-inset-right);
    --sa-bottom: env(safe-area-inset-bottom);
    --sa-left: env(safe-area-inset-left);
    position: fixed;
    inset: 0;
    background: #000;
    /* letterbox bars around the video are pure black */
    color: #fff1db;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    overflow: hidden;
}

.player:fullscreen {
    width: 100%;
    height: 100%;
}

/* Everything in the player lives on this stage. On portrait phones the stage
   (not the fullscreen element, whose transform browsers reset) is turned 90°. */

.stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player[data-fit='contain'] video {
    object-fit: contain;
}

.player-bar {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + var(--sa-top)) calc(12px + var(--sa-right)) 10px calc(12px + var(--sa-left));
    background: linear-gradient(180deg, rgb(7 8 15 / 0.7), transparent);
    pointer-events: none;
}

.player-bar>* {
    pointer-events: auto;
}

.player .icon-btn {
    background: rgb(19 23 39 / 0.5);
    border: 1.5px solid rgb(255 241 219 / 0.35);
    color: #fff1db;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.player-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.1rem;
    white-space: nowrap;
}

.player-title .chip {
    color: #fff1db;
    border-color: rgb(255 200 121 / 0.6);
    background: rgb(19 23 39 / 0.5);
    font-family: var(--font-ui);
}

.player-bar .spacer {
    flex: 1;
}

.hud {
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    z-index: 5;
    top: calc(64px + var(--sa-top));
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9375rem;
    background: rgb(19 23 39 / 0.6);
    border: 1px solid rgb(99 221 193 / 0.5);
    color: #c9fff1;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.hud.show {
    opacity: 1;
}

.player-title {
    overflow: hidden;
}

@media (max-width: 560px) {
    .player-title .chip:last-child {
        display: none;
    }
}

@media (max-width: 440px) {
    .player-title>span:first-child {
        display: none;
    }
}

.controls {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    padding: calc(64px + var(--sa-top)) calc(18px + var(--sa-right)) calc(18px + var(--sa-bottom)) calc(18px + var(--sa-left));
}

.controls>* {
    pointer-events: auto;
}

.pad-btn {
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    color: #fff1db;
    background: rgb(19 23 39 / 0.38);
    border: 1.5px solid rgb(255 241 219 / 0.35);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15), 0 6px 16px -8px rgb(0 0 0 / 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.08s ease, background-color 0.12s, box-shadow 0.12s, border-color 0.12s;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.pad-btn.pressed {
    transform: scale(0.9);
    background: rgb(167 154 240 / 0.45);
    border-color: var(--peri);
    box-shadow: 0 0 0 4px rgb(167 154 240 / 0.25), 0 0 22px rgb(167 154 240 / 0.7);
}

.shoulders {
    position: absolute;
    top: calc(64px + var(--sa-top));
    display: flex;
    gap: 10px;
}

.shoulders.left {
    left: calc(18px + var(--sa-left));
}

.shoulders.right {
    right: calc(18px + var(--sa-right));
    flex-direction: row-reverse;
}

.shoulder {
    width: 64px;
    height: 44px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
}

.shoulder.l2,
.shoulder.r2 {
    border-radius: 14px 14px 20px 20px;
}

.face {
    position: absolute;
    right: calc(22px + var(--sa-right));
    bottom: calc(22px + var(--sa-bottom));
    width: 176px;
    height: 176px;
}

.face .pad-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    line-height: 1;
}

.face [data-btn='triangle'] {
    top: 0;
    left: 58px;
    color: #8ff0d8;
}

.face [data-btn='circle'] {
    top: 58px;
    right: 0;
    color: #ff9d8f;
}

.face [data-btn='cross'] {
    bottom: 0;
    left: 58px;
    color: #b9b0ff;
}

.face [data-btn='square'] {
    top: 58px;
    left: 0;
    color: #ffc4e6;
}

.face svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.stick {
    --r: 64px;
    position: absolute;
    left: calc(26px + var(--sa-left));
    bottom: calc(26px + var(--sa-bottom));
    width: calc(var(--r) * 2 + 24px);
    height: calc(var(--r) * 2 + 24px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    touch-action: none;
    cursor: grab;
}

.stick:active {
    cursor: grabbing;
}

.stick-ring {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: rgb(19 23 39 / 0.35);
    border: 2px solid rgb(255 255 255 / 0.35);
    box-shadow: inset 0 0 18px rgb(0 0 0 / 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stick.active .stick-ring {
    border-color: rgb(255 255 255 / 0.6);
    box-shadow: inset 0 0 18px rgb(0 0 0 / 0.35), 0 0 18px rgb(255 255 255 / 0.18);
}

.stick-knob {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgb(255 255 255 / 0.95), rgb(236 236 240 / 0.85) 45%, rgb(200 200 210 / 0.8) 100%);
    border: 1.5px solid rgb(255 255 255 / 0.9);
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.45), inset 0 -3px 6px rgb(0 0 0 / 0.12);
    transform: translate(var(--kx, 0px), var(--ky, 0px));
    transition: transform 0.28s cubic-bezier(0.25, 1.8, 0.45, 1);
}

.stick.active .stick-knob {
    transition: none;
}

@media (max-height: 420px) {
    .stick {
        --r: 52px;
    }
    .face {
        transform: scale(0.84);
        transform-origin: bottom right;
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
    background: rgb(7 8 15 / 0.55);
    backdrop-filter: blur(3px);
}

.overlay h2 {
    font-size: 2rem;
    text-transform: uppercase;
}

.overlay p {
    color: #d6cde6;
}

.overlay.loading {
    background: rgb(7 8 15 / 0.35);
}

.checkout {
    max-width: min(480px, calc(100vw - 24px));
}

.checkout .sheet {
    color: var(--ink);
}

.plan {
    border-radius: 16px;
    padding: 16px 26px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
}

.plan b {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
}

.plan span {
    font-size: 0.875rem;
    color: #5c4d64;
}

.plan .plan-price {
    grid-row: span 2;
    font-weight: 700;
    color: var(--paper-ink);
    text-align: right;
    max-width: 12ch;
}

.await-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--amber) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
}

.await-row b {
    display: block;
    font-size: 1.0625rem;
}

.await-row span {
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.demo-flag {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-3);
    text-align: center;
}

/* Forced landscape: on portrait phones the whole player is turned 90°, so the
   preview and the controls are always horizontal. Toggled by play.js. */

.force-landscape .stage {
    inset: auto;
    top: 0;
    left: 0;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100%);
}

.force-landscape .player {
    /* the physical notch (top of a portrait phone) is now the player's left edge */
    --sa-top: env(safe-area-inset-right);
    --sa-right: env(safe-area-inset-bottom);
    --sa-bottom: env(safe-area-inset-left);
    --sa-left: env(safe-area-inset-top);
}

.force-landscape .player .stick {
    --r: 54px;
}

.force-landscape .player .face {
    transform: scale(0.86);
    transform-origin: bottom right;
}

/* dialogs live in the top layer, so turn them to match */

.force-landscape dialog.checkout {
    transform: rotate(90deg);
    max-width: min(480px, calc(100dvh - 24px));
    max-height: calc(100vw - 24px);
}

.force-landscape dialog.checkout>.sheet {
    max-height: calc(100vw - 24px);
}

.force-landscape dialog.checkout[open] {
    animation: none;
}

/* ============================================================== MOTION */

@keyframes wiggle {
    0%,
    100% {
        transform: none;
    }
    15% {
        transform: rotate(-2.5deg) translateY(-1px);
    }
    30% {
        transform: rotate(2.5deg) translateY(-1px);
    }
    45% {
        transform: rotate(-1.6deg);
    }
    60% {
        transform: rotate(1.2deg);
    }
    75% {
        transform: rotate(-0.5deg);
    }
}

@keyframes wiggle-loop {
    0%,
    62%,
    100% {
        transform: none;
    }
    67% {
        transform: rotate(-2deg) scale(1.02);
    }
    72% {
        transform: rotate(2deg) scale(1.02);
    }
    77% {
        transform: rotate(-1.2deg) scale(1.01);
    }
    82% {
        transform: rotate(0.8deg);
    }
}

.wiggle {
    animation: wiggle 0.75s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .bulbs,
    .wiggle,
    .wiggle-loop,
    .reader::before,
    .live-dot::before {
        animation: none !important;
    }
    /* spinners still need to read as "working": show a static ring */
    .spinner {
        animation: none !important;
        background: conic-gradient(var(--coral) 0 70%, transparent 70%);
    }
    .feed-ticket {
        --x: 0% !important;
    }
    .sign.sweep .projector {
        animation: none !important;
    }
}

/* small additions */

.eyebrow-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--seafoam);
    box-shadow: 0 0 0 4px rgb(99 221 193 / 0.2), 0 0 12px var(--seafoam);
}

/* sunrise hero: plum shade instead of midnight */

:root[data-theme='light'] .hero-shade {
    background: linear-gradient(180deg, rgb(58 30 62 / 0.05) 0%, rgb(58 30 62 / 0) 22%, rgb(58 30 62 / 0.5) 46%, rgb(48 26 54 / 0.88) 70%, #2e1a35 100%), linear-gradient(90deg, rgb(48 26 54 / 0.65), rgb(48 26 54 / 0.15) 60%, transparent 80%);
}

:root[data-theme='light'] .marquee-frame {
    background: linear-gradient(#2e1a35, #2e1a35) padding-box, var(--chrome) border-box;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme='dark']) .hero-shade {
        background: linear-gradient(180deg, rgb(58 30 62 / 0.05) 0%, rgb(58 30 62 / 0) 22%, rgb(58 30 62 / 0.5) 46%, rgb(48 26 54 / 0.88) 70%, #2e1a35 100%), linear-gradient(90deg, rgb(48 26 54 / 0.65), rgb(48 26 54 / 0.15) 60%, transparent 80%);
    }
    :root:not([data-theme='dark']) .marquee-frame {
        background: linear-gradient(#2e1a35, #2e1a35) padding-box, var(--chrome) border-box;
    }
}

/* keep tall dialogs scrollable inside their card */

dialog>.sheet,
dialog>.yt-card,
dialog>form.sheet {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    overscroll-behavior: contain;
}

/* compact checkout on short landscape frames (real or rotated) */

@media (max-height: 520px) {
    dialog.checkout .sheet-head {
        padding: 12px 18px 0;
    }
    dialog.checkout .sheet-head h2 {
        font-size: 1.6rem;
    }
    dialog.checkout .sheet-body {
        padding: 6px 18px 12px;
        gap: 8px;
    }
    dialog.checkout [data-co]>div {
        gap: 8px !important;
    }
    dialog.checkout .lede {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    dialog.checkout .plan {
        padding: 10px 24px;
    }
    dialog.checkout .plan b {
        font-size: 1.35rem;
    }
    dialog.checkout .btn-lg {
        --btn-h: 48px;
    }
    dialog.checkout .await-row {
        padding: 10px 12px;
    }
}

.force-landscape dialog.checkout .sheet-head {
    padding: 12px 18px 0;
}

.force-landscape dialog.checkout .sheet-head h2 {
    font-size: 1.6rem;
}

.force-landscape dialog.checkout .sheet-body {
    padding: 6px 18px 12px;
    gap: 8px;
}

.force-landscape dialog.checkout [data-co]>div {
    gap: 8px !important;
}

.force-landscape dialog.checkout .lede {
    font-size: 0.9375rem;
    line-height: 1.4;
}

.force-landscape dialog.checkout .plan {
    padding: 10px 24px;
}

.force-landscape dialog.checkout .plan b {
    font-size: 1.35rem;
}

.force-landscape dialog.checkout .btn-lg {
    --btn-h: 48px;
}

.force-landscape dialog.checkout .await-row {
    padding: 10px 12px;
}

/* =================================================== 2026-11 readable media/loader update */

.sound-toggle-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    pointer-events: auto
}

.sound-tip {
    position: absolute;
    top: calc(100% + 10px);
    right: -16px;
    width: max-content;
    max-width: 210px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #29213d;
    color: #fff1db;
    border: 1px solid #d6a1eb;
    box-shadow: 0 9px 24px #0008;
    font: 600 13px/1.3 var(--font-ui);
    letter-spacing: 0;
    white-space: normal;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    text-align: center;
    z-index: 10
}

.sound-tip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 28px;
    width: 10px;
    height: 10px;
    background: #29213d;
    border-top: 1px solid #d6a1eb;
    border-left: 1px solid #d6a1eb;
    transform: rotate(45deg)
}

.sound-tip.visible {
    opacity: 1;
    transform: translateY(0)
}

.sound-tip[hidden] {
    display: none !important
}

.download-title {
    font: 700 clamp(15px, 2.6vw, 21px)/1.3 var(--font-ui);
    margin: 0
}

.download-pct {
    font: 800 clamp(28px, 5vw, 46px)/1 var(--font-display);
    letter-spacing: 0.02em;
    color: #fff1db
}

.download-track {
    width: min(330px, 65vw);
    height: 9px;
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff30;
    border: 1px solid #ffffff25
}

.download-track>span {
    display: block;
    height: 100%;
    width: var(--download-p, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #9d90fa, #ff9bad, #ffd183);
    transition: width .13s linear
}

.download-track.unknown>span {
    width: 32%;
    animation: download-indeterminate 1.25s ease-in-out infinite
}

.download-size {
    color: #d6cde6;
    font: 500 12px/1.3 var(--font-ui);
    letter-spacing: 0.02em
}

@keyframes download-indeterminate {
    0% {
        transform: translateX(-110%)
    }
    100% {
        transform: translateX(330%)
    }
}

@media(prefers-reduced-motion:reduce) {
    .sound-tip,
    .download-track>span {
        transition: none
    }
    .download-track.unknown>span {
        animation: none
    }
}