/* ================= Emoji Decoder =================
   A cinema marquee: big emoji tiles drop in one at a time with a bounce, chalk blanks under them fill with letters
   as the clock runs, the answer flips up gold. */
.dc { 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);
    background: radial-gradient(ellipse 60% 55% at 40% 40%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%); }
.dc i, .dc b, .dc em { font-style: normal; }
.dc-marquee { display: flex; justify-content: center; gap: 1.2vw; flex-wrap: wrap; }
.dc-tile { display: grid; place-items: center; width: 16vh; height: 16vh; border-radius: 3vh; font-size: 11vh; line-height: 1; background: linear-gradient(180deg, #fffdf6, #efe6d2); box-shadow: 0 0 0 .5vh var(--gold), 0 2vh 5vh rgba(0, 0, 0, .6), inset 0 -1vh 0 rgba(0, 0, 0, .12);
    animation: dc-drop .6s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--k) * .18s); }
@keyframes dc-drop { 0% { transform: translateY(-40vh) rotate(-10deg); opacity: 0; } 70% { transform: translateY(2vh) rotate(2deg); opacity: 1; } 100% { transform: none; } }
/* the answer: a row of letter cells per word; a long phrase breaks between words, never inside one */
.dc-blanks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.8vh 1.25em; max-width: 100%; font-weight: 900; font-size: 5.6vh; line-height: 1; color: #fff;
    text-shadow: 0 .5vh 0 rgba(0, 0, 0, .5), 0 0 3vh color-mix(in srgb, var(--gold) 50%, transparent); transition: color .4s; }
