/* Doplnky pre hru Keď zhasla vianočná hviezda (základ je hra.css z detektívky). */
.tools { display: flex; align-items: center; gap: 8px; }
.tool { width: 42px; height: 42px; 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; }

/* Iskierky pre hviezdu (namiesto bodiek), pochvala Svetlinky, prelínanie obrazoviek. */
.sparks { gap: 4px; }
.spark { font-size: 20px; color: rgba(255,255,255,.25); transition: color .4s, text-shadow .4s; font-weight: 400; }
.spark.on { color: var(--gold); text-shadow: 0 0 8px var(--gold), 0 0 16px #fff3c4; }
.spark.pop { animation: sparkpop .9s ease-out; }
@keyframes sparkpop { 0% { transform: scale(.3); } 50% { transform: scale(1.8); } 100% { transform: scale(1); } }
.praise { display: flex; align-items: center; gap: 10px; margin: 12px 0; animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.praise .bee { flex: 0 0 64px; height: 64px; border-radius: 50%; background: url(obrazky/vcielka.webp) center / cover; box-shadow: 0 0 0 3px #fff3c4, 0 0 22px 6px rgba(255,204,51,.8); }
.praise .bubble { margin: 0; flex: 1; font-size: 17px; }
.praise .bubble::after { display: none; }
#scene.enter { animation: sceneIn .45s ease-out; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(8px); } }

/* Opravy po teste druhým agentom (11. 11.) */
button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.art { background: #22305f center / cover no-repeat; }
.choice:disabled { cursor: default; }
.solved .nose, .solved .drum, .solved .stage { pointer-events: none; }
#reply .bubble::after, .hint-out .bubble::after { display: none; }
.locks span { font-size: 30px; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.locks span.open { background: #2a9d8f; box-shadow: 0 0 0 3px #fff, 0 0 18px #ffcc33; }
.bucket { display: inline-block; width: 46px; height: 40px; border: 3px solid var(--ink); border-radius: 4px 4px 14px 14px; position: relative; margin-top: 8px; }
.bucket::before { content: ""; position: absolute; left: 6px; right: 6px; top: -14px; height: 18px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; }
.choice .ico { display: block; height: 52px; margin: 0 auto 4px; }
.choice .ico svg { height: 52px; width: 52px; }
.choice .ico .e { font-size: 44px; }
.memo .mini { display: inline-block; width: 28px; height: 28px; vertical-align: -7px; margin-right: 6px; }
.memo .mini svg { width: 28px; height: 28px; }
.memo .mini .e { font-size: 24px; display: inline; }
.pile { height: 140px; }
.pile .layer { height: 40px; z-index: 2; }
.pile .star { z-index: 1; transition: filter .8s, transform .8s; }
.pile .star.found { filter: none; transform: translateX(-50%) scale(1.3); }
.art img, .art video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice {
  border: 4px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; font-size: 17px;
  padding: 10px 6px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); text-align: center; min-height: 64px;
}
.choice .e { display: block; font-size: 46px; line-height: 1.15; }
.choice.wrong { animation: shake .4s; background: #ffe1e1; }
.choice.on { background: #fff3c4; outline: 4px solid var(--gold); }
.choice.good { background: #d8f5e8; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -3px; margin-right: 4px; }

.locks { display: flex; justify-content: center; gap: 18px; font-size: 44px; margin: 6px 0; }
.locks span { transition: transform .4s; }
.locks span.open { transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 0 10px #ffcc33); }
.riddle { font-size: 21px; }

/* Medveď z rozprávky (obrazky/medved.webp), nos je na 37 % šírky a 65 % výšky obrázka. */
.stage { position: relative; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
.stage img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform-origin: 37% 80%; }
.stage img.sleep { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.zz { position: absolute; left: 24%; top: 26%; font-size: 30px; animation: zz 2s infinite; }
@keyframes zz { 0% { opacity: 0; transform: translateY(10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.nose { position: absolute; left: 37%; top: 64.5%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; cursor: pointer; border: 4px dashed transparent; }
/* Krúžok na nose: hrubý zlatý s tmavým okrajom a pulzom, aby bol vidieť aj na bielom medveďovi. */
.nose.lit { border: 6px solid var(--gold); box-shadow: 0 0 0 3px var(--ink), 0 0 26px 6px var(--gold); animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.15); } }
/* Bubon veľký na celý palec (Katka 11. 11.: „dala by som ho väčší“). */
.drum { font-size: 130px; line-height: 1; width: 220px; height: 220px; margin: 10px auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #2a3a7a 0%, #1b2550 70%); border: 5px solid #ffcc33; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform .08s; }
.drum.beat { transform: scale(1.12); filter: drop-shadow(0 0 18px #ffcc33); }
@media (max-height: 720px) { .drum { width: 170px; height: 170px; font-size: 100px; } }
.drum.hit { box-shadow: 0 0 0 10px rgba(255,204,51,.45), 0 0 30px #ffcc33; }
.choice.off { opacity: .45; text-decoration: line-through; background: #ffe1e1; }
.notes { text-align: center; font-size: 30px; letter-spacing: 6px; min-height: 40px; color: #ffcc33; }
.notes .empty { opacity: .3; }
/* Dráha: notička letí sprava do krúžku, v krúžku = ťuknúť. */
.lane { position: relative; height: 64px; margin: 8px 0 0; border-radius: 32px; background: rgba(255,255,255,.08); overflow: hidden; }
.lane .ring { position: absolute; left: 12px; top: 6px; width: 52px; height: 52px; border-radius: 50%; border: 4px solid #ffcc33; display: grid; place-items: center; font: 700 13px/1 Nunito, sans-serif; color: #ffcc33; }
.lane.beat .ring { background: #ffcc33; color: #1b2550; transform: scale(1.1); }
.lane .fly { position: absolute; top: 8px; left: 18px; font-size: 40px; line-height: 48px; color: #fff; animation: fly linear forwards; }
/* Medveď sa pri pošteklení zavrtí. */
#bear.wiggle { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-4deg) scale(1.03); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
/* Finále: vyhodiť hviezdu nad mesto. Mesto tmavé, po hode sa rozsvieti; letiaca hviezda dopadne na miesto nakreslenej. */
.throw { position: relative; aspect-ratio: 1024 / 572; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,.45); touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.throw .bg { position: absolute; inset: 0; background: url(obrazky/nad-mestom.webp) center / cover; filter: brightness(.3) saturate(.4); transition: filter 1.8s ease; }
.throw.lit .bg { filter: none; }
.throw .mask { position: absolute; left: 43%; top: 17%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #141d3a 50%, transparent 72%); transition: opacity .8s .7s; }
.throw.lit .mask { opacity: 0; }
/* Letiaca hviezda = výrez nakreslenej hviezdy z toho istého obrázka (Katka: „použil si správny obrázok hviezdy?“).
   Hviezda v obrázku 1024×572 má stred asi 444/95 px, výrez 130 px → prvok 90 px (mierka 0,692). */
.fly-star { position: absolute; left: 50%; bottom: 4%; width: 90px; height: 90px; font-size: 0; background: url(obrazky/nad-mestom.webp) -262px -21px / 709px auto no-repeat; -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 68%); mask-image: radial-gradient(circle, #000 42%, transparent 68%); transform: translate(-50%, 0); filter: drop-shadow(0 0 14px #ffcc33) brightness(1.15); animation: starpulse 1.2s ease-in-out infinite; transition: left 1s cubic-bezier(.3,.7,.4,1), bottom 1s cubic-bezier(.3,.7,.4,1), transform 1s, opacity .5s .9s; }
.fly-star.go { left: 43%; bottom: 83%; transform: translate(-50%, 50%) scale(.47) rotate(360deg); opacity: 0; animation: none; }
@keyframes starpulse { 50% { transform: translate(-50%, -6px) scale(1.08); } }
@keyframes fly { from { transform: translateX(calc(100vw - 120px)); } to { transform: translateX(0); } }

.bubbles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.bubbles .choice { font-size: 18px; padding: 12px 14px; min-height: 0; }
/* Svetlinka (včielka z rozprávky) v žiare; rastie a slabne podľa viet. */
.light { width: 130px; height: 130px; margin: 6px auto; border-radius: 50%; background: url(obrazky/vcielka.webp) center / cover;
  box-shadow: 0 0 0 4px #fff3c4, 0 0 40px 18px rgba(255,204,51,.85); transition: transform .5s, opacity .5s, filter .5s; }

.pile { position: relative; height: 170px; border: 4px solid var(--ink); border-radius: 18px; background: #22305f; overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
.pile .layer { position: absolute; left: 0; right: 0; height: 52px; background: #f4f8ff; border-top: 3px dashed #c9d8ee; transition: transform .6s ease-in, opacity .6s; }
.pile .layer.gone { transform: translateX(120%) rotate(12deg); opacity: 0; }
.pile .star { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 46px; filter: grayscale(1) brightness(.5); }
.task { font-size: 24px; text-align: center; }
.count { font-size: 38px; letter-spacing: 4px; text-align: center; }
.big-num { font-size: 26px; }
.memo { font-size: 20px; }
.memo li { margin: 4px 0; }
.timer { height: 8px; background: var(--gold); border-radius: 4px; transition: width linear; }
