/* Listening games (level pages). Prefix lg- */
.lg{max-width:760px;margin:0 auto;font-family:Cairo,Nunito,sans-serif}
.lg *{box-sizing:border-box}
.lg h1{margin:8px 0 4px}
.lg .lg-sub{opacity:.8;margin:0 0 14px}
.lg-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:12px 0}
.lg-card{border:0;border-radius:22px;padding:16px 14px;color:#fff;text-align:center;cursor:pointer;font:inherit;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 6px 0 rgba(0,0,0,.18);transition:transform .12s}
.lg-card:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.18)}
.lg-card .em{font-size:44px;line-height:1}
.lg-card b{font-size:19px}
.lg-card small{opacity:.92;font-size:14px}
.lg-card .st{font-size:22px;letter-spacing:2px;min-height:28px}
.lg-c1{background:linear-gradient(135deg,#7b4de0,#a97bff)}
.lg-c2{background:linear-gradient(135deg,#1f9d6a,#47d4a0)}
.lg-c3{background:linear-gradient(135deg,#ff7a2f,#ffb347)}
.lg-c4{background:linear-gradient(135deg,#d6455d,#ff7e8f)}
.lg-c5{background:linear-gradient(135deg,#1f7fd6,#4fc3ff)}
.lg-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 0 10px;font-weight:800}
.lg-back{border:2px solid #1f2a44;background:#fff;color:#1f2a44;border-radius:14px;padding:6px 14px;font:inherit;font-weight:800;cursor:pointer}
.lg-stage{border-radius:26px;padding:18px 12px 22px;text-align:center;min-height:360px;position:relative;overflow:hidden}
.lg-s1{background:#f1eaff}.lg-s2{background:#e6f8f0}.lg-s3{background:linear-gradient(#bfe7ff,#eaf8ff)}.lg-s4{background:#ffeef0}.lg-s5{background:#e8f4ff}
.lg-q{font-size:20px;font-weight:800;margin:4px 0 12px}
.lg-spk{width:112px;height:112px;border-radius:50%;border:0;font-size:52px;cursor:pointer;color:#fff;background:#1f2a44;box-shadow:0 7px 0 rgba(0,0,0,.25);margin:4px auto 16px;display:block}
.lg-spk:active{transform:translateY(5px);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.lg-opts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;direction:ltr}
.lg-opt{min-width:104px;min-height:104px;border-radius:24px;border:4px solid #1f2a44;background:#fff;font:800 44px Fredoka,Nunito,sans-serif;color:#1f2a44;cursor:pointer;padding:6px 14px}
.lg-opt.pic{font-size:62px;min-width:112px}
.lg-opt.ok{background:#3ecf8e;border-color:#1f9d6a;color:#fff;animation:lgpop .35s}
.lg-opt.no{background:#ff8b98;border-color:#d6455d;animation:lgshake .35s}
@keyframes lgshake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
@keyframes lgpop{50%{transform:scale(1.15)}}
.lg-prog{height:12px;border-radius:8px;background:rgba(0,0,0,.1);overflow:hidden;margin:0 0 12px}
.lg-prog i{display:block;height:100%;background:#1f2a44;width:0;transition:width .3s}
.lg-mem{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;direction:ltr;max-width:420px;margin:8px auto}
.lg-mc{aspect-ratio:1;border-radius:18px;border:0;font:800 36px Fredoka,sans-serif;cursor:pointer;background:#1f9d6a;color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.2)}
.lg-mc.open{background:#fff;color:#1f2a44;border:4px solid #1f9d6a}
.lg-mc.done{background:#bdeed7;color:#1f2a44;border:4px solid #1f9d6a;opacity:.85}
.lg-sky{position:relative;height:310px;direction:ltr}
.lg-bal{position:absolute;width:86px;height:104px;border-radius:50% 50% 48% 48%;border:0;color:#fff;font:800 40px Fredoka,sans-serif;cursor:pointer;animation:lgfloat 3s ease-in-out infinite;box-shadow:inset -8px -8px 0 rgba(0,0,0,.12)}
.lg-bal:after{content:"";position:absolute;bottom:-26px;left:50%;width:2px;height:26px;background:#555}
.lg-bal.pop{animation:lgpopb .35s forwards}
@keyframes lgfloat{50%{transform:translateY(-22px)}}
@keyframes lgpopb{to{transform:scale(1.6);opacity:0}}
.lg-yn{display:flex;gap:14px;justify-content:center;margin-top:16px}
.lg-yn button{flex:1;max-width:220px;min-height:84px;border-radius:24px;border:0;font:800 22px Cairo,sans-serif;color:#fff;cursor:pointer;box-shadow:0 6px 0 rgba(0,0,0,.22)}
.lg-yn .y{background:#1f9d6a}.lg-yn .n{background:#d6455d}
.lg-big{font:800 96px Fredoka,sans-serif;color:#1f2a44;direction:ltr;margin:6px 0;min-height:112px}
.lg-fb{min-height:30px;font-weight:800;font-size:20px;margin-top:10px}
.lg-res{padding:18px 6px}
.lg-res .big{font-size:72px}
.lg-res .stars{font-size:48px;letter-spacing:6px}
.lg-btn{border:0;border-radius:18px;background:#2f5fd0;color:#fff;font:800 19px Cairo,sans-serif;padding:12px 22px;margin:6px;cursor:pointer;box-shadow:0 5px 0 rgba(0,0,0,.2)}
.lg-level{margin:14px 0;padding:12px;border-radius:16px;background:#fff7d6;text-align:center;font-weight:800}
.lg-opts.col{flex-direction:column;align-items:stretch;direction:ltr}
.lg-opt.txt{font-size:30px;min-width:120px;min-height:80px}
.lg-opt.sen{font-size:20px;min-height:64px;min-width:0;width:100%;font-family:Nunito,sans-serif;text-align:center}
.lg-bal.sm{font-size:22px}.lg-bal.em{font-size:48px;background:#fff!important;border:3px solid #ddd}
.lg-big.s{font-size:44px}
.lg-mem.c4{grid-template-columns:repeat(4,1fr)}
.lg-mem.long{grid-template-columns:repeat(2,1fr);max-width:520px}
.lg-mem.long .lg-mc{aspect-ratio:auto;min-height:74px;font-size:19px;font-family:Nunito,sans-serif;padding:6px}
.lg-ans{min-height:70px;border:3px dashed #1f2a44;border-radius:18px;padding:8px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0;background:#fff}
.lg-bank{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0 14px}
.lg-chip{border:0;border-radius:14px;background:#2f5fd0;color:#fff;font:800 22px Nunito,sans-serif;padding:10px 14px;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.2)}
.lg-chip.on{background:#1f9d6a}
.lg-s6{background:#fff4d6}

.lg-scs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:6px 0 12px}
.lg-sc{border:0;border-radius:16px;background:#1f2a44;color:#fff;font:800 17px Cairo,sans-serif;padding:10px 16px;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.lg-note{font-size:15px;opacity:.8;margin-bottom:6px}
.lg-qt{font:800 22px Nunito,sans-serif;margin:8px 4px 14px;line-height:1.4;text-align:left}
.lg-big.tf{font:800 22px Nunito,sans-serif;min-height:0;line-height:1.5;margin:10px 6px;text-align:left}

.lg-big.m{font:800 28px Cairo,Nunito,sans-serif;min-height:0;line-height:1.6;margin:10px 6px;direction:rtl;text-align:center}
.lg-big.m bdi{font-family:Nunito,Fredoka,sans-serif}
.lg-bal.xs{font-size:14px;line-height:1.15;padding:0 4px;word-break:break-word}
.lg-big.m.sm{font-size:20px;line-height:1.7}
.lg-big.s.hs{font:800 24px/1.7 Cairo,sans-serif;direction:rtl;min-height:0}

/* v2 games */
.lg-sea{position:relative;height:300px;direction:ltr;overflow:hidden;border-radius:18px;background:linear-gradient(#e9f6ff,#bfe3ff 70%,#f4e3b5 70%)}
.lg-fish{position:absolute;top:-60px;width:22%;min-height:52px;border:0;border-radius:30px;background:#ff7a2f;color:#fff;font:800 20px Nunito,sans-serif;cursor:pointer;animation:lgfall linear forwards;box-shadow:0 4px 0 rgba(0,0,0,.2);padding:6px 4px;word-break:break-word}
.lg-fish:nth-child(2){background:#2f80ed}.lg-fish:nth-child(3){background:#1f9d6a}.lg-fish:nth-child(4){background:#9b51e0}
.lg-fish.got{background:#3ecf8e;animation-play-state:paused;transform:scale(1.15)}.lg-fish.no{animation-name:lgfall,lgshake}
@keyframes lgfall{to{top:250px}}
.lg-hang{position:relative;height:120px}.lg-balloon{font-size:64px;transition:transform .4s;display:inline-block}.lg-balloon.fly{transform:translateY(-300px) scale(1.4)!important;transition:transform 1.5s}.lg-kid{font-size:44px;margin-top:-18px}
.lg-word{display:flex;gap:8px;justify-content:center;margin:8px 0 12px;flex-wrap:wrap}.lg-lt{width:38px;height:46px;border-bottom:4px solid #1f2a44;font:800 30px Fredoka,sans-serif;color:#1f2a44;display:inline-flex;align-items:flex-end;justify-content:center}.lg-lt.on{color:#1f9d6a}
.lg-kb{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:460px;margin:0 auto}.lg-key{width:40px;height:44px;border:2px solid #1f2a44;border-radius:10px;background:#fff;font:800 20px Fredoka,sans-serif;color:#1f2a44;cursor:pointer}.lg-key:disabled{opacity:.35}.lg-key.no{background:#ff8b98}
.lg-wsl{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:center;margin:0 0 10px;font-weight:800}.lg-wsw small{color:#555;font-weight:700}.lg-wsw.done{text-decoration:line-through;opacity:.5}
.lg-ws{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;max-width:420px;margin:0 auto}.lg-cell{aspect-ratio:1;border:2px solid #1f2a44;border-radius:8px;background:#fff;font:800 20px Fredoka,sans-serif;color:#1f2a44;cursor:pointer;padding:0;text-transform:uppercase}.lg-cell.sel{background:#ffe08a}.lg-cell.found{background:#3ecf8e;color:#fff;border-color:#1f9d6a}.lg-cell.no{background:#ff8b98}
.lg-holes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:460px;margin:8px auto;direction:ltr}.lg-hole{height:110px;border-radius:50%/40%;background:#8b5a2b;position:relative;overflow:hidden;box-shadow:inset 0 10px 0 rgba(0,0,0,.25)}
.lg-mole{position:absolute;left:5%;right:5%;bottom:-110%;height:100%;border:0;border-radius:40% 40% 10px 10px;background:#f6d7a7;cursor:pointer;transition:bottom .25s;font:800 18px Nunito,sans-serif;color:#1f2a44;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;overflow:hidden}
.lg-mole.up{bottom:0}.lg-mole.hit{background:#3ecf8e;color:#fff}.lg-mole.no{animation:lgshake .35s;background:#ff8b98}.lg-mf{font-size:30px;line-height:1}.lg-mt{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lg-mt.pic{font-size:34px}
.lg-board{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-width:400px;margin:6px auto 12px}.lg-tile{aspect-ratio:1;border-radius:12px;background:#fff;border:3px solid #1f2a44;font:800 18px Fredoka,sans-serif;color:#1f2a44;display:flex;align-items:center;justify-content:center;position:relative}.lg-tile.here{background:#ffe08a}.lg-tile.end{background:#ffd748}.lg-tile.start{background:#bdeed7}.lg-pawn{position:absolute;font-size:30px;top:-14px;animation:lgfloat 1.2s ease-in-out infinite}
.lg-mic{width:92px;height:92px;border-radius:50%;border:0;background:#d6455d;color:#fff;font-size:42px;cursor:pointer;box-shadow:0 6px 0 rgba(0,0,0,.25)}.lg-mic.rec{animation:lgpulse 1s infinite;background:#e0457b}.lg-mic.ok{background:#1f9d6a}
@keyframes lgpulse{50%{transform:scale(1.12)}}.lg-heard{min-height:28px;font:700 20px Nunito,sans-serif;color:#555;margin-top:8px}
.lg-simon{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:420px;margin:10px auto}.lg-pad{aspect-ratio:1.3;border:0;border-radius:22px;color:#fff;font:800 22px Nunito,sans-serif;cursor:pointer;opacity:.75;box-shadow:0 6px 0 rgba(0,0,0,.2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:opacity .15s,transform .15s}
.lg-pad.p0{background:#e0457b}.lg-pad.p1{background:#2f80ed}.lg-pad.p2{background:#27ae60}.lg-pad.p3{background:#f2994a}.lg-pad.lit{opacity:1;transform:scale(1.06);box-shadow:0 0 0 6px #fff}
.lg-story{background:#fff;border-radius:16px;padding:12px 14px;margin:0 0 10px;text-align:left}.lg-story p{margin:4px 0;font:600 18px/1.6 Nunito,sans-serif}.lg-story p.ar{font:700 16px/1.8 Cairo,sans-serif;direction:rtl;text-align:right;color:#444}
.lg-clock{font:800 26px Fredoka,sans-serif;background:#1f2a44;color:#fff;border-radius:14px;padding:4px 14px}
.lg-s7{background:#eef7ff}.lg-s8{background:#fff0f5}.lg-s9{background:#f0fff4}.lg-s10{background:#fff8e6}.lg-s11{background:#f3f0ff}.lg-s12{background:#e8fbff}.lg-s13{background:#fff4d6}.lg-s14{background:#ffeef0}
/* ===== v3 (2026-11-13): animated icons ===== */
.lg-card img.em{width:64px;height:64px;object-fit:contain;display:block;margin:0 auto}
.lg-fi{width:30px;height:30px;vertical-align:middle;margin-inline-end:3px}
.lg-balloon{width:72px;height:72px;object-fit:contain}
.lg-res .big .gim{width:88px;height:88px;vertical-align:middle}
.lg-level .gim{vertical-align:middle;margin-inline-end:4px}
.dl-ic img{width:48px;height:48px;vertical-align:middle}
.lg-mf{width:44px;height:44px;object-fit:contain}
/*PHONEFIX*/
.lg-mem,.lg-ws,.lg-holes,.lg-board,.lg-simon,.lg-hub{min-width:0;max-width:100%}
.lg-mem,.lg-mem.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.lg-mem.long{grid-template-columns:repeat(2,minmax(0,1fr))}
.lg-mc{min-width:0;overflow:hidden;padding:0;font-size:clamp(18px,8vw,34px);line-height:1.1;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}
.lg-mem.long .lg-mc{font-size:clamp(15px,4.6vw,19px)}
.lg-ws{grid-template-columns:repeat(9,minmax(0,1fr))}.lg-cell{min-width:0;font-size:clamp(13px,5vw,20px)}
.lg-board{grid-template-columns:repeat(5,minmax(0,1fr))}.lg-tile{min-width:0;overflow:hidden;font-size:clamp(11px,4vw,18px)}
.lg-holes{grid-template-columns:repeat(3,minmax(0,1fr))}.lg-hole{min-width:0}
.lg-simon{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-pad{min-width:0}
