/* Language Quest – type styles, part 3 (parovi, kamenčići, …) */

/* ================================================================ parovi (memory envelopes) */
.lq-memory { position: absolute; top: 8px; bottom: 8px; left: 50%; translate: -50% 0; width: calc(var(--cols, 4) * (var(--cw, 90px) + 10px)); max-width: calc(100% - 16px); display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; z-index: 3; }
.lq-env { width: var(--cw, 90px); height: var(--ch, 120px); flex: 0 0 auto; padding: 0; background: none; border: 0; perspective: 600px; }
.lq-env-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .3s ease; }
.lq-env.lq-open .lq-env-in, .lq-env.lq-matched .lq-env-in { transform: rotateY(180deg); }
.lq-env-back, .lq-env-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.lq-env-back svg { width: 100%; height: 100%; }
.lq-env-front { transform: rotateY(180deg); background: #fff; border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); padding: 8%; }
.lq-env-front svg { width: 100%; height: 100%; }
.lq-env-front b { font-size: clamp(.9rem, calc(var(--cw, 90px) / 6), 1.5rem); font-weight: 1000; text-align: center; word-break: break-word; line-height: 1.1; }
.lq-env.lq-matched .lq-env-front { border-color: var(--lq-mint); outline: 3px solid var(--ink); background: var(--lq-mint-soft); animation: lq-hop2 .4s ease; }
.lq-env.lq-peek .lq-env-back { filter: drop-shadow(0 0 10px #FFE27A) brightness(1.1); }
html[data-motion="reduce"] .lq-env-in { transition: none; }

/* ================================================================ kamenčići (spelling stream) */
.lq-spell { position: absolute; inset: 0; }
.lq-spell-pic { position: absolute; left: 50%; top: 4%; translate: -50% 0; width: clamp(96px, 22vmin, 160px); height: clamp(96px, 22vmin, 160px); padding: 8px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); z-index: 4; }
.lq-spell-pic svg { width: 100%; height: 100%; }
.lq-spell-pic.asleep svg { filter: grayscale(1) brightness(1.1); }
.lq-spell-pic.awake { animation: lq-pop .5s var(--ease-pop); }
.lq-river { position: absolute; left: 0; right: 0; top: 52%; bottom: 8%; display: flex; align-items: center; z-index: 3; }
.lq-bank { width: 56px; align-self: stretch; flex: 0 0 auto; }
.lq-bank-r { display: flex; align-items: center; justify-content: center; }
.lq-flag { width: 34px; height: 52px; }
.lq-stones-row { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; }
.lq-stone2 { width: min(84px, calc((100vw - 220px) / var(--n, 5))); max-width: 84px; min-width: 52px; aspect-ratio: 1; border-radius: 46% 54% 48% 52%; border: 3px dashed rgba(255,255,255,.85); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.lq-stone2 b { font-size: 1.6rem; font-weight: 1000; color: var(--ink); }
.lq-stone2.lq-set { border: 4px solid var(--ink); background: #B9BDC4; box-shadow: 0 5px 0 var(--ink); animation: lq-pop .35s var(--ease-pop); }
.lq-stone2.lq-pre { animation: none; background: #CDD1D8; }
.lq-stone2.lq-active { border-color: #FFE27A; background: rgba(255,226,122,.35); animation: lq-call 1s ease-in-out infinite; }
.lq-stone2.tk-drop-over { background: rgba(46,211,160,.5); }
.lq-stones-row.lq-zig { flex-wrap: wrap; max-width: 92%; row-gap: 12px; }
.lq-stones-row.lq-zig .lq-stone2:nth-child(even) { translate: 0 10px; }
.lq-hopper { position: absolute; left: 0; top: 0; width: 64px; translate: -50% -82%; transition: left .35s ease, top .35s ease; pointer-events: none; z-index: 5; }
.lq-hopper svg { width: 100%; height: auto; display: block; }
.lq-hopper.lq-hop { animation: lq-hop2 .35s ease; }
.lq-pad { width: 70px; height: 70px; flex: 0 0 auto; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 35% 30%, #A8E68A, #4CB944); box-shadow: 0 4px 0 var(--ink); position: relative; }
.lq-pad::before { content: ""; position: absolute; right: 10%; top: 6%; width: 22%; height: 30%; background: #E8F7E0; border-left: 3px solid var(--ink); clip-path: polygon(0 0, 100% 0, 0 100%); }
.lq-pad b { font-size: 1.9rem; font-weight: 1000; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink); }
.lq-pad.lq-used { visibility: hidden; }
.lq-pad.lq-sink { animation: lq-sink .9s ease; }
@keyframes lq-sink { 40% { transform: translateY(14px) scale(.85); opacity: .4; } }
html.lq-compact .lq-pad { width: 58px; height: 58px; }
html.lq-compact .lq-spell-pic { width: 84px; height: 84px; top: 2%; }
html.lq-compact .lq-river { top: 44%; bottom: 2%; }
html.lq-port .lq-river { top: 40%; bottom: 10%; }

/* ================================================================ brljko (monster lab) */
.lq-lab { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lq-monster { position: relative; height: 92%; aspect-ratio: 1; max-width: 92%; z-index: 3; border-radius: 30px; }
.lq-monster-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lq-monster.tk-drop-ok { outline: 4px dashed rgba(46,211,160,.8); outline-offset: -6px; }
.lq-monster.tk-drop-over { background: rgba(46,211,160,.12); }
.lq-monster.lq-bounce { animation: lq-shrug .4s ease; }
.lq-monster.lq-dance .lq-monster-svg { animation: lq-dance .5s ease-in-out 4; }
@keyframes lq-dance { 25% { transform: rotate(-6deg) translateY(-6px); } 75% { transform: rotate(6deg) translateY(-6px); } }
.lq-mp.lq-dull { filter: grayscale(.85) brightness(1.05); }
.lq-mp { cursor: pointer; }
.lq-mpart { animation: lq-snapin .3s var(--ease-pop); transform-box: fill-box; }
@keyframes lq-snapin { from { opacity: 0; } }
.lq-partchip { width: 76px; height: 76px; flex: 0 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 4px; }
.lq-partchip svg { width: 100%; height: 100%; overflow: visible; }
html.lq-compact .lq-partchip { width: 60px; height: 60px; }
.lq-palette { position: absolute; left: 8px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.lq-ppot { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; padding: 5px; box-shadow: var(--shadow-sm); }
.lq-ppot span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--ink); }
.lq-ppot.lq-sel { outline: 4px solid var(--lq-mint); transform: scale(1.12); }
html.lq-compact .lq-palette { gap: 3px; }
html.lq-compact .lq-ppot { width: 44px; height: 44px; padding: 3px; }
html.lq-port .lq-palette { left: 50%; top: 4px; translate: -50% 0; flex-direction: row; }
html.lq-port .lq-lab-c .lq-monster { margin-top: 60px; height: calc(92% - 60px); }
html.lq-port .lq-colours .lq-pill { top: 64px; }
html.lq-narrow .lq-palette { gap: 4px; }
html.lq-narrow .lq-ppot { width: 44px; height: 44px; padding: 3px; }

/* ================================================================ kafe (sandwich café) */
.lq-cafe { position: absolute; inset: 0; overflow: hidden; }
.lq-cafe-wall { position: absolute; inset: 0 0 30% 0; background: repeating-linear-gradient(90deg, #FFF0E0 0 34px, #FFE3EE 34px 68px); }
.lq-cafe-wall::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: radial-gradient(circle at 50% 0, #FF5E57 60%, transparent 62%) 0 0 / 40px 36px repeat-x; }
.lq-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, #D9A066 0 14%, #C98952 14%); border-top: 5px solid var(--ink); }
.lq-guest { position: absolute; left: 2%; bottom: 24%; width: 26%; max-width: 240px; z-index: 2; transition: transform .7s ease, opacity .7s; }
.lq-guest svg { width: 100%; height: auto; display: block; }
.lq-guest.lq-in { animation: lq-walkin .7s ease; }
.lq-guest.lq-out { transform: translateX(30%); opacity: 0; }
@keyframes lq-walkin { from { transform: translateY(24px) scale(.92); opacity: 0; } }
.lq-ticket { position: absolute; right: 2%; top: 4%; width: clamp(84px, 13vw, 130px); background: #fff; border: 3px solid var(--ink); border-radius: 6px 6px 14px 14px; box-shadow: var(--shadow-sm); padding: 6px; z-index: 4; transform: rotate(3deg); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lq-ticket-h { width: 40px; height: 40px; }
.lq-ticket-h svg { width: 100%; height: 100%; }
.lq-ticket-slots { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.lq-tslot { width: 100%; min-height: 48px; border: 2px dashed var(--ink-3); border-radius: 10px; background: #FFFBF1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 4px; font-weight: 900; }
.lq-tslot svg { width: 30px; height: 30px; }
.lq-tslot i { font-style: normal; font-size: 1.1rem; color: var(--ink-2); }
.lq-tslot b { font-size: .9rem; }
.lq-tslot.lq-active { border: 3px solid #FFC53D; background: #FFF6C2; animation: lq-call 1s ease-in-out infinite; }
.lq-tslot.lq-done { border: 2px solid var(--lq-mint); background: var(--lq-mint-soft); }
.lq-tslot.lq-drink { border-radius: 20px; }
.lq-plate { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; width: 34%; max-width: 280px; min-width: 160px; z-index: 3; border-radius: 30px; }
.lq-plate-svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.lq-plate.tk-drop-ok { outline: 4px dashed rgba(46,211,160,.8); outline-offset: 4px; }
.lq-stack { position: absolute; left: 10%; right: 10%; bottom: 52%; display: flex; flex-direction: column-reverse; align-items: stretch; z-index: 2; transform-origin: 50% 100%; }
.lq-stack.lq-wobble2 { animation: lq-stackwob .9s ease-out; }
@keyframes lq-stackwob { 20% { rotate: calc(var(--wob) * 1.5deg); } 45% { rotate: calc(var(--wob) * -1deg); } 70% { rotate: calc(var(--wob) * .5deg); } 100% { rotate: 0deg; } }
.lq-layerx { margin-top: -8%; }
.lq-layerx svg { width: 100%; height: auto; display: block; }
.lq-t-kafe .lq-m-plate .lq-stack, .lq-m-plate .lq-stack { flex-direction: row; flex-wrap: wrap; justify-content: center; bottom: 40%; gap: 2px; }
.lq-m-plate .lq-layerx { width: 30%; margin: 0; }
.lq-stack.lq-bitten { clip-path: polygon(0 0, 62% 0, 70% 12%, 82% 8%, 88% 22%, 100% 26%, 100% 100%, 0 100%); }
.lq-cup { position: absolute; left: 72%; bottom: 10%; width: clamp(44px, 7vw, 70px); z-index: 3; }
.lq-cup svg { width: 100%; height: auto; }
.lq-cup.tk-drop-ok { outline: 3px dashed rgba(46,211,160,.8); border-radius: 10px; }
.lq-hearts { position: absolute; left: 12%; top: 18%; z-index: 5; color: #FF5E8A; font-size: 2rem; pointer-events: none; }
.lq-hearts i { display: inline-block; font-style: normal; animation: lq-heartup 1.5s ease-out forwards; }
.lq-hearts i:nth-child(2) { animation-delay: .2s; } .lq-hearts i:nth-child(3) { animation-delay: .4s; }
@keyframes lq-heartup { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-80px); opacity: 0; } }
.lq-bin { width: 76px; height: 76px; flex: 0 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 16px 16px 22px 22px; box-shadow: var(--shadow-sm); padding: 6px; }
.lq-bin svg { width: 100%; height: 100%; }
html.lq-compact .lq-bin { width: 60px; height: 60px; padding: 4px; }
html.lq-port .lq-guest { left: 3%; top: 3%; bottom: auto; width: 36%; }
html.lq-port .lq-ticket { top: 3%; }
html.lq-port .lq-plate { width: 60%; bottom: 4%; }
html.lq-port .lq-cup { left: auto; right: 4%; bottom: 8%; }
html.lq-compact .lq-ticket { width: 92px; padding: 3px; gap: 2px; }
html.lq-compact .lq-tslot { min-height: 40px; }
html.lq-compact .lq-ticket.lq-many { width: 168px; }
html.lq-compact .lq-ticket.lq-many .lq-ticket-slots { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
html.lq-compact .lq-ticket.lq-many .lq-tslot.lq-drink { margin-top: 0; }
html.lq-compact .lq-ticket-h { display: none; }
.lq-tslot.lq-drink { margin-top: 6px; }

/* ================================================================ obuci (dress Tika) */
.lq-dress { position: absolute; inset: 0; }
.lq-bigtika { position: absolute; left: 50%; bottom: 1%; height: 80%; aspect-ratio: 164 / 208; translate: -50% 0; z-index: 3; transition: transform .6s; }
.lq-bigtika .tika { width: 100%; }
.lq-bigtika .tika.tk-drop-ok { outline: 4px dashed rgba(46,211,160,.8); outline-offset: -10px; border-radius: 30px; }
.lq-bigtika .tika.tk-drop-over { background: rgba(46,211,160,.12); border-radius: 30px; }
.lq-bigtika .lq-cloth { cursor: pointer; }
.tika.lq-twirl .tk-owl { animation: lq-twirl .6s ease; }
@keyframes lq-twirl { 50% { transform: scaleX(-1); } }
.tika.lq-wobbly .tk-owl { animation: lq-shrug .35s ease 2; }
.tika.lq-walkout { transform: translateX(40%); opacity: .6; transition: transform .6s, opacity .6s; }
.lq-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; }
.lq-flash.lq-on { animation: lq-flash .4s ease; }
@keyframes lq-flash { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }
.lq-wwin { position: absolute; left: 3%; top: 4%; width: clamp(92px, 20%, 170px); aspect-ratio: 1; background: #BDE6FF; border: 5px solid var(--ink); border-radius: 22px 22px 8px 8px; box-shadow: inset 0 0 0 5px #fff, var(--shadow); z-index: 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lq-wwin.asleep { background: #DCD8E4; }
.lq-wwin.asleep .lq-wwin-art { filter: grayscale(1) brightness(1.15); opacity: .5; }
.lq-wwin.lq-hidden-w .lq-wwin-art { visibility: hidden; }
.lq-wwin-art { position: relative; width: 90%; height: 90%; }
.lq-wwin-art svg, .lq-wcard svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lq-wwin-art svg + svg, .lq-wcard svg + svg { transform: translate(18%, 18%) scale(.6); }
.lq-wwin.awake { animation: lq-pop .4s var(--ease-pop); }
.lq-wwin.awake .lq-w-rainy path, .lq-wwin.awake .lq-w-snowy path, .lq-wwin.awake .lq-w-stormy path:last-child { animation: lq-fall 1s linear infinite; }
.lq-wwin[data-w~="stormy"].awake { animation: lq-storm 2.4s ease-in-out infinite; }
@keyframes lq-storm { 0%, 88%, 100% { background: #9FB3CF; } 92% { background: #E8EEF8; } }
.lq-wwin[data-w~="foggy"].awake::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 10px, transparent 10px 22px); animation: lq-fog 3s linear infinite; }
@keyframes lq-fog { to { background-position: 40px 0; } }
.lq-wcards { position: absolute; right: 2%; top: 4%; bottom: 4%; display: flex; flex-direction: column; justify-content: center; gap: 10px; z-index: 4; }
.lq-wcard { position: relative; width: clamp(72px, 12vmin, 110px); aspect-ratio: 1; background: #BDE6FF; border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 0; overflow: hidden; }
.lq-wcard.lq-wig2 { animation: lq-wig2 .5s ease; }
.lq-wcard.lq-sticker { background: #fff; }
.lq-wcard.tk-selected { outline: 4px solid var(--lq-mint); }
.lq-tray-dim .lq-cloth-chip { opacity: .35; pointer-events: none; }
.lq-cloth-chip { width: 80px; height: 80px; flex: 0 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 6px; }
.lq-cloth-chip svg { width: 100%; height: 100%; }
html.lq-compact .lq-cloth-chip { width: 62px; height: 62px; }
.lq-radio { position: absolute; left: 25%; top: 3%; width: clamp(70px, 12%, 120px); z-index: 2; }
.lq-radio svg { width: 100%; height: auto; }
.lq-cal { position: absolute; left: 3%; right: 3%; top: 3%; display: flex; gap: 4px; justify-content: center; z-index: 3; }
.lq-dress-week .lq-cal { top: auto; bottom: 2%; left: 2%; right: auto; flex-direction: column; width: clamp(64px, 11vmin, 90px); }
.lq-dress-week .lq-wwin { top: 20%; left: 50%; translate: -50% 0; width: clamp(70px, 14%, 120px); }
.lq-dress-week .lq-radio { top: 20%; left: 26%; }
.lq-dress-week .lq-bigtika { bottom: 1%; }
.lq-dress-weather .lq-wwin { top: 16%; }
.lq-dress-week .lq-bigtika { height: 66%; }
.lq-day { width: 100%; min-height: 48px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; font-weight: 1000; font-size: .85rem; }
.lq-day-w { width: 34px; height: 34px; display: inline-flex; }
.lq-day-w svg { width: 100%; height: 100%; }
.lq-day.tk-drop-ok { outline: 3px dashed var(--lq-mint); }
.lq-day.tk-drop-over { background: var(--lq-mint-soft); }
.lq-day.lq-set { background: #FFF6C2; }
.lq-out { position: absolute; right: 16%; bottom: 4%; z-index: 6; min-height: 72px; }
html.lq-port .lq-wcards { right: 2%; top: auto; bottom: 2%; left: 2%; flex-direction: row; justify-content: center; }
html.lq-port .lq-bigtika { height: 64%; bottom: 22%; }
html.lq-port .lq-wwin { left: auto; right: 4%; top: 3%; }
html.lq-port .lq-dress-week .lq-cal { flex-direction: row; width: auto; left: 2%; right: 2%; bottom: 2%; }
html.lq-port .lq-dress-week .lq-day { flex-direction: column; min-height: 64px; }
html.lq-port .lq-out { right: 4%; bottom: 16%; }
html.lq-compact .lq-wcard { width: 64px; }
/* phone held sideways: the week calendar becomes two columns (Mon–Thu, Fri–Sun) so all seven days fit */
html.lq-compact .lq-dress-week .lq-cal { display: grid; grid-template-columns: repeat(2, 66px); grid-template-rows: repeat(4, auto); grid-auto-flow: column; width: auto; bottom: 3%; }
html.lq-compact .lq-dress-week .lq-day { min-height: 44px; padding: 2px 4px; font-size: .8rem; }
html.lq-compact .lq-dress-week .lq-day-w { width: 26px; height: 26px; }
.lq-solo .lq-reward { left: 0 !important; top: 0 !important; }

/* reactions + pose props (game classes on the kit's Tika SVG) */
.lq-prop { display: none; }
.lq-react-wet .lq-prop-drops { display: inline; animation: lq-fall .8s linear infinite; }
.lq-react-brr .lq-prop-shiver { display: inline; }
.lq-react-brr .tk-in { animation: lq-shiver .15s linear infinite !important; }
@keyframes lq-shiver { 50% { transform: translateX(2px); } }
.lq-react-hot .lq-prop-sweat { display: inline; animation: lq-fall 1.2s ease-in infinite; }

/* ================================================================ tika kaže (actions) */
.lq-gym { position: absolute; inset: 0; }
.lq-gym-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(90deg, #E8C9A0 0 50px, #DDBB8E 50px 53px); border-top: 4px solid var(--ink); }
.lq-gymtika { height: 74%; bottom: 4%; }
.lq-acard { position: relative; width: 92px; height: 100px; flex: 0 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lq-acard svg { width: 100%; height: 72px; overflow: visible; }
.lq-acard-t { font-size: .78rem; font-weight: 900; line-height: 1; white-space: nowrap; }
.lq-acard.lq-pillow { background: #F3F0FF; }
html.lq-compact .lq-acard { width: 70px; height: 70px; }
html.lq-compact .lq-acard svg { height: 52px; }
html.lq-compact .lq-acard-t { display: none; }
.lq-imitate { position: absolute; inset: -6px; border-radius: 22px; border: 4px dotted var(--lq-mint); animation: lq-spin 2.5s linear; pointer-events: none; }
.lq-gym > .lq-imitate { inset: auto; left: 50%; top: 10%; width: 120px; height: 120px; translate: -50% 0; border-radius: 50%; }
.lq-seqstrip { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; gap: 8px; z-index: 5; background: rgba(255,255,255,.75); border: 3px solid var(--ink); border-radius: 18px; padding: 6px; }
.lq-sslot { width: 72px; height: 72px; border: 3px dashed var(--ink-3); border-radius: 14px; background: #FFFBF1; display: flex; align-items: center; justify-content: center; padding: 2px; }
.lq-sslot svg { width: 100%; height: 100%; }
.lq-sslot-n { font-size: 1.4rem; font-weight: 1000; color: var(--ink-3); }
.lq-sslot.lq-filled { border: 3px solid var(--lq-mint); background: var(--lq-mint-soft); }
.lq-sslot.lq-blink { animation: lq-blink .3s step-end 4; background: #FF9636; }
@keyframes lq-blink { 50% { background: #fff; } }
.lq-yesno { position: absolute; left: 0; right: 0; bottom: 3%; display: flex; justify-content: center; gap: 12%; z-index: 5; }
.lq-yn { min-width: 120px; min-height: 96px; flex-direction: column; gap: 2px; }
.lq-yn-ico { width: 56px; height: 56px; display: inline-flex; }
.lq-yn-ico svg { width: 100%; height: 100%; }
.lq-go { position: absolute; right: 3%; bottom: 3%; z-index: 6; }
.tika.lq-giggle .tk-owl { animation: lq-shrug .3s ease 3; }
html.lq-port .lq-gymtika { height: 58%; bottom: 20%; }
html.lq-port .lq-seqstrip { bottom: 1%; }
html.lq-compact .lq-sslot { width: 56px; height: 56px; }

/* ================================================================ voz (sentence train) */
.lq-train { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lq-actbox { position: relative; flex: 1 1 auto; min-height: 0; margin: 10px auto 0; width: min(92%, 640px); background: rgba(255,255,255,.72); border: 4px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 8px 12px; overflow: hidden; }
.lq-actbox.lq-act-empty::after { content: "?"; font-size: 3rem; font-weight: 1000; color: var(--ink-3); align-self: center; }
.lq-act.lq-actbox, .lq-act { display: flex; }
.lq-act-it { position: relative; height: 80%; display: flex; align-items: flex-end; justify-content: center; }
.lq-act-it > svg { height: 100%; width: auto; max-width: 100%; }
.lq-act-row { flex-wrap: wrap; align-content: flex-end; gap: 2px; width: 100%; height: 86%; }
.lq-act-thing { display: inline-flex; height: calc(min(46%, 120px) * var(--s, 1)); }
.lq-act-thing svg { height: 100%; width: auto; }
.lq-stack10 { flex-wrap: wrap-reverse; width: 60%; }
.lq-stack10 .lq-act-thing { height: 22%; }
.lq-act-bubble { position: absolute; left: 34%; top: 6%; height: auto; background: var(--lq-mint-soft); border: 3px solid var(--lq-mint); outline: 2px solid var(--ink); border-radius: 16px; padding: .2em .7em; font-weight: 900; font-size: 1.1rem; }
.lq-act-rak { height: 50%; }
.lq-act-thumb { height: 30%; }
.lq-act-holder { height: 80%; }
.lq-act-held { height: 36%; margin-left: -8%; }
.lq-act-holder.lq-giant { height: 90%; }
.lq-act-held.lq-tiny { height: 22%; order: -1; margin: 0 -6% 30% 0; }
.lq-act-ref { height: 64%; }
.lq-act-ref.lq-flip svg { transform: rotate(180deg); }
.lq-act-ref.lq-tiny { height: 30%; }
.lq-act-a { position: absolute; height: 36%; }
.lq-rel-on { bottom: 58%; }
.lq-rel-under { bottom: 4%; z-index: -1; height: 30%; }
.lq-rel-next_to { position: relative; height: 50%; }
.lq-act-room { height: 86%; }
.lq-act-who { position: absolute; height: 50%; bottom: 10%; }
.lq-act-board { height: 70%; }
.lq-act-teacher { height: 96%; }
.lq-act-tika { height: 92%; aspect-ratio: 164 / 208; }
.lq-act-tika .tika { width: 100%; }
.lq-act-food { height: 30%; position: absolute; left: 58%; bottom: 30%; }
.lq-act-food2 { left: 70%; bottom: 14%; }
.lq-act-hearts { position: absolute; top: 4%; right: 30%; height: auto; color: #FF5E8A; font-size: 1.6rem; animation: lq-floaty 1s ease-in-out infinite; }
.lq-act-under-tika { position: absolute; bottom: 0; height: 50%; z-index: -1; }
.lq-act-under-tika.lq-rel-on { z-index: 0; bottom: 0; }
.lq-funny .lq-act-it { animation: lq-shrug .5s ease 2; }
.lq-rails { position: relative; flex: 0 0 auto; margin: 10px 10px 8px; min-height: 100px; display: flex; align-items: flex-end; justify-content: center; padding-right: 118px; }
.lq-rail { position: absolute; left: 0; right: 0; bottom: 6px; height: 10px; background: repeating-linear-gradient(90deg, #9A6033 0 8px, transparent 8px 22px), linear-gradient(#5D6170, #5D6170) 0 4px / 100% 3px no-repeat; }
.lq-wslots { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 14px; }
.lq-wslot { min-width: 84px; height: 70px; border: 3px dashed rgba(36,38,59,.45); border-radius: 14px; background: rgba(255,255,255,.55); display: flex; }
.lq-wslot.tk-drop-ok { border-color: var(--lq-mint); }
.lq-wslot.tk-drop-over { background: var(--lq-mint-soft); }
.lq-wslot.lq-blinkw .lq-wagon { animation: lq-blink2 .25s step-end 4; }
@keyframes lq-blink2 { 50% { background: #FF9636; } }
.lq-engine { position: absolute; right: 0; bottom: 8px; width: 112px; }
.lq-engine svg { width: 100%; height: auto; display: block; }
.lq-engine.lq-chug { animation: lq-chug .25s ease-in-out infinite; }
@keyframes lq-chug { 50% { transform: translateY(-3px); } }
.lq-train.lq-go .lq-wslots, .lq-train.lq-go .lq-engine { transform: translateX(26px); transition: transform 1.2s ease-in; }
.lq-train.lq-wobble3 .lq-wslots { animation: lq-shrug .3s ease 3; }
.lq-endmark { position: absolute; right: 120px; bottom: 26px; font-size: 2rem; font-weight: 1000; color: var(--ink-2); }
.lq-wagon { position: relative; min-width: 84px; min-height: 64px; display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: .2em .8em .5em; flex: 0 0 auto; background: hsl(var(--hue), 80%, 86%); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.lq-wagon-ico { width: 36px; height: 36px; display: inline-flex; }
.lq-wagon-ico svg { width: 100%; height: 100%; }
.lq-wheel { position: absolute; bottom: -9px; left: 14%; width: 16px; height: 16px; border-radius: 50%; background: #2B2B33; border: 2px solid var(--ink); }
.lq-wheel2 { left: auto; right: 14%; }
.lq-wslot .lq-wagon { margin: -3px; }
.lq-wagon.lq-locked { outline: 4px solid var(--lq-mint); pointer-events: none; }
html.lq-compact .lq-wagon { min-height: 56px; font-size: 1rem; }
html.lq-compact .lq-wslot { height: 60px; min-width: 70px; }
html.lq-compact .lq-actbox { margin-top: 40px; }
.lq-train.lq-two-rows .lq-wslots { max-width: calc(100% - 20px); }
html.lq-port .lq-rails { padding-right: 0; padding-bottom: 70px; }
html.lq-port .lq-engine { width: 84px; }
html.lq-port .lq-wslots { justify-content: center; }
html.lq-port .lq-endmark { right: 90px; bottom: 6px; }

/* the days caterpillar */
.lq-cater { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 2%; }
.lq-cat-body { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; max-width: calc(100% - 110px); }
.lq-cat-head { width: clamp(70px, 12vmin, 110px); flex: 0 0 auto; align-self: center; }
.lq-cat-head svg { width: 100%; height: auto; }
.lq-seg, .lq-segslot { width: clamp(72px, 11vmin, 104px); height: clamp(72px, 11vmin, 104px); margin: 0 -6px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 35% 30%, #CDEFA0, #7BC950); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 4px; }
.lq-segslot { background: rgba(255,255,255,.4); border-style: dashed; }
.lq-seg svg { width: 62%; height: 52%; }
.lq-seg b { font-size: .72rem; font-weight: 1000; line-height: 1; }
.lq-seg.asleep { filter: grayscale(1) brightness(1.1); }
.lq-seg.asleep .lq-zz { display: block; }
.lq-seg .lq-zz { right: 2%; top: -10%; }
.lq-seg.lq-lit { transform: translateY(-14px); filter: drop-shadow(0 0 10px #FFE27A); transition: transform .2s; }
.lq-seg.lq-picked { outline: 4px solid var(--lq-mint); }
.lq-seg.lq-opt { box-shadow: 0 0 0 4px rgba(255,226,122,.8); }
.lq-tray .lq-seg { margin: 0; }
.lq-cater.lq-walk .lq-cat-body, .lq-cater.lq-walk .lq-cat-head { animation: lq-catwalk .6s ease-in-out infinite; }
@keyframes lq-catwalk { 50% { transform: translateY(-6px); } }
/* portrait: the caterpillar wraps into two rows of four (head at the end of the second row) and rests on the grass */
html.lq-port .lq-cat-body { display: contents; }
html.lq-port .lq-cater { flex-wrap: wrap; align-content: flex-end; row-gap: 10px; padding: 0 max(2%, calc(50% - 2 * clamp(72px, 11vmin, 104px) + 12px)) 9%; }
html.lq-port .lq-cater.lq-walk .lq-seg { animation: lq-catwalk .6s ease-in-out infinite; }

/* poses: game classes on the kit's Tika SVG (the base drawing is never changed) */
.tk-owl[class*="lq-pose-"] .tk-in { transform-origin: 70px 150px; }
.lq-pose-jump .tk-in { animation: lq-p-jump .95s ease-in-out 2 !important; }
@keyframes lq-p-jump { 0%, 100% { transform: translateY(0) scale(1); } 15% { transform: translateY(2px) scale(1.06, .92); } 50% { transform: translateY(-28px) scale(.96, 1.05); } 85% { transform: translateY(2px) scale(1.08, .9); } }
.lq-pose-clap .tk-wl { animation: lq-p-clapL .45s ease-in-out 4 !important; }
.lq-pose-clap .tk-wr { animation: lq-p-clapR .45s ease-in-out 4 !important; }
@keyframes lq-p-clapL { 50% { transform: rotate(-30deg); } }
@keyframes lq-p-clapR { 50% { transform: rotate(30deg); } }
.lq-pose-run .tk-in { animation: lq-p-run .25s ease-in-out 7 !important; }
@keyframes lq-p-run { 50% { transform: translateY(-6px) rotate(3deg); } }
.lq-pose-run .lq-prop-dust { display: inline; animation: lq-p-dust .5s linear infinite; }
@keyframes lq-p-dust { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-16px); } }
.lq-pose-swim .tk-in { transform: rotate(-10deg); }
.lq-pose-swim .tk-wl, .lq-pose-swim .tk-wr { animation: lq-p-swim .6s ease-in-out 3 !important; }
@keyframes lq-p-swim { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(20deg); } }
.lq-pose-swim .lq-prop-waves { display: inline; }
.lq-pose-fly .tk-wl { animation: tk-flapL .15s ease infinite !important; }
.lq-pose-fly .tk-wr { animation: tk-flapR .15s ease infinite !important; }
.lq-pose-fly .tk-in { animation: lq-p-fly 1.9s ease-in-out !important; }
@keyframes lq-p-fly { 40%, 60% { transform: translateY(-40px); } }
.lq-pose-sleep .tk-eyes-open { display: none !important; }
.lq-pose-sleep .lq-eyes-closed, .lq-eyes-shut .lq-eyes-closed { display: inline; }
.lq-pose-sleep .lq-prop-zz { display: inline; animation: lq-floaty 1.6s ease-in-out infinite; }
.lq-pose-sleep .tk-in { animation: lq-p-breathe 1.9s ease-in-out !important; }
@keyframes lq-p-breathe { 50% { transform: scale(1.03, .98); } }
.lq-pose-dance .tk-in { animation: lq-p-dance .5s ease-in-out 4 !important; }
@keyframes lq-p-dance { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.lq-pose-dance .lq-prop-notes, .lq-pose-sing .lq-prop-notes { display: inline; }
.lq-prop-notes .lq-note { animation: lq-floaty 1s ease-in-out infinite; }
.lq-pose-sing .tk-beak { transform-origin: 70px 76px; animation: tk-talk .2s ease-in-out infinite !important; }
.lq-pose-walk .tk-in { animation: lq-p-walk 1.9s ease-in-out !important; }
@keyframes lq-p-walk { 25% { transform: translate(-20px, -4px); } 50% { transform: translate(0, 0); } 75% { transform: translate(20px, -4px); } }
.lq-pose-sit_down .tk-in { transform: scaleY(.82); transition: transform .4s; }
.lq-pose-sit_down .lq-prop-chair { display: inline; }
.lq-pose-stand_up .tk-in { animation: lq-p-stand 1s ease-out !important; }
@keyframes lq-p-stand { from { transform: scaleY(.82); } }
.lq-pose-stand_up .lq-prop-chair { display: inline; }
.lq-pose-turn_around .tk-in { animation: lq-p-turn 1s ease-in-out !important; transform-origin: 70px 90px; }
@keyframes lq-p-turn { 50% { transform: scaleX(-1); } }
.lq-pose-wave .tk-wr { animation: lq-p-wave .5s ease-in-out 3 !important; }
@keyframes lq-p-wave { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-50deg); } }
.lq-pose-read .lq-prop-book { display: inline; }
.lq-pose-read .tk-pupils { animation: lq-p-read 1s ease-in-out 2 !important; }
@keyframes lq-p-read { 50% { transform: translateX(-4px); } }
.lq-pose-write .lq-prop-pencil { display: inline; }
.lq-pose-write .lq-scribble { stroke-dasharray: 60; stroke-dashoffset: 60; animation: lq-draw 1.6s ease forwards; }
.lq-pose-climb .lq-prop-ladder { display: inline; }
.lq-pose-climb .tk-wl { animation: lq-p-climbL .5s ease-in-out 3 !important; }
.lq-pose-climb .tk-wr { animation: lq-p-climbR .5s ease-in-out 3 !important; }
@keyframes lq-p-climbL { 50% { transform: rotate(70deg); } }
@keyframes lq-p-climbR { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(0); } }
html.lq-compact .lq-dress-week .lq-wwin { left: auto; right: 13%; translate: none; top: 8%; width: 92px; }
