/* Grandetův poklad – hra (hostitel + hráč). Zelené sukno, zlato, karetní barvy.
   Projektor: pevné plátno 1600 × 900 (škáluje se), mobil: plynulé rozvržení. */

:root {
  --felt: #0e2a22;
  --felt-2: #143829;
  --felt-3: #1d4a38;
  --felt-deep: #08180f;
  --line: rgba(226, 181, 74, 0.28);
  --gold: #e2b54a;
  --gold-2: #f6d98a;
  --gold-deep: #a97b22;
  --cream: #f6eedb;
  --cream-2: #dcd3bd; /* čitelný doplňkový text */
  --muted: #b5c8bb; /* jen dekorace */
  --ink: #1d1a14;
  --spade: #2f5f8f;
  --heart: #b3363f;
  --diamond: #e3a83c;
  --club: #2f8a57;
  --violet: #7b5ea7;
  --violet-2: #9a7fd0;
  --ok: #3fae6c;
  --bad: #d04b53;
  --amber: #5a4512;
  --radius: 18px;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nums: lining-nums tabular-nums;
}

* { box-sizing: border-box; }

html { background: var(--felt); touch-action: manipulation; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--felt);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }

.loading { text-align: center; padding: 30vh 16px; color: var(--muted); }
.brand { font-family: var(--display); font-weight: 800; color: var(--gold); margin: 0; line-height: 1.02; letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--gold-2); margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--cream-2); line-height: 1.45; text-wrap: pretty; }
.lead b { color: var(--cream); }
.error { color: #ff9a9f; min-height: 1.2em; font-weight: 700; margin: 4px 0 0; }
.small { font-size: 0.9rem; }
.big-title { font-family: var(--display); font-weight: 800; color: var(--gold); margin: 0; line-height: 1.04; text-wrap: balance; font-variant-numeric: var(--nums); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }

/* zlaťák kreslený v CSS (emoji 🪙 na Windows 10 chybí) */
.coin-ico {
  display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; vertical-align: -0.12em; flex: none; font-style: normal;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65) 0 16%, transparent 17%),
    radial-gradient(circle, #f6d98a 0 54%, #c9952f 55% 62%, #e2b54a 63%);
  box-shadow: inset 0 -0.08em 0 #a6741c, 0 1px 2px rgba(0, 0, 0, 0.35);
}
.coins { white-space: nowrap; font-variant-numeric: var(--nums); }

.input {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: rgba(0, 0, 0, 0.28); color: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: rgba(246, 238, 219, 0.4); }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgba(226, 181, 74, 0.18); }
.input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(208, 75, 83, 0.2); }
.shake { animation: shake 0.32s; }

.btn {
  border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 1rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.12s ease, background 0.2s, opacity 0.3s, filter 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--ink); border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:disabled { filter: grayscale(0.5) brightness(0.75); }
.btn.danger { background: linear-gradient(180deg, #e3717a, var(--bad) 60%, #9c2f37); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.btn.big { font-size: 1.2rem; padding: 16px 30px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--cream-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--cream); }
.btn.icon { padding: 10px 14px; }

kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); border-bottom-width: 3px; font: inherit; font-weight: 800; text-align: center; background: rgba(255, 255, 255, 0.06); }

/* ------------------------------------------------------------------ timer */

.timer { position: relative; width: 92px; height: 92px; flex: none; }
.timer .ring, .timer svg { display: block; width: 100%; height: 100%; }
.timer svg { transform: rotate(-90deg); overflow: visible; }
.timer circle { fill: none; stroke-width: 9; }
.timer .track { stroke: rgba(255, 255, 255, 0.12); }
.timer .bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); transition: stroke 0.3s; filter: drop-shadow(0 0 6px rgba(226, 181, 74, 0.5)); }
.timer .timer-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 2rem; font-variant-numeric: var(--nums); }
.timer.urgent .bar { stroke: var(--bad); filter: drop-shadow(0 0 8px rgba(208, 75, 83, 0.7)); }
.timer.urgent .timer-num { color: #ff9a9f; }

.timebar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; width: 100%; }
.timebar span, .readybar span, .qbar span {
  display: block; height: 100%; width: calc(var(--p, 1) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, var(--gold-2));
}
.timebar.urgent span, .qbar.urgent span { background: linear-gradient(90deg, #8c2a30, #ff6b73); }

/* ------------------------------------------------------------------ suits */

.s0 { --c: var(--spade); --t: #fff; }
.s1 { --c: var(--heart); --t: #fff; }
.s2 { --c: var(--diamond); --t: var(--ink); }
.s3 { --c: var(--club); --t: #fff; }
/* Pravda/Nepravda: neutrální barvy – zelená a červená patří až výsledku */
.tf-yes { --c: var(--spade); --t: #fff; }
.tf-no { --c: var(--diamond); --t: var(--ink); }

/* ------------------------------------------------------------------ truhla */

.chest { position: relative; }
.chest svg { display: block; width: 100%; height: auto; overflow: visible; }
.chest .ch-lid { transform-box: view-box; transform-origin: 18px 98px; transition: transform 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); }
.chest.open .ch-lid { transform: rotate(-24deg) translate(-2px, -8px); }
.chest .ch-glow { opacity: 0; transition: opacity 0.8s 0.25s; }
.chest.open .ch-glow { opacity: 1; }
.chest .ch-heap, .chest .ch-in { opacity: 0; transition: opacity 0.2s 0.2s; }
.chest.open .ch-heap, .chest.open .ch-in { opacity: 1; }
.chest.wobble svg { animation: chest-wobble 2.8s ease-in-out infinite; transform-origin: 50% 92%; }
.chest.bounce { animation: chest-bounce 0.45s ease; }

/* ------------------------------------------------------------------ efekty */

.coin-rain, .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.coin-rain .coin-ico { position: absolute; top: -60px; animation-name: fall; animation-timing-function: cubic-bezier(0.35, 0, 0.75, 1); animation-fill-mode: both; animation-iteration-count: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)); }
.confetti i { position: absolute; top: -30px; border-radius: 2px; animation-name: confetti-fall; animation-timing-function: linear; animation-fill-mode: both; }
body.play > .coin-rain, body.play > .confetti { position: fixed; z-index: 30; }

/* ================================================================== HOST (projektor) */

body.host { overflow: hidden; background: #0a1f18; }
body.host #app { position: fixed; inset: 0; overflow: hidden; }

.host-canvas {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  display: grid; grid-template-rows: 64px 1fr 76px; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, 0.075), transparent 60%),
    radial-gradient(1000px 700px at 50% 125%, rgba(0, 0, 0, 0.45), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.013) 0 2px, transparent 2px 6px),
    var(--felt);
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.6);
  font-size: 24px;
}
.host-canvas::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(226, 181, 74, 0.16); border-radius: 6px; pointer-events: none; z-index: 6; }
body.idle .host-canvas { cursor: none; }

