:root {
  --night: #0d1b3d; --plum: #3b0a45; --mag: #7a1552; --yellow: #FFC93C; --pink: #FF4F9A; --teal: #14C8B8; --green: #5BD15B;
  --orange: #FF8A1F; --purple: #9B5CFF; --paper: #fbf3e0; --paper2: #f3e3bf; --ink-card: #1b1b1b; --dark: #1f0f2e; --ink: #fff; --muted: #f3e3ff;
  --bean: #7a3b12;
  --display: "Alfa Slab One", "Baloo 2", Georgia, serif;
  --font: "Baloo 2", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: linear-gradient(180deg, var(--night) 0%, #1f1446 40%, var(--plum) 72%, var(--mag) 100%);
  background-color: var(--night); color: var(--ink); font-family: var(--font);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none;
}
button { font-family: inherit; touch-action: manipulation; cursor: pointer; }

/* ---------------------------------------------------------------- tło: jarmark nocą */
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; left: 50%; bottom: -40vh; width: 120vmax; height: 70vh; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,138,31,.35), rgba(255,79,154,.18) 55%, transparent); }
.lights { position: absolute; inset: 0; }
.lights i { position: absolute; width: 9px; height: 12px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 12px 3px var(--c); opacity: .8; animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 50% { opacity: .3; } }
.picado { position: absolute; left: -2%; right: -2%; top: 0; height: 52px; display: flex; justify-content: space-between; }
.picado::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: rgba(255,255,255,.55); }
.picado span {
  position: relative; flex: none; width: 36px; height: 44px; margin-top: 5px; background: var(--c); opacity: .9; transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 87.5% 100%, 75% 82%, 62.5% 100%, 50% 82%, 37.5% 100%, 25% 82%, 12.5% 100%, 0 82%);
  -webkit-mask: radial-gradient(circle at 50% 40%, transparent 6px, #000 6.5px); mask: radial-gradient(circle at 50% 40%, transparent 6px, #000 6.5px);
  animation: flutter 3s ease-in-out infinite alternate; animation-delay: var(--d);
}
@keyframes flutter { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------------------------------------------------------------- układ */
.app {
  /* najpierw 100% — zapas dla iOS < 15.4 i Chrome < 108, które nie znają dvh i pominęłyby całą deklarację */
  position: relative; z-index: 1; max-width: 480px; height: 100%; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.top { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 10px; height: 48px; flex: none; margin-top: 38px; }
.logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo-card { width: 30px; height: 38px; flex: none; display: grid; place-items: center; font-size: 18px; border-radius: 4px; background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink-card), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink-card), 0 3px 0 rgba(0,0,0,.3); transform: rotate(-8deg); }
.logo-txt { display: flex; flex-direction: column; font: 400 21px/1 var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.35); white-space: nowrap; }
.logo-txt small { font: 800 10px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); text-shadow: none; }
.score-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 88px; height: 42px; padding: 0 12px;
  border-radius: 14px; background: var(--yellow); color: var(--dark); box-shadow: 0 4px 0 #c28a00, 0 8px 18px rgba(0,0,0,.25);
}
.score-label { font: 800 9px/1 var(--font); letter-spacing: .14em; opacity: .7; }
.score-val { font: 400 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.score-box.bump { animation: bump .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-3deg); } }
.sound { width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 20px; color: #fff; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.stage { position: relative; flex: 1; min-height: 0; }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.screen.active { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }

/* ---------------------------------------------------------------- karta Loterii (wspólny wygląd) */
.lcard {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden;
  background: linear-gradient(var(--tint, #FF4F9A) 0 0) top / 100% 5px no-repeat, var(--paper); color: var(--ink-card); border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--ink-card), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink-card), 0 4px 0 rgba(0,0,0,.35);
}
.lcard .no { position: absolute; left: 6px; top: 6px; font: 400 10px/1 var(--display); }
.lcard .pic { flex: 1; display: grid; place-items: center; line-height: 1; }
.lcard .nm { width: 100%; padding: 0 4px 5px; text-align: center; font: 400 var(--nfs, 10px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- ekran powitalny */
.hero { display: flex; flex-direction: column; align-items: center; margin-top: -6vh; }
.fan { position: relative; width: 250px; height: 190px; }
.fan .lcard { position: absolute; left: 50%; top: 10px; width: 118px; height: 166px; margin-left: -59px; transform-origin: 50% 110%; }
.fan .lcard .pic { font-size: 62px; }
.fan .lcard .nm { --nfs: 14px; }
.fan .lcard:nth-child(1) { transform: rotate(-16deg) translateX(-18px); }
.fan .lcard:nth-child(3) { transform: rotate(16deg) translateX(18px); }
.fan .lcard:nth-child(2) { z-index: 1; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero-title { margin: 14px 0 0; font: 400 clamp(44px, 14vw, 62px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 7px #b3124a; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,.3); }
.hero-sub { margin: 10px 0 0; font: 800 16px var(--font); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.3); }

/* ---------------------------------------------------------------- poziomy */
#s-level { justify-content: flex-start; overflow-y: auto; padding: 4px 0 10px; }
#s-level > :first-child { margin-top: auto; }
#s-level > :last-child { margin-bottom: auto; }
.big-title { margin: 0; font: 400 30px/1.05 var(--display); color: var(--yellow); -webkit-text-stroke: 5px #b3124a; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0,0,0,.25); text-align: center; }
.lead { margin: 10px 0 14px; text-align: center; color: var(--muted); font: 600 15.5px/1.35 var(--font); }
.lead b { color: #fff; }
.levels { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 400px; }
.lv {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 8px 12px; border: 0; border-radius: 20px; color: #fff; text-align: left;
  background: linear-gradient(160deg, var(--c), var(--cd)); box-shadow: 0 6px 0 var(--cd), 0 12px 24px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lv:active, .lv.picked { transform: translateY(5px); box-shadow: 0 1px 0 var(--cd), 0 4px 10px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.3); }
.lv-code { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(0,0,0,.2); font: 400 22px var(--display); }
.lv-txt { display: flex; flex-direction: column; min-width: 0; }
.lv-name { font: 400 19px/1.1 var(--display); }
.lv-en { font: 800 13px/1.2 var(--font); }
.lv-desc { font: 600 12.5px/1.25 var(--font); opacity: .88; }
.lv.last::after {
  content: '★'; position: absolute; right: 12px; top: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  font-size: 13px; background: var(--yellow); color: var(--dark); box-shadow: 0 2px 0 #c28a00;
}
.auto-lv { display: flex; align-items: center; gap: 10px; max-width: 400px; margin-top: 14px; padding: 8px 14px; border-radius: 16px; background: rgba(255,255,255,.12); font: 600 13.5px/1.3 var(--font); color: var(--muted); cursor: pointer; }
.auto-lv b { color: #fff; }
.auto-lv input { width: 22px; height: 22px; flex: none; accent-color: var(--teal); }
.rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.rules span { padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.14); font: 700 12.5px var(--font); color: var(--muted); }

/* ---------------------------------------------------------------- rozgrywka */
#s-play { justify-content: flex-start; gap: 7px; }
.caller { display: flex; gap: 10px; width: 100%; height: 118px; flex: none; }
.ccard { flex: none; width: 86px; height: 116px; padding: 0; border: 0; perspective: 600px; }
.ccard.lcard .pic { font-size: 46px; }
.ccard.lcard .nm { --nfs: 11px; white-space: normal; }
.ccard.big-name .pic { display: none; }
.ccard.big-name .nm { flex: 1; display: grid; place-items: center; --nfs: 15px; padding: 18px 6px; }
.ccard.flip { animation: flip .45s ease-out; }
@keyframes flip { 0% { transform: rotateY(90deg) scale(.9); } 100% { transform: rotateY(0) scale(1); } }
.ccard.audio .pic { font-size: 40px; }
.cside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bubble-c { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 6px 10px; border-radius: 14px; background: #fff; color: var(--dark); box-shadow: 0 4px 0 rgba(0,0,0,.25); overflow: hidden; }
.bubble-c::before { content: ''; position: absolute; left: -7px; top: 22px; border: 7px solid transparent; border-left: 0; border-right-color: #fff; }
.c-who { font: 800 10px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #b3124a; }
.c-say { font: 400 20px/1.1 var(--display); overflow-wrap: anywhere; }
.c-say.pop { animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { from { transform: scale(.6); } }
.c-verse { margin-top: 2px; font: italic 600 11.5px/1.25 var(--font); color: #6b4a7a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeta { display: flex; justify-content: space-between; font: 800 11px var(--font); color: var(--muted); letter-spacing: .06em; }
.history { display: flex; gap: 4px; overflow: hidden; height: 24px; flex: none; }
.history span { flex: none; max-width: 92px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.15); font: 700 11px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history span.new { animation: pop .3s ease-out; }

.rivals { display: flex; gap: 6px; width: 100%; height: 28px; flex: none; }
.rv { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.12); font: 800 12px var(--font); white-space: nowrap; }
.rv .rv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rv .dots { display: flex; gap: 3px; flex: none; }
.rv .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.rv .dots i.on { background: var(--yellow); box-shadow: 0 0 6px rgba(255,201,60,.8); }
.rv.hot { background: rgba(255,77,106,.35); animation: hot .6s ease-in-out infinite alternate; }
@keyframes hot { to { box-shadow: 0 0 14px rgba(255,77,106,.8); } }
.rv.mark { animation: bump .35s ease; }

.board-wrap { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: var(--bw, 100%); height: var(--bh, 100%); }
.card { padding: 0; border: 0; min-width: 0; min-height: 0; transition: transform .12s ease, filter .2s; }
.card .pic { font-size: var(--pfs, 30px); }
.card:not(.marked):active { transform: scale(.94); }
@media (hover: hover) { .card:not(.marked):hover { transform: translateY(-2px); } }
.board.nonames .card:not(.marked) .nm { visibility: hidden; }
.card .bean {
  position: absolute; left: 50%; top: 46%; width: 30%; height: 22%; min-width: 18px; min-height: 13px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 35% 30%, #c77a3f, var(--bean) 55%, #3d1a06); box-shadow: 0 3px 4px rgba(0,0,0,.45);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}
.card .bean::after { content: ''; position: absolute; left: 22%; top: 45%; width: 56%; height: 14%; border-radius: 99px; background: rgba(255,255,255,.35); }
.card.marked .bean { opacity: 1; animation: bean .38s cubic-bezier(.3,1.6,.5,1); }
@keyframes bean { from { transform: translate(-50%, -160%) rotate(var(--r, 0deg)) scale(1.6); opacity: 0; } }
.card.marked .pic { filter: saturate(.7); }
.card.win { box-shadow: inset 0 0 0 2px var(--ink-card), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink-card), 0 0 0 3px var(--yellow), 0 0 18px rgba(255,201,60,.9); animation: bump .5s ease; }
.card.bad { animation: shake .4s ease; }
.card.bad::before { content: ''; position: absolute; inset: 0; background: rgba(255,77,106,.35); border-radius: 6px; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.card.was-called:not(.marked) { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: inset 0 0 0 2px var(--ink-card), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink-card), 0 0 0 2px rgba(20,200,184,.9); } }

.controls { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; width: 100%; }
.bubble { min-height: 20px; max-width: 100%; padding: 0 12px; border-radius: 99px; font: 700 13px/20px var(--font); color: #fff; text-align: center; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble.on { opacity: 1; background: rgba(0,0,0,.28); }
.bubble.bad { background: rgba(255,77,106,.4); }
.mic-row { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.auto-pill {
  display: flex; align-items: center; gap: 6px; width: 64px; height: 30px; padding: 0 8px; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.16); color: var(--muted); font: 800 11px var(--font); letter-spacing: .08em;
}
.auto-pill i { position: relative; width: 22px; height: 12px; border-radius: 99px; background: rgba(255,255,255,.3); flex: none; transition: background .2s; }
.auto-pill i::after { content: ''; position: absolute; left: 1px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .2s; }
.auto-pill.on { background: rgba(20,200,184,.25); color: #fff; }
.auto-pill.on i { background: var(--teal); }
.auto-pill.on i::after { transform: translateX(10px); }
.mic {
  position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #4fe6d8, var(--teal) 55%, #0a8a80); box-shadow: 0 5px 0 #07645d, 0 10px 22px rgba(0,0,0,.35);
}
.mic:active { transform: translateY(3px); box-shadow: 0 2px 0 #07645d; }
.mic .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,143,184,.8); opacity: 0; }
.mic.listening { background: radial-gradient(circle at 35% 30%, #ff8fb8, var(--pink) 55%, #b0135a); box-shadow: 0 5px 0 #7a0b3d, 0 0 26px rgba(255,79,154,.7); }
.mic.listening .ring { animation: ringOut 1.2s ease-out infinite; }
.mic.listening .r2 { animation-delay: .6s; }
@keyframes ringOut { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.lot-btn {
  min-width: 118px; height: 50px; padding: 0 14px; border: 0; border-radius: 99px; font: 400 17px var(--display); letter-spacing: .02em;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); transition: background .2s, color .2s;
}
.lot-btn.ready { background: linear-gradient(180deg, #ffe07a, var(--yellow)); color: var(--dark); box-shadow: 0 5px 0 #c28a00, 0 0 0 4px rgba(255,201,60,.35), 0 0 30px rgba(255,201,60,.8); animation: shout .7s ease-in-out infinite alternate; }
@keyframes shout { to { transform: scale(1.07) rotate(-2deg); } }
.mic-label { min-height: 15px; font: 800 10.5px var(--font); letter-spacing: .12em; color: var(--muted); text-align: center; }
.mic-label.live { color: var(--yellow); }
.controls.nomic .mic, .controls.nomic .auto-pill { display: none; }

.praise, .countdown, .banner { position: absolute; left: 0; right: 0; top: 55%; pointer-events: none; text-align: center; transform: translateY(-50%); }
.praise { z-index: 3; opacity: 0; }
.praise.go { animation: praise 1s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes praise { 0% { opacity: 0; transform: translateY(-50%) scale(.3) rotate(-8deg); } 18% { opacity: 1; transform: translateY(-50%) scale(1.12) rotate(3deg); } 30% { transform: translateY(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80%) scale(1); } }
.praise .p-big, .countdown b, .banner b {
  display: block; font: 400 clamp(32px, 11vw, 48px)/1.05 var(--display); color: #fff; -webkit-text-stroke: 7px var(--pc, #b3124a); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,.3);
}
.praise .p-sub { display: inline-block; max-width: 92%; margin-top: 6px; padding: 3px 12px; border-radius: 99px; background: var(--dark); color: var(--yellow); font: 800 15px/1.3 var(--font); }
.countdown { z-index: 4; }
.countdown b { font-size: clamp(80px, 30vw, 130px); -webkit-text-stroke-width: 9px; --pc: #1f1446; animation: cd .8s cubic-bezier(.2,1.6,.4,1) both; }
.countdown b.go-word { font-size: clamp(40px, 13vw, 64px); --pc: #b3124a; }
@keyframes cd { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
.banner { z-index: 5; opacity: 0; }
.banner.go { animation: banner 2s ease both; }
.banner span { display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 99px; background: var(--yellow); color: var(--dark); font: 800 17px var(--font); }
@keyframes banner { 0% { opacity: 0; transform: translateY(-50%) scale(.4); } 12% { opacity: 1; transform: translateY(-50%) scale(1.12); } 22% { transform: translateY(-50%) scale(1); } 88% { opacity: 1; } 100% { opacity: 0; } }
.floats { position: fixed; inset: 0; pointer-events: none; z-index: 31; }
.float { position: absolute; transform: translate(-50%, -50%); font: 400 24px var(--display); color: var(--yellow); white-space: nowrap; -webkit-text-stroke: 5px var(--dark); paint-order: stroke fill; animation: floatPts 1s ease-out both; }
.float.bad { color: #ff6b85; }
@keyframes floatPts { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }

/* ---------------------------------------------------------------- finał */
#s-final { gap: 10px; text-align: center; overflow: hidden; }
.final-burst { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,201,60,.15) 0 10deg, transparent 10deg 20deg); animation: spin 30s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); mask-image: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
.final-title { position: relative; font: 400 clamp(40px, 13vw, 58px)/1 var(--display); color: #fff; -webkit-text-stroke: 8px #b3124a; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,.3); animation: titleIn .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes titleIn { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.final-sub { position: relative; font: 800 16px var(--font); color: var(--yellow); max-width: 92%; }
.final-score-box { position: relative; display: flex; flex-direction: column; padding: 10px 34px 8px; border-radius: 10px; background: var(--paper); color: var(--ink-card);
  box-shadow: inset 0 0 0 2px var(--ink-card), inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--ink-card), 0 8px 0 rgba(0,0,0,.35); }
.final-score-label { font: 800 12px var(--font); letter-spacing: .16em; color: #b3124a; }
.final-score { font: 400 54px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.final-stats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.final-stats span { padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.16); font: 800 14px var(--font); }
.fact { position: relative; max-width: 360px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.12); font: 600 14px/1.35 var(--font); color: var(--muted); }
.fact b { display: block; color: var(--yellow); font-weight: 800; }

/* ---------------------------------------------------------------- pauza */
.pause { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(13,27,61,.86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pause-card { text-align: center; padding: 24px; }
.pause-title { font: 400 46px var(--display); color: var(--yellow); }
.pause-card p { color: var(--muted); font: 600 17px var(--font); }
.btn { min-height: 52px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--yellow); color: var(--dark); font: 400 20px var(--display); box-shadow: 0 5px 0 #c28a00; }

/* ---------------------------------------------------------------- małe i niskie ekrany */
@media (max-height: 680px) {
  .top { margin-top: 30px; height: 44px; }
  .picado span { height: 34px; width: 30px; }
  .caller { height: 104px; }
  .ccard { width: 76px; height: 102px; }
  .ccard.lcard .pic { font-size: 38px; }
  .c-say { font-size: 18px; }
  .c-verse { -webkit-line-clamp: 1; }
  .history { display: none; }
  .lv { min-height: 60px; }
  .lv-desc, .rules { display: none; }
  .lead { font-size: 14.5px; margin: 8px 0 12px; }
  .mic, .lot-btn { height: 48px; }
  .mic { width: 48px; }
}
@media (max-width: 350px) {
  .logo-txt { font-size: 18px; }
  .score-box { min-width: 76px; }
  .lot-btn { min-width: 100px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .fan .lcard, .picado span, .lights i, .final-burst, .lot-btn.ready, .rv.hot, .card.was-called:not(.marked) { animation: none !important; }
}