.dc-blanks.lg { font-size: 4.6vh; } .dc-blanks.xl { font-size: 3.8vh; }
.dc-w { display: inline-flex; gap: .22em; white-space: nowrap; }
.dc-w i { display: grid; place-items: end center; min-width: .8em; height: 1.2em; padding-bottom: .1em; box-sizing: border-box; border-bottom: .12em solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: .04em; }
.dc-w i.b { border-bottom-color: rgba(255, 255, 255, .9); box-shadow: 0 .3vh 0 rgba(0, 0, 0, .45); }
.dc-blanks.got { color: var(--gold); animation: dc-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.dc-blanks.got .dc-w i { border-bottom-color: var(--gold); }
@keyframes dc-pop { from { transform: scale(1.4); opacity: 0; } }
/* game over: the champion's name, big and gold, wrapping if it's long */
.dc-blanks.dc-champ { display: block; max-width: 100%; font-size: 7vh; line-height: 1.1; text-align: center; overflow-wrap: anywhere; text-wrap: balance; }
.dc-hint { text-align: center; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.4vh; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dc-got { max-width: 100%; text-align: center; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.6vh; line-height: 1.25; color: #e8e0ff; text-wrap: balance; }
/* the side: scores on top, guesses landing as notes under them */
.dc-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.6vh; min-height: 0; min-width: 0; padding-bottom: 5vh; }
.dc-scores { display: grid; gap: .6vh; padding: 1.2vh .9vw 1.4vh; border-radius: 1.8vh; background: rgba(10, 8, 30, .6); box-shadow: inset 0 0 0 .2vh rgba(255, 216, 74, .28); }
.dc-scores h4 { margin: 0 0 .3vh; font-size: 2.3vh; line-height: 1.2; color: var(--gold); }
.dc-scores > div { display: grid; grid-template-columns: 3.2vh minmax(0, 1fr) auto; gap: .7vw; align-items: center; padding: .6vh .8vw; border-radius: 1vh; font-weight: 800; font-size: 2.1vh; line-height: 1.15; background: rgba(0, 0, 0, .45); }
.dc-scores > div i { text-align: center; font-size: 2vh; color: #cfc4e8; }
.dc-scores span { min-width: 0; overflow-wrap: anywhere; color: #fff; } .dc-scores em { color: var(--gold); font-variant-numeric: tabular-nums; }
.dc-scores p { margin: 0; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: 2vh; color: #cfc4e8; }
.dc-feed { position: relative; display: grid; grid-auto-rows: max-content; gap: 1vh; align-content: start; min-height: 0; overflow: hidden; padding: .6vh .5vw; }
/* a long guess shows its first two lines; the note's edge is a transparent border, so the clip lands on a line boundary */
.dc-feed div { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 0; border: .9vh solid transparent; border-width: .9vh 1vw; border-radius: .4vh; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: 2.1vh; line-height: 1.25; overflow-wrap: anywhere; color: #2a2000; background: #ffe9a8; box-shadow: 0 .6vh 1.2vh rgba(0, 0, 0, .4); transform: rotate(var(--r, -1deg)); animation: dc-note .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.dc-feed div:nth-child(2n) { --r: 1deg; background: #ffd6d6; } .dc-feed div:nth-child(3n) { --r: -.6deg; background: #d6f0ff; }
.dc-feed div.hit { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--ecto) 80%, #fff), var(--ecto)); }
.dc-feed b { font-family: var(--display); font-weight: 900; }
@keyframes dc-note { from { transform: translateY(-2vh) rotate(var(--r, -1deg)) scale(.8); opacity: 0; } }
/* waiting: the sign, a demo board that plays rounds, how it works, who's in, and the QR panel */
.dc-wait { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2vw; align-items: center; min-height: 0; }
.dc-wait .wt-qr { z-index: 50; }
.dc-wmain { display: grid; justify-items: center; align-content: center; gap: 2.2vh; min-height: 0; min-width: 0; }
.dc-sign { display: flex; align-items: center; justify-content: center; gap: 1.4vw; max-width: 100%; }
.dc-sign span { flex: none; font-size: 7.4vh; line-height: 1; animation: dc-wiggle 2.4s ease-in-out infinite alternate; }
@keyframes dc-wiggle { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-.6vh); } }
.dc-sign b { min-width: 0; font-weight: 900; font-size: 7.6vh; line-height: 1.05; text-align: center; color: #fff; text-shadow: 0 .8vh 0 rgba(0, 0, 0, .5), 0 0 5vh color-mix(in srgb, var(--gold) 50%, transparent); }
.dc-demo { display: grid; grid-template-columns: minmax(0, 1fr) 30vh; gap: 1.6vw; width: min(100%, 120vh); height: 38vh; padding: 1.8vh 1.4vw; box-sizing: border-box; border-radius: 2.4vh;
    background: rgba(10, 8, 30, .55); box-shadow: inset 0 0 0 .25vh rgba(255, 216, 74, .35), 0 2vh 5vh rgba(0, 0, 0, .5); }
.dc-demo .dc-stage { display: grid; align-content: center; justify-items: center; gap: 1.4vh; min-width: 0; min-height: 0; }
.dc-demo .dc-tile { width: 11vh; height: 11vh; border-radius: 2.2vh; font-size: 7.4vh; }
.dc-demo .dc-blanks { font-size: 3.8vh; gap: 1.2vh 1.1em; } .dc-demo .dc-blanks.lg { font-size: 3.4vh; } .dc-demo .dc-blanks.xl { font-size: 3vh; }
.dc-demo .dc-hint, .dc-demo .dc-got { font-size: 2.1vh; }
.dc-demo .dc-side { padding-bottom: 0; gap: 1vh; }
.dc-demo .dc-scores { gap: .4vh; padding: 1vh .7vw; }
.dc-demo .dc-scores h4 { font-size: 1.9vh; }
.dc-demo .dc-scores > div { padding: .35vh .6vw; font-size: 1.7vh; }
.dc-demo .dc-feed { gap: .7vh; }
.dc-demo .dc-feed div { border-width: .6vh .7vw; font-size: 1.7vh; }
.dc-how { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vh 1vw; width: min(100%, 120vh); }
.dc-how span { padding: .9vh 1.3vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.1vh; line-height: 1.2; color: #fff; background: rgba(10, 8, 30, .7); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .12); }
.dc-roster { max-width: 100%; padding: .9vh 2.2vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.4vh; line-height: 1.2; text-align: center; color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
.dc-roster b { font-family: var(--display); font-weight: 900; }
/* playing */
.dc-play { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.6vh; min-height: 0; }
.dc-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2vw; min-width: 0; }
/* the marquee sign: room above and below the letters for the bulb rows, so the bulbs frame the title instead of crossing it */
.dc .dc-top .wg-title { max-width: 100%; min-width: 0; gap: 1vw; padding: 2.9vh 2vw 3vh 1.5vw; }
.dc .dc-top .wg-title span { flex: none; font-size: 4.6vh; line-height: 1; }
.dc .dc-top .wg-title b { min-width: 0; font-size: 4.4vh; line-height: 1; white-space: nowrap; }
.dc-phase { justify-self: center; max-width: 100%; padding: 1vh 2.4vw; border-radius: 99px; font-weight: 900; font-size: 3.4vh; line-height: 1.15; text-align: center; color: #fff; background: rgba(10, 8, 30, .75); box-shadow: 0 0 0 .3vh var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.dc-clock { display: grid; justify-items: center; width: 11vh; height: 11vh; align-content: center; border-radius: 50%; background: rgba(10, 8, 30, .8); box-shadow: 0 0 0 .4vh var(--gold); }
.dc-clock b { font-weight: 900; font-size: 5vh; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; } .dc-clock small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.5vh; color: var(--gold); }
.dc-clock.low { box-shadow: 0 0 0 .4vh var(--blood), 0 0 4vh var(--blood); animation: dc-tick .5s ease-in-out infinite alternate; }
@keyframes dc-tick { to { transform: scale(1.08); } }
.dc-body { display: grid; grid-template-columns: minmax(0, 1fr) 40vh; gap: 2.4vw; min-height: 0; }
.dc-stage { display: grid; align-content: center; justify-items: center; gap: 2.6vh; min-height: 0; min-width: 0; }
.dc.is-done .dc-feed { display: none; }
@media (prefers-reduced-motion: reduce) { .dc *, .dcp * { animation: none !important; } }
/* the stage lighting for this game is a warm marquee spill from above; no bulb rows running along the screen edges */
.dx-spots[data-fx=marquee] .mq.b { display: none; }
.dx-spots[data-fx=marquee] .mq.t { top: 12vh; height: 60vh; background: radial-gradient(ellipse 55% 70% at 50% 0, rgba(255, 196, 80, .16), transparent 70%); filter: none; animation: none; }

/* ================= phone ================= */
.dcp { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.dcp > * { min-width: 0; }
.dcp i, .dcp b, .dcp em { font-style: normal; }
.dcp-head { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.dcp-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, var(--violet), #2a1f48); }
.dcp-head small { display: block; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted, #a7a2b0); }
.dcp-head > b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold); }
.dcp-big { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.15; margin-bottom: .3rem; overflow-wrap: anywhere; }
.dcp-in, .dcp-note { text-align: center; } .dcp-in { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ecto) 55%, transparent); }
.dcp-note p { margin: 0; font-weight: 800; }
.dcp-marquee { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.dcp-marquee .dc-tile { width: 4.2rem; height: 4.2rem; border-radius: 14px; font-size: 2.6rem; box-shadow: 0 0 0 3px var(--gold), 0 6px 16px rgba(0, 0, 0, .5); animation-delay: calc(var(--k) * .12s); }
.dcp-hint { text-align: center; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dcp-blanks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .7rem 1em; font-family: var(--display); font-weight: 900; font-size: 1.45rem; line-height: 1; color: #fff; }
.dcp-blanks.lg { font-size: 1.25rem; } .dcp-blanks.xl { font-size: 1.05rem; }
.dcp-blanks.got { color: var(--gold); } .dcp-blanks.got .dc-w i { border-bottom-color: var(--gold); }
.dcp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; } .dcp-form input { font-size: 16px; min-width: 0; }
.dcp-stat { margin: 0; text-align: center; }
.dcp-turn { padding: .75rem .9rem; border-radius: 12px; font-weight: 900; text-align: center; } .dcp-turn.got { color: #fff; background: color-mix(in srgb, var(--ecto) 35%, #0b0b10); box-shadow: inset 0 0 0 2px var(--ecto); font-family: var(--display); font-size: 1.15rem; }
.dcp-result { display: grid; justify-items: center; gap: .3rem; padding: 1.2rem 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); }
.dcp-result span { color: var(--gold); font-weight: 800; } .dcp-result small { color: var(--muted, #a7a2b0); font-weight: 700; }
/* the phone preshow motif */
.pp-decoder { display: grid; place-items: center; }
.dc-mini { display: flex; gap: .5rem; } .dc-mini span { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 12px; font-size: 2.2rem; background: linear-gradient(180deg, #fffdf6, #efe6d2); box-shadow: 0 0 0 3px var(--gold); animation: pp-drop 4s cubic-bezier(.2, 1.5, .4, 1) infinite; }
.dc-mini span:nth-child(2) { animation-delay: .15s; } .dc-mini span:nth-child(3) { animation-delay: .3s; }
@keyframes pp-drop { 0% { transform: translateY(-60px); opacity: 0; } 15%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.dc-demo .dc-scores > div { font-size: 2vh; }
.dc-demo .dc-feed div { font-size: 2vh; }
.dc-demo .dc-scores h4 { font-size: 2.2vh; }
.dc-demo .dc-hint, .dc-demo .dc-got { font-size: 2.4vh; }
.dc-how span { font-size: 2.5vh; }
