/* Doplnky pre hru Zamrznuté hodiny (základ: hra.css + spolocne.css z hry Hviezda). */

/* Svetlinka z tejto rozprávky (víla s krídlami), výrez z obrazky/04-svetlinka.webp: stred asi 565/250 px z 1024×572, výrez 110 px. */
.praise .bee { background: url(obrazky/04-svetlinka.webp) -297px -113px / 596px auto no-repeat; scale: var(--grow, 1); margin: 0 6px; }

/* Iskra (test 12. 11.): Stellkin album nálepiek od Maťka, dupnutie škriatka, zatočený nápis pri pirujete. */
.praise .bee.grow { animation: grow 1.2s .4s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes grow { 0% { scale: var(--from, 1); } 60% { scale: calc(var(--grow, 1) * 1.15); filter: brightness(1.4); } 100% { scale: var(--grow, 1); } }
.sticker-new { display: flex; align-items: center; gap: 10px; background: #fff3c4; color: var(--ink); border: 3px dashed #b88a00; border-radius: 14px; padding: 8px 12px; margin: 10px 0; font-size: 17px; animation: pop .5s .3s both; }
.sticker-new .stk { font-size: 40px; transform: rotate(-8deg); }
.album { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.album .stk { aspect-ratio: 1; border: 3px dashed #c9bfa5; border-radius: 12px; display: grid; place-items: center; font-size: 30px; line-height: 1; text-align: center; }
.album .stk.on { border: 3px solid var(--ink); background: #fff3c4; transform: rotate(-4deg); }
.album .stk small { display: block; font-size: 10px; font-weight: 700; }
.album .stk.t1, .sticker-new.t1 { border-color: #b0703a; background: #f6e2cc; }
.album .stk.t2, .sticker-new.t2 { border-color: #8a98a8; background: #eef2f6; }
.album .stk.t3, .sticker-new.t3 { border-color: #c99a00; background: #fff3c4; box-shadow: 0 0 10px #ffcc33; }
.album .stk.on { border-style: solid; border-width: 3px; }
.album + .small { margin-top: 10px; }
#elfsize.stomp { animation: stomp .45s ease-out; }
@keyframes stomp { 0% { translate: 0 0; } 30% { translate: 0 -18px; } 55% { translate: 0 6px; } 75% { translate: 0 -4px; } 100% { translate: 0 0; } }
.flash span.twirl { animation: boom 1.1s ease-out both, twirl 1.1s ease-in-out; display: inline-block; }
@keyframes twirl { from { rotate: y 0deg; } to { rotate: y 360deg; } }

/* Škriatok Nebolotoja, výrez z obrazky/07-skriatok.webp: stred asi 395/150 px (hlava), výrez 160 px → 120 px. Rastie pri vyhovárke, scvrkáva sa pri priznaní. */
.elf { width: 120px; height: 120px; margin: 4px auto 8px; border-radius: 50%; background: url(obrazky/07-skriatok.webp) -236px -52px / 768px auto no-repeat;
  box-shadow: 0 0 0 4px #2a9d8f, 0 0 26px 6px rgba(42,157,143,.6); transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .5s; }
.whisper { font-size: 18px; margin: 0 0 10px; }
.whisper::after { display: none; }
.bubbles .choice { text-align: left; }

.choice.dim { opacity: .3; }
/* Finále: medovníky na stole a taniere rodiny. */
.basket { text-align: center; font-size: 22px; line-height: 1.4; padding: 8px; background: rgba(255,255,255,.08); border-radius: 14px; margin: 8px 0; word-break: break-all; }
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.plate { background: #fff8e6; color: var(--ink); border: 3px solid var(--ink); border-radius: 50% / 40%; min-height: 96px; padding: 8px 4px; text-align: center; cursor: pointer; display: grid; align-content: center; gap: 4px; touch-action: manipulation; }
.plate .pc { font-size: 18px; min-height: 26px; word-break: break-all; }
.plate b { font-size: 15px; }
.tool { width: 44px; height: 44px; }

/* Chyť škriatka: 6 skrýš v kuchyni, z ktorých vyskakujú vety alebo škriatok. */
.jar { text-align: center; font-size: 26px; letter-spacing: 3px; min-height: 36px; }
.jar .empty { opacity: .25; }
.elf.mini { width: 120px; height: 120px; margin: -10px auto -14px; transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.hide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.spot { position: relative; height: 84px; border: 3px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(255,255,255,.08); color: var(--ink); padding: 0; overflow: hidden; cursor: pointer; touch-action: manipulation; }
.spot .home { font-size: 42px; transition: transform .2s, opacity .2s; }
.spot.up .home { transform: translateY(26px) scale(.7); opacity: .5; }
.spot .pop { position: absolute; left: 4px; right: 4px; top: 4px; padding: 6px 4px; border-radius: 12px; background: #fff8e6; font: 800 15px/1.2 Nunito, sans-serif; animation: skpop .25s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.spot.truth .pop { background: #ffe58a; }
.spot.lie .pop { background: #cfeaff; }
.spot.goblin .pop { background: transparent; box-shadow: none; color: #fff; display: grid; justify-items: center; }
.elf.peek { width: 60px; height: 60px; margin: 0; background-position: -118px -26px; background-size: 384px auto; box-shadow: 0 0 0 3px #2a9d8f; }
.spot.hit { transform: scale(.94); }
.spot.hit.truth .pop, .spot.hit.plain[data-kind="truth"] .pop { animation: skjar .35s ease-in forwards; }
@keyframes skpop { from { transform: translateY(40px) scale(.6); opacity: 0; } }
@keyframes skjar { to { transform: translateY(-60px) scale(.3); opacity: 0; } }

/* Podaj ruku: veľký kruh, ktorý sa pri držaní plní. */
.hold { position: relative; width: 200px; height: 200px; margin: 12px auto; border-radius: 50%; background: radial-gradient(circle, #2a3a7a 0%, #1b2550 70%); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; display: grid; place-items: center; transition: transform .15s; }
.hold svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold .track { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 10; }
.hold .fill { fill: none; stroke: #9fdcff; stroke-width: 10; stroke-linecap: round; }
.hold span { font-size: 90px; line-height: 1; }
.hold.down { transform: scale(.95); }
.hold.ok .fill { stroke: var(--gold); }
.cracks { text-align: center; font-size: 26px; min-height: 34px; color: #9fdcff; letter-spacing: 4px; }

/* Ľadový labyrint: steny sú hrubé ľadové okraje, cesta žiari zlato, ruka Stellky ide na čele cesty. */
.maze { display: grid; width: 100%; margin: 10px auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.maze .cell { box-sizing: border-box; aspect-ratio: 1 / 1; background: rgba(175,225,255,.12); border: 2px solid rgba(255,255,255,.06); display: grid; place-items: center; font-size: 24px; position: relative; }
.maze .cell.wn { border-top: 4px solid #bfe8ff; } .maze .cell.ws { border-bottom: 4px solid #bfe8ff; }
.maze .cell.we { border-right: 4px solid #bfe8ff; } .maze .cell.ww { border-left: 4px solid #bfe8ff; }
.maze .cell.on { background: rgba(255,204,51,.35); }
.maze .cell.head::after { content: attr(data-hand); position: absolute; font-size: 26px; }
.maze .cell.glow { animation: mazeglow .5s ease-in-out 5 alternate; }
@keyframes mazeglow { to { background: rgba(255,240,150,.85); box-shadow: 0 0 14px 4px rgba(255,230,120,.8); } }

/* Čarovný čaj: kniha s receptom a hrniec. */
.book { background: #fff8e6; color: var(--ink); border: 4px solid var(--ink); border-radius: 12px 18px 18px 12px; padding: 14px 16px; margin: 10px 0; box-shadow: 6px 6px 0 rgba(0,0,0,.45), inset 10px 0 0 #e9d9b0; font-size: 18px; }
.book ul, .book ol { margin: 6px 0; padding-left: 26px; }
.book li { margin: 3px 0; }
.book p { margin: 4px 0; }
.book.card { background: #fffdf5; }
.pot { position: relative; height: 130px; margin: 10px auto; width: 200px; text-align: center; }
.pot .kettle { font-size: 96px; line-height: 1; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); transition: filter .3s; }
.pot .in { position: absolute; left: 0; right: 0; top: 22px; font-size: 22px; letter-spacing: 2px; z-index: 2; }
.pot .steam { font-size: 22px; color: #fff; opacity: .7; animation: steam 2s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-6px); opacity: .3; } }
.pot.burnt .kettle { filter: brightness(.25) saturate(0); animation: shake .4s; }
.pot.burnt .steam { color: #333; }
.steps { display: grid; gap: 8px; margin-top: 8px; }
.steps .choice { text-align: left; min-height: 0; font-size: 17px; }

/* Hodiny kreslené v hre. */
.clockbox { width: 230px; margin: 8px auto; }
.clock { width: 100%; display: block; overflow: visible; }
.clock .rim { fill: #dfe7f2; stroke: var(--ink); stroke-width: 5; }
.clock .face { fill: #fff; }
.clock text { font: 800 17px Nunito, sans-serif; fill: var(--ink); text-anchor: middle; }
.clock .hand { stroke: var(--ink); stroke-linecap: round; transition: transform .25s; }
.clock .hour { stroke-width: 7; }
.clock .min { stroke-width: 4; stroke: #2a6fdb; }
.clock .rim.gold { fill: #ffe9a8; }
.clockbox.mini { width: 190px; }
.nudge { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nudge .btn { width: auto; min-width: 88px; margin: 4px 0; font-size: 16px; }
.choice small { opacity: .7; font-weight: 700; }
.clock .pin { fill: var(--red); }
.clock .chunk path { fill: rgba(175,225,255,.9); stroke: #fff; stroke-width: 2; }
.clock .chunk { transition: transform .6s ease-in, opacity .6s; }
.clock .chunk.gone { transform: scale(0); opacity: 0; }
.clockbox.spin { width: 260px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: 50%; box-shadow: 0 0 0 4px #ffcc33, 0 0 30px 6px rgba(255,204,51,.5); }
.clockbox.spin .hand { transition: none; }
.clockbox.pop { animation: clockpop .5s ease-out; }
@keyframes clockpop { 40% { transform: scale(1.06); } }
.notes { text-align: center; font-size: 30px; letter-spacing: 6px; min-height: 40px; }
.notes .empty { opacity: .3; }
