/* The Good Luck Cats: animated puzzle views (glc-anim.js). The game's own colours only: mapgame.css variables, and the
   band colours mapgame.css already uses for the level's reads (#7cc68a right, #d8c46a close). */
.ga-stage{position:relative;height:190px;margin:.4em 0 .8em;border:1px solid var(--mg-line,rgba(255,255,255,.12));border-radius:10px;overflow:hidden;background:var(--mg-sea,#0b1424)}
.ga-bg{position:absolute;inset:0;background:center/cover no-repeat;opacity:.55;animation:ga-push 24s ease-in-out infinite alternate}
@keyframes ga-push{from{transform:scale(1.02)}to{transform:scale(1.1)}}
.ga-svg{position:absolute;inset:0;width:100%;height:100%}
.ga-sea{fill:rgba(125,138,160,.28)}
.ga-curve{fill:none;stroke:var(--mg-ink,#f3ead7);stroke-width:3;opacity:.85}
.ga-hw line{stroke:var(--mg-accent,#f2b632);stroke-width:2;stroke-dasharray:6 5}
.ga-hw text,.ga-tick text{fill:var(--mg-ink,#f3ead7);font:600 22px Oswald,system-ui,sans-serif;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.55);stroke-width:4px}
.ga-tick line{stroke:var(--mg-ink,#f3ead7);opacity:.6}
.ga-pin circle{fill:var(--mg-accent,#f2b632);stroke:#1b1306;stroke-width:2}
.ga-pin text{fill:#1b1306;font:700 15px system-ui,sans-serif;text-anchor:middle}
.ga-pin{transition:transform .45s cubic-bezier(.3,1.3,.5,1)}
.ga-pin.is-given circle{fill:var(--mg-ink,#f3ead7)}
.ga-pin.is-bad circle{fill:#e9774f;animation:ga-pulse .9s ease-in-out 3}
@keyframes ga-pulse{50%{transform:scale(1.35)}}
.ga-boat{position:absolute;left:8%;bottom:16px;width:46px;height:14px;border-radius:0 0 22px 22px;background:var(--mg-ink,#f3ead7);animation:ga-bob 3s ease-in-out infinite alternate}
.ga-boat::after{content:"";position:absolute;left:20px;bottom:12px;width:3px;height:24px;background:var(--mg-ink,#f3ead7)}
.ga-boat::before{content:"";position:absolute;left:23px;bottom:14px;border-left:16px solid var(--mg-accent,#f2b632);border-top:10px solid transparent;border-bottom:10px solid transparent}
@keyframes ga-bob{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-5px) rotate(2deg)}}
.ga-boat.is-sail{bottom:40px;animation:ga-sail 4s ease-in-out both,ga-bob 3s ease-in-out infinite alternate}
@keyframes ga-sail{from{left:4%}to{left:84%}}
.ga-stage.is-won{border-color:#7cc68a}
.is-shake{animation:ga-shake .45s ease-in-out}
@keyframes ga-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
.ga-hint{margin:.2em 0 .6em;font-size:.9em;opacity:.8}
.ga-hide{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
.ga-no{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:6px;border-radius:50%;background:var(--mg-accent,#f2b632);color:#1b1306;font:700 12px system-ui,sans-serif;font-style:normal;flex:none}
.ga-given .ga-no{background:var(--mg-ink,#f3ead7)}
.mg-pzbody.ga-on label.mg-pzrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ga-chips{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.ga-chip{font:600 15px system-ui,sans-serif;min-height:44px;min-width:64px;padding:0 10px;border-radius:8px;border:1px solid var(--mg-line,rgba(255,255,255,.12));background:rgba(255,255,255,.06);color:var(--mg-ink,#f3ead7);cursor:pointer;touch-action:manipulation;transition:background .2s,border-color .2s}
.ga-chip.is-on{border-color:var(--mg-accent,#f2b632);background:rgba(242,182,50,.25)}
.ga-chip:active{transform:scale(.95)}
.ga-chip:focus-visible,.ga-link:focus-visible,.ga-stone:focus-visible{outline:3px solid var(--mg-accent,#f2b632);outline-offset:2px}
.ga-bad .ga-chip.is-on{border-color:#e9774f}
.ga-ground{stroke:var(--mg-ink,#f3ead7);stroke-width:2;stroke-dasharray:10 8;opacity:.5}
.ga-stone{cursor:grab;touch-action:none;transition:transform .3s ease}
.ga-stone.is-drag{transition:none;cursor:grabbing}
.ga-stone path{fill:#b9b2a3;stroke:#2a2620;stroke-width:3}
.ga-stone text{fill:var(--mg-ink,#f3ead7);font:700 20px system-ui,sans-serif;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.6);stroke-width:4px}
.ga-stone.is-true path{fill:#7cc68a}
.ga-stone.is-close path{fill:#d8c46a}
.ga-stone.is-off path,.ga-stone.is-far path,.ga-stone.is-wild path{fill:#e9a07a}
.ga-stone.is-fall path{fill:#b9b2a3;transform-origin:0 52px;animation:ga-fall .9s ease-in both;animation-delay:calc(var(--i) * .08s)}
@keyframes ga-fall{to{transform:rotate(78deg) translateY(4px)}}
.ga-stone.is-true[style] path{animation:ga-glow 1.6s ease-in-out infinite alternate;animation-delay:calc(var(--i) * .1s)}
@keyframes ga-glow{from{opacity:.75}to{opacity:1}}
.ga-row{display:flex;align-items:center}
.ga-switch{margin:.8em 0 0;font-size:.85em}
.ga-link{background:none;border:0;padding:6px 0;color:var(--mg-dim,#7d8aa0);text-decoration:underline;cursor:pointer;font:inherit}
[dir=rtl] .ga-no{margin-right:0;margin-left:6px}
@media (max-width:600px){.ga-stage{height:160px}}
@media (prefers-reduced-motion:reduce){.ga-bg,.ga-boat,.ga-pin.is-bad circle,.ga-stone path{animation:none!important}.is-shake{animation:none}.ga-stone,.ga-pin{transition:none}}

/* Giza, the old signs (KEY cipher): a papyrus-coloured stone copy, rows of signs with the word your key gives each */
.ga-key-cipher .ga-bg{opacity:.35}
.ga-slab{position:absolute;inset:10px 6%;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:8px 12px;border-radius:8px;background:rgba(233,217,180,.92);box-shadow:inset 0 0 0 3px #8a6a3a}
.ga-srow{display:flex;justify-content:center;gap:14px}
.ga-sg{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:52px}
.ga-sg img{width:34px;height:34px}
.ga-sg b{font:600 12px system-ui,sans-serif;color:#3b2410;min-height:1.2em}
.ga-slab.is-read{box-shadow:inset 0 0 0 3px #7cc68a}
.ga-glow{position:absolute;inset:0;border-radius:8px;animation:ga-glowk 1.6s ease-in-out infinite alternate;background:radial-gradient(circle,rgba(124,198,138,.45),transparent 70%)}
@keyframes ga-glowk{from{opacity:.35}to{opacity:1}}
.mg-pzbody.ga-on label.ga-keyrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ga-keysign{width:30px;height:30px;border-radius:4px}
@media (max-width:600px){.ga-sg{min-width:40px}.ga-sg img{width:28px;height:28px}.ga-srow{gap:8px}}
@media (prefers-reduced-motion:reduce){.ga-glow{animation:none}}
.ga-stage.ga-key-cipher{height:262px}
.ga-key-cipher .ga-slab{gap:4px;padding:6px 10px}
.ga-key-cipher .ga-sg img{width:30px;height:30px}
@media (max-width:600px){.ga-stage.ga-key-cipher{height:246px}.ga-key-cipher .ga-sg img{width:26px;height:26px}}
/* round 3 (QA, 24 Nov): the words under the signs readable on the stone, also under the solved glow */
.ga-slab{isolation:isolate}
.ga-slab .ga-glow{z-index:-1}
.ga-slab .ga-srow{position:relative;z-index:1}
.ga-slab .ga-sg b{color:#2a1606 !important;background:rgba(255,250,236,.92);border-radius:3px;padding:0 4px;font-weight:700;text-shadow:none;opacity:1}
/* round 4 (24 Nov): a stone may have 4, 5 or more rows; every row fits the stone, never cut at the top */
.ga-key-cipher .ga-slab{gap:2px;padding:6px 10px;justify-content:space-evenly}
.ga-key-cipher .ga-srow{gap:10px}
.ga-key-cipher .ga-sg{flex-direction:row;gap:4px;min-width:0}
.ga-key-cipher .ga-sg img{width:calc(min(30px, (226px / var(--n, 4)) - 6px));height:calc(min(30px, (226px / var(--n, 4)) - 6px))}
.ga-key-cipher .ga-sg b{font-size:11px;line-height:1.3;min-width:2.6em}
@media (max-width:600px){.ga-key-cipher .ga-sg img{width:calc(min(26px, (210px / var(--n, 4)) - 6px));height:calc(min(26px, (210px / var(--n, 4)) - 6px))}.ga-key-cipher .ga-srow{gap:6px}}
