/* ==========================================================================
   LinkMe identity layer: motion tokens, Linky the host, the character cast,
   the brand wordmark, theatrical clue entrance and reveal choreography.
   ========================================================================== */
:root {
  --ease-bounce: cubic-bezier(.2, 1.6, .4, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --motion-pop: .45s var(--ease-bounce);
  --motion-slide: .4s var(--ease-out);
}

/* ---------- Drifting chain links in the background ---------- */
.chains { position: absolute; inset: 0; }
.chains svg { position: absolute; width: var(--s, 90px); opacity: .07; animation: chain-drift var(--t, 26s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes chain-drift {
  from { transform: translate(0, 0) rotate(var(--r0, -20deg)); }
  to { transform: translate(var(--tx, 40px), var(--ty, -60px)) rotate(var(--r1, 25deg)); }
}

/* ---------- Brand wordmark ---------- */
.brand {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .04em; margin: 0; padding: 0 .1em .18em;
  font-size: clamp(3.2rem, 14vw, 6.4rem); font-weight: 800; letter-spacing: -.035em; line-height: .9; user-select: none;
}
/* Ink outline + stacked extrude, so the letters read as chunky stickers on any background. */
.brand .bw {
  position: relative; z-index: 1; display: inline-flex; color: var(--paper);
  -webkit-text-stroke: .075em var(--ink); paint-order: stroke fill;
  text-shadow: .018em .022em 0 var(--pink), .036em .044em 0 var(--pink), .054em .066em 0 var(--pink),
    .07em .09em 0 var(--ink), .085em .105em 0 var(--ink), .1em .16em .1em rgba(10, 4, 26, .45);
}
.brand .bw2 {
  color: var(--sun);
  text-shadow: .018em .022em 0 var(--violet), .036em .044em 0 var(--violet), .054em .066em 0 var(--violet),
    .07em .09em 0 var(--ink), .085em .105em 0 var(--ink), .1em .16em .1em rgba(10, 4, 26, .45);
}
.brand .bw span { display: inline-block; animation: brand-in .6s var(--ease-bounce) both; animation-delay: calc(var(--i) * 60ms); }
.brand .bw span:nth-child(even) { transform: translateY(.03em) rotate(2deg); }
.brand .bw span:nth-child(odd) { transform: rotate(-2deg); }
.brand .bw span:hover { animation: brand-wobble .5s ease; }
.brand .bchain {
  position: relative; z-index: 2; width: 1.05em; display: inline-block; margin: 0 -.04em; align-self: center;
  animation: chain-swing 3.2s ease-in-out infinite; transform-origin: 50% 40%; filter: drop-shadow(.035em .05em 0 rgba(10, 4, 26, .55));
}
.brand .bchain svg { width: 100%; display: block; overflow: visible; }
.brand .bswoosh { position: absolute; z-index: 0; left: 12%; right: 10%; bottom: -.02em; width: 78%; height: .26em; overflow: visible; animation: swoosh-in .7s .45s var(--ease-bounce) both; transform-origin: left center; }
.brand .bspark { position: absolute; z-index: 3; width: .26em; height: .26em; color: var(--sun); animation: twinkle 2.4s ease-in-out infinite; }
.brand .bspark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand .bspark.k1 { left: -.12em; top: -.1em; }
.brand .bspark.k2 { right: -.06em; top: -.2em; width: .2em; height: .2em; color: var(--teal); animation-delay: -.8s; }
.brand .bspark.k3 { right: .9em; bottom: -.06em; width: .16em; height: .16em; color: var(--pink); animation-delay: -1.6s; }
.brand.sm { font-size: 1.45rem; letter-spacing: -.02em; padding: 0; }
.brand.sm .bw { -webkit-text-stroke-width: .09em; text-shadow: .05em .06em 0 var(--pink), .09em .11em 0 var(--ink); }
.brand.sm .bw2 { text-shadow: .05em .06em 0 var(--violet), .09em .11em 0 var(--ink); }
.brand.sm .bw span { transform: none; }
.brand.sm .bw span, .brand.sm .bchain { animation: none; }
.brand.sm .bchain { width: 1.1em; transform: rotate(-6deg); }
@keyframes brand-in { from { transform: translateY(-70%) rotate(-12deg) scale(.4); opacity: 0; } }
@keyframes brand-wobble { 0%, 100% { transform: none; } 30% { transform: translateY(-12%) rotate(-8deg); } 60% { transform: translateY(4%) rotate(5deg); } }
@keyframes chain-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) translateY(-.03em); } }
@keyframes swoosh-in { from { transform: scaleX(0); opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

/* ---------- Characters ---------- */
.chr { display: block; width: 100%; height: 100%; overflow: visible; }
.chr .chr-rig { transform-box: view-box; transform-origin: 60px 108px; animation: chr-bob 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.chr .chr-eye { transform-box: fill-box; transform-origin: center; animation: chr-blink 4.4s infinite; animation-delay: var(--d, 0s); }
.chr .chr-bulb { animation: pulse 1.4s infinite; }
.chr .chr-fizz { animation: chr-fizz 1.8s linear infinite; }
.mood-happy .chr-rig { animation: chr-jump .75s var(--ease-bounce) infinite; }
.mood-winner .chr-rig { animation: chr-dance 1s ease-in-out infinite; }
.mood-wrong .chr-rig { animation: chr-wobble .55s ease-in-out infinite; }
.mood-out .chr-rig { animation: chr-sulk 3s ease-in-out infinite; filter: saturate(.25) brightness(.85); }
.mood-locked .chr-rig { animation: chr-nod 1.8s ease-in-out infinite; }
.mood-shout .chr-rig { animation: chr-shout .32s ease-in-out infinite alternate; }
.mood-thinking .chr-rig { animation: chr-ponder 2.4s ease-in-out infinite; }
.mood-wave .chr-rig { animation: chr-jump .75s var(--ease-bounce) 2, chr-bob 2.6s ease-in-out 1.5s infinite; }
.chr-spark { transform-box: fill-box; transform-origin: center; animation: chr-twinkle 1s ease-in-out infinite; }
.chr-crown, .chr-think, .chr-cloud { animation: chr-float 1.4s ease-in-out infinite; }
.chr-drop { animation: chr-rain .8s linear infinite; }
.chr-dizzy { transform-box: view-box; animation: spin 1.4s linear infinite; }
.chr-lockbadge { transform-box: fill-box; transform-origin: center; animation: letter-pop .5s var(--ease-bounce) both; }
.chr-burst { animation: pulse .4s infinite; }
@keyframes chr-bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.02); } }
@keyframes chr-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes chr-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(2px) scale(1.08, .92); } 50% { transform: translateY(-14px) scale(.95, 1.06); } 80% { transform: translateY(0) scale(1.04, .96); } }
@keyframes chr-dance { 0%, 100% { transform: rotate(-6deg); } 25% { transform: rotate(0) translateY(-8px); } 50% { transform: rotate(6deg); } 75% { transform: rotate(0) translateY(-8px); } }
@keyframes chr-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes chr-sulk { 0%, 100% { transform: translateY(3px) scaleY(.97); } 50% { transform: translateY(5px) scaleY(.94); } }
@keyframes chr-nod { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-6deg) translateY(2px); } 26% { transform: rotate(0); } }
@keyframes chr-shout { from { transform: scale(1); } to { transform: scale(1.07) translateY(-3px); } }
@keyframes chr-ponder { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes chr-twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@keyframes chr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes chr-rain { from { transform: translateY(-2px); opacity: 1; } to { transform: translateY(8px); opacity: 0; } }
@keyframes chr-fizz { from { transform: translateY(0); opacity: .8; } to { transform: translateY(-30px); opacity: 0; } }

/* Character avatar container with a seat-coloured plinth under the feet. */
.cav { display: inline-block; width: 46px; height: 46px; flex: none; position: relative; }
.cav::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: 2%; height: 22%; border-radius: 50%; background: var(--pc, var(--pink)); opacity: .55; }
.cav > svg { position: relative; }
.cav.sm { width: 34px; height: 34px; }
.cav.md { width: 62px; height: 62px; }
.cav.lg { width: 96px; height: 96px; }
.cav.xl { width: 150px; height: 150px; }
.still .chr *, .chr.still * { animation: none !important; }

