/* Word Explorer – mini-game styles. */

/* ================================================================ shared pieces */
.we-tile { position: relative; width: var(--we-tile); height: var(--we-tile); min-width: 56px; min-height: 56px; border-radius: 16px; background: #FFFDF6; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); font-size: calc(var(--we-tile) * .5); font-weight: 1000; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 auto; touch-action: none; }
.we-tile b { font-weight: 1000; }
.we-tile:nth-child(5n+1) { background: #FFF0B8; } .we-tile:nth-child(5n+2) { background: #D8F1FF; } .we-tile:nth-child(5n+3) { background: #FFE0EC; } .we-tile:nth-child(5n+4) { background: #DDF6D2; } .we-tile:nth-child(5n) { background: #ECE3FF; }
.we-tile.we-faded { opacity: .28; pointer-events: none; filter: grayscale(1); }
.we-tile.we-eaten { visibility: hidden; }
.we-card-pic { background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 6%; display: flex; align-items: center; justify-content: center; }
.we-card-pic svg, .we-picsvg { width: 100%; height: 100%; display: block; }
.we-in { animation: we-cardin .45s cubic-bezier(.3,1.5,.5,1); }
.we-pop { animation: we-popit .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes we-popit { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-3deg); } 100% { transform: none; } }
.we-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 1.1em; height: 1.25em; border: 4px dashed var(--bc, var(--ink-2)); border-radius: 12px; color: transparent; background: rgba(255,197,61,.18); animation: we-gapglow 1.6s ease-in-out infinite; }
@keyframes we-gapglow { 50% { background: rgba(255,197,61,.45); } }
.we-lt-new { color: var(--go); animation: we-popit .5s cubic-bezier(.3,1.6,.5,1); display: inline-block; }
.tk-dropzone.tk-drop-ok { outline: 4px dashed var(--go); outline-offset: 4px; }
.tk-dropzone.tk-drop-over { outline-style: solid; background-color: rgba(23,165,101,.08); }
.we-glow-strong { box-shadow: 0 0 0 6px rgba(255,197,61,.9), 0 5px 0 var(--ink) !important; }
.we-btn-check { min-width: 64px; min-height: 64px; border-radius: 50%; padding: 0; }
.we-btn-check svg { width: 60%; height: 60%; }