/* top bar */
.topbar {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 0 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.16)); border-bottom: 1px solid var(--line); font-weight: 700;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 26px; white-space: nowrap; }
.logo .coin-ico { width: 30px; height: 30px; }
.progress { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; min-width: 0; }
.pdots { display: flex; align-items: center; gap: 9px; }
.pd { position: relative; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; transition: background 0.4s, transform 0.4s; flex: none; }
.pd.k-poll { background: rgba(154, 127, 208, 0.4); }
.pd.k-golden { background: none; width: 18px; height: 18px; font-size: 20px; line-height: 1; color: rgba(246, 217, 138, 0.4); }
.pd.k-chest { background: none; width: 26px; height: 24px; }
.pd-chest { display: block; width: 26px; opacity: 0.55; }
.pd.done { background: var(--gold); }
.pd.k-poll.done { background: var(--violet-2); }
.pd.k-golden.done { background: none; color: var(--gold); }
.pd.k-chest.done .pd-chest { opacity: 1; }
.pd.cur { width: 18px; height: 18px; margin: 0 3px; background: var(--gold-2); box-shadow: 0 0 0 2px rgba(10, 30, 22, 0.9), 0 0 0 4px rgba(246, 217, 138, 0.6); animation: dot-pulse 2s ease-in-out infinite; }
.pd.k-poll.cur { background: #c9b6f2; box-shadow: 0 0 0 2px rgba(10, 30, 22, 0.9), 0 0 0 4px rgba(201, 182, 242, 0.6); }
.pd.k-golden.cur, .pd.k-chest.cur { background: none; box-shadow: none; animation: none; color: var(--gold-2); width: auto; height: auto; transform: scale(1.35); }
.pd.k-chest.cur .pd-chest { opacity: 1; }
.plabel { font-size: 22px; color: var(--cream); white-space: nowrap; font-variant-numeric: var(--nums); }
.top-right { display: flex; align-items: center; gap: 12px; }
.top-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 999px; font-size: 22px; font-weight: 700; color: var(--cream); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-variant-numeric: var(--nums); }
.top-btn:hover { background: rgba(255, 255, 255, 0.12); }
.top-btn .of { color: var(--cream-2); font-weight: 600; }
.top-btn.sound { width: 48px; justify-content: center; padding: 5px 0; }
.top-btn.sound.muted { opacity: 0.6; }
.pin-pill { padding: 5px 16px; border-radius: 999px; border: 1px solid rgba(226, 181, 74, 0.45); color: var(--gold-2); font-size: 22px; font-weight: 700; white-space: nowrap; }
.pin-pill b { letter-spacing: 0.12em; font-variant-numeric: var(--nums); }
.pin-pill.big { background: rgba(226, 181, 74, 0.15); border-color: var(--gold); font-size: 24px; }
.sound-pill { padding: 6px 16px; border-radius: 999px; border: 1px solid #c79a33; background: var(--amber); color: #ffe7a8; font-weight: 800; font-size: 20px; animation: nudge 2.4s ease-in-out infinite; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex: none; }
.dot.off { background: var(--bad); box-shadow: 0 0 12px var(--bad); animation: blink 1s infinite; }

/* časová lišta přes celou šířku */
.qbar { position: absolute; top: 64px; left: 0; right: 0; height: 12px; z-index: 4; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.3s; }
.qbar span { border-radius: 0 6px 6px 0; box-shadow: 0 0 18px rgba(226, 181, 74, 0.5); }
.host-canvas.timed .qbar { opacity: 1; }

/* stage */
.stage { position: relative; overflow: hidden; min-height: 0; }
.stage > section { position: absolute; inset: 0; padding: 30px 56px 14px; animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.stage > section.leaving { animation: fade-out 0.32s ease forwards; pointer-events: none; z-index: 0; }
.stage > section.from-intro { animation: none; }
.stage > section.from-intro .q-head, .stage > section.from-intro .q-foot { animation: rise 0.5s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s; }
.stage.urgent::after { box-shadow: inset 0 0 160px rgba(208, 75, 83, 0.4); opacity: 0.55; }
.stage.urgent.beat::after { animation: beat 1s ease-out; }
.host-canvas.golden .stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 0 3px rgba(226, 181, 74, 0.6), inset 0 0 140px rgba(226, 181, 74, 0.16); }

/* controls */
.controls { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 30px; }
.c-left, .c-right { display: flex; align-items: center; gap: 10px; }
.controls .btn { font-size: 20px; padding: 11px 22px; transition: opacity 0.35s, transform 0.35s, background 0.2s, filter 0.2s; }
.controls .btn.icon { padding: 9px 16px; }
.controls .btn.primary { min-width: 280px; font-size: 22px; padding: 14px 30px; }
.controls .btn.primary.waiting { background: rgba(255, 255, 255, 0.07); color: var(--cream-2); box-shadow: none; filter: none; border: 1px dashed rgba(255, 255, 255, 0.25); }
.controls .btn.rematch { min-width: 0; }
.next-hint { font-size: 20px; font-weight: 700; color: rgba(246, 238, 219, 0.55); opacity: 0; transition: opacity 0.35s; white-space: nowrap; }
body.idle .controls .btn { opacity: 0; transform: translateY(14px); pointer-events: none; }
body.idle .next-hint { opacity: 1; }

/* shared head of question-like screens */
.q-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; flex: none; }
.q-meta { display: flex; align-items: center; gap: 20px; }
.q-num { font-size: 24px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-2); font-variant-numeric: var(--nums); }
.q-status { display: flex; align-items: center; gap: 28px; }
.q-status .timer, .chest-status .timer { width: 120px; height: 120px; }
.q-status .timer-num, .chest-status .timer-num { font-size: 48px; }
.timer.urgent .timer-num { animation: tick-pulse 1s ease-out infinite; }

.answered { position: relative; display: flex; align-items: baseline; gap: 12px; }
.ans-word { font-size: 26px; font-weight: 700; color: var(--cream-2); }
.ans-count { display: inline-block; min-width: 2ch; text-align: right; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--cream); font-variant-numeric: var(--nums); }
.ans-count.bump { animation: bump 0.4s ease; }
.ans-of { font-size: 30px; font-weight: 700; color: var(--cream-2); min-width: 3.2ch; font-variant-numeric: var(--nums); }
.ans-all { position: absolute; right: 0; top: 100%; margin-top: 4px; white-space: nowrap; font-size: 22px; font-weight: 800; color: var(--gold-2); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }
.answered.all .ans-all { opacity: 1; transform: none; animation: glow-text 0.7s ease-in-out 2; }
.answered.all .ans-count { color: var(--gold-2); }

