/* Mockup introvert-test: dom v reze. Vľavo tichá izba (okno s mesiacom, kreslo, lampa, mačka, čaj), vpravo oslava
   (diskogula, tancujúci ľudia, balóny, reproduktor), medzi nimi pootvorené dvere. Postavička "vy" kráča podľa priebežného
   skóre od kresla k parketu, dvere sa otvárajú, svieti tá izba, ku ktorej sa prikláňate. Girlanda desiatich žiaroviek =
   desať otázok: Vôbec nie = jantárová sviečka, Určite áno = neónová ružová. V tmavom režime noc za oknami. */
.iv-fig{--iv-k1:#d9e6ff;--iv-k2:#fdf0e2;--iv-roof:#8e4b3b;--iv-roofl:#b66a52;--iv-house:#d8c2a3;--iv-L:#f6e2c4;--iv-R:#e4defd;--iv-wall:#c9ad89;--iv-door:#9a6b46;--iv-leaf:#b9845b;--iv-floor:#7a5a3c;--iv-ground:#a5d38f;--iv-win:#9fc0ec;--iv-frame:#fff6e8;--iv-chair:#6d8f7a;--iv-chairb:#5a7a66;--iv-rug:#d58d6c;--iv-cat:#3e3a48;--iv-shade:#120f24;--iv-you:#4f46e5;--iv-tag:#3b2a1f;--iv-tagt:#fff4e6;--iv-op:.5}
@media(prefers-color-scheme:dark){.iv-fig{--iv-k1:#0a1030;--iv-k2:#28315e;--iv-roof:#4f2a22;--iv-roofl:#6e3a2e;--iv-house:#4a3a2c;--iv-L:#463427;--iv-R:#2a2450;--iv-wall:#5e4936;--iv-door:#3e2a1b;--iv-leaf:#6d4b30;--iv-floor:#2b1f15;--iv-ground:#1d3a28;--iv-win:#1c2c58;--iv-frame:#c9b8a0;--iv-chair:#3f5e4c;--iv-chairb:#30483a;--iv-rug:#7e4b37;--iv-cat:#151320;--iv-shade:#05040d;--iv-you:#8b85ff;--iv-tag:#fff1df;--iv-tagt:#3b2a1f}}

.iv-fig{position:relative;margin:.4rem auto 1rem;padding:0;max-width:540px;border-radius:22px;overflow:hidden;background:var(--iv-k2);border:1px solid color-mix(in srgb,var(--iv-roof) 35%,transparent)}
.iv-svg{display:block;width:100%;height:auto}
.iv-k1{stop-color:var(--iv-k1)}.iv-k2{stop-color:var(--iv-k2)}
.iv-l1{stop-color:#ffe2a0;stop-opacity:.95}.iv-l2{stop-color:#ffe2a0;stop-opacity:0}
.iv-star{stroke:#fff;stroke-width:2.4;stroke-linecap:round;opacity:0}
@media(prefers-color-scheme:dark){.iv-star{opacity:.8}}
.iv-chim{fill:var(--iv-roof)}
.iv-smoke{fill:none;stroke:color-mix(in srgb,var(--iv-house) 70%,#fff);stroke-width:3;stroke-linecap:round;opacity:.45;animation:iv-smoke 4s ease-in-out infinite alternate}
@keyframes iv-smoke{to{transform:translate(4px,-3px);opacity:.2}}
.iv-roof{fill:var(--iv-roof)}.iv-roofl{fill:none;stroke:var(--iv-roofl);stroke-width:3}
.iv-house{fill:var(--iv-house)}
.iv-roomL{fill:var(--iv-L)}.iv-roomR{fill:var(--iv-R)}
.iv-wall{fill:var(--iv-wall)}
.iv-door{fill:var(--iv-R)}
.iv-leaf{fill:var(--iv-leaf);stroke:var(--iv-door);stroke-width:2;transition:all .9s cubic-bezier(.4,1.2,.5,1)}
.iv-knob{fill:#e3b341;transition:transform .9s cubic-bezier(.4,1.2,.5,1)}
.iv-spill{fill:#fff2c4;opacity:0;transition:opacity .9s}
.iv-floor{stroke:var(--iv-floor);stroke-width:3}
.iv-ground{fill:var(--iv-ground)}

/* tichá izba */
.iv-win{fill:var(--iv-win);stroke:var(--iv-frame);stroke-width:4}
.iv-frame{stroke:var(--iv-frame);stroke-width:3}
.iv-sill{fill:var(--iv-frame)}
.iv-moon{fill:#fff3c4}
.iv-wstar{stroke:#fff;stroke-width:2;stroke-linecap:round}
.iv-pot{fill:#c8754f}.iv-leafs{fill:#5f9e6e}
.iv-rug{fill:var(--iv-rug);opacity:.75}
.iv-chair{fill:var(--iv-chair)}.iv-chairb{fill:var(--iv-chairb)}
.iv-cat path,.iv-cat circle{fill:var(--iv-cat)}.iv-tail{fill:none!important;stroke:var(--iv-cat);stroke-width:3;stroke-linecap:round}
.iv-glow{transition:opacity .9s}
.iv-pole{stroke:#6b5440;stroke-width:3;fill:none}.iv-shade{fill:#f0c46c}
.iv-tbl{stroke:#6b5440;stroke-width:3;fill:none}.iv-cup{fill:#f4f1ea;stroke:#a08b74;stroke-width:1.2}
.iv-steam{fill:none;stroke:#a08b74;stroke-width:1.4;stroke-linecap:round;opacity:.6;animation:iv-smoke 3s ease-in-out infinite alternate}

/* oslava */
.iv-str{stroke:#8c7fb0;stroke-width:1.2}
.iv-disco{fill:#d5d9e6;stroke:#8f97ad;stroke-width:1.2}
.iv-facet{fill:none;stroke:#8f97ad;stroke-width:.8}
.iv-rays path{stroke:#fff6a8;stroke-width:5;stroke-linecap:round;opacity:.35}
.iv-rays{opacity:var(--iv-op);transform-box:view-box;transform-origin:464px 130px;animation:iv-sweep 4s ease-in-out infinite alternate;transition:opacity .9s}
@keyframes iv-sweep{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}
.iv-bal.a{fill:#f43f5e}.iv-bal.b{fill:#22d3ee}
.iv-spk{fill:#2b2540}.iv-cone{fill:#6b6490;stroke:#14111f;stroke-width:2}
.iv-cf.c1{fill:#facc15}.iv-cf.c2{fill:#f472b6}.iv-cf.c3{fill:#34d399}
.iv-pp.p1 *{fill:#f472b6}.iv-pp.p2 *{fill:#38bdf8}.iv-pp.p3 *{fill:#a78bfa}.iv-pp.p4 *{fill:#fb923c}
.iv-pp .iv-arm{fill:none!important;stroke-width:5;stroke-linecap:round}
.iv-pp.p1 .iv-arm{stroke:#f472b6}.iv-pp.p2 .iv-arm{stroke:#38bdf8}.iv-pp.p3 .iv-arm{stroke:#a78bfa}.iv-pp.p4 .iv-arm{stroke:#fb923c}
.iv-dance{animation:iv-dance .8s ease-in-out infinite alternate}
@keyframes iv-dance{to{transform:translateY(-4px)}}

/* svetlo v izbách – nastavuje skript podľa priebežného skóre */
.iv-shadeL,.iv-shadeR{fill:var(--iv-shade);transition:opacity .9s}
.iv-shadeL{opacity:.2}.iv-shadeR{opacity:.25}

/* girlanda */
.iv-wire{fill:none;stroke:#5b4a3a;stroke-width:1.6}
.iv-cap{fill:#5b4a3a}
.iv-gl{fill:#8b8578;opacity:.55;stroke:#5b4a3a;stroke-width:1;transition:fill .5s,opacity .5s}
.iv-bg{fill:transparent;transition:fill .5s}
.iv-b.v1 .iv-gl{fill:#f5a524;opacity:1}.iv-b.v2 .iv-gl{fill:#f8cf6a;opacity:1}.iv-b.v3 .iv-gl{fill:#f3eee0;opacity:1}.iv-b.v4 .iv-gl{fill:#6cc6ff;opacity:1}.iv-b.v5 .iv-gl{fill:#ff5fae;opacity:1}
.iv-b.v1 .iv-bg{fill:rgba(245,165,36,.35)}.iv-b.v2 .iv-bg{fill:rgba(248,207,106,.35)}.iv-b.v3 .iv-bg{fill:rgba(243,238,224,.45)}.iv-b.v4 .iv-bg{fill:rgba(108,198,255,.38)}.iv-b.v5 .iv-bg{fill:rgba(255,95,174,.4)}
.iv-b.cur .iv-gl{stroke:#fff;stroke-width:2;animation:iv-blink 1s ease-in-out infinite alternate}
@keyframes iv-blink{from{opacity:.4}to{opacity:1}}

/* vy */
.iv-you{transition:transform 1.1s cubic-bezier(.45,1.15,.5,1)}
.iv-spot{fill:var(--iv-you);opacity:.25}
.iv-yh,.iv-yt{fill:var(--iv-you);stroke:#fff;stroke-width:2.2}
.iv-yb{animation:iv-step 1.6s ease-in-out infinite alternate}
@keyframes iv-step{to{transform:translateY(-2px)}}

.iv-cnt rect{fill:var(--iv-tag);opacity:.9}
.iv-cnt text{font:800 15px/1 system-ui,sans-serif;fill:var(--iv-tagt);text-anchor:middle;font-variant-numeric:tabular-nums}
.iv-fig.is-done .iv-cnt rect{fill:var(--iv-you)}.iv-fig.is-done .iv-cnt text{fill:#fff}
@media(max-width:520px){.iv-fig{border-radius:16px}.iv-cnt text{font-size:18px}}
@media(prefers-reduced-motion:reduce){.iv-smoke,.iv-steam,.iv-rays,.iv-dance,.iv-b.cur .iv-gl,.iv-yb{animation:none}.iv-you,.iv-leaf{transition:none}}
