:root {
  --night: #0f1630;
  --night2: #1b2550;
  --paper: #fffaf0;
  --ink: #1d1d2b;
  --gold: #ffcc33;
  --red: #e63946;
  --green: #2a9d8f;
  --snow: #eef6ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--night); } /* inak biely pruh hore v aplikácii z plochy (iPhone 11. 11.) */
body {
  background: radial-gradient(ellipse at top, var(--night2), var(--night) 70%);
  color: var(--snow);
  font: 800 19px/1.4 Nunito, system-ui, sans-serif;
  overflow-x: hidden;
}
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.app { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 0 8px; font-size: 14px; opacity: .9; }
.dots { display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.2); }
.dots i.done { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

h1, h2 { font-family: Bangers, Impact, sans-serif; letter-spacing: .04em; font-weight: 400; margin: 6px 0 10px; }
h1 { font-size: 46px; line-height: 1; color: var(--gold); text-shadow: 3px 3px 0 var(--red); }
h2 { font-size: 34px; color: var(--gold); }
.who { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 15px; margin-bottom: 4px; }

.panel {
  background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.45); padding: 16px; margin: 14px 0; position: relative;
  animation: pop .45s cubic-bezier(.2,1.6,.4,1) both;
}
.panel p { margin: 0 0 10px; }
.panel p:last-child { margin-bottom: 0; }
.bubble { position: relative; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; margin: 10px 0; }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -14px; border: 12px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
@keyframes pop { from { transform: scale(.85) rotate(-1deg); opacity: 0; } }

