@charset "UTF-8";

:root {
    color-scheme: light;
    --forest: #164634;
    --pine: #0f362a;
    --deep-pine: #06281e;
    --red: #9b1935;
    --deep-red: #75102a;
    --gold: #ffda8c;
    --paper: #faf5e9;
    --white: #fffdf7;
    --ink: #172e27;
    --muted: #52635a;
    --line: #e4dac5;
    --soft-green: #eaf1e7;
    --garland: url("./christmas-garland.jpg");
    --candy-stripe: repeating-linear-gradient(125deg, #a51e3a 0 10px, #ffefd4 10px 16px, #195540 16px 24px, #ffefd4 24px 30px);
    --title: "Bricolage Grotesque", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;
}

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

body {
    margin: 0;
    background: radial-gradient(ellipse at 50% 0, #fffdf7 0, transparent 48rem),
        repeating-linear-gradient(125deg, transparent 0 14px, #a51e3a05 14px 15px, transparent 15px 29px, #19554008 29px 30px),
        var(--paper);
    color: var(--ink);
    font: 1rem/1.5 var(--body);
}

body::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: .35rem;
    background: var(--candy-stripe);
    pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--title); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.045em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ae541b; outline-offset: 3px; }
:where(h2, main, #feedback)[id] { scroll-margin-top: 1rem; }

button, .button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .65rem;
    padding: .55rem .95rem;
    background: var(--forest);
    color: white;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover { background: var(--deep-pine); }
.quiet { background: transparent; border-color: #c9d3c7; color: var(--pine); }
.quiet:hover { background: var(--soft-green); }

label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 700; min-width: 0; }
input, select, textarea {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    border: 1px solid #bfc9bd;
    border-radius: .55rem;
    background: var(--white);
    color: var(--ink);
    padding: .5rem .65rem;
    font-size: 1rem;
    font-weight: 500;
}

input::placeholder { color: var(--muted); opacity: 1; }
input[type="file"] { padding: .35rem; }
input::file-selector-button {
    border: 0;
    border-radius: .35rem;
    background: var(--soft-green);
    color: var(--pine);
    padding: .35rem .55rem;
    margin-inline-end: .5rem;
    font: 700 .875rem var(--body);
    cursor: pointer;
}

.skip-link {
    position: fixed;
    z-index: 2;
    inset: .5rem auto auto .5rem;
    padding: .65rem 1rem;
    border-radius: .5rem;
    background: var(--white);
    transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; padding-bottom: 3rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.1rem; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font: 800 1.85rem/1 var(--title);
    letter-spacing: -.075em;
}

.brand-wordmark > span { color: var(--red); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    aspect-ratio: 1;
    border-radius: .65rem;
    background: radial-gradient(circle at 30% 15%, #c54b53, var(--red) 60%, var(--deep-red));
    color: #fff6e1;
    font: 1.4rem/1 var(--body);
    box-shadow: inset 0 0 0 1px #ffcc8466, 0 2px 4px #63252424;
    flex: none;
}

.topbar-nav { display: flex; gap: clamp(.8rem, 3vw, 1.85rem); margin-inline-start: auto; }
.topbar-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-weight: 700; text-decoration: none; }
.topbar-nav a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: .3em; }
.topbar form { margin-inline-start: clamp(0rem, 1vw, .6rem); }

.hero {
    --draw-ball-size: clamp(1.9rem, 3.5vw, 2.25rem);
    --chute-right: clamp(.85rem, 2%, 1.4rem);
    --chute-width: clamp(2.1rem, 12%, 8.6rem);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #886c3e;
    border-radius: 1.35rem;
    background:
        linear-gradient(90deg, #09291f 48%, #09291f00 70%),
        var(--garland) right center / auto 100% no-repeat,
        #09291f;
    color: var(--white);
    box-shadow: 0 1rem 2.5rem -.85rem #412a1a59;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 61%, #fff5d074 0 1px, transparent 1.5px) 0 0 / 8rem 5rem,
        radial-gradient(circle at 62% 19%, #fff5d056 0 1px, transparent 1.5px) 0 0 / 6.9rem 7rem;
    mask-image: linear-gradient(90deg, #0005, #000 64%, #0004);
}

.hero::after {
    content: "";
    position: absolute;
    inset: .45rem;
    border: 1px solid #ffda8c63;
    border-radius: .95rem;
    pointer-events: none;
}

.hero-stage { position: relative; padding: clamp(2rem, 5vw, 3.75rem); }
.hero-copy { position: relative; z-index: 3; max-width: 27rem; }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow {
    width: fit-content;
    padding: .28rem .65rem;
    border: 1px solid #e2b77091;
    border-radius: .35rem;
    background: var(--deep-red);
    color: #fff2d4;
}
.hero h1, .login-card h1 { font-weight: 800; font-size: clamp(4.4rem, 9vw, 7.35rem); letter-spacing: -.085em; line-height: .93; }
.hero h1 { margin-block: .5rem .75rem; text-shadow: 0 .15em .5em #010f0b73; }
.hero h1 > span, .login-card h1 > span { color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 34ch; color: #e0ece1; font-size: clamp(1rem, 2vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.45rem; }
.hero :focus-visible { outline-color: var(--gold); }
.button-gold { background: #ffdb91; border-color: #fff0bd; color: var(--deep-pine); box-shadow: inset 0 -.16rem #aa713a49; }
.button-gold:hover { background: #ffe7ad; }
.button-ghost { background: #0b2f25b3; border-color: #f1d292a6; }
.button-ghost:hover { background: #245040; }

.flurry { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.snowflake {
    position: absolute;
    display: block;
    width: var(--snow-size);
    height: var(--snow-size);
    border-radius: 50%;
    opacity: 0;
    background: #fff9e6;
    box-shadow: 0 0 .25rem #fff9e680;
}

.hero-art {
    position: absolute;
    z-index: 0;
    inset: 0 3% 0 auto;
    width: 49%;
    max-width: 31rem;
    pointer-events: none;
    container-type: inline-size;
}

.spark { position: absolute; color: #ffe2a2; font-size: clamp(.85rem, 5cqw, 1.65rem); line-height: 1; text-shadow: 0 0 .7em #ffca717a; }
.spark-one { top: 33%; left: 9%; }
.spark-two { top: 57%; right: 13%; font-size: clamp(.85rem, 7cqw, 2.4rem); }
.spark-three { top: 76%; right: 28%; }
.spark-four { top: 59%; left: 16%; color: #fff9e8; font-size: clamp(.65rem, 3.3cqw, 1.1rem); }

.ornament {
    position: absolute;
    width: var(--ball-size);
    aspect-ratio: 1;
    transform-origin: 50% -40%;
}

.ornament::before, .ornament::after {
    content: "";
    position: absolute;
    bottom: 94%;
    left: 50%;
    transform: translateX(-50%);
}

.ornament::before {
    width: 1px;
    height: 24rem;
    background: #e5bb6db3;
}

.ornament::after {
    width: 21%;
    height: 16%;
    border: 1px solid #ffe0a273;
    border-radius: .15rem .15rem 30% 30%;
    background: repeating-linear-gradient(90deg, #9d6c30 0 2px, #f0cc82 2px 4px);
}

.ball {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 18%, #fff9e1b0, transparent 31%),
        radial-gradient(circle at 34% 27%, var(--light) 4%, var(--mid) 48%, var(--dark) 90%);
    box-shadow: inset 0 0 0 1px #fff1cc44, inset -.15rem -.65rem 1.3rem #101c1b33, .55rem 1.05rem 1.7rem #081f1c8f;
    color: var(--ball-ink);
    font: 800 clamp(.9rem, 9cqw, 3.1rem)/1 var(--title);
    letter-spacing: -.075em;
    transform: rotate(var(--tilt, 0deg));
}

.ball::before {
    content: "";
    position: absolute;
    width: 53%;
    aspect-ratio: 1;
    border: 1px solid #fff1d6;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #fffdf3, #f0daba);
    box-shadow: 0 0 0 .11rem #35121b48, 0 .22rem .35rem #32151d4a;
    z-index: -1;
}

.ornament-gold {
    --ball-size: 27%;
    --tilt: 13deg;
    top: 22%;
    right: 12%;
}

.ornament-red {
    --ball-size: 36%;
    --tilt: -15deg;
    top: 36%;
    left: 29%;
}

.ornament-green {
    --ball-size: 19%;
    --tilt: 17deg;
    top: 65%;
    left: 6%;
}

.ball-gold { --light: #ffe3ac; --mid: #ca9140; --dark: #784711; --ball-ink: #603716; }
.ball-red { --light: #fe937d; --mid: #ba2445; --dark: #621128; --ball-ink: #7e2337; }
.ball-green { --light: #a6c998; --mid: #518563; --dark: #184d3e; --ball-ink: #244f3b; }
.ornament-gold .ball { font-size: clamp(.85rem, 6.7cqw, 2.35rem); }
.ornament-green .ball { font-size: clamp(.72rem, 5cqw, 1.65rem); }

.ball-chute {
    position: absolute;
    inset: 26% var(--chute-right) -3.2rem auto;
    width: var(--chute-width);
    border: solid #e7bf76;
    border-width: 0 4px 4px 0;
    border-bottom-right-radius: 100% 50%;
    filter: drop-shadow(0 .19rem .15rem #041a13);
    pointer-events: none;
}

.ball-chute::after {
    content: "";
    position: absolute;
    inset: 0 .35rem .35rem 0;
    border: solid #ffd99070;
    border-width: 0 1px 1px 0;
    border-bottom-right-radius: inherit;
}

.ball-tray {
    position: relative;
    z-index: 1;
    margin: -2.4rem calc(var(--chute-right) + var(--chute-width) - .5rem) 1.15rem 40%;
    padding: .35rem .65rem .6rem;
    border: 1px solid #e8b96690;
    border-radius: .75rem;
    background: linear-gradient(160deg, #163e31f5, #0b251ce8);
    box-shadow: inset 0 -.2rem #d49b4b35, 0 .35rem .9rem #04171165;
}

.ball-tray-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 .55rem; min-height: 2.75rem; }
.ball-tray h2 { font: 800 .875rem/1.25 var(--body); color: #ffebc2; }
.replay-draw {
    min-height: 2.75rem;
    padding: .25rem .1rem;
    background: transparent;
    color: #ffdfa2;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.replay-draw:hover { background: transparent; color: white; }
.replay-draw[hidden] { display: none; }

.drawn-balls {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .4rem;
    max-height: calc(3 * var(--draw-ball-size) + 1.3rem);
    overflow-y: auto;
    scrollbar-color: #c79e5e transparent;
    margin: 0;
    padding: .15rem .1rem .4rem;
    list-style: none;
}

.drawn-balls .ball, .flight-ball {
    width: var(--draw-ball-size);
    height: var(--draw-ball-size);
    flex: none;
}
.drawn-balls .ball, .flight-ball .ball {
    font-size: .875rem;
    letter-spacing: -.035em;
    box-shadow: inset 0 0 0 1px #fff1cc52, inset -.12rem -.2rem .4rem #101c1b44, 0 .15rem .27rem #051c17aa;
}
.drawn-balls .ball::before, .flight-ball .ball::before { width: 64%; box-shadow: 0 0 0 1px #35121b48; }
.ball-flight-layer { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.flight-ball { position: absolute; inset: 0 auto auto 0; margin: calc(var(--draw-ball-size) / -2); }
.ball-airborne { opacity: 0; }

.scoreboard {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    margin: 1rem 0 0;
    padding: 1rem 0;
    border: 1px solid #702239;
    border-radius: 1rem;
    background:
        repeating-linear-gradient(125deg, transparent 0 14px, #fff0bd09 14px 15px, transparent 15px 30px),
        linear-gradient(110deg, #8c1835, #67132b);
    color: #fff9ea;
    box-shadow: inset 0 0 0 1px #ffd99138;
}

.scoreboard > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: .3rem;
    min-width: 0;
    padding-inline: clamp(.7rem, 3vw, 1.7rem);
}
.scoreboard > div + div { border-inline-start: 1px solid #ffe5ab55; }
.scoreboard dt { color: #f9e6d7; font-size: .875rem; font-weight: 700; }
.scoreboard dd {
    display: flex;
    align-items: center;
    gap: .95rem;
    margin: 0;
    font: 800 clamp(1.7rem, 4vw, 2.25rem)/1 var(--title);
    font-variant-numeric: tabular-nums;
}
.scoreboard small { color: #f9e6d7; font: 700 .9rem var(--body); white-space: nowrap; }
.scoreboard progress { width: min(40%, 7.5rem); }
.scoreboard progress::-webkit-progress-bar { background: #5e1128; }
.scoreboard progress::-webkit-progress-value { background: var(--gold); }
.scoreboard progress::-moz-progress-bar { background: var(--gold); }

.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(18rem, 1fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 1.75rem);
    margin-top: clamp(1.5rem, 4vw, 2.3rem);
}

.board-column, .actions-column { display: grid; min-width: 0; gap: 1rem; }
.board-column { gap: 2rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .85rem; }
.panel, .ticket, .login-card {
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}
.panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.65rem); }
.panel > p { margin-top: .55rem; color: var(--muted); }
.panel-draw {
    border-color: #e3c1b5;
    background: var(--candy-stripe) top / 100% .32rem no-repeat, #fbede6;
}
.panel-draw h2 { color: var(--deep-red); }
.panel-draw button { background: var(--red); }
.panel-draw button:hover { background: var(--deep-red); }
.panel-draw input { background: var(--white); }

.fields { display: grid; gap: .75rem; margin-top: 1rem; }
.fields .field-hint { margin-top: -.5rem; color: var(--muted); font-size: .875rem; }
.fields button { justify-self: start; }

details { min-width: 0; }
summary { color: var(--pine); font-size: .9rem; font-weight: 700; cursor: pointer; }
summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.card-text { resize: vertical; font-family: monospace; tab-size: 4; }

.notice { margin-top: 1rem; border: 1px solid #c6d9c5; border-radius: .65rem; padding: .8rem 1rem; background: var(--soft-green); font-weight: 700; overflow-wrap: anywhere; }
.notice.error { background: #fbe8e6; border-color: #eed1d2; color: #812532; }

.target-status { margin-top: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.target-won { padding: .75rem .85rem; border-radius: .65rem; background: #faf0d8; color: var(--ink); }
.target-status h3 { font-size: 1.25rem; }
.target-status h3 span { color: var(--red); }
.target-status ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.target-status li { display: grid; }
.target-status a { width: fit-content; font-weight: 800; }
.target-status li span { color: var(--muted); font-size: .875rem; }

.empty { padding: 1rem; border: 1px dashed #b5ad90; border-radius: .85rem; background: var(--white); color: var(--muted); }
.cards-empty { display: grid; justify-items: center; gap: .5rem; padding: 1.75rem 1rem; text-align: center; }
.cards-empty h3 { color: var(--ink); font-size: 1.35rem; }
.cards-empty p { max-width: 37ch; }
.cards-empty .button { margin-top: .35rem; }
.empty-icon { display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border: 1px solid #e9d4aa; border-radius: .75rem; background: #fcf0d8; color: var(--red); font-size: 1.35rem; }

.admin-board { display: grid; gap: 1rem; padding-block: 1rem 2rem; }
.admin-board header a { display: inline-block; margin-top: .55rem; }
.new-round-button { margin: .55rem 0 0 .65rem; }
.round-dialog p { margin: .65rem 0 1rem; }
.round-dialog form { display: flex; justify-content: end; flex-wrap: wrap; gap: .55rem; }
.admin-board .notice { margin: 0; }
.admin-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; margin: .9rem 0 0; }
.admin-stats > div { background: var(--soft-green); border-radius: .55rem; padding: .6rem .75rem; }
.admin-stats dt { font-size: .9rem; color: var(--muted); }
.admin-stats dd { margin: 0; font-size: 1.45rem; font-weight: 800; }
.admin-stats dd small { font-size: .95rem; font-weight: 600; }
.admin-ranking { width: 100%; border-collapse: collapse; margin-top: .9rem; font-variant-numeric: tabular-nums; }
.admin-ranking th, .admin-ranking td { padding: .6rem .45rem; text-align: left; border-bottom: 1px solid var(--line); }
.admin-ranking th { font-size: .9rem; color: var(--muted); }
.admin-ranking tr:last-child td { border-bottom: 0; }
.admin-ranking td { overflow-wrap: anywhere; }
.admin-ranking td:last-child { width: clamp(6.5rem, 25%, 13rem); }
.admin-ranking small { display: block; color: var(--muted); }
.admin-ranking progress { width: 100%; display: block; margin-top: .35rem; }
.admin-owner { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
.admin-owner summary { overflow-wrap: anywhere; }
.admin-owner ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.admin-owner li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-block: .35rem; }
.card-delete summary { color: var(--red); }
.card-delete form { margin-top: .4rem; }

.draws { display: grid; gap: .55rem; }
.draw {
    display: grid;
    gap: .75rem;
    align-items: start;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--white);
}
.draw-latest { border-color: #c6d8c4; background: var(--soft-green); }
.draw-date { display: grid; gap: .15rem; align-self: center; }
.draw-date span { color: var(--muted); font-size: .875rem; }
.draw time { font-weight: 700; }
.tokens { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tokens li, .legend > span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 50%;
    background: var(--forest);
    color: white;
    font-size: .875rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.draw-latest .tokens li { background: radial-gradient(circle at 33% 18%, #ba424e, var(--red) 60%, var(--deep-red)); }
.legend { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.legend > span { width: 1.35rem; height: 1.35rem; border-radius: .35rem; background: var(--red); }

.player-list { container-type: inline-size; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.member-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
@container (min-width: 32rem) {
    .member-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.player-search { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-bottom: .9rem; }
.player-search label { flex: 1 1 12rem; }
.player-search a { align-self: center; font-weight: 700; }
.player-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .22rem; margin-top: .6rem; }
.player-pagination a, .pagination-disabled {
    display: grid;
    place-items: center;
    min-width: 2rem;
    min-height: 2.4rem;
    padding-inline: .25rem;
    border-radius: .5rem;
    color: var(--pine);
    text-decoration: none;
    font-weight: 700;
}
.player-pagination a:hover { background: var(--soft-green); }
.player-pagination a[aria-current] { background: var(--forest); color: white; }
.player-pagination a:first-child, .player-pagination a:last-child, .pagination-disabled { font-size: 1.45rem; }
.pagination-disabled { opacity: .35; }
.pagination-gap { padding-inline: .1rem; color: var(--muted); }
.member-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 0;
    padding: .4rem .35rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--white);
    color: var(--pine);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.member-tabs a:hover { background: var(--soft-green); }
.member-tabs a[aria-current] { background: var(--forest); border-color: var(--forest); color: white; }
.owner h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .6rem; font-size: 1.4rem; margin: .9rem 0 .7rem; overflow-wrap: anywhere; }
.owner h3 small { font: 600 .875rem var(--body); color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }

.ticket {
    padding: .85rem;
    background: linear-gradient(90deg, #bc8b42, #f3d498, #bc8b42) top / 100% .2rem no-repeat, var(--white);
    box-shadow: 0 .25rem .75rem #5e482610;
}
.ticket.complete {
    border-color: var(--red);
    background: var(--candy-stripe) top / 100% .25rem no-repeat, var(--white);
}
.ticket header, .ticket-progress { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ticket header { margin-bottom: .65rem; }
.ticket header p { font-size: .875rem; font-weight: 700; color: var(--muted); }
.ticket h4 { font-size: 1.2rem; }
.badge { border-radius: .45rem; padding: .3rem .5rem; background: var(--soft-green); font-size: .875rem; font-weight: 800; }
.complete .badge { background: var(--red); color: white; }

.ticket table { table-layout: fixed; border-collapse: separate; border-spacing: .15rem; width: 100%; }
.ticket td {
    background: #edf0e6;
    height: 2.1rem;
    padding: 0;
    text-align: center;
    border-radius: .3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ticket td.blank { background: repeating-linear-gradient(135deg, #f7f5ed 0 4px, #edebe2 4px 5px); }
.ticket td.marked { background: var(--red); color: white; text-decoration: underline; text-underline-offset: .17em; }
.ticket-progress { margin-top: .55rem; color: var(--muted); font-size: .875rem; font-weight: 700; white-space: nowrap; }
progress { width: 70%; min-width: 0; height: .5rem; appearance: none; border: 0; border-radius: 1rem; background: #dfe8dd; color: var(--forest); overflow: hidden; }
progress::-webkit-progress-bar { background: #dfe8dd; }
progress::-webkit-progress-value { border-radius: 1rem; background: var(--forest); }
progress::-moz-progress-bar { border-radius: 1rem; background: var(--forest); }

.celebration { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1000; pointer-events: none; }
.bingo-dialog, .round-dialog {
    width: min(calc(100% - 2rem), 30rem);
    max-height: min(85dvh, 42rem);
    overflow: auto;
    padding: 1.15rem;
    border: 2px solid var(--red);
    border-radius: 1rem;
    background: var(--candy-stripe) top / 100% .35rem no-repeat, var(--white);
    color: var(--ink);
    box-shadow: 0 1rem 3rem #102f2855;
}
.bingo-dialog::backdrop, .round-dialog::backdrop { background: #0b2b25ac; }
.bingo-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.bingo-dialog-header h2 { color: var(--red); }
.bingo-dialog-cards { display: grid; gap: 1rem; margin-top: 1rem; }
.bingo-dialog-card h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .5rem; font-size: 1.2rem; overflow-wrap: anywhere; }
.bingo-dialog-card h3 span { color: var(--red); font: 800 .9rem var(--body); }

.login-screen {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(90deg, #06281e80, #06281e12),
        var(--garland) 65% 45% / cover no-repeat,
        var(--deep-pine);
}
.login-card {
    position: relative;
    width: min(100%, 27rem);
    padding: clamp(1.5rem, 6vw, 2.5rem);
    border-color: #dcb77b;
    background: var(--candy-stripe) top / 100% .4rem no-repeat, var(--white);
    box-shadow: 0 1rem 4rem #061d1790;
}
.login-card .brand-mark { margin-bottom: .95rem; }
.login-card .eyebrow { color: var(--red); }
.login-card h1 { font-size: clamp(3.3rem, 12vw, 5.1rem); margin-block: .2rem .8rem; }
.login-card h1 > span { color: var(--red); }
.login-card > p:not(.eyebrow, .notice) { color: var(--muted); }
.login-card form { display: grid; gap: .65rem; margin-top: 1.1rem; }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.password-field:has(button[hidden]) input { grid-column: 1 / -1; }
.password-field button[hidden] { display: none; }
.password-field button { padding-inline: .75rem; }
.login-submit { margin-top: .35rem; }

@media (prefers-reduced-motion: no-preference) {
    button, .button, .member-tabs a { transition: background-color .18s ease, border-color .18s ease; }
}

@media (max-width: 51rem) {
    .dashboard { grid-template-columns: 1fr; }
    .actions-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .target-panel { grid-column: 1 / -1; }
    .hero-art { right: 0; width: 45%; }
    .ball-tray { margin-inline-start: 24%; }
    .scoreboard progress { display: none; }
}

@media (max-width: 35rem) {
    .topbar { flex-wrap: wrap; column-gap: .6rem; row-gap: .15rem; padding-block: .65rem .4rem; }
    .topbar form { margin-inline-start: auto; }
    .topbar-nav { margin: 0; order: 1; width: 100%; }
    .hero {
        background-image: linear-gradient(80deg, #09291f 20%, #09291f88 52%, transparent),
            linear-gradient(0deg, #09291f 13%, #09291fab 45%, transparent 76%),
            var(--garland);
        background-position: center, center, right top;
        background-size: auto, auto, auto 86%;
        background-repeat: no-repeat;
    }
    .hero-stage { padding: 1.6rem 1rem; }
    .hero-copy { max-width: 24rem; }
    .hero-copy > p:not(.eyebrow) { max-width: 28ch; }
    .hero-art { width: 42%; height: 8.7rem; right: .3rem; top: 0; }
    .ornament-red { left: 27%; }
    .ornament-gold { right: 10%; }
    .ornament-green { top: 63%; left: 14%; }
    .spark-one { top: 30%; left: 9%; }
    .spark-three { top: 71%; right: 23%; }
    .spark-four { display: none; }
    .ball-tray { margin-block-start: -1rem; margin-inline-start: .9rem; }
    .ball-chute { top: 31%; bottom: -4.25rem; }
    .actions-column { grid-template-columns: 1fr; }
    .draw { grid-template-columns: 1fr; gap: .5rem; }
}
