/* Telefón tímu, v3: kulisa Zimná noc, materiál „ako čertíci“ (tmavohnedý obrys, plná farba, jeden lesk, tvrdý tieň).
   Výkon: animuje sa len transform a opacity, žiadne filtre; počas otázky beží čo najmenej animácií. */
html, body { overscroll-behavior: none; }
body { background: var(--noc-1); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { touch-action: manipulation; }

.kulisa { position: fixed; left: 0; right: 0; top: -4vh; bottom: -2vh; z-index: 0; pointer-events: none; background: var(--noc-1) url(/grafika/kulisa-mobil-b.webp) 50% 0 / cover no-repeat; }
.kulisa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,11,34,.5), rgba(7,11,34,0) 26%); }
.app { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; min-height: var(--vys, 100vh); min-height: 100dvh; overflow-x: clip; overflow: clip; touch-action: manipulation; }
.obraz { position: relative; min-height: var(--vys, 100vh); min-height: 100dvh; display: flex; flex-direction: column; overflow: clip;
  padding: max(clamp(30px, 6.2vh, 58px), env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); transition: transform .24s var(--k-pruzina), opacity .2s; }
.nacitava { margin: 45vh auto 0; text-align: center; font-size: 20px; font-weight: 800; }
.nacitava .ikona { font-size: 34px; margin-right: 8px; }