.art { width: 100%; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; background: #22305f; position: relative; box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
.art svg, .art img { display: block; width: 100%; height: auto; }

.btn {
  display: block; width: 100%; min-height: 60px; margin-top: 12px; border: 4px solid var(--ink); border-radius: 16px;
  background: var(--gold); color: var(--ink); font: inherit; font-size: 22px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .08s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.alt { background: #fff; font-size: 18px; min-height: 52px; }
/* odkaz vyzerá ako tlačidlo (17. 11.: 🎬 Pozrieť si rozprávku) */
a.btn { box-sizing: border-box; text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 10px; }
/* obrázok má miesto ešte pred načítaním, posun na „Ďalej“ netrafí vedľa (tester 17. 11.) */
.art.pic img { aspect-ratio: 16 / 9; object-fit: cover; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.answer { display: flex; gap: 10px; margin-top: 12px; }
.answer input {
  flex: 1; min-width: 0; min-height: 60px; border: 4px solid var(--ink); border-radius: 16px; padding: 0 14px;
  font: inherit; font-size: 26px; text-transform: uppercase; letter-spacing: .15em; text-align: center; background: #fff; color: var(--ink);
}
.answer .btn { width: auto; margin: 0; padding: 0 18px; }

.note {
  background: #fdf6d8; color: var(--ink); border: 3px dashed #b88a00; border-radius: 6px; padding: 18px 8px; text-align: center;
  font-family: "Courier New", monospace; font-size: clamp(20px, 6.4vw, 30px); letter-spacing: .04em; white-space: nowrap; transform: rotate(-2deg); margin: 14px 8px;
  box-shadow: 4px 6px 0 rgba(0,0,0,.35);
}
.note.poem { white-space: normal; text-align: left; font-size: clamp(17px, 4.8vw, 22px); line-height: 1.6; padding: 16px 18px; letter-spacing: 0; }
.cap.hi { color: #c1121f; font-weight: bold; }
.abc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 14px; text-align: center; margin-top: 10px; }
.abc span { background: #eef; border-radius: 6px; padding: 4px 0; }
.abc b { display: block; font-size: 18px; }

.houses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.house { border: 4px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); padding: 10px; text-align: center; font: inherit; font-size: 17px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.house .h { font-size: 44px; line-height: 1.1; }
.house small { display: block; margin-top: 4px; font-weight: 600; }
.house.wrong { animation: shake .4s; background: #ffe1e1; }
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th, .table td { border-bottom: 2px solid #e3dccb; padding: 6px 4px; text-align: center; }
.table th:first-child, .table td:first-child { text-align: left; }

.hit, .decoy { cursor: pointer; }
.glow { animation: glow 1s infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 0 10px #ffcc33) drop-shadow(0 0 4px #fff); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.shake { animation: shake .4s; }

.bell-wrap { height: 220px; position: relative; overflow: hidden; }
.bell { position: absolute; left: 50%; top: 0; width: 4px; height: 150px; background: #6b4b2a; transform-origin: top center; }
.bell span { position: absolute; bottom: -36px; left: -26px; font-size: 54px; }
.target { position: absolute; left: 50%; top: 168px; transform: translateX(-50%); width: 92px; height: 50px; border: 3px dashed var(--gold); border-radius: 50%; }
.ball { position: absolute; left: 50%; bottom: -40px; font-size: 40px; transform: translateX(-50%); transition: bottom .45s ease-out, opacity .3s; }

.flash { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.flash[hidden] { display: none; } /* inak display:flex prebije hidden a nápis ostane v strome stránky */
.flash span {
  font-family: Bangers, Impact, sans-serif; font-size: 64px; color: var(--gold); text-shadow: 4px 4px 0 var(--red), -2px -2px 0 var(--ink);
  animation: boom 1.1s ease-out both; text-align: center; padding: 0 20px;
}
@keyframes boom { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 30% { transform: scale(1.15) rotate(3deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.gift { display: inline-block; animation: float 2.4s ease-in-out infinite; }
.gift.gone { animation: vanish 1.2s ease-in forwards; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes vanish { to { transform: translateY(-80px) scale(.2) rotate(40deg); opacity: 0; } }
.twinkle { animation: tw 1.6s infinite; }
@keyframes tw { 50% { opacity: .25; } }
.door { transform-origin: left center; transition: transform 1.6s ease; }
.door.open { transform: perspective(600px) rotateY(-75deg); }

.stamp {
  display: inline-block; border: 5px solid var(--red); color: var(--red); font-family: Bangers, Impact, sans-serif; font-size: 34px;
  padding: 4px 16px; border-radius: 10px; transform: rotate(-8deg); margin: 10px 0; animation: pop .5s .2s both;
}
.small { font-size: 15px; font-weight: 600; opacity: .85; }
/* Zvuk, čítanie nahlas, striedanie, preskočenie a zhrnutie (11. 11., rovnako ako v hre hviezda). */
.tools { display: flex; align-items: center; gap: 8px; }
.tool { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 20px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.turn { font-size: 15px; font-weight: 600; opacity: .85; margin: 2px 0 4px; }
.skip { text-align: right; }
.skip button { background: none; border: 0; color: var(--snow); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; opacity: .8; min-height: 44px; padding: 10px 6px; } /* 44 px = pohodlne na palec (test 11. 11.) */
.learned li { margin: 4px 0; }

/* Autorské práva (Katka 13. 11.) */
.copy { position: relative; z-index: 1; text-align: center; font: 600 12px/1.4 Nunito, system-ui, sans-serif; opacity: .55; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }

/* ---------- v3 (16. 11.): hádanky, labyrint, hod guľou ťahom prsta, rozdávanie darčekov ---------- */
.riddle { font-size: 21px; }
.choices { display: grid; gap: 10px; margin: 10px 0; }
.choice.wrong { background: #ffe1e1; color: var(--ink); opacity: .6; }
.maze { display: grid; width: 100%; margin: 10px auto; touch-action: none; user-select: none; -webkit-user-select: none; background: #f4f8ff; border-radius: 12px; overflow: hidden; }
.maze .cell { box-sizing: border-box; aspect-ratio: 1 / 1; border: 2px solid rgba(29,29,43,.04); display: grid; place-items: center; font-size: 24px; position: relative; }
.maze .cell.wn { border-top: 5px solid #7a5a3a; } .maze .cell.ws { border-bottom: 5px solid #7a5a3a; }
.maze .cell.we { border-right: 5px solid #7a5a3a; } .maze .cell.ww { border-left: 5px solid #7a5a3a; }
.maze .cell.on { background: rgba(255,204,51,.45); }
.maze .cell.head::after { content: ''; position: absolute; inset: 6%; border-radius: 8px; background: url(obrazky/stvorkolka-ikona.jpg) center / cover; box-shadow: 0 0 0 3px var(--gold); }
.maze .cell.glow { animation: detGlow .5s ease-in-out 5 alternate; }
@keyframes detGlow { to { background: rgba(255,204,51,.95); box-shadow: inset 0 0 12px #fff; } }
.notes { text-align: center; font-size: 28px; min-height: 34px; }
.notes .empty { opacity: .25; }
.throw-zone { position: relative; height: min(340px, 55vh); margin: 10px 0; border-radius: 16px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(#2b3a6b, #4a5d94 60%, #e9f2ff 60%); cursor: crosshair; }
.throw-zone .rope { position: absolute; left: 0; right: 0; top: 24px; height: 3px; background: #7a5a3a; }
.bell2 { position: absolute; top: 22px; font-size: 44px; transform: translateX(-50%); pointer-events: none; }
.bell2.ring { animation: detRing .15s 4 alternate; }
@keyframes detRing { from { rotate: -25deg; } to { rotate: 25deg; } }
.ball2 { position: absolute; left: calc(50% - 22px); bottom: 18px; font-size: 44px; line-height: 44px; pointer-events: none; }
.aim { position: absolute; height: 0; border-top: 4px dashed var(--gold); filter: drop-shadow(0 0 2px #000); transform-origin: 0 0; opacity: 0; pointer-events: none; }
.hits { position: absolute; right: 10px; bottom: 10px; font-size: 22px; color: var(--ink); }
.pile { text-align: center; font-size: 22px; letter-spacing: 1px; line-height: 1.3; min-height: 30px; margin: 6px 0; }
.gifthouses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.gh { display: flex; flex-direction: column; border: 4px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.gh.bad { border-color: var(--red); background: #ffe1e1; animation: shake .4s; }
.gh-btn { font: inherit; font-size: 30px; background: none; border: 0; color: inherit; padding: 8px 6px 4px; cursor: pointer; min-height: 44px; }
.gh-btn span { display: block; font-size: 15px; }
.gh-btn small { display: block; font-size: 16px; font-weight: 600; }
.gh-n { font: inherit; font-size: 24px; background: var(--gold); border: 0; border-top: 3px solid var(--ink); color: var(--ink); min-height: 44px; cursor: pointer; }
.gh-n::before { content: '🎁 '; }

/* 320 px (test 16. 11.): hlavička sa zalomí, šifra sa zmenší */
@media (max-width: 360px) {
  .bar { flex-wrap: wrap; gap: 6px; }
  .bar .case { font-size: 13px; }
  .note { font-size: 24px; white-space: normal; }
  h1 { font-size: 38px; } h2 { font-size: 29px; }
}
.gh-plus { font: inherit; font-size: 16px; background: #e9f2ff; border: 0; border-top: 2px solid var(--ink); color: var(--ink); min-height: 44px; cursor: pointer; }
/* Zápisník dôkazov (17. 11.) */
.clue { margin-top: 12px; background: #fdf6d8; color: var(--ink); border: 3px dashed #b88a00; border-radius: 12px; padding: 12px 14px; font-size: 18px; animation: clueIn .5s ease-out; }
.clue b { font-size: 19px; }
@keyframes clueIn { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dossier { background: #fdf6d8; border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .clue { animation: none; } }

/* ---------- Vianočná iskra na ľade (Tomáš, 18. 11. 2026) ---------- */
.board { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 4px; background: #0b0f1f; border: 3px solid #2b3a6b; border-radius: 12px; padding: 6px 10px; font-family: Bangers, Impact, sans-serif; letter-spacing: .05em; }
.board span { font-size: 17px; color: #9fd0ff; }
.board b { font-size: 30px; color: #ffcc33; text-shadow: 0 0 8px rgba(255,204,51,.7); min-width: 74px; text-align: center; font-weight: 400; }
.bubble.big { font-size: 22px; text-align: center; }
.built, .words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; min-height: 56px; }
.built { background: rgba(255,255,255,.08); border: 3px dashed rgba(255,255,255,.35); border-radius: 14px; padding: 8px; align-items: center; }
.built i { opacity: .6; }
.word { font: 800 20px Nunito, system-ui, sans-serif; min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.word.on { background: var(--gold); }
.word:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.banner { margin: 12px 0; padding: 18px 10px; text-align: center; font: 400 38px/1.1 Bangers, Impact, sans-serif; letter-spacing: .06em; color: #fff; background: repeating-linear-gradient(90deg, #1d4fa3 0 40px, #2563c9 40px 80px); border: 4px solid #fff; border-radius: 10px; }
.banner .gap { display: inline-block; min-width: 1em; color: var(--gold); border-bottom: 4px solid var(--gold); }
.banner .gap.ok { color: #9dffb0; border-color: #9dffb0; }
.iy { font-size: 26px; }
.iy.wrong { opacity: .45; background: #ffe1e1; }
.meter { position: relative; height: 30px; margin: 10px 0; border-radius: 999px; background: rgba(255,255,255,.12); border: 3px solid var(--ink); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffcc33, #fff3b0); box-shadow: 0 0 14px #ffcc33; transition: width .25s; }
.meter span { position: relative; display: block; text-align: center; line-height: 24px; font-size: 16px; color: var(--ink); text-shadow: 0 0 4px #fff; }
.fan-zone { position: relative; height: min(360px, 52vh); margin: 10px 0; border-radius: 16px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(#22305f, #31457f 60%, #dfeefe 60%, #f4f8ff); border: 4px solid var(--ink); }
.fanb { position: absolute; max-width: calc(100% - 8px); font: 800 17px/1.15 Nunito, system-ui, sans-serif; padding: 9px 12px; min-height: 44px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; touch-action: none; }
.fanb.yes { background: #ffe680; transform: scale(1.15); opacity: 0; transition: transform .3s, opacity .3s; }
.fanb.no { background: #ffb3b3; transform: rotate(-8deg) scale(.8); opacity: 0; transition: transform .3s, opacity .3s; }
.crowd { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0; font-size: 30px; text-align: center; }
.crowd span { opacity: .45; transition: opacity .3s, transform .3s; }
.crowd span.on { opacity: 1; transform: scale(1.12); }
.clapbtn { display: block; margin: 10px auto; width: 150px; height: 150px; border-radius: 50%; font-size: 72px; border: 5px solid var(--ink); background: var(--gold); box-shadow: 0 7px 0 var(--ink); touch-action: manipulation; }
.clapbtn.pop { animation: clapPop .18s ease-out; }
@keyframes clapPop { 50% { transform: scale(.9); } }
.maze.ice { background: linear-gradient(135deg, #f4f9ff, #dcebfb); }
.maze.ice .cell.wn { border-top-color: #1d4fa3; } .maze.ice .cell.ws { border-bottom-color: #1d4fa3; }
.maze.ice .cell.we { border-right-color: #1d4fa3; } .maze.ice .cell.ww { border-left-color: #1d4fa3; }
.maze.ice .cell.head::after { content: '⛸️'; display: grid; place-items: center; font-size: 26px; background: #fff; border-radius: 50%; }
.rink { position: relative; height: min(360px, 55vh); margin: 10px 0; border-radius: 16px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse at 50% 100%, #ffffff, #e3f0ff 70%); border: 4px solid var(--ink); }
.rink::after { content: ''; position: absolute; left: 0; right: 0; top: 96px; height: 4px; background: #e63946; opacity: .5; }
.rink .net { position: absolute; left: 16%; right: 16%; top: 22px; height: 54px; border: 5px solid #e63946; border-bottom: none; border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(45deg, rgba(29,29,43,.18) 0 2px, transparent 2px 10px), repeating-linear-gradient(-45deg, rgba(29,29,43,.18) 0 2px, transparent 2px 10px), #fff; }
.rink .net.goal { animation: netGoal .15s 4 alternate; }
@keyframes netGoal { to { transform: scale(1.05); background-color: #fff3b0; } }
.goalie { position: absolute; top: 30px; height: 50px; transform: translateX(-50%); border-radius: 12px; background: #1d3f7a; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 26px; pointer-events: none; }
.puck { position: absolute; left: calc(50% - 20px); bottom: 20px; width: 40px; height: 22px; border-radius: 50%; background: #111; box-shadow: 0 4px 0 #444; pointer-events: none; }
.claps { margin-top: 8px; font-size: 20px; line-height: 1.3; text-align: center; word-break: break-all; }

/* ---------- Lily, Janko a smutné svetielka (5. 12. 2026) ---------- */
.dots i.done { background: #ffd84d; box-shadow: 0 0 10px #ffcc33, 0 0 3px #fff; }
.btn.lvl small { display: block; font-size: 15px; font-weight: 600; opacity: .8; }
.btn.lvl { padding: 6px 10px; }
.pick-lv { margin: 6px 0; }
.sv { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.sv img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); flex: none; box-shadow: 0 0 14px rgba(255,204,51,.6); }
.sv .bubble { margin: 0; flex: 1; }
.sv .bubble::after { left: -14px; top: 18px; bottom: auto; border: 10px solid transparent; border-right-color: var(--ink); border-left: 0; }
.info { background: #eef6ff; }
.bulbs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bulbs i { width: 26px; height: 34px; border-radius: 50% 50% 45% 45%; background: #3a4060; border: 3px solid var(--ink); position: relative; transition: background .3s, box-shadow .3s; }
.bulbs i::before { content: ''; position: absolute; left: 6px; top: -9px; width: 8px; height: 8px; background: #6b6b6b; border: 2px solid var(--ink); border-radius: 2px; }
.bulbs i.on { background: #ffd84d; box-shadow: 0 0 16px #ffcc33, 0 0 4px #fff; }
.fan-zone.tree { background: linear-gradient(#20305f, #2b3f78 70%, #3b2a20 70%, #5a3d2b); }
.fanb .ic { font-size: 20px; }
.fanb.plain { font-size: 18px; }
.turn-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3); border-radius: 14px; padding: 8px 10px; margin: 12px 0 0; font-size: 17px; }
.turn-chip img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.maze.home { background: linear-gradient(135deg, #fff6e6, #f3e3c8); }
.maze.home .cell.head::after { background: var(--car) center / cover; border-radius: 50%; box-shadow: 0 0 0 3px #e63946, 0 0 10px #ffcc33; }
.maze .let { font: 400 28px Bangers, Impact, sans-serif; color: #c1121f; }
.lword span { display: inline-block; min-width: 1em; padding: 0 3px; margin: 0 1px; border-radius: 6px; background: #fdf0c4; }
.lword span.ok { background: #9de0a6; }
#got span { font-family: Bangers, Impact, sans-serif; margin: 0 2px; }
#got span.empty { opacity: .25; }
.pile2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 64px; padding: 10px; margin: 10px 0; border-radius: 16px; background: rgba(255,255,255,.08); border: 3px dashed rgba(255,255,255,.3); }
.gula { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); position: relative; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 32% 30%, #fff 0 10%, #ff6b6b 22%, #c1121f 75%); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.gula::before { content: ''; position: absolute; left: 14px; top: -9px; width: 10px; height: 8px; background: #d4af37; border: 2px solid var(--ink); border-radius: 2px; }
.gula.g { background: radial-gradient(circle at 32% 30%, #fff 0 10%, #ffe27a 24%, #c99700 78%); }
.gula.drag { position: fixed; z-index: 20; pointer-events: none; transform: scale(1.15); }
.baskets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.basket { background: #fffaf0; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 8px; text-align: center; min-height: 170px; box-shadow: 4px 4px 0 rgba(0,0,0,.45); transition: transform .15s, background .2s; }
.basket img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--gold); display: block; margin: 0 auto 2px; }
.basket b { display: block; font-size: 18px; }
.basket .in { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.basket .in .gula { width: 44px; height: 44px; }
.basket .in .gula::before { left: 14px; }
.basket.hover { background: #fff3b0; transform: scale(1.04); }
.basket.bad { background: #ffe1e1; animation: shake .4s; }
.basket.glow { animation: glow .45s 2 alternate; }
.btn.num { font-size: 30px; }
.btn.num.wrong { background: #ffe1e1; opacity: .5; }
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.pl { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 3px solid rgba(255,255,255,.2); border-radius: 14px; padding: 6px 8px; transition: border-color .2s, background .2s; }
.pl img { width: 44px; height: 44px; border-radius: 50%; }
.pl span { flex: 1; font-size: 17px; }
.pl b { font-size: 26px; color: var(--gold); }
.pl.on { border-color: var(--gold); background: rgba(255,204,51,.18); }
.turn { text-align: center; font-size: 18px; margin: 4px 0 8px; }
.memo { display: grid; gap: 8px; margin: 8px auto; max-width: 440px; }
.card { aspect-ratio: 1 / 1; padding: 0; border: 3px solid var(--ink); border-radius: 12px; background: linear-gradient(135deg, #2b3f78, #4a5d94); position: relative; overflow: hidden; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.card .back { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; transition: opacity .2s; }
.card .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.card.up .face { opacity: 1; transform: none; }
.card.up .back { opacity: 0; }
.card.got { border-color: #2a9d8f; box-shadow: 0 0 0 3px #9de0a6; }
.dance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.move { padding: 0; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.45); transition: transform .12s, box-shadow .12s, filter .12s; filter: saturate(.75) brightness(.92); }
.move img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.move span { display: block; padding: 6px 4px; min-height: 44px; }
.move.lit { transform: scale(1.06); filter: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold), 0 0 24px #ffcc33; }
.steps { text-align: center; font-size: 22px; margin: 6px 0; }
.steps .empty { opacity: .25; }
.bigstar { display: block; margin: 10px auto 0; width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(#fff6c2, #ffcc33); font-size: 64px; box-shadow: 0 0 30px #ffcc33; animation: glow 1s infinite alternate; cursor: pointer; }
.bigstar:disabled { animation: none; opacity: .6; }
.maze.home .cell.head::before { content: "🚗"; position: absolute; right: -4px; bottom: -6px; font-size: 20px; z-index: 2; }
/* iPhone: dlhé podržanie obrázka neotvorí ponuku „Uložiť obrázok“ (tester 5. 12.) */
.card img, .move img, .sv img, .basket img, .pl img, .turn-chip img { -webkit-touch-callout: none; pointer-events: none; user-select: none; -webkit-user-select: none; }
/* Rozprávač a otázka „Čo by si urobil ty?“ (5. 12. 2026) */
.tale .read { width: auto; min-height: 44px; font-size: 16px; padding: 8px 14px; margin: 8px 0 0; }
.choice { display: grid; gap: 8px; margin: 10px 0; }
.choice .btn { text-align: left; margin: 0; }
.choice .btn:disabled { opacity: .55; }
[hidden] { display: none !important; }
.fanb.good { background: #fff4c2; border-color: #c99700; } .fanb.bad { background: #d9d9de; color: #444; border-color: #777; box-shadow: 0 3px 0 #777; }
.fanb.good.yes, .fanb.bad.yes { background: #ffe680; } .fanb.good.no, .fanb.bad.no { background: #ffb3b3; }
