/* World Explorer – "paper-craft travel atlas" (DESIGN §10, §12). On top of the kit's ui.css + tika.css. */
:root {
  --paper: #FFF6E5; --kraft: #E6C49A; --kraft-2: #D9B27F; --kraft-3: #C69A62;
  --sky: #A9DEF9; --dawn: #FFD6A5; --dusk: #F4A47C; --night: #22223B; --starlight: #FFF4C2;
  --sea: #3E9CC4; --deep: #1D5F8A; --river: #5CC8F0; --dry: #E9D8B4; --dry-edge: #C9A86A;
  --lowland: #8FCB6B; --forest: #3F8F5A; --hills: #F2D27A; --mountain: #B07E52; --snow: #FFFFFF; --ice: #DDF4FF;
  --sand: #EBC97F; --savanna: #E9B949; --jungle: #2E8B57; --fog: #E9DFC8; --fog-sea: #CFE3EA;
  --kosava: #DCEEFF; --kosava-swirl: #9CC3E6;
  --ch1: #F2C14E; --ch2: #B9A3E3; --ch3: #D9734E; --ch4: #3D3B8E;
  --top-h: 56px; --dock-w: clamp(250px, 28vw, 360px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-layout="short"] { --top-h: 48px; }

body.we-body { background: var(--kraft); background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .35), transparent 55%), radial-gradient(circle at 85% 90%, rgba(160, 110, 60, .18), transparent 50%); }
body.we-body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 8000; opacity: .05; background-image: var(--grain); }

