/* Santa's List v2 (task 627), built from mock-up A2 (tasks 616/617): one big parchment scroll with gold rollers that
   turn while the names curl up into the top roller. Used by the home page and the stream view (/stream, /overlay).
   Sizes inside the list use cqw (1% of the list board's width), so the same scroll works on a phone, on a desktop page
   and in the 1080×1920 stream frame. Scroll styles (Santa's panel): parchment | antique | painted.
   Stream backdrops: cabin | night | snowfall | transparent. */
@font-face { font-family: 'Great Vibes'; src: url('/fonts/great-vibes.woff2') format('woff2'); font-display: swap; }
:root {
  --red: #7a1219; --red-2: #b3202a; --green: #1d4a35; --cream: #fff8ec; --ink: #2b1d12; --muted: #5a4634; --gold: #c99a2e;
  --script: 'Great Vibes', 'Brush Script MT', cursive; --serif: Georgia, 'DejaVu Serif', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html.stream *, html.stream *::before, html.stream *::after { box-sizing: border-box; } /* as site.css does for the website */
.wrap-wide { width: min(100% - 2rem, 92rem); margin-inline: auto; }
.btn-gold { background: linear-gradient(#f3d77a, #c99a2e); color: #4a1006; border-color: #fff3c4; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 0 #7a5410, 0 8px 20px rgba(0, 0, 0, .35); font-family: inherit; }
.btn-gold:hover { filter: brightness(1.08); color: #4a1006; }
.linkish { font: inherit; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
/* Phone: a floating "Add your name" button that stays in reach while the list scrolls by. */
.btn.fab-add { display: none; }
@media (max-width: 40rem) { html:not(.stream) .btn.fab-add { display: inline-flex; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; min-height: 50px; padding: .45rem 1.2rem; font-size: 1rem; } }

/* ---- List component skeleton ---- */
.santa-list { position: relative; }
.sl-boardwrap { container-type: inline-size; position: relative; }
.sl-cols { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.sl-right { display: flex; flex-direction: column; min-height: 0; }
.sl-col { display: flex; flex-direction: column; min-height: 0; }
.sl-nice { height: 100%; }
.sl-naughty { flex: 0 0 80%; }
.sl-bad { flex: 0 0 20%; }
.sl-window { position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.sl-bad .sl-window { -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.sl-track { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 0; list-style: none; will-change: transform; }
.sl-track li { margin: 0; overflow-wrap: break-word; }
.sl-still .sl-window { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.sl-still .sl-track { position: static; transform: none !important; }
.sl-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

/* ---- Christmas banner: light bulbs blink in two alternating sets, about once a second (well under 3 flashes/s) ---- */
.xmas-banner { position: relative; }
.bulbs { display: flex; justify-content: space-around; gap: 4px; pointer-events: none; }
.bulbs i { width: 12px; height: 16px; border-radius: 50% 50% 46% 46%; background: var(--c, #e33); box-shadow: 0 0 10px 2px var(--c, #e33); position: relative; }
.bulbs i::before { content: ''; position: absolute; left: 30%; top: -4px; width: 40%; height: 5px; background: #4a4a4a; border-radius: 1px; }
.bulbs i:nth-child(4n+1) { --c: #ff3b3b; } .bulbs i:nth-child(4n+2) { --c: #ffd43b; } .bulbs i:nth-child(4n+3) { --c: #35d07f; } .bulbs i:nth-child(4n+4) { --c: #4da3ff; }
@media (prefers-reduced-motion: no-preference) {
  .bulbs i { animation: bulb 1.2s steps(1) infinite; }
  .bulbs i:nth-child(odd) { animation-delay: -.6s; }
  .xmas-banner .flash { animation: flash-text 1.2s steps(1) infinite; }
}
@keyframes bulb { 0% { opacity: 1; } 50% { opacity: .25; box-shadow: none; } }

/* ---- Really Bad pop-up layer ---- */
.rb-pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 4vmin; background: rgba(10, 4, 4, .45); cursor: pointer; }
.stream .rb-pop { position: absolute; background: rgba(10, 4, 4, .25); padding: 40px; }
.rb-pop.out { background: transparent; transition: background .6s; }
.rb-card { position: relative; width: min(92vw, 860px); text-align: center; --pad: clamp(1rem, 3vw, 2.2rem); padding: 0 var(--pad); }
.rb-card .nw { white-space: nowrap; }
.rb-card .xmas-banner.in-pop { margin-inline: calc(-1 * var(--pad)); }
.stream .rb-card { --pad: 50px; }
.stream .rb-card { width: 960px; }
.rb-pop .bit { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: none; z-index: 2; }
.bit.star { color: #ffd65a; text-shadow: 0 0 10px #fff3b0; line-height: 1; }
.bit.ornament { border-radius: 50%; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .18), inset 5px 5px 0 rgba(255, 255, 255, .35); }
.bit.ornament::before { content: ''; position: absolute; left: 35%; top: -18%; width: 30%; height: 22%; background: #c9a24a; border-radius: 2px; }

/* ---- Stream view: 1080×1920, nothing else from the page ---- */
html.stream, html.stream body { margin: 0; height: 100%; overflow: hidden; background: #222; }
html.stream.clean, html.stream.clean body { background: transparent; }
html.stream body > :not(.stream-frame):not(dialog):not(.music-btn) { display: none !important; }
.stream-frame { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; overflow: hidden; }
.stream-frame[data-bg="transparent"] { background: transparent; }
html.stream.see-through, html.stream.see-through body { background: transparent; }

/* ---- Add-your-name dialog: layout only ---- */
.sl-dialog { width: min(94vw, 34rem); padding: 0; border: 0; }
.sl-dialog form { padding: 1.4rem 1.4rem 1rem; display: grid; gap: .75rem; }
.sl-dialog h2 { margin: 0; }
.sl-dialog p { margin: 0; }
.sl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 30rem) { .sl-row2 { grid-template-columns: 1fr; } }
.sl-dialog label { display: grid; gap: .2rem; font-weight: 700; font-size: .95rem; }
.sl-dialog input:not([type="checkbox"]) { font: inherit; font-weight: 400; min-height: 46px; padding: .4rem .7rem; border-radius: 10px; width: 100%; box-sizing: border-box; }
.sl-dialog small { font-weight: 400; font-size: .8rem; opacity: .85; }
.sl-check { display: flex !important; align-items: center; gap: .6rem !important; font-size: 1.05rem !important; cursor: pointer; }
.sl-check input { width: 26px; height: 26px; margin: 0; }
.sl-form-note { font-size: .88rem; }
.sl-form-err:empty { display: none; }
.sl-form-err { font-weight: 700; color: #b3202a; }
.sl-form-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.sl-form-actions button { font: inherit; font-weight: 700; min-height: 48px; padding: .5rem 1.3rem; border-radius: 999px; cursor: pointer; }

/* ---- Hero: the list starts right under the site header ---- */
.list-hero {
  position: relative; color: var(--cream); padding: 1.2rem 0 1.6rem;
  background: linear-gradient(rgba(20, 10, 8, .55), rgba(20, 10, 8, .8)), url('/img/scene-wide-1280.jpg') center top / cover no-repeat #2a1810;
}
.list-hero::before { /* gentle snowfall */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(4px 4px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(3px 3px at 90px 120px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(5px 5px at 150px 60px, rgba(255,255,255,.85) 50%, transparent 51%), radial-gradient(3px 3px at 210px 170px, #fff 50%, transparent 51%);
  background-size: 240px 200px;
}
@media (prefers-reduced-motion: no-preference) { .list-hero::before { animation: snow 14s linear infinite; } }
@keyframes snow { to { background-position: 0 200px; } }
.list-layout { position: relative; display: grid; gap: 1.4rem; grid-template-columns: 17rem minmax(0, 1fr); align-items: start; }
.list-foot { position: relative; text-align: center; font-size: .95rem; margin: 1.2rem auto 0; max-width: 46rem; opacity: .92; }

/* The "Is your name on Santa's List?" box, on the left beside the scroll; it stays in view while the page scrolls. */
.check-box {
  position: sticky; top: 1rem; display: grid; gap: .8rem; justify-items: center; text-align: center; color: var(--ink);
  padding: 1.4rem 1.2rem 1.2rem; border-radius: 18px; border: 4px solid #e2b64a;
  background: radial-gradient(ellipse at 50% 30%, #fffaf0, #f6e7c4 70%, #e9d29e);
  box-shadow: 0 0 0 3px #5e0c10, 0 12px 30px rgba(0, 0, 0, .5);
}
.check-box h1 { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.15; margin: 0; color: var(--ink); }
.check-box h1 em { display: block; font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.75em; line-height: 1.05; color: var(--red); }
.cb-lead { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.check-box .btn { width: 100%; }
.btn-outline-dark { border-color: var(--red); color: var(--red); background: rgba(255, 255, 255, .5); }
.cb-note { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 64rem) { .list-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; } }
@media (max-width: 52rem) {
  .list-layout { grid-template-columns: 1fr; }
  .check-box { position: static; grid-template-columns: 1fr auto; justify-items: start; text-align: left; gap: .5rem 1rem; padding: 1rem 1.1rem; }
  .check-box h1 { grid-column: 1 / -1; font-size: 1.3rem; }
  .check-box h1 em { display: inline; font-size: 1.6em; }
  .cb-lead { grid-column: 1 / -1; font-size: .95rem; }
  .check-box .btn { width: auto; min-height: 48px; padding: .5rem 1.1rem; font-size: 1.02rem; }
  .cb-note { display: none; }
}

/* ---- The list component: scroll + banner beside the Naughty / Really Bad side ---- */
.santa-list { display: grid; grid-template-columns: minmax(0, 1fr) 14.5rem; gap: 1.4rem; align-items: start; }
.santa-list > .xmas-banner { position: sticky; top: 30vh; margin-top: 40vh; }
@media (max-width: 64rem) {
  .santa-list { grid-template-columns: 1fr; gap: 1.6rem; }
  .santa-list > .xmas-banner { position: relative; top: 0; margin-top: 0; }
}
/* About twice as tall as A (A: one screen high, at most 920px). The page scrolls past it. */
.sl-boardwrap { height: clamp(1100px, calc(2 * (100vh - 150px)), 1640px); }
.sl-board { position: absolute; inset: 0; display: flex; flex-direction: column; --roll: max(30px, 4.8cqw); }

/* Title plaque hung above the top roller (the names need the roller to themselves, to roll up into it). */
.sl-head {
  position: relative; z-index: 3; align-self: center; width: 62%; text-align: center; margin-bottom: -2px;
  padding: 1cqw 3cqw calc(1.4cqw + 6px); border-radius: 2.4cqw 2.4cqw .6cqw .6cqw;
  background: radial-gradient(ellipse at 50% 0%, #2f6b4c, #1d4a35 60%, #12301f); border: max(3px, .45cqw) solid #e2b64a; border-bottom-width: 0;
  box-shadow: 0 0 0 max(2px, .3cqw) #0d2418, 0 1cqw 2.4cqw rgba(0, 0, 0, .5), inset 0 0 2cqw rgba(0, 0, 0, .35);
}
.sl-title { font-family: var(--script); font-weight: 400; color: #ffe08a; font-size: max(34px, 6.2cqw); line-height: 1; margin: 0; text-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .5); }
.sl-sub { margin: .25em 0 0; font-family: var(--serif); font-style: italic; color: #f6ead0; font-size: max(12px, 1.6cqw); letter-spacing: .02em; }
.seal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -38%); z-index: 4; width: max(36px, 5.4cqw); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #f3c9a0; font-size: max(16px, 2.6cqw);
  background: radial-gradient(circle at 38% 35%, #d23a3a, #8e1418 60%, #5e0c10); box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.5), inset 0 0 0 .5cqw rgba(0,0,0,.15);
}

/* Gold rollers. Three layers: fixed cylinder shading on top, then the flutes (moved by option-a2.js through --turn
   in step with the paper, so the roller seems to turn), then the gold. */
.roll, .rod {
  position: relative; z-index: 2; border-radius: 999px;
  background:
    linear-gradient(rgba(70, 40, 0, .7), rgba(70, 40, 0, 0) 24%, rgba(255, 252, 225, .75) 40%, rgba(255, 240, 190, 0) 56%, rgba(70, 40, 0, .25) 76%, rgba(45, 25, 0, .85)),
    repeating-linear-gradient(rgba(110, 70, 0, 0) 0 9px, rgba(110, 70, 0, .45) 9px 11px, rgba(255, 245, 200, .45) 11px 12px, rgba(110, 70, 0, 0) 12px 16px),
    linear-gradient(#d9a63a, #f7dc84 45%, #b98222);
  background-position: 0 0, 0 var(--turn, 0px), 0 0;
  box-shadow: 0 .6cqw 1.4cqw rgba(0, 0, 0, .5);
}
.roll { flex: 0 0 var(--roll); height: var(--roll); }
.roll::before, .roll::after { /* gold end knobs */
  content: ''; position: absolute; top: -22%; width: max(16px, 2.8cqw); height: 144%; border-radius: 42%;
  background: linear-gradient(90deg, #6b4708, #c9932a 30%, #fff0b8 50%, #d6a33c 68%, #6b4708);
  box-shadow: 0 .4cqw .8cqw rgba(0, 0, 0, .45);
}
.roll::before { left: -1.4cqw; } .roll::after { right: -1.4cqw; }
.roll-top { margin-top: 0; z-index: 4; } /* above the title plaque, so the plates sit in front of it */

/* List name plates fixed to the rollers (Nice / Naughty on the top roller, Really Bad on its own small rod). */
.plate {
  position: absolute; top: 50%; z-index: 3; margin: 0; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--script); font-weight: 400; font-size: max(24px, 4.1cqw); line-height: 1; padding: .08em .6em .16em;
  border-radius: .4em; border: max(2px, .32cqw) solid #e2b64a; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .45), inset 0 0 .8cqw rgba(0, 0, 0, .3);
}
.plate-nice { left: 28%; color: #fff3c4; background: radial-gradient(ellipse at 50% 30%, #2f7a52, #1d4a35 70%); }
.plate-naughty { left: 72%; color: #ffe6a3; background: radial-gradient(ellipse at 50% 30%, #b3202a, #7a1219 70%); }
.plate-bad { left: 50%; font-size: max(19px, 3cqw); color: #fff; background: radial-gradient(ellipse at 50% 30%, #e0353e, #a3141d 70%); }

.sheet {
  position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column;
  margin: calc(var(--roll) * -.5) 3cqw; padding: calc(var(--roll) * .5 + .4cqw) 3cqw;
  color: var(--ink); font-family: var(--serif);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 251, 238, .85), rgba(255, 251, 238, 0) 62%),
    radial-gradient(ellipse at 18% 12%, rgba(150, 100, 40, .22), transparent 38%),
    radial-gradient(ellipse at 86% 82%, rgba(150, 100, 40, .24), transparent 42%),
    radial-gradient(circle at 8% 70%, rgba(120, 70, 20, .18), transparent 12%),
    linear-gradient(90deg, #dcc08a, #f2e0b8 10%, #f8ebcd 50%, #efdcb0 90%, #d6ba80);
  box-shadow: inset 0 0 2.6cqw rgba(120, 78, 28, .5), 0 1.5cqw 3cqw rgba(0, 0, 0, .5);
}
.sl-cols { flex: 1; }
.sl-nice { padding-right: 1.6cqw; }
.sl-right { position: relative; padding-left: 1.6cqw; border-left: .3cqw double rgba(110, 70, 30, .6); }
.sl-bad .rod { flex: 0 0 auto; height: max(16px, 2.4cqw); margin: 1.1cqw -1cqw .6cqw; }

/* The curl is done in option-a2.js; here only a faint edge fade and the roller's shadow on the paper. */
.sl-window, .sl-bad .sl-window {
  -webkit-mask-image: linear-gradient(transparent, #000 1.5%, #000 98.5%, transparent); mask-image: linear-gradient(transparent, #000 1.5%, #000 98.5%, transparent);
}
.sl-window::before, .sl-window::after {
  content: ''; position: absolute; left: 0; right: 0; height: 4.5cqw; z-index: 1; pointer-events: none;
}
.sl-window::before { top: 0; background: linear-gradient(rgba(95, 58, 18, .26), rgba(95, 58, 18, 0)); }
.sl-window::after { bottom: 0; background: linear-gradient(rgba(95, 58, 18, 0), rgba(95, 58, 18, .22)); }
.sl-still .sl-window::before, .sl-still .sl-window::after { display: none; }

.sl-track { text-align: center; }
.sl-track li { font-size: max(13px, 2.45cqw); line-height: 1.35; padding: .12em 0; }
.sl-track .nm { font-weight: 700; }
.sl-track .dash { color: #8b6a44; }
.sl-track .ct { font-style: italic; color: #4e3a28; }
.sl-nice .sl-track .nm { color: #173f2c; }
.sl-naughty .sl-track .nm { color: #6e150c; }
.sl-bad .sl-track li { font-size: max(13px, 2cqw); color: var(--red-2); }
.sl-bad .sl-track .nm, .sl-bad .sl-track .ct { color: var(--red-2); }
.sl-track li.sl-new { animation: new-name 6s ease-out; border-radius: .4em; }
@keyframes new-name { 0%, 55% { background: rgba(255, 214, 90, .75); box-shadow: 0 0 0 .2em rgba(255, 214, 90, .75); } 100% { background: transparent; box-shadow: none; } }

/* ---- Music button: small, festive, bottom left (phones: the Add-your-name button floats bottom right) ---- */
.music-btn {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 45; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: .4rem .95rem .4rem .7rem; border-radius: 999px; border: 2px solid #e2b64a; cursor: pointer;
  background: radial-gradient(ellipse at 50% 0%, #2f6b4c, #1d4a35 60%, #12301f); color: #fff3c4; font: 600 .95rem/1.2 system-ui, sans-serif;
  box-shadow: 0 0 0 2px #0d2418, 0 6px 18px rgba(0, 0, 0, .45);
}
.music-btn[aria-pressed="true"] { background: radial-gradient(ellipse at 50% 0%, #c42a32, #8a1219 60%, #5e0c10); box-shadow: 0 0 0 2px #5e0c10, 0 0 16px rgba(255, 200, 80, .55); }
@media (prefers-reduced-motion: no-preference) { .music-btn.playing svg { animation: note 1.2s ease-in-out infinite; } }
@keyframes note { 50% { transform: rotate(-12deg) translateY(-2px); } }
@media (max-width: 40rem) {
  .music-btn { padding: .35rem .8rem .35rem .6rem; font-size: .85rem; }
  .music-btn .mu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .check-box .cb-lead { display: none; }
  .check-box h1 { font-size: 1.15rem; }
  .check-box { grid-template-columns: 1fr 1fr; }
  .check-box .btn { width: 100%; white-space: normal; line-height: 1.2; font-size: .98rem; padding: .45rem .7rem; }
  .list-hero { padding-top: .8rem; }
}

/* ---- Banner: velvet ribbon with twinkling lights ---- */
.xmas-banner {
  text-align: center; color: #fff6dc; padding: 1rem 1.1rem; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, #c42a32, #8a1219 60%, #5e0c10);
  border: 4px solid #e2b64a; box-shadow: 0 0 0 3px #5e0c10, 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 22px rgba(0,0,0,.35);
}
.xmas-banner .bulbs { margin: -1.65rem .2rem .4rem; }
.xmas-banner .bulbs:last-child { margin: .6rem .2rem -1.65rem; }
.holly { display: block; font-size: 2rem; line-height: 1; color: #3fa36b; text-shadow: 0 0 6px rgba(0,0,0,.4); }
.xb-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.32; margin: .3rem 0 .8rem; font-weight: 700; }
.xb-text .flash { display: block; font-family: var(--script); font-weight: 400; font-size: 2.1rem; line-height: 1.1; margin-top: .3rem; color: #ffd86b; text-shadow: 0 0 12px rgba(255, 200, 80, .7); }
@keyframes flash-text { 0% { color: #ffd86b; text-shadow: 0 0 14px rgba(255, 200, 80, .9); } 50% { color: #ffffff; text-shadow: 0 0 6px rgba(255, 255, 255, .5); } }
.xb-btn { font: inherit; font-weight: 700; background: #fff6dc; color: var(--red); border: 0; border-radius: 999px; min-height: 46px; padding: .4rem 1.3rem; cursor: pointer; }
@media (max-width: 64rem) {
  .xmas-banner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 .8rem; text-align: left; padding: 1rem 1rem; }
  .xmas-banner .bulbs { grid-column: 1 / -1; }
  .holly { font-size: 2.4rem; }
  .xb-text { margin: 0; font-size: 1.05rem; }
  .xb-text .flash { font-size: 1.7rem; }
  .xb-btn { grid-column: 1 / -1; justify-self: center; margin-top: .6rem; }
}

/* ---- "Come back often!" note (task 699): shown once the visitor's own result pop-up closes. Desktop: a parchment tag
   just above the banner, beside the scroll (it rides along with the sticky banner). Phones / narrow: floats above the
   bottom buttons. Pulses gently, well under 3 flashes/s. ---- */
.sl-comeback {
  position: absolute; left: .3rem; right: .3rem; bottom: calc(100% + 2.2rem); z-index: 3; text-align: center; color: var(--ink);
  padding: .6rem 1rem .7rem; border-radius: 16px; border: 3px solid #e2b64a;
  background: radial-gradient(ellipse at 50% 30%, #fffaf0, #f6e7c4 70%, #e9d29e); box-shadow: 0 0 0 3px #5e0c10, 0 10px 24px rgba(0, 0, 0, .45);
}
.sl-comeback[hidden] { display: none; }
.cbk-title { margin: 0 0 .2rem; padding: 0 .7rem; font-family: var(--script); font-size: 1.65rem; line-height: 1; color: var(--red); }
.cbk-line { margin: 0; font-family: var(--serif); font-size: .92rem; line-height: 1.32; font-weight: 700; min-height: 5.28em; } /* 4 lines, so the note keeps its size as the lines change */
.cbk-close {
  position: absolute; top: .2rem; right: .2rem; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  font: 700 1.3rem/1 var(--sans); color: var(--red); background: transparent;
}
.cbk-close:hover { background: rgba(122, 18, 25, .1); }
.cbk-close:focus-visible { outline: 3px solid #1a5fb4; }
@media (prefers-reduced-motion: no-preference) {
  .sl-comeback { animation: cbk-pulse 1.6s ease-in-out infinite; }
  .sl-comeback:hover, .sl-comeback:focus-within { animation-play-state: paused; } /* holds still for the close button */
}
@keyframes cbk-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px #5e0c10, 0 0 10px 2px rgba(255, 214, 90, .35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 3px #5e0c10, 0 0 28px 9px rgba(255, 214, 90, .95); }
}
@media (max-width: 64rem) {
  .sl-comeback { position: fixed; left: 0; right: 0; bottom: calc(1rem + 62px); width: min(100% - 2rem, 24rem); margin-inline: auto; z-index: 42; }
  .cbk-line { min-height: 3.96em; }
}
.stream .sl-comeback { display: none !important; }

/* ---- Really Bad pop-up ---- */
.rb-card {
  padding-top: clamp(1.4rem, 4vw, 2.6rem); border-radius: 26px; overflow: visible; color: #fff;
  background: radial-gradient(ellipse at 50% 20%, #c8262e, #8a1219 55%, #520a0e); border: 6px solid #e2b64a;
  box-shadow: 0 0 0 4px #520a0e, 0 0 60px 12px rgba(255, 60, 40, .6); font-family: var(--serif);
}
.rb-kicker { font-family: var(--script); font-size: clamp(2rem, 6vw, 3.2rem); color: #ffd86b; margin: 0 0 .2rem; line-height: 1; }
.rb-line { margin: 0 0 1.2rem; font-weight: 700; font-size: clamp(1.4rem, 4.2vw, 2.5rem); line-height: 1.18; }
.rb-who { display: block; font-size: 1.25em; color: #ffe6a3; overflow-wrap: anywhere; }
.rb-really { display: block; font-size: clamp(2.2rem, 7.4vw, 4.6rem); line-height: 1.02; letter-spacing: .01em; margin: .12em 0 .06em; text-shadow: 0 0 22px #ff3b2f, 0 3px 0 #520a0e; }
.rb-is { font-weight: 400; font-style: italic; }
.xmas-banner.in-pop { margin-bottom: -1px; border-radius: 0 0 20px 20px; border-width: 4px 0 0; box-shadow: none; padding: 1rem 1rem 1.1rem; display: block; text-align: center;
  background: linear-gradient(#1d4a35, #123326); }
.xmas-banner.in-pop .bulbs { margin: -1.75rem .4rem .4rem; }
.xmas-banner.in-pop .bulbs:last-child { display: none; }
.xmas-banner.in-pop .holly { display: none; }
.xmas-banner.in-pop .xb-text { margin: 0; font-size: clamp(1rem, 2.6vw, 1.35rem); }
.xmas-banner.in-pop .flash { display: inline; font-size: 1.45em; }
@media (prefers-reduced-motion: no-preference) {
  .rb-card.pulse { animation: pulse 1s ease-in-out infinite; }
  .rb-card.pulse .rb-really { animation: flash-really 1s steps(1) infinite; }
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px #520a0e, 0 0 40px 6px rgba(255, 60, 40, .55); } 50% { box-shadow: 0 0 0 4px #520a0e, 0 0 90px 24px rgba(255, 90, 40, .95); } }
@keyframes flash-really { 0% { color: #fff; } 50% { color: #ffd65a; } }

/* ---- Add-your-name dialog + toast ---- */
.sl-dialog { border-radius: 20px; background: #fbf1da; color: var(--ink); border: 5px solid #e2b64a; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sl-dialog::backdrop { background: rgba(20, 8, 6, .65); }
.sl-dialog h2 { font-family: var(--script); font-weight: 400; color: var(--red); font-size: 2.5rem; line-height: 1.05; }
.sl-dialog input:not([type="checkbox"]) { border: 2px solid #b89a6a; background: #fffaf0; }
.sl-dialog input:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 1px; }
.sl-check input { accent-color: var(--green); }
.sl-cancel { background: transparent; border: 2px solid #b89a6a; color: var(--ink); }
.sl-submit { background: var(--red); color: #fff; border: 2px solid var(--red); }

/* ---- Website result pop-up (Nice / Naughty): about half the Really Bad pop-up, ~4 s, closes by itself ---- */
.sl-result { width: min(92vw, 29rem); cursor: pointer; padding: 0; border: 0; background: transparent; overflow: visible; color: #fff; }
.sl-result::backdrop { background: rgba(20, 8, 6, .62); }
.sl-result .bit { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: none; z-index: 2; }
.res-card {
  position: relative; text-align: center; padding: 1.3rem 1.4rem 1.3rem; border-radius: 22px; border: 5px solid #e2b64a; font-family: var(--serif);
  background: radial-gradient(ellipse at 50% 15%, #2f7a52, #1d4a35 58%, #123326); box-shadow: 0 0 0 3px #0d2418, 0 0 44px 8px rgba(255, 214, 90, .45);
}
.sl-result-naughty .res-card { background: radial-gradient(ellipse at 50% 15%, #a8322a, #7a1219 58%, #520a0e); box-shadow: 0 0 0 3px #520a0e, 0 0 40px 6px rgba(255, 140, 60, .45); }
.res-kicker { font-family: var(--script); font-size: 2.4rem; line-height: 1; margin: 0 0 .3rem; color: #ffd86b; }
.res-line { margin: 0 0 .7rem; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.res-who { display: block; font-size: 1.2em; color: #ffe6a3; overflow-wrap: anywhere; }
.res-is { font-weight: 400; font-style: italic; }
.res-list { display: block; font-size: 2.2rem; line-height: 1.05; margin: .12em 0 .04em; letter-spacing: .02em; }
.sl-result-nice .res-list { color: #fff3c4; text-shadow: 0 0 18px rgba(255, 224, 138, .9); }
.sl-result-naughty .res-list { color: #ffd86b; text-shadow: 0 0 14px rgba(255, 120, 60, .8), 0 2px 0 #520a0e; }
.res-card .nw { white-space: nowrap; }
.res-after { margin: 0 0 1rem; font-size: 1rem; line-height: 1.4; color: #fff6dc; }
.res-after { margin-bottom: .9rem; }
.res-timer { position: absolute; left: 1.4rem; right: 1.4rem; bottom: .7rem; height: 4px; border-radius: 4px; background: rgba(255, 216, 107, .85); transform-origin: left; animation: res-timer linear forwards; }
@keyframes res-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---- Stream view (1080×1920): the same scroll, no left box, no result pop-ups (Really Bad only) ---- */
.stream .santa-list, .stream .santa-list { position: absolute; left: 40px; top: 140px; width: 1000px; display: block; }
.stream .sl-boardwrap { height: 1450px; }
.stream .sl-head { padding-top: .6cqw; padding-bottom: calc(.9cqw + 6px); }
.stream .sl-title { font-size: 5.6cqw; }
.stream .sl-bad .rod { margin: .9cqw -1cqw .5cqw; }
.stream .sl-track li { font-size: 3.3cqw; line-height: 1.26; }
.stream .sl-bad .sl-track li { font-size: 2.2cqw; line-height: 1.2; padding: .06em 0; }
.stream .sl-sub { font-size: 2cqw; }
.stream .santa-list > .xmas-banner { position: relative; top: 0; margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 0 20px; text-align: left; align-items: center; padding: 18px 28px; }
.stream .xmas-banner .bulbs { grid-column: 1 / -1; }
.stream .xmas-banner .bulbs i { width: 16px; height: 22px; }
.stream .xmas-banner .bulbs:first-child { margin: -36px 10px 6px; }
.stream .xmas-banner .bulbs:last-child { margin: 8px 10px -36px; }
.stream .holly { font-size: 52px; }
.stream .xb-text { font-size: 31px; margin: 0; }
.stream .xb-text .flash { font-size: 50px; }
.stream .xb-btn { display: none; }
.stream .rb-card { padding-top: 60px; }
.stream .rb-kicker { font-size: 84px; }
.stream .rb-line { font-size: 62px; }
.stream .rb-really { font-size: 108px; }
.stream .xmas-banner.in-pop { display: block; text-align: center; padding: 26px 30px 30px; }
.stream .xmas-banner.in-pop .xb-text { font-size: 38px; }
.stream .xmas-banner.in-pop .bulbs:first-child { margin: -46px 14px 12px; }
/* The stream's own mute: shown when previewing in a browser; hidden with clean=1 (OBS) — use the admin panel there. */
html.stream:not(.clean) body > button.music-btn.music-btn { display: inline-flex !important; }

/* ---- Live site additions (task 627) ---- */
.list-hero .list-foot a { color: #ffe6a3; }
.list-hero .sl-paused { margin: .8rem auto 0; max-width: 46rem; position: relative; text-align: center; font-weight: 700; color: #ffe6a3; }
.sl-dialog .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sl-dialog .sl-form-actions .sl-submit[disabled] { opacity: .6; cursor: wait; }
.sl-dialog input[aria-invalid="true"] { border-color: var(--red-2); }
.check-box .btn { font-family: inherit; }

/* Scroll styles (Santa's panel): parchment = gold rollers on warm parchment (the A2 design); antique = darker, aged
   paper with red-and-gold rollers; painted = light paper with polished wooden rollers. */
.santa-list[data-scroll="antique"] .sheet {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(250, 235, 200, .7), rgba(250, 235, 200, 0) 62%),
    radial-gradient(ellipse at 15% 10%, rgba(120, 70, 20, .35), transparent 40%),
    radial-gradient(ellipse at 88% 85%, rgba(120, 70, 20, .38), transparent 44%),
    linear-gradient(90deg, #c9a46a, #e3c896 10%, #ecd6a8 50%, #e0c48f 90%, #c29c60);
}
.santa-list[data-scroll="antique"] .roll, .santa-list[data-scroll="antique"] .rod {
  background:
    linear-gradient(rgba(40, 0, 0, .7), rgba(40, 0, 0, 0) 24%, rgba(255, 220, 210, .6) 40%, rgba(255, 200, 190, 0) 56%, rgba(40, 0, 0, .25) 76%, rgba(30, 0, 0, .85)),
    repeating-linear-gradient(rgba(60, 0, 0, 0) 0 9px, rgba(60, 0, 0, .45) 9px 11px, rgba(255, 200, 180, .35) 11px 12px, rgba(60, 0, 0, 0) 12px 16px),
    linear-gradient(#7a1219, #c42a32 45%, #5e0c10);
  background-position: 0 0, 0 var(--turn, 0px), 0 0;
}
.santa-list[data-scroll="painted"] .sheet {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 253, 245, .95), rgba(255, 253, 245, 0) 65%),
    linear-gradient(90deg, #eadbb8, #faf1dc 10%, #fdf7e8 50%, #f7ecd2 90%, #e6d4ae);
}
.santa-list[data-scroll="painted"] .roll, .santa-list[data-scroll="painted"] .rod {
  background:
    linear-gradient(rgba(40, 20, 5, .7), rgba(40, 20, 5, 0) 24%, rgba(255, 235, 200, .55) 40%, rgba(255, 230, 190, 0) 56%, rgba(40, 20, 5, .25) 76%, rgba(30, 15, 0, .85)),
    repeating-linear-gradient(rgba(60, 30, 5, 0) 0 9px, rgba(60, 30, 5, .4) 9px 11px, rgba(255, 220, 170, .3) 11px 12px, rgba(60, 30, 5, 0) 12px 16px),
    linear-gradient(#5a3415, #a2703f 45%, #4a2a10);
  background-position: 0 0, 0 var(--turn, 0px), 0 0;
}

/* ---- Stream view: the whole 1080×1920 frame is scaled to fit any window (santa-list.js), backdrop as Santa picked ---- */
.stream-frame[data-bg="cabin"] { background: #1b1410 url('/img/backdrop-cabin-1080.jpg') center / cover no-repeat; }
.stream-frame[data-bg="night"] {
  background:
    radial-gradient(2px 2px at 30px 40px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 120px 90px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 200px 20px, #fff6cc 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75px 150px, #dfe8ff 50%, transparent 51%),
    radial-gradient(2px 2px at 170px 170px, #fff 50%, transparent 51%),
    radial-gradient(ellipse 70% 22% at 30% 16%, rgba(80, 210, 160, .28), transparent 70%),
    radial-gradient(ellipse 60% 18% at 75% 26%, rgba(130, 150, 255, .22), transparent 70%),
    radial-gradient(ellipse 140% 22% at 50% 106%, #f4f8ff 0 45%, #cfdbef 55%, transparent 56%),
    linear-gradient(#071226, #10264a 55%, #1d3a66);
  background-size: 230px 200px, 230px 200px, 230px 200px, 230px 200px, 230px 200px, auto, auto, auto, auto;
}
.stream-frame[data-bg="snowfall"] {
  background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255, 210, 150, .25), transparent 70%), linear-gradient(160deg, #5c0d14, #7a1219 45%, #1d4a35);
}
.stream-frame[data-bg="snowfall"]::before {
  content: ''; position: absolute; inset: -100% 0 0; pointer-events: none;
  background-image: radial-gradient(5px 5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(3px 3px at 90px 120px, rgba(255, 255, 255, .85) 50%, transparent 51%),
    radial-gradient(7px 7px at 150px 60px, rgba(255, 255, 255, .9) 50%, transparent 51%), radial-gradient(4px 4px at 210px 170px, #fff 50%, transparent 51%);
  background-size: 240px 200px;
}
@media (prefers-reduced-motion: no-preference) { .stream-frame[data-bg="snowfall"]::before { animation: sl-snow 18s linear infinite; } }
@keyframes sl-snow { to { transform: translateY(50%); } }
/* Prize moment banner (stream only), above the title plaque. */
.sl-prize {
  position: absolute; left: 90px; right: 90px; top: 18px; z-index: 5; text-align: center; color: #fff; background: rgba(29, 74, 53, .96);
  border: 5px solid #e2b64a; border-radius: 24px; padding: 10px 20px; font: 700 34px/1.2 var(--serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.sl-prize .big { display: block; font-size: 1.25em; color: #ffe6a3; }
.sl-prize.won { background: rgba(122, 18, 25, .97); }
.stream-frame .sl-footer { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0; text-align: center; font: 700 32px/1.2 var(--serif); color: #fff; text-shadow: 0 2px 8px #000, 0 0 2px #000; }
html.stream .music-btn { bottom: .6rem; left: .6rem; }
html.stream.clean .music-btn { display: none !important; }
html.stream .stream-frame { will-change: transform; }
