/* Golden Record — second wave: postcards, needle reveal, new modes, profile, online extras. */

/* ---------- title: postcards ---------- */
.title-wrap { width: min(1000px, 100%); }
#screen-title { scrollbar-width: none; padding-bottom: 26px; }
#screen-title::-webkit-scrollbar { display: none; }
.modes { grid-template-columns: repeat(12, 1fr); gap: 14px; }
.mode.card { grid-column: span 3; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; text-align: left; overflow: hidden; background: #0c0e21; color: #f6efd9; transition: transform 0.16s steps(3), box-shadow 0.16s steps(3); box-shadow: 0 -3px 0 0 #2c3052, 0 3px 0 0 #2c3052, -3px 0 0 0 #2c3052, 3px 0 0 0 #2c3052, 0 8px 0 0 rgba(0, 0, 0, 0.35); animation: card-in 0.5s cubic-bezier(.2,.8,.2,1) both; }
.mode.card.daily { grid-column: span 4; }
.mode.card.wide { grid-column: span 6; }
.mode.card:hover, .mode.card:focus-visible { transform: translateY(-4px); box-shadow: 0 -3px 0 0 var(--gold, #f5c542), 0 3px 0 0 #f5c542, -3px 0 0 0 #f5c542, 3px 0 0 0 #f5c542, 0 12px 0 0 rgba(0, 0, 0, 0.35); outline: none; }
.mode.card:active { transform: translateY(1px); }
.card-img { display: block; width: 100%; height: 112px; object-fit: cover; object-position: 50% 62%; image-rendering: pixelated; background: #151936; transition: transform 0.5s steps(8); }
.mode.card.daily .card-img { height: 138px; }
.mode.card:hover .card-img, .mode.card:focus-visible .card-img { transform: scale(1.07); }
.card-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; overflow: hidden; }
.card-quad img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; min-height: 0; }
.card-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; padding: 7px 12px 9px; background: #0c0e21; }
.mode.card > .card-tx { display: flex; }
.mode.card[data-mode="kreuth"] .card-img { object-position: 50% 34%; }
.mode.card[data-mode="online"] .card-img, .mode.card[data-mode="stammtisch"] .card-img { object-position: 50% 50%; }
.mode.card .mode-name { font-size: 24px; line-height: 1.1; }
.mode.card .mode-meta { font-size: 19px; line-height: 1.05; color: rgba(246, 239, 217, 0.66); min-height: 20px; }
.mode.card.played .card-tx::after { content: ''; position: absolute; right: 12px; top: 14px; width: 18px; height: 18px; background: #f5c542; clip-path: polygon(0 55%, 18% 38%, 40% 58%, 82% 10%, 100% 28%, 40% 92%); }
.modes .card:nth-child(1) { animation-delay: 0.1s; } .modes .card:nth-child(2) { animation-delay: 0.14s; } .modes .card:nth-child(3) { animation-delay: 0.18s; }
.modes .card:nth-child(4) { animation-delay: 0.22s; } .modes .card:nth-child(5) { animation-delay: 0.26s; } .modes .card:nth-child(6) { animation-delay: 0.3s; } .modes .card:nth-child(7) { animation-delay: 0.33s; }
.modes .card:nth-child(n+8) { animation-delay: 0.36s; }
@keyframes card-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.disc { cursor: pointer; transition: transform 0.2s steps(4); }
.disc:hover { transform: scale(1.08) rotate(-6deg); }
#title-streak { font-size: 19px; letter-spacing: 0.04em; color: #ff9a3c; display: inline-flex; align-items: center; gap: 6px; }
.flame { width: 12px; height: 16px; display: inline-block; background: #ff9a3c; clip-path: polygon(50% 0, 70% 30%, 85% 25%, 100% 60%, 85% 90%, 60% 100%, 35% 100%, 10% 85%, 0 60%, 20% 40%, 35% 45%); animation: flick 0.7s steps(3) infinite; }
@keyframes flick { 50% { transform: scaleY(1.15) translateY(-1px); background: #f5c542; } }
@media (max-width: 900px) and (min-width: 641px) { .mode.card { grid-column: span 4; } .mode.card.wide { grid-column: span 8; } }
@media (max-width: 640px) {
  .corner-right { flex-direction: row; }
  #screen-title { padding-top: 62px; }
  .modes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mode.card, .mode.card.daily, .mode.card.wide { grid-column: span 1; padding: 0; display: flex; }
  .mode.card.daily, .mode.card.wide { grid-column: 1 / -1; }
  .mode.card .card-img { height: 92px; }
  .mode.card.daily .card-img, .mode.card.wide .card-img { height: 104px; }
  .mode.card .mode-name { font-size: 21px; }
  .mode.card .mode-meta { font-size: 17px; }
  .title-foot { flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
}
@media (max-height: 920px) and (min-width: 641px) { .card-img { height: 92px; } .mode.card.daily .card-img { height: 116px; } }

/* ---------- prompt: words arrive one by one ---------- */
.pw { display: inline-block; animation: word-in 0.32s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#prompt.swap { animation: swap-in 0.26s steps(5) both; }
@keyframes swap-in { from { transform: translate(-50%, 0) translateX(36px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
#prompt.swap .pw { animation-duration: 0.16s; animation-delay: 0s !important; }
.prompt-sub.hint { color: #f5c542; font-size: 22px; line-height: 1.1; }
body[data-theme="b"] .prompt-sub.hint { color: var(--edge); }
.prompt-sub.pop { animation: rise 0.35s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- jokers ---------- */
#jokers { position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); bottom: calc(100vh - var(--vvh) + max(18px, env(safe-area-inset-bottom)) + 62px); width: min(640px, calc(100% - 32px)); display: flex; gap: 10px; justify-content: flex-end; pointer-events: none; }
.joker { pointer-events: auto; width: 46px; height: 46px; padding: 5px; border: 0; background: rgba(8, 10, 26, 0.78); box-shadow: inset 0 0 0 2px rgba(246, 239, 217, 0.22); transition: transform 0.12s steps(2); animation: bar-up2 0.4s cubic-bezier(.2,.8,.2,1) both; }
.joker:nth-child(2) { animation-delay: 0.05s; } .joker:nth-child(3) { animation-delay: 0.1s; }
.joker canvas { width: 36px; height: 36px; image-rendering: pixelated; display: block; }
.joker:hover:not(:disabled), .joker:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #f5c542; outline: none; }
.joker.used { opacity: 0.28; filter: grayscale(1); cursor: default; }
@keyframes bar-up2 { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#timer.gain { animation: t-gain 0.5s steps(5) both; } #timer.loss { animation: t-loss 0.4s steps(4) both; }
@keyframes t-gain { 30% { transform: scale(1.35); filter: hue-rotate(60deg) brightness(1.6); } } @keyframes t-loss { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- needle reveal ---------- */
#needle { position: fixed; inset: 0; z-index: 18; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 60px); padding-top: 40px; pointer-events: auto; cursor: pointer; background: radial-gradient(circle at 50% 54%, rgba(5, 6, 15, 0.72), rgba(5, 6, 15, 0.25) 62%, transparent 80%); animation: veil-in 0.2s ease both; }
#needle.out { opacity: 0; transition: opacity 0.18s ease; }
#needle.out .nd { transform: translateY(-26px) scale(0.94); transition: transform 0.18s ease; }
.nd { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nd-c { width: 312px; height: 312px; image-rendering: pixelated; animation: disc-drop 0.42s cubic-bezier(.2,1.5,.4,1) both; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.4)); }
@keyframes disc-drop { 0% { transform: translateY(-120px) scale(0.6) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.nd-tier { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1; min-height: 42px; margin-top: 10px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6); }
.nd-tier.land { animation: stamp 0.42s cubic-bezier(.17,1.5,.4,1) both; }
.nd-ans { font-size: 28px; color: #f6efd9; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); max-width: min(420px, 44vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#needle.n1 .nd-ans { max-width: 88vw; }
.nd-who { font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; } .nd-who.p0 { color: #f5c542; } .nd-who.p1 { color: #ff8fb1; }
.nd.land.t1 .nd-c { animation: nd-wob 0.5s steps(6) both; } .nd.land.t0 .nd-c { animation: nd-shake 0.45s steps(6) both; }
.nd.land.t4 .nd-c, .nd.land.t5 .nd-c { animation: nd-pulse 0.5s steps(6) both; } .nd.land.t6 .nd-c { animation: nd-gold 0.9s steps(9) both; }
@keyframes nd-wob { 25% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-2deg); } }
@keyframes nd-shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes nd-pulse { 40% { transform: scale(1.09); } }
@keyframes nd-gold { 20% { transform: scale(1.16) rotate(4deg); } 50% { transform: scale(1.08) rotate(-3deg); } 75% { transform: scale(1.12); } }
#needle.n2 .nd-c { width: 260px; height: 260px; } #needle.n2 .nd-tier { font-size: 30px; }
@media (max-width: 640px) { .nd-c { width: 260px; height: 260px; } #needle.n2 .nd-c { width: 168px; height: 168px; } #needle.n2 .nd-tier { font-size: 22px; } .nd-ans { font-size: 24px; } }
@media (max-height: 560px) { .nd-c, #needle.n2 .nd-c { width: 180px; height: 180px; } .nd-tier { font-size: 28px; } }

/* ---------- result extras, all answers ---------- */
.all-btn { margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.end-more { font-size: 16px; padding: 0; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }
.all-q { margin-bottom: 12px; font-size: 24px; padding: 7px 12px; }
.all-g { margin-bottom: 14px; }
.all-k { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.all-list .chip { padding: 2px 8px; font-size: 20px; }
.chip.more { opacity: 0.6; }
#all, #profile { z-index: 45; }
#all .sheet, #profile .sheet { user-select: text; }
#all .sheet-actions, #profile .sheet-actions { position: sticky; bottom: -22px; margin: 12px -22px -22px; padding: 12px 22px 18px; background: #0c0e21; box-shadow: 0 -10px 12px -6px #0c0e21; }
body[data-theme="b"] #all .sheet-actions, body[data-theme="b"] #profile .sheet-actions { background: #f7f8fb; box-shadow: 0 -10px 12px -6px #f7f8fb; }
.end-totals.with-disc { grid-template-columns: auto 1fr; align-items: center; }
.end-totals.with-disc.n2 { grid-template-columns: auto 1fr 1fr; }
.end-disc { width: 156px; height: 156px; image-rendering: pixelated; animation: disc-drop 0.6s cubic-bezier(.2,1.4,.4,1) 0.1s both; }
.newbest b { animation: nd-pulse 0.6s steps(6) 3; }
@media (max-width: 640px) { .end-disc { width: 104px; height: 104px; } .end-totals.with-disc.n2 { grid-template-columns: 1fr 1fr; } .end-totals.with-disc.n2 .end-disc { grid-column: 1 / -1; justify-self: center; } }

/* ---------- three hearts ---------- */
.hearts { display: flex; gap: 5px; }
.heart-ic { width: 39px; height: 39px; image-rendering: pixelated; }
.heart-ic.broke { animation: heart-break 0.7s steps(8) both; } .heart-ic.won { animation: nd-pulse 0.5s steps(6) 2; }
@keyframes heart-break { 0% { transform: scale(1.5); } 30% { transform: scale(1.6) rotate(-14deg); } 60% { transform: scale(1.2) rotate(10deg); } 100% { transform: none; } }
.bar-k { background: rgba(8, 10, 26, 0.7); padding: 1px 8px; opacity: 1; }
.life-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: #8be06b; animation: rise 0.4s cubic-bezier(.2,.8,.2,1) 0.5s both; }
.life-line.lost { color: #ff6b6b; } .life-line.won { color: #f5c542; }
.life-line .heart-ic { width: 26px; height: 26px; }
body[data-mode="hearts"] #dots, body[data-mode="kiste"] #dots { flex-direction: column; align-items: center; gap: 3px; }
@media (max-width: 640px) {
  body[data-mode="hearts"] .hud-mid, body[data-mode="kiste"] .hud-mid, body[data-mode="slf"] .hud-mid { display: flex; position: fixed; left: 0; right: 0; top: calc(max(12px, env(safe-area-inset-top)) + 58px); }
  body[data-mode="hearts"] #prompt, body[data-mode="kiste"] #prompt { top: calc(max(12px, env(safe-area-inset-top)) + 132px); }
  .heart-ic { width: 30px; height: 30px; }
}

/* ---------- Stammtisch speech bubbles ---------- */
#bubbles { position: fixed; inset: 0; z-index: 17; pointer-events: none; }
.bubble { position: absolute; max-width: min(250px, 62vw); padding: 5px 10px 6px; background: #f6efd9; color: #1a1420; font-size: 20px; line-height: 1.05; box-shadow: 0 -2px 0 0 #1a1420, 0 2px 0 0 #1a1420, -2px 0 0 0 #1a1420, 2px 0 0 0 #1a1420; animation: bub 0.3s cubic-bezier(.17,1.5,.4,1) both; transform-origin: var(--tip, 20px) 100%; }
.bubble::after { content: ''; position: absolute; left: calc(var(--tip, 20px) - 5px); top: calc(100% + 1px); width: 10px; height: 8px; background: #f6efd9; clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes bub { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.podium-rest { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 21px; background: rgba(246, 239, 217, 0.05); margin-bottom: 8px; }
.podium .pod-av { width: 56px; height: 56px; image-rendering: pixelated; animation: hop 1.1s steps(4) infinite; }
.podium .p2 .pod-av { animation-delay: 0.3s; } .podium .p3 .pod-av { animation-delay: 0.6s; }

/* ---------- Vollgas ---------- */
#answer.sprint { animation: none !important; }
#sprint-skip { position: fixed; z-index: 16; left: 50%; transform: translateX(calc(-50% + min(320px, 50vw - 16px) - 54px)); bottom: calc(100vh - var(--vvh) + max(18px, env(safe-area-inset-bottom)) + 62px); padding: 5px 14px; font-size: 18px; background: rgba(8, 10, 26, 0.78); color: #f6efd9; }
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sprint-pop { position: fixed; left: 50%; bottom: calc(100vh - var(--vvh) + 128px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; font-family: var(--f-display); font-weight: 700; font-size: 25px; white-space: nowrap; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; color: #f6efd9; background: rgba(8, 10, 26, 0.82); animation: spr-pop 1.5s cubic-bezier(.2,.8,.2,1) both; z-index: 19; }
.sprint-pop .ticon { width: 32px; height: 32px; }
.sprint-pop.t4, .sprint-pop.t5, .sprint-pop.t6 { color: #f5c542; } .sprint-pop.t0, .sprint-pop.t8 { color: #ff8a8a; } .sprint-pop.ai { color: #7fd4ff; }
@keyframes spr-pop { 0% { transform: translate(-50%, 30px) scale(0.6); opacity: 0; } 12% { transform: translate(-50%, 0) scale(1.08); opacity: 1; } 22% { transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { transform: translate(-50%, -60px); opacity: 0; } }

/* ---------- Plattenkiste ---------- */
#crate { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: max(26px, env(safe-area-inset-bottom)); width: min(540px, calc(100% - 28px)); }
#crate-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 34px); align-items: end; }
.sleeve { position: relative; border: 0; padding: 10px 10px 12px; background: #f6efd9; color: #1a1420; display: flex; flex-direction: column; gap: 8px; text-align: left; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45); animation: sleeve-in 0.45s cubic-bezier(.2,1.3,.4,1) both; transition: transform 0.16s steps(3); }
.sleeve:nth-child(1) { transform-origin: 20% 100%; } .sleeve:nth-child(2) { transform-origin: 80% 100%; }
@keyframes sleeve-in { from { transform: translateY(90px) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sleeve:hover:not(:disabled), .sleeve:focus-visible { transform: translateY(-8px) rotate(-1.5deg); outline: none; }
.sleeve:nth-child(2):hover:not(:disabled) { transform: translateY(-8px) rotate(1.5deg); }
.sl-art { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block; }
.sl-disc { position: absolute; z-index: 1; left: 16%; right: 16%; top: 14px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #14162c 0 3px, #22253f 3px 6px); transition: transform 0.4s cubic-bezier(.2,1.2,.4,1); }
.sleeve.open .sl-disc { transform: translateY(-62px) rotate(200deg); }
.sl-name { position: relative; z-index: 2; font-size: clamp(20px, 3.4vw, 28px); line-height: 1; min-height: 2em; display: flex; align-items: center; background: #f6efd9; word-break: break-word; }
.sl-tier { position: absolute; z-index: 3; left: 10px; top: 10px; display: none; align-items: center; gap: 8px; padding: 4px 10px; font-family: var(--f-display); font-weight: 700; font-size: 20px; background: rgba(8, 10, 26, 0.92); }
.sleeve.open .sl-tier { display: inline-flex; animation: stamp 0.35s cubic-bezier(.17,1.5,.4,1) both; }
.sl-tier .ticon { width: 24px; height: 24px; }
.sleeve.win { box-shadow: 0 0 0 5px #f5c542, 0 8px 0 5px rgba(0, 0, 0, 0.45); } .sleeve.lose { filter: saturate(0.5) brightness(0.72); }
.sleeve.mine.lose { animation: nd-shake 0.4s steps(6) both; } .sleeve.mine.win { animation: nd-pulse 0.45s steps(5) both; }
#crate-bar { height: 10px; margin-top: 16px; background: rgba(8, 10, 26, 0.7); } #crate-bar i { display: block; height: 100%; width: 100%; background: #f5c542; }
@media (max-width: 640px) { #crate-two { gap: 12px; } }
@media (max-height: 700px) { #crate { width: min(400px, calc(100% - 28px)); } }

/* ---------- Stadt Land Fluss ---------- */
#slf-spin { position: fixed; z-index: 20; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 150px; line-height: 1; color: #2f6fd6; background: #ffffff; box-shadow: 0 0 0 6px #2f6fd6, 0 14px 0 6px rgba(13, 42, 94, 0.35); }
#slf-spin.set { animation: nd-gold 0.6s steps(8) both; color: #e0313f; box-shadow: 0 0 0 6px #e0313f, 0 14px 0 6px rgba(13, 42, 94, 0.35); }
#slf { position: fixed; z-index: 18; left: 50%; top: calc((100vh - var(--vvh)) * 0 + 50px); transform: translateX(-50%); width: min(560px, calc(100% - 28px)); max-height: calc(var(--vvh) - 64px); overflow-y: auto; padding: 14px 18px 16px; background: rgba(255, 255, 255, 0.97); color: #0d2a5e; --edge: #2f6fd6; --muted: rgba(13, 42, 94, 0.6); animation: rise2 0.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise2 { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }
.slf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
#slf-letter { font-family: var(--f-display); font-size: 54px; line-height: 1; color: #e0313f; min-width: 46px; text-align: center; }
#slf-title { font-size: 21px; color: var(--muted); } #slf-time { margin-left: auto; font-family: var(--f-display); font-weight: 700; font-size: 34px; } #slf-time.urgent { color: #e0313f; animation: blink 0.5s steps(2) infinite; }
.slf-row { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 10px; border-bottom: 2px solid rgba(47, 111, 214, 0.25); animation: rise 0.35s cubic-bezier(.2,.8,.2,1) both; }
.slf-k { font-size: 20px; color: var(--muted); }
.slf-in { width: 100%; border: 0; background: none; padding: 9px 4px; font-family: var(--f-label); font-size: 27px; color: #0d2a5e; user-select: text; }
.slf-in:focus { outline: none; background: rgba(245, 197, 66, 0.25); } .slf-in.bad { color: #e0313f; text-decoration: line-through; } .slf-in::placeholder { color: rgba(13, 42, 94, 0.25); }
.slf-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
#slf .btn-gold { background: #e0313f; color: #fff; box-shadow: 0 -2px 0 0 #e0313f, 0 2px 0 0 #e0313f, -2px 0 0 0 #e0313f, 2px 0 0 0 #e0313f, 0 5px 0 0 #8e1a25; }
.slf-grow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 2px solid rgba(47, 111, 214, 0.18); animation: rise 0.4s cubic-bezier(.2,.8,.2,1) both; }
#slf-grade.again .slf-grow { animation: none; }
.slf-grow .slf-k { align-self: start; padding-top: 4px; }
.slf-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slf-ans { display: flex; align-items: center; gap: 10px; min-width: 0; } .slf-ans .ticon { width: 32px; height: 32px; }
.slf-ans > div { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1; } .slf-ans b { font-weight: 400; font-size: 23px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .slf-ans span { font-size: 18px; color: var(--muted); }
.slf-ans em { font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 21px; color: #2f6fd6; } .slf-ans.checking { animation: blink 0.9s steps(2) infinite; } .slf-ans.p1 em { color: #d2577f; }
.slf-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 21px; } .slf-total b { font-family: var(--f-display); font-size: 32px; color: #e0313f; }
#slf .sheet-actions { margin-top: 12px; }
.slf-who { font-size: 19px; } 
@media (max-width: 640px) { #slf { top: 46px; padding: 10px 14px 14px; } .slf-row { grid-template-columns: 92px 1fr; } .slf-k { font-size: 18px; } .slf-in { font-size: 24px; padding: 7px 4px; } .slf-grow { grid-template-columns: 80px 1fr; } #slf-letter { font-size: 42px; } }

/* ---------- Wunschplatte ---------- */
.ideas { margin: 12px 0 4px; }
.own { margin-top: 18px; } .own summary { cursor: pointer; font-size: 21px; color: var(--accent); letter-spacing: 0.04em; list-style: none; } .own summary::before { content: '+ '; } .own[open] summary::before { content: '− '; } body[data-theme="b"] .own summary { color: var(--edge); }
.own-ta { resize: vertical; font-size: 22px; line-height: 1.15; }
.own .sheet-sub { margin: 6px 0 8px; }
#pressing { z-index: 60; } .press-in { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #f6efd9; font-size: 26px; text-align: center; }
.press-disc { width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(circle, #f5c542 0 22%, #0d0f24 22% 24%, transparent 24%), repeating-radial-gradient(circle, #1d2038 0 4px, #2c3052 4px 8px); animation: press-spin 1.4s linear infinite, press 1.4s steps(8) infinite; }
@keyframes press-spin { to { rotate: 360deg; } } @keyframes press { 0%, 100% { scale: 1 1; } 50% { scale: 1.06 0.86; } }
.press-bar { width: min(300px, 70vw); height: 10px; background: rgba(246, 239, 217, 0.15); overflow: hidden; } .press-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: #f5c542; animation: press-bar 45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes press-bar { from { transform: scaleX(0.02); } to { transform: scaleX(0.97); } }

/* ---------- Advent calendar ---------- */
.doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 6px 0 4px; }
.door { position: relative; aspect-ratio: 1; border: 0; padding: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 26px; color: rgba(255, 255, 255, 0.85); background: hsl(var(--h, 0) 42% 26%); box-shadow: inset 0 0 0 3px hsl(var(--h, 0) 42% 18%), inset 0 -8px 0 rgba(0, 0, 0, 0.18); animation: card-in 0.4s cubic-bezier(.2,.8,.2,1) both; }
.door::after { content: ''; position: absolute; right: 10%; top: 52%; width: 5px; height: 5px; background: #f5c542; }
.door.can { background: hsl(var(--h, 0) 62% 40%); color: #fff; box-shadow: inset 0 0 0 3px #f5c542, inset 0 -8px 0 rgba(0, 0, 0, 0.18); } .door.can:hover { transform: translateY(-3px) rotate(-2deg); }
.door.got { background: #10142e; box-shadow: inset 0 0 0 3px rgba(246, 239, 217, 0.18); } .door.got::after { display: none; } .door.got .dn { position: absolute; right: 5px; bottom: 2px; font-size: 15px; color: #f5c542; }
.door .orn { width: 60%; aspect-ratio: 1; image-rendering: pixelated; } .orn-big { display: grid; place-items: center; } .orn-big .orn { width: 96px; height: 96px; image-rendering: pixelated; animation: icon-pop 0.6s steps(7) both, hop 1.4s steps(4) 0.8s infinite; }
.door.nope { animation: nd-shake 0.4s steps(6) both; } .door.opening { animation: door-open 0.42s steps(7) both; transform-origin: 0 50%; }
@keyframes door-open { to { transform: perspective(300px) rotateY(-96deg); } }
@media (max-width: 640px) { .doors { grid-template-columns: repeat(4, 1fr); gap: 8px; } #screen-setup { padding-top: 62px; align-items: flex-start; } }
#screen-setup .sheet { animation: rise 0.45s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- profile ---------- */
.pf-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .pf-num { display: flex; flex-direction: column; padding: 8px 10px; background: rgba(246, 239, 217, 0.06); } .pf-num b { font-family: var(--f-display); font-size: 32px; line-height: 1; color: var(--accent); } .pf-num span { font-size: 18px; color: var(--muted); line-height: 1.05; }
body[data-theme="b"] .pf-num { background: rgba(13, 42, 94, 0.06); } body[data-theme="b"] .pf-num b { color: var(--edge); }
.pf-bars { display: flex; flex-direction: column; gap: 3px; } .pf-bar { display: grid; grid-template-columns: 24px 150px 1fr 46px; gap: 10px; align-items: center; font-size: 20px; } .pf-bar .ticon { width: 24px; height: 24px; } .pf-bar .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pf-bar .tr { height: 12px; background: rgba(246, 239, 217, 0.08); } .pf-bar .tr i { display: block; height: 100%; animation: bar-grow 0.7s cubic-bezier(.2,.8,.2,1) both; transform-origin: 0 50%; } .pf-bar b { text-align: right; font-family: var(--f-display); font-size: 18px; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.pf-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; } .pf-best > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; font-size: 20px; background: rgba(246, 239, 217, 0.05); } .pf-best b { font-family: var(--f-display); font-size: 19px; color: var(--accent); } body[data-theme="b"] .pf-best b { color: var(--edge); }
.pf-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; } .pf-badge { border: 0; background: none; padding: 4px; } .pf-badge canvas { width: 48px; height: 48px; image-rendering: pixelated; display: block; margin: auto; transition: transform 0.15s steps(3); } .pf-badge:hover canvas { transform: rotate(14deg) scale(1.08); } .pf-badge.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.pf-info { font-size: 20px; color: var(--muted); margin: 8px 0 0; min-height: 24px; } .pf-info b { color: var(--text); font-weight: 400; }
.pf-vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; } .pf-v { display: flex; align-items: center; gap: 10px; padding: 5px 10px; background: rgba(246, 239, 217, 0.05); min-width: 0; } body[data-theme="b"] .pf-v, body[data-theme="b"] .pf-best > div { background: rgba(13, 42, 94, 0.05); } .pf-v .ticon { width: 32px; height: 32px; } .pf-v div { min-width: 0; display: flex; flex-direction: column; line-height: 1; } .pf-v b { font-weight: 400; font-size: 22px; } .pf-v span { font-size: 17px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#badge-pop { width: max-content; position: fixed; z-index: 70; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 14px; background: #f6efd9; color: #1a1420; box-shadow: 0 -3px 0 0 #f5c542, 0 3px 0 0 #f5c542, -3px 0 0 0 #f5c542, 3px 0 0 0 #f5c542, 0 10px 0 rgba(0, 0, 0, 0.35); max-width: calc(100% - 30px); }
#badge-pop.in { animation: badge-in 3s cubic-bezier(.2,1.2,.4,1) both; } @keyframes badge-in { 0% { transform: translate(-50%, -120px); } 9% { transform: translate(-50%, 0); } 90% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -60px); opacity: 0; } }
.bp-ic { width: 60px; height: 60px; image-rendering: pixelated; animation: press-spin 2.2s linear 1; } .bp-k { font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; line-height: 1; } .bp-n { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.1; } .bp-h { font-size: 18px; opacity: 0.75; line-height: 1; }
@media (max-width: 640px) { .pf-nums { grid-template-columns: 1fr 1fr; } .pf-bar { grid-template-columns: 24px 104px 1fr 40px; font-size: 18px; } #profile, #all { align-items: flex-start; padding-top: 16px; } }

/* ---------- online extras ---------- */
.av { image-rendering: pixelated; width: 28px; height: 28px; flex: none; }
.av-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; } .av-pick button { border: 0; padding: 5px; background: rgba(246, 239, 217, 0.06); } .av-pick button.on { box-shadow: inset 0 0 0 3px var(--accent); background: rgba(245, 197, 66, 0.16); } .av-pick .av { width: 100%; height: auto; aspect-ratio: 1; display: block; }
body[data-theme="b"] .av-pick button { background: rgba(13, 42, 94, 0.06); } body[data-theme="b"] .av-pick button.on { box-shadow: inset 0 0 0 3px var(--edge); }
.lobby-players .av { width: 36px; height: 36px; margin: -2px 0; } .lobby-players li .sw { display: none; } .lobby-players li { box-shadow: inset 4px 0 0 var(--c, transparent); }
.on-wait-list span { display: inline-flex; align-items: center; gap: 6px; } .on-wait-list .av { width: 22px; height: 22px; } .on-wait-list span.done .av { animation: hop 0.8s steps(4) infinite; }
.on-row .nm { display: flex; align-items: center; gap: 6px; } .on-row .nm .av { width: 24px; height: 24px; }
.on-row .same { color: #ff8fb1; font-size: 17px; }
.react-bar { display: flex; justify-content: center; gap: 8px; margin-top: 12px; } .react-bar button { border: 0; padding: 6px; background: rgba(246, 239, 217, 0.07); transition: transform 0.1s steps(2); } .react-bar button:hover { transform: translateY(-3px); } .react-bar button:active { transform: scale(0.88); } .react-bar canvas { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
body[data-theme="b"] .react-bar button { background: rgba(13, 42, 94, 0.07); }
#reacts { position: fixed; inset: 0; z-index: 46; pointer-events: none; overflow: hidden; }
.rx { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; animation: rx-up 2.6s cubic-bezier(.3,.6,.4,1) both; } .rx canvas { width: 54px; height: 54px; image-rendering: pixelated; animation: rx-sway 0.9s steps(6) infinite alternate; } .rx span { font-size: 18px; padding: 0 6px; background: rgba(8, 10, 26, 0.8); color: var(--c, #fff); }
@keyframes rx-up { 0% { transform: translateY(30px) scale(0.4); opacity: 0; } 14% { opacity: 1; transform: translateY(-40px) scale(1.15); } 100% { transform: translateY(calc(var(--vvh) * -0.62)); opacity: 0; } } @keyframes rx-sway { from { transform: translateX(-8px) rotate(-8deg); } to { transform: translateX(8px) rotate(8deg); } }
#live { position: fixed; z-index: 15; left: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; } .live-row { display: grid; grid-template-columns: 22px minmax(40px, 90px) auto; align-items: center; gap: 6px; padding: 3px 8px; font-size: 19px; background: rgba(8, 10, 26, 0.72); color: #f6efd9; box-shadow: inset 3px 0 0 var(--c); } .live-row .av { width: 22px; height: 22px; } .live-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .live-row b { font-family: var(--f-display); font-size: 18px; text-align: right; }
@media (max-width: 640px) { #live { left: 0; right: 0; top: calc(max(12px, env(safe-area-inset-top)) + 58px); transform: none; flex-direction: row; overflow-x: auto; padding: 0 12px; scrollbar-width: none; } .live-row { grid-template-columns: 20px auto auto; padding: 1px 7px; font-size: 17px; } body.live-on #prompt { top: calc(max(12px, env(safe-area-inset-top)) + 96px); } .av-pick { grid-template-columns: repeat(8, 1fr); gap: 4px; } }
.stop-banner { position: fixed; z-index: 30; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-5deg); padding: 10px 26px; font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 8vw, 64px); color: #fff; background: #e0313f; box-shadow: 0 0 0 5px #fff, 0 12px 0 5px rgba(0, 0, 0, 0.35); animation: stop-in 1.7s cubic-bezier(.17,1.5,.4,1) both; pointer-events: none; white-space: nowrap; }
@keyframes stop-in { 0% { transform: translate(-50%, -50%) rotate(-24deg) scale(2.4); opacity: 0; } 18% { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -70%) rotate(-5deg); opacity: 0; } }
/* confetti for finals */
.confetti { position: fixed; z-index: 44; top: -14px; width: 9px; height: 9px; pointer-events: none; animation: conf var(--d, 3s) linear var(--w, 0s) both; } @keyframes conf { to { transform: translate(var(--x, 40px), calc(100vh + 40px)) rotate(var(--r, 720deg)); } }

/* ---------- numbers: VT323 everywhere (Pixelify's 2 and 5 read like an S) ---------- */
.hud-box b, .hud-plus, .end-total b, .on-row .tt, .podium .ps, .podium .pb, .slf-ans em, .slf-total b, #slf-time, .pf-num b, .pf-bar b, .pf-best b, .how-step .hp, .door, .door.got .dn, .live-row b, .sprint-pop, .podium-rest b { font-family: var(--f-label); font-weight: 400; letter-spacing: 0.02em; }
.hud-box b { font-size: 29px; line-height: 0.95; }
.hud-plus { font-size: 32px; }
.end-total b { font-size: 66px; line-height: 0.85; }
.on-row .tt { font-size: 26px; }
.podium .ps { font-size: 38px; } .podium .pb { font-size: 46px; line-height: 1; }
.slf-ans em { font-size: 27px; } .slf-total b { font-size: 38px; } #slf-time { font-size: 42px; line-height: 1; }
.pf-num b { font-size: 44px; line-height: 0.9; } .pf-bar b, .pf-best b { font-size: 23px; }
.how-step .hp { font-size: 26px; } .door { font-size: 40px; } .door.got .dn { font-size: 21px; } .live-row b { font-size: 22px; } .sprint-pop { font-size: 31px; }
@media (max-width: 640px) { .hud-box b { font-size: 23px; } .on-row .tt { font-size: 23px; } .door { font-size: 34px; } .end-total b { font-size: 54px; } }
body.playing #btn-profile { display: none; }
/* buttons of long cards stay in reach */
#result .result-actions { position: sticky; bottom: -18px; margin: 14px -22px -18px; padding: 12px 22px 18px; background: linear-gradient(transparent, #0c0e21 26%); }
body[data-theme="b"] #result .result-actions { background: linear-gradient(transparent, #f7f8fb 26%); }
#screen-end .sheet > .sheet-actions { position: sticky; bottom: -22px; margin: 14px -22px -22px; padding: 14px 22px 20px; background: linear-gradient(transparent, #0c0e21 24%); z-index: 2; }
body[data-theme="b"] #screen-end .sheet > .sheet-actions { background: linear-gradient(transparent, #f7f8fb 24%); }
#toast.pass { bottom: calc(100vh - var(--vvh) + 12px); }
@media (max-width: 640px) { #screen-end .sheet > .sheet-actions { gap: 10px; } #screen-end .sheet > .sheet-actions .btn { font-size: 18px; padding: 8px 12px; } }

/* faces on light panels sit on a dark tile */
body[data-theme="b"] .av, #slf .av, body[data-theme="b"] .podium .pod-av { background: #232a52; box-shadow: 0 0 0 3px #232a52; }
#slf .av { width: 26px; height: 26px; margin: 3px; }
body[data-theme="b"] .end-winner { color: #d2377a; }
@media (max-width: 640px) {
  body[data-mode="slf"] #hud { display: none; }
  #slf { top: 60px; max-height: calc(var(--vvh) - 70px); }
}

/* letters that have to be read out loud: plain VT323 */
#slf-letter, #slf-spin, .lobby-code { font-family: var(--f-label); font-weight: 400; }
#slf-letter { font-size: 72px; line-height: 0.75; } #slf-spin { font-size: 220px; } .lobby-code { font-size: clamp(64px, 14vw, 96px); line-height: 0.8; letter-spacing: 0.16em; }
@media (max-width: 640px) {
  #slf-letter { font-size: 58px; }
  #screen-end .sheet, #screen-setup .sheet, #screen-lobby .sheet, #screen-online .sheet, #screen-themes .sheet, #screen-endless .sheet { max-height: calc(var(--vvh) - 78px); }
}

#intro .sheet { width: min(460px, 100%); }
.intro-l { margin: 0 0 8px; font-size: 24px; line-height: 1.1; animation: rise 0.4s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 640px) { body:has(#result:not([hidden])) .hud-mid, body:has(#screen-end:not([hidden])) .hud-mid { display: none !important; } }

/* ---------- themes: postcards ---------- */
#screen-themes .sheet.wide { width: min(820px, 100%); }
#theme-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; padding: 4px; }
.theme-tile { padding: 0; gap: 0; overflow: hidden; background: #0c0e21; color: #f6efd9; box-shadow: 0 0 0 3px #2c3052; animation: card-in 0.4s cubic-bezier(.2,.8,.2,1) both; }
.theme-tile:hover, .theme-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px #f5c542; }
.theme-pic { width: 100%; height: 88px; object-fit: cover; object-position: 50% 58%; image-rendering: pixelated; display: block; transition: transform 0.5s steps(8); }
.theme-tile:hover .theme-pic { transform: scale(1.08); }
.theme-tile .theme-name { padding: 6px 10px 0; font-size: 19px; position: relative; background: #0c0e21; width: 100%; }
.theme-tile .theme-count { padding: 0 10px 7px; position: relative; background: #0c0e21; width: 100%; color: rgba(246, 239, 217, 0.6); }
@media (max-width: 640px) { #theme-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .theme-pic { height: 74px; } .theme-tile .theme-name { font-size: 17px; } }

.theme-tile .theme-name { font-family: var(--f-label); font-size: 24px; line-height: 0.95; }
@media (max-width: 640px) { .theme-tile .theme-name { font-size: 21px; } }

#lobby-cfg .wunsch-form { margin-top: 10px; padding: 12px; background: rgba(246, 239, 217, 0.05); }
body[data-theme="b"] #lobby-cfg .wunsch-form { background: rgba(13, 42, 94, 0.05); }
@media (max-width: 640px) { .wunsch-form .on-join { flex-direction: column; } }

.lobby-players .nm { flex: 1; min-width: 0; }
#lobby-body > .sheet-actions, #setup-body > .sheet-actions { position: sticky; bottom: -22px; margin: 14px -22px -22px; padding: 14px 22px 20px; background: linear-gradient(transparent, #0c0e21 24%); z-index: 2; }
body[data-theme="b"] #lobby-body > .sheet-actions, body[data-theme="b"] #setup-body > .sheet-actions { background: linear-gradient(transparent, #f7f8fb 24%); }

/* the card takes the colour of your tier */
body[data-theme="a"] #result[data-t="1"] { --edge: #b8d86a; } body[data-theme="a"] #result[data-t="2"] { --edge: #7fd4ff; } body[data-theme="a"] #result[data-t="3"] { --edge: #e0513f; } body[data-theme="a"] #result[data-t="4"] { --edge: #ff9a3c; } body[data-theme="a"] #result[data-t="5"] { --edge: #ff8fb1; } body[data-theme="a"] #result[data-t="0"], body[data-theme="a"] #result[data-t="8"] { --edge: #5a5f7c; }
body[data-theme="a"] .res-col.t1 .res-tier { color: #b8d86a; } body[data-theme="a"] .res-col.t2 .res-tier { color: #7fd4ff; } body[data-theme="a"] .res-col.t3 .res-tier { color: #ff7a66; } body[data-theme="a"] .res-col.t4 .res-tier { color: #ff9a3c; } body[data-theme="a"] .res-col.t5 .res-tier { color: #ff8fb1; }
#result { transition: none; }

#toast.in { animation: toast-in 0.3s steps(4) both; }
@keyframes toast-in { from { transform: translate(-50%, 10px) scale(0.8); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (max-width: 640px) {
  body.playing .corner-right { flex-direction: column; }
  #screen-end .sheet > .sheet-actions { gap: 8px 10px; }
  #screen-end .sheet > .sheet-actions .btn { font-size: 17px; padding: 6px 9px; letter-spacing: 0.06em; }
}

/* running score between two players */
.duel-line { display: flex; align-items: baseline; justify-content: center; gap: 14px; font-size: 22px; margin: 4px 0 12px; }
.duel-line .sc { font-size: 34px; line-height: 1; letter-spacing: 0.06em; } .duel-line .p0 { color: var(--p1); } .duel-line .p1 { color: var(--p2); } .duel-line .ti { font-size: 18px; color: var(--muted); }
#screen-title .duel-line { color: #f6efd9; margin: -4px 0 12px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); } #screen-title .duel-line .p0 { color: #f5c542; } #screen-title .duel-line .p1 { color: #ff8fb1; }
#duel-title:empty { display: none; }

#pressing { background: rgba(5, 6, 15, 0.94); }
@media (max-width: 640px) { .tagline { background: rgba(8, 10, 26, 0.6); padding: 1px 10px; } }

/* logo: drawn letters (the font's C closes up at this size) */
.logo, body[data-theme="b"] .logo { text-shadow: none; }
.logo > span { display: flex; gap: 0.06em; }
.logo-l2 { margin-top: -0.02em; }
.logo .lg { height: 1.06em; width: auto; aspect-ratio: 9 / 13; image-rendering: pixelated; display: block; filter: drop-shadow(0 0.04em 0 rgba(0, 0, 0, 0.35)); }
@media (max-width: 640px) {
  /* the season button sits next to the jokers instead of on the question card */
  body.playing .corner-right #btn-season:not([hidden]) { position: fixed; left: 16px; right: auto; top: auto; bottom: calc(100vh - var(--vvh) + max(18px, env(safe-area-inset-bottom)) + 64px); width: 44px; height: 44px; }
}
/* the timer stays readable on snow */
body[data-theme="b"] #timer { background: rgba(13, 42, 94, 0.82); border-radius: 50%; box-shadow: 0 0 0 3px rgba(13, 42, 94, 0.82); }
body[data-theme="b"] #timer-v { color: #ffffff; }

.slf-total.slf-who { margin-top: 2px; } .slf-total.slf-who b { font-size: 27px; } .slf-ans span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* online lobby: wishes and the regulars */
#lobby-cfg .chip-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.wish-avs { display: inline-flex; margin-right: -4px; }
.wish-avs .wav { width: 20px; height: 20px; image-rendering: pixelated; margin-left: -6px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5)); animation: wish-pop 0.32s cubic-bezier(.2, 1.6, .4, 1) both; }
.wish-avs .wav:first-child { margin-left: 0; }
@keyframes wish-pop { from { transform: scale(0.2) translateY(6px); opacity: 0; } }
#lobby-cfg .chip-btn.wish { outline: 2px dashed var(--accent); outline-offset: -2px; }
body[data-theme="b"] #lobby-cfg .chip-btn.wish { outline-color: var(--edge); }
#lobby-cfg .chip-btn:not(.on):has(.wish-avs) { background: rgba(245, 197, 66, 0.16); }
body[data-theme="b"] #lobby-cfg .chip-btn:not(.on):has(.wish-avs) { background: rgba(13, 42, 94, 0.12); }
.wish-row .set-k { color: var(--accent); }
body[data-theme="b"] .wish-row .set-k { color: var(--edge); }
.set-note { font-size: 18px; color: var(--muted); align-self: center; margin-left: 4px; }
.lobby-hint { font-size: 19px; color: var(--muted); margin: 6px 0 0; }
.lobby-players li.bot .nm { font-style: normal; }
.lobby-players li.bot .tg { color: var(--accent); opacity: 0.8; }
body[data-theme="b"] .lobby-players li.bot .tg { color: var(--edge); }
@media (prefers-reduced-motion: reduce) { .wish-avs .wav { animation: none; } }

/* ---------- title: how are you playing? + sections ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin: 0 0 8px; }
.who-b { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #0c0e21; color: #f6efd9;
  box-shadow: 0 -3px 0 0 #2c3052, 0 3px 0 0 #2c3052, -3px 0 0 0 #2c3052, 3px 0 0 0 #2c3052, 0 8px 0 0 rgba(0, 0, 0, 0.35); transition: transform 0.16s steps(3), box-shadow 0.16s steps(3); animation: card-in 0.5s cubic-bezier(.2,.8,.2,1) both; }
.who-b:nth-child(2) { animation-delay: 0.05s; } .who-b:nth-child(3) { animation-delay: 0.1s; }
.who-art { display: block; width: 100%; height: 60px; image-rendering: pixelated; background: #151936; }
.who-n { font-family: var(--f-display); font-size: 24px; line-height: 1.1; padding: 8px 12px 0; }
.who-s { font-family: var(--f-label); font-size: 19px; line-height: 1.05; color: rgba(246, 239, 217, 0.66); padding: 0 12px 10px; }
.who-b:hover, .who-b:focus-visible { transform: translateY(-3px); outline: none; box-shadow: 0 -3px 0 0 #f5c542, 0 3px 0 0 #f5c542, -3px 0 0 0 #f5c542, 3px 0 0 0 #f5c542, 0 11px 0 0 rgba(0, 0, 0, 0.35); }
.who-b.on { box-shadow: 0 -3px 0 0 #f5c542, 0 3px 0 0 #f5c542, -3px 0 0 0 #f5c542, 3px 0 0 0 #f5c542, 0 8px 0 0 rgba(0, 0, 0, 0.35); }
.who-b.on .who-n { color: #f5c542; }
.who-b.on .who-n::after { content: ' ✓'; font-family: var(--f-label); font-size: 20px; }
.who-b.online .who-n::after { content: ' →'; font-family: var(--f-label); font-size: 22px; color: #f5c542; }
.sec-h { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; font-family: var(--f-label); font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 239, 217, 0.62); text-align: left; }
.sec-h .link { font-size: 19px; letter-spacing: 0.06em; text-transform: none; }
.sec-h + .modes { margin-top: 0; }
.mode.card.country { grid-column: 1 / -1; flex-direction: row; }
.mode.card.country .card-img { width: 46%; height: 108px; flex: none; }
.mode.card.country .card-tx { justify-content: center; flex: 1; padding: 10px 16px; }
.mode.card.country .mode-name { font-size: 30px; }
.mode.card.country:hover .card-img { transform: none; }
@media (max-width: 640px) {
  .who { gap: 10px; }
  .who-art { height: 44px; }
  .who-n { font-size: 20px; padding: 6px 9px 0; }
  .who-s { font-size: 16px; padding: 0 9px 8px; }
  .mode.card.country { flex-direction: column; }
  .mode.card.country .card-img { width: 100%; height: 84px; }
  .mode.card.country .mode-name { font-size: 24px; }
}

/* ---------- countries ---------- */
canvas.flag { width: 33px; height: 24px; image-rendering: pixelated; flex: none; }
canvas.flag.big { width: 66px; height: 48px; }
.c-search { width: 100%; margin: 6px 0 10px; }
.c-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: min(52vh, 520px); overflow-y: auto; padding: 2px; }
.c-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; text-align: left; background: rgba(246, 239, 217, 0.06); color: var(--text); cursor: pointer; font-size: 21px; }
.c-row:hover, .c-row:focus-visible { background: rgba(245, 197, 66, 0.18); outline: none; }
.c-row .c-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-row .c-n { font-family: var(--f-label); font-size: 17px; color: var(--muted); white-space: nowrap; }
.c-row.home { box-shadow: inset 4px 0 0 #f5c542; background: rgba(245, 197, 66, 0.12); }
.c-row.home .c-n { color: #f5c542; }
.c-row.locked { opacity: 0.45; }
.crowd-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 2px; font-family: var(--f-label); font-size: 20px; text-align: left; }
.crowd-note em { flex-basis: 100%; font-style: normal; font-size: 17px; color: var(--muted); padding-left: 43px; }
.chip.crowd b { margin-left: 6px; font-weight: 400; opacity: 0.7; }
.country-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 12px 0; padding: 14px; background: rgba(245, 197, 66, 0.08); box-shadow: inset 0 0 0 2px rgba(245, 197, 66, 0.3); text-align: left; }
.country-end .ce-tx { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.country-end b { font-size: 22px; color: #f5c542; font-weight: 400; }
.country-end span { font-family: var(--f-label); font-size: 19px; color: var(--muted); }
body[data-theme="b"] .country-end b { color: var(--edge); }

/* ---------- online teams ---------- */
.lobby-players.teamed { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.lobby-players > li.team-box { display: flex; flex-direction: column; gap: 4px; padding: 0 0 6px; background: rgba(246, 239, 217, 0.03); box-shadow: inset 0 3px 0 var(--tc); }
body[data-theme="b"] .lobby-players > li.team-box { background: rgba(13, 42, 94, 0.04); }
.team-h { border: 0; background: none; color: var(--tc); text-align: left; padding: 8px 10px 2px; font-family: var(--f-display); font-size: 20px; cursor: pointer; }
.team-h span { font-family: var(--f-label); font-size: 18px; color: var(--muted); }
.team-h:hover { text-decoration: underline; text-underline-offset: 4px; }
.team-list { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-direction: column; gap: 4px; }
.team-list li { box-shadow: inset 4px 0 0 var(--tc, transparent); }
.team-box .team-list li { --tc: inherit; }
.team-mv { border: 0; background: none; color: var(--tc); font-size: 20px; padding: 0 2px; cursor: pointer; }
.team-strip { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.team-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 7px 12px; background: rgba(246, 239, 217, 0.06); box-shadow: inset 4px 0 0 var(--tc); animation: rise 0.35s cubic-bezier(.2,.8,.2,1) both; text-align: left; }
.team-row.mine { background: rgba(245, 197, 66, 0.12); }
.team-row b { color: var(--tc); font-weight: 400; font-size: 21px; white-space: nowrap; }
.team-row .team-sub { font-family: var(--f-label); font-size: 18px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row .team-tot { font-family: var(--f-label); font-size: 24px; }
body[data-theme="b"] .team-row { background: rgba(13, 42, 94, 0.06); }
.live-row.team { font-weight: 400; box-shadow: inset 4px 0 0 var(--c); }
.live-row.team span { color: var(--c); }
.live-row.team { grid-template-columns: minmax(40px, 112px) auto; } @media (max-width: 640px) { .live-row.team { grid-template-columns: auto auto; } }
.lobby-players > li.team-box { align-items: stretch; text-align: left; } .team-list { width: 100%; box-sizing: border-box; } .team-list > li { width: 100%; box-sizing: border-box; margin: 0; } .team-h { align-self: stretch; }