/* ================================================================ slovojed */
.we-sj-game { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; padding: 14px; gap: 10px; }
.we-sj-word { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.we-sj-card { width: min(100%, 44vmin, 280px); aspect-ratio: 1; }
.we-sj-card .we-card-pic { width: 100%; height: 100%; }
.we-sj-letters { display: flex; gap: .06em; font-size: clamp(2rem, 7vmin, 3.6rem); font-weight: 1000; letter-spacing: .02em; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: .05em .35em; min-height: 1.4em; align-items: center; }
.we-sj-mouth { width: min(100%, 300px); border-radius: 30px; padding: 6px; }
.we-sj-holder { width: 100%; }
html.we-port .we-sj-game { grid-template-columns: 1fr; grid-template-rows: 1.3fr 1fr; }
html.we-port .we-sj-card { width: min(56vw, 30vh, 280px); }
html.we-port .we-sj-mouth { width: min(62vw, 260px); }
html.we-short .we-sj-card { width: min(38vh, 160px); }
html.we-short .we-sj-letters { font-size: 1.9rem; }
html.we-short .we-sj-mouth { width: 210px; }

/* ================================================================ lupa */
.we-lupa { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr clamp(120px, 18%, 190px); gap: 10px; padding: 10px; }
.we-lupa-page { position: relative; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; }
.we-lupa-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.we-lupa-wanted { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #FFF6D6; border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 8px; transform: rotate(2deg); }
.we-lupa-glass { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--ink); background: radial-gradient(circle at 35% 35%, #fff, #CFEAFF); position: relative; }
.we-lupa-glass::after { content: ""; position: absolute; width: 10px; height: 30px; background: #A86A38; border: 3px solid var(--ink); border-radius: 5px; right: -16px; bottom: -26px; transform: rotate(-45deg); }
.we-lupa-big { font-size: clamp(2.4rem, 8vmin, 4.2rem); font-weight: 1000; line-height: 1; margin-top: 8px; white-space: nowrap; }
.we-lupa-count { font-weight: 1000; font-size: 1.2rem; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 0 12px; }
.we-sticker { position: absolute; width: clamp(56px, 9vmin, 76px); height: clamp(56px, 9vmin, 76px); margin: calc(clamp(56px, 9vmin, 76px) / -2) 0 0 calc(clamp(56px, 9vmin, 76px) / -2); padding: 0; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(36,38,59,.8); transform: rotate(var(--rot)); font-size: clamp(1.7rem, 5vmin, 2.5rem); font-weight: 1000; color: var(--ink); z-index: 2; }
.we-sticker.we-hidden-half::before { content: ""; position: absolute; left: -14%; bottom: -16%; width: 70%; height: 55%; background: #7BC950; border: 3px solid var(--ink); border-radius: 70% 10% 70% 10%; transform: rotate(-20deg); z-index: 3; pointer-events: none; }
.we-sticker.we-got { visibility: hidden; }
.we-sticker.we-dim { opacity: .25; }
.we-sticker.we-magnify { box-shadow: 0 0 0 10px rgba(255,255,255,.8), 0 0 0 14px var(--ink); transform: scale(1.25); transition: transform .3s; }
html.we-port .we-lupa { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
html.we-port .we-lupa-wanted { flex-direction: row; transform: none; padding: 6px 14px; justify-self: center; order: -1; }
html.we-port .we-lupa-glass { width: 40px; height: 40px; }
html.we-port .we-lupa-big { margin: 0; font-size: 2.6rem; }
html.we-short .we-lupa-glass { width: 38px; height: 38px; }
html.we-short .we-lupa-big { font-size: 2.2rem; }

/* ================================================================ trag */
.we-trag { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr clamp(130px, 22%, 220px); gap: 10px; padding: 10px; }
.we-trag-board { position: relative; border: 3px solid var(--ink); border-radius: 18px; background: repeating-linear-gradient(0deg, #fff, #fff 30px, #F3F6FB 31px); min-height: 0; }
.we-trag-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.we-trag-svg:focus-visible { outline: 4px solid var(--orange); outline-offset: -6px; border-radius: 16px; }
.we-tr-lines path { stroke: #C9D6EA; stroke-width: 2; fill: none; }
.we-tr-base { fill: none; stroke: #EFE6D6; stroke-width: 19; stroke-linecap: round; stroke-linejoin: round; }
.we-tr-base.we-tr-cur { stroke: #FFE9A8; }
.we-tr-dots { fill: none; stroke: #8C93AE; stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 11; }
.we-tr-base.we-tr-done { stroke: #E2F3DA; }
.we-tr-inkline { fill: none; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.we-tr-inkline.we-fade { opacity: 0; transition: opacity .5s; }
.we-tr-ghost { fill: none; stroke: rgba(255,150,54,.75); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.we-tr-start { fill: #17A565; stroke: var(--ink); stroke-width: 3; animation: we-startpulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes we-startpulse { 50% { transform: scale(1.25); } }
.we-tr-num { fill: #fff; font: 1000 11px var(--font); text-anchor: middle; pointer-events: none; }
.we-tr-arrow { fill: #FF9636; stroke: var(--ink); stroke-width: 2; }
.we-tr-full .we-tr-inkline { stroke: #17A565 !important; transition: stroke .4s; }
.we-trag-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.we-trag-pic { width: 100%; max-width: 180px; aspect-ratio: 1; }
.we-trag-pic .we-card-pic { width: 100%; height: 100%; }
.we-trag-show { min-height: 56px; }
html.we-port .we-trag { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
html.we-port .we-trag-side { flex-direction: row; }
html.we-port .we-trag-pic { width: 96px; }
html.we-short .we-trag-pic { max-width: 110px; }

/* ================================================================ parovi */
.we-memory { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); grid-auto-rows: var(--ch); gap: 10px; place-content: center; padding: 12px; }
.we-mem-card { width: 100%; height: 100%; padding: 0; background: none; border: 0; perspective: 600px; }
.we-mem-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s ease; }
.we-mem-card.we-open .we-mem-in, .we-mem-card.we-matched .we-mem-in, .we-mem-card.we-peek .we-mem-in { transform: rotateY(180deg); }
.we-mem-back, .we-mem-front { position: absolute; inset: 0; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.we-mem-back { background: var(--b) repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.45) 10px 20px); }
.we-mem-back svg { width: 46%; height: auto; }
.we-mem-front { background: #FFFDF6; transform: rotateY(180deg); padding: 10%; }
.we-mem-front svg { width: 100%; height: 100%; }
.we-mem-l { font-size: calc(var(--cw) * .48); font-weight: 1000; line-height: 1; color: var(--ink); }
.we-mem-tag { font-style: normal; font-size: .72rem; font-weight: 900; color: var(--ink-2); margin-top: 4px; }
.we-cyr { color: #C2342A; } .we-lat { color: #2A6EE5; }
.we-mem-card.we-matched .we-mem-front { background: #E2F6D8; }
.we-mem-card.we-matched { animation: we-popit .5s; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .we-mem-in { transition: none; } }
html[data-motion="reduce"] .we-mem-in { transition: none; }

/* ================================================================ bubanj */
.we-drum { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 12px; padding: 12px; }
.we-drum-left, .we-drum-right { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.we-drum-card { width: min(40vmin, 240px); aspect-ratio: 1; }
.we-drum-card .we-card-pic { width: 100%; height: 100%; }
.we-drum-word { font-size: clamp(1.8rem, 6vmin, 3rem); font-weight: 1000; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: .05em .4em; min-height: 1.5em; display: flex; align-items: center; }
.we-syl { display: inline-block; animation: we-sylhop .6s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * .35s); color: var(--bc, var(--ink)); }
.we-syl:nth-of-type(even) { color: var(--ink); }
.we-syl.we-faint { opacity: .35; animation: none; color: var(--ink); }
.we-syl-dash { margin: 0 .12em; color: var(--ink-3); }
@keyframes we-sylhop { 0% { transform: translateY(0); } 40% { transform: translateY(-16px); } 100% { transform: none; } }
.we-drum-btn { width: min(38vmin, 200px); padding: 0; background: none; border: 0; }
.we-drum-btn svg { width: 100%; height: auto; display: block; }
.we-drum-btn.we-hit { animation: we-drumhit .25s ease-out; }
@keyframes we-drumhit { 30% { transform: scale(.92, .86) translateY(6px); } 100% { transform: none; } }
.we-beads { display: flex; gap: 10px; min-height: 34px; flex-wrap: wrap; justify-content: center; }
.we-bead2 { width: 30px; height: 30px; border-radius: 50%; background: var(--we-gold); border: 3px solid var(--ink); animation: we-beadin .3s cubic-bezier(.3,1.6,.5,1); }
.we-bead2.we-ghost { background: #FF9636; }
.we-drum-ctl { display: flex; gap: 14px; align-items: center; }
.we-drum-undo { min-width: 56px; min-height: 56px; border-radius: 50%; padding: 0; }
.we-drum-undo svg { width: 55%; height: 55%; }
.we-drum-ok { opacity: .55; }
.we-drum-ok.we-ready { opacity: 1; animation: we-glowpulse 1.6s ease-in-out 1s infinite; }
.we-cutrow { display: flex; align-items: center; }
.we-cl { width: 40px; text-align: center; transition: color .3s; }
.we-cl.we-good { color: var(--go); }
.we-gapbtn { position: relative; width: 40px; height: 64px; margin: 0 -20px; padding: 0; background: none; border: 0; z-index: 2; }
.we-gapbtn i { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 0; border-left: 4px dashed rgba(36,38,59,.18); }
.we-gapbtn.on i { border-left: 5px solid var(--tomato); }
.we-gapbtn.on::after { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -8px; width: 0; height: 0; border: 8px solid transparent; border-top: 10px solid var(--tomato); }
.we-cut .we-drum-word { padding: .05em .6em; }
html.we-port .we-drum { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; }
html.we-port .we-drum-card { width: min(44vw, 24vh, 220px); }
html.we-short .we-drum-card { width: 34vh; }
html.we-short .we-drum-btn { width: 150px; }
html.we-short .we-drum-word { font-size: 1.8rem; }

/* ================================================================ voz */
.we-train { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #DDF3FF 0 62%, #A6DB86 62%); }
.we-train-pic { width: min(30vmin, 190px); aspect-ratio: 1; }
.we-train-pic .we-card-pic { width: 100%; height: 100%; }
.we-train-row { display: flex; align-items: flex-end; gap: 6px; transition: transform 1.2s cubic-bezier(.5,0,.8,.4); z-index: 2; }
.we-train-row.we-go { transform: translateX(120vw); }
.we-train-cars { display: flex; gap: 8px; align-items: flex-end; }
.we-train-loco { width: clamp(90px, 15vmin, 130px); }
.we-train-loco svg { width: 100%; height: auto; display: block; }
.we-wagon { position: relative; width: clamp(84px, 14vmin, 120px); height: clamp(70px, 11vmin, 92px); border: 4px dashed rgba(36,38,59,.45); border-radius: 12px; background: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.we-wheel { position: absolute; bottom: -14px; width: 22px; height: 22px; border-radius: 50%; background: #3A3A48; border: 3px solid var(--ink); }
.we-wheel:first-child { left: 12%; } .we-wheel:nth-child(2) { right: 12%; }
.we-car { position: relative; width: clamp(80px, 13vmin, 112px); height: clamp(62px, 10vmin, 82px); border-radius: 12px; background: var(--c); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: clamp(1.4rem, 4.4vmin, 2.1rem); font-weight: 1000; color: var(--ink); padding: 0; touch-action: none; z-index: 3; }
.we-wagon .we-car { box-shadow: none; }
.we-car-ok { outline: 4px solid var(--go); }
.we-rails { position: absolute; left: 0; right: 0; bottom: calc(50% - 90px); height: 0; }
html.we-port .we-train-row { flex-wrap: wrap; justify-content: center; }
html.we-port .we-train-loco { width: 86px; }
html.we-port .we-wagon { width: clamp(66px, 20vw, 100px); }
html.we-narrow .we-car { width: 74px; }
html.we-short .we-train-pic { width: 120px; }
html.we-short .we-train { gap: 6px; }
html.we-short .we-wagon { height: 64px; }

/* ================================================================ slagalica */
.we-spell { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px; }
.we-spell-card { width: min(34vmin, 210px); aspect-ratio: 1; }
.we-spell-card .we-card-pic { width: 100%; height: 100%; }
.we-spell-slots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; --s: clamp(54px, min(11vmin, calc((100vw - 120px) / var(--n) - 6px)), 84px); }
.we-slot { position: relative; width: var(--s); height: calc(var(--s) * 1.12); border: 4px dashed rgba(36,38,59,.45); border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: calc(var(--s) * .55); font-weight: 1000; }
.we-slot-pre, .we-slot-done { border-style: solid; border-color: var(--ink); background: #FFFDF6; }
.we-slot-done { background: #E2F6D8; animation: we-popit .4s; }
.we-slot .we-tile { --we-tile: calc(var(--s) - 6px); box-shadow: none; }
.we-slot-hint::after, .we-slot-peek::after { content: attr(data-hint); position: absolute; color: rgba(36,38,59,.25); }
.we-slot-peek::after { color: var(--ink); }
html.we-short .we-spell { flex-direction: row; }
html.we-short .we-spell-card { width: 150px; }

/* ================================================================ citaj */
.we-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 4vmin, 34px); padding: 12px; }
.we-scroll { position: relative; background: #FFF6D6; border: 4px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: .1em .8em; min-width: 40%; text-align: center; }
.we-scroll::before, .we-scroll::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 18px; background: #E8C18A; border: 4px solid var(--ink); border-radius: 10px; }
.we-scroll::before { left: -14px; } .we-scroll::after { right: -14px; }
.we-scroll-word { font-size: clamp(2.4rem, 9vmin, 4.6rem); font-weight: 1000; letter-spacing: .03em; display: inline-flex; }
.we-rl { transition: color .2s, transform .2s; display: inline-block; }
.we-rl-on { color: var(--tomato); transform: translateY(-6px); }
.we-read-pics { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 2.4vmin, 22px); width: min(100%, calc(var(--n) * 190px)); }
.we-read-pic { aspect-ratio: 1; background: #fff; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 10%; min-width: 64px; transition: opacity .3s, transform .2s; }
.we-read-pic:hover { transform: translateY(-3px); }
.we-read-pic.we-out { opacity: .2; pointer-events: none; }
.we-read-pic.we-chosen { background: #E2F6D8; transform: scale(1.08); }
.we-read-pic.we-nope { background: #FFE1DC; }
html.we-port .we-read-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 360px); }
html.we-short .we-read { flex-direction: row; }
html.we-short .we-read-pics { width: auto; grid-template-columns: repeat(min(var(--n), 2), 96px); gap: 8px; }
html.we-short .we-read-pic { border-radius: 14px; padding: 6%; }
html.we-short .we-scroll-word { font-size: 2.2rem; }

/* ================================================================ rime */
.we-rhyme { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.we-rcard { position: relative; width: clamp(80px, 15vmin, 130px); background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); touch-action: none; }
.we-rcard svg { width: 100%; aspect-ratio: 1; height: auto; }
.we-rcard-w { font-weight: 1000; font-size: clamp(.85rem, 2.2vmin, 1.1rem); }
.we-rcard.we-faded { opacity: .25; pointer-events: none; }
.we-rhyme-center { display: flex; align-items: center; gap: 18px; }
.we-rhyme-main .we-rcard { width: clamp(120px, 26vmin, 220px); }
.we-rhyme-slot { width: clamp(120px, 26vmin, 220px); min-height: clamp(120px, 26vmin, 220px); border: 5px dashed rgba(36,38,59,.4); border-radius: 22px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.6); }
.we-rhyme-slot .we-rcard { width: 100%; box-shadow: none; }
.we-rhymed .we-rhyme-center { animation: we-hug .8s ease; }
@keyframes we-hug { 30% { transform: scale(1.06) rotate(-2deg); } 60% { transform: scale(1.03) rotate(2deg); } }
.we-rhyme-cols { display: grid; grid-template-columns: auto auto; gap: clamp(20px, 8vw, 90px); align-items: center; }
.we-rhyme-left, .we-rhyme-right { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.we-rhyme-left .we-rcard, .we-rhyme-z .we-rcard { width: clamp(70px, min(11vh, 14vw), 112px); }
.we-rhyme-z { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 20px; }
.we-rhyme-dock { display: flex; min-width: 8px; }
.we-rhyme-z.we-paired { background: #E2F6D8; outline: 3px solid var(--go); }
.we-rhyme-z.we-paired .we-rcard { box-shadow: none; }
html.we-port .we-rhyme-center { flex-direction: column; }
html.we-port .we-rhyme-main .we-rcard, html.we-port .we-rhyme-slot { width: clamp(110px, 22vh, 190px); min-height: clamp(110px, 22vh, 190px); }
html.we-short .we-rhyme-left, html.we-short .we-rhyme-right { flex-direction: row; }
html.we-short .we-rhyme-cols { grid-template-columns: auto; gap: 10px; }
html.we-short .we-rhyme-left .we-rcard, html.we-short .we-rhyme-z .we-rcard { width: 70px; }
html.we-short .we-rhyme-main .we-rcard, html.we-short .we-rhyme-slot { width: 130px; min-height: 130px; }

/* ================================================================ klackalica */
.we-seesaw { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: linear-gradient(180deg, transparent 70%, #CDEBB8 70%); border-radius: 18px; }
.we-ss-plank { position: relative; width: min(92%, 640px); height: 22px; background: #FF9636; border: 4px solid var(--ink); border-radius: 12px; transform: rotate(-9deg); transition: transform .8s cubic-bezier(.3,1.5,.5,1); margin-top: clamp(110px, 24vmin, 200px); z-index: 2; }
.we-ss-plank.we-level { transform: rotate(0); }
.we-ss-plank.we-wobble { animation: we-wob .7s ease; }
@keyframes we-wob { 30% { transform: rotate(-16deg); } 60% { transform: rotate(-5deg); } 100% { transform: rotate(-9deg); } }
.we-ss-seat { position: absolute; bottom: 100%; width: clamp(96px, 20vmin, 160px); min-height: clamp(96px, 20vmin, 160px); display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.we-ss-l { left: 4%; }
.we-ss-r { right: 4%; border: 5px dashed rgba(36,38,59,.4); border-radius: 18px; background: rgba(255,255,255,.55); }
.we-ss-base { width: 0; height: 0; border-left: 46px solid transparent; border-right: 46px solid transparent; border-bottom: 70px solid #8E5B33; filter: drop-shadow(0 4px 0 var(--ink)); margin-top: -4px; }
.we-ocard { width: clamp(84px, 16vmin, 140px); background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); touch-action: none; }
.we-ocard svg { width: 100%; aspect-ratio: 1; height: auto; }
.we-ocard-t { font-weight: 1000; font-size: clamp(.9rem, 2.4vmin, 1.2rem); }
.we-ocard-w { min-height: 64px; justify-content: center; }
.we-ocard-w .we-ocard-t { font-size: clamp(1.1rem, 3vmin, 1.5rem); }
.we-ss-seat .we-ocard { width: 100%; box-shadow: none; }
.we-ocard.we-faded { opacity: .25; pointer-events: none; }
html.we-short .we-ss-plank { margin-top: 112px; }
html.we-short .we-ss-seat { width: 100px; min-height: 100px; }
html.we-short .we-ss-base { border-bottom-width: 40px; }

/* ================================================================ mladunci */
.we-meadow { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #DDF3FF 0 45%, #A6DB86 45%); }
.we-mead-bg { position: absolute; left: 0; right: 0; top: 40%; height: 30%; background: radial-gradient(ellipse at 30% 0, #8ACB6B 0 40%, transparent 41%), radial-gradient(ellipse at 80% 10%, #8ACB6B 0 35%, transparent 36%); }
.we-moms { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); align-items: end; justify-items: center; padding: 14px 10px 18px; gap: 8px; }
.we-mom { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 20px; }
.we-mom-pic { width: clamp(90px, 18vmin, 160px); aspect-ratio: 1; display: block; }
.we-mom-pic svg { width: 100%; height: 100%; }
.we-mom-name { font-weight: 1000; font-size: clamp(.95rem, 2.4vmin, 1.2rem); background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.we-mom-dock { position: absolute; right: -14%; bottom: 8%; display: flex; }
.we-mom-dock .we-baby { width: clamp(56px, 10vmin, 86px); box-shadow: none; animation: we-popit .5s; }
.we-mom.we-family { background: rgba(255,255,255,.55); }
.we-baby { width: clamp(64px, 11vmin, 92px); aspect-ratio: 1; background: #fff; border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); padding: 8px; touch-action: none; }
.we-baby svg { width: 100%; height: 100%; }
.we-baby-w { aspect-ratio: auto; min-height: 64px; width: auto; min-width: 96px; border-radius: 16px; font-size: clamp(1.1rem, 3vmin, 1.5rem); font-weight: 1000; color: var(--ink); }
html.we-port .we-moms { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
html.we-short .we-mom-pic { width: 92px; }

/* ================================================================ smanjivac */
.we-shrink { position: absolute; inset: 0; padding: 12px; }
.we-shrink-find { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(10px, 3vmin, 26px); }
.we-dcard { position: relative; width: clamp(110px, 22vmin, 180px); aspect-ratio: 1; background: #fff; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; color: var(--ink); }
.we-dcard svg { width: 100%; height: 100%; }
.we-dsmall { width: clamp(70px, 12vmin, 104px); padding: 10%; }
.we-dcard.we-faded { opacity: .25; pointer-events: none; }
.we-dcard.we-chosen { background: #E2F6D8; }
.we-dcard.we-gone { visibility: hidden; }
.we-dword { font-weight: 1000; font-size: clamp(1rem, 2.6vmin, 1.3rem); }
.we-shrink-build { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 10px; }
.we-machine { width: clamp(130px, 26vmin, 220px); border-radius: 24px; }
.we-machine svg { width: 100%; height: auto; display: block; }
.we-machine.we-working svg { animation: we-shake2 .15s linear infinite; }
@keyframes we-shake2 { 50% { transform: translate(2px, -2px) rotate(1deg); } }
.we-shrink-out { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.we-shrink-word { display: flex; align-items: center; font-size: clamp(1.8rem, 5.6vmin, 2.8rem); font-weight: 1000; min-height: 1.6em; }
.we-endslot { min-width: 2.4em; height: 1.5em; border: 4px dashed rgba(36,38,59,.45); border-radius: 12px; margin-left: 2px; display: flex; align-items: center; justify-content: center; }
.we-endslot .we-end { box-shadow: none; min-height: 0; height: 100%; }
.we-end { min-width: 80px; min-height: 60px; padding: 0 12px; border-radius: 14px; background: #FFF0B8; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: clamp(1.4rem, 4vmin, 2rem); font-weight: 1000; color: var(--ink); touch-action: none; }
.we-end.we-faded { opacity: .25; pointer-events: none; }
.we-word-ok { color: var(--go); }
html.we-port .we-shrink-build { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
html.we-short .we-machine { width: 130px; }

/* ================================================================ recenica */
.we-sent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; }
.we-sent-scene { width: min(100%, 520px, 58vh); aspect-ratio: 16 / 10; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; flex: 0 1 auto; min-height: 0; filter: saturate(.75); transition: filter .5s; }
.we-sent-scene.we-alive { filter: none; }
.we-sent-scene .we-sc-item > .we-sc-in { animation-play-state: paused; }
.we-sent-scene.we-alive .we-sc-item > .we-sc-in { animation-play-state: running; }
.we-sent-slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.we-wslot { min-width: clamp(80px, 13vmin, 120px); min-height: 60px; border: 4px dashed rgba(36,38,59,.45); border-radius: 14px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.we-wslot-mark { min-width: 56px; }
.we-wcard { min-height: 56px; min-width: 64px; padding: 4px 14px; border-radius: 14px; background: #FFFDF6; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: clamp(1.15rem, 3.2vmin, 1.6rem); font-weight: 1000; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; touch-action: none; }
.we-wcard:nth-child(4n+1) { background: #FFF0B8; } .we-wcard:nth-child(4n+2) { background: #D8F1FF; } .we-wcard:nth-child(4n+3) { background: #FFE0EC; } .we-wcard:nth-child(4n) { background: #DDF6D2; }
.we-wslot .we-wcard { box-shadow: none; }
.we-wcard.we-ok { outline: 4px solid var(--go); }
.we-wicon { width: 34px; height: 34px; display: inline-block; }
.we-wicon svg { width: 100%; height: 100%; }
.we-wcard-mark { min-width: 56px; justify-content: center; font-size: 2rem; }
.we-has-tray .we-tray { flex-wrap: wrap; align-content: center; }
html.we-short .we-sent { flex-direction: row; }
html.we-short .we-sent-scene { width: 230px; }

/* ================================================================ znak */
.we-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.we-mark-card { display: flex; align-items: center; gap: clamp(12px, 3vmin, 28px); background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(12px, 3vmin, 26px); max-width: 100%; }
.we-mark-pic { width: clamp(90px, 18vmin, 150px); aspect-ratio: 1; flex: 0 0 auto; }
.we-mark-pic svg { width: 100%; height: 100%; }
.we-mark-text { margin: 0; font-size: clamp(1.6rem, 5.2vmin, 2.8rem); font-weight: 1000; line-height: 1.25; }
.we-mark-hint { border-radius: 8px; padding: 0 2px; transition: background .3s; }
.we-mark-hint.we-on { background: #FFE27A; box-shadow: 0 0 0 3px #FFC53D; }
.we-mark-gap { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.3em; margin-left: 4px; border: 4px dashed var(--bc, #8C93AE); border-radius: 12px; vertical-align: middle; color: var(--tomato); animation: we-gapglow 1.6s ease-in-out infinite; }
.we-mark-gap.we-filled { border-style: solid; border-color: var(--go); animation: we-popit .5s; background: #E2F6D8; }
.we-mstone { width: clamp(68px, 12vmin, 92px); height: clamp(68px, 12vmin, 92px); border-radius: 50%; background: #CFE3FF; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: clamp(2.2rem, 7vmin, 3.2rem); font-weight: 1000; color: var(--ink); line-height: 1; touch-action: none; }
.we-mstone:nth-child(2) { background: #FFE0EC; } .we-mstone:nth-child(3) { background: #FFF0B8; }
.we-mstone.we-faded { opacity: .25; pointer-events: none; }
html.we-port .we-mark-card { flex-direction: column; text-align: center; }

/* ================================================================ veliko */
.we-caps { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.we-caps-page { background: repeating-linear-gradient(180deg, #FFFDF6 0 46px, #DCE6F4 46px 48px); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(14px, 3vmin, 28px); max-width: 100%; }
.we-caps-text { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; font-size: clamp(1.6rem, 5vmin, 2.6rem); font-weight: 900; }
.we-cword { min-width: 48px; min-height: 56px; padding: 2px 10px; border-radius: 12px; background: transparent; border: 3px solid transparent; font: inherit; color: var(--ink); }
.we-cword:hover { background: rgba(255,197,61,.18); border-color: rgba(36,38,59,.15); }
.we-cword.we-big { color: var(--go); }
.we-cword.we-big span { display: inline-block; animation: we-grow .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes we-grow { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: none; } }
.we-cword.we-wobble { animation: we-wobble .5s ease; }
@keyframes we-wobble { 25% { transform: rotate(-6deg); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-3deg); } }
.we-caps-gap { font-size: 1em; }

/* ================================================================ tvrdomeko */
.we-hats { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 10px; padding: 12px; }
.we-hat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 24px; }
.we-hat-svg { width: clamp(120px, 24vmin, 210px); display: block; }
.we-hat-svg svg { width: 100%; height: auto; display: block; }
.we-hat-label { display: flex; align-items: center; gap: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px 2px 6px; font-size: clamp(.95rem, 2.6vmin, 1.25rem); }
.we-hat-label i { width: 30px; height: 24px; display: inline-flex; }
.we-hat-label i svg { width: 100%; height: 100%; }
.we-hat-label em { font-style: normal; font-weight: 1000; font-size: 1.35em; color: var(--tomato); }
.we-hat[data-h="soft"] .we-hat-label em { color: #D23C8C; }
.we-hat.we-hat-happy .we-hat-svg { animation: we-popit .6s; }
.we-hat.we-hat-sneeze .we-hat-svg { animation: we-achoo .6s ease; }
@keyframes we-achoo { 30% { transform: scale(1.1, .85) rotate(-6deg); } 60% { transform: scale(.95, 1.08) rotate(5deg); } }
.we-hcard { width: clamp(120px, 22vmin, 190px); background: #FFFDF6; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); touch-action: none; }
.we-hcard svg { width: 72%; aspect-ratio: 1; height: auto; }
.we-hword { font-size: clamp(1.3rem, 4vmin, 2rem); font-weight: 1000; display: inline-flex; align-items: center; }
.we-hgap { display: inline-flex; min-width: .9em; height: 1.2em; align-items: center; justify-content: center; border: 3px dashed var(--tomato); border-radius: 8px; color: transparent; margin: 0 1px; }
.we-hgap.we-filled { color: var(--go); border-style: solid; border-color: var(--go); }
html.we-port .we-hats { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
html.we-port .we-hat-card { grid-column: 1 / span 2; grid-row: 1; }
html.we-short .we-hat-svg { width: 130px; }

/* ================================================================ brojimo */
.we-count { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 12px; align-items: center; }
.we-pile { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; padding: 12px; background: #F6E3C2; border: 4px solid var(--ink); border-radius: 20px; min-height: 60%; box-shadow: inset 0 -10px 0 rgba(168,106,56,.25); }
.we-thing { width: clamp(64px, 13vmin, 104px); aspect-ratio: 1; padding: 4px; background: none; border: 0; transform: rotate(var(--rot)); }
.we-thing svg { width: 100%; height: 100%; }
.we-basket-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.we-basket { position: relative; width: min(100%, 300px); min-height: clamp(120px, 26vmin, 200px); background: #E8B97E; border: 4px solid var(--ink); border-radius: 18px 18px 60px 60px; padding: 10px; background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(168,106,56,.35) 18px 22px); }
.we-basket-in { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.we-basket-in .we-thing { width: clamp(46px, 8vmin, 64px); }
.we-basket-n { position: absolute; top: -18px; right: -14px; min-width: 46px; height: 46px; border-radius: 23px; background: var(--go); color: #fff; border: 4px solid var(--ink); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.we-basket-n.we-bump { animation: we-popit .35s; }
.we-basket-n.we-goal::after { content: "/" attr(data-goal); margin-left: 2px; }
.we-count-label { display: flex; gap: 10px; align-items: center; font-size: clamp(1.6rem, 5vmin, 2.4rem); font-weight: 1000; min-height: 1.4em; }
.we-form-gap { min-width: 3em; text-align: center; border: 4px dashed var(--tomato); border-radius: 12px; padding: 0 .3em; color: transparent; }
.we-form-gap.we-filled { color: var(--go); border-style: solid; border-color: var(--go); }
.we-count-forms { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.we-form { min-height: 56px; min-width: 90px; padding: 4px 14px; border-radius: 14px; background: #D8F1FF; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: clamp(1.2rem, 3.4vmin, 1.6rem); font-weight: 1000; color: var(--ink); }
.we-form.we-faded { opacity: .25; pointer-events: none; }
html.we-port .we-count { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
html.we-port .we-pile { min-height: 0; }
html.we-short .we-thing { width: 48px; }
html.we-short .we-basket { min-height: 110px; }

/* ================================================================ sort */
.we-sort { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 10px; padding: 12px; }
.we-sort-card { min-height: clamp(110px, 24vmin, 190px); display: flex; align-items: center; justify-content: center; }
.we-scard { min-width: clamp(130px, 24vmin, 200px); background: #FFFDF6; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); touch-action: none; }
.we-scard svg { width: clamp(64px, 13vmin, 110px); height: auto; aspect-ratio: 1; }
.we-scard b { font-size: clamp(1.2rem, 3.6vmin, 1.8rem); font-weight: 1000; }
.we-scard.we-gone { visibility: hidden; }
.we-bins { display: flex; gap: clamp(10px, 3vmin, 30px); justify-content: center; width: 100%; }
.we-bin { position: relative; flex: 0 1 220px; min-height: clamp(110px, 22vmin, 170px); border: 4px solid var(--ink); border-radius: 20px; background: color-mix(in srgb, var(--c) 16%, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; box-shadow: 0 5px 0 var(--ink); }
.we-bin-house { width: 70%; max-width: 120px; }
.we-bin-ico { width: clamp(46px, 9vmin, 72px); }
.we-bin-ico svg { width: 100%; height: auto; }
.we-bin-t { font-size: clamp(1.1rem, 3.2vmin, 1.6rem); font-weight: 1000; color: var(--c); text-shadow: 0 1px 0 #fff; }
.we-bin-in { position: absolute; top: -12px; right: -10px; min-width: 32px; height: 32px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); font-weight: 1000; display: flex; align-items: center; justify-content: center; }
.we-bin-in:empty { display: none; }
.we-bin.we-bin-yes { animation: we-popit .6s; }
html.we-short .we-sort { flex-direction: row; }
html.we-short .we-bin { min-height: 110px; flex-basis: 150px; }
html.we-narrow .we-bin-t { font-size: 1rem; }
.we-trag-pic .we-pre { opacity: .45; filter: grayscale(.6); }
html.we-port .we-mom-pic { width: clamp(110px, 30vw, 200px); }
html.we-port .we-baby { width: clamp(72px, 18vw, 104px); }
.we-shrink-src::after { content: ""; display: block; }