/* ---------- Linky ---------- */
.linky { width: 100%; height: auto; display: block; overflow: visible; }
.linky .lk-rig { transform-box: view-box; transform-origin: 80px 130px; animation: chr-bob 2.4s ease-in-out infinite; }
.linky .lk-arm-r { transform-box: view-box; animation: lk-wave 1.4s ease-in-out infinite; }
.linky .lk-hook { transform-box: view-box; transform-origin: 80px 34px; animation: lk-swing 3s ease-in-out infinite; }
.linky .chr-eye { transform-box: fill-box; transform-origin: center; animation: chr-blink 4s infinite; }
.linky-excited .lk-rig, .linky-cheering .lk-rig { animation: chr-jump .8s var(--ease-bounce) infinite; }
.linky-cheering .lk-arm-r, .linky-excited .lk-arm-r { animation-duration: .5s; }
.linky-shocked .lk-rig { animation: chr-shout .3s ease-in-out infinite alternate; }
.linky-sad .lk-rig { filter: saturate(.5); animation: chr-sulk 3s infinite; }
.linky-thinking .lk-rig { animation: chr-ponder 2.4s infinite; }
@keyframes lk-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-20deg); } }
@keyframes lk-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.linky-wrap { display: flex; align-items: center; gap: .7rem; }
.linky-wrap.side-left { flex-direction: row-reverse; }
.linky-wrap.center { justify-content: center; }
.linky-body { width: 86px; flex: none; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .28)); animation: linky-in .6s var(--ease-bounce) both; }
.linky-bubble {
  position: relative; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 18px;
  padding: .6rem .95rem; font-weight: 800; font-size: 1rem; line-height: 1.3; box-shadow: var(--shadow-sm); max-width: 360px; text-align: left;
  animation: bubble-in .45s .18s var(--ease-bounce) both;
}
.linky-bubble::before { content: ''; position: absolute; left: -10px; top: 50%; width: 16px; height: 16px; background: var(--paper); border-left: var(--line); border-bottom: var(--line); transform: translateY(-50%) rotate(45deg); }
.side-left .linky-bubble::before { left: auto; right: -10px; border: 0; border-right: var(--line); border-top: var(--line); }
@keyframes linky-in { from { transform: translateY(30px) scale(.5) rotate(-15deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bubble-in { from { transform: scale(.4) translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
body.tv .linky-body { width: clamp(96px, 9vw, 170px); }
body.tv .linky-bubble { font-size: clamp(1.05rem, 1.6vw, 1.9rem); max-width: 42vw; }

/* ---------- Character picker ---------- */
.char-hero { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.char-hero .cav { width: 112px; height: 112px; }
.char-hero .ch-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.char-hero .ch-tag { font-weight: 600; opacity: .75; font-size: .92rem; line-height: 1.3; }
.char-hero .ch-catch { display: inline-block; margin-top: .4rem; background: var(--ink); color: var(--sun); border-radius: 10px; padding: .2em .65em; font-weight: 800; font-size: .9rem; animation: bubble-in .4s var(--ease-bounce) both; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .45rem; margin-top: .8rem; }
.char-grid button {
  display: grid; justify-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 14px;
  border: 2px solid transparent; background: rgba(22, 13, 46, .06); color: var(--ink); font-size: .64rem; font-weight: 800; line-height: 1.1;
  transition: transform .12s, background .15s;
}
.char-grid button .cav { width: 48px; height: 48px; }
.char-grid button:hover { transform: translateY(-3px); background: rgba(22, 13, 46, .1); }
.char-grid button.on { border-color: var(--ink); background: var(--c); box-shadow: 2px 2px 0 var(--ink); }
.char-grid button:not(.on) .chr * { animation-play-state: paused; }
.char-grid button:hover .chr * { animation-play-state: running; }

/* ---------- Home / join hero with Linky ---------- */
.home .hero { display: grid; gap: .6rem; justify-items: center; }
.home .hero .linky-body { width: 74px; }

/* ---------- Characters in the room ---------- */
.pl .cav { margin: -6px 0 -4px -4px; }
.pl.lockedin::after, .pl.out::after { content: none; }
.pl .typing { position: absolute; left: 30px; top: -10px; font-size: .8rem; animation: chr-float 1s ease-in-out infinite; }
.slot .cav { width: 70px; height: 70px; }
.slot.filled { animation: none; }
.slot.filled.new { animation: slot-in .55s var(--ease-bounce) both; }
.lobby-linky .linky-body { width: 58px; }
.lobby-linky .linky-bubble { font-size: .88rem; padding: .45rem .75rem; max-width: 260px; }
@media (max-width: 600px) { .lobby-linky .linky-bubble { max-width: 180px; font-size: .8rem; } }
@keyframes slot-in { from { transform: translateY(26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.lobby-linky { display: flex; justify-content: center; }
.banner .cav { margin: -10px 0; }
.winner .cav { width: 74px; height: 74px; margin: -10px 0; }
.sheet tbody th .cav { width: 30px; height: 30px; vertical-align: middle; margin-right: .35rem; }
.sheet tbody th .cav::before { display: none; }
.podium .cav { width: 92px; height: 92px; }
.podium .p1 .cav { width: 120px; height: 120px; }
.standings .cav { margin: -4px 0; }

/* Intro & reveal Linky lines */
.intro .linky-wrap { animation: screen-in .4s .25s both; }
.reveal .linky-wrap { justify-content: center; }

.intro .linky-wrap { justify-self: center; }

/* ==========================================================================
   Theatrical final-clue entrance (timeline is ~4.6s, matching CLUE_INTRO_MS)
   0.0s spotlight + envelope bounce in · 0.8s shake · 1.3s flap opens ·
   1.6s card rises · 2.05s clue types out · ~3.3s word tiles drop
   ========================================================================== */
.clue-show { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.cs-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(30, 18, 66, .55), rgba(8, 4, 20, .94)); animation: fade .4s both; }
.cs-dim::before {
  content: ''; position: absolute; left: 50%; top: -12%; width: 90vmin; height: 110vmin; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 236, 170, .28), rgba(255, 236, 170, 0) 75%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); animation: fade .7s .15s both;
}
.cs-stage { position: relative; display: grid; justify-items: center; gap: 1.2rem; width: min(560px, 100%); margin-top: 14vh; }
.cs-envelope { position: relative; width: min(440px, 88vw); aspect-ratio: 1.6; perspective: 900px; animation: env-in .7s var(--ease-bounce) both, env-shake .45s .8s ease-in-out 1; }
.env-back, .env-front, .env-flap { position: absolute; border-radius: 14px; }
.env-back { inset: 0; background: #e2b44f; border: var(--line); box-shadow: 8px 8px 0 var(--ink); }
.env-front {
  inset: 0; z-index: 3; background: #f4d58d; border: var(--line);
  clip-path: polygon(0 34%, 50% 64%, 100% 34%, 100% 100%, 0 100%);
}
.env-seal {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); font-size: 1.4rem;
  animation: seal-pop .3s 1.25s ease-in forwards;
}
.env-flap {
  left: 0; right: 0; top: 0; height: 64%; z-index: 4; background: #d29a2c; border: var(--line); border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; backface-visibility: hidden;
  animation: flap-open .5s 1.3s ease-in forwards;
}
.env-card {
  position: absolute; left: 6%; right: 6%; top: 10%; bottom: 10%; z-index: 2;
  background: var(--paper); color: var(--ink); border: var(--line); border-radius: 12px;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: .55rem; padding: .9rem 1rem;
  animation: card-rise .75s 1.6s var(--ease-bounce) forwards;
}
.env-card .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-d); }
.cs-text { min-height: 1.3em; font-size: clamp(1.25rem, 4.6vw, 1.9rem); font-weight: 800; font-style: italic; line-height: 1.2; letter-spacing: -.01em; }
.cs-text::after { content: ''; display: inline-block; width: .08em; height: 1em; margin-left: .06em; vertical-align: -.12em; background: var(--pink); animation: pulse .6s infinite; }
.cs-text.done::after { display: none; }
.cs-words { display: flex; gap: .35rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.cs-words i {
  width: 2.1em; height: 1.1em; border-radius: 6px; background: var(--ink); box-shadow: 2px 2px 0 rgba(22, 13, 46, .25);
  opacity: 0; animation: tile-drop .4s var(--ease-bounce) forwards; animation-delay: calc(3.2s + var(--i) * .14s);
}
.cs-words span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: 0; animation: fade .3s 3.5s forwards; margin-left: .3rem; }
.cs-host { animation: screen-in .4s .3s both; }
.cs-host .linky-body { width: 72px; }
@keyframes env-in { from { transform: translateY(60vh) rotate(-12deg) scale(.6); } to { transform: none; } }
@keyframes env-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
@keyframes seal-pop { to { transform: translate(-50%, -50%) scale(0) rotate(90deg); opacity: 0; } }
@keyframes flap-open { 0% { transform: rotateX(0); } 100% { transform: rotateX(180deg); z-index: 1; } }
@keyframes card-rise { 0% { transform: translateY(0) scale(1); z-index: 2; } 45% { z-index: 5; } 100% { transform: translateY(-38%) scale(1.16); z-index: 6; } }
@keyframes tile-drop { from { transform: translateY(-18px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
body.tv .cs-envelope { width: min(760px, 58vw); }
body.tv .cs-text { font-size: clamp(1.8rem, 3.4vw, 3.6rem); }
body.tv .cs-host .linky-body { width: clamp(90px, 8vw, 150px); }
@media (max-width: 600px) { .cs-stage { margin-top: 14vh; } .cs-host .linky-bubble { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) {
  .cs-envelope, .env-flap, .env-card, .env-seal { animation: none !important; }
  .env-flap, .env-front, .env-back, .env-seal { display: none; }
  .env-card { position: relative; inset: auto; min-height: 160px; }
  .cs-words i, .cs-words span { animation: none !important; opacity: 1; }
}

/* ==========================================================================
   Motion pass: stage transitions, dealt questions, scoreboard, reveal
   ========================================================================== */
.stage.enter > * { animation: stage-in .45s var(--ease-out) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* New questions are dealt in like playing cards. */
.clue.fresh-q { animation: card-deal .6s var(--ease-bounce) both; }
@keyframes card-deal {
  0% { transform: translate(60vw, -30px) rotate(24deg) scale(.8); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.clue.hidden { transition: opacity .3s; }

/* Scoreboard: the leader wears a crown; winning a letter wobbles your row. */
.pl.leader .cav::after { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-12deg); animation: chr-float 1.4s ease-in-out infinite; }
.pl.gain { animation: pl-gain .8s var(--ease-bounce) both; }
@keyframes pl-gain { 0% { transform: scale(1); } 30% { transform: scale(1.08) rotate(-2deg); background: rgba(255, 201, 60, .3); } 60% { transform: scale(.98) rotate(1.5deg); } 100% { transform: none; } }

/* Reveal: real answers flip over one by one, then rows cascade in. */
.sheet thead th[style] { animation: flip-in .55s var(--ease-bounce) both; animation-delay: calc(.6s + var(--i) * .18s); transform-origin: top; }
.sheet tbody tr { animation: row-in .45s var(--ease-bounce) both; animation-delay: calc(1.4s + var(--r) * .12s); }
@keyframes row-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.sheet-wrap { animation-delay: .4s; }
.winner .cav { isolation: isolate; }
.winner .cav::before { inset: -18% -18% 0; height: auto; bottom: 0; opacity: .9; background: radial-gradient(circle, rgba(255, 209, 102, .65), rgba(255, 209, 102, 0) 70%); animation: pulse 1.4s ease-in-out infinite; }

/* Over: podium characters land with a bounce. */
.podium .step .cav { animation: podium-land .7s var(--ease-bounce) both; animation-delay: .9s; }
.podium .p1 .cav { animation-delay: 1.3s; }
@keyframes podium-land { from { transform: translateY(-120px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .clue.fresh-q, .stage.enter > *, .sheet tbody tr, .sheet thead th[style], .podium .step .cav { animation: none !important; }
}

/* ==========================================================================
   Icon system (see js/icons.js)
   ========================================================================== */
.ic { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.24em; flex: none; overflow: visible; }
.ic .f { fill: currentColor; fill-opacity: .22; }
.btn .ic { width: 1.25em; height: 1.25em; }
.icon-btn .ic { width: 22px; height: 22px; }
.stk { width: 1.7em; height: 1.7em; display: inline-block; vertical-align: middle; overflow: visible; filter: drop-shadow(2px 2px 0 rgba(22, 13, 46, .35)); }
.react-row button { display: grid; place-items: center; }
.react-row button .stk { width: 28px; height: 28px; filter: none; }
.react-row button:hover .stk { transform: scale(1.15) rotate(-6deg); transition: transform .15s; }
.float-emoji .stk, .float-emoji .ic { width: 52px; height: 52px; }
.float-emoji .ic { color: var(--sun); filter: drop-shadow(2px 2px 0 var(--ink)); }
body.tv .float-emoji .stk, body.tv .float-emoji .ic { width: 84px; height: 84px; }
.vote-row .vbtn { display: grid; place-items: center; color: var(--ink); }
.vote-row .vbtn .ic { width: 28px; height: 28px; }
.banner .av .ic { width: 1.6em; height: 1.6em; }
.cat-badge .ic, .chip .ic { width: 1.15em; height: 1.15em; }
.code-chip .ic { width: 1.1em; height: 1.1em; }
.pl .typing { color: var(--sun); }
.pl .typing .ic { width: 16px; height: 16px; }
.lock-count .ic, .rate-chip .ic { width: 1em; height: 1em; }
.env-seal .ic { width: 26px; height: 26px; color: #fff; }
.kick .ic { width: 12px; height: 12px; }
.modal .close .ic { width: 18px; height: 18px; }
.mine .ic { width: 1em; height: 1em; }
.pack-ic-pick { display: flex; flex-wrap: wrap; gap: .35rem; }
.pack-ic-pick button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid transparent; background: rgba(22, 13, 46, .06); color: var(--ink); display: grid; place-items: center; }
.pack-ic-pick button.on { border-color: var(--ink); background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.pack-ic-pick .ic { width: 22px; height: 22px; }
.pack-item .em .ic { width: 28px; height: 28px; color: var(--sun); }

/* Crown for the scoreboard leader (an SVG, not an emoji). */
.pl.leader .cav::after {
  content: ''; width: 18px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M2.5 7.2l4.6 4.4 4.9-8 4.9 8 4.6-4.4-1.8 11.3H4.3z' fill='%23ffd166' stroke='%23160d2e' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='3.5' r='1.6' fill='%23ff4f8b'/%3E%3C/svg%3E") no-repeat center / contain;
}
