:root{--bg:#090b12;--panel:#111725;--panel2:#171f31;--line:#2b3650;--text:#f3f6ff;--muted:#99a6c2;--cyan:#35e0ff;--violet:#9e6cff;--gold:#ffcf5a;--danger:#ff5571;--ok:#5ef2a0;--shadow:0 18px 55px rgba(0,0,0,.35)}*{box-sizing:border-box}html,body{margin:0;background:radial-gradient(circle at 30% -10%,#18284c 0,transparent 35%),radial-gradient(circle at 85% 15%,#261947 0,transparent 28%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100%}button,input{font:inherit}.topbar{min-height:72px;padding:12px clamp(14px,3vw,34px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(7,10,18,.82);backdrop-filter:blur(14px);position:sticky;top:0;z-index:50}.brand{display:flex;gap:10px;align-items:center;color:var(--text);background:none;border:0;cursor:pointer;text-align:left}.brand b{letter-spacing:.12em}.brand small{display:block;color:var(--muted);font-size:.67rem;letter-spacing:.18em}.skull{font-size:1.8rem;color:var(--gold)}.top-actions{display:flex;gap:9px;align-items:center}.wallet-pill{font-size:.78rem;color:var(--muted);max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{border:1px solid transparent;border-radius:12px;padding:11px 16px;color:#071017;background:linear-gradient(135deg,var(--cyan),#65f6c6);font-weight:800;cursor:pointer;transition:.18s transform,.18s opacity,.18s border}.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.38;cursor:not-allowed;transform:none}.btn.ghost{color:var(--text);background:#141b2b;border-color:var(--line)}.btn.gold{background:linear-gradient(135deg,#ffd66b,#ff9f43);color:#261700}.btn.danger{background:#351522;color:#ff9aad;border-color:#6b283d}.btn.big{padding:15px 24px;font-size:1rem}.screen{max-width:1240px;margin:0 auto;padding:clamp(22px,4vw,52px) clamp(14px,3vw,30px) 70px}.hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:34px;align-items:center;padding-top:30px}.eyebrow{text-transform:uppercase;color:var(--cyan);font-weight:900;letter-spacing:.2em;font-size:.76rem}.hero h1{font-size:clamp(2.8rem,7vw,6.6rem);line-height:.88;margin:12px 0 18px;letter-spacing:-.06em}.hero h1 span{display:block;color:transparent;background:linear-gradient(90deg,var(--cyan),#b99cff,var(--gold));background-clip:text;-webkit-background-clip:text}.lead{color:#bac5dc;font-size:clamp(1rem,2vw,1.2rem);line-height:1.65;max-width:700px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:32px}.feature{padding:14px;background:rgba(17,23,37,.68);border:1px solid var(--line);border-radius:14px}.feature strong{display:block;font-size:1.1rem}.feature span{color:var(--muted);font-size:.8rem}.hero-card{position:relative;min-height:470px;border-radius:28px;background:linear-gradient(160deg,#171d31,#0d1220);border:1px solid #394461;box-shadow:var(--shadow);padding:18px;overflow:hidden}.hero-card:before{content:"";position:absolute;inset:-40%;background:conic-gradient(from 40deg,transparent,var(--cyan),transparent,var(--violet),transparent);opacity:.18;animation:spin 16s linear infinite}.hero-card-inner{position:relative;height:100%;border-radius:20px;overflow:hidden;background:#090d17}.hero-card img{width:100%;height:390px;object-fit:cover;display:block;opacity:.9}.hero-card .caption{padding:16px 18px;position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(4,6,12,.98) 45%)}.caption b{font-size:1.45rem}.tag{display:inline-flex;align-items:center;border:1px solid var(--line);background:#121a2a;color:#cbd5ea;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:800}.tag.founder{border-color:#7c6228;color:#ffd66b}.tag.free{color:#9fdfff}.section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-title h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:0}.section-title p{margin:4px 0;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}.avatar-card{position:relative;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel);cursor:pointer;transition:.18s transform,.18s border,.18s box-shadow;text-align:left;color:var(--text);padding:0}.avatar-card:hover{transform:translateY(-3px);border-color:#5b6d95}.avatar-card.selected{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(53,224,255,.16)}.avatar-card.locked{filter:saturate(.45);opacity:.68}.avatar-img{aspect-ratio:1/1;width:100%;object-fit:cover;display:block}.avatar-info{padding:12px}.avatar-info h3{font-size:1rem;margin:0 0 7px}.meta-row{display:flex;gap:6px;flex-wrap:wrap}.lock-badge{position:absolute;top:10px;right:10px;padding:7px 9px;border-radius:10px;background:rgba(5,8,14,.88);font-size:.72rem;font-weight:900}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 22px}.search{flex:1;min-width:220px;background:#111827;border:1px solid var(--line);color:var(--text);padding:12px 14px;border-radius:12px;outline:none}.search:focus{border-color:var(--cyan)}select.search{flex:0 0 185px}.deck-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:22px}.avatar-summary{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;height:max-content;position:sticky;top:94px}.avatar-summary img{width:100%;aspect-ratio:1;object-fit:cover}.avatar-summary .body{padding:16px}.avatar-summary h2{margin:0 0 4px}.statline{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:9px 0;font-size:.86rem}.statline span{color:var(--muted)}.deck-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.deck-counter{font-weight:900;color:var(--cyan)}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:15px}.game-card{position:relative;min-height:238px;border:1px solid #35415e;background:linear-gradient(160deg,#182139,#0c111e);border-radius:16px;overflow:hidden;color:var(--text);cursor:pointer;padding:0;text-align:left;transition:.15s transform,.15s border}.game-card:hover{transform:translateY(-3px);border-color:#7186b5}.game-card.in-deck{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(53,224,255,.12)}.game-card.disabled{opacity:.45;cursor:not-allowed}.card-art{height:108px;background-size:cover;background-position:center 30%;position:relative}.card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(9,12,20,.92))}.card-cost{position:absolute;top:8px;left:8px;z-index:2;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#162b4d;border:1px solid #4db8ff;font-weight:900}.scope{position:absolute;right:8px;top:8px;z-index:2;font-size:.6rem;text-transform:uppercase;letter-spacing:.1em;background:rgba(7,9,16,.8);padding:5px 7px;border-radius:7px}.card-body{padding:10px 11px}.card-body h4{margin:0 0 4px;font-size:.87rem}.card-body p{font-size:.7rem;line-height:1.35;color:#abb8d2;margin:0}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.mode{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:22px}.mode h3{font-size:1.35rem;margin:0 0 8px}.mode p{color:var(--muted);min-height:66px;line-height:1.5}.room-box{display:flex;gap:8px;margin-top:12px}.room-box input{min-width:0;width:100%;background:#0d1321;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:11px;text-transform:uppercase}.notice{border:1px solid #5d4e2d;background:#231e13;color:#edd99c;padding:13px 15px;border-radius:12px;line-height:1.45}.battle-shell{max-width:1120px;margin:0 auto;padding:16px 14px 50px}.arena{border:1px solid #2d3955;border-radius:24px;overflow:hidden;background:radial-gradient(circle at center,#172447 0,#0a101c 55%,#070a11 100%);min-height:660px;box-shadow:var(--shadow);position:relative}.fighter{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 18px}.fighter.enemy{border-bottom:1px solid rgba(255,255,255,.07)}.fighter.me{border-top:1px solid rgba(255,255,255,.07)}.fighter img{width:108px;height:108px;border-radius:16px;object-fit:cover;border:2px solid #455678}.fighter h3{margin:0 0 5px}.fighter small{color:var(--muted)}.bars{margin-top:8px;display:grid;gap:5px}.bar{height:10px;background:#242c3d;border-radius:999px;overflow:hidden}.bar>i{height:100%;display:block;transition:width .35s ease}.hp i{background:linear-gradient(90deg,#ff4d6d,#ff8a5b)}.shield i{background:linear-gradient(90deg,#45a8ff,#65e7ff)}.fighter-stats{text-align:right;font-weight:900}.fighter-stats .hptext{font-size:1.2rem}.fighter-stats .shieldtext{color:#70d9ff}.battle-center{min-height:300px;padding:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.turn-badge{position:absolute;top:12px;left:50%;transform:translateX(-50%);padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:#0d1424;font-size:.75rem;color:#cbd7ed}.battle-log{width:min(620px,94%);height:122px;overflow:auto;background:rgba(5,8,14,.48);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px 12px;font-size:.76rem;color:#9eacc7}.battle-log div+div{margin-top:4px}.hand{display:flex;gap:8px;justify-content:center;align-items:flex-end;min-height:160px;width:100%;overflow-x:auto;padding:15px 8px 6px}.hand .game-card{min-width:142px;width:142px;min-height:205px;transform-origin:bottom}.hand .game-card:hover{transform:translateY(-9px) scale(1.03)}.hand .card-art{height:82px}.battle-controls{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;padding:9px 16px 16px}.energy{font-size:1.1rem;font-weight:900;color:var(--cyan);padding:10px 14px}.ultimate.ready{animation:pulse 1.2s infinite;box-shadow:0 0 28px rgba(158,108,255,.25)}.result{position:absolute;inset:0;background:rgba(5,7,12,.86);backdrop-filter:blur(8px);z-index:20;display:grid;place-items:center;text-align:center;padding:20px}.result-box h2{font-size:3rem;margin:0 0 8px}.result-box p{color:var(--muted)}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:#131b2a;border:1px solid #42516f;color:var(--text);padding:11px 16px;border-radius:12px;opacity:0;pointer-events:none;z-index:200;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.fx-layer{position:fixed;inset:0;pointer-events:none;z-index:150;overflow:hidden}.fx-card{position:absolute;left:50%;top:50%;width:210px;height:310px;transform:translate(-50%,-50%) scale(.4);border-radius:22px;border:2px solid var(--cyan);background:#10182a;box-shadow:0 0 70px rgba(53,224,255,.35);overflow:hidden;animation:cardCast .72s ease both}.fx-card img{width:100%;height:190px;object-fit:cover}.fx-card b{display:block;padding:13px;text-align:center;font-size:1.15rem}.fx-hit{position:absolute;left:50%;top:32%;width:80px;height:80px;border-radius:50%;border:4px solid #fff;transform:translate(-50%,-50%);animation:hit .55s ease-out both}.fx-text{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:clamp(2rem,7vw,5rem);font-weight:1000;letter-spacing:.08em;text-shadow:0 0 25px currentColor;animation:ult .95s ease both}.fx-layer.glitch{animation:screenGlitch .35s linear}.fx-layer.cannon{background:radial-gradient(circle at 50% 30%,rgba(255,132,48,.2),transparent 25%)}.fx-layer.arcane{background:radial-gradient(circle at center,rgba(159,89,255,.18),transparent 35%)}.footer-note{text-align:center;color:#65718b;font-size:.74rem;margin-top:36px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{transform:scale(1.025)}}@keyframes cardCast{0%{opacity:0;transform:translate(-50%,-35%) scale(.35) rotate(-8deg)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.02) rotate(0)}100%{opacity:0;transform:translate(-50%,-70%) scale(.9)}}@keyframes hit{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(4)}}@keyframes ult{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}35%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}}@keyframes screenGlitch{20%{transform:translateX(5px)}40%{transform:translateX(-6px)}60%{transform:translateX(3px)}80%{transform:translateX(-2px)}}@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-card{min-height:380px}.hero-card img{height:340px}.feature-strip{grid-template-columns:repeat(2,1fr)}.deck-layout{grid-template-columns:1fr}.avatar-summary{position:static;display:grid;grid-template-columns:150px 1fr}.avatar-summary img{height:100%;aspect-ratio:auto}.mode-grid{grid-template-columns:1fr}.fighter{grid-template-columns:76px minmax(0,1fr) auto;padding:11px}.fighter img{width:70px;height:70px}.hand{justify-content:flex-start}.wallet-pill{display:none}.arena{min-height:610px}.battle-center{min-height:270px}}@media(max-width:520px){.topbar{padding:10px}.brand small{display:none}.btn{padding:10px 12px}.screen{padding:20px 11px 55px}.hero{padding-top:10px}.hero h1{font-size:3.2rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.avatar-info{padding:9px}.avatar-info .tag:nth-child(n+3){display:none}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-card{min-height:220px}.fighter-stats{font-size:.8rem}.fighter-stats .hptext{font-size:.95rem}.battle-shell{padding:8px 6px 30px}.arena{border-radius:15px}.hand .game-card{min-width:126px;width:126px}.avatar-summary{grid-template-columns:110px 1fr}.feature-strip{grid-template-columns:1fr 1fr}}
.btn.compact{padding:9px 12px}.lang-btn{min-width:64px}.home-notes{display:grid;gap:7px;color:var(--muted);font-size:.82rem;margin-top:18px}.card-art{height:126px;background-position:center;background-color:#0a0f19}.card-art .art-4k{position:absolute;z-index:2;left:8px;bottom:8px;border-radius:6px;padding:3px 5px;font-size:.55rem;font-weight:1000;letter-spacing:.12em;background:rgba(7,9,16,.8);color:#c9f8ff;border:1px solid rgba(84,217,255,.3)}.game-card{min-height:270px}.hand .card-art{height:94px}.fx-card img{height:190px;object-fit:cover}.shop-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,rgba(24,34,57,.95),rgba(12,17,30,.95));margin-bottom:20px}.shop-banner h3{font-size:1.7rem;margin:8px 0}.shop-banner p{color:var(--muted);margin:0;max-width:720px}.shop-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#332914;color:#ffd66b;border:1px solid #6b5423;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.shop-coins{white-space:nowrap;font-size:1.1rem;font-weight:900;color:var(--gold)}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shop-product{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel)}.pack-art{height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px;background:radial-gradient(circle at 50% 25%,rgba(53,224,255,.20),transparent 35%),linear-gradient(145deg,#1a2340,#0b101d);border-bottom:1px solid var(--line)}.pack-art span{font-size:.65rem;letter-spacing:.22em;color:var(--cyan);font-weight:900}.pack-art b{margin-top:12px;font-size:1.4rem;max-width:260px}.shop-product-body{padding:16px}.shop-product-body h3{margin:0 0 7px}.shop-product-body p{min-height:58px;color:var(--muted);line-height:1.45;font-size:.86rem}.shop-price{font-weight:900;color:var(--gold);margin:12px 0}.shop-product .btn{width:100%}@media(max-width:850px){.shop-grid{grid-template-columns:1fr}.shop-banner{align-items:flex-start;flex-direction:column}.top-actions{gap:6px}.top-actions .btn{padding:9px 10px}.card-art{height:115px}}@media(max-width:520px){#shopBtn{display:none}.lang-btn{min-width:54px}.game-card{min-height:245px}.card-art{height:105px}.shop-grid{gap:10px}}

/* =========================================================
   v1.2.0 — Arena Battle Update
   Original WEB3 GC tactical arena presentation.
   ========================================================= */
.battle-shell{max-width:1320px;margin:0 auto;padding:14px 14px 54px}
.arena{min-height:760px;border-radius:28px;background:
  radial-gradient(circle at 50% 48%,rgba(62,119,183,.17),transparent 24%),
  radial-gradient(circle at 20% 40%,rgba(126,67,205,.10),transparent 28%),
  linear-gradient(180deg,#080d17,#0b1220 45%,#080c15);overflow:hidden}
.fighter{position:relative;z-index:7;grid-template-columns:92px minmax(0,1fr) auto;min-height:112px;padding:12px 18px;background:linear-gradient(90deg,rgba(8,13,23,.96),rgba(15,24,41,.82),rgba(8,13,23,.96));transition:filter .2s,transform .2s}
.fighter.enemy{border-bottom:1px solid rgba(92,139,218,.2)}
.fighter.me{border-top:1px solid rgba(92,139,218,.2)}
.fighter-portrait{position:relative;width:78px;height:78px}
.fighter-portrait img{width:78px;height:78px;border-radius:16px;object-fit:cover;border:2px solid #526585;position:relative;z-index:2;box-shadow:0 7px 24px rgba(0,0,0,.28)}
.fighter-aura{position:absolute;inset:-6px;border-radius:20px;background:conic-gradient(from 0deg,transparent,rgba(64,213,255,.5),transparent,rgba(171,104,255,.5),transparent);filter:blur(5px);opacity:.42;animation:auraSpin 7s linear infinite}
.fighter-main{min-width:0}
.fighter-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.fighter-title h3{font-size:1rem;margin:0}
.fighter-title small{font-size:.72rem}
.fighter .bars{max-width:760px;margin-top:7px}
.status-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;min-height:21px}
.status-chip{font-size:.58rem;padding:3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.11);background:rgba(5,10,18,.58);letter-spacing:.04em;color:#9eacc5}
.status-chip.burn{color:#ffb16d;border-color:rgba(255,126,54,.35)}.status-chip.poison{color:#9ce788;border-color:rgba(92,205,91,.32)}.status-chip.weaken{color:#db9aff;border-color:rgba(185,104,255,.32)}.status-chip.focus{color:#86e9ff;border-color:rgba(75,219,255,.32)}
.fighter-stats{font-size:.82rem}.fighter-stats .hptext{font-size:1rem}.fighter-stats .energytext{color:#ffd467}
.fighter.hit-react{animation:fighterHit .44s ease}.fighter.hit-react .fighter-portrait img{filter:brightness(1.5) saturate(1.45)}
.float-stat{position:absolute;z-index:30;right:25%;top:45%;font-size:1.4rem;font-weight:1000;letter-spacing:.04em;text-shadow:0 2px 12px #000;pointer-events:none;animation:floatStat .95s ease-out both}.float-stat.damage{color:#ff6b72}.float-stat.shield{color:#65ddff}.float-stat.heal{color:#78f2a8}.float-stat.energy{color:#ffd66b}.float-stat.status{color:#d89dff}
.battle-center{min-height:530px;padding:0;display:block;position:relative;background:linear-gradient(180deg,rgba(7,12,21,.15),rgba(14,22,39,.35),rgba(7,12,21,.15))}
.duel-board{position:relative;min-height:355px;overflow:hidden;border-top:1px solid rgba(255,255,255,.025);border-bottom:1px solid rgba(255,255,255,.07);background:
 linear-gradient(rgba(91,130,188,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(91,130,188,.07) 1px,transparent 1px),
 radial-gradient(ellipse at center,rgba(38,72,116,.28),rgba(8,13,23,.72) 66%);background-size:42px 42px,42px 42px,auto;isolation:isolate}
.duel-board:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 0 25%,rgba(53,224,255,.035) 25.5% 26%,transparent 26.5% 74%,rgba(168,104,255,.035) 74.5% 75%,transparent 75.5%)}
.duel-board.is-my-turn{box-shadow:inset 0 0 80px rgba(44,179,226,.055)}.duel-board.is-enemy-turn{box-shadow:inset 0 0 70px rgba(194,72,126,.035)}
.turn-ribbon{position:absolute;left:50%;top:12px;transform:translateX(-50%);display:flex;gap:9px;align-items:center;padding:6px 12px;border-radius:999px;border:1px solid #304366;background:rgba(6,12,22,.9);backdrop-filter:blur(8px);z-index:15;box-shadow:0 5px 18px rgba(0,0,0,.25);font-size:.68rem;color:#91a7c8}.turn-ribbon b{color:#eef7ff;letter-spacing:.06em}.is-my-turn .turn-ribbon{border-color:rgba(72,213,255,.55);box-shadow:0 0 18px rgba(53,224,255,.09)}
.field-lane{height:62px;display:flex;align-items:center;justify-content:center;position:relative;color:#7385a4;font-size:.58rem;text-transform:uppercase;letter-spacing:.16em}.field-lane>span{position:absolute;left:22px}.field-lane.enemy-lane{border-bottom:1px solid rgba(255,255,255,.035)}.field-lane.player-lane{border-top:1px solid rgba(255,255,255,.035)}
.field-slots{display:flex;gap:14px}.field-slots i{display:block;width:72px;height:42px;border:1px solid rgba(93,126,173,.22);border-radius:9px;background:linear-gradient(145deg,rgba(16,29,49,.32),rgba(6,12,21,.28));box-shadow:inset 0 0 13px rgba(66,146,220,.035)}
.arena-main{display:grid;grid-template-columns:110px minmax(300px,1fr) 260px;min-height:230px;align-items:center;gap:12px;padding:9px 18px}
.left-rail{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-right:1px solid rgba(255,255,255,.045)}
.card-pile{text-align:center;color:#8192af;font-size:.61rem;text-transform:uppercase;letter-spacing:.08em}.pile-stack{position:relative;width:54px;height:68px;margin:0 auto 5px}.pile-stack i{position:absolute;inset:0;border-radius:8px;border:1px solid #3e547b;background:linear-gradient(145deg,#16233d,#0a111e)}.pile-stack i:nth-child(1){transform:translate(-4px,4px)}.pile-stack i:nth-child(2){transform:translate(-2px,2px)}.pile-stack i:nth-child(3){background:radial-gradient(circle at center,#253d69,#0b1424 70%)}.pile-stack span{position:absolute;inset:0;display:grid;place-items:center;z-index:3;color:#e7f6ff;font-weight:1000;font-size:1.05rem}.arena-meter{font-size:.6rem;color:#72819e;text-transform:uppercase;text-align:center}.arena-meter b{display:block;font-size:.92rem;color:#cbd9ef;margin-top:2px}
.arena-core{position:relative;min-height:210px;display:grid;place-items:center;perspective:1000px;overflow:visible}
.core-ring{position:absolute;left:50%;top:50%;border-radius:50%;border:1px solid rgba(68,183,236,.18);transform:translate(-50%,-50%);pointer-events:none}.core-ring.r1{width:215px;height:215px;box-shadow:0 0 40px rgba(53,224,255,.06),inset 0 0 40px rgba(53,224,255,.025)}.core-ring.r2{width:165px;height:165px;border-style:dashed;animation:ringSpin 14s linear infinite}.core-ring.r3{width:112px;height:112px;border-color:rgba(182,112,255,.19);animation:ringSpin 9s linear infinite reverse}
.arena-card-slot{position:relative;z-index:8;width:min(350px,90%);min-height:190px;display:grid;place-items:center}
.arena-empty{text-align:center;display:flex;flex-direction:column;align-items:center;color:#8090aa;gap:4px}.arena-empty strong{font-size:.74rem;letter-spacing:.22em;color:#a7b7ce}.arena-empty span{font-size:.68rem}.arena-sigil{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;border:1px solid #33577a;color:#72dfff;font-size:1.6rem;box-shadow:0 0 28px rgba(52,210,255,.09),inset 0 0 20px rgba(52,210,255,.05);animation:sigilPulse 2.2s ease-in-out infinite}
.arena-active-card{width:min(340px,94%);height:184px;border:1px solid #546d98;border-radius:16px;background:#0d1626;display:grid;grid-template-columns:45% 55%;overflow:hidden;box-shadow:0 16px 42px rgba(0,0,0,.38),0 0 38px rgba(69,198,255,.13);transform:rotateX(1deg);animation:arenaCardEnter .42s cubic-bezier(.16,.8,.24,1) both}.arena-card-image{position:relative;background-size:cover;background-position:center;border-right:1px solid rgba(255,255,255,.08)}.arena-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 60%,rgba(10,18,31,.82))}.arena-card-cost{position:absolute;z-index:3;left:8px;top:8px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#142f54;border:1px solid #4fcfff;color:#fff;font-weight:1000}.arena-card-type{position:absolute;z-index:3;left:8px;bottom:8px;padding:4px 7px;border-radius:6px;background:rgba(5,9,16,.82);font-size:.58rem;text-transform:uppercase;letter-spacing:.1em}.arena-card-copy{display:flex;flex-direction:column;justify-content:center;padding:14px 15px;min-width:0}.arena-card-copy>span{font-size:.58rem;color:#5bdcff;letter-spacing:.17em}.arena-card-copy>b{font-size:1.15rem;margin:5px 0 7px}.arena-card-copy>small{font-size:.7rem;line-height:1.35;color:#a6b5ce}.arena-active-card.resolving{animation:arenaCardResolve .9s ease both}.arena-card-slot.pulse-cast{filter:brightness(1.06)}
.arena-fx{position:absolute;inset:0;pointer-events:none;z-index:20}.arena-particle{position:absolute;left:50%;top:50%;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 12px currentColor;animation:particleBurst .82s cubic-bezier(.1,.5,.2,1) both}.arena-particle.impact{color:#ff8b5f;background:#ffd2a8}.arena-particle.shield{color:#52d9ff;background:#b7f5ff}.arena-particle.magic{color:#bd7aff;background:#e7c6ff}
.combat-feed{align-self:stretch;border-left:1px solid rgba(255,255,255,.045);padding:8px 0 8px 12px;min-width:0}.combat-feed-head{display:flex;justify-content:space-between;align-items:center;font-size:.6rem;text-transform:uppercase;letter-spacing:.13em;color:#8497b6;padding:3px 7px 8px}.combat-feed-head b{display:grid;place-items:center;min-width:24px;height:20px;border-radius:999px;background:#152039;color:#aec2df}.combat-feed-body{display:grid;gap:4px}.log-line{padding:5px 7px;border-left:2px solid #243651;background:rgba(5,10,18,.34);font-size:.63rem;line-height:1.3;color:#8f9eb8;border-radius:0 6px 6px 0}.log-line.latest{color:#dbe8fa;border-left-color:#4dcfff;background:rgba(31,71,109,.18)}
.arena-beams{position:absolute;inset:0;pointer-events:none;overflow:hidden}.arena-beams i{position:absolute;top:50%;left:50%;width:1px;height:170%;background:linear-gradient(transparent,rgba(90,210,255,.12),transparent);transform-origin:center}.arena-beams i:nth-child(1){transform:translate(-50%,-50%) rotate(34deg)}.arena-beams i:nth-child(2){transform:translate(-50%,-50%) rotate(-34deg)}.arena-beams i:nth-child(3){transform:translate(-50%,-50%) rotate(90deg);opacity:.4}
.duel-board.resolving .core-ring.r1{animation:coreFlash .68s ease}.duel-board.type-attack .arena-core{animation:arenaKick .34s ease}.duel-board.type-defense .core-ring{border-color:rgba(72,216,255,.58);box-shadow:0 0 32px rgba(72,216,255,.12)}.duel-board.type-skill .core-ring{border-color:rgba(183,111,255,.52)}
.duel-board.fx-glitch .arena-core{animation:glitchBoard .35s steps(2,end) 2}.duel-board.fx-cannon .arena-core:after{content:"";position:absolute;width:70%;height:8px;border-radius:99px;background:linear-gradient(90deg,transparent,#ff8e48,#fff,transparent);filter:blur(1px);animation:cannonLine .58s ease-out}.duel-board.fx-arcane .arena-core:after{content:"✦";position:absolute;font-size:8rem;color:rgba(185,116,255,.18);text-shadow:0 0 35px #9f65ff;animation:arcaneBurst .7s ease}.duel-board.fx-shield .arena-card-slot:after{content:"";position:absolute;width:240px;height:150px;border-radius:50%;border:3px solid rgba(74,215,255,.45);box-shadow:0 0 36px rgba(74,215,255,.2);animation:shieldWave .76s ease-out}.duel-board.fx-slash .arena-core:after{content:"";position:absolute;width:240px;height:3px;background:#fff;box-shadow:0 0 16px #7ed6ff;transform:rotate(-22deg);animation:slashFx .42s ease-out}.duel-board.fx-target .arena-core:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;border:2px solid #ff607f;box-shadow:inset 0 0 0 18px rgba(255,68,99,.035),0 0 24px rgba(255,73,105,.16);animation:targetLock .72s ease}.duel-board.fx-gold .arena-core{filter:sepia(.15) brightness(1.08)}.duel-board.fx-tide .core-ring{transform:translate(-50%,-50%) scaleX(1.18);border-color:rgba(80,183,255,.4)}.duel-board.fx-chaos .arena-core{animation:chaosPulse .48s ease 2}.duel-board.fx-rush .arena-active-card{animation:rushCard .62s ease}.duel-board.fx-royal .arena-active-card{box-shadow:0 0 48px rgba(255,204,77,.22)}.duel-board.fx-forge .core-ring{border-color:rgba(255,143,64,.45)}.duel-board.fx-genesis .core-ring{border-color:rgba(66,215,255,.45)}
.hand-wrap{padding:8px 12px 14px;background:linear-gradient(180deg,rgba(4,8,14,.18),rgba(4,8,14,.58))}.hand-title{max-width:1000px;margin:0 auto -5px;display:flex;align-items:center;justify-content:space-between;color:#7f90ac;font-size:.62rem;text-transform:uppercase;letter-spacing:.12em}.hand{min-height:152px;padding:12px 8px 2px;overflow-x:auto;overflow-y:visible;scrollbar-width:thin}.hand .game-card{min-width:138px;width:138px;min-height:198px;border-radius:13px;box-shadow:0 8px 22px rgba(0,0,0,.25);transition:transform .16s ease,filter .16s,border-color .16s;position:relative}.hand .game-card:not(.disabled):hover{transform:translateY(-14px) scale(1.055);z-index:12;border-color:#65d8ff;box-shadow:0 14px 34px rgba(0,0,0,.35),0 0 18px rgba(67,208,255,.09)}.hand .game-card:not(.disabled):active{transform:translateY(-8px) scale(1.02)}.hand .card-art{height:88px}.hand .card-body{padding:8px}.hand .card-body h4{font-size:.78rem}.hand .card-body p{font-size:.62rem}.hand .game-card.disabled{filter:saturate(.65);opacity:.48}
.battle-controls{position:relative;z-index:8;background:#080d17;border-top:1px solid rgba(255,255,255,.06);padding:10px 16px 14px}.sound-btn{min-width:48px;padding-inline:12px}.ultimate.ready{position:relative;overflow:hidden}.ultimate.ready:after{content:"";position:absolute;inset:-1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transform:translateX(-120%);animation:ultSweep 1.6s ease infinite}
.flight-card{position:fixed;z-index:9999;border:1px solid #63dbff;border-radius:14px;background:#0d1728;overflow:hidden;box-shadow:0 20px 55px rgba(0,0,0,.55),0 0 35px rgba(66,211,255,.22);pointer-events:none;will-change:transform}.flight-card>div{height:68%;background-size:cover;background-position:center}.flight-card>b{height:32%;display:flex;align-items:center;justify-content:center;padding:6px;text-align:center;font-size:.72rem;background:#0d1524;color:#eef8ff}
.ultimate-layer{background:radial-gradient(circle at center,rgba(21,44,78,.52),rgba(2,5,10,.82));backdrop-filter:blur(3px)}.ultimate-cinematic{position:absolute;inset:0;display:grid;grid-template-columns:minmax(280px,42%) minmax(320px,1fr);align-items:center;overflow:hidden}.ultimate-avatar{align-self:stretch;position:relative;overflow:hidden;clip-path:polygon(0 0,100% 0,78% 100%,0 100%);animation:ultAvatarIn .45s cubic-bezier(.2,.8,.2,1) both}.ultimate-avatar img{width:100%;height:100%;object-fit:cover;filter:contrast(1.12) saturate(1.2)}.ultimate-avatar:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 45%,rgba(6,11,20,.88))}.ultimate-copy{position:relative;z-index:5;padding:25px;animation:ultCopyIn .55s .12s ease both}.ultimate-copy span{display:block;font-size:.85rem;color:#95a8c8;letter-spacing:.22em;text-transform:uppercase}.ultimate-copy b{display:block;font-size:clamp(2rem,5vw,5rem);line-height:.95;margin:8px 0 13px;letter-spacing:.02em;color:#fff;text-shadow:0 0 35px rgba(78,207,255,.38)}.ultimate-copy i{font-style:normal;color:#63dfff;font-size:.7rem;letter-spacing:.22em}.ultimate-burst{position:absolute;left:42%;top:50%;width:8px;height:150%;background:#fff;box-shadow:0 0 45px #65dbff;transform:translate(-50%,-50%) rotate(14deg);animation:ultBurst .8s .3s ease both}
.fx-layer.glitch .ultimate-copy b{color:#c4a6ff}.fx-layer.cannon .ultimate-copy b{color:#ffc079}.fx-layer.arcane .ultimate-copy b{color:#d9a8ff}.fx-layer.gold .ultimate-copy b,.fx-layer.royal .ultimate-copy b{color:#ffe28a}.fx-layer.slash .ultimate-copy b{color:#b7ebff}
@keyframes auraSpin{to{transform:rotate(360deg)}}
@keyframes ringSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes sigilPulse{50%{transform:scale(1.07);box-shadow:0 0 38px rgba(52,210,255,.18),inset 0 0 24px rgba(52,210,255,.08)}}
@keyframes arenaCardEnter{0%{opacity:0;transform:translateY(30px) rotateX(18deg) scale(.78)}100%{opacity:1;transform:translateY(0) rotateX(1deg) scale(1)}}
@keyframes arenaCardResolve{0%,100%{transform:scale(1)}35%{transform:scale(1.055);filter:brightness(1.22)}65%{transform:scale(.99)}}
@keyframes particleBurst{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}18%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--r)) scale(.2)}}
@keyframes fighterHit{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
@keyframes floatStat{0%{opacity:0;transform:translateY(8px) scale(.65)}20%{opacity:1;transform:translateY(0) scale(1.08)}100%{opacity:0;transform:translateY(-38px) scale(.96)}}
@keyframes coreFlash{40%{transform:translate(-50%,-50%) scale(1.12);box-shadow:0 0 55px rgba(87,222,255,.25)}}
@keyframes arenaKick{40%{transform:scale(1.018)}}
@keyframes glitchBoard{0%,100%{transform:none;filter:none}25%{transform:translateX(5px);filter:hue-rotate(55deg)}50%{transform:translateX(-5px)}75%{transform:translateY(2px);filter:hue-rotate(-45deg)}}
@keyframes cannonLine{0%{opacity:0;transform:translateX(-45%) scaleX(.1)}25%{opacity:1}100%{opacity:0;transform:translateX(50%) scaleX(1.5)}}
@keyframes arcaneBurst{0%{opacity:0;transform:scale(.3) rotate(-40deg)}50%{opacity:1}100%{opacity:0;transform:scale(1.7) rotate(55deg)}}
@keyframes shieldWave{0%{opacity:0;transform:scale(.4)}35%{opacity:1}100%{opacity:0;transform:scale(1.45)}}
@keyframes slashFx{0%{opacity:0;transform:translate(-80px,40px) rotate(-22deg) scaleX(.2)}35%{opacity:1}100%{opacity:0;transform:translate(80px,-40px) rotate(-22deg) scaleX(1.4)}}
@keyframes targetLock{0%{opacity:0;transform:scale(1.7) rotate(40deg)}50%{opacity:1;transform:scale(.8) rotate(0)}100%{opacity:0;transform:scale(.65)}}
@keyframes chaosPulse{0%,100%{filter:none;transform:none}50%{filter:saturate(1.7) hue-rotate(35deg);transform:scale(1.025)}}
@keyframes rushCard{0%{transform:translateX(-70px) scale(.8);opacity:0}60%{transform:translateX(8px) scale(1.04);opacity:1}100%{transform:none}}
@keyframes ultSweep{to{transform:translateX(120%)}}
@keyframes ultAvatarIn{0%{opacity:0;transform:translateX(-18%);filter:brightness(2)}100%{opacity:1;transform:none}}
@keyframes ultCopyIn{0%{opacity:0;transform:translateX(55px)}100%{opacity:1;transform:none}}
@keyframes ultBurst{0%{opacity:0;transform:translate(-50%,-50%) rotate(14deg) scaleY(.2)}45%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(14deg) scaleY(1.3)}}
@media (prefers-reduced-motion:reduce){.fighter-aura,.core-ring,.arena-sigil,.ultimate.ready:after{animation:none!important}.duel-board,.arena-active-card,.fighter,.flight-card{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:980px){.arena-main{grid-template-columns:82px minmax(260px,1fr) 210px;padding-inline:10px}.combat-feed{padding-left:8px}.field-lane>span{display:none}.field-slots i{width:56px}.fighter{grid-template-columns:78px minmax(0,1fr) auto}.fighter-portrait,.fighter-portrait img{width:68px;height:68px}.arena-active-card{height:170px}}
@media(max-width:760px){.battle-shell{padding:7px 5px 28px}.arena{border-radius:17px;min-height:690px}.fighter{grid-template-columns:62px minmax(0,1fr) auto;padding:8px 10px;min-height:88px}.fighter-portrait,.fighter-portrait img{width:56px;height:56px;border-radius:12px}.fighter-title h3{font-size:.83rem}.fighter-title small{font-size:.61rem}.fighter-stats{font-size:.66rem}.fighter-stats .hptext{font-size:.8rem}.status-row{display:none}.arena-main{grid-template-columns:54px minmax(220px,1fr);min-height:220px;padding:8px}.combat-feed{position:absolute;right:7px;bottom:68px;width:185px;max-height:88px;border:1px solid rgba(255,255,255,.06);border-radius:9px;background:rgba(5,10,18,.82);padding:5px;z-index:12;opacity:.78}.combat-feed-head{display:none}.combat-feed-body .log-line:nth-child(n+4){display:none}.log-line{font-size:.54rem;padding:3px 5px}.left-rail{border-right:0}.pile-stack{width:38px;height:48px}.arena-active-card{height:158px;grid-template-columns:46% 54%}.arena-card-copy{padding:9px}.arena-card-copy>b{font-size:.92rem}.arena-card-copy>small{font-size:.59rem;max-height:48px;overflow:hidden}.field-lane{height:48px}.field-slots i{width:48px;height:30px}.turn-ribbon{top:7px}.battle-center{min-height:490px}.hand{justify-content:flex-start;min-height:145px}.hand .game-card{min-width:124px;width:124px;min-height:187px}.hand .card-art{height:80px}.ultimate-cinematic{grid-template-columns:48% 52%}.ultimate-copy{padding:14px}.ultimate-copy b{font-size:clamp(1.6rem,8vw,3rem)}}
@media(max-width:480px){.arena-main{grid-template-columns:44px minmax(190px,1fr)}.left-rail{gap:4px}.card-pile small,.arena-meter span{display:none}.pile-stack{width:30px;height:40px}.arena-meter b{font-size:.72rem}.combat-feed{display:none}.arena-card-slot{width:98%}.arena-active-card{height:145px}.arena-card-copy>small{display:none}.field-slots{gap:7px}.field-slots i{width:42px}.battle-controls{gap:5px;padding-inline:7px}.battle-controls .btn{padding:9px 10px;font-size:.72rem}.energy{font-size:.83rem;padding:9px 7px}.sound-btn{min-width:39px}.ultimate-cinematic{grid-template-columns:1fr}.ultimate-avatar{position:absolute;inset:0;clip-path:none;opacity:.45}.ultimate-copy{margin-left:0;padding:22px;align-self:end}.ultimate-copy b{font-size:2.2rem}.ultimate-burst{left:12%}}
.arena-active-card.from-enemy{animation-name:arenaCardEnterEnemy}.arena-active-card.from-player{animation-name:arenaCardEnter}
@keyframes arenaCardEnterEnemy{0%{opacity:0;transform:translateY(-34px) rotateX(-18deg) scale(.78)}100%{opacity:1;transform:translateY(0) rotateX(1deg) scale(1)}}

/* =========================================================
   v1.3.0 — Professional Card Visual System
   Founders/NFTs remain player avatars. Battle cards use
   independent combat illustrations and category frames.
   ========================================================= */
:root{
 --card-red:#ff5166;--card-red2:#ff9b4e;
 --card-blue:#45c8ff;--card-blue2:#687bff;
 --card-green:#52ef9b;--card-green2:#1fcbb1;
 --card-purple:#c06cff;--card-purple2:#7858ff;
 --card-gold:#ffd36d;--card-gold2:#ff9b45;
}
body{background:
 radial-gradient(circle at 50% -8%,rgba(52,109,195,.22),transparent 32%),
 radial-gradient(circle at 82% 12%,rgba(103,49,159,.17),transparent 30%),
 linear-gradient(180deg,#070b13,#090d16 48%,#060911)}
.topbar{border-bottom-color:rgba(125,179,255,.13);box-shadow:0 8px 28px rgba(0,0,0,.24)}

/* Card frame and identity */
.game-card{
 --card-accent:#6f8bb8;--card-accent2:#8aa6d2;--card-glow:rgba(79,159,255,.18);
 min-height:318px;border:1px solid color-mix(in srgb,var(--card-accent) 62%,#23304a);
 border-radius:16px;background:linear-gradient(180deg,#11192a 0,#090e18 100%);
 box-shadow:0 13px 28px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,255,255,.025);
 isolation:isolate;overflow:hidden;transform-style:preserve-3d;
}
.game-card:before{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:15px;
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--card-accent) 45%,transparent),inset 0 -70px 80px rgba(0,0,0,.15)}
.game-card:after{content:"";position:absolute;z-index:5;left:10%;right:10%;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--card-accent),#fff,var(--card-accent),transparent);opacity:.72}
.game-card.theme-attack{--card-accent:var(--card-red);--card-accent2:var(--card-red2);--card-glow:rgba(255,72,90,.23)}
.game-card.theme-defense{--card-accent:var(--card-blue);--card-accent2:var(--card-blue2);--card-glow:rgba(59,197,255,.23)}
.game-card.theme-support{--card-accent:var(--card-green);--card-accent2:var(--card-green2);--card-glow:rgba(64,238,151,.20)}
.game-card.theme-control{--card-accent:var(--card-purple);--card-accent2:var(--card-purple2);--card-glow:rgba(185,93,255,.23)}
.game-card.theme-magic{--card-accent:#b267ff;--card-accent2:#e86cff;--card-glow:rgba(176,90,255,.24)}
.game-card.scope-signature{border-color:#e9bd56;box-shadow:0 13px 32px rgba(0,0,0,.4),0 0 0 1px rgba(255,209,96,.14),0 0 22px rgba(255,191,62,.06)}
.game-card.scope-signature:after{background:linear-gradient(90deg,transparent,#dcae48,#fff5c2,#dcae48,transparent);opacity:.88}
.game-card:hover{transform:translateY(-6px);border-color:var(--card-accent);box-shadow:0 18px 40px rgba(0,0,0,.42),0 0 25px var(--card-glow)}
.game-card.in-deck{border-color:#77e9ff;box-shadow:0 0 0 2px rgba(91,222,255,.2),0 16px 36px rgba(0,0,0,.36)}
.game-card.in-deck:before{box-shadow:inset 0 0 0 2px rgba(86,228,255,.26)}
.game-card.disabled{filter:saturate(.58) brightness(.7);opacity:.55}
.card-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:15px}
.card-art{height:166px;background-size:cover;background-position:center;background-repeat:no-repeat;position:relative;overflow:hidden;border-bottom:1px solid color-mix(in srgb,var(--card-accent) 50%,#1c2537)}
.card-art:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 42%,rgba(5,8,14,.12) 68%,rgba(5,8,14,.92) 100%);z-index:1}
.card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.10),transparent 20% 74%,rgba(255,255,255,.04));mix-blend-mode:screen;z-index:1}
.card-cost{top:9px;left:9px;z-index:3;width:38px;height:42px;border-radius:11px 11px 14px 14px;background:linear-gradient(155deg,color-mix(in srgb,var(--card-accent) 70%,#132344),#101a2d);border:1px solid rgba(255,255,255,.55);box-shadow:0 4px 13px rgba(0,0,0,.38),0 0 16px var(--card-glow);font-size:1.06rem;text-shadow:0 2px 5px rgba(0,0,0,.5)}
.card-type-icon{position:absolute;z-index:3;left:14px;bottom:9px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(4,8,15,.82);border:1px solid color-mix(in srgb,var(--card-accent) 65%,transparent);color:var(--card-accent);font-size:.82rem;box-shadow:0 0 14px var(--card-glow)}
.scope{top:9px;right:9px;padding:5px 8px;border-radius:7px;border:1px solid rgba(255,255,255,.14);background:rgba(5,9,16,.78);backdrop-filter:blur(4px);font-size:.54rem;color:#d8e1f2}
.card-nameplate{position:relative;z-index:2;margin-top:-2px;padding:8px 10px 7px;background:linear-gradient(90deg,color-mix(in srgb,var(--card-accent) 20%,#080d17),#090e18 54%,color-mix(in srgb,var(--card-accent2) 13%,#080d17));border-top:1px solid color-mix(in srgb,var(--card-accent) 48%,transparent);border-bottom:1px solid rgba(255,255,255,.06);text-align:center}
.card-nameplate small{display:block;color:var(--card-accent);font-size:.52rem;letter-spacing:.18em;font-weight:900}
.card-nameplate h4{margin:2px 0 0;font-size:.88rem;line-height:1.15;color:#fff;text-shadow:0 1px 5px #000}
.card-body{min-height:101px;padding:10px 11px 9px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 50% 0,var(--card-glow),transparent 56%)}
.card-body p{font-size:.69rem;line-height:1.42;color:#c4cde0;margin:0;text-align:center}
.card-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid rgba(255,255,255,.06);margin-top:8px;padding-top:7px;color:#7f91ad;font-size:.51rem;text-transform:uppercase;letter-spacing:.08em}
.card-footer b{color:var(--card-accent);font-size:.53rem}
.card-art .art-4k{display:none!important}

/* Founder/NFT avatar cards stay visually distinct from battle cards */
.avatar-card{background:linear-gradient(180deg,#121a2a,#0a101b);border-color:#30405d;box-shadow:0 12px 28px rgba(0,0,0,.24)}
.avatar-card:hover{border-color:#678ac4;box-shadow:0 18px 38px rgba(0,0,0,.34),0 0 20px rgba(75,173,255,.08)}
.avatar-card .avatar-img{filter:saturate(1.04) contrast(1.03)}
.avatar-summary{background:linear-gradient(180deg,#121b2c,#0a101a);border-color:#334767;box-shadow:0 18px 40px rgba(0,0,0,.3)}

/* Battle HUD: Founder avatars as players, cards as actions */
.battle-shell{max-width:1440px;padding:10px 12px 52px}
.arena{min-height:820px;border-color:#34496d;border-radius:25px;background:
 radial-gradient(circle at 50% 35%,rgba(42,130,199,.16),transparent 25%),
 radial-gradient(circle at 14% 26%,rgba(35,119,199,.12),transparent 28%),
 radial-gradient(circle at 88% 26%,rgba(157,58,173,.10),transparent 29%),
 linear-gradient(180deg,#080d17 0,#0b1322 42%,#070b12 100%);
 box-shadow:0 24px 70px rgba(0,0,0,.48),inset 0 0 70px rgba(50,110,180,.04)}
.duel-hud{display:grid;grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);align-items:stretch;position:relative;z-index:9;border-bottom:1px solid rgba(110,169,238,.16);background:linear-gradient(90deg,rgba(8,20,36,.98),rgba(9,13,22,.94) 48%,rgba(24,9,28,.96))}
.duel-hud .fighter{min-height:132px;padding:14px 16px;background:transparent;border:0!important;grid-template-columns:94px minmax(0,1fr) auto}
.duel-hud .fighter.me{box-shadow:inset 3px 0 0 rgba(58,196,255,.48)}
.duel-hud .fighter.enemy{grid-template-columns:auto minmax(0,1fr) 94px;text-align:right;box-shadow:inset -3px 0 0 rgba(204,82,217,.40)}
.duel-hud .fighter.enemy .fighter-portrait{grid-column:3;grid-row:1;justify-self:end}
.duel-hud .fighter.enemy .fighter-main{grid-column:2;grid-row:1}
.duel-hud .fighter.enemy .fighter-stats{grid-column:1;grid-row:1;text-align:left}
.duel-hud .fighter.enemy .fighter-title,.duel-hud .fighter.enemy .status-row{justify-content:flex-end}
.duel-hud .fighter-portrait,.duel-hud .fighter-portrait img{width:84px;height:84px}
.duel-hud .fighter-portrait img{border-radius:16px;border-color:#6a7f9e}
.duel-hud .fighter.me .fighter-portrait img{box-shadow:0 0 26px rgba(45,190,255,.13)}
.duel-hud .fighter.enemy .fighter-portrait img{box-shadow:0 0 26px rgba(189,73,255,.12)}
.duel-hud .fighter-title h3{font-size:1.08rem;letter-spacing:.02em}
.duel-hud .fighter-title small{font-size:.62rem;color:#8ea3c2}
.duel-hud .bar{height:9px;background:#151f31;border:1px solid rgba(255,255,255,.04)}
.duel-hud .fighter.me .hp i{background:linear-gradient(90deg,#15b885,#55e6bb)}
.duel-hud .fighter.enemy .hp i{background:linear-gradient(90deg,#e3425f,#ff6d7f)}
.versus-medallion{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;background:radial-gradient(circle,rgba(30,74,121,.32),transparent 70%);border-left:1px solid rgba(255,255,255,.04);border-right:1px solid rgba(255,255,255,.04)}
.versus-medallion:before{content:"";position:absolute;width:68px;height:68px;border:1px solid #ad8742;transform:rotate(45deg);background:rgba(8,12,20,.84);box-shadow:0 0 22px rgba(255,187,68,.08)}
.versus-medallion>*{position:relative;z-index:2}.versus-medallion b{font-size:1.45rem;color:#ffe39b;text-shadow:0 0 16px rgba(255,194,78,.28)}.versus-medallion small,.versus-medallion span{font-size:.52rem;letter-spacing:.1em;text-transform:uppercase;color:#8fa2bd;max-width:92px;text-align:center}.versus-medallion span{color:#bfeeff}
.battle-center{min-height:590px}
.duel-board{min-height:330px;background:
 linear-gradient(rgba(98,151,215,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(98,151,215,.045) 1px,transparent 1px),
 radial-gradient(ellipse at center,rgba(34,91,147,.24),rgba(6,11,19,.82) 69%);background-size:48px 48px,48px 48px,auto}
.arena-main{grid-template-columns:104px minmax(330px,1fr) 285px;min-height:250px}
.arena-core{min-height:232px}
.core-ring.r1{width:235px;height:235px}.core-ring.r2{width:182px;height:182px}.core-ring.r3{width:124px;height:124px}
.arena-card-slot{width:min(405px,94%);min-height:212px}
.arena-active-card{--card-accent:#62d8ff;--card-glow:rgba(74,211,255,.18);width:min(390px,96%);height:210px;border-color:var(--card-accent);box-shadow:0 18px 50px rgba(0,0,0,.48),0 0 38px var(--card-glow)}
.arena-active-card.theme-attack{--card-accent:var(--card-red);--card-glow:rgba(255,72,90,.24)}.arena-active-card.theme-defense{--card-accent:var(--card-blue);--card-glow:rgba(61,201,255,.22)}.arena-active-card.theme-support{--card-accent:var(--card-green);--card-glow:rgba(72,235,153,.20)}.arena-active-card.theme-control,.arena-active-card.theme-magic{--card-accent:var(--card-purple);--card-glow:rgba(184,91,255,.23)}
.arena-card-image{background-size:cover;background-position:center}
.arena-card-image:after{background:linear-gradient(90deg,transparent 52%,rgba(8,14,24,.92))}
.arena-card-copy>b{font-size:1.25rem}.arena-card-copy>small{font-size:.73rem}
.arena-card-type{border:1px solid color-mix(in srgb,var(--card-accent) 52%,transparent);color:#fff}

/* Hand mimics physical premium TCG cards */
.hand-wrap{padding:10px 12px 18px;background:linear-gradient(180deg,rgba(4,8,14,.14),rgba(4,8,14,.78));border-top:1px solid rgba(255,255,255,.045)}
.hand-title{max-width:1180px;margin-bottom:-2px;color:#91a5c1}
.hand{min-height:252px;gap:11px;padding:12px 12px 7px;justify-content:center}
.hand .game-card{min-width:170px;width:170px;min-height:252px;border-radius:15px}
.hand .card-art{height:128px}.hand .card-nameplate{padding:6px 8px}.hand .card-nameplate h4{font-size:.78rem}.hand .card-nameplate small{font-size:.45rem}.hand .card-body{min-height:76px;padding:7px 9px}.hand .card-body p{font-size:.58rem;line-height:1.28}.hand .card-footer{font-size:.44rem;margin-top:5px;padding-top:5px}.hand .card-cost{width:34px;height:37px;font-size:.92rem}.hand .scope{font-size:.46rem;padding:4px 6px}.hand .card-type-icon{width:24px;height:24px;font-size:.7rem}
.hand .game-card:not(.disabled):hover{transform:translateY(-18px) scale(1.06);border-color:var(--card-accent);box-shadow:0 20px 44px rgba(0,0,0,.5),0 0 28px var(--card-glow)}

.battle-controls{min-height:68px;align-items:center;background:linear-gradient(180deg,#0a101b,#060a11);border-top-color:rgba(105,157,220,.12)}
.battle-controls .energy{border:1px solid rgba(70,207,255,.18);border-radius:11px;background:rgba(15,43,70,.38);box-shadow:inset 0 0 18px rgba(61,199,255,.04)}
.turn-end{min-width:190px;border-color:#f4c057;box-shadow:0 0 22px rgba(255,186,60,.09)}

.flight-card{--card-accent:#62d8ff;border-color:var(--card-accent)}.flight-card.theme-attack{--card-accent:var(--card-red)}.flight-card.theme-defense{--card-accent:var(--card-blue)}.flight-card.theme-support{--card-accent:var(--card-green)}.flight-card.theme-control,.flight-card.theme-magic{--card-accent:var(--card-purple)}
.flight-card>div{background-size:cover;background-position:center}

@media(max-width:1080px){
 .card-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
 .duel-hud{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)}
 .duel-hud .fighter{grid-template-columns:74px minmax(0,1fr) auto;padding-inline:11px}
 .duel-hud .fighter.enemy{grid-template-columns:auto minmax(0,1fr) 74px}
 .duel-hud .fighter-portrait,.duel-hud .fighter-portrait img{width:66px;height:66px}
 .duel-hud .fighter-title small{display:block;width:100%}
 .arena-main{grid-template-columns:82px minmax(300px,1fr) 230px}
 .hand{justify-content:flex-start}
 .hand .game-card{min-width:158px;width:158px}
}
@media(max-width:760px){
 .battle-shell{padding:6px 4px 28px}.arena{min-height:760px;border-radius:16px}
 .duel-hud{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)}
 .duel-hud .fighter{min-height:98px;grid-template-columns:52px minmax(0,1fr);gap:7px;padding:8px}
 .duel-hud .fighter.enemy{grid-template-columns:minmax(0,1fr) 52px}
 .duel-hud .fighter.enemy .fighter-main{grid-column:1}.duel-hud .fighter.enemy .fighter-portrait{grid-column:2}.duel-hud .fighter-stats{display:none}
 .duel-hud .fighter-portrait,.duel-hud .fighter-portrait img{width:48px;height:48px;border-radius:11px}
 .duel-hud .fighter-title h3{font-size:.72rem}.duel-hud .fighter-title small{font-size:.48rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .duel-hud .status-row{display:none}.duel-hud .bars{margin-top:5px}
 .versus-medallion:before{width:42px;height:42px}.versus-medallion b{font-size:.86rem}.versus-medallion small,.versus-medallion span{display:none}
 .battle-center{min-height:570px}.duel-board{min-height:292px}.arena-main{grid-template-columns:50px minmax(220px,1fr);min-height:210px;padding:7px}
 .arena-main .combat-feed{display:none}.arena-card-slot{min-height:175px}.arena-active-card{height:165px;grid-template-columns:48% 52%}.arena-card-copy{padding:9px}.arena-card-copy>b{font-size:.9rem}.arena-card-copy>small{font-size:.58rem}
 .hand-wrap{padding-inline:5px}.hand{min-height:210px;gap:8px;padding-inline:5px}.hand .game-card{min-width:138px;width:138px;min-height:214px}.hand .card-art{height:104px}.hand .card-nameplate h4{font-size:.69rem}.hand .card-body{min-height:66px}.hand .card-body p{font-size:.52rem}.hand .card-footer{display:none}
 .battle-controls{gap:6px;padding:8px}.battle-controls .btn{font-size:.67rem;padding:9px 10px}.turn-end{min-width:138px}.battle-controls .energy{font-size:.72rem;padding:9px}
}
@media(max-width:480px){
 .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-card{min-height:248px}.card-art{height:120px}.card-body{min-height:78px}.card-body p{font-size:.58rem}.card-footer{display:none}
 .duel-hud{grid-template-columns:1fr 42px 1fr}.duel-hud .fighter{grid-template-columns:42px minmax(0,1fr);padding:6px}.duel-hud .fighter.enemy{grid-template-columns:minmax(0,1fr) 42px}.duel-hud .fighter-portrait,.duel-hud .fighter-portrait img{width:38px;height:38px}.duel-hud .fighter-title small{display:none}.duel-hud .bar.shield{display:none}
 .arena-main{grid-template-columns:38px minmax(186px,1fr)}.arena-active-card{height:150px}.arena-card-copy>small{display:none}.arena-card-type{font-size:.47rem}.hand .game-card{min-width:126px;width:126px;min-height:196px}.hand .card-art{height:94px}.hand .card-body p{font-size:.48rem}.hand .scope{display:none}.hand .card-type-icon{display:none}
 .turn-end{min-width:120px}.sound-btn{display:none}
}

/* =========================================================
   v1.4.0 — Cinematic Arena UI
   Real interface overhaul: no baked mockup, no NFT-as-card.
   ========================================================= */
body.in-battle{
  background:
    linear-gradient(180deg,rgba(2,6,12,.74),rgba(3,6,12,.9)),
    url("assets/ui/founders-arena-backdrop.webp") center center/cover fixed no-repeat;
  min-height:100vh;
  overflow-x:hidden;
}
body.in-battle .topbar{display:none}
body.in-battle #screen{min-height:100vh}

.battle-stage{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  background:
    linear-gradient(90deg,rgba(2,5,10,.86),rgba(5,10,18,.44) 18%,rgba(5,10,18,.34) 82%,rgba(4,3,8,.78)),
    linear-gradient(180deg,rgba(2,5,10,.3),rgba(2,5,10,.68) 100%),
    url("assets/ui/founders-arena-backdrop.webp") center center/cover no-repeat;
}
.battle-stage:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(circle at 12% 50%,rgba(47,132,255,.12),transparent 24%),
    radial-gradient(circle at 88% 50%,rgba(255,77,126,.12),transparent 24%),
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.38));
}

.battle-stage>*{position:relative;z-index:1}
.battle-nav{
  position:sticky;top:0;height:100vh;z-index:80;
  display:flex;flex-direction:column;
  border-right:1px solid rgba(132,165,205,.18);
  background:
    linear-gradient(180deg,rgba(4,8,15,.88),rgba(5,9,17,.8)),
    radial-gradient(circle at 50% 20%,rgba(33,74,122,.16),transparent 42%);
  backdrop-filter:blur(10px);
  box-shadow:18px 0 55px rgba(0,0,0,.28);
}
.battle-brand{
  height:112px;padding:22px 20px;border:0;border-bottom:1px solid rgba(255,255,255,.06);
  display:flex;align-items:center;gap:12px;color:#fff;background:transparent;text-align:left;cursor:pointer;
}
.battle-brand .crown-mark{font-size:2rem;color:#ffc95a;text-shadow:0 0 22px rgba(255,194,72,.28)}
.battle-brand b{display:block;font-size:1.08rem;letter-spacing:.17em}
.battle-brand small{display:block;margin-top:4px;color:#7f93b2;font-size:.62rem;letter-spacing:.19em}
.battle-menu{padding:18px 10px;display:grid;gap:5px}
.battle-menu button{
  width:100%;height:52px;border:1px solid transparent;border-radius:10px;padding:0 15px;
  display:flex;align-items:center;gap:13px;background:transparent;color:#9ba9c0;text-align:left;
  font-weight:700;cursor:pointer;transition:.18s ease;
}
.battle-menu button span{width:25px;text-align:center;font-size:1.18rem;color:#7286a6}
.battle-menu button:hover{color:#fff;background:rgba(30,77,125,.16);border-color:rgba(72,161,235,.16)}
.battle-menu button.active{
  color:#bfefff;border-color:rgba(65,191,255,.35);
  background:linear-gradient(90deg,rgba(19,112,184,.35),rgba(16,53,95,.15));
  box-shadow:inset 3px 0 0 #45cfff,0 0 24px rgba(43,168,240,.08);
}
.battle-menu button.active span{color:#59d7ff}
.battle-nav-spacer{flex:1}
.battle-nav-motto{
  margin:10px 12px 14px;padding:18px 14px;border:1px solid rgba(85,137,197,.19);border-radius:14px;
  background:radial-gradient(circle at 50% 0,rgba(34,106,176,.18),rgba(7,13,23,.68));text-align:center;
}
.battle-nav-motto span{display:block;color:#ffc95e;font-size:.61rem;letter-spacing:.19em}
.battle-nav-motto b{display:block;margin:5px 0 13px;color:#e8f5ff;font-size:.86rem;letter-spacing:.14em}
.battle-nav-motto small{color:#6f819d;font-size:.58rem;line-height:1.7;letter-spacing:.18em}
.battle-nav-wallet{height:58px;border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:9px;padding:0 18px;color:#70819c;font-size:.68rem}
.wallet-dot{width:8px;height:8px;border-radius:50%;background:#5b6574;box-shadow:0 0 0 4px rgba(91,101,116,.08)}
.wallet-dot.on{background:#55eda1;box-shadow:0 0 13px rgba(85,237,161,.55)}

body.in-battle .battle-shell{
  position:relative;z-index:1;
  width:min(1560px,calc(100vw - 214px));max-width:none;margin:0 auto;padding:10px clamp(10px,1.2vw,22px) 26px;
}
.battle-topline{
  height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;
  color:#bccae0;text-transform:uppercase;font-size:.62rem;letter-spacing:.18em;
  background:linear-gradient(90deg,rgba(4,9,15,.62),rgba(4,9,15,.16) 50%,rgba(4,9,15,.62));
  border:1px solid rgba(112,145,182,.12);border-radius:14px;backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,.14);margin-bottom:10px;
}
.battle-topline>div:first-child{display:flex;align-items:baseline;gap:14px}
.battle-topline span{color:#d8e6f7;font-weight:900}
.battle-topline b{font-size:.55rem;color:#93a7c2}
.battle-room-state{display:flex;align-items:center;gap:8px;border:1px solid rgba(110,147,186,.2);padding:7px 11px;border-radius:999px;background:rgba(5,11,20,.44)}
.live-dot{width:7px;height:7px;border-radius:50%;background:#54d9ff;box-shadow:0 0 12px #54d9ff}

body.in-battle .arena{
  position:relative;min-height:0;border-radius:18px;border:1px solid rgba(126,155,189,.28);
  overflow:hidden;background:linear-gradient(180deg,rgba(5,9,16,.7),rgba(5,9,16,.84));backdrop-filter:blur(4px);
  box-shadow:0 24px 80px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.025),inset 0 0 60px rgba(255,255,255,.03);
}
body.in-battle .arena:before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:30;
  box-shadow:inset 0 0 90px rgba(0,0,0,.38);border-radius:18px;
}

body.in-battle .duel-hud{
  position:relative;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);
  min-height:184px;border-bottom:1px solid rgba(93,143,200,.16);
  background:
    linear-gradient(90deg,rgba(5,14,24,.86),rgba(5,12,23,.54) 45%,rgba(20,7,28,.54) 55%,rgba(27,8,30,.86));
  backdrop-filter:blur(4px);
}
body.in-battle .fighter{
  position:relative;min-height:184px;display:grid;grid-template-columns:150px minmax(0,1fr) 58px;gap:16px;
  align-items:center;padding:14px 18px;background:transparent;border:0;overflow:hidden;
}
body.in-battle .fighter:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.8;
  background:linear-gradient(115deg,rgba(25,130,210,.09),transparent 52%);
}
body.in-battle .fighter.enemy:before{background:linear-gradient(245deg,rgba(181,57,193,.1),transparent 54%)}
body.in-battle .fighter.enemy{grid-template-columns:58px minmax(0,1fr) 150px}
body.in-battle .fighter.enemy .fighter-portrait{order:3}
body.in-battle .fighter.enemy .fighter-main{order:2;text-align:right}
body.in-battle .fighter.enemy .fighter-stats{order:1}
body.in-battle .fighter.enemy .fighter-title,body.in-battle .fighter.enemy .fighter-kicker,body.in-battle .fighter.enemy .fighter-vitals,body.in-battle .fighter.enemy .status-row{justify-content:flex-end}

body.in-battle .fighter-portrait{position:relative;width:144px;height:154px;align-self:end}
body.in-battle .fighter-portrait:after{
  content:"";position:absolute;inset:auto -6px -5px -6px;height:45%;z-index:4;
  background:linear-gradient(transparent,#08101c 88%);pointer-events:none;
}
body.in-battle .fighter-portrait img{
  width:144px;height:154px;border-radius:13px 13px 2px 2px;object-fit:cover;object-position:center 27%;
  border:1px solid rgba(95,190,255,.58);position:relative;z-index:2;
  filter:saturate(1.14) contrast(1.08);box-shadow:0 10px 34px rgba(0,0,0,.42),0 0 24px rgba(42,175,255,.12);
}
body.in-battle .fighter.enemy .fighter-portrait img{border-color:rgba(208,87,238,.56);box-shadow:0 10px 34px rgba(0,0,0,.42),0 0 24px rgba(201,60,255,.12)}
body.in-battle .fighter-aura{inset:-8px;border-radius:18px;opacity:.5;filter:blur(7px)}
body.in-battle .fighter-main{position:relative;z-index:5;min-width:0}
.fighter-kicker{display:flex;align-items:center;gap:8px;color:#7387a8;font-size:.59rem;text-transform:uppercase;letter-spacing:.13em}
.fighter-kicker b{padding:3px 7px;border-radius:999px;color:#ffc85b;border:1px solid rgba(255,199,77,.23);background:rgba(72,52,17,.2);font-size:.52rem}
body.in-battle .fighter-title{display:flex;align-items:baseline;gap:10px;margin:4px 0 7px}
body.in-battle .fighter-title h3{font-size:clamp(1.12rem,1.35vw,1.45rem);letter-spacing:.01em;margin:0;text-shadow:0 4px 18px #000}
body.in-battle .fighter-title small{color:#67dcff;font-size:.65rem;text-transform:uppercase;letter-spacing:.12em}
body.in-battle .fighter.enemy .fighter-title small{color:#e08dff}
.fighter-vitals{display:flex;align-items:center;gap:12px;margin-bottom:6px;color:#9eacc2;font-size:.65rem}
.fighter-vitals strong{color:#f1f6ff;font-size:.82rem}
body.in-battle .fighter .bars{max-width:none;margin:0;display:grid;gap:4px}
body.in-battle .bar{height:9px;border:1px solid rgba(255,255,255,.05);background:#0c1727}
body.in-battle .hp i{background:linear-gradient(90deg,#16d99e,#52efc0)}
body.in-battle .fighter.enemy .hp i{background:linear-gradient(90deg,#ff3e72,#f26ee7)}
body.in-battle .shield i{background:linear-gradient(90deg,#267bd5,#4ddcff)}
.fighter-abilities{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.fighter-abilities span{min-width:0;padding:6px 8px;border:1px solid rgba(96,139,193,.14);border-radius:7px;background:rgba(5,11,20,.4);color:#9caac0;font-size:.56rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fighter-abilities i{display:block;margin-bottom:2px;color:#5fdcff;font-style:normal;font-size:.48rem;letter-spacing:.16em}
body.in-battle .fighter.enemy .fighter-abilities i{color:#db80ff}
body.in-battle .status-row{min-height:0;margin-top:6px}
body.in-battle .status-chip{font-size:.5rem;padding:2px 6px}
body.in-battle .fighter-stats{position:relative;z-index:4;display:grid;justify-items:center;gap:5px;color:#7f90ab;text-align:center}
.class-orb{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(79,201,255,.35);background:radial-gradient(circle,#153b60,#08131f 70%);color:#71e1ff;font-size:1.2rem;box-shadow:0 0 22px rgba(47,190,255,.1)}
body.in-battle .fighter.enemy .class-orb{border-color:rgba(210,83,238,.34);background:radial-gradient(circle,#42164c,#160b1a 70%);color:#e78cff}
body.in-battle .fighter-stats small{font-size:.48rem;text-transform:uppercase;letter-spacing:.08em}

body.in-battle .versus-medallion{
  position:relative;z-index:35;align-self:center;justify-self:center;width:86px;height:100px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#162039,#060b14);border:1px solid rgba(255,202,87,.62);
  transform:rotate(45deg);box-shadow:0 0 0 5px rgba(6,12,22,.8),0 0 34px rgba(255,188,63,.12);
}
body.in-battle .versus-medallion>*{transform:rotate(-45deg)}
body.in-battle .versus-medallion small{position:absolute;top:17px;font-size:.52rem;color:#90a0b7;text-transform:uppercase}
body.in-battle .versus-medallion b{font-size:1.52rem;color:#ffd16a;text-shadow:0 0 17px rgba(255,197,72,.22)}
body.in-battle .versus-medallion span{position:absolute;bottom:14px;width:120px;text-align:center;font-size:.48rem;color:#8ee8ff;text-transform:uppercase;letter-spacing:.08em}

body.in-battle .battle-center{min-height:0;background:linear-gradient(180deg,rgba(5,10,18,.16),rgba(5,10,18,.28))}
body.in-battle .duel-board{
  position:relative;min-height:310px;isolation:isolate;overflow:hidden;border:0;
  background:
    radial-gradient(circle at 50% 16%,rgba(126,175,255,.14),transparent 28%),
    linear-gradient(180deg,rgba(6,11,19,.1),rgba(2,6,12,.72) 62%,rgba(2,5,10,.92)),
    url("assets/ui/founders-arena-backdrop.webp") center 36%/cover no-repeat;
}
body.in-battle .duel-board:after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    linear-gradient(180deg,rgba(3,7,14,.18),transparent 22%,transparent 68%,rgba(2,5,10,.42) 100%),
    radial-gradient(circle at 50% 52%,rgba(255,188,95,.07),transparent 18%),
    linear-gradient(90deg,rgba(0,4,10,.34),rgba(8,16,28,.02) 18%,rgba(8,16,28,.02) 82%,rgba(6,2,10,.32));
}
.arena-atmosphere{position:absolute;inset:0;overflow:hidden;z-index:-2;background:
  linear-gradient(180deg,rgba(5,11,19,.08),rgba(4,7,13,.38) 80%,rgba(3,6,12,.56)),
  radial-gradient(circle at 50% 20%,rgba(46,112,196,.12),transparent 24%)}
.arena-atmosphere:before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:70%;opacity:.18;
  background:
    linear-gradient(90deg,transparent 0 9%,rgba(74,111,153,.17) 9.3% 9.7%,transparent 10% 19%,rgba(74,111,153,.13) 19.3% 19.7%,transparent 20% 80%,rgba(145,65,160,.13) 80.3% 80.7%,transparent 81% 90%,rgba(145,65,160,.16) 90.3% 90.7%,transparent 91%),
    linear-gradient(0deg,rgba(45,90,139,.1) 1px,transparent 1px);
  background-size:auto,100% 32px;
}
.arena-atmosphere i{position:absolute;bottom:28%;width:2px;height:65%;background:linear-gradient(transparent,rgba(81,188,255,.3),transparent);filter:blur(.2px);opacity:.3;transform:rotate(18deg)}
.arena-atmosphere i:nth-child(1){left:19%}.arena-atmosphere i:nth-child(2){left:36%;transform:rotate(9deg)}.arena-atmosphere i:nth-child(3){right:36%;transform:rotate(-9deg);background:linear-gradient(transparent,rgba(205,93,255,.22),transparent)}.arena-atmosphere i:nth-child(4){right:19%;transform:rotate(-18deg);background:linear-gradient(transparent,rgba(205,93,255,.25),transparent)}
.arena-banners{display:none}
.arena-banners span{position:absolute;top:55px;color:rgba(161,190,221,.23);font-size:.56rem;font-weight:900;line-height:1.55;letter-spacing:.15em;text-align:center}
.arena-banners span:first-child{left:26%;transform:skewY(-5deg)}
.arena-banners span:last-child{right:25%;transform:skewY(5deg)}
.arena-characters{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;mix-blend-mode:screen}
.arena-character{position:absolute;bottom:-96px;width:330px;height:390px;opacity:.16;filter:saturate(1.06) contrast(1.04)}
.arena-character img{width:100%;height:100%;object-fit:cover;object-position:center 18%;-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 54%,transparent 92%);mask-image:linear-gradient(to bottom,#000 0,#000 54%,transparent 92%)}
.character-me{left:7%;transform:rotate(-2deg)}
.character-enemy{right:7%;transform:rotate(2deg)}
.character-enemy img{filter:hue-rotate(10deg)}

body.in-battle .arena-main{
  position:relative;z-index:5;display:grid;grid-template-columns:94px minmax(300px,1fr) 252px;
  min-height:310px;align-items:center;gap:12px;padding:40px 20px 16px;
  background:linear-gradient(180deg,rgba(2,6,12,.08),rgba(2,5,10,.22));
}
body.in-battle .left-rail{align-self:stretch;border-right:1px solid rgba(83,139,197,.12);background:linear-gradient(90deg,rgba(3,8,15,.72),rgba(3,8,15,.2) 58%,transparent)}
body.in-battle .pile-stack{width:49px;height:62px}
body.in-battle .arena-core{min-height:240px}
.arena-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;opacity:.32;z-index:-1}
.arena-logo span{width:94px;height:94px;border:1px solid rgba(79,201,255,.26);transform:rotate(45deg);display:grid;place-items:center;color:#5edcff;font-size:1.45rem;font-weight:1000;text-shadow:0 0 25px #4ccfff}
.arena-logo span::first-line{transform:rotate(-45deg)}
.arena-logo small{margin-top:34px;font-size:.48rem;letter-spacing:.24em;color:#5d7898;white-space:nowrap}
body.in-battle .core-ring.r1{width:240px;height:240px;border-color:rgba(62,178,234,.18)}
body.in-battle .core-ring.r2{width:185px;height:185px}
body.in-battle .core-ring.r3{width:126px;height:126px}
body.in-battle .arena-card-slot{min-height:215px;width:min(385px,92%)}
body.in-battle .arena-empty{gap:6px;color:#758ba7}
body.in-battle .arena-sigil{width:72px;height:72px;background:rgba(4,12,22,.58);border-color:#326a96;color:#73dfff;box-shadow:0 0 45px rgba(58,203,255,.11),inset 0 0 24px rgba(58,203,255,.06)}
body.in-battle .arena-empty strong{font-size:.68rem;color:#b3c6dc}
body.in-battle .arena-empty span{font-size:.58rem}
body.in-battle .combat-feed{
  align-self:center;max-height:232px;overflow:hidden;padding:10px;border:1px solid rgba(82,133,189,.16);border-radius:10px;
  background:linear-gradient(180deg,rgba(5,12,22,.84),rgba(6,11,19,.68));backdrop-filter:blur(8px);box-shadow:0 10px 32px rgba(0,0,0,.28);
}
body.in-battle .combat-feed-head{padding:2px 3px 8px}
body.in-battle .log-line{font-size:.58rem;padding:5px 6px;background:rgba(11,25,42,.56)}
body.in-battle .turn-ribbon{
  top:12px;padding:7px 14px;border-color:rgba(74,204,255,.38);background:rgba(6,14,25,.82);
  box-shadow:0 0 30px rgba(52,189,255,.08);font-size:.62rem;
}
.arena-floor{position:absolute;left:11%;right:9%;bottom:-96px;height:188px;z-index:2;border-radius:50%;border:1px solid rgba(66,155,218,.16);transform:perspective(340px) rotateX(67deg);box-shadow:inset 0 0 70px rgba(43,126,194,.08),0 0 45px rgba(34,119,191,.05);pointer-events:none;opacity:.78}
.arena-floor:before,.arena-floor:after,.arena-floor i{content:"";position:absolute;border-radius:50%;border:1px solid rgba(82,168,226,.12);inset:18%}
.arena-floor:after{inset:34%}.arena-floor i:nth-child(1){inset:8%}.arena-floor i:nth-child(2){inset:26%}.arena-floor i:nth-child(3){inset:44%}

body.in-battle .hand-wrap{
  position:relative;z-index:12;padding:10px 14px 15px;border-top:1px solid rgba(84,137,197,.12);
  background:linear-gradient(180deg,rgba(7,13,23,.74),rgba(5,10,18,.9) 78%);backdrop-filter:blur(6px);
}
body.in-battle .hand-title{max-width:1120px;color:#6f84a3;margin-bottom:-2px}
body.in-battle .hand{min-height:214px;gap:10px;padding:10px 9px 3px;align-items:flex-end}
body.in-battle .hand .game-card{
  min-width:154px;width:154px;min-height:216px;border-radius:11px;
  box-shadow:0 12px 28px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.02);
}
body.in-battle .hand .game-card:not(.disabled):hover{transform:translateY(-16px) scale(1.055);box-shadow:0 20px 42px rgba(0,0,0,.55),0 0 26px rgba(75,198,255,.11)}
body.in-battle .hand .card-art{height:100px}
body.in-battle .hand .card-nameplate h4{font-size:.75rem}
body.in-battle .hand .card-nameplate small{font-size:.48rem}
body.in-battle .hand .card-body{padding:7px 8px}
body.in-battle .hand .card-body p{font-size:.57rem;line-height:1.35}
body.in-battle .hand .card-footer{font-size:.46rem}

body.in-battle .battle-controls{
  min-height:68px;display:flex;align-items:center;gap:10px;justify-content:center;padding:10px 16px;
  background:linear-gradient(180deg,rgba(8,13,24,.72),rgba(5,10,18,.92));border-top:1px solid rgba(83,139,199,.17);backdrop-filter:blur(6px);
}
body.in-battle .battle-controls .energy{
  min-width:160px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(55,195,255,.28);border-radius:10px;
  background:linear-gradient(180deg,#10243b,#0a1524);color:#60dfff;font-size:.76rem;box-shadow:inset 0 0 18px rgba(39,156,222,.05);
}
body.in-battle .battle-controls .energy b{margin:0 4px;color:#eaf8ff;font-size:1.05rem}
body.in-battle .battle-controls .btn{height:44px;border-radius:9px}
body.in-battle .battle-controls .ultimate{min-width:160px;background:linear-gradient(180deg,#173b50,#0c2637);border-color:#29657e;color:#8edfff}
body.in-battle .battle-controls .turn-end{min-width:190px;background:linear-gradient(180deg,#ffcf67,#e69631);border:1px solid #ffde83;box-shadow:0 0 24px rgba(238,164,50,.14);color:#241400}
body.in-battle .battle-controls .danger{margin-left:3px}

body.in-battle .result{z-index:100}

@media(max-width:1360px){
 .battle-stage{grid-template-columns:176px minmax(0,1fr)}
 body.in-battle .battle-shell{width:min(1380px,calc(100vw - 176px))}
 .battle-brand{padding-inline:13px}.battle-brand b{font-size:.9rem}.battle-brand small{font-size:.5rem}
 .battle-menu button{padding-inline:10px;font-size:.8rem}
 body.in-battle .fighter{grid-template-columns:118px minmax(0,1fr) 48px;gap:11px;padding:11px 13px}
 body.in-battle .fighter.enemy{grid-template-columns:48px minmax(0,1fr) 118px}
 body.in-battle .fighter-portrait,body.in-battle .fighter-portrait img{width:112px;height:132px}
 .fighter-abilities{display:none}
 body.in-battle .duel-hud,body.in-battle .fighter{min-height:154px}
 body.in-battle .arena-main{grid-template-columns:82px minmax(280px,1fr) 220px;min-height:286px}
 body.in-battle .duel-board{min-height:286px}
 .arena-character{width:280px;height:340px;bottom:-90px}
 body.in-battle .hand{min-height:196px}
 body.in-battle .hand .game-card{min-width:137px;width:137px;min-height:196px}
 body.in-battle .hand .card-art{height:88px}
}

@media(max-width:980px){
 .battle-stage{display:block}
 .battle-nav{display:none}
 body.in-battle .battle-shell{width:100%;padding:6px}
 .battle-topline{padding:0 8px}.battle-topline b{display:none}
 body.in-battle .duel-hud{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);min-height:130px}
 body.in-battle .fighter{grid-template-columns:74px minmax(0,1fr);min-height:130px;padding:8px;gap:8px}
 body.in-battle .fighter.enemy{grid-template-columns:minmax(0,1fr) 74px}
 body.in-battle .fighter.enemy .fighter-main{order:1}.battle-stage .fighter.enemy .fighter-portrait{order:2}
 body.in-battle .fighter-portrait,body.in-battle .fighter-portrait img{width:70px;height:94px}
 body.in-battle .fighter-stats{display:none}
 .fighter-kicker b,.fighter-vitals span,.fighter-abilities{display:none}
 body.in-battle .fighter-title h3{font-size:.83rem}
 body.in-battle .fighter-title small{font-size:.5rem}
 body.in-battle .versus-medallion{width:58px;height:68px}
 body.in-battle .versus-medallion b{font-size:1rem}
 body.in-battle .versus-medallion small{top:10px;font-size:.4rem}
 body.in-battle .versus-medallion span{bottom:9px;font-size:.38rem}
 body.in-battle .arena-main{grid-template-columns:minmax(0,1fr);padding:38px 12px 8px;min-height:260px}
 body.in-battle .left-rail,body.in-battle .combat-feed{display:none}
 .arena-character{width:220px;height:280px;opacity:.2}
 .character-me{left:-5%}.character-enemy{right:-5%}
 body.in-battle .arena-card-slot{width:min(330px,86%)}
 body.in-battle .hand{justify-content:flex-start;min-height:188px}
 body.in-battle .battle-controls{justify-content:flex-start;overflow-x:auto;padding-inline:10px}
 body.in-battle .battle-controls .energy{min-width:132px}.battle-controls .btn{white-space:nowrap}
}

@media(max-width:620px){
 .battle-topline{height:38px}.battle-room-state{font-size:.5rem;padding:5px 8px}
 body.in-battle .arena{border-radius:10px}
 body.in-battle .duel-hud{grid-template-columns:1fr 52px 1fr}
 body.in-battle .fighter{grid-template-columns:52px minmax(0,1fr);min-height:104px;padding:7px 6px}
 body.in-battle .fighter.enemy{grid-template-columns:minmax(0,1fr) 52px}
 body.in-battle .fighter-portrait,body.in-battle .fighter-portrait img{width:50px;height:72px;border-radius:8px}
 .fighter-kicker{font-size:.42rem}.fighter-kicker b{display:none}
 body.in-battle .fighter-title{margin:2px 0 4px;gap:4px}
 body.in-battle .fighter-title h3{font-size:.68rem;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.in-battle .fighter-title small{display:none}.fighter-vitals{font-size:.55rem;margin-bottom:3px}
 body.in-battle .bar{height:6px}.status-row{display:none!important}
 body.in-battle .versus-medallion{width:44px;height:52px}.versus-medallion small,.versus-medallion span{display:none}.battle-stage .versus-medallion b{font-size:.8rem}
 body.in-battle .duel-board,body.in-battle .arena-main{min-height:230px}
 .arena-banners{display:none}.arena-character{width:180px;height:235px;opacity:.16}
 body.in-battle .core-ring.r1{width:190px;height:190px}.battle-stage .core-ring.r2{width:145px;height:145px}.battle-stage .core-ring.r3{width:96px;height:96px}
 body.in-battle .hand{min-height:174px;gap:7px}
 body.in-battle .hand .game-card{min-width:118px;width:118px;min-height:170px}
 body.in-battle .hand .card-art{height:72px}.battle-stage .hand .card-body p{font-size:.49rem}.battle-stage .card-footer{display:none}
 body.in-battle .battle-controls{min-height:62px}.battle-stage .battle-controls .energy{min-width:112px;height:40px}.battle-stage .battle-controls .btn{height:40px;padding-inline:11px;font-size:.72rem}
 body.in-battle .battle-controls .turn-end{min-width:145px}.battle-stage .battle-controls .ultimate{min-width:130px}
}
