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

/* ================================================================ brojanje (counting) */
.lq-count { position: absolute; inset: 0; }
.lq-sky-row { position: absolute; left: 2%; right: 2%; top: 2%; height: 34%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; z-index: 4; }
.lq-balloon { width: clamp(64px, 10vmin, 92px); height: clamp(74px, 12vmin, 108px); padding: 0; background: none; border: 0; animation: lq-floaty 3s ease-in-out infinite; animation-delay: var(--d); }
.lq-balloon svg { width: 100%; height: 100%; display: block; }
@keyframes lq-floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.lq-balloon.lq-float { transform: translateY(-30px); transition: transform .5s; opacity: .7; }
.lq-balloon.lq-popped { animation: lq-popb .3s ease forwards; pointer-events: none; }
@keyframes lq-popb { 50% { transform: scale(1.3); } to { transform: scale(0); opacity: 0; } }
.lq-balloon.lq-off { opacity: .3; pointer-events: none; }
.lq-balloon.lq-up { position: relative; order: var(--slot); animation: none; transform: translateY(-6px) scale(.86); filter: drop-shadow(0 0 8px #FFE27A); }
.lq-count[data-mode="desetice"] .lq-sky-row { top: 4%; height: 70%; }
.lq-pool { position: absolute; left: 4%; right: 40%; top: 38%; bottom: 4%; display: none; background: radial-gradient(ellipse, #8FD0F5, #4FA8E8); border: 5px solid #8C93A8; outline: 3px solid var(--ink); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; z-index: 3; }
.lq-pool.lq-on { display: block; }
.lq-critter { position: absolute; width: clamp(44px, 7vmin, 66px); height: clamp(44px, 7vmin, 66px); translate: -50% -50%; padding: 0; background: none; border: 0; }
.lq-critter svg { width: 100%; height: 100%; }
.lq-critter.lq-counted::after { content: attr(data-k); position: absolute; right: -6px; top: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: #FFE27A; border: 2px solid var(--ink); font-size: .8rem; font-weight: 1000; display: flex; align-items: center; justify-content: center; }
.lq-sand { position: absolute; left: 3%; right: 38%; top: 40%; bottom: 3%; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); align-content: center; justify-items: center; gap: 4px; z-index: 3; }
.lq-cshell { width: 64px; height: 64px; padding: 4px; background: none; border: 0; rotate: var(--rot); transition: opacity .2s, transform .2s; }
.lq-cshell svg { width: 100%; height: 100%; }
.lq-cshell.lq-in { opacity: .18; transform: scale(.7); }
.lq-pufna { position: absolute; right: 2%; bottom: 3%; width: 34%; max-width: 300px; z-index: 3; }
.lq-pufna-art svg { width: 100%; height: auto; display: block; }
.lq-pufna.lq-clap .lq-pufna-art { animation: lq-hop2 .4s ease 3; }
.lq-bucket { position: absolute; right: -4%; bottom: 0; width: 56%; padding: 0; background: none; border: 0; }
.lq-bucket svg { width: 100%; height: auto; display: block; }
.lq-tenframe { position: absolute; left: 24%; right: 24%; top: 40%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.lq-tenframe i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.45); border: 2px solid rgba(36,38,59,.5); }
.lq-tenframe i.lq-on { background: #FFC0CB; border-color: var(--ink); }
.lq-tenframe i.lq-target { outline: 2px dashed #fff; outline-offset: 1px; }
.lq-tenframe.lq-counting i.lq-on { animation: lq-pop .4s ease infinite alternate; }
.lq-done { position: absolute; right: 2%; top: 38%; z-index: 6; min-height: 72px; display: none; }
.lq-count[data-mode="kofica"] ~ .lq-done, .lq-count[data-mode="kofica"] .lq-done { display: inline-flex; }
.lq-count[data-mode="koliko"] .lq-pufna, .lq-count[data-mode="pronadji"] .lq-pufna { width: 26%; }
.lq-count[data-mode="pronadji"] .lq-sky-row, .lq-count[data-mode="koliko"] .lq-sky-row { height: 34%; }
.lq-count[data-mode="pronadji"] .lq-bucket, .lq-count[data-mode="koliko"] .lq-bucket, .lq-count[data-mode="desetice"] .lq-bucket { display: none; }
.lq-toyboat { position: absolute; left: 40%; bottom: 4%; width: 22%; z-index: 2; transition: transform 1.6s ease-in; }
.lq-toyboat.lq-lift { transform: translateY(-40vh) rotate(-8deg); }
html.lq-port .lq-sky-row { top: 1%; height: 24%; }
html.lq-port .lq-pufna { right: 2%; top: 26%; bottom: auto; width: 46%; }
html.lq-port .lq-sand { left: 2%; right: 2%; top: 56%; bottom: 2%; }
html.lq-port .lq-done { right: auto; left: 4%; top: 36%; }
html.lq-port .lq-pool { left: 4%; right: 4%; top: 52%; bottom: 3%; }
html.lq-port .lq-count[data-mode="koliko"] .lq-pufna { top: 27%; width: 34%; }
html.lq-compact .lq-sky-row { height: 40%; }
html.lq-compact .lq-balloon { width: 58px; height: 66px; }
html.lq-compact .lq-sand { top: 46%; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
html.lq-compact .lq-cshell { width: 56px; height: 56px; }
html.lq-compact .lq-done { min-height: 60px; top: 44%; }
/* "find the number" held upright: the balloons float lower and bigger (the sand is not used) */
html.lq-port .lq-count[data-mode="pronadji"] .lq-sky-row { top: 13%; height: 44%; }
html.lq-port .lq-count[data-mode="pronadji"] .lq-balloon { width: min(84px, 21vw); height: min(98px, 25vw); }
html.lq-port .lq-count[data-mode="pronadji"] .lq-pufna { top: auto; bottom: 8%; right: 8%; width: 44%; }
