/* PokéWorld – Scarlet/Violet įkvėptas UI (originalus dizainas) */
:root {
  --bg: #0b1020; --ink: #0b1020; --panel: rgba(11, 16, 32, .86); --line: rgba(255,255,255,.14);
  --txt: #f8fafc; --mut: #94a3b8; --scarlet: #f05a28; --scarlet2: #c2410c; --violet: #7c3aed; --violet2: #5b21b6;
  --sel: #ffd23f; --ok: #22c55e;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --smooth: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --skew: -12deg;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
#game { position: fixed; inset: 0; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
.hidden { display: none !important; }
input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #ffffff22; background: #0f172a; color: var(--txt); font-size: 17px; font-weight: 600; outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--sel); box-shadow: 0 0 0 4px #ffd23f33; }

/* ---------- SV elementai ---------- */
.sv-title { font-style: italic; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase; margin: 0;
  display: inline-block; padding: 6px 22px; background: #fff; color: var(--ink); transform: skewX(var(--skew)); box-shadow: 6px 6px 0 var(--scarlet); }
.sv-title.sm { font-size: 18px; padding: 4px 16px; box-shadow: 4px 4px 0 var(--violet); }
.sv-btn { display: block; width: 100%; margin-top: 14px; padding: 14px; transform: skewX(var(--skew)); background: #fff; color: var(--ink); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .3px;
  box-shadow: 5px 5px 0 #0006; transition: transform .15s var(--spring), background .15s; }
.sv-btn > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.sv-btn:active { transform: skewX(var(--skew)) scale(.95); }
.sv-btn.primary { background: linear-gradient(100deg, var(--scarlet), #ff8a3d); color: #fff; box-shadow: 5px 5px 0 var(--violet2); }
.sv-btn.ghost { background: #1e293b; color: #fff; }
.err { color: #fca5a5; min-height: 20px; margin: 10px 0 0; font-weight: 600; }

/* ---------- Ekranai ---------- */
.screen { position: fixed; inset: 0; display: none; place-items: center; z-index: 50; overflow: hidden;
  background: radial-gradient(900px 600px at 0% 0%, #f05a2855, transparent 60%), radial-gradient(900px 600px at 100% 100%, #7c3aed66, transparent 60%), var(--bg); }
.screen.show { display: grid; animation: fadeIn .5s var(--smooth); }
.title-stripes { position: absolute; inset: 0; pointer-events: none; }
.title-stripes i { position: absolute; left: -20%; width: 140%; height: 90px; transform: rotate(-14deg); opacity: .9; }
.title-stripes i:first-child { top: 12%; background: linear-gradient(90deg, transparent, var(--scarlet) 30%, var(--scarlet) 70%, transparent); animation: stripeIn .9s var(--smooth) both; }
.title-stripes i:last-child { bottom: 10%; background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--violet) 70%, transparent); animation: stripeIn .9s .15s var(--smooth) both; }
.login-card { position: relative; width: min(90vw, 380px); padding: 30px 24px; background: var(--panel); border: 2px solid #ffffff1a; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: center; animation: rise .7s var(--spring); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.logo { font-size: 46px; font-weight: 900; font-style: italic; letter-spacing: -2px; }
.logo span { color: var(--sel); }
.sub { color: #cbd5e1; margin: 2px 0 22px; font-weight: 800; letter-spacing: 4px; font-size: 13px; }
.sub b { color: var(--scarlet); }
#starter .sv-title { position: absolute; top: calc(34px + var(--safe-t)); left: 50%; transform: translateX(-50%) skewX(var(--skew)); font-size: 20px; white-space: nowrap; animation: rise .6s var(--spring); }
.starter-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(94vw, 560px); }
.starter-card { padding: 14px 6px; background: var(--panel); border: 2px solid #ffffff1a; text-align: center; transition: transform .25s var(--spring), border-color .2s; animation: rise .6s var(--spring) both; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.starter-card:active, .starter-card:hover { transform: translateY(-6px) scale(1.04); border-color: var(--sel); }
.starter-card .sprite { width: 84px; height: 84px; margin: 0 auto 8px; }
.starter-card b { display: block; font-style: italic; margin-bottom: 4px; }

/* ---------- Pokémono vaizdas ---------- */
.sprite { position: relative; display: grid; place-items: center; }
.orb { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; align-content: center; font-weight: 900; color: #fff; text-shadow: 0 2px 6px #0007;
  box-shadow: inset -8px -10px 20px #0005, inset 6px 8px 16px #fff5, 0 10px 24px #0006; animation: breathe 2.6s ease-in-out infinite; }
.orb small { display: block; font-size: .55em; opacity: .85; font-weight: 700; }
.sprite img { width: 100%; height: 100%; object-fit: contain; animation: breathe 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px #0006); }
.shiny .orb { box-shadow: inset -8px -10px 20px #0005, inset 6px 8px 16px #fff8, 0 0 30px #fde047; }
.shiny::after { content: "✦"; position: absolute; right: 4%; top: 2%; color: #fde047; font-size: 18px; text-shadow: 0 0 8px #fde047; animation: twinkle 1.4s infinite; }

/* Tipų žymos (SV stilius: apskritimas + pavadinimas) */
.type { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 3px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #fff; margin: 2px; background: #0006; border: 1.5px solid var(--tc); text-shadow: 0 1px 2px #0008; }
.type i { width: 16px; height: 16px; border-radius: 50%; background: var(--tc); box-shadow: inset 0 -2px 3px #0004, 0 0 6px var(--tc); display: grid; place-items: center; font-style: normal; font-size: 9px; }
.type.mini { padding: 1px 7px 1px 2px; font-size: 10px; } .type.mini i { width: 13px; height: 13px; }
.status-chip { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 900; color: #fff; margin-left: 4px; vertical-align: 2px; }
.st-psn, .st-tox { background: #a33ea1; } .st-par { background: #d4a800; } .st-slp { background: #64748b; } .st-brn { background: #ee8130; } .st-frz { background: #5fb4d6; } .st-fnt { background: #b91c1c; }

/* Daiktų ikonos (originalios) */
.icon { width: 34px; height: 34px; display: grid; place-items: center; font-size: 22px; flex: none; }
.icon img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.capsule { width: 26px; height: 26px; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 30%, #fff9, transparent 35%), var(--c1);
  box-shadow: inset -3px -4px 6px #0005, 0 0 10px var(--c1); }
.capsule::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 4px; transform: translateY(-50%); background: var(--c2); border-radius: 4px; box-shadow: 0 0 6px var(--c2); }
.cap-poke { --c1: #e11d48; --c2: #fde68a; } .cap-great { --c1: #2563eb; --c2: #f472b6; } .cap-ultra { --c1: #1f2937; --c2: #facc15; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
.hud-top { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 76px; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; pointer-events: none !important; }
.hud-trainer { padding: 6px 16px 6px 12px; background: #fff; color: var(--ink); transform: skewX(var(--skew)); box-shadow: 4px 4px 0 var(--scarlet); animation: slideInL .5s var(--spring) both; display: flex; gap: 10px; align-items: baseline; }
.hud-trainer > * { transform: skewX(calc(var(--skew) * -1)); } .hud-trainer b { font-style: italic; font-weight: 900; } .hud-trainer span { font-weight: 800; color: var(--violet); font-size: 13px; }
.hud-badges { display: flex; gap: 3px; padding: 5px 8px; background: var(--panel); transform: skewX(var(--skew)); animation: slideInL .5s .08s var(--spring) both; min-height: 30px; align-items: center; }
.hud-badges i { width: 16px; height: 16px; transform: skewX(calc(var(--skew) * -1)); }
.hud-online { padding: 6px 12px; background: var(--panel); font-size: 12px; font-weight: 800; transform: skewX(var(--skew)); animation: slideInL .5s .16s var(--spring) both; }
.menu-fab { position: absolute; right: 14px; top: calc(10px + var(--safe-t)); width: 54px; height: 54px; background: var(--sel); transform: skewX(var(--skew)); box-shadow: 4px 4px 0 var(--ink), 0 8px 24px #0006; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 14px; transition: transform .2s var(--spring); }
.menu-fab span { height: 4px; background: var(--ink); border-radius: 2px; } .menu-fab:active { transform: skewX(var(--skew)) scale(.88); }
.chat-fab { position: absolute; right: 14px; top: calc(76px + var(--safe-t)); width: 54px; height: 46px; background: var(--panel); transform: skewX(var(--skew)); font-size: 20px; box-shadow: 0 8px 24px #0005; }
.repel-chip { position: absolute; left: 10px; top: calc(52px + var(--safe-t)); padding: 4px 10px; background: #0ea5e9cc; font-size: 12px; font-weight: 800; transform: skewX(var(--skew)); }
.chat-log { position: absolute; right: 12px; bottom: calc(16px + var(--safe-b)); width: min(70vw, 320px); max-height: 30vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; pointer-events: none !important; }
.chat-log div { padding: 6px 10px; background: var(--panel); font-size: 13px; animation: slideIn .35s var(--spring); border-left: 3px solid var(--sel); }
.chat-log div.fade { transition: opacity 1s; opacity: 0; }
.chat-form { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(120px + var(--safe-b)); width: min(90vw, 420px); animation: rise .3s var(--spring); }

/* ---------- Meniu ---------- */
#menu { position: fixed; inset: 0; z-index: 40; background: linear-gradient(90deg, transparent 30%, #000a); animation: fadeIn .25s; }
.menu-panel { position: absolute; right: 0; top: calc(76px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; padding-right: 14px; }
.menu-panel button { width: 220px; padding: 13px 18px; background: #fff; color: var(--ink); font-weight: 900; font-style: italic; font-size: 18px; text-align: left; transform: skewX(var(--skew)); display: flex; gap: 12px; align-items: center;
  box-shadow: 5px 5px 0 #000a; animation: menuIn .45s calc(var(--i) * 45ms) var(--spring) both; transition: background .15s, transform .15s var(--spring); }
.menu-panel button:active, .menu-panel button:hover { background: var(--sel); transform: skewX(var(--skew)) translateX(-10px); }
.mi { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font-style: normal; font-size: 16px; flex: none; }
.mi-dex::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #22d3ee 50%, #0e7490); box-shadow: 0 0 10px #22d3ee; }

/* ---------- Toast / kalba ---------- */
#toast { position: fixed; left: 50%; top: calc(64px + var(--safe-t)); transform: translate(-50%, -30px) skewX(var(--skew)); opacity: 0; z-index: 200; padding: 10px 20px; background: #fff; color: var(--ink); font-weight: 800; max-width: 90vw; text-align: center; transition: all .4s var(--spring); pointer-events: none; box-shadow: 5px 5px 0 var(--violet); }
#toast.show { transform: translate(-50%, 0) skewX(var(--skew)); opacity: 1; }
.talk { position: fixed; left: 12px; right: 12px; bottom: calc(18px + var(--safe-b)); z-index: 30; padding: 16px 18px 18px; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 10px 40px #0008; animation: rise .4s var(--spring); max-width: 560px; margin: 0 auto; }
.talk b { position: absolute; top: -14px; left: 16px; padding: 3px 14px; background: var(--tc, var(--violet)); color: #fff; font-style: italic; transform: skewX(var(--skew)); font-size: 14px; }
.talk p { margin: 4px 0 0; font-weight: 700; font-size: 16px; }

/* ---------- Kova ---------- */
#battle { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #000; }
.battle-transition { position: absolute; inset: 0; z-index: 40; pointer-events: none; display: grid; grid-template-rows: repeat(8, 1fr); }
.battle-transition i { transform: scaleX(0) skewX(-20deg); transform-origin: left; }
.battle-transition i:nth-child(odd) { background: var(--scarlet); } .battle-transition i:nth-child(even) { background: var(--violet); transform-origin: right; }
.battle-transition.in i { animation: barIn .4s var(--smooth) forwards; }
.battle-transition.out i { transform: scaleX(1.3); animation: barOut .5s var(--smooth) forwards; }
.battle-transition i:nth-child(1){animation-delay:0s}.battle-transition i:nth-child(2){animation-delay:.03s}.battle-transition i:nth-child(3){animation-delay:.06s}.battle-transition i:nth-child(4){animation-delay:.09s}
.battle-transition i:nth-child(5){animation-delay:.12s}.battle-transition i:nth-child(6){animation-delay:.15s}.battle-transition i:nth-child(7){animation-delay:.18s}.battle-transition i:nth-child(8){animation-delay:.21s}
.arena { position: relative; flex: 1; overflow: hidden; }
.sky { position: absolute; inset: 0 0 48% 0; background: linear-gradient(180deg, #38bdf8, #bae6fd); }
.ground { position: absolute; inset: 52% 0 0 0; background: radial-gradient(ellipse at 50% 0%, #86efac, #22c55e 70%); }
.ground::before { content: ""; position: absolute; left: 0; right: 0; top: -8%; height: 16%; background: linear-gradient(180deg, transparent, #4ade8088); }
#battle.unova .sky { background: linear-gradient(180deg, #a78bfa, #fbcfe8); } #battle.unova .ground { background: radial-gradient(ellipse at 50% 0%, #bef264, #65a30d 70%); }
#battle.trainer .sky { background: linear-gradient(180deg, #1e293b, #64748b); } #battle.trainer .ground { background: radial-gradient(ellipse at 50% 0%, #a8a29e, #57534e 70%); }
#battle.leader .sky { background: conic-gradient(from 200deg at 50% 120%, #7c3aed, #f05a28, #7c3aed); } #battle.leader .ground { background: repeating-linear-gradient(90deg, #292524 0 40px, #1c1917 40px 80px); }
.platform { position: absolute; border-radius: 50%; background: radial-gradient(ellipse, #00000055 0%, #0000 70%); }
.foe-plat { width: 46vw; max-width: 320px; height: 60px; right: 4vw; top: 40%; }
.me-plat { width: 56vw; max-width: 380px; height: 70px; left: 0; bottom: 4%; }
.mon { position: absolute; width: 32vw; max-width: 200px; aspect-ratio: 1; transition: transform .3s var(--smooth), opacity .4s, filter .3s; }
.mon .sprite { width: 100%; height: 100%; } .mon .orb { font-size: 26px; }
.mon.foe { right: 11vw; top: calc(40% - 26vw); max-width: 180px; width: 30vw; }
.mon.me { left: 8vw; bottom: calc(4% + 22px); }
@media (min-width: 700px) { .mon.foe { top: calc(40% - 160px); } }
.mon.enter-foe { animation: enterFoe .7s var(--spring) both; } .mon.enter-me { animation: enterMe .7s var(--spring) both; }
.mon.atk-me { animation: lungeMe .45s var(--smooth); } .mon.atk-foe { animation: lungeFoe .45s var(--smooth); }
.mon.hit { animation: hit .5s steps(2); } .mon.faint { animation: faint .8s var(--smooth) forwards; }
.mon.captured { animation: suck .5s var(--smooth) forwards; } .mon.release { animation: release .5s var(--spring); }
.mon.healed { animation: healGlow .9s; } .mon.boost { animation: boostUp .8s; } .mon.drop { animation: dropDown .8s; }
.mon.st-glow { animation: stGlow .9s; }
/* Lentelės (HP) */
.plate { position: absolute; padding: 8px 16px 10px; width: min(52vw, 270px); background: #fff; color: var(--ink); transform: skewX(var(--skew)) translateX(-130%); transition: transform .55s var(--spring); box-shadow: 5px 5px 0 #0007; z-index: 5; }
.plate > * { transform: skewX(calc(var(--skew) * -1)); }
.foe-plate { left: 3vw; top: calc(14px + var(--safe-t)); border-left: 6px solid var(--scarlet); }
.me-plate { right: 3vw; bottom: 12px; transform: skewX(var(--skew)) translateX(130%); border-right: 6px solid var(--violet); }
.plate.on { transform: skewX(var(--skew)); }
.plate .nm { font-weight: 900; font-style: italic; display: flex; justify-content: space-between; align-items: center; font-size: 15px; gap: 6px; }
.plate .nm .lv { font-size: 12px; color: #475569; font-style: normal; } .plate .nm .gender { font-size: 13px; margin-left: 3px; }
.hpbar { height: 10px; background: #1e293b; overflow: hidden; margin-top: 6px; border: 2px solid #1e293b; position: relative; }
.hpbar::before { content: "HP"; position: absolute; left: 2px; top: -3px; font-size: 8px; font-weight: 900; color: var(--sel); z-index: 1; }
.hpbar .fill { height: 100%; width: 100%; background: linear-gradient(180deg, #4ade80, #16a34a); transition: width .9s var(--smooth), background .4s; margin-left: 0; }
.hpbar .fill.mid { background: linear-gradient(180deg, #fde047, #ca8a04); } .hpbar .fill.low { background: linear-gradient(180deg, #f87171, #b91c1c); animation: lowHp .8s infinite; }
.hprow { display: flex; justify-content: flex-end; } .hpnum { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.xpbar { height: 4px; background: #cbd5e1; margin-top: 3px; overflow: hidden; } .xpbar .fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #818cf8); transition: width 1s var(--smooth); }
.team-dots { display: flex; gap: 4px; margin-top: 5px; } .team-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--scarlet); box-shadow: inset 0 -2px 0 #0004; } .team-dots i.off { background: #94a3b8; } .team-dots i.st { background: #eab308; }
/* Trenerio intro */
.trainer-splash { position: absolute; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; }
.ts-band { position: absolute; left: -10%; right: -10%; top: 38%; height: 120px; background: linear-gradient(90deg, var(--violet), var(--scarlet)); transform: rotate(-8deg) scaleX(0); animation: bandIn .5s var(--smooth) forwards; }
.ts-figure { position: absolute; right: 8%; top: 22%; width: 150px; height: 200px; background: var(--tc, #334155); clip-path: polygon(40% 0, 60% 0, 68% 12%, 64% 24%, 84% 30%, 100% 70%, 84% 72%, 78% 50%, 74% 100%, 26% 100%, 22% 50%, 16% 72%, 0 70%, 16% 30%, 36% 24%, 32% 12%); animation: figIn .6s .15s var(--spring) both; filter: drop-shadow(6px 6px 0 #0008); }
.ts-text { position: absolute; left: 6%; top: calc(38% + 18px); transform: rotate(-8deg); animation: slideInL .5s .25s var(--spring) both; }
.ts-text small { display: block; font-weight: 900; font-style: italic; letter-spacing: 2px; color: var(--sel); text-transform: uppercase; font-size: 13px; }
.ts-text b { display: block; font-size: 30px; font-style: italic; font-weight: 900; text-shadow: 3px 3px 0 #0008; }
.trainer-splash.out { animation: fadeOut .4s forwards; }
/* Kamuolys (originalus "kapsulės" dizainas) */
.ball { position: absolute; width: 34px; height: 34px; border-radius: 50%; z-index: 6; opacity: 0; background: radial-gradient(circle at 35% 30%, #fffa, transparent 35%), var(--c1, #e11d48); box-shadow: inset -4px -5px 8px #0005, 0 0 14px var(--c1, #e11d48); }
.ball::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 5px; transform: translateY(-50%); background: var(--c2, #fde68a); border-radius: 4px; box-shadow: 0 0 8px var(--c2, #fde68a); }
.ball.img { width: 44px; height: 44px; border-radius: 0; background: var(--img) center / contain no-repeat; box-shadow: none; image-rendering: pixelated; filter: drop-shadow(0 4px 6px #0007); }
.ball.img::after { display: none; }
.ball.throw { animation: throwBall .8s cubic-bezier(.3,.6,.4,1) forwards; } .ball.shake { animation: shakeBall .6s ease-in-out; }
.ball.caught::before { content: "✦ ✦ ✦"; position: absolute; left: 50%; top: -26px; transform: translateX(-50%); color: #fde047; font-size: 18px; white-space: nowrap; animation: stars .8s var(--spring); }
.ball.broke { animation: breakBall .4s forwards; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.particle { position: absolute; width: 12px; height: 12px; border-radius: 50%; animation: burst .7s var(--smooth) forwards; }
.ring { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--rc); animation: ringOut .7s var(--smooth) forwards; }
.arena.shake { animation: screenShake .4s; } .arena.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .35s forwards; z-index: 20; }
/* Komandų skydelis */
.battle-panel { position: relative; background: linear-gradient(180deg, #0f172a, #0b1020); padding: 10px 12px calc(12px + var(--safe-b)); min-height: 214px; border-top: 4px solid var(--sel); }
.msg { min-height: 46px; padding: 10px 14px; background: #ffffff10; font-size: 16px; font-weight: 700; margin-bottom: 10px; border-left: 4px solid var(--sel); }
.cmd { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; align-items: end; }
.cmd-list { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.sv-cmd { width: 100%; padding: 11px 16px; background: #fff; color: var(--ink); font-weight: 900; font-style: italic; font-size: 17px; text-transform: uppercase; text-align: right; transform: skewX(var(--skew));
  box-shadow: 4px 4px 0 #000a; animation: cmdIn .4s calc(var(--i) * 50ms) var(--spring) both; transition: background .12s, transform .15s var(--spring); position: relative; overflow: hidden; }
.sv-cmd > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.sv-cmd::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; }
.sv-cmd.fight::before { background: var(--scarlet); } .sv-cmd.mons::before { background: var(--ok); } .sv-cmd.bagb::before { background: #eab308; } .sv-cmd.run::before { background: #3b82f6; }
.sv-cmd:active, .sv-cmd:hover { background: var(--sel); transform: skewX(var(--skew)) translateX(-8px); }
.sv-cmd[disabled] { opacity: .35; pointer-events: none; }
.quickball { display: flex; align-items: center; gap: 4px; animation: cmdIn .4s var(--spring) both; }
.qb-main { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px; background: #ffffff14; border: 2px solid #ffffff2a; border-radius: 14px; font-weight: 800; font-size: 13px; text-align: left; transition: transform .15s var(--spring); }
.qb-main:active { transform: scale(.94); } .qb-main > span:last-child { line-height: 1.15; } .qb-main small { display: block; color: var(--mut); font-weight: 700; }
.qb-arrow { width: 26px; height: 44px; font-size: 22px; font-weight: 900; color: var(--sel); }
.quickball.off { visibility: hidden; }
.moves { display: flex; flex-direction: column; gap: 7px; }
.mv { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; background: #fff; color: var(--ink); transform: skewX(var(--skew)); box-shadow: 4px 4px 0 #000a; border-left: 8px solid var(--tc);
  animation: cmdIn .35s calc(var(--i) * 45ms) var(--spring) both; transition: background .12s, transform .15s var(--spring); text-align: left; }
.mv > * { transform: skewX(calc(var(--skew) * -1)); }
.mv:active, .mv:hover { background: var(--sel); transform: skewX(var(--skew)) translateX(-6px); }
.mv .ti { width: 24px; height: 24px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc), inset 0 -3px 4px #0004; }
.mv b { font-style: italic; font-weight: 900; font-size: 16px; display: block; } .mv small { font-size: 11px; color: #475569; font-weight: 700; }
.mv .pp { font-weight: 900; font-size: 13px; text-align: right; } .mv .eff { display: block; font-size: 10px; font-weight: 900; padding: 1px 6px; color: #fff; margin-top: 2px; text-align: center; }
.eff-2 { background: #16a34a; } .eff-4 { background: #15803d; } .eff-05, .eff-025 { background: #64748b; } .eff-0 { background: #1e293b; }
.mv[disabled] { opacity: .4; pointer-events: none; }
.back { align-self: flex-start; padding: 8px 18px; background: #334155; color: #fff; font-weight: 800; transform: skewX(var(--skew)); }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw { display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: center; padding: 8px 10px; background: #1e293b; border-radius: 12px; text-align: left; animation: pop .35s calc(var(--i) * 40ms) var(--spring) both; border: 2px solid transparent; }
.sw .sprite { width: 36px; height: 36px; } .sw .orb { font-size: 10px; animation: none; } .sw b { font-size: 13px; display: block; } .sw small { font-size: 11px; color: var(--mut); }
.sw .hpbar { height: 6px; margin-top: 3px; border-width: 1px; } .sw .hpbar::before { display: none; }
.sw.active { border-color: var(--sel); } .sw[disabled] { opacity: .4; pointer-events: none; }
.switch .back { grid-column: span 2; }
.panel-locked .cmd, .panel-locked .moves, .panel-locked .switch { opacity: .3; pointer-events: none; transition: opacity .2s; }

/* ---------- Pokédex: moderni planšetė ---------- */
#pokedex { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #0000; transition: background .5s; perspective: 1400px; }
#pokedex.open { background: #000b; }
.dex-device { width: min(100vw, 520px); height: min(100dvh, 920px); display: flex; flex-direction: column; gap: 10px; padding: calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b));
  background: linear-gradient(160deg, #1a1033, #0b1020 50%, #2a0f0a); border: 2px solid #ffffff1f; box-shadow: 0 40px 120px #000c, inset 0 0 0 3px #0b1020, inset 0 0 0 5px #f05a2855;
  transform-origin: calc(100% - 40px) 40px; transform: scale(.08) rotate(-20deg); opacity: 0; border-radius: 30px; }
@media (max-width: 520px) { .dex-device { border-radius: 0; } }
#pokedex.open .dex-device { animation: dexOpen .7s var(--spring) forwards; }
#pokedex.closing .dex-device { animation: dexClose .4s var(--smooth) forwards; }
.dex-top { display: flex; align-items: center; gap: 10px; }
.dex-brand { display: flex; align-items: center; gap: 10px; padding: 6px 16px; background: #fff; color: var(--ink); transform: skewX(var(--skew)); box-shadow: 4px 4px 0 var(--scarlet); }
.dex-brand > * { transform: skewX(calc(var(--skew) * -1)); } .dex-brand b { font-style: italic; letter-spacing: 1px; }
.scanbar { width: 34px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #a78bfa, #22d3ee); background-size: 200%; animation: scanbar 1.6s linear infinite; box-shadow: 0 0 12px #22d3ee; }
.dex-counter { flex: 1; text-align: right; font-weight: 800; font-size: 12px; color: #cbd5e1; }
.dex-close, .x { width: 40px; height: 40px; background: #ffffff14; border-radius: 12px; font-size: 16px; flex: none; transition: transform .15s var(--spring); }
.dex-close:active, .x:active { transform: scale(.85); }
.dex-screen { position: relative; height: min(330px, 42dvh); border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #1e3a5f, #0b1020 75%); border: 2px solid #22d3ee55; box-shadow: inset 0 0 40px #000a, 0 0 24px #22d3ee22; }
#pokedex.open .dex-screen { animation: screenOn .8s .4s both; }
.scanline { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, #ffffff06 0 2px, transparent 2px 4px); pointer-events: none; z-index: 3; }
.scanline::after { content: ""; position: absolute; left: 0; right: 0; height: 70px; background: linear-gradient(180deg, transparent, #22d3ee18, transparent); animation: scan 3s linear infinite; }
.dex-detail { position: absolute; inset: 0; padding: 14px; display: grid; grid-template-columns: 118px 1fr; grid-auto-rows: max-content; align-content: start; gap: 10px; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.dex-detail.swap { animation: detailIn .45s var(--smooth); }
.dex-empty { grid-column: span 2; place-self: center; opacity: .6; margin-top: 110px; }
.dex-detail .sprite { width: 110px; height: 110px; filter: drop-shadow(0 0 16px #22d3ee88); }
.dex-detail .unknown .orb { background: #164e63 !important; color: #0b1020; text-shadow: none; }
.dex-detail h4 { margin: 0; font-size: 22px; font-style: italic; } .dex-detail .no { color: #67e8f9; font-size: 12px; font-weight: 800; }
.dex-detail .genus { font-size: 12px; font-style: italic; color: #cbd5e1; margin: 1px 0 4px; }
.dex-detail .meta { font-size: 12px; color: #cbd5e1; margin-top: 3px; }
.dex-sec { grid-column: span 2; } .dex-sec h5 { margin: 4px 0 6px; font-size: 11px; letter-spacing: 2px; color: #67e8f9; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: 40px 1fr 30px; gap: 4px 8px; font-size: 12px; align-items: center; font-weight: 700; }
.stats .bar { height: 7px; border-radius: 7px; background: #ffffff12; overflow: hidden; }
.stats .bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a78bfa); width: 0; border-radius: 7px; transition: width .9s var(--smooth); }
.match { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; } .match .x2 { font-size: 10px; font-weight: 900; color: #fca5a5; margin-right: 4px; }
.learn { font-size: 12px; columns: 2; color: #e2e8f0; } .learn div { break-inside: avoid; margin-bottom: 2px; }
.cry-btn { background: #22d3ee33; border-radius: 10px; font-size: 13px; padding: 2px 7px; vertical-align: middle; transition: transform .2s var(--spring); }
.cry-btn.ping { animation: ping .5s var(--spring); }
.flavor { grid-column: span 2; margin: 0; padding: 10px 12px; border-radius: 10px; background: #22d3ee14; border-left: 3px solid #22d3ee; font-size: 13px; line-height: 1.45; min-height: 3.2em; }
.flavor span { display: block; margin-top: 6px; font-size: 11px; opacity: .6; transition: opacity .4s; }
.dex-tabs, .bag-tabs { display: flex; gap: 6px; }
.dex-tabs button, .bag-tabs button { flex: 1; padding: 9px; background: #ffffff10; font-weight: 800; font-size: 13px; transform: skewX(var(--skew)); transition: background .15s, color .15s; }
.dex-tabs button.on, .bag-tabs button.on { background: var(--sel); color: var(--ink); }
.dex-list { flex: 1; min-height: 0; overflow-y: auto; border-radius: 16px; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; align-content: start; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.dex-item { padding: 8px 4px; border-radius: 14px; background: #ffffff0c; text-align: center; font-size: 11px; transition: transform .2s var(--spring), background .2s; animation: pop .4s var(--spring) both; border: 2px solid transparent; }
.dex-item:active { transform: scale(.92); } .dex-item.sel { background: #22d3ee22; border-color: #22d3ee; }
.dex-item .sprite { width: 48px; height: 48px; margin: 0 auto 4px; } .dex-item .orb { font-size: 12px; animation: none; }
.dex-item.unseen .orb { background: #1e293b !important; color: #475569; text-shadow: none; box-shadow: inset 0 0 10px #0008; }
.dex-item .cmark { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--scarlet); margin-right: 3px; vertical-align: -1px; box-shadow: 0 0 6px var(--scarlet); }

/* ---------- Lapai: komanda, kuprinė, parduotuvė ---------- */
#party, #bag, #shop { position: fixed; inset: 0; z-index: 70; background: #000a; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .3s; }
#bag, #shop { z-index: 75; }
.sheet, .bag-panel, .shop-panel { width: min(100vw, 560px); max-height: 92dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #131a33, #0b1020); padding: 18px 14px calc(16px + var(--safe-b)); border-top: 4px solid var(--sel); animation: sheetUp .5s var(--spring); }
.sheet { overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .sheet-head .sv-title { margin-right: auto; }
.party-list { display: grid; gap: 9px; }
.pcard { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: #ffffff0d; border-left: 5px solid var(--tc, #64748b); animation: slideIn .45s calc(var(--i) * 50ms) var(--spring) both; transition: transform .2s var(--spring), background .2s; position: relative; }
.pcard:active { transform: scale(.97); } .pcard.lead { background: #ffd23f14; } .pcard.lead::after { content: "PIRMAS"; position: absolute; right: 10px; top: 8px; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: var(--sel); }
.pcard .sprite { width: 58px; height: 58px; } .pcard .orb { font-size: 14px; }
.pcard .row { display: flex; justify-content: space-between; font-weight: 900; font-style: italic; padding-right: 54px; }
.pcard .hpbar { height: 8px; margin-top: 5px; border-width: 1px; } .pcard .hpbar::before { display: none; }
.pcard .hpt { font-size: 11px; font-weight: 800; color: #cbd5e1; display: flex; justify-content: space-between; margin-top: 2px; }
.pcard .mvs { font-size: 11px; color: var(--mut); margin-top: 4px; }
.pcard .xpbar { height: 3px; background: #ffffff1a; }
.pcard.fainted { opacity: .6; }
.box-title { margin: 18px 0 8px; font-weight: 900; font-style: italic; color: var(--mut); letter-spacing: 1px; font-size: 13px; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.box-grid button { padding: 6px 2px; background: #ffffff0a; border-radius: 12px; font-size: 10px; } .box-grid .sprite { width: 44px; height: 44px; margin: 0 auto; } .box-grid .orb { font-size: 11px; animation: none; }
.hint { color: var(--mut); font-size: 12px; text-align: center; }
/* Kuprinė */
.bag-panel { height: 86dvh; }
.bag-money, .shop-money { font-weight: 900; color: var(--sel); }
.bag-list, .shop-list { flex: 1; min-height: 0; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.bitem { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #ffffff0b; transform: skewX(var(--skew)); text-align: left; animation: slideIn .35s calc(var(--i) * 35ms) var(--spring) both; transition: background .12s; }
.bitem > * { transform: skewX(calc(var(--skew) * -1)); }
.bitem b { flex: 1; font-weight: 800; } .bitem .qty { font-weight: 900; color: var(--mut); }
.bitem.sel { background: var(--sel); color: var(--ink); } .bitem.sel .qty { color: var(--ink); }
.bag-detail, .shop-buy { min-height: 120px; margin-top: 10px; padding: 12px 14px; background: #ffffff0c; border-left: 4px solid var(--violet); }
.bag-detail p, .shop-buy p { margin: 0 0 8px; color: #e2e8f0; font-size: 14px; } .bag-detail h4, .shop-buy h4 { margin: 0 0 4px; font-style: italic; }
.bag-detail .sv-btn, .shop-buy .sv-btn { margin-top: 6px; }
.empty { color: var(--mut); text-align: center; padding: 30px; }
.target-picker { position: fixed; inset: 0; z-index: 90; background: #000c; display: grid; place-items: center; animation: fadeIn .2s; }
.tp-inner { width: min(92vw, 420px); } .tp-inner p { font-weight: 900; font-style: italic; text-align: center; font-size: 18px; }
#tpList { display: grid; gap: 8px; max-height: 60dvh; overflow-y: auto; }
#tpList .pcard { cursor: pointer; } #tpList .pcard.pulse { animation: healGlowCard .9s; }
/* Parduotuvė */
.shop-panel { height: 88dvh; border-top-color: #3b82f6; }
.shop-head { display: flex; align-items: center; gap: 10px; } .shop-head > div:first-child { margin-right: auto; padding: 6px 18px; background: linear-gradient(100deg, #2563eb, #0ea5e9); transform: skewX(var(--skew)); box-shadow: 4px 4px 0 #000a; }
.shop-head > div:first-child > * { transform: skewX(calc(var(--skew) * -1)); } .shop-head small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1px; opacity: .85; } .shop-head h3 { margin: 0; font-style: italic; font-weight: 900; }
.sitem .price { font-weight: 900; } .sitem.sel .price { color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .qty-row button { width: 44px; height: 40px; background: #ffffff18; font-size: 20px; font-weight: 900; border-radius: 10px; }
.qty-row b { font-size: 22px; min-width: 44px; text-align: center; } .qty-row .total { margin-left: auto; font-weight: 900; color: var(--sel); font-size: 18px; }
.coin { position: fixed; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, #facc15 40%, #a16207); z-index: 300; pointer-events: none; animation: coinFly .8s var(--smooth) forwards; }

/* ---------- Ženklelių dėklas ---------- */
#badgecase { position: fixed; inset: 0; z-index: 85; background: #000c; display: grid; place-items: center; perspective: 1200px; animation: fadeIn .3s; }
.case { position: relative; width: min(94vw, 480px); transform-style: preserve-3d; }
.case-lid { padding: 18px; background: linear-gradient(135deg, #4c1d95, #7c2d12); border: 3px solid #fbbf2466; border-bottom: 0; border-radius: 22px 22px 0 0; text-align: center; transform-origin: bottom; animation: lidOpen 1s var(--spring) both; box-shadow: inset 0 2px 0 #fff3; }
.case-lid b { display: block; font-style: italic; letter-spacing: 2px; color: #fde68a; } .case-lid span { font-size: 12px; color: #fde68acc; font-weight: 700; }
.case-body { padding: 18px; background: linear-gradient(180deg, #1c1917, #0c0a09); border: 3px solid #fbbf2466; border-top: 2px solid #fbbf24; border-radius: 0 0 22px 22px; box-shadow: 0 30px 80px #000c; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #292524, #0c0a09); box-shadow: inset 0 4px 10px #000c, inset 0 -1px 0 #fff1; display: grid; place-items: center; animation: pop .4s calc(.5s + var(--i) * 60ms) var(--spring) both; }
.badge { width: 72%; height: 72%; background: linear-gradient(135deg, var(--b1), var(--b2)); position: relative; overflow: hidden; filter: drop-shadow(0 0 10px var(--b1)); animation: badgeIn .9s calc(.7s + var(--i) * 80ms) var(--spring) both; }
.badge.hex { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); } .badge.shield { clip-path: polygon(50% 0, 100% 18%, 92% 70%, 50% 100%, 8% 70%, 0 18%); }
.badge.img { clip-path: none; background: var(--img) center / contain no-repeat; filter: drop-shadow(0 0 10px var(--b1)); }
.badge.img::before { display: none; }
.badge::before { content: ""; position: absolute; inset: 22%; background: inherit; filter: brightness(1.35); clip-path: inherit; }
.badge::after { content: ""; position: absolute; top: -50%; left: -80%; width: 50%; height: 200%; background: linear-gradient(90deg, transparent, #fffc, transparent); transform: rotate(20deg); animation: shine 3s calc(1.5s + var(--i) * .3s) infinite; }
.slot.empty-slot::after { content: "?"; color: #44403c; font-weight: 900; font-size: 22px; }
.case-info { margin-top: 14px; min-height: 44px; text-align: center; color: #e7e5e4; font-weight: 700; font-size: 14px; }
.case-x { position: absolute; top: -50px; right: 0; }
.hud-badges .badge { animation: none; width: 16px; height: 16px; filter: drop-shadow(0 0 4px var(--b1)); } .hud-badges .badge::after { display: none; }

/* ---------- Šventės ---------- */
#celebrate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: #000d; animation: fadeIn .3s; overflow: hidden; }
.cel-inner { text-align: center; padding: 20px; position: relative; }
.cel-card { position: relative; padding: 26px 28px; background: linear-gradient(160deg, #1e1b4b, #0b1020); border: 2px solid #ffffff22; animation: celPop .6s var(--spring); box-shadow: 0 0 80px #7c3aed55; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); min-width: 260px; }
.cel-card h2 { margin: 12px 0 4px; font-size: 24px; font-style: italic; } .cel-card p { color: #cbd5e1; margin: 4px 0; }
.cel-card .sprite { width: 140px; height: 140px; margin: 0 auto; } .cel-card .orb { font-size: 30px; }
.cel-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, #ffd23f1c 0 10deg, transparent 10deg 20deg); animation: spin 12s linear infinite; z-index: -1; }
.cel-tag { display: inline-block; padding: 3px 14px; background: var(--sel); color: var(--ink); font-weight: 900; font-style: italic; transform: skewX(var(--skew)); }
.statgrid { display: grid; grid-template-columns: auto auto; gap: 2px 18px; margin: 10px auto 0; width: max-content; font-weight: 700; font-size: 14px; text-align: left; }
.statgrid em { color: var(--ok); font-style: normal; font-weight: 900; }
.evo-stage { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.evo-stage .sprite { position: absolute; inset: 0; width: 100%; height: 100%; }
.evo-stage .from { animation: evoFrom 3.2s forwards; } .evo-stage .to { opacity: 0; animation: evoTo 3.2s forwards; }
.evo-stage::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff0 60%); opacity: 0; animation: evoFlash 3.2s forwards; }
.cel-badge { width: 120px; height: 120px; margin: 0 auto; } .cel-badge .badge { width: 100%; height: 100%; animation: badgeSpin 1.4s var(--spring) both; }
.tap { margin-top: 16px; color: var(--mut); font-size: 13px; animation: blink 1.4s infinite; }

/* ---------- Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0 } } @keyframes fadeOut { to { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96) } }
@keyframes pop { from { opacity: 0; transform: scale(.7) } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) } }
@keyframes slideInL { from { opacity: 0; transform: translateX(-60px) skewX(var(--skew)) } }
@keyframes menuIn { from { opacity: 0; transform: translateX(120%) skewX(var(--skew)) } }
@keyframes cmdIn { from { opacity: 0; transform: translateX(80px) skewX(var(--skew)) } }
@keyframes stripeIn { from { transform: rotate(-14deg) translateX(-100%) } }
@keyframes sheetUp { from { transform: translateY(100%) } }
@keyframes breathe { 50% { transform: translateY(-4px) scale(1.02) } }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6) } }
@keyframes blink { 50% { opacity: .35 } }
@keyframes barIn { to { transform: scaleX(1.3) skewX(-20deg) } }
@keyframes barOut { to { transform: scaleX(0) skewX(-20deg) } }
@keyframes bandIn { to { transform: rotate(-8deg) scaleX(1) } }
@keyframes figIn { from { opacity: 0; transform: translateX(120px) } }
@keyframes enterFoe { from { transform: translateX(-120vw) } }
@keyframes enterMe { 0% { transform: scale(0); filter: brightness(5) } 60% { transform: scale(1.15); filter: brightness(2) } }
@keyframes lungeMe { 40% { transform: translate(40px, -24px) } }
@keyframes lungeFoe { 40% { transform: translate(-40px, 24px) } }
@keyframes hit { 0%, 50%, 100% { opacity: 1 } 25%, 75% { opacity: .1 } }
@keyframes faint { to { transform: translateY(60px); opacity: 0; filter: brightness(.3) } }
@keyframes suck { to { transform: scale(0); filter: brightness(6); opacity: 0 } }
@keyframes release { from { transform: scale(0); filter: brightness(6) } }
@keyframes healGlow { 30% { filter: brightness(1.6) drop-shadow(0 0 20px #4ade80) } }
@keyframes healGlowCard { 30% { background: #4ade8055; } }
@keyframes boostUp { 30% { filter: brightness(1.4) drop-shadow(0 -10px 14px #f97316); transform: translateY(-8px) } }
@keyframes dropDown { 30% { filter: brightness(.7) drop-shadow(0 10px 14px #3b82f6); transform: translateY(8px) } }
@keyframes stGlow { 30% { filter: drop-shadow(0 0 18px #a855f7) brightness(1.2) } }
@keyframes throwBall { 0% { opacity: 1; left: 10%; bottom: 20%; top: auto; transform: rotate(0) } 100% { opacity: 1; left: calc(89vw - 110px); bottom: 64%; transform: rotate(900deg) } }
@keyframes shakeBall { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-28deg) } 75% { transform: rotate(28deg) } }
@keyframes breakBall { to { transform: scale(1.8); opacity: 0; filter: brightness(4) } }
@keyframes stars { from { opacity: 0; transform: translate(-50%, 10px) scale(.4) } }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0 } }
@keyframes ringOut { to { transform: scale(7); opacity: 0 } }
@keyframes screenShake { 20% { transform: translate(-8px, 4px) } 40% { transform: translate(8px, -4px) } 60% { transform: translate(-6px, -2px) } 80% { transform: translate(4px, 3px) } }
@keyframes flash { from { opacity: .9 } to { opacity: 0 } }
@keyframes lowHp { 50% { filter: brightness(1.5) } }
@keyframes dexOpen { 0% { transform: scale(.08) rotate(-20deg); opacity: 0 } 40% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes dexClose { from { transform: none; opacity: 1 } to { transform: scale(.08) rotate(-20deg); opacity: 0 } }
@keyframes screenOn { 0% { filter: brightness(0) } 20% { filter: brightness(3); transform: scaleY(.02) } 50% { filter: brightness(1.5); transform: scaleY(1) } 100% { filter: none } }
@keyframes scan { from { top: -70px } to { top: 100% } }
@keyframes scanbar { to { background-position: 200% 0 } }
@keyframes detailIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px) } }
@keyframes ping { 40% { transform: scale(1.35); box-shadow: 0 0 16px #22d3ee } }
@keyframes celPop { from { opacity: 0; transform: scale(.5) rotate(-6deg) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes evoFrom { 0% { filter: brightness(1) } 15% { filter: brightness(0) invert(1) } 15%, 70% { transform: scale(1) } 25%,35%,45%,55%,65% { transform: scale(.6) } 30%,40%,50%,60% { transform: scale(1.1) } 70% { opacity: 1 } 72%, 100% { opacity: 0; filter: brightness(0) invert(1) } }
@keyframes evoTo { 0%, 70% { opacity: 0 } 72% { opacity: 1; filter: brightness(0) invert(1); transform: scale(1.3) } 100% { opacity: 1; filter: none; transform: scale(1) } }
@keyframes evoFlash { 0%, 66% { opacity: 0 } 72% { opacity: 1 } 100% { opacity: 0 } }
@keyframes badgeSpin { from { transform: rotateY(720deg) scale(.2) } }
@keyframes badgeIn { from { transform: scale(0) rotate(-90deg); opacity: 0 } }
@keyframes shine { 0% { left: -80% } 30%, 100% { left: 140% } }
@keyframes lidOpen { from { transform: rotateX(-110deg) } }
@keyframes coinFly { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