/* prechod medzi obrazovkami: stará odíde hore (220 ms), nová nastúpi po častiach zdola (320 ms, rozostup 50 ms) */
.obraz.odchod { position: absolute; left: 0; right: 0; top: 0; height: var(--vys, 100vh); min-height: 0; overflow: hidden; pointer-events: none; animation: odchod .22s ease-in forwards; }
@keyframes odchod { to { opacity: 0; transform: translateY(-14px) scale(.97); } }
.obraz.nastup > * { animation: prichod .32s var(--k-von) backwards; }
.obraz.nastup > *:nth-child(2) { animation-delay: .05s; } .obraz.nastup > *:nth-child(3) { animation-delay: .1s; }
.obraz.nastup > *:nth-child(4) { animation-delay: .15s; } .obraz.nastup > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes prichod { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.nad { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.skryty { opacity: 0 !important; animation: none !important; }
.vstup-zdola { animation: zdola .3s var(--k-pruzina) both; }
@keyframes zdola { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.odpojene .obraz { opacity: .5; }

/* ---------- písmo a spoločné prvky ---------- */
h1, .velky, .verdikt, .body, .miesto, .vyzva, .nazov-kola, .karta-miesto, .pocet-zamkli, .stat b, .ocenenie b, .cislo-skupiny, .zolik-nazov, .zolik-cislo { font-family: var(--pismo-ozdobne); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: 27px; line-height: 1.1; text-align: center; margin: 0 0 4px; color: var(--zlato-2); text-shadow: 0 3px 0 var(--obrys); }
h1, .pod, .velky, .stredny, .vyzva, .nazov-kola, .naskok, .otazka-mala, .pocet-zamkli, .karta-meno, .bublina, .zolik-pravidlo { text-wrap: balance; }
.pod { text-align: center; margin: 0 0 8px; font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.ikona.v { font-size: 1.25em; }
.stred { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 0; }
.velky { font-size: 29px; line-height: 1.15; text-shadow: 0 3px 0 var(--obrys); }
.stredny { font-size: 19px; font-weight: 800; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.stredny.maly { font-size: 15px; }
.tip { font-size: 14px; font-weight: 800; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.stred > .tip, .stred > .stredny.maly { background: var(--noc-0); padding: 3px 12px 4px; border-radius: 12px; text-shadow: none; }   /* C18: text môže vyjsť na svetlý závej */
.stitok, .meno-timu { display: inline-block; padding: 5px 14px 6px; border-radius: 99px; background: var(--noc-1); border: 3px solid var(--obrys); box-shadow: 0 3px 0 rgba(0,0,0,.4); font-size: 15px; font-weight: 900; }
.stitok b { color: var(--zlato-2); }
.meno-timu { font-size: 21px; max-width: 100%; overflow-wrap: anywhere; }
.panel { background: linear-gradient(180deg, var(--noc-2), var(--noc-1)); border: 3px solid var(--obrys); border-radius: 20px; box-shadow: inset 0 3px 0 rgba(255,255,255,.12), 0 5px 0 rgba(0,0,0,.4); }
.tlacidlo { font-family: var(--pismo-ozdobne); font-weight: 400; font-size: 20px; padding: 12px 22px 13px; border-radius: 20px; border: 3px solid var(--obrys); color: #2a1a00;
  background: linear-gradient(180deg, var(--zlato-1), var(--zlato-2) 45%, var(--zlato-3)); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 6px 0 var(--obrys); }
.tlacidlo:active, .tlacidlo.stlacena { transform: translateY(4px); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 2px 0 var(--obrys); }
.tlacidlo.sekundarne { color: var(--sneh); background: linear-gradient(180deg, var(--noc-3), var(--noc-2)); box-shadow: inset 0 3px 0 rgba(255,255,255,.16), 0 6px 0 var(--obrys); }
.tlacidlo.sekundarne:active { box-shadow: inset 0 3px 0 rgba(255,255,255,.16), 0 2px 0 var(--obrys); }
.odkaz { background: rgba(7,11,34,.55); border: 0; border-radius: 99px; color: var(--sneh); font-size: 14.5px; font-weight: 800; cursor: pointer; padding: 7px 16px; align-self: center; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.odkaz.maly { font-size: 13.5px; padding: 4px 12px; margin-bottom: 6px; }
.spojenie { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; background: var(--peklo-3); color: #fff; font-weight: 900; padding: 6px 16px; border-radius: 999px; font-size: 14px; border: 3px solid var(--obrys); white-space: nowrap; }
.toast { position: fixed; top: max(50px, calc(env(safe-area-inset-top) + 42px)); left: 50%; transform: translateX(-50%); z-index: 96; width: max-content; max-width: 92vw; background: #fff6d8; color: #3a2206; font-weight: 800; font-size: 15px; line-height: 1.3;
  padding: 9px 16px; border-radius: 16px; border: 3px solid var(--obrys); box-shadow: 0 5px 0 rgba(0,0,0,.4); text-align: center; }

/* ---------- prihlásenie a šatník (A6, C11; N15: všetko na jednej obrazovke 390×844) ---------- */
.typy { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.typy button { position: relative; height: clamp(50px, 6.6vh, 60px); border-radius: 14px; border: 3px solid var(--obrys); background: var(--noc-2); padding: 2px; cursor: pointer; min-width: 0; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.typy button.on { background: var(--zlato-2); box-shadow: 0 0 0 2px #fff, 0 4px 0 rgba(0,0,0,.4); }
.typy button:disabled { cursor: not-allowed; box-shadow: none; }
.typy button:disabled img { opacity: .22; }
.typy button:disabled::after { content: "obsadený"; position: absolute; left: 50%; top: 38%; transform: translateX(-50%) rotate(-10deg); font-size: 10px; font-weight: 900; background: var(--noc-0); color: var(--sneh); padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
.typy img { width: 100%; height: 100%; object-fit: contain; }
.kabinka { display: flex; align-items: center; gap: 4px; margin: 8px 0 6px; padding: 4px 12px 4px 4px; }
.javisko { flex: 1 1 auto; height: clamp(104px, 22vh, 190px); display: flex; align-items: flex-end; justify-content: center; }
.pokyn { text-align: center; font-weight: 900; margin: 2px 0 6px; font-size: 15px; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.pokyn b { color: var(--zlato-2); }
.pokyn.tras { animation: tras .4s linear 2; color: #ffb3a8; }
.kusy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.kusy button { position: relative; height: clamp(62px, 8.5vh, 74px); border-radius: 14px; border: 3px solid var(--obrys); background: var(--noc-2); cursor: pointer; padding: 3px 3px 28px; min-width: 0; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.kusy button.on { background: var(--noc-3); box-shadow: 0 0 0 2px var(--zlato-2), 0 4px 0 rgba(0,0,0,.4); }
.kusy button.on::after { content: ""; position: absolute; top: -9px; right: -7px; width: 26px; height: 26px; background: url(/grafika/ikony/fajka.webp) center / contain no-repeat; }
.kusy button:disabled { opacity: .3; cursor: not-allowed; }
.kusy img { width: 100%; height: 100%; object-fit: contain; }
.kusy small { position: absolute; left: 1px; right: 1px; bottom: 2px; height: 25px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.pole { width: 100%; font: inherit; font-size: 19px; font-weight: 800; padding: 10px 14px; border-radius: 16px; border: 3px solid var(--obrys); background: var(--noc-0); color: var(--sneh); outline: none; box-shadow: inset 0 0 0 2px var(--noc-3); }
.pole:focus { box-shadow: inset 0 0 0 2px var(--zlato-2); }
.akcie { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.prilepene { position: -webkit-sticky; position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; margin: auto -14px calc(-1 * max(16px, env(safe-area-inset-bottom)));
  padding: 10px 14px max(14px, env(safe-area-inset-bottom)); background: var(--noc-1); border-top: 3px solid var(--obrys); box-shadow: 0 -6px 14px rgba(0,0,0,.35); }
.prilepene::before { content: ""; height: 10px; margin: -10px 0 0; }
.riadok-kocky { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.riadok-kocky > span { font-size: 14px; font-weight: 800; min-width: 0; }
.kocka { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--obrys); background: var(--noc-3); color: var(--sneh); border-radius: 999px; padding: 3px 14px 4px 8px; font-weight: 900; font-size: 15px; box-shadow: 0 3px 0 rgba(0,0,0,.4); cursor: pointer; }
.kocka:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.kocka .ikona { font-size: 21px; }
.kocka.hod .ikona { animation: hod .5s cubic-bezier(.3,.1,.3,1); }
@keyframes hod { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.35); } 100% { transform: rotate(360deg) scale(1); } }
.zoznam { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.zoznam button { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 18px; border: 3px solid var(--obrys); background: linear-gradient(180deg, var(--noc-2), var(--noc-1)); box-shadow: inset 0 3px 0 rgba(255,255,255,.12), 0 5px 0 rgba(0,0,0,.4);
  cursor: pointer; font-size: 18px; font-weight: 900; text-align: left; }
.zoznam button:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.12), 0 2px 0 rgba(0,0,0,.4); }
.zoznam button.skupina { align-items: flex-start; padding: 10px 14px 12px; }
.zoznam button.skupina:disabled { opacity: .5; cursor: not-allowed; }
.cislo-skupiny { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, var(--zlato-1), var(--zlato-2) 45%, var(--zlato-3)); border: 3px solid var(--obrys); color: #2a1a00; display: grid; place-items: center; font-size: 23px; }
.nazov-skupiny { font-size: 18px; font-weight: 900; }
.clenovia { font-size: 14.5px; font-weight: 700; margin-top: 2px; line-height: 1.35; opacity: .92; }

/* ---------- A7: záblesk okraja k vibrácii, C9: červený okraj posledných 10 s, žiara pri držaní ZAMKNÚŤ ---------- */
.zablesk { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 var(--zh, 8px) var(--zf, #ffd34d), inset 0 0 calc(var(--zh, 8px) * 4) 0 var(--zf, #ffd34d); }
.zablesk.on { animation: zablesk var(--zt, 450ms) ease-out both; }
@keyframes zablesk { 0% { opacity: 1; } 100% { opacity: 0; } }
.okraj { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .3s; box-shadow: inset 0 0 0 7px #ff3b30, inset 0 0 40px 8px rgba(255,59,48,.6); }
body.konci-cas .okraj { opacity: 1; animation: okraj-tep 1s ease-in-out infinite; }
@keyframes okraj-tep { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.zar { position: fixed; inset: 0; z-index: 71; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 6px var(--f, #ffd34d), inset 0 0 46px 6px var(--f, #ffd34d); transition: opacity .18s ease-out; }
.zar.rastie { opacity: .9; transition: opacity .6s cubic-bezier(.4,0,.9,.5); }
.blesk { position: absolute; inset: 0; background: #fff; opacity: 0; }
.kruh { position: absolute; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 5px solid var(--f, #fff); opacity: 0; }
.iskra { position: absolute; width: 12px; height: 6px; margin: -3px -6px; border-radius: 3px; background: var(--f, #fff); opacity: 0; }
.duch { position: absolute; margin: 0 !important; animation: none !important; transition: none !important; }
.duch-cislo { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--pismo-ozdobne); font-size: 240px; line-height: 1; color: #fff; opacity: 0; }

/* ---------- M9: šteklenie čertíka; lobby ---------- */
.avatar.steklivy { cursor: pointer; }
.avatar.stekli { animation: stekli .45s cubic-bezier(.3,.1,.3,1); }
@keyframes stekli { 0% { transform: scale(1, 1); } 22% { transform: scale(1.18, .8); } 45% { transform: scale(.9, 1.12) translateY(-6%); } 70% { transform: scale(1.05, .95); } 100% { transform: scale(1, 1); } }
.hihi { position: absolute; top: 8%; z-index: 4; pointer-events: none; font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--peklo-3), 0 0 8px rgba(0,0,0,.4); white-space: nowrap; animation: hihi 1.1s ease-out forwards; }
@keyframes hihi { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(-12deg); } 18% { opacity: 1; transform: translate(-50%, -20px) scale(1.15) rotate(6deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -90px) scale(1) rotate(-4deg); } }
.avatar.tichy .postava { transform-origin: 50% 100%; animation: dych 2.6s ease-in-out infinite; }
.drziak { display: flex; align-items: flex-end; justify-content: center; padding-top: 20px; }
.hlavy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 340px; }
.hlavy span { width: 40px; height: 40px; border-radius: 50%; background: var(--noc-2); border: 3px solid var(--obrys); overflow: hidden; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.hlavy span.novy { animation: vyskoc .4s both; }
.hlavy span.my { box-shadow: 0 0 0 2px var(--zlato-2), 0 3px 0 rgba(0,0,0,.4); }
.hlavy img { display: block; width: 150%; margin: 6% 0 0 -25%; }
.hlavy-popis { font-size: 13.5px; font-weight: 800; opacity: .9; }

/* ---------- M8: úvod kola, telefón doprostred stola ---------- */
.stitok-kola { font-size: 17px; font-weight: 900; background: var(--noc-1); border: 3px solid var(--obrys); padding: 5px 16px 6px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.4); animation: vyskoc .5s both; }
.stitok-kola.finale { background: linear-gradient(180deg, var(--peklo-2), var(--peklo-3)); color: #fff; }
.nazov-kola { font-size: 27px; line-height: 1.15; color: var(--zlato-2); text-shadow: 0 3px 0 var(--obrys); max-width: 100%; animation: vyskoc .5s .15s both; }
.v-hre { font-size: 18px; font-weight: 900; background: var(--peklo-3); color: #fff; padding: 5px 16px 6px; border-radius: 14px; border: 3px solid var(--obrys); animation: vyskoc .5s .3s both; }
.na-stol { position: relative; width: 200px; height: 126px; }
.na-stol .stol { position: absolute; left: 0; right: 0; bottom: 6px; height: 54px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #8a5630, #55301a 70%); border: 3px solid var(--obrys); box-shadow: 0 8px 0 var(--obrys); }
.na-stol .vlna { position: absolute; left: 50%; bottom: 20px; width: 90px; height: 30px; margin-left: -45px; border-radius: 50%; border: 3px solid var(--zlato-2); opacity: 0; animation: vlna 1.1s ease-out 1s 3; }
.na-stol .mobil-ikona { position: absolute; left: 50%; bottom: 30px; width: 46px; height: 80px; margin-left: -23px; border-radius: 10px; background: #1b1b1f; border: 3px solid #e9edf5; transform-origin: 50% 100%; animation: na-stol .9s cubic-bezier(.3,.1,.3,1) .15s both; }
.na-stol .mobil-ikona i { position: absolute; inset: 6px 4px 10px; border-radius: 4px; background: linear-gradient(160deg, var(--a2), var(--d2)); }
@keyframes na-stol { 0% { opacity: 0; transform: translateY(90px) rotate(-25deg) scale(1.3); } 55% { opacity: 1; transform: translateY(-14px) rotate(4deg) scale(1); }
  75% { transform: translateY(0) scale(1.12, .88); } 88% { transform: translateY(-4px) scale(.96, 1.04); } 100% { opacity: 1; transform: none; } }
@keyframes vlna { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.1); } }
.pod-avatar { padding-top: 22px; }
.vyzva { font-size: 29px; line-height: 1.1; color: var(--zlato-2); text-shadow: 0 3px 0 var(--obrys); animation: vyzva .7s cubic-bezier(.3,.1,.3,1) .5s both; }
@keyframes vyzva { 0% { opacity: 0; transform: scale(2.2) rotate(-6deg); } 60% { opacity: 1; transform: scale(.94) rotate(1deg); } 100% { opacity: 1; transform: none; } }
.pravidla-mobil { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 420px; text-align: left; }
.pravidlo { display: flex; gap: 12px; align-items: center; padding: 9px 14px; font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.pravidlo .ikona { flex: 0 0 auto; font-size: 30px; }

/* ---------- otázka (C9: číta ju 5 ľudí nad stolom) ---------- */
.hlavicka { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex: 0 0 auto; }
.hlavicka .vlavo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.jemne { font-size: 13px; font-weight: 800; padding: 0 6px; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.zlate { color: var(--zlato-2); }
.hlavicka.cvicna .stitok { color: var(--zlato-2); }
.skratene-text { color: #ffb3a8; }
.sekundy { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 86px; padding: 1px 12px 3px; border-radius: 18px; background: linear-gradient(180deg, #1b2c70, var(--noc-1)); border: 3px solid var(--obrys);
  box-shadow: inset 0 0 0 3px var(--zlato-3), 0 4px 0 rgba(0,0,0,.4); font-family: var(--pismo-ozdobne); font-variant-numeric: tabular-nums; }
.sekundy b { font-size: 34px; font-weight: 400; line-height: 1.12; }
.sekundy small { font-size: 15px; opacity: .8; }
.sekundy.pauza { opacity: .6; }
.sekundy.malo { background: linear-gradient(180deg, #f0442c, var(--peklo-3)); box-shadow: inset 0 0 0 3px #ffb3a8, 0 4px 0 rgba(0,0,0,.4); }
.sekundy.tik { animation: tik .12s ease-out; }
@keyframes tik { from { transform: scale(1.12); } to { transform: none; } }
.cas { position: relative; height: 10px; border-radius: 99px; background: var(--noc-0); border: 2px solid var(--obrys); overflow: hidden; margin: 8px 0 6px; flex: 0 0 auto; }
.cas.tenky { height: 8px; }
.cas > i { position: absolute; inset: 0; display: block; background: linear-gradient(90deg, var(--c1), var(--zlato-2)); border-radius: 99px; transform-origin: left; will-change: transform; }
.cas > i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #ff3b30; opacity: 0; transition: opacity .4s; }
.cas.konci > i::after { opacity: 1; }
.cas.pauza > i, .odpojene .cas > i { opacity: .4; }
/* B10, N11: skrátenie na 15 s je pruh pod hlavičkou, otázku nezakrýva */
.pruh { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; margin: 0 0 6px; padding: 3px 12px 4px; border-radius: 12px; border: 3px solid var(--obrys); font-size: 15px; font-weight: 900; line-height: 1.15; text-align: center; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.pruh .ikona { flex: 0 0 auto; font-size: 20px; }
.pruh.skratene { background: var(--peklo-3); color: #fff; }
.pruh.skratene.novy { animation: pruh .5s var(--k-pruzina) both; }
@keyframes pruh { 0% { opacity: 0; transform: scale(1.5) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
.pruh.zolik { background: linear-gradient(180deg, #fff6d8, #f1d9a0); color: #3a2206; }
.pruh.zolik.zle { background: linear-gradient(180deg, #ffd0c7, #f3a092); }
.plocha-otazky { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 12px 0 12px; }
.tabula { position: relative; flex: 0 1 auto; min-height: 0; max-height: 100%; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 16px 14px 14px; border-radius: 22px; background: linear-gradient(180deg, #1b2c70, var(--noc-1)); border: 3px solid var(--obrys);
  box-shadow: inset 0 0 0 3px var(--zlato-3), 0 6px 0 rgba(0,0,0,.4); }
.tabula > .ciapka { position: absolute; left: -8px; top: -13px; width: 58%; max-width: 230px; pointer-events: none; }
.tabula.cela { justify-content: flex-start; overflow-y: auto; touch-action: pan-y; }
.text-otazky { flex: 0 0 auto; max-width: 100%; font-size: 32px; font-weight: 800; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; overflow-wrap: break-word; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.text-otazky.cela { -webkit-line-clamp: unset !important; line-clamp: none !important; overflow: visible; }
.text-otazky.orezana { cursor: pointer; }
.odpovede { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; padding-left: 10px; }
.odpoved { --f1: var(--a1); --f2: var(--a2); --f3: var(--a3); position: relative; display: flex; align-items: center; min-height: clamp(52px, 9.4vh, 86px); min-width: 0; padding: 6px 12px 8px 58px; border-radius: 20px; border: 3px solid var(--obrys);
  text-align: left; font-size: 22px; font-weight: 800; line-height: 1.14; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); cursor: pointer;
  background: linear-gradient(180deg, var(--f1), var(--f2) 40%, var(--f3)); box-shadow: inset 0 4px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.18), 0 6px 0 var(--obrys); transition: transform .09s ease-out, opacity .2s; }
.odpoved.o0 { color: #2a1a00; text-shadow: none; } .odpoved.o1 { --f1: var(--b1); --f2: var(--b2); --f3: var(--b3); } .odpoved.o2 { --f1: var(--c1); --f2: var(--c2); --f3: var(--c3); } .odpoved.o3 { --f1: var(--d1); --f2: var(--d2); --f3: var(--d3); }
.odpoved .text { position: relative; overflow-wrap: anywhere; }
.gula { position: absolute; left: -15px; top: 50%; width: 66px; height: 66px; margin-top: -38px; background: center / contain no-repeat; transform: rotate(-6deg); transform-origin: 50% 8%; pointer-events: none; }
.gula b { position: absolute; left: 0; right: 0; top: 29%; text-align: center; font-family: var(--pismo-ozdobne); font-weight: 400; font-size: 34px; line-height: 1; color: #fff; text-shadow: none; -webkit-text-stroke: 5px var(--obrys); paint-order: stroke fill; }
.obraz.nastup .gula { animation: gula-kyv .7s var(--k-pruzina) .4s backwards; }
@keyframes gula-kyv { 0% { transform: rotate(-14deg); } 55% { transform: rotate(8deg); } 100% { transform: rotate(-6deg); } }
.vlnka-obal { position: absolute; inset: 0; border-radius: 17px; overflow: hidden; pointer-events: none; }
.vlnka { position: absolute; left: var(--x); top: var(--y); width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: #fff; opacity: .45; animation: vlnka .5s ease-out forwards; }
@keyframes vlnka { to { transform: scale(22); opacity: 0; } }
.odpoved.stlacena { transform: translateY(4px) scale(.97); }
.odpoved.vybrana { transform: scale(1.02); box-shadow: inset 0 4px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.18), 0 0 0 4px #fff, 0 0 0 7px var(--obrys), 0 10px 0 5px var(--obrys); }
.odpoved.vybrana.pop { animation: pop .3s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes pop { 0% { transform: translateY(4px) scale(.97); } 55% { transform: scale(1.06); } 100% { transform: scale(1.02); } }
.odpoved.vybrana::after { content: ""; position: absolute; top: -12px; right: -8px; width: 32px; height: 32px; background: url(/grafika/ikony/fajka.webp) center / contain no-repeat; animation: vyskoc .3s both; }
.odpoved.ina { opacity: .55; transform: scale(.97); }

/* C10: ZAMKNÚŤ sa zamkne až podržaním 0,6 s, tlačidlo sa plní; počas držania sa obraz napína */
.zamknut { position: relative; overflow: hidden; flex: 0 0 auto; margin-top: 16px; min-height: 70px; width: 100%; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: #2a1a00; cursor: pointer;
  background: linear-gradient(180deg, var(--zlato-1), var(--zlato-2) 45%, var(--zlato-3)); border: 3px solid var(--obrys); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 7px 0 var(--obrys); transition: transform .08s; touch-action: none; }
.zamknut .napln { position: absolute; inset: 0; background: linear-gradient(90deg, var(--peklo-1), var(--peklo-2)); transform: scaleX(0); transform-origin: left; transition: transform .18s ease-out; pointer-events: none; }
.zamknut.drzi .napln { transform: scaleX(1); transition: transform .6s linear; }
.zamknut.drzi { transform: translateY(3px); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 4px 0 var(--obrys); }
.zamknut .obsah { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; pointer-events: none; padding: 4px 10px 6px; }
.zamknut .r1 { display: flex; align-items: center; gap: 8px; font-family: var(--pismo-ozdobne); font-size: 25px; line-height: 1.1; }
.zamknut .r1 .ikona { font-size: 30px; }
.zamknut .r2 { font-size: 13.5px; font-weight: 900; }
.zamknut .zuby { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 8px; pointer-events: none; opacity: 0; }
.zamknut.drzi .zuby { opacity: 1; } .zamknut.drzi .r2 { opacity: 0; }
.zamknut .zuby i { width: 26px; height: 5px; border-radius: 3px; background: #fff; opacity: .3; }
.zamknut.drzi .zuby i { animation: zub .12s ease-out forwards; }
.zamknut.drzi .zuby i:nth-child(2) { animation-delay: .2s; } .zamknut.drzi .zuby i:nth-child(3) { animation-delay: .4s; }
@keyframes zub { to { opacity: 1; transform: scale(1.15, 1.7); } }
.zamknut.tras { animation: tras .4s linear 2; }
.zamknut.zobud { animation: zobud .34s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes zobud { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.zamknut:disabled { background: linear-gradient(180deg, var(--noc-2), var(--noc-1)); color: var(--sneh); box-shadow: inset 0 3px 0 rgba(255,255,255,.1), 0 7px 0 var(--obrys); cursor: default; }
.zamknut:disabled .r1 { font-family: inherit; font-weight: 900; font-size: 18px; }
.zamknut .cip { display: inline-block; }
.zamknut .cip.otoc { animation: cip .26s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes cip { from { transform: rotateX(90deg) scale(.6); } to { transform: none; } }
.zamknut.pulz:not(.drzi) { animation: pulz .6s ease-in-out infinite; }
@keyframes pulz { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.zamknut.hotovo { background: linear-gradient(180deg, var(--c1), var(--c2)); color: #fff; }
.obraz.napina { transform: scale(.972); transition: transform .6s cubic-bezier(.4,0,.9,.5); }
.obraz.napina .odpoved.ina { opacity: .28; transition: opacity .6s; }
.obraz.napina .odpoved.vybrana { transform: scale(1.06); transition: transform .6s cubic-bezier(.4,0,.9,.5); }

/* ---------- M2: pečiatka, lavička zamknutých tímov (C10) ---------- */
.otazka-mala { flex: 0 0 auto; font-size: 16.5px; font-weight: 800; line-height: 1.28; text-align: center; margin: 2px 4px 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.pecat { --f: var(--a2); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 24px; border: 6px double var(--f); color: var(--f); transform: rotate(-8deg); background: var(--noc-0); flex: 0 0 auto;
  font-family: var(--pismo-ozdobne); box-shadow: 0 5px 0 rgba(0,0,0,.4); }
.pecat.o1 { --f: var(--b1); } .pecat.o2 { --f: var(--c1); } .pecat.o3 { --f: var(--d1); } .pecat.nic { --f: #b9c4e6; }
.pecat small { font-size: 12px; letter-spacing: .08em; }
.pecat span { font-size: 66px; line-height: .95; }
.pecat .ikona { font-size: 50px; }
.pecat.dopad { animation: pecat .5s cubic-bezier(.2,.9,.3,1.2) both; }
.pecat.dopad2 { animation: pecat .26s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pecat { 0% { opacity: 0; transform: scale(2.2) rotate(-24deg); } 55% { opacity: 1; transform: scale(.88) rotate(-6deg); } 75% { transform: scale(1.06) rotate(-9deg); } 100% { opacity: 1; transform: rotate(-8deg); } }
.zvolena-odpoved { font-size: 20px; font-weight: 800; max-width: 100%; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.zvolena-odpoved b { color: var(--zlato-2); }
.zamkli { width: 100%; max-width: 420px; padding: 8px 10px 11px; }
.pocet-zamkli { font-size: 19px; color: var(--zlato-2); text-shadow: 0 2px 0 var(--obrys); }
.pocet-zamkli b { display: inline-block; font-weight: 400; }
.pocet-zamkli b.skok { animation: cislo-skok .24s cubic-bezier(.2,.9,.3,1.5); }
@keyframes cislo-skok { from { opacity: 0; transform: translateY(70%) scale(.6); } to { opacity: 1; transform: none; } }
.rad-certikov { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.rad-certikov.vela { flex-wrap: wrap; }
.mini { flex: 0 1 50px; min-width: 0; height: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; border-radius: 12px; background: var(--noc-3); overflow: hidden; }
.rad-certikov.vela .mini { flex: 0 0 42px; height: 48px; }
.mini .avatar { max-width: 100%; }
.mini.my { box-shadow: inset 0 0 0 3px var(--zlato-2); }
.mini.prazdny { align-items: center; padding: 0; border: 2px dashed rgba(255,255,255,.3); background: none; }
.mini.prazdny span { font-size: 20px; font-weight: 900; opacity: .45; }
.mini.vskok { animation: vskok .46s cubic-bezier(.3,1.2,.5,1) both; }
@keyframes vskok { 0% { opacity: 0; transform: translateY(-64px) rotate(-18deg) scale(.7); } 55% { opacity: 1; transform: translateY(0) rotate(4deg) scale(1.1, .88); } 76% { transform: translateY(-7px) scale(.97, 1.04); } 100% { opacity: 1; transform: none; } }
.mini.vlna { animation: vlna-skok .42s ease-out both; }
@keyframes vlna-skok { 0%, 100% { transform: none; } 40% { transform: translateY(-12px) scale(.96, 1.06); } 75% { transform: translateY(0) scale(1.06, .94); } }
.mini.prazdny.posledny { animation: kyv .5s ease-in-out infinite alternate; border-color: #ffb3a8; }
.mini.prazdny.posledny span { opacity: .95; color: #ffb3a8; }
@keyframes kyv { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.na-platno { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 900; color: var(--zlato-2); margin-top: 2px; background: var(--noc-0); padding: 3px 12px 4px 16px; border-radius: 99px; }
.na-platno .ikona { font-size: 24px; animation: sipka .8s ease-in-out .6s 4 both; }
@keyframes sipka { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- bubnovanie pred odhalením ---------- */
.obraz.bubon { height: var(--vys, 100vh); min-height: 0; overflow: hidden; align-items: center; text-align: center; }
.obraz.bubon::before { content: ""; flex: .7; }
.obraz.bubon::after { content: ""; flex: 1.2; }
.tma { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 36%, rgba(0,0,0,0) 22%, rgba(3,6,18,.8) 78%); animation: tma 4s ease-in forwards; }
@keyframes tma { to { opacity: 1; } }
.bubon-pecat { position: relative; padding: 26px; }
.bubon-pecat .pecat { transform: rotate(-8deg) scale(1.22); }
.bubon-pecat.tep { animation: bubon-tep .13s ease-out; }
@keyframes bubon-tep { 50% { transform: scale(1.07); } }
.bubon-text { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 0 8px; }
.bubon-text .velky .ikona { font-size: 1.1em; margin-left: 6px; }
.kukac { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 56%); animation: kukni .42s var(--k-pruzina) .25s backwards; }
@keyframes kukni { from { transform: translate(-50%, 110%); } }
.kukac .avatar:not(.b2) { animation: nervy .16s linear infinite; }
@keyframes nervy { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg) translateY(-1%); } }

/* ---------- M3, B8: výsledok ako jedna sekvencia ---------- */
.zaplava { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .2s; }
.zaplava.on { opacity: 1; transition: none; }
.zaplava i { position: absolute; border-radius: 50%; transform: scale(0); }
.zaplava.on i { transform: none; }
.zaplava.vlej i { animation: vlej .44s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vlej { from { transform: scale(0); } to { transform: none; } }
.zaplava.ok i { background: radial-gradient(circle, #33bd72 0, #1c8a4d 45%, #0f5f35 100%); }
.zaplava.zle i { background: radial-gradient(circle, #cf4033 0, #a8261b 45%, #6a130d 100%); }
.zaplava.nic i { background: radial-gradient(circle, #4a5a9a 0, #2c3a78 45%, #16245c 100%); }
.obraz.vysledok { align-items: center; justify-content: center; text-align: center; gap: 8px; color: #fff; }
.obraz.vysledok > * { flex: 0 0 auto; position: relative; z-index: 7; }   /* B15: texty sú vždy nad čertíkom */
.obraz.vysledok > .scena { z-index: 1; }
.obraz.hned *, .obraz.hned { animation-duration: .01s !important; animation-delay: 0s !important; }
.stitok-cvicna { background: var(--noc-0); color: #fff; padding: 4px 14px 5px; border-radius: 999px; font-weight: 900; font-size: 14.5px; border: 3px solid var(--obrys); }
.verdikt { font-size: 66px; line-height: 1; color: #fff; text-shadow: 0 5px 0 var(--obrys); -webkit-text-stroke: 7px var(--obrys); paint-order: stroke fill; }
.verdikt.maly { font-size: 42px; }
.verdikt.ok { animation: ano .4s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes ano { 0% { opacity: 0; transform: scale(2.6) rotate(-8deg); } 60% { opacity: 1; transform: scale(.92) rotate(2deg); } 100% { opacity: 1; transform: none; } }
.verdikt.zle { animation: vedla .46s cubic-bezier(.3,0,.4,1) both; }
@keyframes vedla { 0% { opacity: 0; transform: translateY(-160px) rotate(8deg); } 55% { opacity: 1; transform: translateY(6px) rotate(-7deg) scale(1.06, .9); } 75% { transform: translateY(-5px) rotate(-3deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
.otras-x { animation: otras .34s linear; }
@keyframes otras { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-10px); } 35% { transform: translateX(9px); } 55% { transform: translateX(-6px); } 78% { transform: translateX(4px); } }
.scena { position: relative; width: 100%; display: flex; justify-content: flex-start; align-items: flex-end; padding-left: 9%; margin-top: clamp(4px, 3.4vh, 30px); }
.scena.s-ciapkou { margin-top: clamp(14px, 5.6vh, 50px); }   /* čiapka a korunka trčia nad hlavu */
.scena.sam { justify-content: center; padding-left: 0; }
.miesto-certa { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.miesto-certa.skok { animation: skok-zdola .4s cubic-bezier(.2,.8,.4,1) both; }
@keyframes skok-zdola { 0% { opacity: 0; transform: translateY(70vh); } 15% { opacity: 1; } 65% { transform: translateY(-34px) scale(.98, 1.03); } 100% { opacity: 1; transform: none; } }
.bublina { position: absolute; z-index: 6; left: 60%; right: 0; top: -4%; background: #fff; color: #2a1a00; border: 3px solid var(--obrys); border-radius: 18px 18px 18px 5px; padding: 8px 11px 9px; font-size: 16px; font-weight: 800; line-height: 1.22; text-align: left; box-shadow: 0 4px 0 rgba(0,0,0,.3);
  transform-origin: 0 100%; animation: bublina .32s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes bublina { from { opacity: 0; transform: scale(.2) rotate(-10deg); } to { opacity: 1; transform: none; } }
.body { font-size: 54px; color: var(--zlato-1); line-height: 1; text-shadow: 0 4px 0 var(--obrys); font-variant-numeric: tabular-nums; animation: ano .3s cubic-bezier(.2,.9,.3,1.3) both; }
.body.tik { animation: tik .09s ease-out; }
.strike { display: flex; gap: 8px; align-items: center; padding: 4px 14px 5px; border-radius: 12px; background: linear-gradient(180deg, var(--peklo-2), var(--peklo-3)); color: #fff; border: 3px solid var(--obrys); box-shadow: 0 5px 0 rgba(0,0,0,.3); font-size: 19px; font-weight: 900; animation: nalepka .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes nalepka { 0% { opacity: 0; transform: scale(2.2) rotate(14deg); } 70% { opacity: 1; transform: scale(.95) rotate(-7deg); } 100% { opacity: 1; transform: rotate(-5deg); } }
.pipy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 800; min-height: 30px; text-shadow: 0 1px 0 rgba(0,0,0,.4); animation: prichod .3s both; }
.pip { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.32); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.pip i { position: absolute; inset: -5px -3px -1px; background: url(/grafika/ikony/plamen.webp) center / contain no-repeat; opacity: 0; }
.pip.hori i { opacity: 1; animation: pip .34s cubic-bezier(.2,.9,.3,1.6) both; }
@keyframes pip { from { transform: scale(.2); } to { transform: none; } }
.pip.pada i { opacity: 1; animation: pad .55s cubic-bezier(.5,0,.9,.6) forwards; }
@keyframes pad { 0% { transform: none; opacity: 1; } 25% { transform: translateY(-6px) rotate(-10deg); } 100% { transform: translateY(46px) rotate(50deg); opacity: 0; } }
.pipy span { margin-left: 4px; }
.odpovede-vysledok { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 400px; }
.riadok-odpovede { position: relative; display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 6px; border-radius: 14px; background: rgba(0,0,0,.3); font-size: 18px; font-weight: 800; color: #fff; text-align: left; line-height: 1.2; animation: prichod .28s both; }
.riadok-odpovede .popis { flex: 0 0 auto; font-size: 15px; }
.riadok-odpovede .odp { overflow-wrap: anywhere; }
.riadok-odpovede .ciara { position: absolute; left: 44px; right: 10px; top: 52%; height: 3px; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.riadok-odpovede.kresli .ciara { transform: scaleX(1); transition: transform .26s ease-out; }
.riadok-odpovede.skrt .odp { text-decoration: line-through; text-decoration-thickness: 3px; }
.riadok-odpovede.spravne { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px #fff; animation: ano .36s cubic-bezier(.2,.9,.3,1.3) both; }
.cip-maly { --f: var(--a2); flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--f); color: #fff; font-family: var(--pismo-ozdobne); font-size: 18px; font-weight: 400; border: 2px solid var(--obrys); }
.cip-maly.o0 { color: #2a1a00; } .cip-maly.o1 { --f: var(--b2); } .cip-maly.o2 { --f: var(--c2); } .cip-maly.o3 { --f: var(--d2); }
.za-cas { font-size: 16px; font-weight: 800; color: #fff; }
.sucet { font-size: 19px; font-weight: 900; color: var(--zlato-1); background: rgba(0,0,0,.3); padding: 5px 16px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; animation: prichod .28s both; }
.sucet.buch { animation: buch .3s cubic-bezier(.2,.9,.3,1.5); }
@keyframes buch { 0% { transform: scale(1.16); } 100% { transform: none; } }
.vysledok .tip, .vysledok .stredny { animation: prichod .28s both; }
.zolik-caka { display: flex; align-items: center; gap: 8px; padding: 5px 14px 6px; border-radius: 14px; background: linear-gradient(180deg, #fff6d8, #f1d9a0); color: #3a2206; border: 3px solid var(--obrys); font-size: 15px; font-weight: 900; animation: prichod .28s both; }
.perlicka { margin-top: 4px; padding: 9px 13px 10px; border-radius: 16px; background: linear-gradient(180deg, #fff6d8, #f1d9a0); color: #3a2206; border: 3px solid var(--obrys); box-shadow: 0 4px 0 rgba(0,0,0,.3); font-weight: 700; font-size: 14.5px; line-height: 1.33; text-align: left; max-width: 420px; animation: zdola .34s cubic-bezier(.2,.8,.3,1.1) both; }
.perlicka b { font-weight: 900; }
.perlicka .ikona { font-size: 19px; margin-right: 4px; }

/* ---------- M6, B9: poradie (až po plátne), finále ---------- */
.miesto { font-size: 68px; color: var(--zlato-2); line-height: 1; text-shadow: 0 5px 0 var(--obrys); }
.miesto-karta { perspective: 500px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 72px; }
.miesto-karta .miesto { display: inline-block; }
.miesto-karta .ikona { font-size: 58px; }
.miesto.preklop { animation: preklop .56s ease-in-out both; }
@keyframes preklop { 0% { transform: rotateX(0); } 49.9% { transform: rotateX(90deg); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
.miesto.vyskoc { animation: vyskoc .6s both; }
.posun { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 900; padding: 3px 16px 4px; border-radius: 999px; border: 3px solid var(--obrys); animation: vyskoc .5s both; }
.posun.hore { background: var(--c2); color: #fff; } .posun.dole { background: var(--peklo-3); color: #fff; } .posun.drzi { background: var(--noc-2); }
.naskok { font-size: 15px; font-weight: 800; background: var(--noc-0); padding: 3px 12px 4px; border-radius: 12px; animation: zjav .4s both; }
.naskok.hlavny { display: inline-flex; align-items: center; gap: 6px; font-size: 18.5px; font-weight: 900; color: var(--zlato-2); background: var(--noc-1); border: 3px solid var(--obrys); padding: 5px 14px 6px; border-radius: 14px; }
.debna { font-size: 96px; }
.debna.trasie { animation: tras .4s linear infinite; }
.debna.otvor { animation: debna .5s ease-in both; }
@keyframes debna { 0% { transform: none; } 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: scale(.2); opacity: 0; } }

/* ---------- C1: karta tímu na konci ---------- */
.karta-timu { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 4px 0; }
.karta-hlava { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.karta-hlava > div:last-child { min-width: 0; position: relative; }
.karta-cert { padding-top: 0; flex: 0 0 34%; margin: 0; }
.karta-hlava > div:last-child { z-index: 6; }
.karta-meno { font-size: 23px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.karta-miesto { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: clamp(16px, 5.3vw, 22px); color: var(--zlato-2); text-shadow: 0 2px 0 var(--obrys); margin-top: 6px; }
.karta-miesto .ikona { font-size: 30px; flex: 0 0 auto; }
.karta-body { font-size: 16.5px; font-weight: 800; margin-top: 2px; }
.staty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 9px 6px 10px; text-align: center; border-radius: 16px; }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--zlato-1); }
.stat span { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.ocenenie { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(180deg, var(--zlato-1), var(--zlato-2) 45%, var(--zlato-3)); color: #2a1a00; border: 3px solid var(--obrys); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 6px 0 var(--obrys); }
.ocenenie > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.ocenenie small { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ocenenie b { font-size: 22px; line-height: 1.15; }
.ocenenie span { font-size: 14.5px; font-weight: 800; }
.ocenenie-ikona { flex: 0 0 auto; font-size: 52px; }
.ocenenie.nove { animation: vyskoc .6s cubic-bezier(.2,.9,.3,1.3) both; }
.ocenenie.caka { background: linear-gradient(180deg, var(--noc-2), var(--noc-1)); color: var(--sneh); box-shadow: 0 5px 0 rgba(0,0,0,.4); }
.ocenenie.caka b { font-family: inherit; font-weight: 900; font-size: 17px; }
.karta-timu .tip { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; align-self: center; background: var(--noc-0); padding: 3px 14px 4px; border-radius: 12px; }
.karta-timu .tip .ikona { font-size: 22px; }

/* ---------- žolíky: Peklo alebo nebo, Čertov pazúr ---------- */
.zolik-hlava { position: relative; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; flex: 0 0 auto; }
.zolik-hlava .ikona { font-size: 74px; animation: vyskoc .5s both; }
.zolik-hlava.mala { flex-direction: row; justify-content: center; margin-top: 8px; }
.zolik-hlava.mala .ikona { font-size: 38px; animation: none; }
.zolik-nazov { font-size: 30px; line-height: 1.1; color: var(--zlato-2); text-shadow: 0 3px 0 var(--obrys); }
.zolik-hlava.mala .zolik-nazov { font-size: 23px; }
.zolik-pravidlo { padding: 12px 16px 14px; font-size: 18px; font-weight: 800; line-height: 1.3; max-width: 420px; }
.zolik-pravidlo b { color: var(--zlato-2); }
.zolik-volby { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 10px 0; }
.volba { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; padding: 10px 14px 12px; border-radius: 22px; border: 3px solid var(--obrys); cursor: pointer; color: #fff; text-align: center;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.18), 0 7px 0 var(--obrys); transition: transform .09s ease-out, opacity .2s; }
.volba b { display: flex; align-items: center; gap: 8px; font-family: var(--pismo-ozdobne); font-weight: 400; font-size: 27px; line-height: 1.1; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.volba b .ikona { font-size: 36px; }
.volba small { font-size: 14.5px; font-weight: 900; }
.volba.risk { background: linear-gradient(180deg, var(--peklo-1), var(--peklo-2) 40%, var(--peklo-3)); }
.volba.istota { background: linear-gradient(180deg, var(--b1), var(--b2) 40%, var(--b3)); }
.volba.bez { min-height: 60px; background: linear-gradient(180deg, var(--noc-3), var(--noc-2)); flex: 0 0 auto; }
.volba.bez b { font-size: 21px; }
.volba:active { transform: translateY(4px) scale(.98); }
.volba.vybrana { transform: scale(1.02); box-shadow: inset 0 4px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.18), 0 0 0 4px #fff, 0 0 0 7px var(--obrys), 0 10px 0 5px var(--obrys); }
.volba.vybrana::after { content: ""; position: absolute; top: -12px; right: -8px; width: 34px; height: 34px; background: url(/grafika/ikony/fajka.webp) center / contain no-repeat; animation: vyskoc .3s both; }
.volba.ina { opacity: .6; transform: scale(.97); }
.volba.odosiela, .ciel.odosiela { box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 6px 0 var(--obrys); }
.volba:disabled { cursor: default; }
.zolik-pauza .volba:not(.vybrana), .zolik-pauza .ciel:not(.vybrana) { opacity: .45; box-shadow: none; }
.pruh.pauza { background: var(--noc-0); color: var(--zlato-2); margin-top: 2px; }
.ciele { flex: 1 1 0; min-height: 0; overflow-y: auto; touch-action: pan-y; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 12px 2px; margin: 6px 0; }
.ciel { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 12px 6px 6px; border-radius: 16px; border: 3px solid var(--obrys); background: linear-gradient(180deg, var(--noc-2), var(--noc-1)); color: var(--sneh); text-align: left; cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.12), 0 4px 0 rgba(0,0,0,.4); transition: transform .09s ease-out; }
.ciel .mini { flex: 0 0 44px; height: 46px; background: var(--noc-3); }
.ciel .kto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ciel .kto b { font-size: 16px; font-weight: 900; line-height: 1.12; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.ciel .kto small { font-size: 13px; font-weight: 800; opacity: .9; }
.ciel .akcia { flex: 0 0 auto; font-family: var(--pismo-ozdobne); font-size: 14px; color: var(--zlato-2); }
.ciel:disabled { cursor: default; }
.ciel.neda { opacity: .55; cursor: not-allowed; box-shadow: none; }
.ciel.neda .akcia { display: none; }
.ciele.dva { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; align-content: start; gap: 7px; padding: 6px 6px 10px 2px; }
.ciele.dva .ciel { min-height: clamp(52px, 7.6vh, 66px); gap: 6px; padding: 3px 6px 4px 3px; border-radius: 14px; min-width: 0; }
.ciele.dva .ciel .mini { flex: 0 0 32px; height: 38px; border-radius: 9px; }
.ciele.dva .ciel .kto b { font-size: 13.5px; line-height: 1.14; -webkit-line-clamp: 3; line-clamp: 3; }   /* úzky stĺpec: dlhý názov má tri riadky, nie bodky */
.ciele.dva .ciel .kto small { font-size: 11.5px; line-height: 1.1; }
.ciele.dva .ciel.vybrana { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--obrys); transform: none; }
.ciel.vybrana { background: linear-gradient(180deg, var(--peklo-2), var(--peklo-3)); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--obrys), 0 8px 0 4px var(--obrys); transform: scale(1.01); }
.ciel.vybrana .akcia { color: #fff; }
.zolik-stav { align-self: center; text-align: center; font-size: 13.5px; font-weight: 800; flex: 0 0 auto; margin-top: 10px; padding: 4px 14px 5px; border-radius: 14px; background: var(--noc-0); }
.zolik-karta { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 400px; padding: 12px 14px 14px; text-align: center; animation: vyskoc .5s both; }
.zolik-karta .ikona { font-size: 54px; }
.zolik-karta.dobre { background: linear-gradient(180deg, #33bd72, #0f5f35); }
.zolik-karta.zle { background: linear-gradient(180deg, #cf4033, #6a130d); }
.zolik-cislo { font-size: 38px; line-height: 1.05; color: var(--zlato-1); text-shadow: 0 3px 0 var(--obrys); }
.zolik-karta .stredny { font-size: 17px; }
.zolik-karta small { font-size: 14px; font-weight: 800; }
.husto .zolik-karta { padding: 7px 12px 9px; gap: 1px; } .husto .zolik-karta .ikona { font-size: 34px; } .husto .zolik-karta .velky { font-size: 22px; } .husto .zolik-cislo { font-size: 30px; } .husto .drziak { padding-top: 8px; }

/* ---------- M5: šetrenie batérie ---------- */
.setri .sneh, .skryta .sneh { display: none; }
.setri .avatar .postava, .setri .avatar .tien, .skryta .avatar .postava, .skryta .avatar .tien, .skryta .castica { animation-play-state: paused; }

/* nízke telefóny: menšie prvky, aby sa všetko zmestilo */
@media (max-height: 700px) {
  .odpovede { gap: 9px; }
  .odpoved { font-size: 20px; padding-top: 4px; padding-bottom: 6px; }
  .gula { width: 58px; height: 58px; margin-top: -33px; left: -13px; } .gula b { font-size: 30px; }
  .zamknut { min-height: 62px; margin-top: 12px; } .zamknut .r1 { font-size: 22px; }
  .plocha-otazky { padding: 10px 0 8px; } .tabula { padding: 12px 12px 11px; }
  .sekundy b { font-size: 30px; }
  .vyzva { font-size: 25px; } .velky { font-size: 25px; } .stredny { font-size: 17px; }
  .verdikt { font-size: 52px; } .verdikt.maly { font-size: 36px; } .body { font-size: 44px; } .bublina { font-size: 14.5px; }
  .pecat { width: 96px; height: 96px; } .pecat span { font-size: 54px; }
  .karta-timu { gap: 8px; } .ocenenie-ikona { font-size: 42px; }
  .na-stol { transform: scale(.8); margin: -12px 0; }
  .volba { min-height: 76px; } .volba b { font-size: 23px; } .zolik-hlava .ikona { font-size: 56px; } .zolik-nazov { font-size: 25px; } .zolik-pravidlo { font-size: 16px; }
  .ciel { min-height: 50px; } .riadok-odpovede { font-size: 16.5px; } .perlicka { font-size: 13.5px; padding: 7px 11px 8px; }
  .debna { font-size: 76px; } .miesto { font-size: 58px; }
  .pravidla-mobil { gap: 6px; } .pravidlo { padding: 6px 12px; font-size: 14px; gap: 10px; } .pravidlo .ikona { font-size: 25px; }
  .obraz.vysledok { gap: 5px; } .stred { gap: 8px; } .scena { margin-top: 8px; }
  .hlavy-popis { display: none; } .hlavy span { width: 34px; height: 34px; } .meno-timu { font-size: 18px; }
  .zamknut.skusobne { margin-top: 8px; } .akcie { margin-top: 6px; }
}
/* úzke telefóny (320 px) */
@media (max-width: 359px) {
  h1 { font-size: 23px; }
  .obraz { padding-left: 10px; padding-right: 10px; }
  .prilepene { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
  .kocka { font-size: 14px; } .riadok-kocky > span { font-size: 13px; }
  .typy { gap: 4px; } .kusy { gap: 5px; }
  .odpoved { font-size: 19px; }
  .zamknut .r1 { font-size: 21px; }
  .sekundy { min-width: 72px; } .sekundy b { font-size: 29px; }
  .verdikt { font-size: 48px; }
  .karta-meno { font-size: 20px; } .stat b { font-size: 18px; } .ocenenie b { font-size: 19px; }
  .stitok { font-size: 13.5px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 380px) { .karta-hlava { padding: 8px 8px; gap: 6px; } .karta-miesto .ikona { font-size: 26px; } .stat span { font-size: 11.5px; } }

@media (prefers-reduced-motion: reduce) {
  .obraz.nastup > *, .obraz.odchod, .stitok-kola, .nazov-kola, .v-hre, .na-stol *, .vyzva, .pecat.dopad, .pecat.dopad2, .verdikt, .strike, .posun, .naskok, .bublina, .na-platno .ikona, .zamknut.pulz, .avatar.stekli, .miesto.preklop, .miesto.vyskoc,
  .mini, .ocenenie.nove, .kocka.hod .ikona, .sekundy.tik, .pruh.novy, .gula, .kukac, .kukac .avatar, .tma, .zaplava i, .miesto-certa.skok, .body, .pipy, .pip i, .riadok-odpovede, .sucet, .perlicka, .debna, .zolik-karta, .zolik-hlava .ikona, .avatar.tichy .postava, .hlavy span { animation: none !important; }
  body.konci-cas .okraj { animation: none; }
  .hihi { animation-duration: .01s; }
  .obraz, .obraz.napina { transition: none; transform: none; }
}