.rv-head { display: none; text-align: right; }
.revealing .q-status { display: none; }
.revealing .rv-head { display: block; animation: rise 0.5s ease both; }
.rv-main { font-size: 32px; font-weight: 700; }
.rv-main b { font-family: var(--display); font-size: 46px; color: var(--gold-2); font-variant-numeric: var(--nums); }
.rv-sub { font-size: 26px; color: var(--cream-2); margin-top: 2px; }
.rv-sub b { color: var(--cream); }
.rv-sub.gold b { color: var(--gold-2); }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px; border-radius: 999px; white-space: nowrap;
  font-weight: 800; letter-spacing: 0.03em; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--cream); font-size: 24px;
}
.badge i { font-style: normal; font-size: 1.1em; line-height: 1; }
.badge .suits { font-size: 0.85em; letter-spacing: 0.06em; color: var(--gold-2); }
.badge.big { font-size: 30px; padding: 12px 30px; }
.badge.gold {
  color: var(--ink); border: 0;
  background: linear-gradient(110deg, #d9a43a 0%, #f6d98a 30%, #fff4c4 45%, #f6d98a 60%, #c9952f 100%);
  background-size: 250% 100%; animation: shimmer 3.2s linear infinite; box-shadow: 0 0 36px rgba(226, 181, 74, 0.45);
}
.badge.violet { background: var(--violet-2); border-color: #c9b6f2; color: #fff; }
.badge.violet i { display: grid; place-items: center; width: 1.55em; height: 1.55em; margin-left: -10px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); font-size: 0.95em; }

/* setup */
.setup { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(900px 600px at 50% 40%, rgba(226, 181, 74, 0.1), transparent 70%); }
.setup-card {
  width: 1000px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 44px 60px 38px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.18)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.setup-chest { width: 190px; margin-top: -10px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.setup-chest svg { animation: chest-wobble 3.2s ease-in-out infinite; transform-origin: 50% 92%; }
.setup-card .eyebrow { font-size: 22px; margin: 0; }
.setup-card .brand { font-size: 96px; white-space: nowrap; }
.setup-card .lead { font-size: 28px; margin: 0; max-width: 640px; }
.setup-card .input { font-size: 26px; max-width: 460px; text-align: center; }
.setup-card .btn.big { font-size: 30px; padding: 18px 46px; margin-top: 6px; }
.setup-card .error { font-size: 22px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 4px 0 0; font-size: 20px; color: var(--cream-2); }
.warn-box { display: grid; gap: 4px; width: 100%; padding: 16px 22px; border-radius: 16px; background: var(--amber); border: 2px solid #c79a33; color: #ffe7a8; font-size: 24px; text-align: left; }
.warn-box b { font-size: 26px; color: #fff3cf; }

/* lobby */
.lobby { display: grid; grid-template-columns: 1fr 470px; grid-template-rows: minmax(0, 1fr) 206px; column-gap: 60px; row-gap: 18px; }
.lobby-info { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.lobby .eyebrow { font-size: 22px; }
.lobby .brand { font-size: 88px; margin: 0 0 20px; }
.join-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.join-steps li { display: flex; align-items: center; gap: 20px; font-size: 32px; min-height: 56px; }
.join-steps .n { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 800; font-size: 26px; box-shadow: 0 4px 0 var(--gold-deep); }
.join-steps b { font-weight: 700; }
.join-steps small { display: block; font-size: 22px; color: var(--cream-2); font-weight: 600; line-height: 1.2; }
.pin-big { font-family: var(--display); font-size: 62px; line-height: 1; color: var(--gold-2); letter-spacing: 0.14em; padding: 6px 12px 8px 26px; margin-left: 4px; border: 2px solid var(--gold); border-radius: 16px; background: rgba(0, 0, 0, 0.28); font-variant-numeric: var(--nums); box-shadow: 0 0 40px rgba(226, 181, 74, 0.2); }
.rule-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; }
.rule-strip li { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.08); }
.rule-strip .ri { font-size: 36px; flex: none; }
.rule-strip .ri .coin-ico { width: 34px; height: 34px; vertical-align: middle; }
.rule-strip b { display: block; font-size: 24px; }
.rule-strip span { display: block; font-size: 22px; color: var(--cream-2); line-height: 1.2; }
.lobby-join { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
.qr-card { padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(226, 181, 74, 0.4); }
.qr { width: 372px; height: 372px; color: #000; }
.qr svg { display: block; width: 100%; height: 100%; }
.url-row { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.join-url { font-size: 34px; font-weight: 800; color: var(--gold-2); letter-spacing: 0.01em; font-variant-numeric: var(--nums); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt-btn { flex: none; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); font-size: 18px; font-weight: 700; color: var(--cream-2); }
.docker-warn { margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--amber); color: #ffe7a8; font-size: 20px; font-weight: 700; text-align: center; }

.lobby-players { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding-top: 16px; border-top: 1px dashed var(--line); min-height: 0; }
.pcount { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pnum { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 0.92; color: var(--gold-2); font-variant-numeric: var(--nums); text-shadow: 0 0 40px rgba(226, 181, 74, 0.25); }
.pnum.bump { animation: bump 0.45s ease; }
.pword { font-size: 24px; font-weight: 700; color: var(--cream); }
.pcount .prune { align-self: flex-start; margin-top: 8px; font-size: 18px; padding: 6px 12px; white-space: nowrap; }
.chips { position: relative; min-height: 0; }
.players { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; height: 100%; overflow: hidden; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; cursor: pointer; font-weight: 700;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); max-width: 330px;
}
.chip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--bad); }
.players.lg .chip { font-size: 26px; padding: 8px 22px 8px 10px; }
.players.lg .av { font-size: 32px; }
.players.md .chip { font-size: 22px; padding: 6px 18px 6px 8px; }
.players.md .av { font-size: 26px; }
.players.sm .chip { font-size: 18px; padding: 4px 12px 4px 6px; max-width: 240px; }
.players.sm .av { font-size: 21px; }
/* hodně hráčů: hustá mřížka jmen – jména nikdy nezmizí */
.players.xs, .players.xxs { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 6px 16px; align-content: start; }
.players.xs .chip, .players.xxs .chip { max-width: none; min-width: 0; gap: 8px; padding: 2px 8px 2px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border-color: transparent; font-size: 20px; line-height: 1.25; }
.players.xs .av { font-size: 22px; }
.players.xxs { grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 3px 12px; }
.players.xxs .chip { font-size: 16px; padding: 1px 6px 1px 3px; }
.players.xxs .av { font-size: 18px; }
.players.xs .chip.offline, .players.xxs .chip.offline { border-color: rgba(255, 255, 255, 0.22); }
.players.xs .chip .zzz, .players.xxs .chip .zzz { position: static; margin-left: auto; flex: none; font-size: 12px; line-height: 16px; }
.chip.new { animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.chip.new::after { content: '✦'; position: absolute; top: -10px; right: -4px; color: var(--gold-2); font-size: 22px; animation: sparkle 0.9s ease-out forwards; pointer-events: none; }
.chip .zzz { display: none; }
.chip.offline { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, 0.3); color: var(--cream-2); }
.chip.offline .av { opacity: 0.5; filter: grayscale(1); }
.chip.offline .zzz { display: block; position: absolute; top: -9px; right: 6px; padding: 0 6px; border-radius: 99px; background: #3a4a44; color: var(--cream); font-size: 14px; font-weight: 800; line-height: 18px; }
.empty-chips { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 16px; }
.lobby-players.empty .empty-chips { display: flex; }
.ghosts { display: flex; gap: 12px; }
.ghost-chip { width: 170px; height: 54px; border-radius: 999px; border: 2px dashed rgba(255, 255, 255, 0.18); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%); background-size: 300% 100%; animation: shimmer 2.4s calc(var(--i) * 0.15s) linear infinite; }
.empty-chips p { margin: 0; font-size: 28px; font-weight: 700; color: var(--cream-2); }

/* plné předsálí (13+ hráčů): menší záhlaví a QR, víc místa pro jména */
.lobby.crowded { grid-template-rows: minmax(0, 1fr) 344px; row-gap: 14px; }
.lobby.crowded .rule-strip { display: none; }
.lobby.crowded .eyebrow { font-size: 18px; margin-bottom: 4px; }
.lobby.crowded .brand { font-size: 64px; margin-bottom: 14px; }
.lobby.crowded .join-steps { margin: 0; gap: 6px; }
.lobby.crowded .join-steps li { font-size: 28px; min-height: 50px; }
.lobby.crowded .join-steps .n { width: 44px; height: 44px; font-size: 23px; }
.lobby.crowded .join-steps small { font-size: 20px; }
.lobby.crowded .pin-big { font-size: 52px; }
.lobby.crowded .lobby-join { gap: 10px; }
.lobby.crowded .qr-card { padding: 12px; border-radius: 18px; }
.lobby.crowded .qr { width: 262px; height: 262px; }
.lobby.crowded .join-url { font-size: 28px; }
.lobby.crowded .lobby-players { grid-template-columns: 210px 1fr; padding-top: 14px; }
.lobby.crowded .pnum { font-size: 84px; }

/* bet */
.bet { display: flex; flex-direction: column; align-items: center; }
.bet .q-head { width: 100%; }
.bet .big-title { font-size: 84px; margin-top: -6px; }
.topic { font-size: 40px; margin: 10px 0 0; font-weight: 600; }
.topic b { color: var(--gold-2); font-family: var(--display); font-weight: 700; }
.bet-main { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 1.2fr auto 0.8fr; align-items: center; gap: 50px; padding: 6px 0 10px; }
.bet-rules p { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; font-size: 28px; line-height: 1.25; }
.bet-rules b { color: var(--gold-2); }
.bet-rules .small-note { font-size: 22px; color: var(--cream-2); padding-left: 60px; margin: 0; }
.mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 26px; color: #fff; }
.mark.ok { background: var(--ok); }
.mark.bad { background: var(--bad); }
.bet-stacks { display: flex; align-items: flex-end; gap: 26px; height: 290px; }
.stack { width: 112px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.stack .scount { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: var(--nums); color: var(--cream-2); transition: color 0.3s; }
.stack.has .scount { color: var(--cream); }
.pile { position: relative; width: 96px; height: calc(var(--h, 0) * 1.9px + 10px); transition: height 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); border-radius: 48px / 12px; background: repeating-linear-gradient(0deg, #a97b22 0 3px, #f6d98a 3px 9px, #e2b54a 9px 13px); box-shadow: inset -10px 0 14px rgba(0, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.35); }
.pile::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff4c4, #e2b54a 60%, #c9952f); box-shadow: inset 0 -2px 0 #a6741c; }
.stack:not(.has) .pile { opacity: 0.3; }
.stack .slabel { font-size: 24px; font-weight: 800; }
.stack.allin .slabel { color: #ff9a9f; }
.bet-total { text-align: right; }
.bet-total > span { display: block; font-size: 26px; font-weight: 700; color: var(--cream-2); text-transform: uppercase; letter-spacing: 0.14em; }
.bet-total b { display: block; font-family: var(--display); font-size: 64px; line-height: 1.1; color: var(--gold-2); font-variant-numeric: var(--nums); white-space: nowrap; }
.bet-total b .coin-ico { width: 52px; height: 52px; vertical-align: -6px; }
.bet .roster { width: 100%; }

/* intro */
.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; }
.intro::before { content: ''; position: absolute; left: 50%; top: 48%; width: 1300px; height: 620px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.05), transparent); pointer-events: none; }
.intro.golden::before { background: radial-gradient(closest-side, rgba(246, 217, 138, 0.22), transparent); animation: breathe 3s ease-in-out infinite; }
.intro.poll::before { background: radial-gradient(closest-side, rgba(154, 127, 208, 0.25), transparent); }
.q-eyebrow { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); font-variant-numeric: var(--nums); }
.q-text { font-family: var(--display); font-weight: 700; line-height: 1.14; margin: 0; text-wrap: balance; overflow: hidden; }
.intro .q-text { position: relative; max-width: 1360px; font-size: 76px; }
.intro.golden .q-text { color: var(--gold-2); }
.q-text .w { display: inline-block; animation: word-in 0.55s calc(var(--i) * 40ms + 200ms) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.readybar { position: relative; width: 640px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ready { position: relative; margin: 0; font-size: 26px; color: var(--cream-2); }

/* question */
.question { display: flex; flex-direction: column; gap: 20px; }
.question .q-text { flex: none; text-align: center; max-width: 1400px; margin: 0 auto; font-size: 60px; transition: font-size 0.5s; }
.question.golden .q-text { color: var(--gold-2); }
.options { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 18px; }
.options.n3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative; display: flex; align-items: center; gap: 22px; min-height: 0;
  padding: 14px 30px 14px 26px; border-radius: 22px; border: 3px solid transparent;
  background: var(--c); color: var(--t); font-weight: 800; font-size: 40px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28), 0 16px 32px rgba(0, 0, 0, 0.25);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1), border-color 0.5s;
}
.opt:nth-child(2) { animation-delay: 70ms; }
.opt:nth-child(3) { animation-delay: 140ms; }
.opt:nth-child(4) { animation-delay: 210ms; }
.opt .suit { position: relative; z-index: 1; flex: none; width: 62px; text-align: center; font-size: 56px; line-height: 1; transition: color 0.5s; }
.opt .otext { position: relative; z-index: 1; flex: 1; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.options.long .opt { font-size: 32px; }
.opt .ocount { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; font-variant-numeric: var(--nums); }
.opt .ocount b { font-family: var(--display); font-weight: 800; font-size: 54px; }
.opt .ocount small { font-size: 22px; font-weight: 700; opacity: 0.9; margin-top: 4px; white-space: nowrap; }
.opt .oclip { position: absolute; inset: 0; border-radius: 19px; overflow: hidden; z-index: 0; pointer-events: none; }
.opt .ofill { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, 0.1); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 0; }
.opt .ofill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: rgba(255, 255, 255, 0.8); }
.s2 .ofill::after, .tf-no .ofill::after { background: rgba(29, 26, 20, 0.55); }
.opt.wrong .ofill::after { background: var(--c); }
.revealing .opt .ofill { width: var(--w, 0%); }
.options.tf .opt { justify-content: center; font-size: 56px; }
.options.tf .opt .otext { flex: none; }
.options.tf .opt .ocount { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); }
.options.tf .opt .suit { font-size: 64px; }

