/* Language Quest – "Papirno ostrvo". Game styles on top of the Tika kit (ui.css + tika.css). */

:root {
  --lq-paper: #FFF6E5; --lq-shade: #F3E3C3; --lq-sleep: #8C87A3; --lq-sleep-paper: #EDE7F5;
  --lq-tomato: #FF5E57; --lq-marigold: #FFC53D; --lq-mint: #2ED3A0; --lq-mint-soft: #DFFAF0;
  --lq-sky: #4FC3F7; --lq-sea: #1E88C8; --lq-sea-deep: #15608F; --lq-sand: #F6D7A7; --lq-lilac: #A78BFA;
  --lq-bubblegum: #FF8AC8; --lq-leaf: #7BC950; --lq-forest: #2E8B57; --lq-wood: #D9A066; --lq-zevko: #6B6F9E;
  --lq-glow: #FFE27A; --lq-gold: #E8B923; --lq-night: #2B3A67; --lq-velvet: #C8323A;
  --ts: 96px;
}
html.tk-app body { background: var(--lq-paper); }
.lq-noscript { padding: 24px; font: 700 18px sans-serif; }

/* ================================================================ shell + top bar */
.lq-top { min-height: 58px; padding: 5px 10px; gap: 8px; background: linear-gradient(180deg, rgba(255,246,229,.96), rgba(255,246,229,.82)); border-bottom: 3px solid rgba(36,38,59,.08); }
.lq-top-l, .lq-top-r, .lq-ctl { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lq-top-c { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lq-ctl .tk-ctl-group { gap: 6px; }
.lq-top .tk-icon-btn, .lq-topbtn { width: 48px; height: 48px; flex: 0 0 auto; }
.lq-top .tk-script-switch { min-height: 48px; }
.lq-topbtn svg { width: 62%; height: 62%; }
.lq-topbtn .lq-ico { width: 74%; height: 74%; }
.lq-topbtn .lq-turtle { width: 74%; height: 74%; }
html.lq-compact .lq-top { min-height: 52px; padding: 2px 8px; }
html.lq-narrow .lq-top { gap: 6px; padding: 4px 6px; }
html.lq-narrow .lq-top-l, html.lq-narrow .lq-top-r { gap: 5px; }
.lq-main { position: relative; overflow: hidden; }
.lq-screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.lq-enter { animation: lq-pageturn .45s cubic-bezier(.2,.8,.3,1); }
@keyframes lq-pageturn { from { opacity: 0; transform: translateX(26px) rotate(.6deg); } to { opacity: 1; transform: none; } }
.lq-progress { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.lq-pl { display: inline-flex; width: 20px; height: 28px; flex: 0 1 auto; }
.lq-pl svg { width: 100%; height: 100%; }
html.lq-narrow .lq-pl { width: 15px; height: 22px; }
.lq-on > .lq-lant .lq-lant-body, .lq-lant.lq-on .lq-lant-body { fill: #FFE9A8; }
.lq-on > .lq-lant .lq-lant-flame { fill: #FF9636; }
.lq-on > .lq-lant .lq-lant-glow { opacity: .55; }
.lq-pl.lq-on { animation: lq-pop .4s var(--ease-pop); }
.lq-gear { margin-left: 2px; }
.lq-holdring { position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--go) calc(var(--k, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); }
.lq-gear, .tk-btn.lq-hold { position: relative; }

/* the lantern glows while English plays */
.lq-glow { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .15s, transform .15s; }
html.lq-en-on .lq-glow { opacity: .95; transform: scale(1.15); }
html.lq-en-on .lq-flame { fill: #FFB347; }
.lq-wiggle .tk-wr, .tika.lq-wiggle .lq-lantern { animation: lq-wig .5s ease; transform-origin: 124px 104px; }
@keyframes lq-wig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }

/* ================================================================ title */
.lq-title-screen { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #3B4C86 0%, #7A6CB0 45%, #F2A99A 100%); }
.lq-title-bg, .lq-sea { position: absolute; inset: 0; }
.lq-title-bg .lq-sea { background: linear-gradient(180deg, transparent 30%, rgba(30,136,200,.65) 60%, #1E6FAF 100%); }
.lq-sea > svg { width: 100%; height: 100%; display: block; }
.lq-stars i { position: absolute; width: 6px; height: 6px; background: #FFE27A; border-radius: 50%; box-shadow: 0 0 8px #FFE27A; animation: lq-twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes lq-twinkle { 50% { opacity: .2; transform: scale(.6); } }
.lq-isl { position: absolute; left: 4%; right: 4%; top: 30%; bottom: 3%; }
.lq-isl-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lq-mark { position: absolute; transform: translateX(-50%); transition: filter 1.2s; }
.lq-mark > svg { height: 100%; width: auto; display: block; overflow: visible; }
.lq-grey .lq-mark, .lq-mark.lq-grey, .lq-isl.lq-grey { filter: grayscale(1) sepia(.12) brightness(1.08) contrast(.85); }
.lq-title-zevko { position: absolute; top: 6%; left: -20%; width: clamp(110px, 16vw, 200px); animation: lq-drift 40s linear infinite; }
.lq-title-zevko svg { width: 100%; height: auto; display: block; animation: lq-yawn 8s ease-in-out infinite; }
@keyframes lq-drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }
@keyframes lq-yawn { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.08, .94); } }
.lq-title-main { position: absolute; left: 0; right: 0; top: 4%; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 0 16px; z-index: 2; }
.lq-logo { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .45em; font-size: clamp(1.9rem, min(5.6vw, 9vh), 4.2rem); font-weight: 1000; line-height: 1; }
.lq-tile { display: inline-block; padding: .08em .14em .12em; background: var(--c); color: #fff; border: 4px solid var(--ink); border-radius: .2em; box-shadow: 0 5px 0 var(--ink); text-shadow: 0 3px 0 rgba(36,38,59,.35); transform: rotate(calc((var(--d) * 37 - 6) * 1deg)); animation: lq-tilein .7s cubic-bezier(.3,1.6,.5,1) both, lq-tilewake 1.2s ease both; animation-delay: var(--d), var(--d); }
.lq-tile:nth-child(even) { transform: rotate(4deg); }
.lq-tile:nth-child(3n) { transform: rotate(-5deg); }
.lq-logo-w { display: inline-flex; gap: .12em; white-space: nowrap; }
@keyframes lq-tilein { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
@keyframes lq-tilewake { from { filter: grayscale(1) brightness(1.2); } 60% { filter: grayscale(1) brightness(1.2); } to { filter: none; } }
.lq-subtitle { font-weight: 900; font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: #FFF6E5; text-shadow: 0 3px 0 rgba(36,38,59,.5); background: rgba(36,38,59,.25); padding: .1em .8em; border-radius: 999px; }
.lq-title-play { margin-top: .6rem; }
.lq-playbtn { min-height: 76px; font-size: 1.7rem; padding: .4em 1.6em; }
.lq-playbtn svg { width: 1.2em; height: 1.2em; }
.lq-profiles { display: flex; gap: 10px; justify-content: center; }
.lq-avatar-chip { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); padding: 4px; display: inline-flex; align-items: center; justify-content: center; }
.lq-avatar-chip svg { width: 100%; height: 100%; }
.lq-avatar-chip.lq-on { background: var(--sun); outline: 4px solid #fff; }
.lq-avatar-chip.lq-plus svg { width: 50%; height: 50%; }
.lq-title-tika { position: absolute; left: 2%; bottom: 7%; width: clamp(120px, 18vw, 210px); z-index: 3; }
.lq-tbubble { position: absolute; left: 92%; bottom: 62%; width: max-content; max-width: min(22rem, 60vw); font-size: 1.05rem; }
.lq-footer { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 1rem; align-items: center; padding: 6px 10px; font-size: .8rem; color: #fff; background: rgba(36,38,59,.35); z-index: 4; flex-wrap: wrap; }
.lq-footer a { color: #fff; font-weight: 900; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 .5em; }
html.lq-port .lq-title-tika { left: 50%; transform: translateX(-80%); bottom: 9%; width: clamp(110px, 30vw, 190px); }
html.lq-port .lq-tbubble { left: 96%; bottom: 40%; max-width: 48vw; }
html.lq-compact .lq-title-main { top: 2%; gap: .3rem; }
html.lq-compact .lq-logo { font-size: 2.2rem; }
html.lq-compact .lq-title-tika { width: 104px; bottom: 9%; }
html.lq-compact .lq-playbtn { min-height: 64px; font-size: 1.4rem; }
html.lq-compact .lq-isl { top: 40%; }

/* ================================================================ profile */
.lq-profile-screen { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(130px, 22%) 1fr; align-items: center; padding: 12px; gap: 10px; background: radial-gradient(circle at 70% 30%, #FFF0CC, #FFE3EE 70%); }
.lq-prof-tika { position: relative; align-self: end; }
.lq-pbubble { position: absolute; left: 70%; bottom: 100%; width: max-content; max-width: min(24rem, 60vw); z-index: 3; }
.lq-prof-step { display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.lq-avatars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); width: min(100%, 640px); }
.lq-avatar-big { background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: 8px 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .9rem; font-weight: 900; }
.lq-avatar-big svg { width: 100%; height: clamp(64px, 16vh, 140px); }
.lq-avatar-big.lq-on { background: var(--sun); transform: scale(1.05); }
.lq-cakes { display: flex; flex-wrap: wrap; gap: clamp(6px, 1.6vw, 16px); justify-content: center; width: 100%; }
.lq-cake { background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); width: clamp(88px, 15vw, 150px); padding: 6px; }
.lq-cake svg { width: 100%; height: auto; display: block; }
.lq-cake.lq-on { background: var(--sun); }
.lq-cake.lq-on .lq-flame, .lq-cake:hover .lq-flame { animation: lq-flicker .3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes lq-flicker { from { transform: scale(1, 1); } to { transform: scale(.85, 1.15) rotate(4deg); } }
html.lq-port .lq-profile-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
html.lq-port .lq-prof-tika { width: 34%; max-width: 160px; align-self: start; }
html.lq-port .lq-pbubble { left: 102%; bottom: 20%; max-width: 58vw; }
html.lq-port .lq-avatars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.lq-compact .lq-avatar-big svg { height: 70px; }

/* ================================================================ prologue */
.lq-prologue { position: absolute; inset: 0; overflow: hidden; }
.lq-pro-scene { position: absolute; inset: 0; transition: filter 1.2s; }
.lq-prologue[data-panel="2"] .lq-pro-scene, .lq-prologue[data-panel="3"] .lq-pro-scene, .lq-prologue[data-panel="4"] .lq-pro-scene { filter: grayscale(1) brightness(1.05); }
.lq-pro-words { position: absolute; left: 0; right: 0; top: 18%; display: flex; justify-content: center; gap: 12%; font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 1000; color: #FFE27A; text-shadow: 0 0 18px #FFE27A; }
.lq-pro-words span { animation: lq-float 3s ease-in-out infinite; }
.lq-pro-words span:nth-child(2) { animation-delay: .6s; }
.lq-pro-words span:nth-child(3) { animation-delay: 1.2s; }
.lq-prologue[data-panel="2"] .lq-pro-words span, .lq-prologue[data-panel="3"] .lq-pro-words span, .lq-prologue[data-panel="4"] .lq-pro-words span { transform: translateY(40vh) rotate(90deg); opacity: 0; transition: all 1.2s ease-in; animation: none; color: #B9B5C8; text-shadow: none; }
.lq-pro-zevko { position: absolute; top: 6%; right: 8%; width: clamp(120px, 22vw, 240px); opacity: 0; transition: opacity .6s; }
.lq-pro-zevko svg { width: 100%; height: auto; }
.lq-prologue[data-panel="2"] .lq-pro-zevko { opacity: 1; animation: lq-yawn 2s ease-in-out 2; }
.lq-pro-tika { position: absolute; left: 4%; bottom: 6%; width: clamp(110px, 18vw, 200px); transform: translateX(-140%); transition: transform 1.2s cubic-bezier(.3,1.2,.5,1); }
.lq-prologue[data-panel="1"] .lq-pro-tika, .lq-prologue[data-panel="3"] .lq-pro-tika, .lq-prologue[data-panel="4"] .lq-pro-tika { transform: none; }
.lq-pro-bubble { position: absolute; left: clamp(120px, 22vw, 230px); bottom: 26%; max-width: min(26rem, 64vw); z-index: 5; }
html.lq-port .lq-pro-bubble { left: 12px; right: 12px; bottom: auto; top: 12px; max-width: none; }
.lq-pro-things { position: absolute; left: 30%; right: 6%; bottom: 10%; height: 34%; display: flex; justify-content: space-around; align-items: center; --ts: clamp(90px, 22vmin, 160px); }
.lq-pro-things .lq-thing { position: relative; transform: none; }
.lq-hand { position: absolute; width: 56px; pointer-events: none; z-index: 6; animation: lq-tap 1.2s ease-in-out infinite; }
@keyframes lq-tap { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -10px) scale(.92); } }
.lq-skip { position: absolute; right: 12px; bottom: 12px; z-index: 7; }
html.lq-port .lq-pro-things { left: 6%; bottom: 26%; }

/* ================================================================ map */
.lq-map { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #8FD0FF, #4FA8E8 60%, #2F86CC); }
.lq-map .lq-sea { background: repeating-linear-gradient(170deg, transparent 0 34px, rgba(255,255,255,.12) 34px 37px); }
.lq-map-isl { position: absolute; left: 3%; right: 3%; top: 4%; bottom: 3%; }
.lq-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lq-map-nodes { position: absolute; left: 3%; right: 3%; top: 4%; bottom: 3%; }
.lq-node { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; width: clamp(84px, 11vmin, 110px); }
.lq-node-disc { width: clamp(76px, 10vmin, 104px); height: clamp(76px, 10vmin, 104px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--a) 120%); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: flex; align-items: center; justify-content: center; filter: saturate(var(--sat)) ; transition: filter 1.2s, transform .2s; overflow: hidden; }
.lq-node-art { height: 76%; display: flex; }
.lq-node-art svg { height: 100%; width: auto; }
.lq-node:hover .lq-node-disc, .lq-node:focus-visible .lq-node-disc { transform: scale(1.06) rotate(-3deg); }
.lq-node-name { font-size: .72rem; font-weight: 900; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 .55em; white-space: nowrap; box-shadow: 0 2px 0 var(--ink); }
.lq-node-prog { font-size: .75rem; font-weight: 1000; background: var(--b); color: var(--ink); border-radius: 999px; padding: 0 .5em; border: 2px solid var(--ink); }
.lq-node.lq-locked .lq-node-disc { filter: grayscale(1) brightness(1.05); }
.lq-node.lq-locked .lq-node-prog { background: #EDE7F5; color: var(--lq-sleep); }
.lq-node-cloud .lq-node-disc { background: radial-gradient(circle at 35% 30%, #fff, #C9C8E8); }
.lq-map-zevko { position: absolute; top: 2%; left: -16%; width: clamp(90px, 13vw, 150px); animation: lq-drift 40s linear infinite; pointer-events: none; }
.lq-map-zevko svg { width: 100%; height: auto; animation: lq-yawn 8s ease-in-out infinite; }
.lq-marker { position: absolute; width: 56px; transform: translate(-112%, -96%); pointer-events: none; animation: lq-flyin .9s cubic-bezier(.3,1.3,.5,1); z-index: 3; }
@keyframes lq-flyin { from { opacity: 0; translate: -60px -60px; } to { opacity: 1; translate: 0 0; } }
.lq-map-tika { position: absolute; left: 1%; bottom: 1%; width: clamp(96px, 14vw, 170px); z-index: 4; }
.lq-mbubble { position: absolute; left: 94%; bottom: 55%; width: max-content; max-width: min(22rem, 56vw); }
.lq-bell { position: absolute; left: clamp(100px, 15vw, 180px); bottom: 14%; z-index: 5; animation: lq-call 1.6s ease-in-out infinite; }
.lq-bell .lq-ico { width: 1.6em; height: 1.6em; }
@keyframes lq-call { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(-3deg); } }
.lq-bookbtn { min-height: 48px; padding: .2em .8em; gap: .35em; }
.lq-bookbtn .lq-ico { width: 1.6em; height: 1.6em; }
.lq-lanterns-total { gap: .2em; font-weight: 900; }
.lq-lanterns-total .lq-ico { width: 1.3em; height: 1.3em; }
.lq-lanterns-total span { opacity: .65; font-size: .85em; }
html.lq-narrow .lq-lanterns-total { display: none; }
html.lq-port .lq-map-tika { width: 92px; }
html.lq-port .lq-mbubble { max-width: 62vw; }
html.lq-compact .lq-node { width: 84px; }
html.lq-compact .lq-node-disc { width: 64px; height: 64px; }
html.lq-compact .lq-node-name { display: none; }

/* ================================================================ region */
.lq-region { position: absolute; inset: 0; overflow: hidden; }
.lq-region-scene { position: absolute; inset: 0; }
.lq-region-title { font-weight: 1000; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--a, #fff); color: #fff; text-shadow: 0 2px 0 rgba(36,38,59,.45); border: 3px solid var(--ink); border-radius: 999px; padding: .1em .9em; box-shadow: var(--shadow-sm); }
.lq-stones { position: absolute; inset: 0; }
.lq-stone { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; width: clamp(96px, 13vmin, 130px); z-index: 2; }
.lq-stone-disc { position: relative; width: clamp(80px, 11vmin, 108px); height: clamp(80px, 11vmin, 108px); border-radius: 46% 54% 50% 50%; background: #FFF6E5; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.lq-stone-disc > svg { width: 66%; height: 66%; }
.lq-stone:hover .lq-stone-disc, .lq-stone:focus-visible .lq-stone-disc { transform: translateY(-4px) rotate(-3deg); }
.lq-stone.lq-done .lq-stone-disc { background: radial-gradient(circle at 35% 30%, #fff, var(--b, #FFC53D) 140%); }
.lq-stone.lq-locked .lq-stone-disc { filter: grayscale(1); background: var(--lq-sleep-paper); }
.lq-stone-z { position: absolute; top: -6px; right: -8px; font-style: normal; font-weight: 1000; color: var(--lq-sleep); font-size: .9rem; }
.lq-stone-name { font-size: .75rem; font-weight: 900; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 0 .5em; text-align: center; line-height: 1.2; max-width: 130%; box-shadow: 0 2px 0 var(--ink); }
.lq-stone-l { display: flex; gap: 1px; }
.lq-stone-l .lq-pl { width: 14px; height: 20px; }
.lq-starstone .lq-stone-disc { border-radius: 50%; background: radial-gradient(circle, #FFF4B8, #FFC53D); }
.lq-region-tika { position: absolute; left: 1%; bottom: 1%; width: clamp(96px, 14vw, 170px); z-index: 4; }
.lq-rbubble { position: absolute; left: 94%; bottom: 50%; width: max-content; max-width: min(22rem, 56vw); }
html.lq-port .lq-region-tika { width: 96px; }
html.lq-compact .lq-stone { width: 92px; }
html.lq-compact .lq-stone-disc { width: 66px; height: 66px; }
html.lq-compact .lq-stone-name { font-size: .7rem; }

/* big moments */
.lq-big { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: flex; align-items: center; justify-content: center; animation: lq-fadein .4s; }
.lq-big.lq-out { opacity: 0; transition: opacity .5s; }
.lq-big-rainbow { position: absolute; left: 6%; right: 6%; top: 8%; }
.lq-big-rainbow svg { width: 100%; height: auto; }
.lq-big-rainbow path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: lq-draw 2.2s ease forwards; }
@keyframes lq-draw { to { stroke-dashoffset: 0; } }
.lq-big-boats { position: absolute; bottom: 8%; left: 0; right: 0; display: flex; justify-content: space-around; }
.lq-big-boats span { width: 18%; animation: lq-bob 1.4s ease-in-out infinite; }
.lq-big-count { font-size: clamp(4rem, 18vmin, 10rem); font-weight: 1000; color: #fff; -webkit-text-stroke: 4px var(--ink); text-shadow: 0 8px 0 var(--ink); }
.lq-big-boat { position: absolute; bottom: 10%; left: 10%; width: 22%; transition: transform 2s ease-in; }
.lq-big.lq-go .lq-big-boat { transform: translateX(120vw) rotate(-6deg); }
.lq-big-row { display: flex; gap: 2%; justify-content: center; align-items: flex-end; width: 92%; }
.lq-big-a, .lq-big-g { width: 15%; max-width: 160px; transform: translateY(40px) scale(.4); opacity: 0; transition: all .45s cubic-bezier(.3,1.6,.5,1); }
.lq-big-a svg, .lq-big-g svg { width: 100%; height: auto; }
.lq-big-a.lq-on, .lq-big-g.lq-on { transform: none; opacity: 1; animation: lq-bob 1s ease-in-out infinite .5s; }
.lq-big-house { display: grid; grid-template-columns: repeat(3, 70px); gap: 14px; padding: 18px; background: #C98952; border: 4px solid var(--ink); border-radius: 18px; }
.lq-big-win { height: 60px; background: #2B3A67; border: 3px solid var(--ink); border-radius: 8px; transition: background .4s; }
.lq-big-win.lq-on { background: #FFE27A; box-shadow: 0 0 22px #FFE27A; }
.lq-big-family { position: absolute; bottom: 4%; }
.lq-big-bell { font-size: 6rem; animation: lq-ring 0.3s ease-in-out 8; }
@keyframes lq-ring { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.lq-big-sky { width: min(40vmin, 300px); background: #BDE6FF; border: 5px solid var(--ink); border-radius: 30px; padding: 12px; transition: background .6s; }
.lq-big-sky svg { width: 100%; height: auto; display: block; }
.lq-big[data-w="rainy"] .lq-big-sky { background: #9FB3CF; }
.lq-big[data-w="snowy"] .lq-big-sky { background: #E8F1FB; }
.lq-big.lq-night { background: rgba(43,58,103,.55); transition: background .8s; }

/* ================================================================ level frame (Section 14) */
.lq-level { position: absolute; inset: 0; display: grid; grid-template-columns: var(--tikaw) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); --tikaw: clamp(140px, 18vw, 220px); --trayh: clamp(88px, 15vh, 128px); }
html.lq-compact .lq-level { --tikaw: 120px; --trayh: 76px; }
html.lq-port .lq-level { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--tikah) minmax(0, 1fr); --tikah: clamp(104px, 15vh, 160px); --trayh: clamp(100px, 14vh, 150px); }
.lq-tikapanel { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 6px 8px 10px; min-height: 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(243,227,195,.55)); border-right: 3px solid rgba(36,38,59,.07); }
.lq-tikaslot { width: 100%; max-width: 200px; }
html.lq-port .lq-tikapanel { justify-content: flex-start; align-items: stretch; padding: 4px 8px; border-right: 0; border-bottom: 3px solid rgba(36,38,59,.07); }
html.lq-port .lq-tikaslot { height: 100%; width: auto; }
html.lq-port .lq-tikaslot .tika { height: 100%; width: auto; }
.lq-say { position: absolute; z-index: 40; font-size: 1.02rem; line-height: 1.3; padding: .5em .8em; pointer-events: none; }
html.lq-land .lq-say { left: 8px; width: calc(var(--tikaw) - 16px); top: 8px; }
html.lq-land .lq-say::after { left: 50%; top: auto; bottom: -11px; margin: 0 0 0 -9px; border: 0; border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
html.lq-port .lq-say { left: calc(var(--tikah) * .8 + 14px); right: 10px; top: 6px; max-height: calc(var(--tikah) - 12px); overflow: hidden; }
html.lq-port .lq-say::after { left: -11px; top: 50%; bottom: auto; margin: -9px 0 0; border: 0; border-left: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
html.lq-compact .lq-say { left: 6px; width: calc(var(--tikaw) - 12px); top: 6px; font-size: .8rem; line-height: 1.22; padding: .35em .5em; border-radius: 14px; max-height: calc(100% - 118px); overflow: hidden; }
html.lq-compact .lq-say::after { display: none; }
.lq-level.lq-solo, html.lq-port .lq-level.lq-solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.lq-level.lq-solo .lq-tikapanel { display: none; }
.lq-level.lq-solo .lq-say { left: 50% !important; right: auto !important; top: 6px; transform: translateX(-50%); width: max-content; max-width: min(36rem, calc(100% - 20px)); white-space: normal; }
.lq-level.lq-solo .lq-say::after { display: none; }
.lq-play { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.lq-tray { min-width: 0; }
.lq-area { position: relative; min-width: 0; min-height: 0; }
.lq-scenebox, .lq-stagebox { position: absolute; inset: 0; overflow: hidden; }
.lq-stagebox { pointer-events: none; overflow: visible; }
.lq-tray { display: none; height: var(--trayh); position: relative; z-index: 6; background: linear-gradient(180deg, #F3E3C3, #E9D3AA); border-top: 4px solid var(--ink); align-items: center; justify-content: center; gap: 10px; padding: 6px 10px; }
.lq-has-tray .lq-tray { display: flex; }

/* scenes */
.lq-scene { position: absolute; inset: 0; overflow: hidden; }
.lq-layer { position: absolute; }
.lq-sky { inset: 0; }
.lq-sky > svg { width: 100%; height: 100%; display: block; }
.lq-strip { left: 0; width: 100%; }
.lq-strip > svg { width: 100%; height: 100%; display: block; }
.lq-prop-l { transform: translateX(-50%); }
.lq-prop-l > svg { height: 100%; width: auto; display: block; overflow: visible; }
.lq-drift { animation: lq-sway 9s ease-in-out infinite; }
.lq-drift2 { animation: lq-sway 12s ease-in-out infinite reverse; }
.lq-bob { animation: lq-bob 3s ease-in-out infinite; }
.lq-sway { animation: lq-rot 8s ease-in-out infinite; }
@keyframes lq-sway { 0%, 100% { margin-left: 0; } 50% { margin-left: 3%; } }
@keyframes lq-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes lq-rot { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
.lq-rays { transform-box: fill-box; transform-origin: center; animation: lq-spin 22s linear infinite; }
.lq-sails { transform-box: fill-box; transform-origin: center; animation: lq-spin 8s linear infinite; }
@keyframes lq-spin { to { transform: rotate(360deg); } }
.lq-beam { animation: lq-beam 2.4s ease-in-out infinite; }
@keyframes lq-beam { 50% { opacity: .2; } }
.lq-scene.lq-grey { filter: grayscale(1) sepia(.12) brightness(1.08) contrast(.85); }

/* EN pill */
.lq-pill { position: absolute; top: 10px; left: 50%; translate: -50% 0; z-index: 25; display: inline-flex; align-items: center; gap: .4em; min-height: 52px; padding: .2em 1em .2em .7em; background: var(--lq-mint-soft); border: 3px solid var(--lq-mint); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); outline: 2px solid var(--ink); outline-offset: 0; font-size: 1.35rem; font-weight: 900; color: var(--ink); white-space: nowrap; max-width: calc(100% - 20px); }
.lq-pill svg { width: 1.1em; height: 1.1em; color: #17A589; }
.lq-pill span { overflow: hidden; text-overflow: ellipsis; }
.lq-pill.lq-pill-in { animation: lq-pillin .35s var(--ease-pop); }
@keyframes lq-pillin { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
html.lq-en-on .lq-pill { background: #FFF6C2; }
html.lq-compact .lq-pill { font-size: 1.15rem; min-height: 46px; top: 8px; }
.lq-pill.tk-dragging { box-shadow: 0 10px 0 rgba(36,38,59,.4); }

/* things: asleep / awake (Section 12.4) */
.lq-thing { position: absolute; width: var(--ts); height: var(--ts); transform: translate(-50%, -50%); background: none; border: 0; padding: 0; z-index: 3; touch-action: manipulation; }
.lq-thing-in { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 100%; transition: filter .5s; }
.lq-thing-in > svg { width: 100%; height: 100%; display: block; position: relative; }
.lq-gshadow { position: absolute; left: 14%; right: 14%; bottom: 0; height: 12%; background: rgba(36,38,59,.18); border-radius: 50%; }
.lq-thing.asleep .lq-thing-in { filter: grayscale(1) sepia(.12) brightness(1.1) contrast(.85); animation: lq-breathe 3s ease-in-out infinite; }
@keyframes lq-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.lq-zz { position: absolute; right: -6%; top: -14%; display: none; font-weight: 1000; color: var(--lq-sleep); pointer-events: none; }
.lq-thing.asleep .lq-zz { display: block; }
.lq-zz i { position: absolute; font-style: normal; font-size: .9rem; animation: lq-z 2.4s ease-in-out infinite; opacity: 0; }
.lq-zz i:nth-child(2) { animation-delay: .8s; font-size: 1.05rem; }
.lq-zz i:nth-child(3) { animation-delay: 1.6s; font-size: 1.2rem; }
@keyframes lq-z { 0% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(14px, -26px); opacity: 0; } }
.lq-thing.waking .lq-thing-in { animation: lq-hinge .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes lq-hinge { from { transform: perspective(500px) rotateX(70deg); } 70% { transform: perspective(500px) rotateX(-8deg); } to { transform: none; } }
.lq-label { position: absolute; left: 50%; top: 98%; transform: translateX(-50%); display: none; font-size: .8rem; font-weight: 800; background: rgba(255,255,255,.92); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .55em; white-space: nowrap; pointer-events: none; }
.lq-thing.awake .lq-label { display: block; }
.lq-level[data-band="B"] .lq-label, .lq-level[data-band="C"] .lq-label { font-size: 1.05rem; }
.lq-thing.lq-off { opacity: .35; pointer-events: none; }
.lq-thing.lq-hidden { display: none; }
.lq-thing:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; border-radius: 18px; }
.lq-ring { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 4px solid var(--lq-mint); border-radius: 50%; animation: lq-ringx .45s ease-out forwards; pointer-events: none; }
@keyframes lq-ringx { to { transform: scale(16); opacity: 0; } }
.lq-lettertile { position: fixed; z-index: 9000; pointer-events: none; font-weight: 1000; font-size: 1.1rem; background: #FFF6C2; border: 2px solid var(--ink); border-radius: 6px; padding: 0 .25em; color: var(--ink); }
.tk-hint-glow, .lq-glow-strong { filter: drop-shadow(0 0 10px rgba(255,197,61,.95)); }
.lq-glow-strong { animation: lq-strong 1s ease-in-out infinite; }
@keyframes lq-strong { 50% { filter: drop-shadow(0 0 18px rgba(255,197,61,1)) brightness(1.08); } }
.lq-group { width: calc(var(--ts) * 1.5); }
.lq-group .lq-thing-in > svg { overflow: visible; }

/* pack: toy chest / school bag */
.lq-pack { position: absolute; right: 2%; bottom: 4%; width: 28%; max-width: 260px; z-index: 2; }
.lq-pack > svg { width: 100%; height: auto; display: block; }
.lq-pack.lq-bulge { animation: lq-bulge .4s var(--ease-pop); }
@keyframes lq-bulge { 50% { transform: scale(1.1, .92); } }
.lq-pack-peek { position: absolute; left: 14%; right: 14%; top: 10%; height: 28%; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.lq-pack-peek span { width: 30%; }
.lq-pack-peek svg { width: 100%; height: auto; }
html.lq-port .lq-pack { right: 50%; translate: 50% 0; bottom: 2%; width: 34%; }

/* Sem + hotspots */
.lq-sem-host { position: absolute; left: 50%; top: 3%; bottom: 2%; translate: -50% 0; aspect-ratio: 120 / 206; z-index: 3; }
.lq-sem-host > svg { width: 100%; height: 100%; display: block; }
.lq-spot { position: absolute; background: none; border: 0; border-radius: 50%; padding: 0; z-index: 4; }
.lq-spot.lq-active { box-shadow: 0 0 0 3px rgba(46,211,160,.0); }
.lq-sem-host .lq-spot.lq-active::after { content: ""; position: absolute; inset: 18%; border: 3px dashed rgba(46,211,160,.75); border-radius: 50%; animation: lq-spin 9s linear infinite; }
.lq-spot.lq-off { pointer-events: none; opacity: .3; }
.lq-spot:not(.lq-active) { pointer-events: none; }
.lq-spot:focus-visible { outline: 4px solid var(--sky); }
.lq-spot.tk-hint-glow, .lq-spot.lq-glow-strong { background: rgba(255,226,122,.35); }

/* dollhouse */
.lq-doll { position: absolute; left: 4%; right: 4%; top: 3%; bottom: 3%; z-index: 3; }
.lq-doll > svg { width: 100%; height: 100%; display: block; }
.lq-hs { border-radius: 10px; }
.lq-hs.lq-active:hover { background: rgba(255,255,255,.25); }
.lq-hs.lq-wiggle { animation: lq-wig2 .5s ease; background: rgba(255,226,122,.3); }
@keyframes lq-wig2 { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.lq-micabox { position: absolute; left: 50%; top: 50%; width: clamp(64px, 12vmin, 110px); translate: -50% -60%; opacity: 0; visibility: hidden; pointer-events: none; z-index: 20; }
.lq-micabox.lq-show { visibility: visible; }
.lq-micabox svg { width: 100%; height: auto; }
.lq-micabox.lq-show { opacity: 1; animation: lq-micajump .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes lq-micajump { from { transform: translateY(30px) scale(.3); } to { transform: none; } }
.lq-found { position: absolute; width: clamp(50px, 9vmin, 80px); translate: -50% -50%; z-index: 21; pointer-events: none; animation: lq-micajump .5s cubic-bezier(.3,1.6,.5,1); }
.lq-found svg { width: 100%; height: auto; }

/* windmill windows */
.lq-tower { position: absolute; left: 50%; top: 22%; bottom: 0; translate: -50% 0; width: min(78%, 560px); background: #FFE6BF; border: 4px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.lq-tower-roof { position: absolute; left: 50%; top: -12%; translate: -50% 0; width: 70%; height: 14%; background: var(--lq-lilac); border: 4px solid var(--ink); border-radius: 50% 50% 8px 8px; }
.lq-tower-sails { position: absolute; left: 50%; top: -20%; translate: -50% 0; width: min(30%, 130px); z-index: 3; pointer-events: none; }
.lq-tower-sails svg { width: 100%; height: auto; }
.lq-tower-win { flex: 1; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4%; padding: 8% 6% 6%; }
html.lq-port .lq-tower-win { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
html.lq-port .lq-tower { width: 92%; top: 16%; }
.lq-window.lq-thing { position: relative; transform: none; width: auto; height: auto; min-height: 64px; background: #BDE6FF; border: 4px solid var(--ink); border-radius: 18px 18px 8px 8px; box-shadow: inset 0 0 0 4px #fff; overflow: visible; }
.lq-window .lq-thing-in { display: flex; align-items: center; justify-content: center; }
.lq-window .lq-wart { width: 86%; height: 86%; }
.lq-window.asleep { background: #DCD8E4; }
.lq-window.lq-empty .lq-zz { display: none; }
.lq-window .lq-label { top: auto; bottom: -12px; }
.lq-window.awake .lq-w-rainy path:nth-of-type(n+2), .lq-window.awake .lq-w-snowy path { animation: lq-fall 1.2s linear infinite; }
@keyframes lq-fall { from { transform: translateY(-4px); } to { transform: translateY(6px); } }

/* Zlatko */
.lq-zlatko { position: absolute; translate: -50% 0; width: 44px; height: 44px; padding: 0; background: none; border: 0; z-index: 8; animation: lq-zl 6s ease-in-out infinite; }
.lq-zlatko svg { width: 100%; height: 100%; }
@keyframes lq-zl { 0%, 90%, 100% { transform: none; } 94% { transform: translateX(2px) rotate(-4deg); } }
.lq-zlatko.lq-glint { filter: drop-shadow(0 0 8px #FFD45C); }
.lq-zlatko.lq-found { animation: lq-zlfound 1.4s ease forwards; }
@keyframes lq-zlfound { 40% { transform: scale(1.6) rotate(-10deg); } to { transform: translateY(-80px) scale(.4); opacity: 0; } }

/* reward */
.lq-reward { position: absolute; top: 0; right: 0; bottom: 0; left: var(--tikaw); z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(255,246,229,.78); padding: 10px; animation: lq-fadein .3s; }
html.lq-port .lq-reward { left: 0; top: var(--tikah); }
@keyframes lq-fadein { from { opacity: 0; } }
.lq-reward-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem 1.4rem; max-width: 560px; width: 100%; background: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); animation: lq-pop .5s var(--ease-pop); }
@keyframes lq-pop { from { transform: scale(.6); opacity: 0; } }
.lq-reward-title { font-weight: 1000; font-size: 1.35rem; text-align: center; }
.lq-reward-lanterns { display: flex; gap: 1.2rem; }
.lq-rl { width: clamp(46px, 9vmin, 76px); display: inline-flex; }
.lq-rl svg { width: 100%; height: auto; }
.lq-rl.lq-on { animation: lq-pop .45s var(--ease-pop); }
.lq-rl.lq-on .lq-lant-body { fill: #FFE9A8; } .lq-rl.lq-on .lq-lant-flame { fill: #FF9636; } .lq-rl.lq-on .lq-lant-glow { opacity: .6; }
.lq-bookchip { font-size: 1.1rem; }
.lq-bookchip .lq-ico { width: 1.5em; height: 1.5em; }
.lq-wtile { display: inline-block; font-weight: 1000; font-size: 1rem; background: #FFF6C2; border: 2px solid var(--ink); border-radius: 8px; padding: .05em .4em; white-space: nowrap; box-shadow: 0 0 12px #FFE27A; }
.lq-reward-btns { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lq-reward-btns .tk-btn { min-height: 56px; }
html.lq-compact .lq-reward-card { padding: .5rem 1rem; gap: .3rem; }
html.lq-compact .lq-reward-btns .tk-btn { min-height: 52px; }
html.lq-compact .lq-reward-lanterns .lq-rl { width: 40px; }
.lq-leave { position: absolute; right: 12px; bottom: 12px; z-index: 30; }
.lq-badgepop { position: fixed; left: 50%; top: 40%; translate: -50% -50%; z-index: 7000; display: flex; flex-direction: column; align-items: center; gap: .3rem; background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 1rem 1.4rem; font-weight: 900; animation: lq-pop .5s var(--ease-pop); pointer-events: none; }
.lq-badgepop svg { width: 96px; height: auto; }
.lq-badgepop.lq-out { opacity: 0; transition: opacity .4s; }
.lq-medal-off { filter: grayscale(1); opacity: .6; }

/* the still mini-Tika in icons */
.lq-still, .lq-still * { animation: none !important; }
.lq-eyes-closed { display: none; }
.lq-eyes-shut .tk-eyes-open { display: none; }
.lq-eyes-shut .lq-eyes-closed { display: inline; }
.lq-wings-up .tk-wl { transform: rotate(60deg); }
.lq-wings-up .tk-wr { transform: rotate(-60deg); }
.lq-beak-open .tk-beak { transform: scaleY(.55); transform-origin: 70px 76px; }

/* ================================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .lq-thing.asleep .lq-thing-in, html:not([data-motion="full"]) .lq-zz i, html:not([data-motion="full"]) .lq-drift, html:not([data-motion="full"]) .lq-drift2,
  html:not([data-motion="full"]) .lq-bob, html:not([data-motion="full"]) .lq-sway, html:not([data-motion="full"]) .lq-rays, html:not([data-motion="full"]) .lq-sails, html:not([data-motion="full"]) .lq-title-zevko,
  html:not([data-motion="full"]) .lq-map-zevko, html:not([data-motion="full"]) .lq-tile, html:not([data-motion="full"]) .lq-zlatko, html:not([data-motion="full"]) .lq-enter, html:not([data-motion="full"]) .lq-stars i { animation: none !important; }
  html:not([data-motion="full"]) .lq-thing.waking .lq-thing-in { animation: none; }
  html:not([data-motion="full"]) .lq-zz i { opacity: 1; position: static; }
}
html[data-motion="reduce"] .lq-thing.asleep .lq-thing-in, html[data-motion="reduce"] .lq-zz i, html[data-motion="reduce"] .lq-drift, html[data-motion="reduce"] .lq-drift2, html[data-motion="reduce"] .lq-bob,
html[data-motion="reduce"] .lq-sway, html[data-motion="reduce"] .lq-rays, html[data-motion="reduce"] .lq-sails, html[data-motion="reduce"] .lq-title-zevko, html[data-motion="reduce"] .lq-map-zevko,
html[data-motion="reduce"] .lq-tile, html[data-motion="reduce"] .lq-zlatko, html[data-motion="reduce"] .lq-enter, html[data-motion="reduce"] .lq-stars i, html[data-motion="reduce"] .lq-thing.waking .lq-thing-in { animation: none !important; }
html[data-motion="reduce"] .lq-zz i { opacity: 1; position: static; }

/* level card in Tika's column */
.lq-lvlcard { position: absolute; left: 8px; right: 8px; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); text-align: center; font-weight: 900; font-size: .9rem; line-height: 1.15; transform: rotate(-2deg); }
.lq-lvl-ico { width: 46px; height: 46px; display: inline-flex; }
.lq-lvl-ico svg { width: 100%; height: 100%; }
html.lq-port .lq-lvlcard, html.lq-compact .lq-lvlcard { display: none; }
html.lq-land .lq-level { --say-bg: #FFFBF1; }

/* ================================================================ pozorište (theatre) */
.lq-stage { position: absolute; top: 8px; left: 8px; right: 8px; bottom: 0; border: 5px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0; overflow: hidden; background: #2B3A67; }
.lq-stage-back { position: absolute; inset: 0; }
.lq-stage-night { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,70,.78), rgba(20,28,70,.45)); opacity: 0; transition: opacity .8s; pointer-events: none; }
.lq-stage.lq-night .lq-stage-night { opacity: 1; }
.lq-stage-lights { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(255,226,122,calc(var(--lights, 0) * .1)), transparent 70%); transition: background .6s; }
.lq-stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: repeating-linear-gradient(90deg, #C98952 0 64px, #B97A45 64px 67px); border-top: 4px solid var(--ink); }
.lq-actor { position: absolute; bottom: 6%; display: flex; flex-direction: column; align-items: center; }
.lq-actor-art { height: 100%; display: flex; align-items: flex-end; }
.lq-actor-art > svg { height: 100%; width: auto; display: block; overflow: visible; }
.lq-sem-actor { left: 9%; height: 70%; cursor: pointer; border-radius: 20px; }
.lq-sem-actor.tk-drop-ok { outline: 4px dashed var(--lq-mint); outline-offset: 4px; }
.lq-sem-actor.tk-drop-over { background: rgba(46,211,160,.18); }
.lq-sem-actor.lq-talking [data-part="mouth"] { animation: lq-semtalk .22s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lq-semtalk { 50% { transform: scaleY(.45); } }
.lq-visitor { right: 7%; height: 46%; transition: transform .5s; }
.lq-visitor[data-who="galeb"] { height: 34%; bottom: 30%; }
.lq-visitor[data-who="zevko"] { height: 40%; bottom: 34%; right: 6%; animation: lq-bob 3s ease-in-out infinite; }
.lq-visitor.lq-happy .lq-actor-art { animation: lq-hop2 .5s ease 2; }
@keyframes lq-hop2 { 50% { transform: translateY(-16px); } }
.lq-visitor.lq-puzzled .lq-actor-art { animation: lq-shrug .5s ease 2; }
@keyframes lq-shrug { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.lq-visitor.lq-bow .lq-actor-art { transform: rotate(14deg) translateY(6px); transition: transform .3s; }
.lq-visitor.lq-flap .lq-gull-wing { animation: lq-flapw .25s ease-in-out 6; transform-box: fill-box; transform-origin: 30% 50%; }
@keyframes lq-flapw { 50% { transform: rotate(-30deg); } }
.lq-visitor.lq-leave { transform: translateX(40%); opacity: .2; transition: transform .6s, opacity .6s; }
.lq-visitor.lq-rainbow .lq-actor-art { animation: lq-pop .8s var(--ease-pop); }
.lq-q { position: absolute; top: -10%; right: 20%; font-size: 2.4rem; font-weight: 1000; color: var(--sky); -webkit-text-stroke: 2px var(--ink); animation: lq-pop .3s var(--ease-pop); }
.lq-vbubble { position: absolute; top: 12%; right: 4%; z-index: 4; display: inline-flex; align-items: center; gap: .3em; min-height: 48px; padding: .25em .9em; background: var(--lq-mint-soft); border: 3px solid var(--lq-mint); outline: 2px solid var(--ink); border-radius: 18px; font-size: 1.2rem; font-weight: 900; width: max-content; max-width: min(58vw, 26rem); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.lq-vbubble svg { width: 1.3em; height: 1.3em; color: #17A589; }
.lq-vbubble.lq-icononly { padding: .25em .6em; }
html.lq-en-on .lq-vbubble { background: #FFF6C2; }
.lq-person { position: absolute; left: 50%; bottom: 9%; height: 40%; translate: -50% 0; opacity: 0; }
.lq-person > svg { height: 100%; width: auto; }
.lq-person.lq-in { opacity: 1; animation: lq-pop .5s var(--ease-pop); }
.lq-person.lq-wave { animation: lq-hop2 .5s ease 2; }
.lq-visitor.lq-point .lq-claw-l { transform: translate(28px, 88px) rotate(-30deg); }
.lq-curtain { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 6; background: repeating-linear-gradient(90deg, #D63A42 0 22px, #A8262E 22px 44px); border: 4px solid var(--ink); transition: transform 1s cubic-bezier(.6,0,.3,1); }
.lq-cl { left: 0; border-left: 0; }
.lq-cr { right: 0; border-right: 0; }
.lq-stage.lq-open .lq-cl { transform: translateX(-90%); }
.lq-stage.lq-open .lq-cr { transform: translateX(90%); }
.lq-valance { position: absolute; top: 0; left: 0; right: 0; height: 9%; z-index: 7; background: radial-gradient(circle at 50% 0, #C8323A 70%, transparent 71%) 0 0 / 60px 120% repeat-x; border-top: 6px solid #FFC53D; }
.lq-handover { position: absolute; width: 56px; z-index: 8; pointer-events: none; }
.lq-handover svg { width: 100%; height: auto; }
.lq-t-pozoriste .lq-tray, .lq-t-kafe .lq-tray.lq-replies { height: auto; min-height: var(--trayh); flex-wrap: wrap; align-content: center; padding: 8px 10px; gap: 10px; }
.lq-reply { position: relative; min-height: 72px; min-width: 96px; max-width: min(48%, 22rem); display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em; background: #fff; border: 3px solid var(--ink); border-radius: 22px 22px 22px 6px; box-shadow: var(--shadow-sm); font-weight: 900; font-size: 1.1rem; line-height: 1.2; text-align: left; transition: translate .15s; }
.lq-reply-pic { width: 52px; height: 52px; flex: 0 0 auto; display: inline-flex; }
.lq-reply-pic svg { width: 100%; height: 100%; }
.lq-reply-spk { display: inline-flex; color: #17A589; }
.lq-reply-spk svg { width: 1.3em; height: 1.3em; }
.lq-reply-only { min-width: 110px; justify-content: center; }
.lq-reply-only .lq-reply-spk svg { width: 2.2em; height: 2.2em; }
.lq-reply.lq-sel { translate: 0 -8px; outline: 4px solid var(--lq-mint); background: var(--lq-mint-soft); }
.lq-reply.lq-off { opacity: .35; pointer-events: none; }
.lq-reply.lq-given { background: var(--lq-mint-soft); }
.lq-reply.tk-dragging { z-index: 1000; }
html.lq-compact .lq-reply { min-height: 58px; font-size: 1rem; padding: .2em .7em; }
html.lq-compact .lq-reply-pic { width: 40px; height: 40px; }
html.lq-port .lq-reply { max-width: calc(50% - 6px); font-size: 1rem; }
html.lq-port .lq-sem-actor { left: 4%; height: 62%; }
html.lq-port .lq-visitor { right: 3%; height: 38%; }
html.lq-port .lq-visitor[data-who="zevko"] { height: 22%; bottom: 58%; right: 3%; }
html.lq-port .lq-vbubble { right: 8%; top: 12%; }
.lq-stage.lq-rain::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(100deg, rgba(255,107,107,.0) 0 30px, rgba(255,107,107,.35) 30px 32px, rgba(116,192,252,.0) 32px 60px, rgba(116,192,252,.35) 60px 62px); animation: lq-rain 1s linear infinite; }
@keyframes lq-rain { from { background-position: 0 -40px; } to { background-position: 0 40px; } }
.lq-parade { position: absolute; left: 4%; right: 4%; top: 12%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; z-index: 9; }
.lq-parade-it { width: clamp(44px, 8vmin, 72px); opacity: .25; transition: opacity .3s, transform .3s; }
.lq-parade-it.lq-on { opacity: 1; transform: translateY(-6px); }
.lq-parade-it svg { width: 100%; height: auto; }
.lq-credits { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 10; text-align: center; padding: 1rem 1.6rem; font-weight: 900; animation: lq-pop .5s var(--ease-pop); }
.lq-credits-t { font-size: 1.6rem; font-weight: 1000; }
.lq-credits-thx { color: var(--go); margin-top: .3rem; }
.lq-doll .lq-hs.lq-active:focus-visible, .lq-doll .lq-hs.lq-active:hover { outline: 3px dashed rgba(36,38,59,.45); }

html[data-motion="reduce"] .lq-curtain { transition: none; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .lq-curtain { transition: none; } }