/* ---------------------------------------------------------------- top bar */
.we-top { min-height: var(--top-h); height: var(--top-h); padding: 0 clamp(.5rem, 1.6vw, 1rem); gap: .5rem; background: linear-gradient(#F3DDB8, #EBCB9C); border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(36, 38, 59, .18); }
.we-top-left, .we-top-right { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.we-top-mid { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 0 1 auto; }
.we-title { font-size: clamp(1rem, 2.2vw, 1.35rem); }
.we-brand { font-weight: 1000; letter-spacing: .01em; color: var(--ink); }
.we-top-btn { width: 46px; height: 46px; }
html[data-layout="short"] .we-top-btn { width: 44px; height: 44px; }
html[data-layout="short"] .we-top-stars .tk-stars svg { width: 1.2em; height: 1.2em; }
.we-top-stars .tk-stars svg { width: 1.45em; height: 1.45em; }
@media (max-width: 440px) { .we-top-stars { display: none; } .we-title { font-size: 1rem; } }

/* ---------------------------------------------------------------- main + boot */
.we-main { position: relative; overflow: hidden; }
.we-boot { margin: auto; text-align: center; font-weight: 900; }
.we-tika-park { position: fixed; left: -9999px; top: 0; width: 120px; visibility: hidden; }
.we-screen { position: absolute; inset: 0; display: flex; }

/* ---------------------------------------------------------------- bubble */
.we-bubble { font-size: clamp(.95rem, 1.6vw, 1.12rem); line-height: 1.32; padding: .55rem .9rem; max-width: 100%; border-radius: 20px; box-shadow: 0 4px 0 var(--ink); background: #FFFDF6; }
.we-bubble.we-caption { border-radius: 14px; box-shadow: 0 3px 0 var(--ink); font-size: max(15px, .85rem); padding: .3rem .7rem; background: rgba(255, 253, 246, .94); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.we-bubble.tk-tail-none::after { display: none; }

/* ---------------------------------------------------------------- task frame (§12) */
.we-task { position: absolute; inset: 0; display: grid; gap: 8px; padding: 8px; }
.we-board { position: relative; min-width: 0; min-height: 0; grid-area: board; }
.we-dock { position: relative; grid-area: dock; display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 8px; }
.we-dock-head { display: flex; align-items: flex-start; gap: 8px; flex: 0 0 auto; min-width: 0; }
.we-dock-body { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.we-sayrow { grid-area: say; display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.we-tslot { flex: 0 0 auto; }
.we-bslot { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.we-bslot:empty { display: none; }

/* wide / square: board | dock, speech row under the board */
html[data-layout="wide"] .we-task, html[data-layout="square"] .we-task { grid-template-columns: minmax(0, 1fr) var(--dock-w); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "board dock" "say dock"; }
html[data-layout="wide"] .we-sayrow .we-tslot, html[data-layout="square"] .we-sayrow .we-tslot { width: clamp(84px, 9vw, 108px); margin-top: -34px; }
html[data-layout="wide"] .we-sayrow, html[data-layout="square"] .we-sayrow { min-height: 92px; padding-right: 4px; }
html[data-layout="wide"] .we-sayrow .we-bslot, html[data-layout="square"] .we-sayrow .we-bslot { padding-bottom: 14px; max-width: min(46rem, 100%); }
html[data-layout="wide"] .we-dock-head, html[data-layout="square"] .we-dock-head { display: none; }
/* short: caption strip on top of the board, Tika at the top of the dock */
html[data-layout="short"] .we-task { grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "say dock" "board dock"; gap: 6px; padding: 6px; }
html[data-layout="short"] .we-sayrow { min-height: 0; }
html[data-layout="short"] .we-sayrow .we-tslot { display: none; }
html[data-layout="short"] .we-dock-head .we-tslot { width: 64px; }
html[data-layout="short"] .we-dock-head .we-bslot { display: none; }
html[data-layout="short"] .we-dock-head { position: absolute; right: 2px; top: -4px; z-index: 3; pointer-events: none; }
html[data-layout="short"] .we-dock-head .tika { pointer-events: auto; }
/* tall: board on top, dock below with Tika + bubble at its head */
html[data-layout="tall"] .we-task { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) clamp(190px, 36vh, 360px); grid-template-areas: "board" "dock"; }
html[data-layout="tall"] .we-sayrow { display: none; }
html[data-layout="tall"] .we-dock-head .we-tslot { width: clamp(70px, 11vw, 92px); margin-top: -18px; }
html[data-layout="tall"] .we-dock-head { min-height: 64px; }
/* phones in portrait: the boards are about square, so the dock gets the extra height */
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .we-task { grid-template-rows: minmax(0, 1fr) clamp(190px, 47vh, 430px); } }

/* the dock card look */
.we-dock-body.we-card, .we-panel { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 10px; }

/* ---------------------------------------------------------------- Tika extras */
.tika.we-loop > .tk-owl { animation: we-loop .9s cubic-bezier(.4, 0, .3, 1); transform-origin: 50% 60%; }
@keyframes we-loop { to { transform: rotate(360deg); } }
.tika.we-shiver > .tk-owl { animation: we-shiver .16s linear infinite; }
@keyframes we-shiver { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, .5px); } 75% { transform: translate(1.5px, -.5px); } }
.tika.we-cold .tk-cheek { fill: #7FB6F0; opacity: .8; }
.tika.we-hot .tk-x-sweat { display: inline; }

/* ---------------------------------------------------------------- buttons & bits */
.we-hold { overflow: hidden; }
.we-hold .we-hold-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 197, 61, .55); pointer-events: none; }
.we-hold > span, .we-hold > svg { position: relative; z-index: 1; }
.we-glow { animation: we-glow 1.1s ease-in-out infinite; }
@keyframes we-glow { 50% { filter: drop-shadow(0 0 10px rgba(255, 197, 61, .95)) drop-shadow(0 0 3px #FFC53D); } }
.we-dim { opacity: .4; transition: opacity .3s; }
.we-hidden-h2 { visibility: hidden; }
.we-big-go { font-size: 1.4rem; min-height: 64px; }

/* ghost wing (H3) */
.we-ghost-layer { position: fixed; inset: 0; pointer-events: none; z-index: 8500; transition: opacity .35s; }
.we-ghost-layer.out { opacity: 0; }
.we-ghost { position: absolute; left: 0; top: 0; opacity: .55; will-change: transform; display: flex; align-items: center; }
.we-ghost svg { filter: drop-shadow(0 3px 0 rgba(36, 38, 59, .25)); }
.we-ghost-carry { position: absolute; left: 30px; top: 28px; opacity: .9; pointer-events: none; }
.we-ghost-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 197, 61, .7); transition: opacity .7s, transform .7s; }
.we-ghost-dot.out { opacity: 0; transform: scale(.3); }

/* ---------------------------------------------------------------- reduced motion */
html[data-motion="reduce"] .we-glow, html[data-motion="reduce"] .tika.we-shiver > .tk-owl { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .we-glow, html:not([data-motion="full"]) .tika.we-shiver > .tk-owl { animation: none !important; } }
/* calm mode: decorative loops stop, hint pulses become a steady glow, the target region a steady tint */
html[data-motion="reduce"] :is(.kb .kb-in, .kb .kb-basket, .kb.burning .kb-flame, .kos .kos-in, .we-spin-wheel, .we-par, .we-birds, .we-title-balloon, .we-flame, .bj-wave.on, .bj-model .bj-boat, .bj-waves, .bj-wheat.ripple .bj-stalk, .we-stampscr.ready .we-st-stamp, .at-pin.new, .at-pin-card, .at-chest.new, .sc-q, .sc-drift, .sc-flow, .sc-waves, .sc-twinkle, .sc-aurora, .sc-jump, .sc-soar, .ks-cur, .ks-storm, .we-fl-layer, .we-fl-birds, .rk-dash, .rk-drop, .rk-swirl, .pr-kb, .gd-owls svg, .kf-snow circle, .kf-rays, .kf-heat, .kf-wiggle, .sl-piece, .fn-spin) { animation: none !important; }
html[data-motion="reduce"] :is(.lp-slot.now, .we-stampscr.ready .we-st-slot, .sc-shimmer .sc-art, .ks-petal.ks-glow .ks-pf, .rk-pad.hint, .gd-glow, .gd-glow-soft, .sl-show, .sl-cap.sl-hint circle, .su-sockz.hint, .gl-pin.pulse, .gl-pin.lit, .ka-sym.ka-pulse, .ka-leg.ka-pulse, .ka-cellglow) { animation: none !important; filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)) drop-shadow(0 0 3px #FFC53D); }
html[data-motion="reduce"] .we-glow { filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)) drop-shadow(0 0 3px #FFC53D); }
html[data-motion="reduce"] .bj-reg.bj-target { animation: none !important; opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) :is(.kb .kb-in, .kb .kb-basket, .kb.burning .kb-flame, .kos .kos-in, .we-spin-wheel, .we-par, .we-birds, .we-title-balloon, .we-flame, .bj-wave.on, .bj-model .bj-boat, .bj-waves, .bj-wheat.ripple .bj-stalk, .we-stampscr.ready .we-st-stamp, .at-pin.new, .at-pin-card, .at-chest.new, .sc-q, .sc-drift, .sc-flow, .sc-waves, .sc-twinkle, .sc-aurora, .sc-jump, .sc-soar, .ks-cur, .ks-storm, .we-fl-layer, .we-fl-birds, .rk-dash, .rk-drop, .rk-swirl, .pr-kb, .gd-owls svg, .kf-snow circle, .kf-rays, .kf-heat, .kf-wiggle, .sl-piece, .fn-spin) { animation: none !important; }
  html:not([data-motion="full"]) :is(.lp-slot.now, .we-stampscr.ready .we-st-slot, .sc-shimmer .sc-art, .ks-petal.ks-glow .ks-pf, .rk-pad.hint, .gd-glow, .gd-glow-soft, .sl-show, .sl-cap.sl-hint circle, .su-sockz.hint, .gl-pin.pulse, .gl-pin.lit, .ka-sym.ka-pulse, .ka-leg.ka-pulse, .ka-cellglow) { animation: none !important; filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)) drop-shadow(0 0 3px #FFC53D); }
  html:not([data-motion="full"]) .we-glow { filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)) drop-shadow(0 0 3px #FFC53D); }
  html:not([data-motion="full"]) .bj-reg.bj-target { animation: none !important; opacity: .6; }
}

/* ================================================================ art helpers */
.we-mono * { fill: var(--ink, #24263B) !important; stroke: #FFF6E5 !important; }
.we-stamp .we-mono * { fill: var(--ink) !important; stroke: #FFF6E5 !important; stroke-width: 2.4px !important; }
.we-stk-edge * { fill: #fff !important; stroke: #fff !important; stroke-width: 13px !important; }
.we-animal { overflow: visible; display: block; }
.we-animal .we-stk-edge { filter: drop-shadow(0 4px 0 rgba(36, 38, 59, .22)); }
.kb { overflow: visible; display: block; }
.kb .kb-in { animation: kb-bob 3s ease-in-out infinite; }
.kb .kb-basket { transform-origin: 0 118px; animation: kb-sway 3.6s ease-in-out infinite; transform-box: view-box; }
.kb .kb-flame { transition: opacity .3s; }
.kb.burning .kb-flame { opacity: 1 !important; animation: kb-flick .18s ease-in-out infinite alternate; transform-origin: 0 120px; transform-box: view-box; }
@keyframes kb-bob { 50% { transform: translateY(-3px); } }
@keyframes kb-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes kb-flick { to { transform: scaleY(1.18); } }
.kos { overflow: visible; display: block; }
.kos .kos-in { animation: kos-float 2.8s ease-in-out infinite; }
.kos.kos-puffing .kos-puff { animation: kos-puff .36s ease-out; }
.kos.kos-puffing .kos-cheek { animation: kos-cheek .36s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes kos-float { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes kos-puff { 0% { opacity: 0; transform: translateX(-10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(30px); } }
@keyframes kos-cheek { 50% { transform: scale(1.4); } }
.we-spin-wheel { animation: we-spin 24s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes we-spin { to { transform: rotate(360deg); } }

/* ================================================================ title (S0) */
.we-title-screen { overflow: hidden; }
.we-titlesky { position: absolute; inset: 0; width: 100%; height: 100%; }
.we-par { animation: we-drift 40s linear infinite alternate; }
.we-par2 { animation-duration: 28s; }
.we-par3 { animation-duration: 20s; animation-direction: alternate-reverse; }
@keyframes we-drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.we-birds { animation: we-birds 12s ease-in-out infinite alternate; }
@keyframes we-birds { to { transform: translate(-60px, -20px); } }
.we-title-stage { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 2vw; padding: 2vh 4vw; }
.we-title-balloon { position: relative; justify-self: center; width: min(46vh, 36vw, 400px); aspect-ratio: 224 / 290; animation: we-float 6s ease-in-out infinite; }
.we-title-balloon > .kb { position: absolute; inset: 0; width: 100%; height: 100%; }
.we-title-balloon > .kb-front { pointer-events: none; }
.we-title-tika { position: absolute; left: 35%; width: 30%; top: 57.5%; }
.we-title-tika .tika { width: 100%; }
.we-title-tika .we-bubble { position: absolute; left: 110%; top: -30%; width: max-content; max-width: 16rem; }
@keyframes we-float { 50% { transform: translateY(-12px); } }
.we-title-side { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; min-width: 0; }
.we-logo { text-align: center; }
.we-logo-name { font-weight: 1000; font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: .95; color: #fff; letter-spacing: .01em;
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 8px 0 var(--ink); }
.we-logo-name span:first-child { color: #FFD166; }
.we-logo-name span:last-child { color: #FF6F61; }
.we-logo-tag { margin: .7rem auto 0; max-width: 30rem; font-weight: 900; font-size: clamp(.95rem, 1.6vw, 1.15rem); background: rgba(255, 246, 229, .92); border: 3px solid var(--ink); border-radius: 16px; padding: .4rem .9rem; box-shadow: 0 4px 0 var(--ink); }
.we-pass-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.we-pass-card { position: relative; width: 108px; min-height: 120px; padding: 8px 6px 6px; background: #2F4A8A; color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: transform .12s; }
.we-pass-card.on { transform: translateY(-6px) rotate(-2deg); background: #3D5DA8; outline: 4px solid var(--sun); outline-offset: 2px; }
.we-pass-card .we-pc-av svg { display: block; }
.we-pc-age, .we-pc-stars { display: inline-flex; align-items: center; gap: 3px; font-weight: 1000; font-size: .95rem; }
.we-pc-name { font-size: .8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.we-pass-new { background: var(--paper); color: var(--ink); border-style: dashed; justify-content: center; }
.we-pc-plus { font-size: 2.6rem; line-height: 1; font-weight: 1000; }
.we-pc-label { font-size: .9rem; font-weight: 1000; }
.we-play { font-size: 1.6rem; min-height: 72px; padding: .4em 1.8em; }
html[data-layout="tall"] .we-title-stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 1vh; }
html[data-layout="tall"] .we-title-balloon { width: min(30vh, 52vw, 300px); grid-row: 2; }
html[data-layout="tall"] .we-title-side { grid-row: 1; }
html[data-layout="tall"] .we-title-tika .we-bubble { left: auto; right: 110%; }
html[data-layout="short"] .we-title-stage { padding: 1vh 3vw; }
html[data-layout="short"] .we-title-balloon { width: min(62vh, 30vw); }
html[data-layout="short"] .we-logo-name { font-size: 2.1rem; }
html[data-layout="short"] .we-logo-tag { font-size: .85rem; padding: .25rem .6rem; }
html[data-layout="short"] .we-pass-card { width: 84px; min-height: 92px; }
html[data-layout="short"] .we-pass-card .we-pc-av svg { width: 46px; height: 46px; }
html[data-layout="short"] .we-play { min-height: 56px; font-size: 1.3rem; }
html[data-layout="short"] .we-title-side { gap: .6rem; }

/* ================================================================ passport setup (S1) */
.we-prof-board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); padding: 12px; overflow: hidden; }
.we-av-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); }
.we-av-btn { background: none; border: 0; padding: 0; border-radius: 50%; transition: transform .15s; }
.we-av-btn svg { width: clamp(72px, 12vmin, 112px); height: auto; display: block; }
.we-av-btn:hover, .we-av-btn:focus-visible { transform: scale(1.07) rotate(-3deg); }
.we-cake-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px); width: 100%; max-width: 760px; }
.we-cake { background: #FFFDF6; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 6px 4px 4px; display: flex; flex-direction: column; align-items: center; min-height: 64px; }
.we-cake span svg { width: clamp(56px, 11vmin, 110px); display: block; }
.we-cake b { font-size: clamp(1.6rem, 4vmin, 2.6rem); line-height: 1; font-weight: 1000; }
.we-cake.on { background: var(--sun); transform: translateY(-6px); }
.we-flame { animation: we-flame .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes we-flame { to { transform: scaleY(1.2) rotate(4deg); } }
.we-name-row { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: .95rem; flex-wrap: wrap; justify-content: center; }
.we-name { width: 12em; min-height: 48px; padding: .3rem .7rem; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 900; font-size: 1.1rem; }
.we-prof-dock { align-items: center; justify-content: center; }
.we-cover-wrap { width: 100%; display: flex; justify-content: center; }
.we-cover { position: relative; width: min(230px, 100%); aspect-ratio: 3 / 4.1; background: #2F4A8A; border: 4px solid var(--ink); border-radius: 12px 18px 18px 12px; box-shadow: 0 6px 0 var(--ink), inset 10px 0 0 rgba(0, 0, 0, .15); color: #FFD166; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 8px 12px; text-align: center; }
.we-cover-title { font-weight: 1000; letter-spacing: .25em; font-size: 1.15rem; }
.we-cover-sub { font-weight: 900; font-size: .8rem; margin-top: -6px; color: #FFE7A3; }
.we-cover-av svg { width: clamp(56px, 11vmin, 92px); height: auto; }
.we-cover-hole { display: block; width: 76px; height: 76px; border-radius: 50%; border: 3px dashed #FFD166; }
.we-cover-age { font-size: 1.6rem; font-weight: 1000; color: #fff; }
.we-cover-name { color: #fff; font-weight: 900; min-height: 1.2em; }
.we-cover-flag svg { width: 70px; display: block; }
.we-cover-globe { position: absolute; right: 8px; top: 8px; width: 26px; }
html[data-layout="short"] .we-cover { width: 150px; padding: 6px; }
html[data-layout="short"] .we-cover-title { font-size: .9rem; }
html[data-layout="tall"] .we-prof-dock { flex-direction: row; }
html[data-layout="tall"] .we-cover { width: auto; height: 100%; max-height: 220px; }
html[data-layout] .ps-coverpg .we-cover { width: 100%; height: 100%; max-height: none; }

/* ================================================================ BOJANKA */
.bj-board { display: flex; align-items: center; justify-content: center; background: linear-gradient(#BCE4FF, #E6F5FF 70%); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.bj-svg { width: 100%; height: 100%; display: block; touch-action: none; }
.bj-svg.bj-has-brush .bj-reg { cursor: pointer; }
.bj-reg { transition: fill .15s; outline: none; }
.bj-reg:focus-visible { stroke: var(--sky); stroke-width: 6px; }
.bj-reg.bj-target { animation: bj-target 1s ease-in-out infinite; }
@keyframes bj-target { 50% { opacity: .55; } }
.bj-drip { animation: bj-drip .5s ease-in forwards; }
@keyframes bj-drip { to { transform: translateY(40px); opacity: 0; } }
.bj-flag { transition: transform 1.4s cubic-bezier(.3, .9, .4, 1); }
.bj-wave.on { animation: bj-wave 1.6s ease-in-out infinite; transform-origin: 0 50%; transform-box: fill-box; }
@keyframes bj-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 25% { transform: skewY(2.5deg) scaleX(.98); } 75% { transform: skewY(-2.5deg) scaleX(.99); } }
.bj-model { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; transform-box: fill-box; }
.bj-model.bj-hide { opacity: 0; pointer-events: none; }
.bj-model .bj-boat { animation: bj-boat 3s ease-in-out infinite; transform-box: fill-box; }
@keyframes bj-boat { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.bj-model.bj-big { transform: translate(-200px, -170px) scale(2.1); }
.bj-svg .bj-relief + path + path ~ .bj-model.bj-big { transform: translate(-260px, -420px) scale(2.2); }
.bj-waves { animation: bj-waves 2s linear infinite; }
@keyframes bj-waves { to { transform: translateX(-60px); } }
.bj-mtns.grow { animation: bj-grow .9s cubic-bezier(.3, 1.5, .5, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bj-grow { from { transform: scaleY(0); } }
.bj-wheat.ripple .bj-stalk { animation: bj-ripple 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bj-ripple { 50% { transform: rotate(10deg); } }
.bj-dock { align-items: stretch; }
.bj-pots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bj-pot { background: #FFFDF6; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 4px; min-height: 64px; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.bj-pot svg { width: 100%; max-width: 72px; height: auto; display: block; }
.bj-pot.on { transform: translateY(-8px) rotate(-4deg); background: var(--sun); box-shadow: 0 9px 0 var(--ink); }
.bj-pots.bj-hide { display: none; }
.bj-extra { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: 1; min-height: 0; justify-content: center; }
.bj-raise { align-self: center; }
html[data-layout="short"] .bj-pots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
html[data-layout="short"] .bj-pot { min-height: 56px; border-radius: 14px; }
html[data-layout="short"] .bj-pot svg { max-width: 48px; }
html[data-layout="tall"] .bj-pots { grid-template-columns: repeat(auto-fit, minmax(64px, 84px)); justify-content: center; align-content: center; flex: 1 1 auto; }
html[data-layout="tall"] .bj-pot { min-height: 76px; }
@media (min-aspect-ratio: 3/5) { html[data-layout="tall"] .bj-pots[data-n="7"], html[data-layout="tall"] .bj-pots[data-n="6"] { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.bj-sort { position: absolute; inset: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bj-box { background: #F3DDB8; border: 3px solid var(--ink); border-radius: 20px; box-shadow: inset 0 -12px 0 rgba(36, 38, 59, .12); display: flex; flex-direction: column; align-items: center; padding: 10px; }
.bj-box-lab { display: flex; flex-direction: column; align-items: center; font-weight: 1000; font-size: 1.05rem; }
.bj-box-in { flex: 1; width: 100%; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 6px; padding-top: 8px; }
.bj-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bj-sticker { width: 88px; padding: 4px; background: #fff; border-radius: 10px; box-shadow: 0 3px 0 rgba(36, 38, 59, .3); }
.bj-sticker svg { display: block; width: 100%; }
.bj-legend { background: #FFFDF6; border: 3px solid var(--ink); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bj-lrow { display: flex; align-items: center; gap: 8px; font-weight: 1000; min-height: 56px; cursor: pointer; }
.bj-lslot { width: 56px; height: 56px; border: 3px dashed var(--ink-3); border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.bj-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bj-chip { width: 56px; height: 56px; }
.bj-chip svg { width: 100%; height: 100%; display: block; }
.bj-legend-done { padding: 4px 8px; }
.bj-legend-done .bj-lrow { min-height: 40px; }
.bj-legend-done .bj-lslot { width: 40px; height: 40px; }
.we-flag { display: block; }

/* ================================================================ stamp ceremony (S8) */
.we-stampscr { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "book tool" "tika tool"; gap: 10px; padding: 12px; background: rgba(230, 196, 154, .97); }
.we-st-book { grid-area: book; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-self: center; justify-self: center; width: min(100%, 640px); aspect-ratio: 1.45; perspective: 1200px; transition: transform .6s; }
.we-st-page { background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.we-st-left { border-radius: 16px 4px 4px 16px; background-image: repeating-linear-gradient(transparent 0 26px, rgba(36, 38, 59, .07) 26px 28px); }
.we-st-right { border-radius: 4px 16px 16px 4px; transform-origin: 0 50%; transition: transform .6s; }
.we-st-hd { position: absolute; top: 8px; font-weight: 1000; letter-spacing: .3em; font-size: .9rem; color: var(--ink-2); }
.we-st-place { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1.1rem; text-align: center; padding: 0 8px; }
.we-st-place svg { width: min(120px, 60%); height: auto; }
.we-st-slot { position: relative; width: 78%; aspect-ratio: 1; border: 3px dashed rgba(36, 38, 59, .25); border-radius: 50%; }
.we-stampscr.ready .we-st-slot { border-color: var(--sun); animation: we-glow 1.1s ease-in-out infinite; cursor: pointer; }
.we-st-mark { position: absolute; inset: -4%; animation: we-st-mark .35s cubic-bezier(.3, 1.6, .5, 1); }
.we-st-mark svg, .we-st-splat { width: 100%; height: 100%; display: block; }
.we-st-splat { position: absolute; inset: -10%; width: 120%; height: 120%; pointer-events: none; opacity: .85; }
@keyframes we-st-mark { from { transform: scale(1.25); opacity: 0; } }
.we-stampscr.closed .we-st-right { transform: scaleX(.02); opacity: .4; }
.we-stampscr.closed .we-st-book { transform: scale(.82) translateY(10px); }
.we-st-tool { grid-area: tool; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; position: relative; }
.we-st-pad { width: min(200px, 80%); order: 2; }
.we-st-pad svg { width: 100%; display: block; }
.we-st-stamp { position: relative; width: min(190px, 70%); aspect-ratio: 160 / 200; background: none; border: 0; padding: 0; transform: translateX(140%); transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); touch-action: none; }
.we-stampscr.in .we-st-stamp { transform: translateX(0); }
.we-st-stamp > svg:first-child { width: 100%; height: 100%; display: block; }
.we-st-base { position: absolute; left: 20%; right: 20%; bottom: 3%; height: 22%; display: flex; justify-content: center; opacity: .9; }
.we-st-base svg { height: 100%; width: auto; --ink: #FFF6E5; }
.we-st-ring { position: absolute; left: 50%; top: 18%; width: 64px; height: 64px; margin-left: -32px; pointer-events: none; }
.we-stampscr.inked .we-st-stamp { animation: we-st-dip .42s ease-in-out; }
@keyframes we-st-dip { 50% { transform: translateY(46px) scaleY(.92); } }
.we-stampscr.ready .we-st-stamp { animation: we-st-hover 1s ease-in-out infinite; }
@keyframes we-st-hover { 50% { transform: translateY(-8px) rotate(-4deg); } }
.we-stampscr.press .we-st-stamp { animation: we-st-press .26s ease-in; }
@keyframes we-st-press { 60% { transform: translate(-60%, 10px) scale(1.05, .86); } 100% { transform: translate(-60%, 0); } }
.we-st-kb { position: absolute; right: 14px; top: 10px; width: clamp(70px, 10vw, 120px); pointer-events: none; }
.we-st-kb svg { width: 100%; height: auto; }
.we-st-tika { grid-area: tika; display: flex; align-items: flex-end; gap: 10px; width: 100%; }
.we-st-tika .tika { width: clamp(80px, 10vw, 110px); flex: 0 0 auto; }
.we-st-tika .we-bubble { flex: 1 1 auto; max-width: 36rem; margin-bottom: 18px; }
.we-cover-cer .we-st-slot { width: 86%; }
.we-st-cover-art svg { height: 100%; width: auto; }
html[data-layout="tall"] .we-stampscr { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, .8fr) auto; grid-template-areas: "book" "tool" "tika"; }
html[data-layout="tall"] .we-st-tool { flex-direction: row; gap: 16px; }
html[data-layout="tall"] .we-st-stamp { width: min(150px, 40%); }
html[data-layout="tall"] .we-st-pad { order: 0; width: min(150px, 36%); }
html[data-layout="short"] .we-stampscr { padding: 6px; gap: 4px; }
html[data-layout="short"] .we-st-book { width: min(100%, 470px, calc((100vh - 150px) * 1.45)); }
html[data-layout="short"] .we-st-stamp { width: min(120px, 60%); }
html[data-layout="short"] .we-st-pad { width: min(120px, 60%); }
html[data-layout="short"] .we-st-tika .tika { width: 62px; }
html[data-layout="short"] .we-st-tika .we-bubble { margin-bottom: 6px; font-size: .9rem; }
.we-badge-big { display: flex; justify-content: center; }
.we-badge-big svg { width: 120px; }
.we-badge-svg { display: block; overflow: visible; }

/* ================================================================ atlas (S3) */
.we-atlas { position: absolute; inset: 0; display: grid; gap: 8px; padding: 8px; }
html[data-layout="wide"] .we-atlas, html[data-layout="square"] .we-atlas { grid-template-columns: minmax(0, 1fr) clamp(170px, 20vw, 240px); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "map rail" "say rail"; }
html[data-layout="tall"] .we-atlas { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "say" "map" "rail"; }
html[data-layout="short"] .we-atlas { grid-template-columns: 74px minmax(0, 1fr) 190px; grid-template-rows: minmax(0, 1fr); grid-template-areas: "rail map say"; gap: 6px; padding: 6px; }
.at-mapwrap { grid-area: map; position: relative; min-width: 0; min-height: 0; display: flex; }
.at-page { position: relative; flex: 1; background: #E6C49A; border: 3px solid var(--ink); border-radius: 10px 18px 14px 22px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 8px #F1D7AF; overflow: hidden; }
.at-page::before { content: ""; position: absolute; left: 28px; top: -6px; width: 70px; height: 22px; background: rgba(247, 200, 214, .85); transform: rotate(-6deg); z-index: 3; }
.at-page::after { content: ""; position: absolute; right: 30px; bottom: -6px; width: 80px; height: 22px; background: rgba(183, 211, 234, .85); transform: rotate(4deg); z-index: 3; }
.at-page.gold { box-shadow: 0 6px 0 var(--ink), inset 0 0 0 8px #FFC53D; }
.at-map { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.at-pins { position: absolute; inset: 0; pointer-events: none; }
.at-pins > * { pointer-events: auto; }
.at-pin { position: absolute; transform: translate(-50%, -50%); width: 66px; height: 66px; padding: 0; border: 0; background: none; z-index: 2; }
.at-pin-badge { position: absolute; inset: 0; border-radius: 50%; background: #FFF6E5; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.at-pin-badge svg { width: 88%; height: 88%; }
.at-pin.new .at-pin-badge { background: #FFD166; }
.at-pin.new { animation: at-bob 1.8s ease-in-out infinite; }
@keyframes at-bob { 50% { transform: translate(-50%, calc(-50% - 7px)); } }
.at-pin-card { position: absolute; right: -14px; top: -14px; width: 30px; animation: at-card 1.4s ease-in-out infinite; }
@keyframes at-card { 50% { transform: rotate(14deg) translateY(-3px); } }
.at-pin-stars { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); display: flex; gap: 0; background: #FFF6E5; border: 2px solid var(--ink); border-radius: 10px; padding: 0 2px; }
.at-pin-stars svg { width: 16px; height: 16px; display: block; }
.at-pin.locked { width: 46px; height: 46px; }
.at-pin-dot { position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: #C9BFA8; border: 3px dashed #8E8470; }
.at-chest { width: 76px; height: 68px; }
.at-chest svg { width: 100%; height: 100%; display: block; }
.at-chest.new { animation: at-bob 1.4s ease-in-out infinite; }
.at-kb { position: absolute; width: 58px; height: 76px; transform: translate(-30%, -98%); padding: 0; border: 0; background: none; z-index: 3; }
.at-kb svg { width: 100%; height: 100%; }
.at-grand { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; }
.at-rail { grid-area: rail; display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.at-spines { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; }
.at-spine { position: relative; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 8px 16px 16px 8px; background: var(--tint); box-shadow: 0 4px 0 var(--ink), inset 8px 0 0 rgba(36, 38, 59, .18); font-weight: 1000; text-align: left; color: var(--ink); transition: transform .15s; }
.at-spine.on { transform: translateX(-8px); outline: 4px solid #fff; }
.at-spine.locked { background: #CFC6B0; color: var(--ink-2); }
.at-sp-n { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: 0 0 auto; }
.at-sp-name { flex: 1; min-width: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-sp-count { font-size: .85rem; background: #fff; border-radius: 8px; padding: 0 5px; border: 2px solid var(--ink); }
.at-sp-lock svg { width: 22px; height: 22px; }
.we-at-svet .at-spine.on, .at-spine[style*="3D3B8E"] { color: #fff; }
.at-spine[style*="3D3B8E"] .at-sp-n, .at-spine[style*="3D3B8E"] .at-sp-count { color: var(--ink); }
.at-tools { display: flex; flex-direction: column; gap: 8px; }
.at-tool { width: 100%; }
.at-say { grid-area: say; display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.at-tslot { width: clamp(78px, 9vw, 104px); flex: 0 0 auto; margin-top: -30px; }
.at-bslot { flex: 1 1 auto; min-width: 0; padding-bottom: 12px; }
html[data-layout="tall"] .at-say { align-items: center; }
html[data-layout="tall"] .at-tslot { width: 70px; margin-top: 0; }
html[data-layout="tall"] .at-bslot { padding-bottom: 0; }
html[data-layout="tall"] .at-rail { flex-direction: row; }
html[data-layout="tall"] .at-spines { flex-direction: row; flex: 1 1 auto; }
html[data-layout="tall"] .at-spine { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 4px; border-radius: 12px; text-align: center; }
html[data-layout="tall"] .at-spine.on { transform: translateY(-6px); }
html[data-layout="tall"] .at-sp-name { font-size: .8rem; }
html[data-layout="tall"] .at-tools { flex-direction: row; width: auto; gap: 6px; }
html[data-layout="tall"] .at-tool { width: 60px; min-height: 64px; padding: 0; justify-content: center; }
html[data-layout="tall"] .at-tool > span { display: none; }
html[data-layout="tall"] .at-tool .tk-ico { width: 34px; height: 34px; }
html[data-layout="short"] .at-spine { flex-direction: column; padding: 2px; gap: 0; border-radius: 12px; min-height: 48px; text-align: center; }
html[data-layout="short"] .at-sp-name { font-size: .7rem; }
html[data-layout="short"] .at-sp-count { font-size: .7rem; }
html[data-layout="short"] .at-tools .tk-btn { padding: .2em .2em; font-size: .75rem; min-height: 44px; flex-direction: column; gap: 0; }
html[data-layout="short"] .at-say { flex-direction: column; align-items: center; justify-content: flex-end; }
html[data-layout="short"] .at-tslot { width: 64px; margin: 0; order: 2; }
html[data-layout="short"] .at-bslot { padding: 0; order: 1; width: 100%; }
html[data-layout="short"] .at-bslot .we-bubble { font-size: .85rem; }
html[data-layout="short"] .at-pin { width: 48px; height: 48px; }
html[data-layout="short"] .at-pin-card { width: 22px; right: -10px; top: -10px; }
html[data-layout="short"] .at-spine.on { transform: translateX(-2px); }
@media (max-width: 480px) { .at-pin { width: 52px; height: 52px; } .at-pin-stars svg { width: 12px; height: 12px; } }

/* ================================================================ scenes + LUPA */
.sv-board { overflow: hidden; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #E9DFC8; }
.sv-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sv-fog { will-change: transform, opacity; }
.sc-obj { cursor: pointer; }
.sc-obj:focus-visible .sc-hit { stroke: var(--sky); stroke-width: 6px; }
.sc-popped .sc-art { animation: sc-pop .55s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 80%; }
@keyframes sc-pop { 30% { transform: translateY(-16px) scale(1.12); } }
.sc-owl.sc-popped .sc-owl-in { animation: sc-owl 1s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sc-owl { 30% { transform: translateY(-30px) scale(1.25) rotate(-8deg); } 60% { transform: translateY(-10px) rotate(6deg); } }
.sc-tw .sc-art { animation: sc-tw .9s ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes sc-tw { 50% { filter: drop-shadow(0 0 10px #FFD166); transform: scale(1.06); } }
.sc-shimmer .sc-art { animation: sc-tw 1.1s ease-in-out infinite; }
.sc-wig { animation: sc-wig .45s ease; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sc-wig { 25% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
.sc-q { animation: sc-q 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
@keyframes sc-q { 50% { transform: translateY(-6px); } }
.sc-drift { animation: we-drift 36s linear infinite alternate; }
.sc-flow { animation: sc-flow 3s linear infinite; }
@keyframes sc-flow { to { stroke-dashoffset: -88; } }
.sc-waves { animation: sc-wv 4s ease-in-out infinite alternate; }
@keyframes sc-wv { to { transform: translateX(-30px); } }
.sc-twinkle { animation: sc-twk 2.4s ease-in-out infinite; }
@keyframes sc-twk { 50% { opacity: .2; } }
.sc-aurora { animation: sc-aur 6s ease-in-out infinite alternate; }
@keyframes sc-aur { to { transform: translateY(14px) skewX(-6deg); opacity: .7; } }
.sc-jump { animation: sc-jump 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sc-jump { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-26px) rotate(-14deg); } }
.sc-soar { animation: sc-soar 5s ease-in-out infinite alternate; }
@keyframes sc-soar { to { transform: translate(26px, -10px); } }
.sv-card { position: absolute; left: 12px; top: 12px; transform: translate(0, -150%); width: 96px; height: 96px; border-radius: 18px; background: #FFF6E5; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); z-index: 3; pointer-events: none; }
.sv-card.on { transform: translate(0, 0); }
.sv-card.grid b { font-size: 2.4rem; font-weight: 1000; }
.sv-card svg { width: 88%; height: 88%; }
.we-sil * { fill: #3A3D58 !important; stroke: #3A3D58 !important; }
.we-sil .sc-hit { display: none; }
.lp-dock { align-items: center; justify-content: center; gap: 14px; }
.lp-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-slot { width: 76px; height: 76px; border-radius: 16px; border: 3px dashed var(--ink-3); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 1000; color: var(--ink-3); }
.lp-slot.now { border-color: var(--sun); animation: we-glow 1.4s ease-in-out infinite; }
.lp-slot.done { border-style: solid; border-color: var(--go); background: var(--go-soft); }
.lp-slot svg { width: 90%; height: 90%; }
.lp-got * { fill: inherit; }
.lp-slot.done .we-sil * { fill: #17A565 !important; stroke: #17A565 !important; }
.lp-hint svg { width: 110px; display: block; }
html[data-layout="short"] .lp-slot { width: 58px; height: 58px; }
html[data-layout="tall"] .lp-dock { flex-direction: row; }
.st-dock { justify-content: space-between; gap: 10px; }
.st-panel { display: flex; flex-direction: column; gap: 6px; }
.st-row { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.st-s svg { width: 34px; height: 34px; display: block; }
.st-ico svg { width: 28px; height: 28px; display: block; }
.st-btns { display: flex; flex-direction: column; gap: 10px; }
.st-btns .tk-btn { width: 100%; }
html[data-layout="tall"] .st-dock { flex-direction: row; align-items: center; }
html[data-layout="tall"] .st-btns { flex: 1; }
html[data-layout="short"] .st-s svg { width: 26px; height: 26px; }
html[data-layout="short"] .st-row { font-size: .9rem; }
html[data-layout="short"] .st-btns .tk-btn-big { font-size: 1.05rem; min-height: 50px; padding: .3em .6em; }
html[data-layout="short"] .st-dock { padding-top: 60px; }

/* ================================================================ KOMPAS */
.ks-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #9CD3EA; overflow: hidden; }
.ks-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ks-token { transition: transform .28s cubic-bezier(.4, 0, .3, 1); }
.ks-cur { transition: x .28s, y .28s; animation: ks-cur 1.4s ease-in-out infinite; }
@keyframes ks-cur { 50% { opacity: .55; } }
.ks-kos { transition: opacity .3s; pointer-events: none; }
.ks-kos[opacity="0"], .sv-kos[opacity="0"] { visibility: hidden; }
.ks-storm { animation: ks-storm 2.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes ks-storm { 50% { opacity: .85; } }
.ks-dock { align-items: center; justify-content: space-between; gap: 8px; }
.ks-rosebox { width: min(100%, 260px); aspect-ratio: 1; flex: 0 1 auto; min-height: 0; display: flex; justify-content: center; }
.ks-rose { width: 100%; height: 100%; display: block; overflow: visible; }
.ks-petal { cursor: pointer; outline: none; }
.ks-petal:focus-visible .ks-pf { stroke: var(--sky); stroke-width: 6px; }
.ks-petal:hover .ks-pf { filter: brightness(1.06); }
.ks-petal.ks-press .ks-pf { animation: ks-press .25s ease; transform-box: view-box; transform-origin: 0 0; }
@keyframes ks-press { 50% { transform: scale(.9); } }
.ks-petal.ks-glow .ks-pf { animation: ks-glow 1s ease-in-out infinite; }
@keyframes ks-glow { 50% { fill: #FFF4C2; stroke: #FF9636; stroke-width: 6px; } }
.ks-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 52px; }
.ks-card { position: relative; width: 52px; height: 52px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; }
.ks-card svg { width: 100%; height: 100%; }
.ks-card b { position: absolute; right: -6px; bottom: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .9rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ks-card.now { background: #FFF4C2; box-shadow: 0 0 0 4px var(--sun); }
.ks-card.done { opacity: .45; }
.ks-card.empty { border-style: dashed; border-color: var(--ink-3); background: transparent; }
.ks-card.pl { cursor: pointer; }
.ks-actions { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
.ks-actions .ks-undo { width: 56px; height: 56px; flex: 0 0 auto; }
html[data-layout="short"] .ks-actions .ks-undo { width: 48px; height: 48px; }
.ks-go { flex: 1; }
html[data-layout="short"] .ks-card { width: 40px; height: 40px; border-radius: 9px; }
html[data-layout="short"] .ks-strip { gap: 4px; min-height: 40px; }
html[data-layout="short"] .ks-rosebox { width: min(100%, 190px); }
html[data-layout="short"] .ks-dock { padding-top: 58px; }
html[data-layout="short"] .ks-go { font-size: 1.05rem; min-height: 48px; padding: .2em .5em; }
html[data-layout="tall"] .ks-dock { flex-direction: row; flex-wrap: wrap; align-content: center; }
html[data-layout="tall"] .ks-rosebox { width: auto; height: 100%; max-height: 220px; }
html[data-layout="tall"] .ks-strip { flex: 1 1 120px; }
html[data-layout="tall"] .ks-actions { width: auto; flex: 1 1 150px; flex-direction: column; }
/* tall + flight plan: the rose on the left, the plan strip and the buttons on the right */
html[data-layout="tall"] .ks-dock.ks-planmode { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "rose strip" "rose actions"; align-items: center; justify-items: center; }
html[data-layout="tall"] .ks-planmode .ks-rosebox { grid-area: rose; width: min(46vw, 220px); height: auto; max-height: none; }
html[data-layout="tall"] .ks-planmode .ks-strip { grid-area: strip; align-self: center; }
html[data-layout="tall"] .ks-planmode .ks-actions { grid-area: actions; flex-direction: row; flex-wrap: wrap; }
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .ks-planmode .ks-go { font-size: 1.05rem; padding: .35em .8em; min-height: 56px; } }

/* ================================================================ postcard (S4) + flight (S5) */
.we-postscr { position: absolute; inset: 0; z-index: 20; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; align-items: center; gap: 10px; padding: 12px; background: radial-gradient(circle at 50% 40%, #F3DDB8, #E6C49A); }
.we-pc { position: relative; width: min(92%, 720px, 120vh); aspect-ratio: 1.55; transform: rotateY(90deg) rotate(-3deg); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.we-postscr.in .we-pc { transform: rotate(-2deg); }
.we-postscr.out .we-pc { transform: translateY(-40px) rotate(4deg) scale(.9); opacity: 0; transition: transform .35s, opacity .35s; }
.we-pc-front { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; background: #FFFDF6; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 0 var(--ink); padding: 12px; gap: 12px; }
.we-pc-pic { position: relative; border-radius: 8px; border: 3px solid var(--ink); background: linear-gradient(#BCE4FF, #E6F5FF 60%, var(--tint) 61%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.we-pc-lm { width: 92%; height: 92%; }
.we-pc-owl { position: absolute; left: 6%; bottom: 4%; width: 22%; }
.we-pc-text { position: relative; border-left: 3px dashed var(--ink-3); padding: 10px 6px 6px 16px; display: flex; flex-direction: column; justify-content: center; }
.we-pc-stamp { position: absolute; right: 2px; top: 0; width: 66px; height: 74px; border: 3px dashed var(--ink-2); background: #FFF0CC; padding: 4px; --ink: #2F4A8A; }
.we-pc-stamp svg { width: 100%; height: 100%; }
.we-pc-mark { position: absolute; right: 40px; top: 30px; width: 90px; opacity: .7; }
.we-pc-msg { margin: 46px 0 0; font-size: clamp(.95rem, 2vw, 1.25rem); font-weight: 800; font-style: italic; line-height: 1.35; color: #2F4A8A; }
.we-pc-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.we-pc-lines i { display: block; height: 2px; background: rgba(36, 38, 59, .15); }
.we-pc-tika { display: flex; align-items: flex-end; gap: 10px; width: min(100%, 760px); }
.we-pc-tika .tika { width: 84px; flex: 0 0 auto; }
.we-pc-tika .we-bubble { flex: 1; margin-bottom: 14px; }
html[data-layout="short"] .we-postscr { grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: minmax(0, 1fr) auto; }
html[data-layout="short"] .we-pc { grid-row: 1 / 3; width: min(100%, 140vh); }
html[data-layout="short"] .we-pc-go { grid-column: 2; grid-row: 2; }
html[data-layout="short"] .we-pc-tika { grid-column: 2; grid-row: 1; flex-direction: column-reverse; align-items: center; }
html[data-layout="short"] .we-pc-tika .tika { width: 62px; }
html[data-layout="short"] .we-pc-tika .we-bubble { margin: 0; font-size: .85rem; }
html[data-layout="short"] .we-pc-msg { margin-top: 30px; font-size: .9rem; }
html[data-layout="short"] .we-pc-stamp { width: 46px; height: 52px; }
html[data-layout="tall"] .we-pc { width: 96%; aspect-ratio: .78; }
html[data-layout="tall"] .we-pc-front { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
html[data-layout="tall"] .we-pc-text { border-left: 0; border-top: 3px dashed var(--ink-3); }
.we-flight { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: linear-gradient(#7FCBF2, #CDEEFC 70%, #EAF7FD); }
.we-flight.out { opacity: 0; transition: opacity .5s; }
.we-fl-sky, .we-fl-layer { position: absolute; inset: 0; }
.we-fl-layer svg { position: absolute; left: 0; top: 0; width: 200%; height: 100%; }
.we-fl-layer.l1 { animation: fl-par 30s linear infinite; opacity: .7; }
.we-fl-layer.l2 { animation: fl-par 18s linear infinite; opacity: .85; top: 20%; }
.we-fl-layer.l3 { animation: fl-par 10s linear infinite; top: 45%; }
@keyframes fl-par { to { transform: translateX(-50%); } }
.we-fl-birds { position: absolute; right: 10%; top: 30%; width: 120px; animation: fl-birds 6s ease-in-out infinite alternate; }
@keyframes fl-birds { to { transform: translate(-80px, -20px); } }
.we-fl-bank { position: absolute; right: -260px; width: 220px; animation: fl-bank 5.5s linear both; }
.we-fl-bank svg { width: 100%; display: block; }
.we-fl-bank.puf { animation-play-state: running; filter: brightness(1.08); }
@keyframes fl-bank { to { transform: translateX(calc(-100vw - 320px)); } }
.we-fl-map { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: min(420px, 56vw); aspect-ratio: 1.9; background: #FFF6E5; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); padding: 4px; }
.we-minimap { width: 100%; height: 100%; display: block; border-radius: 8px; }
.we-route { stroke-dashoffset: 400; animation: fl-route 4s ease-out forwards; }
@keyframes fl-route { from { stroke-dasharray: 0 1000; } to { stroke-dashoffset: 0; } }
.we-fl-kb { position: absolute; left: 22%; top: 50%; transform: translateY(-50%); width: min(30vh, 26vw, 260px); }
.we-fl-kbin { position: relative; aspect-ratio: 224 / 290; }
.we-fl-kbin > .kb { position: absolute; inset: 0; width: 100%; height: 100%; }
.we-fl-tika { position: absolute; left: 35%; width: 30%; top: 57.5%; }
.we-fl-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 10px; max-width: min(560px, 60vw); flex-direction: row-reverse; }
.we-fl-ctl .we-bubble { flex: 1; }
.we-burner { min-height: 72px; }
.we-flight.still .we-fl-layer, .we-flight.still .we-fl-bank, .we-flight.still .we-route { animation: none; }
html[data-layout="tall"] .we-fl-kb { left: 50%; transform: translate(-50%, -50%); width: min(40vw, 260px); }
html[data-layout="tall"] .we-fl-ctl { left: 12px; max-width: none; }
html[data-layout="short"] .we-fl-map { width: min(300px, 40vw); }

/* ================================================================ REKA */
.rk-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #7FC4E2; overflow: hidden; }
.rk-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.rk-dash { animation: rk-dash 1.6s linear infinite; }
@keyframes rk-dash { to { stroke-dashoffset: -40; } }
.rk-drop { animation: rk-drop 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rk-drop { 50% { transform: scale(1.15); } }
.rk-drop.rk-bounce { animation: rk-bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rk-bounce { 40% { transform: translateY(-14px) scale(1.2); } }
.rk-new { animation: rk-new .8s ease both; }
@keyframes rk-new { from { opacity: 0; } }
.rk-swirl { animation: rk-swirl 2s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rk-swirl { to { transform: rotate(360deg); } }
.rk-flag { animation: sc-pop .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.rk-zone { position: absolute; inset: 0; pointer-events: none; }
.tk-dnd-active .rk-zone, .tk-dnd-selecting .rk-zone { pointer-events: auto; }
.rk-pad { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; z-index: 2; }
.tk-dnd-active .rk-pad, .tk-dnd-selecting .rk-pad { pointer-events: auto; }
.rk-pad.glow { box-shadow: inset 0 0 0 4px rgba(255, 209, 102, .7); }
.rk-pad.hint { box-shadow: inset 0 0 0 6px #FFC53D, 0 0 18px #FFC53D; animation: we-glow 1s ease-in-out infinite; }
.rk-pad:focus-visible { outline: 4px solid var(--sky); }
.rk-dock { align-items: center; justify-content: center; gap: 12px; }
.rk-chip { display: flex; align-items: center; gap: 8px; font-weight: 1000; font-size: 1.15rem; }
.rk-sw { width: 34px; height: 12px; border-radius: 6px; background: #3E9CC4; border: 2px solid var(--ink); }
.rk-name.hidden { visibility: hidden; }
.rk-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rk-tail { width: 104px; min-height: 72px; padding: 4px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; font-weight: 1000; font-size: .9rem; }
.rk-tail svg { width: 80px; height: 40px; }
.rk-tail.rk-gone { opacity: 0; transform: scale(.6); transition: .3s; }
.rk-hold { width: 100%; }
html[data-layout="short"] .rk-dock { padding-top: 60px; }
html[data-layout="short"] .rk-tail { width: 92px; min-height: 60px; }
html[data-layout="tall"] .rk-dock { flex-direction: row; flex-wrap: wrap; }

/* ================================================================ prologue (S2) */
.we-prolog { overflow: hidden; }
.pr-stage { position: absolute; inset: 0; }
.pr-map { position: absolute; left: 6%; top: 8%; width: min(46%, 70vh); aspect-ratio: 1.9; background: #FFF6E5; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 6px 0 var(--ink); padding: 6px; transform: rotate(-3deg); }
.pr-map-c, .pr-map-f { position: absolute; inset: 6px; }
.pr-map-f { opacity: 0; transition: opacity 1.2s; }
.we-prolog.b2b .pr-map-f { opacity: 1; }
.we-prolog.b2b .pr-map-c { animation: pr-blow 1.2s ease-in forwards; }
@keyframes pr-blow { to { transform: translateX(-60px) skewX(-12deg); opacity: 0; } }
.pr-kb { position: absolute; left: 58%; top: 6%; width: min(20vw, 24vh); animation: we-float 5s ease-in-out infinite; }
.pr-cards { position: absolute; left: 30%; top: 56%; display: flex; gap: 6px; }
.pr-card { width: 54px; transform: rotate(calc((var(--i) - 2) * 7deg)); transition: transform 1.2s cubic-bezier(.4, 0, .3, 1), opacity 1.2s; }
.we-prolog.b2b .pr-card { transform: translate(calc(-40vw - var(--i) * 30px), calc(-30vh + var(--i) * 40px)) rotate(calc(var(--i) * 140deg)); opacity: 0; }
.pr-kos { position: absolute; right: -40%; top: 18%; width: min(30vw, 34vh); transition: right 1s cubic-bezier(.3, 1.2, .4, 1); visibility: hidden; }
.we-prolog.b2 .pr-kos { visibility: visible; }
.we-prolog.b2 .pr-kos { right: 8%; }
.we-prolog.b3 .pr-kos { right: 12%; transform: rotate(-8deg) scale(.95); }
.pr-tika { position: absolute; left: 6%; bottom: 4%; width: clamp(90px, 13vw, 150px); }
.pr-ui { position: absolute; right: 12px; bottom: 12px; left: calc(6% + clamp(90px, 13vw, 150px) + 16px); display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pr-ui .we-bubble { flex: 1 1 260px; order: -1; }
.we-prolog.out { opacity: 0; transition: opacity .3s; }
html[data-layout="tall"] .pr-map { left: 5%; top: 6%; width: 90%; }
html[data-layout="tall"] .pr-kb { left: 60%; top: 34%; width: 28vw; }
html[data-layout="tall"] .pr-kos { top: 44%; width: 40vw; }
html[data-layout="tall"] .pr-cards { top: 40%; left: 10%; }
html[data-layout="tall"] .pr-ui { left: 12px; bottom: calc(12px + clamp(90px, 13vw, 150px) * 1.3); }
html[data-layout="short"] .pr-tika { width: 80px; }
html[data-layout="short"] .pr-ui { left: 110px; }
html[data-layout="short"] .pr-ui .tk-btn-big { min-height: 48px; font-size: 1.1rem; }

/* ================================================================ settings + parents */
.we-set { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.we-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.we-set-t { justify-content: flex-start; width: 100%; font-size: 1rem; }
.we-set-t .tk-state { margin-left: auto; font-size: .85em; opacity: .75; }
.we-set-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.we-set-lab { font-weight: 1000; min-width: 4.5em; }
.we-age { min-width: 54px; }
.we-set-par { width: 100%; }
.we-modal-set .tk-modal { width: min(36rem, 100%); }
.we-modal-par .tk-modal, .tk-modal.we-modal-par { width: min(44rem, 100%); text-align: left; }
.tk-modal.we-modal-set { width: min(36rem, 100%); }
.we-parents section { margin-bottom: .8rem; }
.we-parents h3 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 1000; }
.we-parents p, .we-parents li { font-weight: 700; font-size: .95rem; margin: .2rem 0; }
.we-parents ul { margin: 0; padding-left: 1.2rem; }
.we-par-chs, .we-par-lv, .we-par-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 520px) { .we-set-grid { grid-template-columns: 1fr; } }

/* ================================================================ GDE */
.gd-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #F3DDB8; }
.gd-map { background: #9CD3EA; overflow: hidden; }
.gd-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gd-panels { position: absolute; inset: 8px; display: grid; gap: 8px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.gd-panels[data-n="2"] { --n: 2; } .gd-panels[data-n="3"] { --n: 3; } .gd-panels[data-n="4"] { --n: 4; }
html[data-layout="tall"] .gd-panels[data-n="4"], html[data-layout="tall"] .gd-panels[data-n="3"] { --n: 2; }
.gd-panel { position: relative; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 0 var(--ink); min-height: 0; }
.gd-panel-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd-tag { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); background: #FFF6E5; border: 2px solid var(--ink); border-radius: 10px; padding: 1px 8px; font-weight: 1000; font-size: .85rem; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.gd-slots { position: absolute; left: 4px; right: 4px; bottom: 4px; top: 34px; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 2px; }
.gd-panel.tk-drop-ok { box-shadow: 0 4px 0 var(--ink), 0 0 0 5px rgba(255, 197, 61, .7); }
.gd-dock { align-items: center; justify-content: center; }
.gd-crate { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; padding: 14px 10px 10px; min-height: 150px; width: 100%; background: #C9935F; border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 -10px 0 rgba(36, 38, 59, .18); background-image: repeating-linear-gradient(90deg, transparent 0 38px, rgba(36, 38, 59, .22) 38px 41px); }
.gd-item { width: clamp(84px, 9.5vw, 116px); height: clamp(72px, 8vw, 96px); display: flex; align-items: center; justify-content: center; border-radius: 14px; }
.gd-item svg { width: 100%; height: 100%; overflow: visible; }
.gd-item.gd-placed { width: 56px; height: 48px; }
.gd-item.gd-onmap { position: absolute; width: 58px; height: 50px; transform: translate(-50%, -60%); z-index: 2; }
.gd-placedlayer { position: absolute; inset: 0; pointer-events: none; }
.gd-placedlayer > * { pointer-events: none; }
.gd-walkin { animation: gd-walk .8s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes gd-walk { from { transform: translateX(80px) rotate(8deg); opacity: 0; } }
.gd-act svg { animation: gd-act 1.2s ease-in-out; transform-origin: 50% 90%; }
@keyframes gd-act { 20% { transform: translateY(-10px) rotate(-5deg); } 40% { transform: translateY(0) rotate(4deg); } 60% { transform: translateY(-6px) rotate(-3deg); } 80% { transform: none; } }
.gd-shiver svg { animation: we-shiver .1s linear 6; }
.gd-pant svg { animation: gd-pant .3s ease-in-out 2; }
@keyframes gd-pant { 50% { transform: scale(1.06, .94); } }
.gd-confused svg { animation: gd-conf .6s ease; }
@keyframes gd-conf { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.gd-mapzone { position: absolute; inset: 0; pointer-events: none; }
.tk-dnd-active .gd-mapzone, .tk-dnd-selecting .gd-mapzone { pointer-events: auto; }
.gd-pad { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; z-index: 2; }
.tk-dnd-active .gd-pad, .tk-dnd-selecting .gd-pad { pointer-events: auto; }
.gd-pad.hint { box-shadow: inset 0 0 0 5px #FFC53D, 0 0 16px #FFC53D; }
.gd-pad:focus-visible { outline: 4px solid var(--sky); }
.gd-glow, .gd-glow-soft { animation: gd-glow 1.2s ease-in-out infinite; }
@keyframes gd-glow { 50% { fill: #FFE38A; fill-opacity: .9; } }
.gd-pulse { animation: gd-pulse .8s ease-in-out 3; }
@keyframes gd-pulse { 50% { fill-opacity: .55; fill: #FFE38A; } }
.gd-owls { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); align-content: center; gap: 8px; padding: 20px; background: rgba(36, 38, 59, .25); animation: tk-fade .6s ease; pointer-events: none; }
.gd-owls svg { width: 100%; height: auto; animation: gd-blink 1.6s steps(1) infinite; }
@keyframes gd-blink { 85% { opacity: 1; } 92% { opacity: .55; } }
html[data-layout="short"] .gd-item { width: 62px; height: 52px; }
html[data-layout="short"] .gd-dock { padding-top: 58px; }
html[data-layout="short"] .gd-crate { min-height: 80px; padding: 8px 4px; }
html[data-layout="tall"] .gd-crate { min-height: 0; flex: 1; }

/* ================================================================ KOFER */
.kf-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: linear-gradient(#F7E7C8, #EED5AE); overflow: hidden; }
.kf-stage { position: absolute; }
.kf-window { position: absolute; left: 30px; top: 50px; width: 330px; height: 430px; border-radius: 18px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: #CFE6F2; }
.kf-window svg { width: 100%; height: 100%; display: block; }
.kf-frame { position: absolute; inset: 0; border: 12px solid #B98552; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--ink); pointer-events: none; }
.kf-frame::before, .kf-frame::after { content: ""; position: absolute; background: #B98552; }
.kf-frame::before { left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; box-shadow: 0 0 0 2px var(--ink); }
.kf-frame::after { top: 45%; left: 0; right: 0; height: 10px; box-shadow: 0 0 0 2px var(--ink); }
.kf-thermo { position: absolute; left: 372px; top: 110px; width: 40px; height: 300px; }
.kf-thermo svg { width: 100%; height: 100%; }
.kf-snow circle { animation: kf-snow 4s linear infinite; }
@keyframes kf-snow { from { transform: translateY(-40px); } to { transform: translateY(440px); } }
.kf-rays { animation: kf-rays 2s ease-in-out infinite alternate; }
@keyframes kf-rays { to { opacity: .4; } }
.kf-heat { animation: sc-wv 1.6s ease-in-out infinite alternate; }
.kf-suit { position: absolute; left: 446px; top: 150px; width: 430px; height: 340px; }
.kf-lid { position: absolute; left: 0; right: 0; top: -116px; height: 130px; background: #2E7D9B; border: 4px solid var(--ink); border-radius: 22px 22px 8px 8px; box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .15); transform-origin: 50% 100%; transform: perspective(600px) rotateX(-18deg); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.kf-lid::after { content: ""; position: absolute; left: 50%; top: -26px; width: 90px; height: 30px; margin-left: -45px; border: 7px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; }
.kf-lid.kf-bounce { animation: kf-bounce .5s ease; }
@keyframes kf-bounce { 30% { transform: perspective(600px) rotateX(-40deg); } 60% { transform: perspective(600px) rotateX(-6deg); } }
.kf-suit.closed .kf-lid { transform: perspective(600px) rotateX(-180deg) translateY(-14px); background: #2A6E8A; }
.kf-slots { position: absolute; inset: 0; background: #3E9CC4; border: 4px solid var(--ink); border-radius: 10px 10px 24px 24px; box-shadow: 0 7px 0 var(--ink), inset 0 0 0 10px #8FD3EA; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 24px; }
.kf-slots[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.kf-slot { border: 3px dashed rgba(255, 255, 255, .8); border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); }
.kf-slot .kf-item { width: 100px; height: 100px; cursor: pointer; }
.kf-suit.tk-drop-ok .kf-slots { box-shadow: 0 7px 0 var(--ink), inset 0 0 0 10px #FFE38A; }
.kf-stage.kf-flying { animation: kf-fly 1.5s ease-in-out; }
@keyframes kf-fly { 40% { transform: translate(-50%, -60%) scale(.95) rotate(-2deg); } 100% { transform: translate(-50%, -50%); } }
.kf-arrival { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; border: 4px solid var(--ink); z-index: 5; }
.kf-arr-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-arr-tika { position: absolute; left: 50%; bottom: 30px; width: 230px; transform: translateX(-50%); }
.kf-arr-tika .tika { width: 100%; }
.kf-arr-say { position: absolute; left: 20px; right: 20px; top: 20px; display: flex; justify-content: center; }
.kf-arr-say .we-bubble { font-size: 26px; max-width: 760px; }
.kf-dock { align-items: stretch; justify-content: space-between; gap: 10px; }
.kf-ward { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; align-content: start; flex: 1; min-height: 0; padding: 8px; background: #C9935F; border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 -8px 0 rgba(36, 38, 59, .18); }
.kf-item { aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.kf-ward .kf-item { background: rgba(255, 255, 255, .25); min-height: 72px; }
.kf-item-art { width: 92%; height: 92%; overflow: visible; }
.kf-wiggle { animation: kf-wiggle .6s ease-in-out infinite; }
@keyframes kf-wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.kf-act { display: flex; flex-direction: column; gap: 8px; }
.kf-act .tk-btn { width: 100%; }
html[data-layout="short"] .kf-dock { padding-top: 58px; }
html[data-layout="short"] .kf-ward { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
html[data-layout="short"] .kf-ward .kf-item { min-height: 50px; }
html[data-layout="short"] .kf-act .tk-btn-big { min-height: 48px; font-size: 1.05rem; }
html[data-layout="tall"] .kf-dock { flex-direction: column; }
html[data-layout="tall"] .kf-ward { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
html[data-layout="tall"] .kf-act { width: auto; flex-direction: row; justify-content: center; }
html[data-layout="tall"] .kf-act .tk-btn { width: auto; min-width: min(100%, 280px); }
html[data-layout="tall"] .kf-ward { flex: 0 1 auto; }
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .kf-ward { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; padding: 5px; } html[data-layout="tall"] .kf-ward .kf-item { min-height: 0; } }

/* ================================================================ SLAGALICA */
.sl-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #9CD3EA; overflow: hidden; }
.sl-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sl-zone { position: absolute; inset: 0; pointer-events: none; }
.tk-dnd-active .sl-zone, .tk-dnd-selecting .sl-zone { pointer-events: auto; }
.sl-pad { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; z-index: 2; }
.tk-dnd-selecting .sl-pad { pointer-events: auto; }
.sl-pad:focus-visible { outline: 4px solid var(--sky); }
.sl-in { animation: sl-in .45s cubic-bezier(.3, 1.6, .5, 1); transform-box: view-box; }
@keyframes sl-in { 0% { transform: scale(1.12, .9); } 60% { transform: scale(.96, 1.05); } }
.sl-show { animation: we-glow 1.1s ease-in-out infinite; }
.sl-dock { align-items: center; justify-content: center; }
.sl-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; align-content: center; justify-items: center; }
.sl-piece { width: var(--slw, 92px); height: calc(var(--slw, 92px) * .83); display: flex; align-items: center; justify-content: center; animation: sl-drift 3.4s ease-in-out infinite; transform-origin: 50% 50%; }
.sl-piece svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 0 rgba(36, 38, 59, .25)); }
.sl-piece.tk-dragging { animation: none; z-index: 1000; }
@keyframes sl-drift { 50% { translate: 0 -5px; } }
.sl-curl { animation: sl-curl .3s ease; }
@keyframes sl-curl { 30% { transform: skewX(-10deg) scaleY(.92); } 70% { transform: skewX(6deg); } }
.sl-gone { opacity: 0; transform: scale(.3) rotate(40deg); transition: .6s; }
.sl-lantern { position: relative; width: var(--slw, 70px); height: calc(var(--slw, 70px) * 1.28); }
.sl-lantern svg { width: 100%; height: 100%; }
.sl-lflag { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); width: 43%; }
.sl-cap.sl-hint circle { animation: we-glow 1s ease-in-out infinite; }
.sl-sky { animation: sl-in .6s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
html[data-layout="short"] .sl-dock { padding-top: 58px; }
html[data-layout="short"] .sl-tray { gap: 4px; }

/* ================================================================ SUNCE */
.su-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #F3DDB8; overflow: hidden; }
.su-svg { position: absolute; inset: 0; width: 700px; height: 700px; touch-action: none; }
.su-sky { transition: fill .3s; }
.su-sun { cursor: grab; outline: none; }
.su-sun:focus-visible circle:nth-child(2) { stroke: var(--sky); stroke-width: 7px; }
.su-tip { cursor: grab; }
.su-sockz { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.su-sockz.small { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.su-sockz.hint { box-shadow: 0 0 0 6px #FFC53D; animation: we-glow 1s ease-in-out infinite; }
.su-sign { width: 120px; height: 60px; }
.su-sign.small { width: 84px; height: 44px; }
.su-sign svg { width: 100%; height: 100%; display: block; }
.su-sockz .su-sign { width: 104px; height: 52px; flex: 0 0 auto; }
.su-sockz .su-sign.small { width: 70px; height: 36px; }
.su-dock { align-items: center; justify-content: center; }
.su-signtray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gl-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: radial-gradient(circle at 50% 50%, #2E3360, #151832); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gl-wrap { position: relative; }
.gl-canvas { display: block; touch-action: none; cursor: grab; border-radius: 50%; }
.gl-canvas:focus-visible { outline: 4px solid var(--sky); outline-offset: 4px; }
.gl-wrap.gl-h2 .gl-canvas { box-shadow: 0 0 0 8px rgba(255, 209, 102, .55); }
.gl-sun { position: absolute; right: 2%; top: 50%; width: 15%; max-width: 110px; transform: translateY(-50%); }
.gl-sun svg { width: 100%; display: block; }
.gl-pins { position: absolute; inset: 0; pointer-events: none; }
.gl-pin { position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid var(--ink); transition: opacity .2s; }
.gl-pin.rs { background: #EC4A3D; } .gl-pin.jp { background: #fff; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 11px #D7263D; } .gl-pin.us { background: #7FC2AE; }
.gl-pin.pulse, .gl-pin.lit { animation: we-glow .8s ease-in-out infinite; }
.gl-legend { display: flex; flex-direction: column; gap: 10px; }
.gl-leg { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.gl-leg .gl-pin { position: static; margin: 0; flex: 0 0 auto; }
.gl-dock { align-items: center; justify-content: center; }
html[data-layout="tall"] .gl-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; }

/* ================================================================ KARTA */
.ka-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #F3E7CF; overflow: hidden; }
.ka-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ka-sym { cursor: pointer; outline: none; }
.ka-sym:focus-visible circle { stroke: var(--sky); stroke-width: 6px; }
.ka-sym.ka-pop > :not(circle) { animation: sc-pop .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 80%; }
.ka-sym.ka-pulse, .ka-leg.ka-pulse { animation: we-glow .9s ease-in-out infinite; }
.ka-cellglow { animation: ks-cur 1.2s ease-in-out infinite; }
.ka-token { pointer-events: none; }
.ka-chest { animation: sc-pop .7s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; }
.ka-dock { align-items: stretch; gap: 8px; }
.ka-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ka-leg { display: flex; align-items: center; gap: 4px; padding: 2px 4px; min-height: 56px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 900; font-size: clamp(.66rem, 1.05vw, .8rem); min-width: 0; overflow-wrap: anywhere; text-align: left; line-height: 1.1; }
.ka-leg svg { flex: 0 0 auto; }
.ka-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; justify-content: center; min-height: 0; }
.ka-rose { width: min(100%, 210px); aspect-ratio: 1; min-height: 0; flex: 0 1 auto; }
.ka-rose svg { width: 100%; height: 100%; }
.ka-dig { width: 100%; }
.ka-flagitem { width: 64px; height: 76px; }
.ka-flagitem svg { width: 100%; height: 100%; }
.ka-cellz { position: absolute; pointer-events: none; border-radius: 8px; }
.tk-dnd-active .ka-cellz, .tk-dnd-selecting .ka-cellz { pointer-events: auto; }
.ka-cellz.tk-drop-over { background: rgba(255, 209, 102, .35); }
html[data-layout="short"] .ka-legend { grid-template-columns: 1fr 1fr; }
html[data-layout="short"] .ka-leg { min-height: 42px; font-size: .7rem; }
html[data-layout="short"] .ka-leg svg { width: 24px; height: 24px; }
html[data-layout="short"] .ka-dock { padding-top: 58px; }
html[data-layout="short"] .ka-rose { width: min(100%, 140px); }
html[data-layout="short"] .ka-dock.ka-with-rose { flex-direction: row; }
html[data-layout="short"] .ka-with-rose .ka-legend { grid-template-columns: repeat(2, 42px); align-content: start; flex: 0 0 auto; }
html[data-layout="short"] .ka-with-rose .ka-leg { width: 42px; min-height: 42px; padding: 0; justify-content: center; }
html[data-layout="short"] .ka-with-rose .ka-leg b { display: none; }
html[data-layout="short"] .ka-with-rose .ka-leg svg { width: 30px; height: 30px; }
html[data-layout="short"] .ka-with-rose .ka-tools { flex: 1 1 auto; min-width: 0; justify-content: space-between; }
html[data-layout="short"] .ka-with-rose .ka-rose { width: min(100%, 150px); flex: 0 0 auto; }
html[data-layout="short"] .ka-dig { min-height: 48px; font-size: 1rem; padding: .2em .7em; }
html[data-layout="tall"] .ka-dock { flex-direction: row; }
html[data-layout="tall"] .ka-legend { display: flex; flex-wrap: wrap; align-content: flex-start; flex: 1 1 50%; }
html[data-layout="tall"] .ka-leg b { display: none; }
html[data-layout="tall"] .ka-leg { min-height: 56px; min-width: 56px; padding: 2px; justify-content: center; }
html[data-layout="tall"] .ka-leg svg { width: 36px; height: 36px; }
html[data-layout="tall"] .ka-tools { flex: 1 1 50%; }
html[data-layout="tall"] .ka-dock:not(.ka-with-rose) .ka-legend { flex: 3 1 70%; justify-content: center; }
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .ka-leg { min-width: 56px; min-height: 56px; } html[data-layout="tall"] .ka-leg svg { width: 34px; height: 34px; } }

/* ================================================================ passport (S10) */
.we-pass { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "prev book next" "say say say"; align-items: center; gap: 10px; padding: 10px; }
.ps-prev { grid-area: prev; } .ps-next { grid-area: next; } .ps-book { grid-area: book; }
.ps-turn[disabled] { opacity: .35; }
.ps-book { justify-self: center; height: 100%; max-height: 640px; aspect-ratio: .72; display: flex; }
html[data-layout="tall"] .ps-book:not(.two) { height: auto; width: 100%; max-height: 100%; }
.ps-book.two { aspect-ratio: 1.44; }
.ps-page { flex: 1; position: relative; background: #FFF6E5; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.ps-book.two .ps-page:first-child { border-radius: 16px 4px 4px 16px; }
.ps-book.two .ps-page:last-child { border-radius: 4px 16px 16px 4px; }
.ps-book:not(.two) .ps-page { border-radius: 16px; }
.ps-coverpg { background: #2F4A8A; padding: 0; }
.ps-coverpg .we-cover { width: 100%; height: 100%; aspect-ratio: auto; border: 0; box-shadow: none; }
.ps-hd { font-weight: 1000; font-size: 1.2rem; background: var(--tint); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 14px; }
.ps-cover { width: 62%; aspect-ratio: 1; }
.ps-cover svg, .ps-souv svg { width: 100%; height: 100%; }
.ps-cover.empty, .ps-souv.empty { border: 3px dashed var(--ink-3); border-radius: 50%; }
.ps-souv { width: 34%; aspect-ratio: 1; border-radius: 16px; }
.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 8px; width: 100%; height: 100%; min-height: 0; }
.ps-grid[data-n="7"] .ps-slot:last-child, .ps-grid[data-n="5"] .ps-slot:last-child { grid-column: span 2; }
.ps-slot { border: 3px dashed rgba(36, 38, 59, .25); border-radius: 50%; background: none; padding: 2px; aspect-ratio: 1; max-height: 100%; justify-self: center; height: 100%; }
.ps-slot.on { border: 0; }
.ps-slot svg { width: 100%; height: 100%; }
.ps-inside { background-image: repeating-linear-gradient(transparent 0 26px, rgba(36, 38, 59, .07) 26px 28px); }
.ps-inside { justify-content: space-evenly; }
.ps-in-hd { font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--ink-2, #5B5D78); }
.ps-in-id { display: flex; align-items: center; gap: 14px; }
.ps-photo { width: clamp(70px, 11vh, 110px); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 12px; background: #DCEEFF; display: flex; align-items: center; justify-content: center; transform: rotate(-3deg); box-shadow: 0 4px 0 var(--ink); }
.ps-photo svg { width: 92%; height: 92%; }
.ps-in-lines { display: flex; flex-direction: column; gap: 6px; }
.ps-in-row { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px dashed rgba(36, 38, 59, .25); padding: 0 6px 2px; }
.ps-in-row small { font-weight: 800; color: var(--ink-2, #5B5D78); }
.ps-in-row b { font-size: 1.5rem; font-weight: 1000; }
.ps-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; width: 100%; max-width: 360px; }
.ps-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.ps-stat svg { grid-row: span 2; width: clamp(28px, 5vh, 40px); height: clamp(28px, 5vh, 40px); }
.ps-stat b { font-size: 1.25rem; font-weight: 1000; line-height: 1; }
.ps-stat span { font-size: .85rem; font-weight: 800; color: var(--ink-2, #5B5D78); }
.ps-route { width: 80%; max-width: 300px; height: auto; }
html[data-layout="short"] .ps-route, html[data-layout="short"] .ps-in-hd { display: none; }
.ps-say { grid-area: say; display: flex; align-items: flex-end; gap: 10px; }
.ps-tslot { width: clamp(70px, 9vw, 100px); flex: 0 0 auto; margin-top: -24px; }
.ps-bslot { flex: 1; min-width: 0; padding-bottom: 10px; }
html[data-layout="short"] .we-pass { grid-template-columns: auto minmax(0, 1fr) auto 200px; grid-template-rows: minmax(0, 1fr); grid-template-areas: "prev book next say"; }
html[data-layout="short"] .ps-say { flex-direction: column-reverse; align-items: center; }
html[data-layout="short"] .ps-tslot { margin: 0; width: 64px; }

/* ================================================================ album (S11) */
.we-album { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
.al-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.al-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 14px 14px 6px 6px; background: #F7E7C8; font-weight: 1000; font-size: .95rem; }
.al-tab svg { width: 24px; height: 24px; }
.al-tab.on { background: var(--sun); transform: translateY(-3px); }
.al-area { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 0; background: #C9935F; border: 3px solid var(--ink); border-radius: 18px; padding: 10px; box-shadow: inset 0 -10px 0 rgba(36, 38, 59, .15); }
.al-grid { display: grid; gap: 10px; align-content: center; height: 100%; min-height: 0; }
.al-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px; min-height: 120px; padding: 6px; background: #FFF6E5; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font-size: .8rem; }
.al-card .al-art { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.al-card .al-art > svg { width: 92%; max-height: 92px; }
.al-card.off .al-art { filter: grayscale(1) brightness(.5) opacity(.35); }
.al-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.al-pc { position: relative; width: 100%; height: 90px; background: linear-gradient(#BCE4FF, #FFF0CC); border-radius: 6px; border: 2px solid var(--ink); display: flex; justify-content: center; }
.al-pc > svg { height: 100%; }
.al-pcst { position: absolute; right: -4px; top: -6px; width: 46px; }
.al-pcst svg { width: 100%; }
.al-turn[disabled] { opacity: .35; }
.al-say { display: flex; align-items: flex-end; gap: 10px; }
.al-tslot { width: clamp(64px, 8vw, 92px); flex: 0 0 auto; margin-top: -24px; }
.al-bslot { flex: 1; min-width: 0; padding-bottom: 8px; }
html[data-layout="short"] .we-album { grid-template-columns: minmax(0, 1fr) 190px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "tabs say" "area say"; }
html[data-layout="short"] .al-tabs { grid-area: tabs; } html[data-layout="short"] .al-area { grid-area: area; } html[data-layout="short"] .al-say { grid-area: say; flex-direction: column-reverse; align-items: center; }
html[data-layout="short"] .al-tab span { display: none; }
html[data-layout="short"] .al-tslot { width: 60px; margin: 0; }
@media (max-width: 480px) { .al-tab span { display: none; } }

/* ================================================================ grand finale (S13) */
.we-finale { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3D3B8E, #22223B); }
.fn-pages { position: absolute; inset: 10% 8% 30%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 900px; }
.fn-page { background: #FFF6E5; border: 3px solid var(--ink); border-radius: 10px; padding: 4px; transition: transform 1s cubic-bezier(.4, 0, .3, 1), opacity .8s; transform-origin: 50% 50%; }
.we-finale.fold .fn-page { transform: rotateY(calc(var(--i) * 90deg)) scale(.4); opacity: .4; }
.we-finale.globe .fn-page { opacity: 0; visibility: hidden; }
.fn-globe { position: absolute; left: 50%; top: 38%; width: min(48vh, 60vw); transform: translate(-50%, -50%) scale(0); transition: transform 1s cubic-bezier(.3, 1.4, .5, 1); }
.we-finale.globe .fn-globe { transform: translate(-50%, -50%) scale(1); }
.fn-globe > svg { width: 100%; display: block; overflow: visible; }
.fn-globe svg circle:first-child { }
.fn-spin { animation: fn-spin 8s linear infinite; }
@keyframes fn-spin { to { transform: translateX(-400px); } }
.fn-stamps { position: absolute; inset: 0; pointer-events: none; }
.fn-stamp { position: absolute; left: -140px; width: 110px; opacity: 0; visibility: hidden; }
.we-finale.fly .fn-stamp { animation: fn-fly 3.2s ease-in-out both; animation-delay: calc(var(--i) * .12s); }
@keyframes fn-fly { 0% { transform: translateX(0) rotate(-20deg); opacity: 1; visibility: visible; } 99% { opacity: 1; visibility: visible; } 100% { transform: translateX(calc(100vw + 280px)) rotate(30deg); opacity: 0; visibility: hidden; } }
.fn-planes { position: absolute; inset: 0; pointer-events: none; }
.fn-plane { position: absolute; top: 110%; width: 46px; opacity: 0; visibility: hidden; }
.we-finale.planes .fn-plane { animation: fn-plane 4s ease-out both; animation-delay: calc(var(--i) * .2s); }
@keyframes fn-plane { 0% { transform: translateY(0) rotate(-10deg); opacity: 1; visibility: visible; } 99% { opacity: 1; visibility: visible; } 100% { transform: translateY(-120vh) translateX(80px) rotate(20deg); opacity: 0; visibility: hidden; } }
.fn-kos { position: absolute; right: -40%; top: 10%; width: min(28vw, 30vh); transition: right 1s cubic-bezier(.3, 1.2, .4, 1); visibility: hidden; }
.we-finale.kos .fn-kos { right: 6%; visibility: visible; }
.fn-say { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 10px; }
.fn-tslot { width: clamp(80px, 11vw, 130px); flex: 0 0 auto; }
.fn-bslot { flex: 1; min-width: 0; padding-bottom: 14px; }
html[data-motion="reduce"] .fn-spin, html[data-motion="reduce"] .fn-stamp, html[data-motion="reduce"] .fn-plane { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .fn-stamp, html:not([data-motion="full"]) .fn-plane { animation: none !important; } }

/* ---------------------------------------------------------------- touch targets
   The kit's --tap is 3rem, which falls to ~47 px on a phone (root font 15–16 px). Keep every kit
   button at 56 px (48 px on short landscape phones), whatever the root font size. */
:root { --tap: max(3rem, 56px); }
html[data-layout="short"] { --tap: max(2.75rem, 48px); }
html[data-layout="short"] .at-tools .tk-btn { min-height: 48px; }
.al-tab { min-width: 56px; justify-content: center; }
@media (max-width: 480px) { html:not([data-layout="short"]) .at-pin:not(.locked) { width: 56px; height: 56px; } }
@media (max-width: 520px) { .we-set-lab { flex-basis: 100%; } .we-set-row { gap: 6px; } .we-age { min-width: 56px; padding-left: .3em; padding-right: .3em; } }
@media (max-width: 440px) {
  html[data-layout="tall"] .at-spines, html[data-layout="tall"] .at-tools { gap: 4px; }
  html[data-layout="tall"] .at-rail { gap: 4px; }
  html[data-layout="tall"] .at-tool { width: 56px; }
  html[data-layout="tall"] .at-spine { min-width: 56px; padding: 4px 2px; }
  html[data-layout="tall"] .at-sp-name { font-size: .72rem; }
}
html[data-layout="short"] .ka-with-rose .ka-legend { grid-template-columns: repeat(2, 48px); gap: 4px; }
html[data-layout="short"] .ka-with-rose .ka-leg { width: 48px; min-height: 48px; }
html[data-layout="short"] .ka-with-rose .ka-rose { margin-top: 14px; }

/* ================================================================ Ch5 "Ljudi i običaji" (DESIGN §21) */
/* ---------------------------------------------------------------- atlas: bunting, five spines, Pasoš/Album placement */
.at-bunting { position: absolute; left: 14px; top: 3px; width: calc(100% - 28px); height: 34px; z-index: 1; pointer-events: none; }
.we-at-obicaji .at-page { box-shadow: 0 6px 0 var(--ink), inset 0 0 0 8px #F7C3D9; }
.we-at-obicaji .at-page.gold { box-shadow: 0 6px 0 var(--ink), inset 0 0 0 8px #FFC53D; }
html[data-layout="short"] .we-atlas { grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "rail map say" "rail map tools"; }
html[data-layout="short"] .at-rail { display: contents; }
html[data-layout="short"] .at-spines { grid-area: rail; gap: 5px; }
html[data-layout="short"] .at-tools { grid-area: tools; flex-direction: row; gap: 6px; }
html[data-layout="short"] .at-tools .at-tool { flex: 1 1 0; min-width: 0; }
html[data-layout="short"] .at-spine { min-height: 48px; }
@media (max-width: 640px) {
  html[data-layout="tall"] .at-rail { flex-direction: column; gap: 6px; }
  html[data-layout="tall"] .at-spines { gap: 4px; }
  html[data-layout="tall"] .at-spine { min-width: 0; min-height: 60px; padding: 3px 1px; }
  html[data-layout="tall"] .at-tools { width: 100%; gap: 8px; }
  html[data-layout="tall"] .at-tool { flex: 1 1 0; width: auto; min-height: 56px; }
  html[data-layout="tall"] .at-tool > span { display: inline; }
  html[data-layout="tall"] .at-tool .tk-ico { width: 28px; height: 28px; }
}
.at-spine[style*="F59AC0"] .at-sp-n { background: #fff; }

/* ---------------------------------------------------------------- NOŠNJA */
.no-board, .tp-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: #F7E7C8; overflow: hidden; }
.no-stage, .tp-stage { position: absolute; left: 50%; top: 50%; }
.no-bg, .tp-bgwrap, .tp-bgwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.no-tika { transition: left .2s; }
.no-model { position: absolute; left: 22px; top: 60px; width: 196px; padding: 10px 10px 4px; background: #FFF6E5; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-4deg); text-align: center; font-weight: 1000; font-size: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 2; }
.no-model.on { opacity: 1; visibility: visible; }
.no-model.hint { animation: we-glow 1.1s ease-in-out infinite; }
.no-model-pic { background: linear-gradient(#BCE4FF, #FFF0CC); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 18px; }
.no-model-pic svg { width: 100%; height: auto; display: block; overflow: visible; }
.no-tika { position: absolute; left: 300px; top: 190px; width: 300px; z-index: 1; }
.no-tika .tika { width: 100%; }
.no-zone { position: absolute; left: 240px; top: 150px; width: 420px; height: 440px; border-radius: 40px; z-index: 3; }
.no-zone.tk-drop-ok, .tp-zone.tk-drop-ok { box-shadow: inset 0 0 0 6px rgba(255, 197, 61, .75); }
.no-guides > * { fill: rgba(255, 255, 255, .35); stroke: #FF9636; stroke-width: 2.6; stroke-dasharray: 6 5; }
.tika.no-twirl > .tk-owl { animation: no-twirl 1.4s ease-in-out; transform-origin: 50% 90%; }
@keyframes no-twirl { 20% { transform: translateY(-14px) rotate(-8deg); } 45% { transform: translateY(0) rotate(7deg); } 70% { transform: translateY(-10px) rotate(-5deg); } }
.no-dock, .tp-dock { align-items: stretch; justify-content: flex-start; }
.no-ward, .tp-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 8px; align-content: start; flex: 1 1 auto; min-height: 0; padding: 22px 8px 8px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 -8px 0 rgba(36, 38, 59, .15); }
.no-ward { background: linear-gradient(#9B6A43 0 10px, #E9D3B0 10px 100%); }
.tp-tray { padding-top: 8px; background: #C9935F; background-image: repeating-linear-gradient(90deg, transparent 0 38px, rgba(36, 38, 59, .18) 38px 41px); }
.no-item, .tp-item { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .6); border-radius: 14px; min-height: 72px; }
.no-item .cu-art, .tp-item .cu-art { width: 90%; height: 90%; overflow: visible; }
.no-hanger { position: absolute; top: -15px; left: 50%; width: 18px; height: 15px; margin-left: -9px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; pointer-events: none; }
.no-gone { opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
.no-wiggle { animation: kf-wiggle .6s ease-in-out infinite; }
html[data-layout="short"] .no-dock, html[data-layout="short"] .tp-dock, html[data-layout="short"] .mz-dock, html[data-layout="short"] .hl-dock, html[data-layout="short"] .lm-dock { padding-top: 58px; }
html[data-layout="short"] .no-ward, html[data-layout="short"] .tp-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 5px; padding: 16px 5px 5px; }
html[data-layout="short"] .tp-tray { padding-top: 4px; gap: 4px; }
html[data-layout="short"] .no-item, html[data-layout="short"] .tp-item { min-height: 48px; }
html[data-layout="short"] .no-hanger { top: -12px; width: 14px; height: 12px; margin-left: -7px; border-width: 2px; }
html[data-layout="tall"] .no-ward, html[data-layout="tall"] .tp-tray { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .no-ward, html[data-layout="tall"] .tp-tray { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 5px; padding-left: 5px; padding-right: 5px; } html[data-layout="tall"] .no-item, html[data-layout="tall"] .tp-item { min-height: 0; } }

/* ---------------------------------------------------------------- TRPEZA */
.tp-plates { position: absolute; inset: 0; pointer-events: none; }
.tp-plate { position: absolute; width: 180px; height: 180px; transition: none; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--ink); box-shadow: 0 6px 0 rgba(36, 38, 59, .25), inset 0 0 0 14px #F3F0EA, inset 0 0 0 17px #DCD6CA; }
.tp-plate:empty::after { content: ""; position: absolute; inset: 34px; border: 4px dashed #C9C1AE; border-radius: 50%; }
.tp-onplate { position: absolute; inset: 10px; animation: tp-land .45s cubic-bezier(.3, 1.5, .5, 1); }
.tp-onplate svg { width: 100%; height: 100%; overflow: visible; }
@keyframes tp-land { from { transform: translateY(-40px) scale(.6); opacity: 0; } }
.tp-napkin { position: absolute; left: 790px; top: 210px; width: 100px; height: 170px; border-radius: 10px; background: repeating-linear-gradient(45deg, #FFF6E5 0 12px, #FFE3EC 12px 24px); border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(36, 38, 59, .25); display: flex; align-items: center; justify-content: center; }
.tp-napkin svg { width: 96px; height: 96px; overflow: visible; }
.tp-napkin.on { animation: tp-land .45s cubic-bezier(.3, 1.5, .5, 1); }
.tp-menu { position: absolute; left: 14px; top: 124px; width: 132px; padding: 6px 6px 8px; background: #FFF6E5; border: 4px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-3deg); text-align: center; font-weight: 1000; font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 3; }
.tp-menu.on { opacity: 1; visibility: visible; }
.tp-menu.hint { animation: we-glow 1.1s ease-in-out infinite; }
.tp-menu-list { display: grid; gap: 2px; margin-top: 4px; }
.tp-menu-list span { display: block; height: 76px; border-top: 2px dashed #D9CBAA; }
.tp-menu-list svg { width: 100%; height: 100%; }
.tp-zone { position: absolute; left: 110px; top: 130px; width: 680px; height: 400px; border-radius: 24px; z-index: 2; }
.tp-pinata { position: absolute; left: 330px; top: -260px; width: 240px; height: 240px; z-index: 4; pointer-events: none; opacity: 0; }
.tp-pinata svg { width: 100%; height: 100%; overflow: visible; }
.tp-pinata.in { opacity: 1; animation: tp-drop 1s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.tp-pinata.pop { animation: tp-pop .7s ease-out forwards; top: 120px; }
@keyframes tp-drop { to { top: 120px; } }
@keyframes tp-pop { 0% { transform: scale(1) rotate(0); opacity: 1; } 40% { transform: scale(1.25) rotate(12deg); opacity: 1; } 100% { transform: scale(.2) rotate(40deg); opacity: 0; } }
.tp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: center; flex: 1 1 auto; min-height: 0; }
.tp-tools[hidden], .tp-tray[hidden] { display: none; }
.tp-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; padding: 6px; background: #FFF6E5; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); font-weight: 1000; font-size: .95rem; color: var(--ink); }
.tp-tool svg { width: 64px; height: 64px; overflow: visible; }
.tp-tool.on { background: #C8F2D5; }
.tp-tool.tk-reject { animation: we-shiver .1s linear 5; }
html[data-layout="short"] .tp-tool { min-height: 60px; font-size: .8rem; } html[data-layout="short"] .tp-tool svg { width: 40px; height: 40px; }
html[data-layout="tall"] .tp-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-aspect-ratio: 3/5) { html[data-layout="tall"] .tp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- MUZIKA */
.mz-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 10px 18px; background: #FFE3C8; }
.mz-bg, .mz-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mz-strip { position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; min-height: 34px; padding: 4px 12px; background: rgba(255, 246, 229, .92); border: 3px solid var(--ink); border-radius: 18px; }
.mz-strip:empty { visibility: hidden; }
.mz-round, .mz-dots { display: flex; gap: 6px; align-items: center; }
.mz-round i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.mz-round i.ok { background: #17A565; } .mz-round i.now { background: #FFD166; }
.mz-dots i { width: 18px; height: 18px; border-radius: 50%; border: 3px dashed var(--ink); }
.mz-dots i.on { border-style: solid; background: #FF9636; }
.mz-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2.5vw, 26px); width: 100%; min-height: 0; flex: 1 1 auto; padding-top: 10px; }
.mz-inst { position: relative; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--ink); font-weight: 1000; font-size: .9rem; border-radius: 18px; transition: transform .12s; }
.mz-drums .mz-inst { width: clamp(96px, 24%, 200px); }
.mz-drums .mz-inst .cu-art { width: 100%; height: auto; max-height: min(34vh, 230px); overflow: visible; }
.mz-inst b { background: #FFF6E5; border: 2px solid var(--ink); border-radius: 10px; padding: 0 8px; margin-top: 2px; white-space: nowrap; }
.mz-inst.hit { transform: scale(1.08) translateY(-6px); filter: drop-shadow(0 0 10px #FFD166) drop-shadow(0 0 4px #FFC53D); }
.mz-inst:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }
.mz-frame { --rowh: clamp(150px, 42vh, 300px); display: flex; align-items: flex-start; gap: 6px; padding: 18px 12px 10px; background: rgba(255, 246, 229, .55); border: 3px solid var(--ink); border-radius: 18px; min-height: calc(var(--rowh) + 32px); }
.mz-frame::before { content: ""; position: absolute; }
.mz-socket { width: 60px; min-height: var(--rowh); display: flex; align-items: flex-start; justify-content: center; border-radius: 12px; }
.mz-socket:empty { outline: 3px dashed rgba(36, 38, 59, .3); outline-offset: -3px; }
.mz-pipes .mz-inst { width: 60px; min-height: 56px; align-items: center; justify-content: flex-start; }
.mz-pipes .mz-inst svg.cu-pipe { height: calc(var(--rowh, 220px) * (86 + 150 * var(--len)) / 236); width: auto; overflow: visible; }
.mz-loose { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; }
.mz-loose .mz-inst { width: 64px; min-height: 64px; justify-content: flex-start; background: rgba(233, 211, 176, .45); border-radius: 14px; padding-top: 6px; }
.mz-loose .mz-inst svg.cu-pipe { height: calc(170px * (86 + 150 * var(--len)) / 236); width: auto; }
.mz-dock { align-items: center; justify-content: center; }
.mz-dockin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.mz-tip svg { width: clamp(110px, 70%, 200px); height: auto; display: block; }
.mz-again { width: 100%; max-width: 280px; }
html[data-layout="short"] .mz-frame { --rowh: clamp(120px, 44vh, 200px); padding: 10px 8px 6px; }
html[data-layout="short"] .mz-tip { display: none; }
html[data-layout="short"] .mz-strip { min-height: 28px; padding: 2px 10px; }
html[data-layout="tall"] .mz-dockin { flex-direction: row; flex-wrap: wrap; }
html[data-layout="tall"] .mz-loose .mz-inst svg.cu-pipe { height: calc(130px * (86 + 150 * var(--len)) / 236); }
html[data-layout="short"] .mz-loose { gap: 4px; } html[data-layout="short"] .mz-loose .mz-inst { width: 56px; min-height: 56px; } html[data-layout="short"] .mz-loose .mz-inst svg.cu-pipe { height: calc(110px * (86 + 150 * var(--len)) / 236); }
@media (max-width: 480px) { .mz-socket, .mz-pipes .mz-inst { width: 56px; } .mz-frame { gap: 4px; padding-left: 6px; padding-right: 6px; } }

/* ---------------------------------------------------------------- PRAZNIK: Holi */
.hl-board, .lm-board { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.hl-bg, .hl-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hl-row { position: absolute; left: 0; right: 0; bottom: 4%; top: 6%; display: flex; align-items: flex-end; justify-content: space-evenly; gap: 6px; padding: 0 8px; }
.hl-cousin { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(84px, 26%, 210px); max-height: 100%; border-radius: 22px; }
.hl-row[data-n="4"] .hl-cousin { width: clamp(76px, 22%, 180px); }
.hl-wish { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; background: #FFF6E5; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); margin-bottom: 8px; }
.hl-wish::after { content: ""; position: absolute; bottom: -12px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.hl-wish > svg { width: clamp(40px, 7vh, 60px); height: auto; display: block; }
.hl-recipe { display: none; align-items: center; gap: 3px; font-weight: 1000; }
.hl-recipe.on { display: flex; }
.hl-recipe:empty { display: none; }
.hl-recipe i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); display: block; }
.hl-owl { width: 100%; }
.hl-owl svg { width: 100%; height: auto; display: block; max-height: 40vh; }
.hl-shirt { transition: fill .35s; }
.hl-puff { position: absolute; left: 50%; bottom: 18%; width: 140%; aspect-ratio: 1; margin-left: -70%; border-radius: 50%; background: radial-gradient(circle, var(--c, #FF5FA2) 0 35%, transparent 70%); opacity: 0; pointer-events: none; transform: scale(.3); }
.hl-puff.go { animation: hl-puff .7s ease-out; }
@keyframes hl-puff { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.15); } }
.hl-cousin.done .hl-owl { animation: hl-hop .5s ease 2; }
@keyframes hl-hop { 50% { transform: translateY(-14px); } }
.hl-cousin.wash .hl-owl { animation: we-shiver .1s linear 6; }
.hl-cousin.tk-drop-ok .hl-wish { box-shadow: 0 4px 0 var(--ink), 0 0 0 5px rgba(255, 197, 61, .7); }
.hl-row.party .hl-owl { animation: hl-hop .6s ease-in-out 3; }
.hl-dock { align-items: center; justify-content: center; }
.hl-bowls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; align-content: center; }
.hl-bowl { aspect-ratio: 1; min-height: 72px; max-height: 150px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .6); border-radius: 16px; }
.hl-bowl svg { width: 92%; height: 92%; overflow: visible; }
html[data-layout="tall"] .hl-bowls, html[data-layout="short"] .hl-bowls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-layout="short"] .hl-bowl { min-height: 52px; }
html[data-layout="short"] .hl-bowls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ---------------------------------------------------------------- PRAZNIK: lanterns */
.lm-board { background: #1F2147; }
.lm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lm-swing { animation: lm-swing 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes lm-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.lm-new { animation: lm-drop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lm-drop { from { transform: translateY(-50px); opacity: 0; } }
.lm-hook.empty ellipse { animation: lm-wait 1.4s ease-in-out infinite; }
@keyframes lm-wait { 50% { opacity: .35; } }
.lm-bracket { animation: we-glow 1.1s ease-in-out infinite; }
.lm-dock { align-items: center; justify-content: center; }
.lm-basket { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; width: 100%; padding: 12px 8px; background: #C9935F; border: 3px solid var(--ink); border-radius: 16px 16px 40px 40px; box-shadow: inset 0 -10px 0 rgba(36, 38, 59, .2); background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(36, 38, 59, .12) 10px 13px); }
.lm-basket[hidden] { display: none; }
.lm-item { aspect-ratio: 1; min-height: 72px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .55); border-radius: 14px; }
.lm-item svg { width: 92%; height: 92%; overflow: visible; }
.lm-act { width: 100%; display: flex; justify-content: center; }
.lm-act .tk-btn { width: 100%; max-width: 320px; }
html[data-layout="short"] .lm-basket { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 6px; }
html[data-layout="short"] .lm-item { min-height: 48px; }
html[data-layout="tall"] .lm-basket { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- GDE M4: continents */
.gd-clabel { font: 1000 21px var(--font, Nunito), sans-serif; fill: var(--ink); paint-order: stroke; stroke: #FFF6E5; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; letter-spacing: .02em; }
.gd-conts .gd-cont { cursor: pointer; }

/* ---------------------------------------------------------------- album: culture cards */
.al-card .al-art > svg.al-cu { width: 92%; height: 88px; overflow: hidden; }

/* ---------------------------------------------------------------- calm mode */
html[data-motion="reduce"] :is(.lm-swing, .lm-hook.empty ellipse, .hl-row.party .hl-owl, .hl-cousin.done .hl-owl, .tp-pinata.in, .tika.no-twirl > .tk-owl) { animation: none !important; }
html[data-motion="reduce"] :is(.lm-bracket, .no-model.hint, .tp-menu.hint) { animation: none !important; filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)); }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) :is(.lm-swing, .lm-hook.empty ellipse, .hl-row.party .hl-owl, .hl-cousin.done .hl-owl, .tika.no-twirl > .tk-owl) { animation: none !important; }
  html:not([data-motion="full"]) :is(.lm-bracket, .no-model.hint, .tp-menu.hint) { animation: none !important; filter: drop-shadow(0 0 8px rgba(255, 197, 61, .95)); }
}
/* five spines in the short layout: number + count only (the name is the button's label) */
html[data-layout="short"] .at-sp-name { display: none; }
html[data-layout="short"] .at-spine { justify-content: center; gap: 2px; }
