/* LapKa — мини-игры, набор A (js/games-a.js): Битва с ёкаем, Пузыри, Суши-конвейер, Башня, Аудио-додзё, Скоропечать, Найди лишнее.
   Все классы — с префиксом ga-. Цвета интерфейса — через переменные тем; жёстко заданы только декоративные. */

/* ---------- общее ---------- */
.ga-root { flex: 1 1 auto; min-height: 0; max-height: 780px; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pill.ga-pill { padding: 4px 10px; font-size: 14px; gap: 4px; }
.ga-shake { animation: ga-shake .4s; }

.ga-intro { margin: auto; width: 100%; max-width: 440px; padding: 4px 4px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ga-intro-art { animation: ga-bob 2.6s ease-in-out infinite; }
.ga-intro-text { color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1.45; }
.ga-vs { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.ga-vs b { align-self: center; margin: 0 2px; font-size: 20px; font-weight: 900; color: var(--pri); }
.ga-vs-cat svg { display: block; width: 76px; height: 76px; }
.ga-vs-yk { width: 56px; }
.ga-yk { display: block; width: 100%; height: auto; overflow: visible; }

/* полоса таймера */
.ga-timer { flex: none; height: 12px; border-radius: 99px; border: 2.5px solid var(--edge); background: var(--card); overflow: hidden; }
.ga-timer i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transition: transform .1s linear; }
.ga-timer.low i { background: var(--bad); }
.ga-timer.hit { animation: ga-shake .3s; }
.ga-trow { flex: none; display: flex; align-items: center; gap: 8px; }
.ga-trow .ga-timer { flex: 1; }
.ga-tsec { min-width: 26px; text-align: right; font-weight: 900; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.ga-timer.low + .ga-tsec { color: var(--bad); }

/* вопрос и четыре варианта */
.ga-q { flex: none; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; line-height: 1.15; }
.ga-q small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ga-q-jp { font-size: 38px; line-height: 1.15; font-weight: 600; }
.ga-q-jp.m { font-size: 29px; }
.ga-q-jp.s { font-size: 21px; }
.ga-q-jp.t { font-size: 16px; }
.ga-q-ru { font-size: 21px; font-weight: 900; overflow-wrap: anywhere; }
.ga-opts { flex: none; width: 100%; min-height: 118px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.ga-opt { min-height: 54px; padding: 6px 8px; border-radius: 16px; border: 2.5px solid var(--edge); background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--edge); font-weight: 800; font-size: 16px; line-height: 1.15; display: grid; place-items: center; text-align: center; overflow-wrap: anywhere; transition: transform .08s, box-shadow .08s, background .12s; }
.ga-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.ga-opt:disabled { cursor: default; }
.ga-opt.xs { font-size: 13.5px; }
.ga-opt.lat { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.ga-opt.jp { font-size: 25px; font-weight: 600; }
.ga-opt.jp.s6 { font-size: 17px; }
.ga-opt.ok { background: var(--ok); color: #123524; }
.ga-opt.no { background: var(--bad); color: #3f1010; animation: ga-shake .35s; }

/* точки-раунды */
.ga-dots { flex: none; display: flex; gap: 4px; justify-content: center; }
.ga-dots i { flex: 1; max-width: 28px; height: 9px; border-radius: 9px; border: 2px solid var(--edge); background: var(--card); }
.ga-dots i.cur { background: var(--acc); }
.ga-dots i.ok { background: var(--ok); }
.ga-dots i.no { background: var(--bad); }

/* ---------- 1. Битва с ёкаем ---------- */
.ga-b-arena { position: relative; flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; border: 2.5px solid var(--edge); border-radius: 24px; box-shadow: 0 5px 0 var(--edge); background: linear-gradient(var(--card), var(--soft)); overflow: hidden; --ga-aura: #9be38a; }
.ga-b-arena[data-lv="1"] { --ga-aura: #ff8370; }
.ga-b-arena[data-lv="2"] { --ga-aura: #8ea2ff; }
.ga-b-arena::before { content: ""; position: absolute; inset: 0; opacity: .32; background: radial-gradient(circle at 80% 46%, var(--ga-aura), transparent 60%); pointer-events: none; }
.ga-b-arena::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--pri-2); border-top: 2.5px solid var(--edge); }
.ga-b-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 0; }
.ga-b-hearts { display: flex; gap: 2px; font-size: 19px; line-height: 1; color: var(--bad); }
.ga-b-hearts i { font-style: normal; opacity: .22; filter: grayscale(1); }
.ga-b-hearts i.on { opacity: 1; filter: none; }
.ga-b-hearts i.lost { animation: ga-heart-out .55s ease-out; }
.ga-b-foe { flex: 1; min-width: 0; max-width: 200px; text-align: right; }
.ga-b-name { font-weight: 900; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-b-name .jp { color: var(--muted); font-size: 12px; }
.ga-b-hp { height: 12px; border-radius: 99px; border: 2.5px solid var(--edge); background: var(--card); overflow: hidden; }
.ga-b-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ff9f6b, var(--bad)); transform-origin: 100% 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ga-b-stage { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 8px; }
.ga-b-cat { position: relative; flex: none; width: clamp(60px, min(22vw, 14vh), 104px); }
.ga-b-yk { position: relative; flex: none; width: clamp(92px, min(34vw, 21vh), 168px); }
.ga-b-cat svg { display: block; width: 100%; height: auto; }
.ga-b-cat-in { animation: ga-bob 2.4s ease-in-out infinite; }
.ga-b-yk-in { transform-origin: 50% 100%; animation: ga-float 3s ease-in-out infinite; }
.ga-b-cat.atk { z-index: 2; animation: ga-lunge-r .5s cubic-bezier(.3, .7, .3, 1); }
.ga-b-yk.atk { z-index: 2; animation: ga-lunge-l .5s cubic-bezier(.3, .7, .3, 1); }
.ga-b-cat.hit, .ga-b-yk.hit { animation: ga-hit .42s; }
.ga-b-yk.in { animation: ga-enter .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.ga-b-yk.ko { animation: ga-ko .9s ease-in forwards; }
.ga-b-combo { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.ga-b-cx { display: inline-block; padding: 2px 11px; border-radius: 99px; border: 2.5px solid var(--edge); background: var(--acc); color: #3b2a3f; font-weight: 900; font-size: 14px; animation: ga-pop .3s cubic-bezier(.2, 1.3, .4, 1); }
.ga-fx { position: absolute; z-index: 3; font-weight: 900; font-size: 27px; line-height: 1; white-space: nowrap; pointer-events: none; text-shadow: 0 2px 0 var(--card), 0 -2px 0 var(--card), 2px 0 0 var(--card), -2px 0 0 var(--card); animation: ga-rise .9s ease-out forwards; }
.ga-fx.dmg { right: 14%; top: 12%; color: var(--bad); }
.ga-fx.crit { font-size: 34px; }
.ga-fx.ouch { left: 6%; top: 18%; font-size: 18px; color: var(--ink); }
.ga-b-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(64px, 30vw, 150px); line-height: 1; font-weight: 800; white-space: nowrap; color: var(--ink); opacity: .06; pointer-events: none; }
.ga-b-banner { grid-column: 1 / -1; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; text-align: center; border: 2.5px solid var(--edge); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--edge); animation: ga-pop .3s cubic-bezier(.2, 1.3, .4, 1); }
.ga-b-banner:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.ga-b-banner small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ga-b-line { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ga-q-ru .jp { font-size: .8em; font-weight: 600; color: var(--pri); white-space: nowrap; }

/* ---------- 2. Пузыри ---------- */
.ga-task { flex: none; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 20px; border: 2.5px solid var(--edge); background: var(--card); box-shadow: 0 4px 0 var(--edge); }
.ga-task .grow { min-width: 0; }
.ga-task small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.ga-task b { display: block; font-size: 25px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.ga-task.flash { animation: ga-pop .3s cubic-bezier(.2, 1.3, .4, 1); }
.ga-bub-field { position: relative; flex: 1 1 0; min-height: 200px; border: 2.5px solid var(--edge); border-radius: 24px; box-shadow: 0 5px 0 var(--edge); background: linear-gradient(var(--card), var(--soft)); overflow: hidden; touch-action: none; }
.ga-bub { position: absolute; bottom: -72px; width: 62px; height: 62px; margin-left: -31px; padding: 0; border-radius: 50%; border: 2.5px solid var(--edge); color: var(--ink); --ga-bc: #8fd3ff; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .85) 0 8%, transparent 9%), radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ga-bc) 12%, var(--card)), color-mix(in srgb, var(--ga-bc) 36%, var(--card))); display: grid; place-items: center; align-content: center; will-change: transform; }
.ga-bub.c1 { --ga-bc: #ffb7d0; }
.ga-bub.c2 { --ga-bc: #b9f18c; }
.ga-bub.c3 { --ga-bc: #d0b8ff; }
.ga-bub .jp { font-size: 30px; line-height: 1; }
.ga-bub.two .jp { font-size: 22px; }
.ga-bub small { font-weight: 800; font-size: 11px; line-height: 1.1; }
.ga-bub.pop { scale: 1.5; opacity: 0; pointer-events: none; transition: scale .22s ease-out, opacity .22s; }
.ga-bub.bad { background: var(--bad); color: #3f1010; pointer-events: none; opacity: 0; transition: opacity .3s .7s; }
.ga-bub.bad .jp { font-size: 22px; }
.ga-bub-msg { position: absolute; z-index: 3; left: 50%; top: 10px; transform: translateX(-50%); max-width: 92%; padding: 4px 14px; border-radius: 99px; border: 2.5px solid var(--bad); background: var(--bad-bg); color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap; pointer-events: none; }
.ga-bub-msg .jp { font-size: 18px; }

/* ---------- 3. Суши-конвейер ---------- */
.ga-order { flex: none; display: flex; align-items: center; gap: 10px; }
.ga-order-cat { flex: none; width: 64px; }
.ga-order-cat svg { display: block; width: 100%; height: auto; }
.ga-order-b { flex: 1; min-width: 0; min-height: 66px; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-radius: 6px 20px 20px 20px; border: 2.5px solid var(--edge); background: var(--card); box-shadow: 0 4px 0 var(--edge); }
.ga-order-b small { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.ga-order-b b { font-size: 19px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.ga-order-b .jp { font-size: 20px; }
.ga-order-b.miss { background: var(--bad-bg); border-color: var(--bad); }
.ga-order-b.flash { animation: ga-pop .3s cubic-bezier(.2, 1.3, .4, 1); }
.ga-sushi.ga-root { justify-content: center; }
.ga-conv { flex: none; display: flex; flex-direction: column; gap: 12px; touch-action: none; }
.ga-belt { position: relative; flex: none; height: 112px; border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 0 4px 0 var(--edge); background: linear-gradient(var(--soft), var(--card)); overflow: hidden; }
.ga-belt::before { content: ""; position: absolute; left: -56px; right: -56px; bottom: 0; height: 14px; border-top: 2.5px solid var(--edge); background: repeating-linear-gradient(90deg, var(--pri) 0 14px, var(--pri-2) 14px 28px); animation: ga-belt-l 1s linear infinite; }
.ga-belt.r::before { animation-name: ga-belt-r; }
.ga-plate { position: absolute; left: 0; top: 3px; width: 104px; height: 92px; padding: 0; border: 0; background: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; will-change: transform; --ga-pc: #ffb7d0; }
.ga-plate.p1 { --ga-pc: #8fd3ff; }
.ga-plate.p2 { --ga-pc: #ffd166; }
.ga-plate.p3 { --ga-pc: #b9f18c; }
.ga-plate svg { position: relative; z-index: 1; flex: none; display: block; width: 60px; height: 38px; margin-bottom: -15px; }
.ga-dish { flex: none; display: block; width: 90px; height: 27px; border-radius: 50%; border: 2.5px solid var(--edge); background: var(--card); box-shadow: inset 0 -5px 0 var(--ga-pc), 0 3px 0 var(--edge); }
.ga-word { flex: none; display: grid; place-items: center; height: 30px; max-width: 104px; margin-top: 6px; padding: 0 8px; border-radius: 10px; border: 2px solid var(--edge); background: var(--card); font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; }
.ga-word.l3 { font-size: 18px; }
.ga-word.l4 { font-size: 16px; padding: 0 6px; }
.ga-word.l5 { font-size: 14px; padding: 0 5px; }
.ga-word.l6 { font-size: 12.5px; padding: 0 4px; }
.ga-word.ru { font-size: 11px; font-weight: 800; line-height: 1.05; white-space: normal; text-align: center; padding: 0 4px; background: var(--bad); color: #3f1010; }
.ga-plate.ok { scale: 1.3; opacity: 0; pointer-events: none; transition: scale .25s ease-out, opacity .25s; }
.ga-plate.bad { pointer-events: none; opacity: 0; transition: opacity .3s .8s; }

/* ---------- 4. Башня ---------- */
.ga-tw-view { position: relative; flex: 1 1 0; min-height: 140px; border: 2.5px solid var(--edge); border-radius: 24px; box-shadow: 0 5px 0 var(--edge); background: linear-gradient(var(--soft), var(--card)); overflow: hidden; }
.ga-tw-sky i { position: absolute; width: 58px; height: 18px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); opacity: .85; animation: ga-drift 9s ease-in-out infinite alternate; }
.ga-tw-sky i:nth-child(1) { left: 8%; top: 44%; }
.ga-tw-sky i:nth-child(2) { right: 10%; top: 22%; width: 44px; animation-duration: 12s; }
.ga-tw-sky i:nth-child(3) { right: 26%; top: 66%; width: 36px; height: 14px; animation-duration: 7s; }
.ga-tw-streak { position: absolute; z-index: 3; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 5px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); }
.ga-tw-streak b { font-size: 11px; font-weight: 900; line-height: 1; color: var(--muted); }
.ga-pips { display: flex; flex-direction: column-reverse; gap: 3px; }
.ga-pips i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--edge); background: var(--card); }
.ga-pips i.on { background: var(--acc); }
.ga-tw-toast { position: absolute; z-index: 4; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; border: 2.5px solid var(--edge); background: linear-gradient(180deg, #fff3b0, #ffc93c); color: #3b2a3f; font-weight: 900; font-size: 13px; white-space: nowrap; pointer-events: none; }
.ga-tw-cam { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ga-tw-stack { display: flex; flex-direction: column-reverse; align-items: center; transform-origin: 50% 100%; animation: ga-sway 4.5s ease-in-out infinite; }
.ga-tw-base { flex: none; height: 16px; border-top: 2.5px solid var(--edge); background: repeating-linear-gradient(90deg, var(--pri) 0 14px, var(--pri-2) 14px 28px); }
.ga-tw-cat { position: relative; z-index: 2; flex: none; width: 54px; margin-bottom: -5px; }
.ga-tw-cat svg { display: block; width: 100%; height: auto; }
.ga-fl { position: relative; flex: none; width: 150px; height: 30px; margin-bottom: -2.5px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 2.5px solid var(--edge); border-radius: 8px; background: var(--pri-2); animation: ga-drop .32s cubic-bezier(.3, 1.4, .5, 1); }
.ga-fl.c1 { background: var(--card); }
.ga-fl.c2 { background: var(--pri); }
.ga-fl.c3 { background: var(--soft); }
.ga-fl span { width: 14px; height: 14px; border-radius: 5px 5px 2px 2px; border: 2px solid var(--edge); background: var(--acc); }
.ga-fl.gold { width: 166px; background: linear-gradient(180deg, #fff3b0, #ffc93c); }
.ga-fl.gold span { background: #fff; }
.ga-fl.gold b { font-size: 13px; font-weight: 900; color: #3b2a3f; }
.ga-fl-n { position: absolute; right: 100%; margin-right: 8px; font-style: normal; font-weight: 800; font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; }
.ga-fl.fall { animation: ga-fall-r .42s ease-in forwards; }
.ga-fl.fall.l { animation-name: ga-fall-l; }

/* ---------- 5. Аудио-додзё ---------- */
.ga-dj-stage { flex: 1 1 0; min-height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ga-dj-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ga-dj-play.say { animation: ga-pulse .6s ease-out; }
.ga-dj-side { display: flex; flex-direction: column; gap: 10px; }
.ga-dj-side .btn { min-height: 46px; padding: 6px 14px; font-size: 15px; }
.ga-dj-peek { min-height: 38px; display: grid; place-items: center; }
.ga-dj-peek .linkbtn { font-size: 13px; }
.ga-dj-read { font-size: 26px; line-height: 1.2; }
.ga-dj-bonus { flex: none; width: 60%; height: 9px; margin: 0 auto; border-radius: 9px; border: 2px solid var(--line); background: var(--soft); overflow: hidden; }
.ga-dj-bonus i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transition: transform .1s linear; }
.ga-dj-q { flex: none; text-align: center; font-size: 17px; }
.ga-dj-after { flex: none; min-height: 56px; display: flex; align-items: center; gap: 10px; }
.ga-dj-rev { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 14px; border: 2.5px solid var(--line); background: var(--soft); font-weight: 800; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.ga-dj-rev.ok { border-color: var(--ok); background: var(--ok-bg); }
.ga-dj-rev.no { border-color: var(--bad); background: var(--bad-bg); }
.ga-dj-rev .jp { font-size: 20px; }
.ga-dj-plus { display: inline-block; padding: 0 8px; border-radius: 99px; background: var(--acc); color: #3b2a3f; font-size: 12px; }

/* ---------- 6. Скоропечать ---------- */
.ga-sp-card.card { flex: 1 1 0; min-height: 100px; max-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 14px; text-align: center; transition: background .12s; }
.ga-sp-card.ok { background: var(--ok-bg); border-color: var(--ok); }
.ga-sp-card.no { background: var(--bad-bg); border-color: var(--bad); }
.ga-sp-kana { font-size: 36px; line-height: 1.2; }
.ga-sp-kana.s { font-size: 26px; }
.ga-sp-kj { font-size: 16px; line-height: 1.2; color: var(--muted); }
.ga-sp-ru { font-weight: 800; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.ga-sp-slots { flex: none; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.ga-sp-slots i { min-width: 40px; height: 36px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; border: 2.5px dashed var(--line); font-style: normal; font-weight: 900; font-size: 16px; color: var(--muted); }
.ga-sp-slots i.on { border-style: solid; border-color: var(--edge); background: var(--pri-2); color: var(--ink); animation: ga-pop .2s; }
.ga-sp-tiles { flex: none; min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: start; }
.ga-sp-tile { min-height: 54px; padding: 0 2px; border-radius: 15px; border: 2.5px solid var(--edge); background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--edge); font-weight: 900; font-size: 19px; transition: transform .08s, box-shadow .08s; }
.ga-sp-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.ga-sp-tile.used { opacity: .25; box-shadow: none; transform: translateY(4px); cursor: default; }
.ga-sp-tile.no { background: var(--bad); color: #3f1010; animation: ga-shake .3s; }
.ga-sp-foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ga-sp-foot .btn { font-size: 15px; }
.ga-sp-in { flex: 1; min-width: 0; padding: 9px 12px; border: 2.5px solid var(--edge); border-radius: 14px; background: var(--card); font-weight: 800; font-size: 17px; text-align: center; outline: 0; -webkit-user-select: text; user-select: text; }
.ga-sp-in:focus { box-shadow: 0 0 0 4px var(--pri-2); }
.ga-sp-in.no { background: var(--bad-bg); border-color: var(--bad); animation: ga-shake .3s; }

/* ---------- 7. Найди лишнее ---------- */
.ga-odd.ga-root { justify-content: center; }
.ga-odd-q { flex: none; text-align: center; font-size: 19px; }
.ga-odd-grid { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ga-odd-c { height: 118px; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 20px; border: 2.5px solid var(--edge); background: var(--card); color: var(--ink); box-shadow: 0 5px 0 var(--edge); text-align: center; overflow: hidden; transition: transform .08s, box-shadow .08s, background .12s; }
.ga-odd-c:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); }
.ga-odd-c:disabled { cursor: default; }
.ga-odd-jp { font-size: 28px; line-height: 1.2; }
.ga-odd-jp.m { font-size: 22px; }
.ga-odd-jp.s, .ga-odd-jp.t { font-size: 17px; }
.ga-odd-k { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.ga-odd-ru, .ga-odd-t { display: none; }
.ga-odd-c.rev .ga-odd-jp { font-size: 21px; }
.ga-odd-c.rev .ga-odd-jp.s, .ga-odd-c.rev .ga-odd-jp.t { font-size: 16px; }
.ga-odd-c.rev .ga-odd-ru { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 800; font-size: 13px; line-height: 1.15; }
.ga-odd-c.rev .ga-odd-t { display: block; max-width: 100%; margin-top: 2px; padding: 1px 8px; border-radius: 99px; border: 2px solid var(--line); background: var(--soft); color: var(--muted); font-size: 10.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-odd-c.ok { background: var(--ok-bg); border-color: var(--ok); box-shadow: 0 5px 0 var(--ok); }
.ga-odd-c.no { background: var(--bad-bg); border-color: var(--bad); box-shadow: 0 5px 0 var(--bad); animation: ga-shake .35s; }
.ga-odd-c.odd .ga-odd-t { border-color: var(--edge); background: var(--acc); color: #3b2a3f; }
.ga-odd-after { flex: none; min-height: 112px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ga-odd-exp { font-weight: 700; font-size: 14px; line-height: 1.3; }
.ga-odd-exp .jp { font-size: 18px; white-space: nowrap; }

/* ---------- анимации ---------- */
@keyframes ga-bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes ga-float { 50% { transform: translateY(-4px) scale(1.02, .98); } }
@keyframes ga-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes ga-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes ga-lunge-r { 35% { transform: translateX(var(--ga-dist, 120px)) rotate(10deg) scale(1.12); } 55% { transform: translateX(calc(var(--ga-dist, 120px) * .88)) rotate(-4deg); } }
@keyframes ga-lunge-l { 35% { transform: translateX(calc(var(--ga-dist, 120px) * -1)) rotate(-10deg) scale(1.1); } 55% { transform: translateX(calc(var(--ga-dist, 120px) * -.88)) rotate(4deg); } }
@keyframes ga-hit { 20% { transform: translateX(8px) rotate(6deg); opacity: .45; } 50% { transform: translateX(-6px) rotate(-4deg); opacity: 1; } 75% { transform: translateX(4px); } }
@keyframes ga-enter { from { transform: translateX(70%) scale(.6) rotate(12deg); opacity: 0; } }
@keyframes ga-ko { 30% { transform: translateY(-14px) rotate(-12deg) scale(1.05); opacity: 1; } to { transform: translateY(30px) rotate(40deg) scale(.3); opacity: 0; } }
@keyframes ga-rise { from { transform: translateY(12px) scale(.6); opacity: 0; } 22% { transform: translateY(0) scale(1.15); opacity: 1; } 70% { opacity: 1; } to { transform: translateY(-38px) scale(1); opacity: 0; } }
@keyframes ga-heart-out { from { transform: scale(1.7); opacity: 1; filter: none; } }
@keyframes ga-belt-l { to { transform: translateX(-28px); } }
@keyframes ga-belt-r { to { transform: translateX(28px); } }
@keyframes ga-drop { from { transform: translateY(-70px); opacity: 0; } }
@keyframes ga-fall-r { to { transform: translate(90px, 70px) rotate(55deg); opacity: 0; } }
@keyframes ga-fall-l { to { transform: translate(-90px, 70px) rotate(-55deg); opacity: 0; } }
@keyframes ga-sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
@keyframes ga-drift { to { transform: translateX(22px); } }
@keyframes ga-pulse { 35% { transform: scale(1.07); } }

/* ---------- низкие экраны, спокойный режим ---------- */
@media (max-height: 640px) {
  .ga-root { gap: 8px; }
  .ga-opt { min-height: 48px; }
  .ga-opts { min-height: 104px; gap: 8px; }
  .ga-b-banner { min-height: 104px; }
  .ga-q { min-height: 52px; }
  .ga-q-jp { font-size: 32px; }
  .ga-odd-c { height: 104px; }
  .ga-odd-after { min-height: 100px; }
  .ga-sp-tile { min-height: 48px; }
  .ga-sp-tiles { min-height: 104px; }
  .ga-dj-stage { min-height: 146px; }
}
@media (prefers-reduced-motion: reduce) {
  .ga-root, .ga-root *, .ga-root *::before, .ga-root *::after, .ga-intro * { animation: none !important; }
  .ga-b-yk.ko { opacity: 0; }
}
