/* ================= Guess Who Said It =================
   A detective's corkboard: the prompt pinned at the top on an index card, the answer on a big taped sticky note,
   the suspects in a lineup of mugshot cards. Guesses pile onto faces as counts; the reveal swings a red string to
   the author and stamps the verdict; points pin under everyone who scored. Between rounds every answer is pinned up
   with its author, and the game ends on a final scoreboard. */
.sd { position: relative; flex: 1; margin: -1.5vh -3vw -2.5vh; padding: 1.5vh 3vw 2.5vh; min-height: 0; display: grid; overflow: hidden; font-family: var(--display); }
.sd i, .sd b, .sd em, .sd u, .sd strong { font-style: normal; text-decoration: none; }

/* ---------- the board ---------- */
.sd-board { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center; gap: 1.6vh; min-width: 0; min-height: 0; padding: 2.6vh 2vw 1.8vh; border-radius: 2vh;
    background: radial-gradient(circle at 22% 30%, rgba(255, 236, 200, .07) 0 .22vh, transparent .32vh) 0 0 / 2.9vh 2.6vh, radial-gradient(circle at 68% 62%, rgba(40, 18, 4, .2) 0 .26vh, transparent .36vh) 0 0 / 2.2vh 3.1vh, radial-gradient(circle at 30% 25%, #a8743f, #7a4e26 72%);
    box-shadow: inset 0 0 0 1.1vh #4a2e14, inset 0 0 0 1.4vh #6b4522, inset 0 0 8vh rgba(0, 0, 0, .5), 0 2vh 6vh rgba(0, 0, 0, .6); }
.sd-pin { position: relative; z-index: 2; max-width: 92%; padding: 1.8vh 2.6vw 1.6vh; color: #150c2c; font-weight: 900; font-size: 3.6vh; line-height: 1.15; text-align: center; text-wrap: balance; transform: rotate(-1deg); box-shadow: 0 1vh 3vh rgba(0, 0, 0, .5);
    background: linear-gradient(180deg, transparent 0 1.1vh, rgba(209, 32, 42, .4) 1.1vh 1.3vh, transparent 1.3vh), #fffdf6; }
.sd-pin::before { content: ""; position: absolute; left: 50%; top: -1.3vh; width: 2.4vh; height: 2.4vh; margin-left: -1.2vh; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b6b, #a00); box-shadow: 0 .4vh .8vh rgba(0, 0, 0, .5); }
.sd-blank { display: inline-block; width: 9vw; max-width: 14vh; height: .9em; margin: 0 .08em 0 .3em; vertical-align: baseline; border-bottom: .55vh solid var(--gold); }
.sd-stage { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; min-height: 0; }

/* the sticky note */
.sd-note { position: relative; z-index: 2; display: grid; justify-items: center; align-content: center; gap: max(.5vh, calc(var(--nf, 4.6vh) * .22)); width: max-content; max-width: min(64vw, 94%); min-width: min(46vh, 94%); min-height: calc(var(--nf, 4.6vh) * 3);
    padding: max(1.6vh, calc(var(--nf, 4.6vh) * .7)) max(2vw, calc(var(--nf, 4.6vh) * .9)) max(1.4vh, calc(var(--nf, 4.6vh) * .6)); text-align: center; color: #3a2a00;
    background: linear-gradient(180deg, #fff3a0, #ffe36b); box-shadow: 0 1.6vh 4vh rgba(0, 0, 0, .5), inset 0 -1vh 2vh rgba(170, 120, 0, .12); transform: rotate(1.2deg) scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), opacity .3s; }
.sd-note::before { content: ""; position: absolute; left: 50%; top: -1.7vh; width: 15vh; height: 3.6vh; margin-left: -7.5vh; background: rgba(255, 255, 255, .5); box-shadow: 0 .2vh .6vh rgba(0, 0, 0, .18); transform: rotate(-3deg); }
.sd-note.on { opacity: 1; transform: rotate(1.2deg); }
.sd-ntext { max-width: max(58vh, calc(var(--nf, 4.6vh) * 15)); font-weight: 900; font-size: var(--nf, 4.6vh); line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.sd-nsub { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: max(1.7vh, calc(var(--nf, 4.6vh) * .55)); color: #8a5a00; letter-spacing: .02em; }
.sd-nsub:empty { display: none; }
.sd-note.write { --nf: 4.4vh; gap: 1.4vh; }
.sd-note.write .sd-ntext::before { content: "✍️"; display: block; margin-bottom: .6vh; font-size: calc(var(--nf, 4.4vh) * 1.55); line-height: 1; animation: sd-scribble .5s ease-in-out infinite alternate; }
@keyframes sd-scribble { from { transform: rotate(-6deg) translateX(-.6vh); } to { transform: rotate(5deg) translateX(.6vh); } }
.sd-note.write .sd-nsub { padding: .6vh 2vw; border-radius: 99px; font-family: var(--display); font-weight: 900; font-size: calc(var(--nf, 4.4vh) * .78); color: #3a2a00; background: rgba(120, 80, 0, .14); }
.sd-note.told { padding-bottom: 2.4vh; }
.sd-verdict { position: relative; justify-self: end; max-width: 46vh; margin: calc(var(--nf, 4.6vh) * .45) -1.6vw 0 0; padding: .8vh 1.4vw; border: .6vh solid #c8102e; border-radius: 1.2vh; font-family: var(--display); font-weight: 900; font-size: calc(var(--nf, 4.6vh) * .9); line-height: 1.05; color: #c8102e; text-align: center;
    background: rgba(255, 250, 236, .94); box-shadow: 0 .8vh 2vh rgba(0, 0, 0, .35); transform: rotate(-4deg); animation: sd-stamp .45s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
.sd-verdict span { white-space: nowrap; }
@keyframes sd-stamp { from { opacity: 0; transform: rotate(-4deg) scale(2.6); } }

/* the lineup of suspects */
.sd-lineup { --fw: 12vh; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 4.6vh 1.1vw; max-width: 100%; padding: 1.2vh 0 4.4vh; }
.sd-face { position: relative; z-index: 2; display: grid; justify-items: center; gap: .5vh; width: var(--fw); padding: calc(var(--fw) * .07) calc(var(--fw) * .07) calc(var(--fw) * .06); background: #fffdf6; box-shadow: 0 .8vh 2vh rgba(0, 0, 0, .45);
    transform: rotate(var(--r, 0deg)); transition: transform .3s, box-shadow .3s, filter .3s; animation: sd-deal .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--k) * .06s); }
.sd-face:nth-child(6n+1) { --r: -3deg; } .sd-face:nth-child(6n+2) { --r: 2deg; } .sd-face:nth-child(6n+3) { --r: -1.5deg; } .sd-face:nth-child(6n+4) { --r: 2.5deg; } .sd-face:nth-child(6n+5) { --r: -2deg; } .sd-face:nth-child(6n) { --r: 1deg; }
@keyframes sd-deal { from { transform: translateY(-4vh) rotate(-8deg); opacity: 0; } }
.sd-face .sigil { width: 100%; height: auto; aspect-ratio: 1; border-radius: .6vh; font-size: calc(var(--fw) * .36); }
/* a big room: shorter mugshots so two rows still leave the note room */
.sd-lineup.many .sd-face .sigil { aspect-ratio: 5 / 3; font-size: calc(var(--fw) * .3); }
.sd-face b { display: grid; place-items: center; width: 100%; min-height: calc(var(--fw) * .3); font-weight: 900; line-height: 1.08; color: #150c2c; text-align: center; overflow-wrap: normal; }
.sd-face em, .sd-face .sd-stamp { position: absolute; right: calc(var(--fw) * -.09); top: calc(var(--fw) * -.09); min-width: calc(var(--fw) * .27); height: calc(var(--fw) * .27); display: grid; place-items: center; padding: 0 .5vh; border-radius: 99px;
    font-family: var(--display); font-weight: 900; font-size: calc(var(--fw) * .16); color: #fff; box-shadow: 0 0 0 .3vh #fff, 0 .4vh 1vh rgba(0, 0, 0, .4); opacity: 0; transform: scale(.4); transition: all .3s cubic-bezier(.2, 1.6, .4, 1); }
.sd-face em { background: var(--blood, #c8102e); }
.sd-face .sd-stamp { background: #1f9d55; }
.sd-face.hit em, .sd-face.in .sd-stamp { opacity: 1; transform: none; }
.sd-face.hit { transform: rotate(0) translateY(-.6vh); }
.sd-face.out { filter: saturate(.35) brightness(.78); }
.sd-face.out .sd-stamp { opacity: 1; transform: none; background: #5b5470; animation: sd-typing 1.2s ease-in-out infinite; }
.sd-face.out .sd-stamp::after { content: "…"; margin-top: -.6em; }
@keyframes sd-typing { 50% { transform: translateY(-.4vh); } }
.sd-face.author { z-index: 3; transform: scale(1.1) rotate(0); box-shadow: 0 0 0 .5vh var(--gold), 0 0 5vh color-mix(in srgb, var(--gold) 70%, transparent), 0 1vh 3vh rgba(0, 0, 0, .5); }
.sd-pts { position: absolute; left: 50%; top: 100%; margin-top: .5vh; padding: .3vh .9vh; border-radius: 99px; font-family: var(--display); font-weight: 900; font-size: calc(var(--fw) * .15); white-space: nowrap; color: #06210f; background: #4be08a; box-shadow: 0 .4vh 1vh rgba(0, 0, 0, .45); transform: translateX(-50%); animation: sd-pts .5s cubic-bezier(.2, 1.6, .4, 1) .35s both; }
.sd-pts:empty { display: none; }
.sd-face.author .sd-pts { color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
@keyframes sd-pts { from { opacity: 0; transform: translate(-50%, 1.5vh) scale(.5); } }
.sd-string { position: absolute; z-index: 1; height: .5vh; transform-origin: 0 50%; border-radius: 99px; background: #d1202a; box-shadow: 0 .2vh .6vh rgba(0, 0, 0, .5); pointer-events: none; animation: sd-string .5s ease-out; }
@keyframes sd-string { from { transform: rotate(0) scaleX(0); } }
.sd-foot { min-height: 3vh; max-width: 100%; text-align: center; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.5vh; line-height: 1.2; color: #ffe9b0; text-shadow: 0 .3vh 0 rgba(0, 0, 0, .5); }

/* between rounds: every answer pinned up with its author */
.sd-board.wide .sd-lineup { display: none; }
.sd-recap { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: max(1.6vh, calc(var(--sb, 3vh) * .9)) 1.4vw; width: 100%; max-width: 160vh; align-self: center; padding: 1.4vh .6vw; }
.sd-slip { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: calc(var(--sb, 3vh) * .35); min-width: 0; padding: max(1.4vh, calc(var(--sb, 3vh) * .7)) .8vw max(.8vh, calc(var(--sb, 3vh) * .4)); color: #3a2a00; background: linear-gradient(180deg, #fff3a0, #ffe36b); box-shadow: 0 1vh 2.4vh rgba(0, 0, 0, .45);
    transform: rotate(var(--r, 0deg)); animation: sd-pinup .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--k) * .12s); }
.sd-slip:nth-child(4n+2) { --r: 1.5deg; background: linear-gradient(180deg, #ffd6e4, #ffb8cf); } .sd-slip:nth-child(4n+3) { --r: -1deg; background: linear-gradient(180deg, #d4f0ff, #a9dcf7); } .sd-slip:nth-child(4n) { --r: 2deg; background: linear-gradient(180deg, #d9f7c8, #b5e89c); } .sd-slip:nth-child(4n+1) { --r: -1.8deg; }
.sd-slip::before { content: ""; position: absolute; left: 50%; top: -1vh; width: 2vh; height: 2vh; margin-left: -1vh; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b6b, #a00); box-shadow: 0 .3vh .6vh rgba(0, 0, 0, .5); }
.sd-slip span { align-self: center; font-weight: 900; font-size: calc(var(--sb, 3vh) * var(--sm, 1)); line-height: 1.14; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.sd-slip b { justify-self: center; max-width: 100%; padding: .5vh 1vw; border-radius: .7vh; font-weight: 900; font-size: calc(var(--sb, 3vh) * .8); line-height: 1.1; text-align: center; color: var(--gold); background: #150c2c; }
@keyframes sd-pinup { from { opacity: 0; transform: translateY(-3vh) rotate(-10deg) scale(.8); } }

/* the end: the top sleuth and the final scoreboard (everything scales with --u so it always fits the board) */
.sd-final { --u: 1vh; display: grid; grid-template-columns: minmax(0, calc(var(--u) * 42)) minmax(0, 1fr); gap: 3.4vw; align-items: center; width: 100%; max-width: 160vh; padding: 0 1vw; }
.sd-champ { position: relative; display: grid; justify-items: center; gap: calc(var(--u) * .8); padding: calc(var(--u) * 4) 2vw calc(var(--u) * 3.4); text-align: center; color: #3a2a00; background: linear-gradient(180deg, #fff6c8, #ffd84a); box-shadow: 0 0 0 .5vh #fff3b0, 0 0 6vh color-mix(in srgb, var(--gold) 60%, transparent), 0 2vh 4vh rgba(0, 0, 0, .5);
    transform: rotate(-2deg); animation: sd-pinup .7s cubic-bezier(.2, 1.5, .4, 1) both; }
.sd-champ::before { content: ""; position: absolute; left: 50%; top: -1.4vh; width: 2.8vh; height: 2.8vh; margin-left: -1.4vh; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b6b, #a00); box-shadow: 0 .4vh .8vh rgba(0, 0, 0, .5); }
.sd-trophy { font-size: calc(var(--u) * 10); line-height: 1; filter: drop-shadow(0 1vh 1.4vh rgba(0, 0, 0, .35)); animation: sd-bob 2.4s ease-in-out infinite; }
@keyframes sd-bob { 50% { transform: translateY(-1.2vh) rotate(-4deg); } }
.sd-champ small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: calc(var(--u) * 2.4); letter-spacing: .04em; color: #8a5a00; }
.sd-champ b { max-width: 100%; font-weight: 900; font-size: calc(var(--u) * 6); line-height: 1.04; color: #1a1000; text-wrap: balance; }
.sd-champ em { font-weight: 900; font-size: calc(var(--u) * 3.2); line-height: 1.15; color: #5a3a00; text-wrap: balance; }
.sd-champ i { margin-top: calc(var(--u) * .4); padding: calc(var(--u) * .6) 1.6vw; border-radius: 99px; font-weight: 900; font-size: calc(var(--u) * 2.6); color: #fff3b0; background: #150c2c; }
.sd-champ.none { background: linear-gradient(180deg, #fffdf6, #e8dcc0); box-shadow: 0 2vh 4vh rgba(0, 0, 0, .5); }
.sd-rank { display: grid; gap: calc(var(--u) * 1); margin: 0; padding: 0; list-style: none; min-width: 0; }
.sd-rank li { display: grid; grid-template-columns: calc(var(--rf, 3vh) * 1.7) minmax(0, 1fr) minmax(6vh, 20vh) auto; align-items: center; gap: 1.2vw; padding: calc(var(--rf, 3vh) * .32) 1.4vw; border-radius: 1.2vh; font-size: var(--rf, 3vh); background: rgba(15, 8, 4, .6); box-shadow: inset 0 0 0 .2vh rgba(255, 216, 74, .18);
    animation: sd-rankin .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--k) * .09s + .4s); }
.sd-rank li:first-child { background: linear-gradient(90deg, rgba(120, 84, 10, .75), rgba(15, 8, 4, .6)); box-shadow: inset 0 0 0 .3vh var(--gold); }
@keyframes sd-rankin { from { opacity: 0; transform: translateX(4vw); } }
.sd-rank i { font-weight: 900; font-size: 1em; text-align: center; color: #cfc6e6; }
.sd-rank b { min-width: 0; font-weight: 900; line-height: 1.08; color: #fff; }
.sd-bar { height: calc(var(--rf, 3vh) * .4); border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sd-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb340, var(--gold)); transform-origin: 0 50%; animation: sd-bar 1s ease-out both; animation-delay: inherit; }
@keyframes sd-bar { from { transform: scaleX(0); } }
.sd-rank em { font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- waiting: the demo board beside the QR code ---------- */
.sd-wait { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.4vw; align-items: center; min-height: 0; }
.sd-wait .wt-qr { z-index: 50; }
.sd-wmain { display: grid; justify-items: center; align-content: center; gap: 1.6vh; min-width: 0; min-height: 0; }
.sd-sign { display: flex; align-items: center; gap: 1.2vw; }
.sd-sign span { font-size: 6.5vh; line-height: 1; animation: sd-peek 2.6s ease-in-out infinite alternate; }
@keyframes sd-peek { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-.6vh); } }
.sd-sign b { font-weight: 900; font-size: 6.4vh; line-height: 1; color: #fff; text-shadow: 0 .8vh 0 rgba(0, 0, 0, .5), 0 0 5vh color-mix(in srgb, var(--gold) 45%, transparent); }
.sd-demo { width: 100%; max-width: 124vh; height: 44vh; }
.sd-demo .sd-board { height: 100%; gap: 1.2vh; padding: 2vh 1.6vw 1.4vh; }
.sd-demo .sd-pin { font-size: 2.7vh; padding: 1.2vh 1.8vw 1vh; }
.sd-demo .sd-note { min-width: min(30vh, 94%); }
.sd-demo .sd-note::before { width: 10vh; height: 2.6vh; margin-left: -5vh; top: -1.2vh; }
.sd-demo .sd-note.write { --nf: 2.8vh; }
.sd-demo .sd-note.write .sd-ntext::before { margin-bottom: .2vh; }
.sd-demo .sd-nsub { font-size: 1.9vh; }
.sd-demo .sd-note.told { padding-bottom: 1.4vh; }
.sd-demo .sd-verdict { border-width: .45vh; margin-top: .2vh; padding: .5vh 1vw; }
.sd-demo .sd-foot { font-size: 1.9vh; min-height: 2.4vh; }
.sd-demo .sd-lineup { gap: 3vh .9vw; padding: .6vh 0 2.6vh; }
.sd-how { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vh 1vw; max-width: 124vh; }
.sd-how span { padding: .9vh 1.4vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.1vh; color: #fff; background: rgba(10, 8, 30, .72); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .14); }
.sd-roster { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4vh 1vw; padding: 1vh 2.4vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.5vh; color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); box-shadow: 0 0 3vh color-mix(in srgb, var(--gold) 45%, transparent); }
.sd-roster b { font-family: var(--display); font-weight: 900; }
.sd-roster span::before { content: "·"; margin-right: .8vw; }

/* ---------- playing ---------- */
.sd-play { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.6vh; min-width: 0; min-height: 0; }
.sd-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2vw; }
.sd-top .wg-title span { font-size: 5.4vh; } .sd-top .wg-title b { font-size: 4.2vh; }
.sd-phase { justify-self: center; max-width: 100%; padding: 1vh 2.4vw; border-radius: 99px; font-weight: 900; font-size: 3vh; line-height: 1.15; text-align: center; color: #fff; background: rgba(10, 8, 30, .78); box-shadow: 0 0 0 .3vh var(--gold); letter-spacing: .02em; }
.sd-clock { display: grid; justify-items: center; align-content: center; width: 11vh; height: 11vh; border-radius: 50%; background: rgba(10, 8, 30, .8); box-shadow: 0 0 0 .4vh var(--gold); }
.sd-clock b { font-weight: 900; font-size: 5vh; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; } .sd-clock small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.5vh; color: var(--gold); }
.sd-clock.low { box-shadow: 0 0 0 .4vh var(--blood), 0 0 4vh var(--blood); animation: sd-tick .5s ease-in-out infinite alternate; }
@keyframes sd-tick { to { transform: scale(1.08); } }
.sd-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6vw; min-width: 0; min-height: 0; }
.sd-body.final { grid-template-columns: minmax(0, 1fr); }
.sd-body.final .sd-scores { display: none; }
.sd-scores { width: 30vh; display: grid; gap: .7vh; align-content: start; align-self: start; padding: 1.6vh 1.2vh; border-radius: 1.8vh; background: rgba(10, 8, 30, .6); box-shadow: inset 0 0 0 .25vh rgba(255, 216, 74, .3), 0 1.4vh 3vh rgba(0, 0, 0, .4); }
.sd-scores h4 { margin: 0 0 .3vh; font-size: 2.6vh; text-align: center; color: var(--gold); }
.sd-scores div { position: relative; display: grid; grid-template-columns: 3.2vh minmax(0, 1fr) auto; gap: .7vw; align-items: center; padding: .7vh .7vw; border-radius: 1vh; font-weight: 800; background: rgba(0, 0, 0, .45); }
.sd-scores i { font-weight: 900; font-size: 2.1vh; text-align: center; color: #cfc6e6; }
.sd-scores span { min-width: 0; line-height: 1.08; color: #fff; }
.sd-scores em { font-size: 2.1vh; color: var(--gold); font-variant-numeric: tabular-nums; }
.sd-scores div.up { animation: sd-up 1.4s ease-out; }
@keyframes sd-up { 0%, 30% { background: rgba(75, 224, 138, .45); } }
.sd-scores small { position: absolute; right: .4vw; top: -1.2vh; padding: .1vh .7vh; border-radius: 99px; font-weight: 900; font-size: 1.6vh; color: #06210f; background: #4be08a; animation: sd-delta 2.6s ease-out both; }
@keyframes sd-delta { 0% { opacity: 0; transform: translateY(1vh) scale(.6); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-1vh); } }
@media (prefers-reduced-motion: reduce) { .sd *, .sdp * { animation: none !important; } }

/* ================= phone ================= */
.sdp { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.sdp > * { min-width: 0; }
.sdp-head { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 900; font-size: 1.2rem; line-height: 1.1; }
.sdp-head .ic { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; background: linear-gradient(135deg, #9a6a3a, #4a2e14); }
.sdp-head small { display: block; margin-top: .15rem; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted, #a7a2b0); }
.sdp-head > b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold); }
.sdp-big { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.15; margin-bottom: .3rem; overflow-wrap: anywhere; }
.sdp-in { text-align: center; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ecto) 55%, transparent); }
.sdp-in p { margin: .2rem 0 0; line-height: 1.4; }
.sdp-note-line { margin-top: .6rem !important; padding: .5rem .7rem; border-radius: 10px; font-weight: 700; font-size: .9rem; color: #ffe2a8; background: rgba(255, 179, 64, .12); }
.sdp-join p { margin: 0 0 .9rem; line-height: 1.45; text-align: center; }
.sdp-prompt { position: relative; padding: 1rem .9rem .8rem; text-align: center; text-wrap: balance; font-family: var(--display); font-weight: 900; font-size: 1.15rem; line-height: 1.25; color: #150c2c; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transform: rotate(-.6deg);
    background: linear-gradient(180deg, transparent 0 7px, rgba(209, 32, 42, .4) 7px 8.5px, transparent 8.5px), #fffdf6; }
.sdp-prompt .sd-blank { width: 3.4rem; max-width: none; border-bottom-width: 3px; }
.sdp-note { padding: 1.1rem 1rem; text-align: center; text-wrap: balance; font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1.2; color: #3a2a00; background: linear-gradient(180deg, #fff3a0, #ffe36b); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); transform: rotate(1deg); overflow-wrap: anywhere; }
.sdp-turn { padding: .75rem .9rem; border-radius: 12px; font-weight: 900; text-align: center; line-height: 1.3; background: var(--panel2, #24242b); }
.sdp-turn.go { color: #140a00; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
.sdp-turn.got { color: #fff; background: color-mix(in srgb, var(--ecto) 35%, #0b0b10); box-shadow: inset 0 0 0 2px var(--ecto); }
.sdp-turn.miss { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.sdp-turn small { display: block; margin-top: .3rem; font-weight: 700; font-size: .9rem; color: #e6e0f2; }
.sdp-turn b { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; color: var(--gold); overflow-wrap: anywhere; }
.sdp-mine { display: block; overflow-wrap: anywhere; }
.sdp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; } .sdp-form input { font-size: 16px; min-width: 0; }
.sdp-count { margin: 0; text-align: center; font-weight: 700; color: var(--muted, #a7a2b0); }
.sdp-lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.sdp-lineup button { display: grid; justify-items: center; align-content: start; gap: .35rem; min-width: 0; padding: .55rem .35rem .5rem; border: 0; border-radius: 10px; font: inherit; color: #150c2c; background: #fffdf6; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sdp-lineup button:active { transform: scale(.96); }
.sdp-lineup .sigil { width: 3.2rem; height: 3.2rem; border-radius: 6px; font-size: 1.2rem; }
.sdp-lineup b { display: grid; place-items: center; width: 100%; min-height: 2.2em; font-family: var(--display); font-weight: 900; line-height: 1.1; text-align: center; }
.sdp-lineup button.on { background: #fff3a0; box-shadow: 0 0 0 3px var(--gold), 0 0 16px color-mix(in srgb, var(--gold) 60%, transparent); }
.sdp-recap { display: grid; gap: .45rem; }
.sdp-recap div { display: grid; gap: .15rem; padding: .55rem .75rem; border-radius: 10px; background: rgba(0, 0, 0, .35); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sdp-recap div.me { box-shadow: inset 0 0 0 2px var(--ecto); }
.sdp-recap b { font-family: var(--display); color: var(--gold); }
.sdp-result { display: grid; justify-items: center; gap: .35rem; padding: 1.3rem 1rem; border-radius: 16px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, #1a1030), #0a0612); box-shadow: 0 0 0 3px var(--gold); }
.sdp-result .sdp-kicker { font-weight: 800; letter-spacing: .04em; color: var(--gold); }
.sdp-result span { color: var(--gold); font-weight: 800; } .sdp-result small { color: #d9d2ea; font-weight: 700; }
.pp-said { display: grid; place-items: center; }
.sd-mini { display: flex; gap: .5rem; } .sd-mini i { display: grid; place-items: center; width: 2.8rem; height: 3.4rem; border-radius: 6px; font-style: normal; font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: #150c2c; background: #fffdf6; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); animation: pp-bob 2.4s ease-in-out infinite alternate; }
.sd-mini i.on { color: #3a2a00; background: linear-gradient(180deg, #fff3a0, #ffe36b); } .sd-mini i:nth-child(2) { animation-delay: .3s; } .sd-mini i:nth-child(3) { animation-delay: .6s; } .sd-mini i:nth-child(4) { animation-delay: .9s; }

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.sd-demo .sd-nsub { font-size: 2.1vh; }
.sd-demo .sd-foot { font-size: 2.2vh; }
.sd-how span { font-size: 2.5vh; }