.revealed .opt.wrong { background: #0f211a; color: rgba(246, 238, 219, 0.5); box-shadow: none; border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.revealed .opt.wrong .suit { color: var(--c); }
.revealed .opt.wrong .ofill { background: color-mix(in srgb, var(--c) 22%, transparent); }
.revealed .opt.correct { z-index: 2; transform: scale(1.035); border-color: var(--gold-2); box-shadow: 0 0 0 6px var(--gold-2), 0 0 80px rgba(246, 217, 138, 0.55), 0 10px 0 rgba(0, 0, 0, 0.3); animation: pop-correct 0.55s cubic-bezier(0.2, 1.5, 0.4, 1); }
.revealed .opt.correct .oclip::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 1s 0.15s ease-out forwards; pointer-events: none; }
.stamp, .maj { position: absolute; top: -17px; right: 26px; z-index: 3; padding: 4px 16px 5px; border-radius: 10px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); animation: stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; white-space: nowrap; }
.stamp { background: var(--gold-2); color: var(--ink); }
.maj { background: #c9b6f2; color: #2a1d48; }
.revealed.poll .opt.majority { z-index: 2; border-color: #c9b6f2; box-shadow: 0 0 0 5px #c9b6f2, 0 0 60px rgba(154, 127, 208, 0.5), 0 8px 0 rgba(0, 0, 0, 0.28); }
.revealed.poll .opt .ofill { background: rgba(255, 255, 255, 0.12); }

.q-foot { flex: none; display: flex; justify-content: center; align-items: center; min-height: 52px; }
.explain {
  display: flex; align-items: flex-start; gap: 18px; width: 100%; padding: 18px 28px; border-radius: 18px;
  background: rgba(0, 0, 0, 0.32); border-left: 6px solid var(--gold); font-size: 32px; line-height: 1.3; color: var(--cream);
  animation: slide-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.explain p { margin: 0; text-wrap: pretty; }
.explain .ex-ico { font-size: 34px; line-height: 1.2; flex: none; }
.explain.discuss { justify-content: center; text-align: left; border-left: 6px solid var(--violet-2); background: rgba(60, 40, 100, 0.35); font-family: var(--display); font-style: italic; font-size: 40px; font-weight: 600; padding: 22px 36px; }
.explain.discuss b { font-family: var(--sans); font-style: normal; font-size: 26px; text-transform: uppercase; letter-spacing: 0.12em; color: #d9caff; display: block; margin-bottom: 4px; }
.explained.poll .q-text { font-size: 40px !important; }

/* roster: kdo už odpověděl */
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-height: 100px; overflow: hidden; }
.tok { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.12); opacity: 0.28; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s, border-color 0.3s, background 0.3s; }
.tok.in { opacity: 1; filter: none; border-color: var(--gold); background: rgba(226, 181, 74, 0.2); }
.tok.pop { animation: tok-pop 0.32s cubic-bezier(0.2, 1.6, 0.4, 1); }
.roster.dense .tok { width: 36px; height: 36px; font-size: 21px; }

/* leaderboard */
.board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-bottom: 40px !important; }
.board .big-title { font-size: 76px; }
.ranks { position: relative; width: 1260px; flex: none; }
.row {
  position: absolute; left: 0; right: 0; top: 0; height: 86px; translate: 0 var(--y);
  transition: translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d), opacity 0.5s var(--d), border-color 0.6s var(--d);
  display: grid; grid-template-columns: 70px 60px minmax(0, 1fr) auto auto 250px; align-items: center; gap: 18px; padding: 0 30px 0 24px;
  border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; font-weight: 700;
}
.row.out { opacity: 0; }
.board.static .row { animation: slide-in 0.5s var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) both; transition: none; }
.row.first { border-color: var(--gold); background: linear-gradient(90deg, rgba(226, 181, 74, 0.2), rgba(0, 0, 0, 0.3) 55%); }
.row .rk { font-family: var(--display); font-weight: 800; font-size: 50px; color: var(--gold); text-align: center; font-variant-numeric: var(--nums); line-height: 1; }
.row .av { font-size: 44px; text-align: center; line-height: 1; }
.row .nm { font-size: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips2 { display: flex; gap: 10px; }
.move, .fire { padding: 4px 14px; border-radius: 999px; font-size: 24px; font-weight: 800; white-space: nowrap; }
.move:empty { display: none; }
.move.up { background: rgba(63, 174, 108, 0.25); color: #8fe3ad; animation: pop 0.4s 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.move.down { background: rgba(208, 75, 83, 0.25); color: #ffadb1; animation: pop 0.4s 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.fire { background: rgba(208, 75, 83, 0.22); color: #ffd0a0; }
.row .gain { font-size: 28px; font-weight: 800; color: #8fe3ad; white-space: nowrap; font-variant-numeric: var(--nums); }
.row .gain.neg { color: #ffadb1; }
.row .cn { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--gold-2); text-align: right; white-space: nowrap; font-variant-numeric: var(--nums); }
.row .cn .coin-ico { width: 36px; height: 36px; vertical-align: -4px; }
.rbar { position: absolute; left: 0; bottom: 0; height: 6px; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0.85; }
.board.moved .rbar, .board.static .rbar { width: var(--w); }
.others { margin: 0; font-size: 24px; color: var(--cream-2); }

/* finále: truhla */
.finale { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chest-head { text-align: center; }
.finale .big-title { font-size: 80px; }
.chest-main { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 1fr 330px 1fr; align-items: center; gap: 40px; }
.choice { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 270px; padding: 24px 30px; border-radius: 24px; border: 3px solid; }
.choice .ci { font-size: 54px; line-height: 1; }
.choice b { font-family: var(--display); font-size: 46px; line-height: 1.1; }
.choice p { margin: 0; font-size: 28px; line-height: 1.3; color: var(--cream); text-wrap: pretty; }
.choice.give { border-color: var(--gold); background: linear-gradient(160deg, rgba(226, 181, 74, 0.2), rgba(226, 181, 74, 0.05)); }
.choice.give b { color: var(--gold-2); }
.choice.keep { border-color: rgba(255, 255, 255, 0.28); background: rgba(0, 0, 0, 0.3); }
.chest-box { position: relative; }
.chest-box .chest { width: 330px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.5)); }
.drops { position: absolute; inset: 0; pointer-events: none; }
.drops .drop { position: absolute; left: calc(50% + var(--x)); top: -30px; width: 42px; height: 42px; animation: coin-drop 0.95s cubic-bezier(0.5, 0, 0.8, 0.6) both; z-index: 2; }
.chest-rule { margin: 0; font-size: 28px; text-align: center; color: var(--cream); }
.chest-rule b { color: var(--gold-2); }
.chest-status { display: flex; align-items: center; gap: 34px; }
.finale .roster { width: 100%; max-height: 52px; }

/* finále: otevření truhly */
.chest-reveal { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.chest-reveal .big-title { font-size: 70px; }
.cr-main { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 650px 1fr; gap: 40px; align-items: center; }
.cr-left { position: relative; display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 28px; }
.chest.big { width: 270px; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.5)); }
.chest.big.open .ch-glow { animation: glow-breathe 2.6s 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cr-math { display: grid; gap: 10px; }
.cr-math > div { opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; }
.st1 .m1, .st2 .m2, .st3 .m3 { opacity: 1; transform: none; }
.cr-math span { font-size: 26px; font-weight: 700; color: var(--cream-2); }
.cr-math .num { display: block; font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1.05; color: var(--cream); font-variant-numeric: var(--nums); white-space: nowrap; }
.cr-math .num.gold { color: var(--gold-2); font-size: 72px; text-shadow: 0 0 30px rgba(246, 217, 138, 0.4); }
.cr-math .m2 { display: flex; align-items: baseline; gap: 16px; }
.x2 { flex: none; white-space: nowrap; display: inline-block; font-family: var(--display); font-weight: 800; font-size: 54px !important; color: var(--ink) !important; background: var(--gold-2); padding: 0 14px; border-radius: 12px; transform: rotate(-8deg); }
.st2 .x2 { animation: stamp-x2 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.cr-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.st4 .cr-right { opacity: 1; transform: none; }
.pile2 { padding: 16px 18px; border-radius: 20px; border: 2px solid; min-height: 230px; }
.pile2 h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 28px; }
.pile2 h3 b { margin-left: auto; font-family: var(--display); font-size: 52px; line-height: 1; font-variant-numeric: var(--nums); }
.pile2.give { border-color: var(--gold); background: rgba(226, 181, 74, 0.1); }
.pile2.give h3 b { color: var(--gold-2); }
.pile2.keep { border-color: rgba(255, 255, 255, 0.26); background: rgba(0, 0, 0, 0.3); }
.toks { display: flex; flex-wrap: wrap; gap: 6px; }
.toks .tok { opacity: 1; filter: none; border-color: rgba(255, 255, 255, 0.2); }
.pile2.give .toks .tok { border-color: var(--gold); background: rgba(226, 181, 74, 0.18); }
.st4 .toks .tok { animation: tok-pop 0.32s calc(var(--i) * 35ms + 0.2s) cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.toks .more { align-self: center; font-size: 22px; font-weight: 800; color: var(--cream-2); }
.cr-bottom { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; min-height: 180px; }
.cbars { opacity: 0; transition: opacity 0.6s; }
.st5 .cbars { opacity: 1; }
.cbars-t { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-2); }
.cbar { display: grid; grid-template-columns: 290px 1fr 170px; align-items: center; gap: 14px; margin-top: 8px; }
.cbar .cl { font-size: 24px; font-weight: 700; }
.ctrack { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ctrack i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.st5 .ctrack i { width: var(--w); }
.cbar.all .ctrack i { background: linear-gradient(90deg, #2f8a57, #6fd39a); }
.cbar.actual .ctrack i { background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
.cbar.none .ctrack i { background: linear-gradient(90deg, #4a5a54, #8a9a94); }
.cbar.actual .cl { color: var(--gold-2); }
.cbar b { font-family: var(--display); font-size: 32px; text-align: right; white-space: nowrap; font-variant-numeric: var(--nums); }
.moral { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 34px; line-height: 1.3; color: var(--gold-2); opacity: 0; transform: translateY(10px); transition: opacity 0.7s, transform 0.7s; text-wrap: pretty; }
.st6 .moral { opacity: 1; transform: none; }

/* pódium */
.podium { display: grid; grid-template-rows: 96px minmax(0, 1fr) auto; justify-items: center; gap: 8px; }
.podium > *:not(.coin-rain):not(.confetti) { position: relative; z-index: 1; }

.pod-title { align-self: center; margin: 0; font-family: var(--display); font-weight: 800; font-size: 66px; color: var(--gold); text-align: center; line-height: 1.1; white-space: nowrap; max-width: 1488px; }
.pod-title.won { color: var(--gold-2); animation: title-win 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; text-shadow: 0 0 40px rgba(246, 217, 138, 0.35); }
.stands { align-self: end; display: flex; align-items: flex-end; justify-content: center; gap: 28px; width: 1080px; }
.stand { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.stand .who { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; opacity: 0; transform: translateY(-80px); max-width: 100%; }
.stand.shown .who { animation: drop-in 0.6s 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.stand .av { font-size: 76px; line-height: 1.05; }
.stand .nm { max-width: 340px; font-size: 30px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand.p1 .nm { font-size: 44px; color: var(--gold-2); }
.stand .cn { font-size: 28px; font-weight: 700; color: var(--gold-2); }
.crown { position: absolute; top: -62px; font-size: 58px; line-height: 1; }
.stand.shown .crown { animation: crown-fall 0.7s 1.05s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.stand .block {
  position: relative; width: 100%; display: grid; place-items: start center; padding-top: 12px; border-radius: 18px 18px 0 0;
  font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; color: var(--ink); font-variant-numeric: var(--nums);
  background: linear-gradient(180deg, #eef0f3, #b4bcc6 60%, #8a939d); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.stand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border: 3px dashed rgba(255, 255, 255, 0.14); border-bottom: 0; border-radius: 18px 18px 0 0; pointer-events: none; }
.stand.p1::after { height: 220px; }
.stand.p2::after { height: 165px; }
.stand.p3::after { height: 120px; }
.stand.shown::after { opacity: 0; }
.stand.shown .block { transform: none; }
.stand.p1 .block { height: 220px; background: linear-gradient(180deg, #fff1b8, var(--gold-2) 25%, var(--gold) 60%, var(--gold-deep)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 0 70px rgba(226, 181, 74, 0.45); }
.stand.p2 .block { height: 165px; }
.stand.p3 .block { height: 120px; background: linear-gradient(180deg, #f2c19c, #c27d4f 60%, #8f522d); }
.stand.vacant .block { transform: none; opacity: 0.12; }
/* hodně hráčů pod stupni → nižší stupně, ať se nic nepřekrývá */
.podium[data-rows='3'] .stand.p1 .block, .podium[data-rows='3'] .stand.p1::after { height: 175px; }
.podium[data-rows='3'] .stand.p2 .block, .podium[data-rows='3'] .stand.p2::after { height: 130px; }
.podium[data-rows='3'] .stand.p3 .block, .podium[data-rows='3'] .stand.p3::after { height: 95px; }
.podium[data-rows='4'] .stand.p1 .block, .podium[data-rows='4'] .stand.p1::after { height: 128px; }
.podium[data-rows='4'] .stand.p2 .block, .podium[data-rows='4'] .stand.p2::after { height: 96px; }
.podium[data-rows='4'] .stand.p3 .block, .podium[data-rows='4'] .stand.p3::after { height: 70px; }
.podium[data-rows='4'] .stand .block { font-size: 56px; padding-top: 6px; }
.podium[data-rows='4'] .stand .av { font-size: 58px; }
.podium[data-rows='4'] .stand.p1 .nm { font-size: 38px; }
.podium[data-rows='4'] .crown { font-size: 46px; top: -48px; }
.podium[data-rows='4'] .stand .who { margin-bottom: 8px; }
.stand.vacant::after { display: none; }
.stand.instant .who, .stand.instant .crown { animation: none; opacity: 1; transform: none; }
.stand.instant .block { transition: none; }
.drumroll .stand.p1::after { border-color: var(--gold-2); animation: drum-glow 0.18s ease-in-out infinite alternate; }
.rest-wrap { width: 1488px; opacity: 0; transform: translateY(14px); transition: opacity 0.7s, transform 0.7s; }
.rest-wrap.in { opacity: 1; transform: none; }
.rest-wrap.in .rest li { animation: rise 0.45s calc(var(--i) * 35ms) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rest-wrap.instant .rest li { animation: none; }
.rest { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.rest li { position: relative; width: 286px; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 10px 6px 13px; border-radius: 12px; background: #0c231c; border: 1px solid rgba(255, 255, 255, 0.08); font-size: 20px; font-weight: 700; overflow: hidden; }
.rest li.gave::before, .gave-key { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); }
.rest .rr { flex: none; color: var(--gold-2); font-variant-numeric: var(--nums); }
.rest .av { flex: none; font-size: 22px; }
.rest .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rest .cn { flex: none; color: var(--gold-2); font-variant-numeric: var(--nums); }
.rest .cn .coin-ico { width: 16px; height: 16px; vertical-align: -2px; }
.rest li.more { justify-content: center; color: var(--cream-2); font-size: 18px; text-align: center; line-height: 1.15; }
.rest-wrap .note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: 20px; color: var(--cream-2); }
.gave-key { position: relative; display: inline-block; width: 6px; height: 22px; border-radius: 3px; }
.podium.nobody { grid-template-rows: auto; align-content: center; gap: 16px; }
.podium.nobody .chest { width: 220px; opacity: 0.8; }
.podium.nobody .lead { font-size: 30px; margin: 0; }

/* hráči – boční panel, modální okno, toast */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.45); animation: fade-in 0.2s; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 21; width: 520px; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px;
  background: linear-gradient(180deg, #123328, #0c241c); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); animation: drawer-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dr-head { display: flex; align-items: baseline; gap: 14px; }
.dr-head h2 { margin: 0; font-family: var(--display); font-size: 40px; color: var(--gold); }
.dr-sub { flex: 1; font-size: 22px; color: var(--cream-2); font-weight: 700; }
.drawer .prune { align-self: flex-start; font-size: 20px; padding: 8px 16px; }
.dr-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 6px; }
.dr-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); font-size: 22px; font-weight: 700; }
.dr-list li.off { opacity: 0.6; }
.dr-list li.none { justify-content: center; color: var(--cream-2); }
.dr-list .on { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.dr-list li.off .on { background: #6c7a74; }
.dr-list .av { font-size: 26px; }
.dr-list .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-list .cn { color: var(--gold-2); }
.dr-list .kick { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: var(--cream-2); font-size: 20px; }
.dr-list .kick:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.dr-hint { margin: 0; font-size: 18px; color: var(--cream-2); }
.modal-wrap { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); animation: fade-in 0.2s; }
.modal { width: 680px; padding: 34px 38px 30px; border-radius: 24px; background: linear-gradient(180deg, #17402f, #0f2a20); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1); }
.modal h2 { margin: 0 0 10px; font-family: var(--display); font-size: 42px; color: var(--gold-2); }
.modal p { margin: 0 0 24px; font-size: 26px; line-height: 1.35; color: var(--cream); }
.modal-btns { display: flex; justify-content: flex-end; gap: 12px; }
.modal-btns .btn { font-size: 22px; padding: 12px 26px; }
.h-toast { position: absolute; left: 50%; bottom: 96px; z-index: 25; transform: translateX(-50%); padding: 12px 24px; border-radius: 14px; background: #2a1416; border: 1px solid var(--bad); color: #ffd3d5; font-size: 22px; font-weight: 700; animation: rise 0.3s both; transition: opacity 0.4s; }
.h-toast.out { opacity: 0; }

/* ================================================================== PLAYER (mobil) */

body.play { overscroll-behavior-y: none; background: var(--felt); }
body.play::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 500px at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(600px 500px at 50% 115%, rgba(0, 0, 0, 0.4), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.013) 0 2px, transparent 2px 6px),
    var(--felt);
}
body.play #app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.p-opt, .bet-btn, .chest-btn, .av-btn, .av-pick, .me-avatar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* join */
.join { flex: 1; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-content: center; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.join-card { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.join-hero { display: grid; justify-items: center; gap: 2px; margin-bottom: 4px; }
.join-chest { width: 104px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.join-chest svg { animation: chest-wobble 3s ease-in-out infinite; transform-origin: 50% 92%; }
.brand.small { font-size: 2.2rem; text-align: center; }
.tagline { margin: 2px 0 0; color: var(--cream-2); font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--amber); border: 1px solid #c79a33; color: #ffe7a8; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; color: var(--cream-2); font-size: 0.95rem; }
.pin-input { font-size: 1.9rem; letter-spacing: 0.35em; text-align: center; font-weight: 800; font-variant-numeric: var(--nums); padding: 12px 16px; }
.pin-chip { justify-self: center; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(226, 181, 74, 0.12); color: var(--cream); font-weight: 700; }
.pin-chip b { color: var(--gold-2); letter-spacing: 0.12em; font-size: 1.15rem; font-variant-numeric: var(--nums); }
.pin-chip span { color: var(--cream-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.name-row { display: flex; gap: 10px; align-items: stretch; }
.name-row .input { flex: 1; min-width: 0; }
.av-pick { position: relative; flex: none; width: 58px; border-radius: 14px; border: 2px solid var(--gold); background: rgba(226, 181, 74, 0.14); font-size: 1.9rem; display: grid; place-items: center; padding: 0; }
.av-pick i, .me-avatar i { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 0.75rem; font-style: normal; font-weight: 800; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.f-error { margin: 0; min-height: 0; color: #ffadb1; font-weight: 700; font-size: 0.95rem; }
.f-error:empty { display: none; }
.f-error.general { text-align: center; }
.reclaim { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--gold); }
.reclaim p { margin: 0 0 10px; }
.reclaim-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.reclaim-btns .btn { flex: 1; }

/* avatar sheet */
.sheet {
  width: min(480px, 100%); max-width: 100%; margin: auto auto 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #17402f, #0f2a20); color: var(--cream);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5); animation: sheet-up 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.closing { animation: sheet-down 0.18s ease forwards; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; color: var(--gold-2); }
/* 48 avatarů: 6 sloupců; na malém nebo otočeném mobilu se mřížka posouvá */
.av-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-height: 62vh; max-height: 62dvh; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.av-btn { height: 56px; font-size: 1.85rem; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); padding: 0; transition: transform 0.12s; }
.av-btn:active { transform: scale(0.94); }
.av-btn.on { border-color: var(--gold); background: rgba(226, 181, 74, 0.22); }

/* ended */
.ended { flex: 1; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.ended-card { width: min(420px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center; }
.ended-card h2 { margin: 0; font-family: var(--display); font-size: 1.9rem; }
.ended-card .btn { margin-top: 8px; }
.rejoin-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: linear-gradient(180deg, #17402f, #0f2a20); border-top: 1px solid var(--gold); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5); animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); text-align: center; }
.rejoin-sheet p { margin: 0 0 10px; }
body.rejoin .screen { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* header */
.p-top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(10, 30, 24, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); font-weight: 800;
}
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wav { font-size: 1.35rem; flex: none; }
.wnm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-pill { flex: none; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(226, 181, 74, 0.16); border: 1px solid var(--gold); color: var(--gold-2); font-variant-numeric: var(--nums); transition: background 0.3s; }
.coin-pill.bump { animation: bump 0.6s ease; }
.coin-pill.up { background: rgba(63, 174, 108, 0.35); }
.coin-pill.down { background: rgba(208, 75, 83, 0.35); }
.net-banner { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: var(--amber); color: #ffe7a8; font-weight: 800; border-bottom: 1px solid #c79a33; animation: slide-down 0.25s ease; }
.coin-ico.spin { animation: coin-spin 1s linear infinite; }

/* screen */
.screen { position: relative; flex: 1; display: flex; flex-direction: column; padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); transition: background 0.5s; }
.screen > section.enter { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.screen > section.leaving { position: absolute; top: 16px; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); animation: fade-out 0.18s ease forwards; pointer-events: none; }
.screen.tint-ok { background: radial-gradient(120% 70% at 50% 22%, rgba(63, 174, 108, 0.45), transparent 70%); }
.screen.tint-bad { background: radial-gradient(120% 70% at 50% 22%, rgba(208, 75, 83, 0.4), transparent 70%); }
.screen.tint-miss { background: radial-gradient(120% 70% at 50% 22%, rgba(110, 130, 140, 0.35), transparent 70%); }
.screen.tint-gold { background: radial-gradient(120% 70% at 50% 22%, rgba(226, 181, 74, 0.5), transparent 70%); }
.screen.tint-poll { background: radial-gradient(120% 70% at 50% 22%, rgba(154, 127, 208, 0.35), transparent 70%); }
.p-center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; isolation: isolate; }
.p-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.p-center h2, .p-col h2 { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin: 0; color: var(--cream); text-wrap: balance; }
.p-col > h2 { text-align: center; }
.sub { margin: 0; color: var(--cream-2); line-height: 1.35; text-wrap: pretty; }
.big-icon { font-size: 4.2rem; line-height: 1.1; text-align: center; }
.big-icon.drum { animation: drum 0.25s ease-in-out infinite alternate; }
.hint-box { margin: 6px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border-left: 4px solid var(--gold); text-align: left; line-height: 1.4; color: var(--cream); text-wrap: pretty; width: 100%; }
.hint-box.discuss { border-left-color: var(--violet-2); background: rgba(60, 40, 100, 0.35); }
body.play .q-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-count { font-weight: 800; color: var(--cream-2); font-variant-numeric: var(--nums); font-size: 0.95rem; letter-spacing: 0.04em; }
.tchip { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 800; font-size: 0.85rem; }
.tchip .suits { color: var(--gold-2); letter-spacing: 0.04em; }
.tchip.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); border: 0; }
.tchip.violet { background: var(--violet-2); border-color: #c9b6f2; color: #fff; }
.q-small { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin: 2px 0 4px; text-align: center; text-wrap: balance; }
.q-big { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.22; margin: 0; text-align: center; text-wrap: balance; }
.q-small.long { font-size: 1.15rem; }
.q-small.xlong { font-size: 1rem; line-height: 1.3; }
.q-big.long { font-size: 1.45rem; }
.q-big.xlong { font-size: 1.2rem; }

.timebar-row { display: flex; align-items: center; gap: 10px; }
.timebar-row .timebar { flex: 1; }
.tnum { min-width: 2.2ch; text-align: right; font-weight: 800; font-size: 1.1rem; font-variant-numeric: var(--nums); }
.tnum.urgent { color: #ff9a9f; animation: tick-pulse 1s ease-out infinite; }
.timebar.urgent span { animation: pulse-op 1s ease-in-out infinite; }

/* lobby */
.p-lobby { gap: 12px; }
.me-avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--gold); background: radial-gradient(circle at 40% 35%, rgba(246, 217, 138, 0.3), rgba(0, 0, 0, 0.3)); font-size: 3.4rem; display: grid; place-items: center; padding: 0; box-shadow: 0 0 40px rgba(226, 181, 74, 0.25); animation: float 3s ease-in-out infinite; }
.me-avatar i { right: 2px; bottom: 2px; width: 28px; height: 28px; font-size: 0.9rem; }
.players-line { margin: 0; font-weight: 700; color: var(--cream-2); }
.players-line b { color: var(--gold-2); font-size: 1.2rem; font-variant-numeric: var(--nums); }
.rules { width: 100%; }
.rules-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.rules-track::-webkit-scrollbar { display: none; }
.rule-card { flex: 0 0 100%; scroll-snap-align: center; display: grid; justify-items: center; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); }
.rule-card .rc-ico { font-size: 2rem; line-height: 1; height: 40px; display: grid; place-items: center; }
.rule-card b { font-size: 1.1rem; color: var(--gold-2); }
.rule-card span { color: var(--cream); line-height: 1.3; }
.chest.mini { width: 54px; }
.rules-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rules-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background 0.3s, width 0.3s; }
.rules-dots span.on { width: 18px; border-radius: 99px; background: var(--gold); }

/* bet */
.p-bet .topic { font-size: 1.1rem; text-align: center; margin: 0; }
body.play .bet-rules { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.24); }
body.play .bet-rules p { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; line-height: 1.25; font-size: 1rem; }
.mk { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; font-size: 0.95rem; }
.mk.ok { background: var(--ok); }
.mk.bad { background: var(--bad); }
.p-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.bet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bet-btn { position: relative; display: grid; gap: 4px; padding: 16px 10px; border-radius: var(--radius); border: 2px solid var(--line); background: rgba(0, 0, 0, 0.28); transition: transform 0.15s, background 0.2s; }
.bet-btn:active, .bet-btn.tap { transform: scale(0.96); }
.bet-btn b { font-size: 1.25rem; }
.bet-btn span { color: var(--gold-2); font-weight: 700; }
.bet-btn.allin { border-color: rgba(208, 75, 83, 0.7); }
.bet-btn.on { background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); border-color: var(--gold-2); color: var(--ink); box-shadow: 0 0 0 3px rgba(246, 217, 138, 0.3), 0 8px 20px rgba(0, 0, 0, 0.35); }
.bet-btn.on span { color: var(--ink); }
.bet-btn.on::after, .chest-btn.on::after { content: '✓'; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 800; font-size: 0.9rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); animation: pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1); }
.bet-state { margin: 0; text-align: center; color: var(--cream-2); font-weight: 600; }
.bet-state b { color: var(--gold-2); }

/* live counts */
.live { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.live-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--cream-2); }
.live-count { color: var(--cream); font-variant-numeric: var(--nums); }
.live-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 0.4s ease; }
.live-note { margin: 0; color: var(--gold-2); font-weight: 800; text-align: center; }
.live-note:empty { display: none; }
.live.all .live-bar i { background: linear-gradient(90deg, #2f8a57, #6fd39a); }

/* intro */
.p-intro { justify-content: center; gap: 18px; }
body.play .p-intro .q-meta { position: absolute; top: 0; left: 0; right: 0; }
.p-intro { position: relative; padding-top: 34px; }
.countdown { display: grid; justify-items: center; gap: 8px; }
.timer.cd { width: 96px; height: 96px; }
.timer.cd .timer-num { font-size: 2.4rem; font-family: var(--display); }
.timer.cd.urgent .timer-num { color: var(--gold-2); animation: tick-pulse 1s ease-out infinite; }
.timer.cd.urgent .bar { stroke: var(--gold-2); }
.countdown p { margin: 0; color: var(--cream-2); font-weight: 700; }

/* question */
.p-options { flex: 1; display: grid; gap: 12px; grid-auto-rows: minmax(64px, 1fr); min-height: 0; }
.p-opt {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; border-radius: var(--radius);
  background: var(--c); color: var(--t); font-weight: 800; font-size: 1.2rem; text-align: left; line-height: 1.2;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); transition: transform 0.1s, opacity 0.25s, box-shadow 0.1s;
}
.p-opt:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.p-opt .suit { font-size: 2rem; width: 1.2em; text-align: center; flex: none; }
.p-opt .otext { flex: 1; }
.p-opt .osend { display: none; position: absolute; right: 12px; top: 8px; font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); color: #fff; }
.p-opt.chosen .osend { display: block; }
.p-opt:disabled:not(.chosen) { opacity: 0.3; }
.p-opt.chosen { outline: 4px solid var(--gold-2); outline-offset: 2px; animation: lock 0.3s ease; }
.p-options.n2 .p-opt { justify-content: center; font-size: 1.6rem; }
.p-options.n2 .p-opt .otext { flex: 0 1 auto; min-width: 0; text-align: center; overflow-wrap: anywhere; text-wrap: balance; }
.p-options.n2 .p-opt.long { font-size: 1.3rem; line-height: 1.25; }

.picked { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--c); color: var(--t); font-weight: 800; font-size: 1.1rem; text-align: left; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.picked .suit { font-size: 1.4rem; }

/* answered / waiting */
.p-answered { gap: 12px; }
.answered-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8px 0; }
.sent-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.08); }
.sent-card h2 { font-size: 1.6rem; }
.sent-card .picked { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.wait-panel { display: grid; gap: 12px; margin-top: auto; width: 100%; }
.p-center .wait-panel { margin-top: 12px; }
.watch { margin: 0; text-align: center; color: var(--cream-2); font-weight: 700; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(246, 238, 219, 0.1), rgba(246, 238, 219, 0.04)); border: 1px solid rgba(246, 238, 219, 0.14); text-align: left; transition: opacity 0.3s; min-height: 92px; }
.fact.fade { opacity: 0; }
.fact-ico { font-size: 1.6rem; line-height: 1; }
.fact-k { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 2px; }
.fact-t { margin: 0; line-height: 1.38; color: var(--cream); text-wrap: pretty; }

/* seal (výsledek) */
.seal { width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 3.4rem; font-weight: 800; color: #fff; animation: stamp 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.18), inset 0 4px 0 rgba(255, 255, 255, 0.25); }
.seal.ok { background: radial-gradient(circle at 35% 30%, #7ee2a6, #2f8a57 65%); }
.seal.bad { background: radial-gradient(circle at 35% 30%, #ff8e95, #a3303a 65%); }
.seal.miss { background: radial-gradient(circle at 35% 30%, #a9b7bd, #55666d 65%); font-size: 2.8rem; }
.seal.gold { background: radial-gradient(circle at 35% 30%, #fff4c4, #e2b54a 55%, #a97b22); color: var(--ink); }
.seal.poll { background: radial-gradient(circle at 35% 30%, #d6c7f7, #7b5ea7 65%); font-size: 2.8rem; }
.seal.sent { width: 56px; height: 56px; font-size: 1.8rem; background: radial-gradient(circle at 35% 30%, #fff4c4, #e2b54a 55%, #a97b22); color: var(--ink); grid-row: span 2; }
.p-gain { font-family: var(--display); font-weight: 800; font-size: 2.8rem; color: var(--gold-2); margin: 0; line-height: 1.1; font-variant-numeric: var(--nums); display: inline-flex; align-items: center; justify-content: center; }
.p-gain.neg { color: #ffb0b4; }
.p-gain small { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--cream-2); margin-left: 6px; }
.p-gain.big { font-size: 2.4rem; }
.receipt { width: min(320px, 100%); display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(246, 238, 219, 0.08); border: 1px solid rgba(246, 238, 219, 0.14); text-align: left; }
.rc-row, .rc-total { display: flex; justify-content: space-between; gap: 12px; animation: slide-in 0.35s calc(var(--i) * 120ms + 0.35s) ease both; font-variant-numeric: var(--nums); }
.rc-row span { color: var(--cream-2); }
.rc-row b, .rc-total b { color: #9be8b8; white-space: nowrap; }
.rc-row b.neg, .rc-total b.neg { color: #ffb0b4; }
.rc-total { margin-top: 4px; padding-top: 8px; border-top: 2px solid var(--gold); font-weight: 800; }
.rc-total span { color: var(--cream); }
.correct-was { margin: 4px 0 0; color: var(--cream-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.correct-was .picked { font-size: 1rem; padding: 6px 12px; }
.streak { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(208, 75, 83, 0.25); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.streak.hot { background: linear-gradient(90deg, rgba(208, 75, 83, 0.45), rgba(226, 181, 74, 0.4)); }
.streak .dots { display: inline-flex; gap: 4px; }
.streak .dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #ffb0a0; }
.streak .dots i.on { background: #ffb0a0; }
.fast { font-size: 0.95rem; }
.rescue { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--amber); border: 1px solid #c79a33; color: #ffe7a8; text-align: left; animation: rise 0.4s 0.6s both; }
.rescue p { margin: 4px 0 0; line-height: 1.35; }
.p-judge { gap: 14px; }
.p-judge p { margin: 0; font-weight: 800; color: var(--cream-2); }
.coin-ico.big { width: 64px; height: 64px; }

/* leaderboard */
.p-board { justify-content: center; align-items: stretch; gap: 12px; }
.board-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); }
.board-card h2 { font-size: 1.8rem; }
.board-card h2 small { font-family: var(--sans); font-size: 0.9rem; color: var(--cream-2); }
.place { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(226, 181, 74, 0.16); border: 2px solid var(--gold); }
.place .medal { font-size: 2.2rem; line-height: 1; }
.place .rnum { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--gold-2); font-variant-numeric: var(--nums); }
.place.big { width: 92px; height: 92px; }
.place.big .medal { font-size: 3.2rem; }
.place.big .rnum { font-size: 2.2rem; }
.delta { margin-left: auto; padding: 4px 12px; border-radius: 999px; font-weight: 800; animation: pop 0.4s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.delta.up { background: rgba(63, 174, 108, 0.3); color: #9be8b8; }
.delta.down { background: rgba(208, 75, 83, 0.3); color: #ffb0b4; }
.p-board .p-gain { align-self: center; }
.target { margin: 0; text-align: center; color: var(--cream-2); line-height: 1.35; }
.target b { color: var(--gold-2); }
.target.lead { color: var(--gold-2); font-weight: 800; }
.around { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.around li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); font-weight: 700; }
.around li.me { background: rgba(226, 181, 74, 0.18); outline: 2px solid var(--gold); }
.around .ar { min-width: 2.4ch; color: var(--cream-2); font-variant-numeric: var(--nums); }
.around .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.around .cn { color: var(--gold-2); }
.p-board .streak { align-self: center; }

/* chest */
.p-chest-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.p-chest-head .chest.mini { width: 74px; }
.p-chest-head h2 { text-align: left; font-size: 1.7rem; }
.chest-explain { margin: 0; text-align: center; font-weight: 600; line-height: 1.35; }
.chest-explain.small { color: var(--cream-2); font-weight: 400; font-size: 0.95rem; }
.chest-btns { display: grid; gap: 12px; }
.chest-btn { position: relative; display: grid; gap: 4px; padding: 18px 16px; border-radius: var(--radius); text-align: center; border: 2px solid; transition: transform 0.15s, background 0.2s; }
.chest-btn:active, .chest-btn.tap { transform: scale(0.97); }
.chest-btn b { font-size: 1.35rem; }
.chest-btn span { color: var(--cream-2); }
.chest-btn.give { border-color: var(--gold); background: rgba(226, 181, 74, 0.14); }
.chest-btn.keep { border-color: rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); }
.chest-btn.give.on { background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); color: var(--ink); }
.chest-btn.give.on span { color: var(--ink); }
.chest-btn.keep.on { background: #3b4a45; border-color: var(--cream); }
.p-chestrev .chest.mini { width: 120px; }
.rank { margin: 6px 0 0; font-weight: 800; color: var(--cream-2); }

/* podium */
.p-podium { gap: 12px; }
.pod-head { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pod-head h2 { font-size: 1.9rem; }
.titles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.title-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 0.92rem; border-radius: 999px; background: linear-gradient(180deg, rgba(246, 217, 138, 0.25), rgba(226, 181, 74, 0.12)); border: 1px solid var(--gold); animation: pop 0.4s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.title-chip i { font-style: normal; }
.mystats { padding: 12px 16px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); }
.mystats h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.15rem; color: var(--gold-2); }
.mystats dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mystats dl div.wide { grid-column: 1 / -1; }
.mystats dt { font-size: 0.8rem; color: var(--cream-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.mystats dd { margin: 0; font-weight: 800; font-variant-numeric: var(--nums); }
.mini-podium { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 6px; }
.mini-podium li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); }
.mini-podium li.me { outline: 2px solid var(--gold); background: rgba(226, 181, 74, 0.14); }
.mini-podium li.gap { margin-top: 8px; position: relative; }
.mini-podium li.gap::before { content: '⋯'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: var(--cream-2); }
.mini-podium .md { min-width: 1.6em; text-align: center; font-weight: 800; font-variant-numeric: var(--nums); }
.mini-podium b { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-podium .cn { color: var(--gold-2); font-weight: 700; }
.thanks { margin: 4px 0 0; text-align: center; color: var(--cream-2); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 140px); max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 14px; background: #2a1416; border: 1px solid var(--bad); color: #ffd3d5; font-weight: 700; text-align: center;
  transition: transform 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.warn { background: var(--amber); border-color: #c79a33; color: #ffe7a8; }
.toast.show { transform: translate(-50%, 0); }

/* telefon na šířku: vše se vejde bez posouvání */
@media (orientation: landscape) and (max-height: 520px) {
  .p-top { padding-top: 6px; padding-bottom: 6px; }
  .net-banner { top: 44px; }
  .screen { padding: 8px max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .p-col { gap: 8px; }
  .p-center { gap: 4px; }
  .p-options { grid-template-columns: 1fr 1fr; gap: 8px; grid-auto-rows: minmax(48px, 1fr); }
  .p-opt { padding: 8px 14px; font-size: 1.05rem; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
  .p-opt .suit { font-size: 1.5rem; }
  .p-options.n2 .p-opt { font-size: 1.3rem; }
  .p-options.n2 .p-opt.long { font-size: 1.1rem; }
  .q-small { font-size: 1.1rem; margin: 0; }
  .q-big { font-size: 1.35rem; }
  .big-icon { font-size: 2.4rem; }
  .seal { width: 64px; height: 64px; font-size: 2rem; }
  .p-center h2, .p-col h2 { font-size: 1.35rem; }
  .p-gain { font-size: 1.9rem; }
  .bet-grid { grid-template-columns: repeat(4, 1fr); }
  .bet-btn { padding: 10px 6px; }
  body.play .bet-rules { grid-template-columns: 1fr 1fr; padding: 8px 10px; }
  .chest-btns { grid-template-columns: 1fr 1fr; }
  .chest-btn { padding: 12px; }
  .hint-box { margin-top: 4px; padding: 8px 12px; }
  .me-avatar { width: 72px; height: 72px; font-size: 2.3rem; }
  .fact { min-height: 0; padding: 10px 12px; }
  .p-intro { padding-top: 28px; gap: 8px; }
  .timer.cd { width: 64px; height: 64px; }
  .timer.cd .timer-num { font-size: 1.6rem; }
  .receipt { width: min(420px, 100%); }
  .p-chest-head .chest.mini { width: 48px; }
  .chest-explain.small { display: none; }
  .answered-mid { flex-direction: row; align-items: center; padding: 0; }
  .answered-mid .sent-card { flex: 1 1 260px; }
  .answered-mid .live { flex: 1 1 260px; }
  .p-answered .fact { display: none; }
  .sent-card .picked { margin-top: 4px; }
  .mystats dl { grid-template-columns: repeat(3, 1fr); }
}

/* nižší telefony (360 × 740): souhrn na konci se vejde bez posouvání */
@media (max-height: 780px) and (orientation: portrait) {
  .p-podium { gap: 10px; }
  .place.big { width: 76px; height: 76px; }
  .place.big .medal { font-size: 2.6rem; }
  .place.big .rnum { font-size: 1.8rem; }
  .pod-head { gap: 2px; }
  .pod-head h2 { font-size: 1.65rem; }
  .p-podium .p-gain.big { font-size: 2.1rem; }
  .mystats { padding: 10px 14px 12px; }
  .mystats dl { gap: 6px 14px; }
  .mini-podium li { padding: 7px 12px; }
}

/* malé telefony */
@media (max-height: 640px) and (orientation: portrait) {
  .big-icon { font-size: 3.2rem; }
  .seal { width: 84px; height: 84px; font-size: 2.7rem; }
  .p-center h2, .p-col h2 { font-size: 1.6rem; }
  .p-gain { font-size: 2.3rem; }
  .q-big { font-size: 1.5rem; }
  .join-chest { width: 80px; }
  .me-avatar { width: 84px; height: 84px; font-size: 2.7rem; }
  .fact { min-height: 0; }
  .chest-btn { padding: 14px 12px; }
  .bet-btn { padding: 12px 8px; }
}

/* ================================================================== motion */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.4em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bump { 30% { transform: scale(1.25); } }
@keyframes tick-pulse { 0% { transform: scale(1.18); } 40%, 100% { transform: scale(1); } }
@keyframes pulse-op { 50% { opacity: 0.55; } }
@keyframes beat { 0% { opacity: 1; } 100% { opacity: 0.35; } }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-4px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes chest-wobble { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg) translateY(-3px); } }
@keyframes chest-bounce { 30% { transform: scale(1.06, 0.94); } 60% { transform: scale(0.98, 1.03); } }
@keyframes glow-breathe { 50% { transform: scale(1.06); opacity: 0.85; } }
@keyframes breathe { 50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes fall { from { transform: translateY(0) rotateY(0); } to { transform: translateY(calc(100vh + 140px)) rotateY(var(--spin, 360deg)); } }
@keyframes confetti-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--sway, 40px), calc(100vh + 60px)) rotate(var(--spin, 720deg)); opacity: 0; } }
@keyframes coin-drop { 0% { transform: translate(-50%, -70px) rotateY(0); opacity: 0; } 15% { opacity: 1; } 72% { transform: translate(-50%, 70px) rotateY(540deg); opacity: 1; } 100% { transform: translate(-50%, 90px) scale(0.4); opacity: 0; } }
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 2px rgba(10, 30, 22, 0.9), 0 0 0 7px rgba(246, 217, 138, 0.25); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes nudge { 0%, 100% { transform: none; } 8% { transform: rotate(-4deg); } 16% { transform: rotate(4deg); } 24% { transform: none; } }
@keyframes glow-text { 50% { text-shadow: 0 0 18px rgba(246, 217, 138, 0.9); } }
@keyframes tok-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes pop-correct { 0% { transform: scale(1); } 50% { transform: scale(1.07); } 100% { transform: scale(1.035); } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes stamp-in { 0% { transform: translateY(-30px) scale(1.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes stamp-x2 { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 100% { transform: rotate(-8deg); opacity: 1; } }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-12deg); opacity: 0; } 60% { transform: scale(0.92); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-80px); } 100% { opacity: 1; transform: none; } }
@keyframes crown-fall { 0% { opacity: 0; transform: translateY(-120px) rotate(-30deg); } 100% { opacity: 1; transform: rotate(-8deg); } }
@keyframes title-win { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: none; } }
@keyframes drum-glow { from { box-shadow: 0 0 0 rgba(246, 217, 138, 0); } to { box-shadow: 0 0 40px rgba(246, 217, 138, 0.5); } }
@keyframes drum { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-3px); } }
@keyframes sparkle { 0% { opacity: 1; transform: scale(0.4) rotate(0); } 100% { opacity: 0; transform: scale(1.6) rotate(90deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes lock { 50% { transform: scale(0.96); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .coin-rain, .confetti { display: none; }
}
