/* JRoySales giveaway counter. The basics match his inbox; the board itself is below. */
@font-face { font-family: 'Shoulders'; src: url(../fonts/bigshoulders.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(../fonts/onest.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
:root { --ink: #111214; --tag: #f6f6f3; --blue: #1f5cff; --concrete: #c3c6c8; --muted: #50565c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 16px/1.5 'Onest', system-ui, sans-serif; }
h1, h2 { font-family: 'Shoulders', Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: .95; margin: 0; }
a { color: inherit; }
button { font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--ink); background: var(--tag); color: var(--ink); padding: .45rem .8rem; border-radius: 2px; }
button:hover { background: #fff; }
.login { max-width: 360px; margin: 12vh auto; padding: 0 16px; display: grid; gap: 1rem; justify-items: start; }
.login img { border: 2px solid var(--ink); border-radius: 4px; }
.login h1 { font-size: 2.6rem; }
.login form { display: grid; gap: .8rem; width: 100%; }
.login label { display: grid; gap: .3rem; font-weight: 700; }
.login input { font: inherit; padding: .7rem .8rem; border: 2px solid var(--ink); border-radius: 2px; background: #fff; width: 100%; }
.login button { background: var(--ink); color: #fff; padding: .8rem; }
.err { color: #b00020; font-weight: 700; margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 900 1.6rem/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; text-decoration: none; }
.brand img { border-radius: 4px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 16px 0; border-bottom: 2px solid var(--ink); }
.tabs a { white-space: nowrap; padding: .55rem .9rem; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); border-bottom: 0; background: var(--concrete); margin-bottom: -2px; }
.tabs a[aria-current] { background: var(--tag); }
.tabs span { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .2rem; background: var(--blue); color: #fff; border-radius: 999px; text-align: center; font-size: .82rem; }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; display: grid; gap: 16px; }
main h2 { font-size: 2rem; margin-top: 1.4rem; }
.empty { font-weight: 700; color: var(--muted); }
.card { background: var(--tag); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; display: grid; gap: .6rem; }
.card.is-done { opacity: .62; box-shadow: none; }
.card header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card header b { font-size: 1.15rem; }
.card time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.who { margin: 0; }
.who a { font-weight: 700; }
dl { margin: 0; display: grid; gap: .3rem; }
dl div { display: grid; grid-template-columns: 96px 1fr; gap: .6rem; }
dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); }
.card footer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .4rem; border-top: 1px solid rgba(17,18,20,.18); }
.card footer form { margin: 0; }
.reply { display: inline-block; padding: .45rem .8rem; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); border-radius: 2px; margin-right: auto; }
.del { color: #b00020; }

/* ---------- Giveaway tab ---------- */
/* Setup screens (connect, pick a post) stay on concrete like the rest of the inbox */
.fine { font-size: .86rem; color: var(--muted); margin: 0; }
.btn-link { display: inline-block; padding: .45rem .8rem; border: 2px solid var(--ink); background: var(--tag); font-weight: 700; text-decoration: none; border-radius: 2px; }
.card header .fine { white-space: nowrap; }
.card footer { justify-content: space-between; }
.gw-big { background: var(--ink); color: #fff; padding: .8rem 1.1rem; font-size: 1.05rem; box-shadow: 4px 4px 0 var(--blue); transition: transform .15s, box-shadow .15s; }
.gw-big:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.gw-big:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--blue); }
.gw-rules ul { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.gw-rules summary { cursor: pointer; }
.gw-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gw-post { margin: 0; }
.gw-post button { width: 100%; height: 100%; padding: 0; display: grid; grid-template-rows: auto 1fr; text-align: left; font-weight: 400; overflow: hidden; }
.gw-post img, .gw-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: var(--concrete); border-bottom: 2px solid var(--ink); font-weight: 700; }
.gw-post span:last-child { display: grid; gap: .2rem; padding: .5rem .6rem .6rem; }
.gw-post b { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.gw-post small { color: var(--muted); font-size: .78rem; }
.gw-post button:hover { box-shadow: 4px 4px 0 var(--blue); }

/* The live board: lights off, his stall after dark. Ink, grain, one blue. */
main.gw--live { --ink-2: #1a1c1f; --line: #2c2f34; --muted-l: #a3a9af; --ice: #8fd0ff;
  max-width: none; margin: 0; padding: 0 0 80px; display: block; position: relative; isolation: isolate;
  background: var(--ink); color: var(--tag); min-height: 100vh; }
main.gw--live::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main.gw--live > * { width: min(1180px, 100% - 32px); margin-inline: auto; }
main.gw--live a { color: var(--ice); }
main.gw--live h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; color: var(--tag); }
main.gw--live button { border-color: var(--tag); }
.gw-ghost { background: transparent; color: var(--tag); border: 2px solid rgba(246,246,243,.55); }
.gw-ghost:hover { background: var(--tag); color: var(--ink); }
.gw-ghost--danger { color: #ff9a9a; border-color: rgba(255,154,154,.45); }
.gw-ghost--danger:hover { background: #ff9a9a; color: var(--ink); }
.gw-fine { color: var(--muted-l); font-size: .86rem; margin: 0; }
.gw-warn { margin: 0; padding: .55rem .8rem; background: #3a2a05; border-left: 4px solid #ffc53d; color: #ffe2a0; font-weight: 700; }

/* Tape label, with a pulse that says it's live */
.gw-tape { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem 1rem; font: 700 .8rem/1.2 'Onest', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: rgba(246,246,243,.9); transform: rotate(-1.5deg); clip-path: polygon(1% 4%, 99% 0, 100% 96%, 0 100%); }
.gw-tape i, .gw-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(31,92,255,.6); animation: gw-pulse 1.8s ease-out infinite; }
@keyframes gw-pulse { 70% { box-shadow: 0 0 0 9px rgba(31,92,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,92,255,0); } }

/* Hero: the prize headline, the countdown, and the post taped up like a polaroid */
.gw-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.gw-hero__copy { display: grid; gap: 1.1rem; justify-items: start; min-width: 0; }
.gw-hero h1 { font-size: clamp(2.9rem, 7.5vw, 6.4rem); line-height: .86; color: var(--tag); overflow-wrap: anywhere; text-wrap: balance; }
.gw-clock { display: grid; gap: .45rem; }
.gw-clock__label { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--muted-l); }
.gw-clock__digits { display: flex; align-items: flex-end; gap: .35rem; flex-wrap: wrap; }
.gw-clock__digits b { min-width: 2.1ch; padding: .12em .14em .02em; text-align: center; font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 'Shoulders', Impact, sans-serif; background: var(--tag); color: var(--ink); box-shadow: 4px 4px 0 var(--blue); font-variant-numeric: tabular-nums; }
.gw-clock__digits small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-l); margin: 0 .5rem 0 .15rem; }
.gw-clock__when { color: var(--muted-l); font-size: .9rem; }
.gw-clock.is-closed .gw-clock__digits b { background: var(--ink-2); color: var(--muted-l); box-shadow: 4px 4px 0 var(--line); }
.gw-edit summary { cursor: pointer; font-weight: 700; color: var(--ice); font-size: .92rem; }
.gw-close { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .7rem 0 0; }
.gw-close label { display: grid; gap: .25rem; font-weight: 700; font-size: .85rem; color: var(--muted-l); }
.gw-close input, .gw-redraw select { font: inherit; padding: .45rem .55rem; border: 2px solid var(--tag); border-radius: 2px; background: var(--tag); color: var(--ink); }
.gw-meta { margin: 0; color: var(--muted-l); font-size: .88rem; }
.gw-polaroid { margin: 0; justify-self: center; position: relative; width: min(100%, 300px); background: var(--tag); padding: 12px 12px 14px; transform: rotate(3deg); box-shadow: 10px 12px 0 rgba(0,0,0,.45); color: var(--ink); }
.gw-polaroid::before { content: ''; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(246,246,243,.7); box-shadow: 0 1px 2px rgba(0,0,0,.25); transform: rotate(-4deg); }
.gw-polaroid > img, .gw-polaroid__blank { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: #d9dbdc; }
.gw-polaroid__blank img { width: 62%; }
.gw-polaroid figcaption { margin-top: .55rem; font: 900 1.3rem/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; }
.gw-sticker { display: inline-block; padding: .3rem .6rem .35rem; background: var(--blue); color: #fff; font: 900 1.5rem/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; border-radius: 4px; transform: rotate(-5deg); box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
.gw-sticker--entries { position: absolute; left: -22px; top: 34px; font-size: 1.45rem; transform: rotate(-8deg); }
.gw-sticker--entries b { font-size: 1.9rem; }

/* Scoreboard */
.gw-boardwrap { display: grid; gap: 18px; }
.gw-status { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gw-status span { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted-l); font-size: .92rem; font-weight: 700; }
.gw-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.gw-stats div { background: var(--ink-2); border: 2px solid var(--line); padding: 14px 16px 12px; display: grid; gap: .2rem; min-width: 0; }
.gw-stats strong { font: 900 clamp(2.6rem, 6vw, 4.4rem)/.9 'Shoulders', Impact, sans-serif; font-variant-numeric: tabular-nums; }
.gw-stats span { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-l); }
.gw-stats .is-main { background: var(--blue); border-color: var(--blue); box-shadow: 6px 6px 0 var(--tag); }
.gw-stats .is-main span { color: rgba(255,255,255,.8); }
.gw-stats strong.is-bump { animation: gw-bump .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes gw-bump { 40% { transform: scale(1.08); } }

/* Podium: the top 3 as price tags */
.gw-podium { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.gw-podium:empty { display: none; }
.gw-podium li { position: relative; background: var(--tag); color: var(--ink); padding: 26px 16px 14px; display: grid; gap: .3rem; box-shadow: 6px 6px 0 rgba(0,0,0,.5); min-width: 0; }
.gw-podium li:nth-child(1) { order: 2; background: var(--blue); color: #fff; padding-top: 40px; transform: rotate(-1deg); box-shadow: 6px 6px 0 var(--tag); }
.gw-podium li:nth-child(2) { order: 1; transform: rotate(1deg); }
.gw-podium li:nth-child(3) { order: 3; transform: rotate(-.6deg); }
.gw-podium .gw-sticker { position: absolute; top: -16px; left: 14px; font-size: 1.6rem; }
.gw-podium li:nth-child(1) .gw-sticker { background: var(--tag); color: var(--ink); }
.gw-podium .gw-handle { font: 900 clamp(1.25rem, 2.4vw, 1.9rem)/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.gw-podium .gw-num { font: 900 clamp(2.6rem, 5vw, 3.8rem)/.85 'Shoulders', Impact, sans-serif; }
.gw-podium .gw-num small { font: 700 .8rem/1 'Onest', sans-serif; text-transform: uppercase; letter-spacing: .1em; margin-left: .3rem; }
.gw-podium p { margin: 0; font-size: .84rem; opacity: .75; font-weight: 700; }

/* Panels */
.gw-cols { display: grid; gap: 16px; margin-top: 6px; }
@media (min-width: 900px) { .gw-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } }
.gw-panel { background: var(--ink-2); border: 2px solid var(--line); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.gw-panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.gw-panel header a { font-size: .86rem; font-weight: 700; }
.gw-feed, .gw-board, .gw-their, .gw-history, .gw-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gw-feed { max-height: 620px; overflow-y: auto; scrollbar-color: var(--line) transparent; }
.gw-feed li { background: var(--ink); border-left: 4px solid var(--blue); padding: .5rem .7rem; display: grid; gap: .15rem; }
.gw-feed li.is-no { border-left-color: var(--line); opacity: .6; }
.gw-feed li.is-new { animation: gw-slide .5s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes gw-slide { from { opacity: 0; transform: translateX(-14px); background: #14244f; } }
.gw-feed div { display: flex; justify-content: space-between; gap: .5rem; }
.gw-feed b { overflow-wrap: anywhere; }
.gw-feed time { color: var(--muted-l); font-size: .78rem; white-space: nowrap; }
.gw-feed p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; color: #d6d9dc; }
.gw-feed small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-l); }
.gw-feed li.is-ok small { color: var(--ice); }
.gw-feed a, .gw-their a, .gw-detail a { font-weight: 700; text-decoration: none; }
.gw-feed .empty, .gw-board .empty { color: var(--muted-l); }
#gw-find { font: inherit; padding: .6rem .75rem; border: 2px solid var(--line); border-radius: 2px; background: var(--ink); color: var(--tag); width: 100%; }
#gw-find:focus { border-color: var(--blue); outline: none; }
.gw-board { max-height: 760px; overflow-y: auto; scrollbar-color: var(--line) transparent; }
.gw-person { background: var(--ink); border: 1px solid var(--line); position: relative; }
/* A bar behind each row: their entries against the leader's */
.gw-person::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(31,92,255,.28), rgba(31,92,255,.12)); pointer-events: none; transition: width .6s var(--ease, ease); }
.gw-person.is-out { opacity: .45; }
.gw-person.is-out .gw-handle { text-decoration: line-through; }
.gw-person.is-zero .gw-count { color: var(--muted-l); }
.gw-person summary { position: relative; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .55rem .75rem; list-style: none; cursor: pointer; }
.gw-person summary::-webkit-details-marker { display: none; }
.gw-person summary:hover .gw-handle { color: var(--ice); }
.gw-rank { font: 900 1.25rem/1 'Shoulders', Impact, sans-serif; color: var(--muted-l); }
.gw-handle { font-weight: 700; overflow-wrap: anywhere; }
.gw-count { color: var(--muted-l); font-size: .82rem; }
.gw-count b { font: 900 1.5rem/1 'Shoulders', Impact, sans-serif; color: var(--tag); }
.gw-detail { position: relative; padding: .6rem .75rem .75rem; display: grid; gap: .55rem; border-top: 1px solid var(--line); background: var(--ink); }
.gw-detail p { margin: 0; font-size: .88rem; color: #d6d9dc; }
.gw-detail form { margin: 0; }
.gw-detail .err { color: #ff9a9a; }
.gw-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.gw-flags span { background: #ffc53d; color: var(--ink); font-size: .74rem; font-weight: 700; padding: .12rem .45rem; transform: rotate(-1deg); }
.gw-their { max-height: 260px; overflow-y: auto; font-size: .85rem; }
.gw-their li { padding: .35rem .5rem; background: var(--ink-2); overflow-wrap: anywhere; color: #d6d9dc; }
.gw-their li.is-no { opacity: .55; }
.gw-their time { color: var(--muted-l); font-size: .74rem; margin-right: .3rem; }
.gw-their small { font-weight: 700; color: var(--muted-l); }

/* Pop-ups: a tag slapped on the corner of the screen for each new entry */
.gw-toasts { position: fixed; right: 16px; bottom: 16px; left: 16px; width: auto !important; margin: 0 !important; display: grid; justify-items: end; gap: 10px; pointer-events: none; z-index: 20; }
.gw-toast { position: relative; background: var(--tag); color: var(--ink); padding: .7rem 1rem .7rem 4.2rem; display: grid; min-width: 220px; max-width: 100%; box-shadow: 6px 6px 0 rgba(0,0,0,.55); transform: rotate(var(--r, -1.5deg)); animation: gw-slap .45s cubic-bezier(.2,.9,.3,1.35) both; transition: opacity .5s, transform .5s; }
.gw-toast::before { content: ''; position: absolute; top: -10px; right: 22px; width: 64px; height: 20px; background: rgba(246,246,243,.75); box-shadow: 0 1px 2px rgba(0,0,0,.3); transform: rotate(6deg); }
.gw-toast b { font: 900 1.45rem/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.gw-toast span { color: var(--muted); font-weight: 700; font-size: .82rem; }
.gw-toast .gw-plus { position: absolute; left: 10px; top: 50%; margin-top: -1.1rem; padding: .25rem .4rem; background: var(--blue); color: #fff; font: 900 1.6rem/1 'Shoulders', Impact, sans-serif; border-radius: 3px; transform: rotate(-8deg); }
.gw-toast.is-gone { opacity: 0; transform: translateY(10px) rotate(var(--r, -1.5deg)); }
@keyframes gw-slap { from { opacity: 0; transform: translateY(24px) scale(1.15) rotate(6deg); } }

/* The draw */
.gw-drawzone { margin-top: 34px; border: 2px dashed rgba(246,246,243,.3); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.gw-drawzone header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gw-drawcopy { margin: 0; color: #d6d9dc; max-width: 60ch; }
.gw-drawform { margin: 0; }
.gw-drawbtn { width: 100%; padding: 1.15rem 1rem 1rem; background: var(--blue); color: #fff; border: 0 !important; border-radius: 2px; box-shadow: 8px 8px 0 var(--tag); transition: transform .15s, box-shadow .15s; }
.gw-drawbtn span { font: 900 clamp(2.4rem, 7vw, 4.4rem)/.9 'Shoulders', Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.gw-drawbtn:hover { background: #2b66ff; transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--tag); }
.gw-drawbtn:active { transform: translate(5px, 5px); box-shadow: 3px 3px 0 var(--tag); }
.gw-winner { position: relative; margin-top: 12px; background: var(--tag); color: var(--ink); padding: 26px 20px 18px; display: grid; gap: .35rem; box-shadow: 8px 8px 0 var(--blue); }
.gw-winner .gw-sticker { position: absolute; top: -18px; left: 16px; font-size: 1.7rem; }
.gw-winner small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.gw-winner strong { font: 900 clamp(2.6rem, 9vw, 5.4rem)/.9 'Shoulders', Impact, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.gw-winner strong a { color: var(--blue) !important; text-decoration: none; }
.gw-winner p { margin: 0; color: var(--muted); font-weight: 700; }
.gw-checkhead { display: grid; gap: .1rem; }
.gw-checkhead b { font: 900 1.5rem/1 'Shoulders', Impact, sans-serif; text-transform: uppercase; }
.gw-checkhead span { color: var(--muted-l); font-size: .88rem; }
.gw-check { counter-reset: c; gap: .6rem; }
.gw-check li { counter-increment: c; display: grid; grid-template-columns: 2rem 1fr; color: #d6d9dc; }
.gw-check li::before { content: counter(c); font: 900 1.5rem/1.05 'Shoulders', Impact, sans-serif; color: var(--blue); }
.gw-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.gw-row form { margin: 0; }
main.gw--live .gw-big { background: var(--blue); border-color: var(--blue); box-shadow: 5px 5px 0 var(--tag); }
.gw-redraw { display: flex; flex-wrap: wrap; gap: .4rem; }
.gw-again summary { cursor: pointer; font-weight: 700; color: var(--ice); }
.gw-again form { margin: .6rem 0 0; }
.gw-history { font-size: .86rem; margin-top: .5rem; color: #d6d9dc; }
main.gw--live .gw-rules { margin-top: 18px; background: var(--ink-2); border: 2px solid var(--line); box-shadow: none; color: #d6d9dc; }
.gw-disconnect { margin: 18px auto 0; }

/* The reveal: names flicking past, slowing down, landing on the winner */
.gw-reveal { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--tag); display: grid; place-items: center; padding: 24px 16px; overflow: hidden; text-align: center; animation: gw-fade .3s both; }
.gw-reveal::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gw-reveal__in { position: relative; display: grid; gap: 1.4rem; justify-items: center; width: min(1000px, 100%); }
.gw-reveal__name { font: 900 clamp(2.6rem, 11vw, 8.5rem)/.9 'Shoulders', Impact, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; min-height: 1.8em; display: grid; place-items: center; }
.gw-reveal.is-spinning .gw-reveal__name { color: rgba(246,246,243,.85); }
.gw-reveal.is-won .gw-reveal__name { color: #fff; animation: gw-land .7s cubic-bezier(.2,.9,.3,1.4) both; }
.gw-reveal.is-won .gw-reveal__name span { background: var(--blue); padding: .08em .22em .1em; box-shadow: 10px 10px 0 var(--tag); display: inline-block; transform: rotate(-2deg); }
@keyframes gw-land { from { transform: scale(.6); opacity: .2; } }
.gw-reveal__sub { margin: 0; font-weight: 700; color: var(--muted-l); min-height: 1.6em; }
.gw-reveal .gw-sticker { font-size: clamp(1.8rem, 4vw, 2.6rem); opacity: 0; }
.gw-reveal.is-won .gw-sticker { opacity: 1; animation: gw-slap .5s .25s cubic-bezier(.2,.9,.3,1.35) both; }
.gw-reveal button { position: absolute; top: 16px; right: 16px; z-index: 2; background: transparent; color: var(--tag); border: 2px solid rgba(246,246,243,.5); }
.gw-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gw-confetti i { position: absolute; top: -30px; width: 10px; height: 18px; background: var(--c); transform: rotate(var(--rot)); animation: gw-fall var(--dur) var(--delay) cubic-bezier(.3,.5,.6,1) forwards; }
@keyframes gw-fall { to { transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--rot) + 720deg)); } }
@keyframes gw-fade { from { opacity: 0; } }

@media (max-width: 760px) {
  .gw-hero { grid-template-columns: 1fr; }
  .gw-polaroid { width: min(78%, 280px); margin: 8px auto 6px; }
  .gw-stats { grid-template-columns: 1fr 1fr; }
  .gw-stats .is-main { grid-column: 1 / -1; }
  .gw-podium { grid-template-columns: 1fr; gap: 22px; }
  .gw-podium li:nth-child(n) { order: 0; transform: none; }
  .gw-clock__digits small { margin-right: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-tape i, .gw-pulse, .gw-feed li.is-new, .gw-toast, .gw-stats strong.is-bump, .gw-reveal, .gw-reveal.is-won .gw-reveal__name, .gw-reveal.is-won .gw-sticker { animation: none; }
  .gw-confetti { display: none; }
}
