:root{--bg-color: #121212;--text-main: #ffffff;--text-dim: #a0a0a0;--selection-backdrop: rgba(0, 0, 0, .85);--hud-ink: #174049;--hud-muted: #2c5358;--primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);--accent-gradient: linear-gradient(135deg, #f59e0b, #d97706);--danger-gradient: linear-gradient(135deg, #ef4444, #dc2626);--glass-bg: rgba(30, 30, 30, .6);--glass-border: 1px solid rgba(255, 255, 255, .05);--border-radius-lg: 16px;--border-radius-md: 12px;--border-radius-sm: 8px;--modal-bg: #1e1e1e;--anim-speed: 1;--flip-x: 1}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:#cceee8;background:radial-gradient(circle at 50% 5%,#e7f8f2,#b9dfda 56%,#8ebda9);color:#173f45;min-height:100vh;min-height:100dvh;display:flex;justify-content:center;overflow:hidden}#root{width:100%;max-width:1200px;padding-top:calc(18px + env(safe-area-inset-top,0px));padding-right:calc(20px + env(safe-area-inset-right,0px));padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));padding-left:calc(20px + env(safe-area-inset-left,0px));box-sizing:border-box}h2,h3{margin:0 0 15px;font-weight:700}.game-container{display:flex;box-sizing:border-box;flex-direction:column;gap:30px;position:relative;padding:0 20px 20px;border:1px solid transparent}.game-container:not(.is-battling){background:linear-gradient(180deg,#edfff8fa,#ccedddeb);border:1px solid rgba(22,104,98,.18);border-radius:28px;box-shadow:0 24px 60px #13595429;color:#173f45}.game-container .header{min-height:32px;padding:8px 16px;color:var(--hud-ink);font-size:1rem}.game-container .header-section{gap:clamp(10px,1.8vw,22px)}.game-container.prep-scene--mart{background:linear-gradient(180deg,#b9d9e9,#d9eef0 48%,#b6d8d0)}.game-container.prep-scene--center{background:linear-gradient(180deg,#f1dce1,#f9edf0 48%,#e8d8dd)}.game-container.prep-scene--road{background:linear-gradient(180deg,#b8c996,#e7edcb 48%,#c6d7ac)}.game-container.prep-scene--mart .board-container:not(.is-battling){background:linear-gradient(180deg,#a4d0d9,#619caa 54%,#457d8d)}.game-container.prep-scene--center .board-container:not(.is-battling){background:linear-gradient(180deg,#f3dce1,#dfb7c2 54%,#cda1af)}.game-container.prep-scene--road .board-container:not(.is-battling){background:linear-gradient(180deg,#d2deb5,#9db67d 54%,#758f62)}.battle-stage-shell.is-battling{--stage-sky: #a9d9dc;--stage-horizon: #6aa184;--stage-ground: #295b59;--stage-glow: rgba(255, 242, 181, .46);--stage-ridge: rgba(221, 246, 210, .19);min-height:100vh;min-height:100dvh;isolation:isolate;background:radial-gradient(ellipse at 50% 8%,var(--stage-glow),transparent 30%),linear-gradient(180deg,var(--stage-sky) 0%,var(--stage-horizon) 54%,var(--stage-ground) 100%)}.battle-stage-shell.is-battling:after{position:fixed;z-index:0;inset:0;content:"";background:radial-gradient(ellipse at 50% 46%,transparent 32%,rgba(4,24,33,.08) 67%,rgba(4,19,30,.38) 100%);pointer-events:none}.battle-stage-shell.is-battling>:not(.battle-intro-overlay):not(.battle-result-overlay){position:relative;z-index:1}.battle-stage-shell.is-battling .board-container,.battle-stage-shell.is-battling .board-container.is-battling{background:transparent;box-shadow:none}.battle-stage-shell.is-battling .board-container.is-battling:after{opacity:.45}.battle-stage-shell.is-battling.battle-scene--garden{--stage-sky: #cce4b5;--stage-horizon: #5d8d67;--stage-ground: #315f4d;--stage-glow: rgba(255, 247, 186, .46);--stage-ridge: rgba(227, 249, 205, .24)}.battle-stage-shell.is-battling.battle-scene--harbor{--stage-sky: #9fd7dc;--stage-horizon: #4d8998;--stage-ground: #285b6d;--stage-glow: rgba(245, 252, 232, .38);--stage-ridge: rgba(213, 248, 249, .2)}.battle-stage-shell.is-battling.battle-scene--stadium{--stage-sky: #d0cea0;--stage-horizon: #708461;--stage-ground: #405e4f;--stage-glow: rgba(255, 238, 170, .42);--stage-ridge: rgba(242, 242, 198, .19)}.battle-stage-shell.is-battling.battle-scene--cavern{--stage-sky: #5b7080;--stage-horizon: #2b4658;--stage-ground: #172f41;--stage-glow: rgba(159, 216, 231, .22);--stage-ridge: rgba(131, 190, 211, .16)}.battle-stage-shell.is-battling.battle-scene--library{--stage-sky: #a98a70;--stage-horizon: #675348;--stage-ground: #3b3030;--stage-glow: rgba(251, 211, 151, .27);--stage-ridge: rgba(229, 179, 119, .14)}.battle-stage-shell.is-battling.battle-scene--waterfall{--stage-sky: #a4d8df;--stage-horizon: #4b8495;--stage-ground: #25596d;--stage-glow: rgba(231, 255, 252, .42);--stage-ridge: rgba(194, 240, 243, .22)}.battle-stage-shell.is-battling.battle-scene--volcanic{--stage-sky: #91675e;--stage-horizon: #4a3d43;--stage-ground: #29262d;--stage-glow: rgba(255, 167, 104, .23);--stage-ridge: rgba(231, 103, 68, .14)}.battle-stage-shell.is-battling.battle-scene--champion-hall{--stage-sky: #6685b6;--stage-horizon: #31547a;--stage-ground: #18395b;--stage-glow: rgba(236, 238, 189, .31);--stage-ridge: rgba(196, 219, 244, .2)}.mute-toggle-btn-header{background:transparent;border:none;color:#fff;width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;transition:all .2s ease;padding:0;line-height:1;opacity:.6}.mute-toggle-btn-header:hover{opacity:1;transform:scale(1.2)}.start-game-btn{background:#ffffff08;border:1px solid rgba(255,255,255,.1);color:#4b5563;padding:14px 40px;border-radius:35px;font-size:1.1rem;letter-spacing:8px;text-indent:8px;cursor:default;transition:all .4s cubic-bezier(.4,0,.2,1);opacity:.6;pointer-events:none;font-weight:600}.start-game-btn.is-ready{color:#fff;background:#ffffff14;border:1px solid rgba(255,255,255,.3);cursor:pointer;pointer-events:auto;opacity:1;box-shadow:0 0 20px #ffffff0d;animation:pulse-glow 2s infinite ease-in-out}@keyframes pulse-glow{0%{box-shadow:0 0 10px #ffffff0d;border-color:#ffffff4d}50%{box-shadow:0 0 25px #60a5fa33;border-color:#fff9}to{box-shadow:0 0 10px #ffffff0d;border-color:#ffffff4d}}@keyframes glow-rainbow-anim{0%{filter:drop-shadow(0 0 12px #ff0000) brightness(1.2)}20%{filter:drop-shadow(0 0 18px #ffff00) brightness(1.4)}40%{filter:drop-shadow(0 0 22px #00ff00) brightness(1.2)}60%{filter:drop-shadow(0 0 18px #00ffff) brightness(1.4)}80%{filter:drop-shadow(0 0 12px #0000ff) brightness(1.2)}to{filter:drop-shadow(0 0 18px #ff00ff) brightness(1.4)}}.glow-rainbow-anim .unit-image{animation:glow-rainbow-anim 1s infinite alternate!important;z-index:100!important}@keyframes glow-white{0%{filter:drop-shadow(0 0 5px rgba(255,255,255,.4)) brightness(1)}50%{filter:drop-shadow(0 0 20px rgba(255,255,255,.8)) brightness(1.3)}to{filter:drop-shadow(0 0 5px rgba(255,255,255,.4)) brightness(1)}}.glow-white-anim .unit-image{animation:glow-white .6s ease-in-out}.start-game-btn.is-ready:hover{background:#ffffff26;box-shadow:0 0 30px #60a5fa4d;transform:translateY(-2px);letter-spacing:10px}.header{background:transparent;color:var(--hud-ink);text-shadow:none;display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:1.1rem;font-weight:600}.header-section{display:flex;gap:30px;align-items:center}.header--hidden{visibility:hidden}.header-progress{color:var(--hud-muted)}.header-progress.is-current{color:var(--hud-ink)}.header-tournament-rank{margin-right:max(18px,calc(min(31.7vw,50vw - 32.6vh) - 105px))}.board-container{display:flex;flex-direction:column;position:relative;background:#0000004d;border-radius:var(--border-radius-lg);padding:20px;margin-bottom:5px;width:100%;box-sizing:border-box;overflow:hidden}.board-container:not(.is-battling){background:linear-gradient(180deg,#7eaaa0,#598b7f 54%,#356b60);border:1px solid rgba(224,250,236,.28);box-shadow:inset 0 0 46px #0a2f3142,0 12px 30px #19635824}.board-container.is-battling{--battle-sky: #8dbab2;--battle-horizon: #48786d;--battle-floor: #285751;isolation:isolate;background:linear-gradient(180deg,var(--battle-sky) 0%,var(--battle-horizon) 56%,var(--battle-floor) 100%);box-shadow:inset 0 0 70px #05172085}.board-container.is-battling:after{position:absolute;z-index:-1;content:"";pointer-events:none}.board-container.is-battling:after{inset:0;background:radial-gradient(ellipse at 50% 45%,transparent 36%,rgba(5,21,31,.08) 68%,rgba(5,21,31,.48) 100%)}.board-container.is-battling>*{position:relative;z-index:1}.board-container.is-battling.battle-scene--garden{--battle-sky: #b9d7aa;--battle-horizon: #517e60;--battle-floor: #2d5a4d}.board-container.is-battling.battle-scene--harbor{--battle-sky: #88c6cf;--battle-horizon: #3f7d8c;--battle-floor: #24546a}.board-container.is-battling.battle-scene--stadium{--battle-sky: #b6bc91;--battle-horizon: #62795c;--battle-floor: #405b4c}.board-container.is-battling.battle-scene--cavern{--battle-sky: #52697b;--battle-horizon: #263f52;--battle-floor: #172d40}.board-container.is-battling.battle-scene--library{--battle-sky: #9f8469;--battle-horizon: #615147;--battle-floor: #3a3130}.board-container.is-battling.battle-scene--waterfall{--battle-sky: #8dc2cf;--battle-horizon: #3f788a;--battle-floor: #27566b}.board-container.is-battling.battle-scene--volcanic{--battle-sky: #825e54;--battle-horizon: #45383f;--battle-floor: #29262d}.board-container.is-battling.battle-scene--champion-hall{--battle-sky: #5675a2;--battle-horizon: #2a4b70;--battle-floor: #18385a}.board-teams-horizontal{display:flex;justify-content:center;padding-right:150px;align-items:flex-end;min-width:fit-content;width:100%;gap:50px}.board-side{display:flex;gap:0px;padding:10px 0;min-height:160px;align-items:flex-end}.board-side.player{flex-direction:row-reverse;justify-content:flex-start;padding-right:0}.board-side.enemy{flex-direction:row;justify-content:flex-start;padding-left:0}.board-vs{display:none;font-size:2.5rem;font-weight:900;color:#ffffff1a;z-index:0;pointer-events:none;text-shadow:0 0 10px rgba(0,0,0,.5);margin-bottom:50px;flex-shrink:0}.battle-controls-container{z-index:50;display:flex;flex-direction:column;align-items:center}.battle-control-btn{pointer-events:auto;box-sizing:border-box;height:44px;padding:0 14px;background:#181a1deb;border:1px solid rgba(255,255,255,.42);border-radius:22px;color:#f5f5f4;cursor:pointer;font-family:inherit;font-weight:600;font-size:.9rem;line-height:1;transition:background-color .16s,border-color .16s,color .16s;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 6px #0000003d;flex-shrink:0;touch-action:manipulation}.battle-control-btn svg{display:block;width:20px;height:20px;flex-shrink:0}.battle-pause-btn{width:56px;padding:0}.battle-speed-btn{width:56px;font-variant-numeric:tabular-nums}.battle-pause-btn.is-paused,.battle-speed-btn.active{color:#f6d58b;border-color:#f6d58b94;background:#2d2619f0}.battle-control-btn:hover{background:#34363a;border-color:#ffffff73}.battle-pause-btn.is-paused:hover,.battle-speed-btn.active:hover{background:#403620;border-color:#f6d58b}.battle-control-btn:focus-visible{outline:2px solid #f6d58b;outline-offset:3px}.battle-control-btn:active{box-shadow:inset 0 1px 4px #0000004d}.battle-log{box-sizing:border-box;width:min(760px,calc(100vw - 48px));min-height:4.5em;padding:10px 16px;display:flex;flex-direction:column;gap:10px;z-index:5;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--scene-log-ink, #000);text-shadow:var(--scene-log-shadow, 0 1px 2px rgba(255, 255, 255, .65));font-size:.9rem;-webkit-text-size-adjust:100%;text-size-adjust:100%;line-height:1.5;text-align:center;overflow-wrap:anywhere}.battle-log-entry{color:inherit;font-size:inherit}.battle-log-entry.is-latest{font-weight:700}@media(orientation:landscape)and (max-height:500px){.battle-log{gap:4px;padding:4px 12px;font-size:.75rem;line-height:1.45}}@media(max-width:600px){.battle-log{font-size:.75rem}}.battle-result-overlay{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;border-radius:0;animation:fadeIn .3s ease-out;cursor:pointer}.result-content{text-align:center;color:#fff;animation:scaleIn .3s cubic-bezier(.175,.885,.32,1.275)}.result-title{font-size:3rem;font-weight:900;margin-bottom:10px;text-shadow:0 0 20px rgba(0,0,0,.8)}.result-subtitle{font-size:1.2rem;color:#fffc}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes pool-retreat{0%{transform:translateY(0) scale(1);opacity:1}to{transform:translateY(10px) scale(.96);opacity:0}}.pool-card-destroy{animation:pool-retreat .4s forwards cubic-bezier(.2,.7,.2,1);pointer-events:none}@media(prefers-reduced-motion:reduce){.pool-card-destroy{animation:fadeIn .12s reverse both}}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.battle-timeout-overlay{position:absolute;top:5%;left:0;right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:80;pointer-events:none;animation:fadeIn .5s ease-out}.timeout-countdown{font-size:15rem;font-weight:900;color:#ffffff1a;line-height:.8;margin-bottom:-20px;text-shadow:0 0 40px rgba(0,0,0,.2);animation:countdown-pulse 1s infinite cubic-bezier(.4,0,.6,1);transform:translateY(-20px)}.timeout-subtitle{font-size:1.2rem;color:#fff3;font-weight:600;margin-top:-20px;text-shadow:0 0 5px rgba(0,0,0,.3);background:#0000000d;padding:5px 25px;border-radius:20px;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.premium-confirm-overlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:#000000d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10002;border-radius:var(--border-radius-lg);animation:fadeIn .3s ease-out}.premium-confirm-box{text-align:center;color:#fff;max-width:85%;animation:scaleIn .35s cubic-bezier(.175,.885,.32,1.275)}.premium-confirm-title{font-size:4rem;font-weight:900;margin-bottom:20px;text-shadow:0 0 30px rgba(59,130,246,.6);letter-spacing:6px;background:linear-gradient(to bottom,#fff,#94a3b8);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.premium-confirm-description{font-size:1.4rem;color:#ffffffe6;margin-bottom:50px;line-height:1.6;max-width:600px;margin-left:auto;margin-right:auto;letter-spacing:1px}.premium-confirm-actions{display:flex;justify-content:center;gap:40px}.premium-confirm-btn{padding:18px 50px;font-size:1.2rem;font-weight:900;border-radius:40px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);letter-spacing:3px;border:none;text-transform:uppercase}.confirm-btn-yes{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;box-shadow:0 10px 30px #ef444466}.confirm-btn-yes:hover{transform:translateY(-5px) scale(1.05);box-shadow:0 15px 45px #ef444499;filter:brightness(1.1)}.confirm-btn-no{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.confirm-btn-no:hover{background:#fff3;color:#fff;transform:translateY(-5px);border-color:#ffffff80}@media(max-width:950px)or (max-height:500px){.premium-confirm-title{font-size:2.2rem;letter-spacing:4px}.premium-confirm-description{font-size:1.1rem;margin-bottom:30px}.premium-confirm-btn{padding:12px 35px;font-size:1rem;letter-spacing:2px}}@keyframes countdown-pulse{0%,to{transform:scale(1);opacity:.2}50%{transform:scale(1.05);opacity:.3}}.shop-container{display:flex;gap:15px;background:#fffffac7;border:1px solid rgba(22,104,98,.14);border-radius:var(--border-radius-lg);padding:15px;align-items:center;width:100%;box-sizing:border-box;overflow:visible}@media(min-width:951px)and (min-height:501px){.game-container .shop-slots-area{padding-left:0}.game-container .shop-slots{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center;width:100%}}.shop-actions{display:flex;flex:0 0 64px;flex-direction:column;gap:10px;align-self:stretch;justify-content:center}.game-container .shop-actions .reroll-icon-btn,.game-container .shop-actions .btn-battle{position:relative;top:0!important;left:0!important;display:inline-flex;flex:1 1 0;flex-direction:row;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:100%!important;height:auto!important;max-height:58px;min-height:0;padding:0 8px!important;border-radius:14px!important;font-family:inherit;font-size:1rem!important;font-weight:800;letter-spacing:.14em;line-height:1;cursor:pointer;text-shadow:0 1px 1px rgba(0,0,0,.3);transition:transform .1s,box-shadow .1s,filter .15s}.shop-action-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:#fff;box-shadow:0 1px 3px #00000059;color:#1d4ed8;font-size:.72rem;line-height:18px;text-align:center;text-shadow:none}.shop-action-icon{flex:none;width:28px;height:28px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2}.game-container .shop-actions .reroll-icon-btn{border:1px solid #1d4ed8;background:linear-gradient(180deg,#60a5fa,#2563eb);box-shadow:inset 0 1px #ffffff73,0 3px #1e40af;color:#fff}.game-container .shop-actions .btn-battle{border:1px solid #b91c1c;background:linear-gradient(180deg,#f87171,#dc2626);box-shadow:inset 0 1px #ffffff73,0 3px #991b1b;color:#fff}.game-container .shop-actions .reroll-icon-btn:hover:not(:disabled),.game-container .shop-actions .btn-battle:hover{filter:brightness(1.06);transform:none}.game-container .shop-actions .reroll-icon-btn:active:not(:disabled),.game-container .shop-actions .btn-battle:active{box-shadow:inset 0 1px 2px #0003;transform:translateY(2px)}.game-container .shop-actions .reroll-icon-btn:disabled{border-color:#cbd5e1;background:#e2e8f0;box-shadow:none;color:#94a3b8;cursor:not-allowed;text-shadow:none}.shop-info-row{display:flex;align-items:center;gap:10px;justify-content:center}.tier-text{font-size:1.1rem;font-weight:700;color:gold}.shop-slots-area{flex:1;min-width:0;display:flex;justify-content:flex-start;height:100%;align-items:center;padding-left:20px}.shop-slot-scroll{width:100%;min-width:0;overflow-x:auto;padding:76px 6px 6px;margin-top:-64px;box-sizing:border-box}.shop-slots>*{flex-shrink:0}.shop-slots{display:flex;gap:4px;align-items:flex-end}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:115px;height:108px;margin:0}.shop-slots .unit-image{width:85px;height:85px;max-width:100%}.shop-slots .floor-marker{display:none!important}.shop-slots .unit-card.is-mergeable .unit-image{filter:drop-shadow(0 0 12px rgba(255,230,100,.7));animation:merge-glow-gentle 2s infinite ease-in-out}.unit-card.synergy-highlight .unit-image{filter:drop-shadow(0 0 15px rgba(250,204,21,.9)) brightness(1.2)!important;animation:synergy-glow-pulse 2s infinite ease-in-out}@keyframes synergy-glow-pulse{0%{filter:drop-shadow(0 0 10px rgba(250,204,21,.6)) brightness(1.1)}50%{filter:drop-shadow(0 0 20px rgba(250,204,21,.9)) brightness(1.3)}to{filter:drop-shadow(0 0 10px rgba(250,204,21,.6)) brightness(1.1)}}@keyframes merge-glow-gentle{0%,to{filter:drop-shadow(0 0 6px rgba(255,215,0,.4)) brightness(1)}50%{filter:drop-shadow(0 0 18px rgba(255,215,0,.8)) brightness(1.2)}}.unit-card.is-evolving{animation:evolution-pulse .6s cubic-bezier(.25,.46,.45,.94);z-index:200!important}@keyframes evolution-pulse{0%{transform:scale(1);filter:brightness(1)}30%{transform:scale(1.25);filter:brightness(3) contrast(1.2);box-shadow:0 0 60px #fffc}to{transform:scale(1);filter:brightness(1)}}.unit-card{width:105px;height:120px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;cursor:pointer;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s ease;animation:unit-appear .4s cubic-bezier(.2,0,0,1);margin:0 -12px}.unit-card:hover{transform:scale(1.1) translateY(-5px);z-index:10}.unit-card:hover .card-lock-overlay,.unit-card.is-selected .card-lock-overlay{transform:translateY(5px)}.reroll-icon-btn:hover{color:#fff!important;transform:scale(1.1);filter:drop-shadow(0 0 8px rgba(255,255,255,.8))}.reroll-icon-btn:active{transform:scale(.95)}@keyframes unit-appear{0%{transform:scale(.8) translateY(10px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}.synthetic-glow .unit-image,.synergy-icon.synthetic-glow{filter:drop-shadow(0 0 15px rgba(250,204,21,.9)) brightness(1.2);animation:glow-fade-out 4s forwards ease-out}.synergy-icon.is-checked{border-color:#10b981!important;filter:drop-shadow(0 0 15px rgba(16,185,129,.8)) brightness(1.2)!important}@keyframes glow-fade-out{0%{filter:drop-shadow(0 0 15px rgba(250,204,21,.9)) brightness(1.3);opacity:1}70%{filter:drop-shadow(0 0 10px rgba(250,204,21,.4)) brightness(1.1);opacity:1}to{filter:drop-shadow(0 0 0px rgba(250,204,21,0)) brightness(1)}}.unit-visual-wrapper{position:relative;z-index:2;width:100%;display:flex;justify-content:center;align-items:center;transform-origin:center bottom}.unit-card.flipped{--flip-x: -1}.unit-card.flipped .unit-visual-wrapper{transform:scaleX(var(--flip-x))}.unit-image{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(0,0,0,.5));transition:all .2s;z-index:2}.unit-stats{display:flex;gap:6px;background:#000000b3;padding:3px 8px;border-radius:10px;margin-top:-12px;z-index:3;font-size:.9rem;font-weight:800;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);white-space:nowrap}.stat-atk{color:#60a5fa}.stat-hp{color:#fca5a5}.card-lock-overlay{position:absolute;top:5px;right:5px;width:26px;height:26px;background:#0009;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:.9rem;color:#aaa;cursor:pointer;z-index:20;border:1px solid rgba(255,255,255,.2);transition:all .2s}.card-lock-overlay:hover{background:#fff3;color:#fff;transform:scale(1.1)}.card-lock-overlay.locked{color:#fff;border-color:#ef4444;background:#ef4444}.floor-marker{width:65px;height:22px;background:#ffffff1a;border-radius:50%;box-shadow:0 0 15px #ffffff0d;position:absolute;bottom:22px;z-index:1}.slot-placeholder{width:105px;height:120px;display:flex;justify-content:center;align-items:flex-end;position:relative;margin:0 -12px}.btn-premium{position:relative;overflow:hidden;color:#fff;border:none;border-radius:16px;padding:10px;font-weight:800;font-size:1rem;cursor:pointer;transition:all .2s cubic-bezier(.3,1.5,.6,1);box-shadow:0 4px #0000004d,0 6px 6px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;transform:translateY(0)}.btn-premium:hover:not(:disabled){transform:translateY(-2px);color:#fff;box-shadow:0 0 20px #ffffff80}.btn-premium:active:not(:disabled){transform:translateY(2px) scale(.98);box-shadow:0 1px #0000004d,0 2px 2px #0003}.btn-premium:disabled{filter:grayscale(1);opacity:.6;cursor:not-allowed;transform:none;box-shadow:inset 0 2px 4px #0003}.btn-reroll{background:linear-gradient(to bottom,#fcd34d,#f59e0b);border:2px solid #fbbf24;color:#78350f}.btn-battle{background:linear-gradient(to bottom,#60a5fa,#2563eb);border:2px solid #93c5fd;text-shadow:0 2px 0 rgba(0,0,0,.2)}.detail-panel{position:fixed;bottom:80px;right:40px;width:420px;background:#1a1a1afa;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:20px;box-shadow:0 20px 40px #0009;z-index:10005;animation:slideInRight .2s ease-out;display:flex;flex-direction:column;gap:15px}.detail-panel.tutorial-highlight{z-index:10001!important}.detail-content{display:flex;gap:15px}.detail-left{display:flex;flex-direction:column;align-items:center;gap:8px;width:110px;flex-shrink:0}.detail-image{width:110px;height:110px;object-fit:contain}.detail-name{font-size:1rem;font-weight:800;color:#fff;text-align:center;line-height:1.2}.detail-right{flex:1;display:flex;flex-direction:column;gap:10px}.detail-stats-row{display:flex;justify-content:space-between;background:#0000004d;padding:8px;border-radius:8px;font-weight:700}.detail-desc{font-size:.9rem;color:#ccc;line-height:1.4;background:#ffffff08;padding:8px;border-radius:8px;flex:1}.detail-footer{display:flex;gap:10px;margin-top:5px;height:50px}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.synergy-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.board-synergies{position:absolute;top:10px;left:10px;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;z-index:2000;pointer-events:auto;position:absolute!important}.board-synergies .synergy-icon{background:#0009;padding:4px;border-radius:50%;pointer-events:auto;width:26.4px;height:26.4px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.1)}.synergy-icon{position:relative;font-size:1.2rem;cursor:help;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s;will-change:transform}@media(hover:hover){.synergy-icon:hover{transform:scale(1.2)!important;z-index:99999!important}}.synergy-icon.force-visible{transform:scale(1.2)!important;z-index:99999!important}.synergy-icon.force-visible .synergy-tooltip{visibility:visible!important;opacity:1!important}.synergy-tooltip.tooltip-left{left:auto!important;right:110%!important}.synergy-tooltip{visibility:hidden;position:absolute;top:10px;left:110%;transform:none;background:#0a0a0af2;color:#fff;padding:10px 14px;border-radius:12px;font-size:.85rem;white-space:pre-wrap;width:max-content;max-width:240px;box-shadow:0 10px 25px #0009;border:1px solid rgba(255,255,255,.15);z-index:200000;opacity:0;transition:all .2s cubic-bezier(.16,1,.3,1);pointer-events:none;font-weight:400;text-align:left;line-height:1.5}.synergy-tooltip.is-enemy{right:110%;left:auto;text-align:left}.synergy-icon:hover .synergy-tooltip{visibility:visible;opacity:1}.synergy-tooltip.is-dismissed{visibility:hidden!important;opacity:0!important;pointer-events:none!important}.is-selection-pool .synergy-tooltip{top:auto;bottom:115%;left:110%;transform:translateY(0);z-index:300000}.opponent-card{position:relative;z-index:1}.opponent-card:hover{z-index:1000}.detail-panel .synergy-tooltip{inset:auto 0 110% auto;width:max-content;max-width:250px;z-index:200000}.charm-status-icon{position:absolute;top:-20px;right:-5px;font-size:1.2rem;filter:drop-shadow(0 0 5px rgba(244,114,182,.8));animation:heart-float 1.5s ease-in-out infinite;pointer-events:none;z-index:10}@keyframes heart-float{0%,to{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.2)}}.detail-synergies{gap:8px;margin-bottom:5px}.unit-wrapper{transition:transform .4s cubic-bezier(.34,1.56,.64,1),left .4s ease,right .4s ease}@keyframes clash{0%{transform:translate(0)}25%{transform:translate(var(--clash-offset))}to{transform:translate(0)}}.battle-controls-row{display:flex;gap:10px}@keyframes morph{0%{filter:blur(0px);transform:scale(1);opacity:1}50%{filter:blur(8px);transform:scale(1.2);opacity:.8}to{filter:blur(0px);transform:scale(1);opacity:1}}@keyframes jump{0%{transform:translateY(0)}50%{transform:translateY(-20px)}to{transform:translateY(0)}}@keyframes spawn-bounce{0%{transform:scale(0) translateY(20px);opacity:0}50%{transform:scale(1.1) translateY(-10px);opacity:1}to{transform:scale(1) translateY(0);opacity:1}}.spawn-anim{animation:spawn-bounce calc(.5s / var(--anim-speed)) cubic-bezier(.34,1.56,.64,1) forwards!important}@keyframes death{0%{opacity:1}to{opacity:0}}@keyframes hurt{0%{opacity:1}50%{opacity:.3}to{opacity:1}}.death-anim .unit-image{animation:death calc(.5s / var(--anim-speed)) forwards ease-in}.clash-anim .unit-image{animation:clash calc(.3s / var(--anim-speed)) ease-out}.hurt-anim .unit-image{animation:hurt calc(.15s / var(--anim-speed)) ease-out}.jump-anim{animation:jump calc(.3s / var(--anim-speed)) ease-out}.morph-anim{animation:morph calc(.5s / var(--anim-speed)) ease-in-out}@keyframes charm-heart{0%{transform:translate(-50%) scale(0);opacity:0}20%{transform:translate(-50%,-20px) scale(1.2);opacity:1}80%{transform:translate(-50%,-40px) scale(1);opacity:1}to{transform:translate(-50%,-60px) scale(.8);opacity:0}}.charm-anim:after{content:"💖";position:absolute;top:-20px;left:50%;font-size:1.5rem;z-index:100;pointer-events:none;animation:charm-heart calc(.6s / var(--anim-speed)) ease-out forwards;filter:drop-shadow(0 0 5px rgba(244,114,182,.5))}@media(max-width:950px)or (max-height:500px){html{height:100%;overflow:hidden;overscroll-behavior:none}#root{height:100%;min-height:0;overflow:hidden;padding:calc(5px + env(safe-area-inset-top,0px)) calc(5px + env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) calc(5px + env(safe-area-inset-left,0px))}body{position:fixed;inset:0;height:100%;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}.header,.game-container .header{font-size:.85rem;gap:10px;padding:5px 6px;flex-wrap:wrap}.header-section{gap:14px;white-space:nowrap;flex-wrap:wrap;min-width:0}.game-container{gap:10px;height:100%;min-height:0!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:none;scroll-padding-top:90px}.game-container>.header{position:sticky!important;top:0;flex-shrink:0}.board-container{padding:10px;min-height:auto}.board-teams-horizontal{gap:30px;padding-right:80px}.board-side{min-height:130px}.unit-card,.slot-placeholder{width:88px;height:105px;margin:0 -14px}.unit-image{width:100px;height:100px}.unit-visual-wrapper{transform:translateY(5px)}.unit-card.flipped .unit-visual-wrapper{transform:scaleX(var(--flip-x)) translateY(5px)}.shop-slots .unit-image{width:75px;height:75px}.floor-marker{width:45px;height:10px;bottom:15px}.unit-stats{font-size:.65rem;padding:1px 4px;margin-top:-6px;border-radius:6px}.board-vs{font-size:1.2rem;bottom:25px}.shop-container{padding:12px 10px;min-height:140px;gap:15px}.tier-text{font-size:.75rem!important}.btn-premium{padding:6px;font-size:.75rem;border-radius:10px}.btn-battle{height:50px!important;width:50px!important;border-radius:12px!important;font-size:1.2rem!important;padding:0!important}.shop-slots-area{padding-left:24px;position:relative}.shop-slots{gap:14px}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:75px!important;height:90px!important;margin:0!important}.reroll-icon-btn{font-size:1.5rem!important;top:-10px!important;left:-10px!important}.unit-card.is-selected{box-shadow:none!important}.unit-card.is-selected:after{content:"";position:absolute;inset:4px;box-shadow:0 0 15px #60a5fa99,inset 0 0 8px #60a5fa4d;border-radius:12px;pointer-events:none;z-index:-1}.detail-panel{width:360px!important;left:auto!important;right:20px!important;bottom:20px!important;padding:12px!important}.detail-image{width:75px!important;height:75px!important}.detail-left{width:80px!important}.detail-name{font-size:1.1rem!important}.btn-premium.btn-reroll,.btn-premium.btn-sell-action{height:32px!important;font-size:.95rem!important;font-weight:700!important;letter-spacing:0!important;white-space:nowrap!important}.detail-desc{font-size:.75rem;max-height:60px;overflow-y:auto}.detail-content{gap:8px}.detail-stats-row{padding:5px;font-size:.8rem}.detail-footer{height:35px}.board-synergies .synergy-tooltip{left:110%!important;right:auto!important;top:10px!important;transform:none!important;max-width:180px!important;z-index:10200!important}.board-synergies .synergy-tooltip.is-enemy{left:auto!important;right:110%!important}.detail-panel .synergy-tooltip{inset:auto 0 110% auto!important}.opponent-select-overlay .opponent-cards-container{gap:20px!important}.opponent-select-overlay .opponent-card.is-selection-pool-card{width:clamp(100px,28vw,150px)!important;padding:10px!important;border-radius:16px!important}.opponent-select-overlay .opponent-card.is-selection-pool-card .pool-card-img-wrapper img{width:90%!important;height:90%!important}}@media(max-height:380px){.unit-card,.slot-placeholder{width:65px;height:80px;margin:0!important}.unit-image,.shop-slots .unit-image{width:50px;height:50px}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:60px;height:75px;margin:0 4px}.board-container,.shop-container{margin-bottom:10px!important}.detail-panel{bottom:10px!important;padding:8px!important}.btn-premium.btn-battle{width:50px!important;padding:0!important;font-size:1.1rem!important}}.unit-card.is-selected{box-shadow:0 0 20px #60a5fa80,inset 0 0 10px #60a5fa33;z-index:100;border-radius:12px}.slot-placeholder.is-target-eligible{background:#60a5fa33;border:2px dashed #60a5fa;border-radius:12px}.silence-lock-badge{position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);font-size:1.4rem;z-index:15;pointer-events:none;opacity:.9;filter:drop-shadow(0 0 5px rgba(0,0,0,.5))}.is-gastro-acid .unit-image{filter:sepia(1) saturate(2) hue-rotate(230deg) brightness(.8)}.gift-flash{animation:giftFlash 1.5s ease-out forwards}@keyframes giftFlash{0%{filter:brightness(1) saturate(1);transform:scale(1)}50%{filter:brightness(1.5) saturate(2);transform:scale(1.1)}to{filter:brightness(1) saturate(1);transform:scale(1)}}@media(max-width:480px){.shop-container{padding:10px 5px!important;gap:15px!important}.shop-slots-area{padding-left:0!important;overflow:visible;padding-bottom:5px}.shop-slots{gap:4px!important}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:55px!important;height:70px!important;margin:0!important;flex-shrink:0}.shop-slots .unit-image{width:45px!important;height:45px!important}.unit-card,.slot-placeholder{width:60px;height:80px;margin:0 -8px}.unit-image{width:60px;height:60px}.btn-premium.btn-sell-action,.btn-premium.btn-reroll{font-size:.8rem!important;padding:4px!important}.detail-panel{width:90%!important;right:5%!important;left:auto!important}}.difficulty-btn:hover:not(.loading){transform:translateY(-8px) scale(1.02);background:#ffffff14!important;border-color:currentColor!important;box-shadow:0 20px 40px #0009,0 0 30px var(--hover-color, rgba(255, 255, 255, .1))!important}.difficulty-btn:active:not(.loading){transform:translateY(-2px) scale(.98)}.startup-overlay{overflow:hidden!important;padding:0!important;box-sizing:border-box!important}@media(max-width:1024px)and (orientation:portrait){.startup-header-box{margin-top:15vh!important}.startup-footer-box{margin-bottom:15vh!important}}@media(orientation:landscape)and (max-height:500px){.startup-overlay{padding:15px 0!important;display:flex!important;flex-direction:column!important;justify-content:space-around!important;gap:10px!important}.startup-header-box{margin-top:0!important;margin-bottom:0!important;transform:translateY(15px)}.startup-footer-box{margin-bottom:0!important;margin-top:0!important;transform:translateY(-15px)}.startup-overlay h1{font-size:2.22rem!important;letter-spacing:5px!important;margin:0!important;line-height:1.1!important}.difficulty-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:15px!important;width:95%!important;max-width:900px!important;margin:0 auto!important}.difficulty-btn{padding:15px 5px!important;min-height:145px!important;gap:12px!important;border-radius:20px!important;box-shadow:0 8px 30px #00000080!important}.difficulty-btn img{width:60px!important;height:60px!important}.difficulty-btn span{font-size:1.15rem!important;letter-spacing:2px!important;font-weight:700!important}.startup-overlay p{font-size:1.2rem!important;margin:0!important;opacity:.9!important;letter-spacing:3px!important;font-weight:700!important}.rotate-icon{animation:rotateHint 3s infinite cubic-bezier(.4,0,.2,1)}.timeout-countdown{font-size:5rem!important}}@keyframes rotateHint{0%{transform:rotate(0) scale(1)}20%{transform:rotate(90deg) scale(1.1)}40%{transform:rotate(90deg) scale(1.1)}60%{transform:rotate(0) scale(1)}to{transform:rotate(0) scale(1)}}@media(max-width:600px){.startup-overlay{gap:35px!important;justify-content:center!important;padding:20px!important}.startup-overlay h1{font-size:3rem!important;letter-spacing:4px!important;line-height:1.1!important}.difficulty-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:12px!important;width:98%!important;max-width:950px!important}.difficulty-btn{padding:20px 10px!important;min-height:150px!important;flex:1 1 calc(50% - 12px)!important;max-width:250px!important;gap:15px!important;border-radius:20px!important;box-shadow:0 10px 30px #00000080!important}.difficulty-btn img{width:60px!important;height:60px!important;filter:drop-shadow(0 0 20px rgba(0,0,0,.5))!important}.difficulty-btn span{font-size:1.1rem!important;letter-spacing:1px!important;font-weight:700!important}.startup-overlay p{font-size:1.45rem!important;padding:0 10px!important;letter-spacing:5px!important;opacity:1!important;font-weight:700!important;color:#fff!important}.timeout-countdown{font-size:8rem!important}}.header>div{align-items:center!important}.glow-pale-red{animation:glow-red calc(1s / var(--anim-speed)) ease-in-out}.glow-pale-blue{animation:glow-blue calc(1s / var(--anim-speed)) ease-in-out}.glow-pale-green{animation:glow-green calc(1s / var(--anim-speed)) ease-in-out}.glow-white-anim{animation:glow-white calc(.6s / var(--anim-speed)) ease-in-out}.gift-flash-anim{animation:gift-yellow-flash calc(.6s / var(--anim-speed)) ease-in-out}@keyframes glow-red{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 15px rgba(239,68,68,1))}}@keyframes glow-blue{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 15px rgba(59,130,246,1))}}@keyframes glow-green{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 15px rgba(34,197,94,1))}}.glow-pale-pink{animation:glow-pink calc(1s / var(--anim-speed)) ease-in-out}.glow-yellow{animation:glow-yellow calc(1s / var(--anim-speed)) ease-in-out}.glow-orange{animation:glow-orange calc(1.2s / var(--anim-speed)) ease-in-out}@keyframes glow-pink{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 15px rgba(244,114,182,1))}}@keyframes glow-yellow{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 15px rgba(253,224,71,1))}}@keyframes glow-orange{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 20px rgba(251,146,60,1))}}@keyframes glow-white{0%,to{filter:drop-shadow(0 0 0px transparent)}50%{filter:drop-shadow(0 0 20px rgba(255,255,255,.9))}}@keyframes gift-yellow-flash{0%,to{filter:none}50%{filter:sepia(100%) saturate(300%) hue-rotate(10deg) brightness(1.2);transform:scale(1.05)}}.teleport-anim{animation:teleport-move calc(.4s / var(--anim-speed)) ease-in-out}.light-screen-anim{animation:light-screen-pulse calc(.5s / var(--anim-speed)) ease-in-out}@keyframes light-screen-pulse{0%,to{filter:drop-shadow(0 0 5px rgba(173,216,230,.3))}50%{filter:drop-shadow(0 0 20px rgba(173,216,230,.8));transform:scale(1.02)}}@media(max-width:1024px)and (orientation:landscape){#root{max-width:100%!important;width:100vw!important;padding-left:calc(20px + env(safe-area-inset-left,0px))!important;padding-right:calc(20px + env(safe-area-inset-right,0px))!important;padding-bottom:calc(15px + env(safe-area-inset-bottom,0px))!important}.game-container{width:100%!important;max-width:100%!important}.shop-slots{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px!important}.shop-slots>*{min-width:0}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:100%!important;max-width:75px}.board-container,.shop-container{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;overflow:visible!important}.board-teams-horizontal{padding-right:0!important;width:100%!important;justify-content:center!important;gap:40px!important}@media(min-aspect-ratio:21/10){.shop-slots-area{padding-left:30px!important}.shop-slots{gap:16px!important}.board-side{justify-content:center!important;gap:2px!important}}@media(min-aspect-ratio:21/10)and (min-width:900px){.shop-slots-area{padding-left:45px!important}.shop-slots{gap:12px!important}.board-side{justify-content:center!important;gap:8px!important}}.startup-overlay{gap:1vh!important;padding-top:10vh!important}.startup-overlay h1{font-size:4.2rem!important;letter-spacing:8px!important;text-indent:8px!important;margin-bottom:10!important;line-height:1.1!important;font-weight:900!important}.loading-container{width:480px!important;max-width:90%!important;margin-top:-30px!important}.loading-bar-wrapper{height:6px!important;background:#ffffff0d!important;border:1px solid rgba(255,255,255,.05)!important;margin-bottom:25px!important;border-radius:3px!important;overflow:hidden!important}.loading-bar-fill{height:100%!important;background:linear-gradient(90deg,#60a5fa,#3b82f6)!important;box-shadow:0 0 15px #3b82f680!important}.loading-container p{font-size:.85rem!important;letter-spacing:3px!important;opacity:.7!important}.start-game-btn{margin-top:-35px!important;padding:14px 40px!important;border-radius:35px!important;font-size:1rem!important;background:#ffffff08!important;border:1px solid rgba(255,255,255,.1)!important;letter-spacing:8px!important;text-indent:8px!important;font-weight:600!important}.start-game-btn.is-ready{background:#ffffff14!important;border:1px solid rgba(255,255,255,.3)!important;box-shadow:0 0 20px #ffffff0d!important;color:#fff!important}.startup-overlay>p:last-child{display:none!important}.difficulty-grid{grid-template-columns:repeat(4,1fr)!important;gap:15px!important;padding:0 30px!important;transform:translateY(-20px)!important}.difficulty-option{padding:20px 10px!important;min-width:130px!important}.startup-overlay .difficulty-grid+p{transform:translateY(-10px)!important}}.tutorial-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#112c3485;z-index:9998;pointer-events:auto}.tutorial-completion-overlay{position:fixed;inset:0;z-index:30000;display:flex;justify-content:center;align-items:center;background:#000000d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:24px;box-sizing:border-box}.tutorial-completion-overlay .result-content{text-align:center}.tutorial-completion-overlay .result-title{color:#f8d980;font-size:clamp(24px,5vw,56px);line-height:1.3;margin-bottom:16px;text-shadow:none}.tutorial-completion-overlay .result-subtitle{color:#fffef7;font-size:clamp(16px,2.5vw,24px);line-height:1.6;margin-bottom:24px}.tutorial-completion-continue{color:#fffef7;font-size:14px}.tutorial-highlight{position:relative!important;z-index:9999!important;pointer-events:auto!important;border-radius:inherit;box-shadow:0 0 24px #ffcd5c80;animation:tutorialGlowPulse 1.5s infinite alternate cubic-bezier(.4,0,.2,1)}.tutorial-highlight:after{content:"👇";position:absolute;top:-45px;left:50%;transform:translate(-50%);font-size:2.5rem;z-index:100000;pointer-events:none;animation:pointer-bounce .6s infinite alternate cubic-bezier(.4,0,.2,1);filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}@keyframes pointer-bounce{0%{transform:translate(-50%)}to{transform:translate(-50%,-15px)}}@keyframes tutorialGlowPulse{0%{box-shadow:0 0 14px #ffcd5c59}to{box-shadow:0 0 28px #ffcd5ca6}}.tutorial-target-glow{outline:none;box-shadow:0 0 18px #ffcd5c99;animation:tutorialGlowPulse 1.5s ease-in-out infinite alternate}.has-tutorial .board-side>.unit-wrapper.tutorial-highlight{z-index:10001!important}.has-tutorial .board-side>.unit-wrapper.tutorial-highlight:after{top:var(--tutorial-hand-top, -45px)}@media(prefers-reduced-motion:reduce){.tutorial-target-glow,.tutorial-highlight{animation:none}}.is-battling .tutorial-highlight{box-shadow:none!important;animation:none!important}.tutorial-message-box{position:absolute;top:35%;right:5%;background:#0f172a99;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(96,165,250,.2);border-top:3px solid rgba(96,165,250,.6);padding:16px 32px;border-radius:12px;z-index:10100;color:#f8fafc;font-size:1.3rem;font-weight:500;text-align:center;box-shadow:0 10px 25px #00000080,0 0 15px #60a5fa1a;pointer-events:none;white-space:pre-wrap;max-width:80%;line-height:1.5;letter-spacing:1px;display:flex;align-items:center;gap:15px}.tutorial-text{flex-grow:1}.tutorial-next-arrow{display:none}.tutorial-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:15px}.tutorial-btn-continue{background:linear-gradient(to bottom,#3b82f6,#2563eb);color:#fff;border:1px solid #60a5fa;padding:10px 24px;border-radius:8px;font-size:1.1rem;font-weight:700;cursor:pointer;box-shadow:0 4px 10px #3b82f666;transition:all .2s}.tutorial-btn-continue:hover{transform:scale(1.05);box-shadow:0 6px 15px #3b82f699}.tutorial-btn-skip{background:transparent;color:#94a3b8;border:none;font-size:.85rem;cursor:pointer;text-decoration:underline;padding:4px;transition:color .2s}.tutorial-btn-skip:hover{color:#f8fafc}.shake-anim{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}@keyframes shake{10%,90%{transform:translate(-1px)}20%,80%{transform:translate(1px)}30%,50%,70%{transform:translate(-2px)}40%,60%{transform:translate(2px)}}.tutorial-highlight.tutorial-pointer-left:after{content:"👈";top:50%;left:auto;right:-65px;transform:translateY(-50%);animation:pointer-bounce-left .6s infinite alternate cubic-bezier(.4,0,.2,1);pointer-events:none}@keyframes pointer-bounce-left{0%{transform:translateY(-50%)}to{transform:translate(-15px,-50%)}}.tutorial-elevate{z-index:10000!important;position:relative;pointer-events:auto!important}.card-lock-overlay.tutorial-elevate{position:absolute}.opponent-card{box-shadow:0 4px 15px #0000004d}.opponent-card:hover{transform:translateY(-10px) scale(1.05);background:linear-gradient(135deg,#fff3,#ffffff1a)!important;border-color:#fff6!important;box-shadow:0 10px 25px #fff3,0 0 15px #ffffff1a}.opponent-name{transition:color .2s}.opponent-card:hover .opponent-name{color:gold!important}.battle-result-overlay.battle-result--win,.battle-result-overlay.battle-result--loss,.battle-result-overlay.battle-result--draw,.game-result-overlay{background:var(--selection-backdrop)!important;-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important}.battle-result-overlay.battle-result--win .result-content,.battle-result-overlay.battle-result--loss .result-content,.battle-result-overlay.battle-result--draw .result-content{color:#fffdf3;text-shadow:0 2px 6px rgba(0,0,0,.8)}.battle-result-overlay.battle-result--win .result-title{color:#fff0b5}.battle-result-overlay.battle-result--loss .result-title{color:#ffe2e8}.battle-result-overlay.battle-result--draw .result-title{color:#edf5dd}.battle-result-overlay.battle-result--win .result-subtitle,.battle-result-overlay.battle-result--loss .result-subtitle,.battle-result-overlay.battle-result--draw .result-subtitle{color:#fffdf3!important}.game-result-overlay:before{content:none}.game-result-overlay .result-content{position:relative;color:#fffdf3}.game-result-overlay .result-kicker{font-size:clamp(.65rem,1.2vw,.82rem);letter-spacing:.18em;opacity:.8}.game-result-overlay.result-screen--champion .result-title{margin:22px 0 6px;color:#fff4c4;font-size:clamp(3.2rem,10vw,6.3rem);letter-spacing:.12em;text-shadow:0 4px 0 rgba(6,19,42,.5),0 0 34px rgba(255,218,107,.46);animation:fadeInUp .6s ease-out}.game-result-overlay.result-screen--game-over .result-title{margin:22px 0 6px;color:#d8dee1;font-size:clamp(3.1rem,10vw,6rem);letter-spacing:.12em;text-shadow:none;animation:fadeInUp .6s ease-out}.game-result-overlay .result-subtitle{color:inherit;font-size:clamp(1rem,2vw,1.45rem)}.game-result-overlay .result-continue{margin-top:40px;color:inherit;font-size:.78rem;letter-spacing:.15em;opacity:.66}.pool-selection-overlay{background:var(--selection-backdrop)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.pool-selection-overlay h2{color:#fffdf3!important;text-shadow:0 2px 6px rgba(0,0,0,.8)!important}.pool-selection-overlay .opponent-card{background:linear-gradient(145deg,#fffffaeb,#e8faf0d1)!important;border-color:#16686238!important;box-shadow:0 12px 26px #19635829!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.pool-selection-overlay .opponent-card:hover{background:linear-gradient(145deg,#fffef8,#ddf6eb)!important;border-color:#d8a93a!important;box-shadow:0 16px 30px #19635838,0 0 0 3px #d8a93a2e!important}.pool-selection-overlay .opponent-name{color:#153f45!important;text-shadow:0 1px 0 rgba(255,255,248,.88)!important}.pool-selection-overlay .opponent-card:hover .opponent-name{color:#9a6818!important}.pool-choice-info{display:flex;align-items:center;gap:14px;width:min(560px,94vw);margin:-12px 0 22px;padding:12px 16px;border:1px solid rgba(28,100,95,.26);border-radius:18px;background:#fffffae0;box-shadow:0 12px 28px #22645c29;color:#184d4e;text-align:left}.pool-choice-info img{width:72px;height:72px;flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 5px 7px rgba(27,77,78,.18))}.pool-choice-info span{display:block;color:#a46d1d;font-size:11px;font-weight:900;letter-spacing:.13em}.pool-choice-info strong{display:block;margin-top:2px;font-family:Georgia,"Noto Serif TC",serif;font-size:20px}.pool-choice-info p{margin:3px 0;font-size:13px;line-height:1.45}.pool-choice-info small{color:#2d716b;font-size:12px;font-weight:750}.pool-selection-overlay .opponent-card.is-selection-pool-card.is-previewed{border-color:#d6a43c!important;box-shadow:0 0 0 4px #ffefabc7,0 14px 28px #2e6f673d!important;transform:translateY(-6px) scale(1.04)!important}.tutorial-highlight.no-arrow:after{content:none!important}.synergy-icon.force-visible{z-index:99999!important}.summary-synergy-item .synergy-tooltip{left:110%!important;right:auto!important}.summary-container{background:#ffffff0d;-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:8px 12px 10px;margin-top:0;width:98%;max-width:900px;display:flex;flex-direction:column;gap:5px;box-shadow:0 15px 40px #0009;animation:fadeInUp .8s cubic-bezier(.22,1,.36,1) both;cursor:default}.summary-header-row{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#00000080;border-radius:15px;border:1px solid rgba(255,255,255,.08);flex-wrap:nowrap;gap:10px}.summary-stat-group{display:flex;align-items:center;gap:20px;flex:1}.difficulty-badge-container{display:flex;align-items:center;justify-content:center;width:50px}.difficulty-icon-img{width:42px;height:42px;filter:drop-shadow(0 0 10px rgba(255,255,255,.3))}.stat-box{text-align:center}.stat-box-label{font-size:.7rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:1px;margin-bottom:2px}.stat-box-value{font-size:1.3rem;font-weight:900;color:#fff;font-variant-numeric:tabular-nums}.summary-stat-btn-group{display:flex;gap:12px;margin-left:20px}.summary-tab-btn-compact{padding:6px 15px;background:#ffffff14;border:1px solid rgba(255,255,255,.1);color:#ffffff80;border-radius:10px;font-weight:800;cursor:pointer;transition:all .2s;font-size:.85rem}.summary-tab-btn-compact.is-active{background:#fff3;border-color:#fff6;color:#fff;box-shadow:0 0 15px #ffffff1a}.summary-tab-content{min-height:390px;max-height:70vh;overflow-y:auto;overflow-x:visible;background:#00000040;border-radius:15px;padding:15px;animation:fadeIn .4s ease-out;overflow:visible!important}.summary-history-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:5px;row-gap:8px;justify-items:center;width:100%;margin-top:10px}.history-item{width:min(44px,100%);height:auto;aspect-ratio:1;min-width:0;box-sizing:border-box;border-radius:50%;overflow:hidden;border:2px solid rgba(255,255,255,.1);background:#0000004d;position:relative;transition:transform .2s}.history-item:hover{transform:scale(1.1);z-index:5}.history-item img{width:100%;height:100%;object-fit:cover}.history-result-tag{position:absolute;top:2px;right:2px;display:grid;width:15px;height:15px;place-items:center;border-radius:50%;font-size:.55rem;font-weight:900;text-align:center;background:#0009;color:#fff}.history-result-stamp{position:absolute;z-index:2;top:50%;left:50%;padding:1px 3px;border:2px solid currentColor;border-radius:4px;background:#08181c80;color:#f4f7f5;font-size:.58rem;font-weight:950;letter-spacing:.05em;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.5);transform:translate(-50%,-50%) rotate(-18deg);box-shadow:0 1px 4px #00000052;pointer-events:none}.history-result-stamp--win{color:#35c66b;background:#104e2a8f}.history-result-stamp--loss{color:#ef5a5a;background:#701c238f}.history-result-stamp--draw{color:#d0d5d7;background:#3a42458f}.summary-team-display{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;align-items:flex-end}.summary-unit-card{position:relative;display:flex;flex-direction:column;align-items:center;width:110px}.summary-unit-img{width:90px;height:90px;object-fit:contain;filter:drop-shadow(0 5px 15px rgba(0,0,0,.5))}.mvp-badge{position:absolute;top:5px;right:5px;background:linear-gradient(135deg,#fbbf24,#d97706);color:#000;font-size:.75rem;font-weight:900;padding:2px 10px;border-radius:8px;box-shadow:0 4px 10px #d9770666;border:1px solid rgba(255,255,255,.4);z-index:20}.summary-unit-name{font-size:.85rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}.summary-unit-stats{display:flex;gap:8px;font-size:.75rem;font-weight:900;background:#0000004d;padding:2px 8px;border-radius:6px;margin-top:auto}.summary-synergies-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;width:100%;margin-bottom:20px;padding:12px;background:#ffffff08;border-radius:16px;border:1px solid rgba(255,255,255,.05)}.summary-synergy-item{transform:scale(1.1);transform-origin:center}.history-hero-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;width:100%;margin-top:-5px;margin-bottom:20px}.hero-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.4,0,.2,1);min-height:140px;position:relative;overflow:hidden}.hero-card:hover{background:#ffffff14;transform:translateY(-8px) scale(1.02);border-color:#ffffff4d}.hero-card.is-empty{opacity:.15;border-style:dashed;background:transparent}.hero-label{font-size:1.1rem;font-weight:900;color:gold;letter-spacing:2px;margin-bottom:6px;text-shadow:0 2px 4px rgba(0,0,0,.5);width:100%;text-align:center}.hero-img{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.6))}.hero-name{font-size:.9rem;font-weight:700;color:#fff;margin-top:5px}.hero-desc{font-size:.7rem;color:gold;margin-top:2px;font-weight:700}.summary-units-grid{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;width:100%;margin:0;position:relative;padding-top:0;box-sizing:border-box}.summary-unit-card{position:relative;display:flex;flex-direction:column;align-items:center;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:15px 10px 10px;width:105px;min-height:115px;transition:transform .2s}.summary-unit-img{width:80px;height:80px;object-fit:contain;margin-bottom:6px}.history-item.is-draw{border:1px solid rgba(255,255,255,.1)}.history-item.is-draw .history-result-tag{background:#969696cc}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.summary-synergies-row{display:flex;position:static;flex:0 0 100%;flex-wrap:wrap;align-items:center;gap:10px;width:100%;margin:0;padding:0 0 8px!important;box-sizing:border-box;pointer-events:auto;justify-content:flex-start;background:none!important;border:none!important}.summary-synergy-item{background:#000000b3!important;padding:4px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.15)!important;transform:scale(.85);transform-origin:top left;margin:0}@media(max-width:768px){.summary-synergy-item{display:none!important}}.tier-1{--tier-color: #9ca3af}.tier-2{--tier-color: #22c55e}.tier-3{--tier-color: #3b82f6}.tier-4{--tier-color: #ff4d4d}.tier-5{--tier-color: #ffcc00}.shop-slots .unit-card.tier-1 .unit-visual-wrapper{background:radial-gradient(circle at 50% 50%,rgba(156,163,175,.8) 0%,transparent 85%)}.shop-slots .unit-card.tier-2 .unit-visual-wrapper{background:radial-gradient(circle at 50% 50%,rgba(34,197,94,.8) 0%,transparent 85%)}.shop-slots .unit-card.tier-3 .unit-visual-wrapper{background:radial-gradient(circle at 50% 50%,rgba(59,130,246,.8) 0%,transparent 85%)}.shop-slots .unit-card.tier-4 .unit-visual-wrapper{background:radial-gradient(circle at 50% 50%,rgba(255,77,77,.9) 0%,transparent 90%)}.shop-slots .unit-card.tier-5 .unit-visual-wrapper{background:radial-gradient(circle at 50% 50%,rgba(255,204,0,1) 0%,rgba(255,204,0,.2) 60%,transparent 100%)}.sword-dance-anim:after{content:"⚔️";position:absolute;top:-20px;left:50%;transform:translate(-50%);font-size:1.8rem;opacity:0;animation:floatUpFade .6s ease-out forwards;pointer-events:none;z-index:1000;text-shadow:0 0 10px rgba(255,255,255,.8)}.sword-dance-anim .unit-visual-wrapper{animation:sword-dance-shake .4s ease-in-out}@keyframes sword-dance-shake{0%,to{transform:scaleX(var(--flip-x))}25%,75%{transform:scaleX(var(--flip-x)) translate(-2px)}50%{transform:scaleX(var(--flip-x)) translate(2px)}}.roost-anim:after{content:"🪽";position:absolute;top:-20px;left:50%;transform:translate(-50%);font-size:1.8rem;opacity:0;animation:floatUpFade .6s ease-out forwards;pointer-events:none;z-index:1000;text-shadow:0 0 10px rgba(255,255,255,.8)}.roost-anim .unit-visual-wrapper{animation:roost-pulse .6s ease-out}@keyframes roost-pulse{0%,to{filter:brightness(1);transform:scaleX(var(--flip-x))}50%{filter:brightness(1.3);transform:scaleX(var(--flip-x))}}@keyframes floatUpFade{0%{transform:translate(-50%) translateY(0);opacity:0}20%{opacity:1}to{transform:translate(-50%) translateY(-50px);opacity:0}}.hero-card.hero-card--player{background:linear-gradient(145deg,#fffce0f2,#eaf7eaeb);border:2px solid #d7a837;box-shadow:0 10px 24px #906b163d,inset 0 0 0 3px #ffffff94;transform:translateY(-8px)}.hero-card.hero-card--player:before{position:absolute;inset:7px;content:"";border:1px solid rgba(48,111,89,.25);border-radius:13px;pointer-events:none}.hero-card.hero-card--player .hero-label{color:#8c6515;text-shadow:none}.hero-card.hero-card--player .hero-img{filter:drop-shadow(0 8px 12px rgba(37,84,67,.26))}.adventure-startup-overlay{--adventure-teal: #153f45;--adventure-gold: #d8a93a;position:fixed!important;inset:0;z-index:10000;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:clamp(18px,3vh,36px)!important;padding:clamp(24px,5vh,64px) 20px!important;box-sizing:border-box;overflow:hidden!important;isolation:isolate;color:var(--adventure-teal);background:radial-gradient(ellipse at 50% 12%,rgba(255,250,203,.78),transparent 27%),linear-gradient(180deg,#bcecff,#d6f1ef 48%,#abd887 49%,#70ad75)}.adventure-startup-overlay>:not(.adventure-scene){position:relative;z-index:1}.adventure-scene{position:absolute;inset:0;pointer-events:none}.adventure-cloud,.adventure-hill,.adventure-road{position:absolute;pointer-events:none}.adventure-scene{z-index:0;overflow:hidden}.adventure-scene:before{position:absolute;right:-18vw;bottom:-24vh;left:-18vw;height:48vh;border-radius:50% 50% 0 0;background:radial-gradient(ellipse at 50% 18%,#f2ffd699,#77ae6f33 52%,#47896861);content:"";filter:blur(2px)}.adventure-cloud{inset:auto;width:min(34vw,440px);height:clamp(42px,7vw,86px);border-radius:999px;background:#fffce8b8;filter:blur(1px);box-shadow:42px 12px 0 4px #fffce8a3,-34px 16px 0 -4px #fffce885}.adventure-cloud--one{top:13%;left:9%}.adventure-cloud--two{top:27%;right:12%;transform:scale(.72);opacity:.8}.adventure-hill{inset:auto;bottom:-10vh;width:78vw;height:34vh;border-radius:50%;filter:blur(2px);opacity:.34}.adventure-hill--one{left:-22vw;background:#78ad76}.adventure-hill--two{right:-26vw;height:30vh;background:#4c9271}.adventure-road{top:59%;left:50%;width:min(58vw,740px);height:70vh;border-radius:12% 12% 0 0;transform:translate(-50%) perspective(760px) rotateX(54deg);transform-origin:top center;background:linear-gradient(90deg,#c6975b2e,#eac277b8 18%,#ffecade0,#eac277b8 82%,#c6975b2e);opacity:.66}.adventure-brand{text-align:center}.adventure-title{margin:0;color:var(--adventure-teal);font-size:clamp(2.6rem,7vw,5.25rem);font-weight:900;letter-spacing:clamp(4px,1vw,12px);line-height:.93;text-indent:clamp(4px,1vw,12px);text-shadow:0 2px 0 rgba(255,255,248,.72)}.adventure-panel,.adventure-choice{color:#173f45;background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}.adventure-loading{display:flex;flex-direction:column;gap:14px;width:min(520px,88vw)!important;padding:22px 26px;border-radius:20px;text-align:center}.adventure-loading>*{margin:0!important;font-family:inherit}.adventure-startup-overlay .adventure-loading-copy{display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:var(--hud-ink)!important;font-size:1rem;font-weight:700;letter-spacing:.08em;opacity:1}.adventure-brand+.adventure-loading{margin-top:clamp(32px,5vh,72px)}.adventure-startup-overlay .loading-container{background:transparent!important;border:0!important;box-shadow:none!important}.adventure-startup-overlay .loading-bar-wrapper{width:100%;height:10px;overflow:hidden;border:0!important;border-radius:999px;background:#f8f4e6b3!important}.adventure-startup-overlay .loading-bar-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#d8a93a,#f0c95d);box-shadow:0 0 14px #d8a93a6b;transition:width .4s cubic-bezier(.4,0,.2,1)}.adventure-loading-copy,.adventure-footer-copy{margin:0;color:#426a6c!important;font-weight:700;letter-spacing:clamp(1px,.35vw,4px)}.adventure-choice-meta{color:#426a6c;font-size:.85rem;font-weight:700}@media(max-height:500px){.adventure-choice-meta{display:none!important}}.adventure-footer-copy{padding:0 20px;font-size:1.1rem;opacity:.8}.adventure-choice-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));justify-items:center;gap:clamp(14px,2.5vw,30px)!important;width:min(950px,94vw)!important;margin:0 auto!important}.adventure-choice-grid--difficulty{display:flex!important;flex-wrap:wrap;justify-content:center;gap:clamp(20px,3vw,36px)!important;width:min(920px,92vw)!important}.adventure-choice-grid--difficulty .adventure-choice{flex:0 1 170px;max-width:184px}.adventure-choice{display:flex;flex:1 1 200px;flex-direction:column;align-items:center;justify-content:center;min-height:184px;max-width:300px;gap:14px;padding:24px 15px;cursor:pointer;transition:transform .25s ease,filter .25s ease}.adventure-choice.is-unavailable{cursor:not-allowed;filter:grayscale(100%);opacity:.55}.adventure-choice:hover:not(:disabled),.adventure-choice.is-focused{transform:translateY(-6px);background:transparent!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 12px 12px rgba(23,85,79,.16))}.adventure-choice:active:not(:disabled){transform:translateY(-1px) scale(.98)}.adventure-choice:focus-visible{outline:3px solid #d8a93a;outline-offset:4px}.adventure-choice-icon{object-fit:contain;filter:drop-shadow(0 8px 8px rgba(21,63,69,.25))}.adventure-choice.is-focused .adventure-choice-icon{filter:drop-shadow(0 0 13px rgba(216,169,58,.72)) drop-shadow(0 8px 8px rgba(216,169,58,.42))}.adventure-choice-icon--edition{width:120px;height:120px;border-radius:16px}.adventure-choice-icon--difficulty{width:96px;height:96px}.adventure-choice-copy{display:flex;flex-direction:column;gap:5px}.adventure-choice-name{color:#153f45;font-size:1.4rem;font-weight:800;letter-spacing:2px}.adventure-choice.is-focused .adventure-choice-name{color:#d8a93a;text-shadow:0 2px 0 rgba(255,255,248,.72)}.adventure-choice-subtitle{color:#426a6c;font-size:.85rem;letter-spacing:1px}.adventure-footer{margin:4px 0 5vh;text-align:center}.adventure-version{position:absolute!important;bottom:20px;margin:0;color:#153f4594!important;font-size:.7rem;letter-spacing:2px}@media(max-width:600px){.adventure-startup-overlay{justify-content:flex-start!important;gap:12px!important;padding:14px 12px 28px!important;overflow-y:auto!important;overscroll-behavior:contain}.adventure-title{font-size:clamp(2.1rem,11vw,2.7rem)}.adventure-choice-grid{grid-template-columns:1fr;gap:10px!important;width:min(340px,94vw)!important}.adventure-choice-grid--difficulty{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:min(560px,94vw)!important}.adventure-choice{min-height:128px;gap:8px;padding:12px 8px}.adventure-choice-icon--edition{width:64px;height:64px}.adventure-choice-icon--difficulty{width:54px;height:54px}.adventure-choice-name{font-size:1rem}.adventure-choice-subtitle{font-size:.74rem}.adventure-footer{margin:2px 0 0}.adventure-footer-copy{font-size:.9rem}.adventure-version{position:relative!important;bottom:auto;margin-top:auto}}@media(orientation:landscape)and (max-height:500px){.adventure-startup-overlay{gap:10px!important;padding:12px 20px!important}.adventure-title{font-size:clamp(2.1rem,6vw,3.2rem)!important}.adventure-loading{padding:12px 20px}.adventure-choice-grid{width:min(900px,92vw)!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty){grid-template-columns:repeat(3,minmax(0,1fr))!important}.adventure-choice{min-height:130px;padding:12px}.adventure-choice-icon--edition{width:62px;height:62px}.adventure-choice-icon--difficulty{width:58px;height:58px}.adventure-footer{margin:0}}.game-result-overlay .summary-container{position:relative;width:min(760px,94vw);max-width:760px;gap:12px;padding:clamp(16px,2.4vw,25px);border:0;border-radius:18px;background:#fffcedf5;color:#143743;box-shadow:0 20px 55px #020d1e61;-webkit-backdrop-filter:none;backdrop-filter:none;box-sizing:border-box;overflow:hidden}.game-result-overlay.result-screen--game-over .summary-container{background:#2b3d47f2;color:#e3e7e8;box-shadow:0 18px 54px #06141b6b}.summary-identity{display:flex;align-items:center;gap:10px;min-width:0;padding-bottom:10px;border-bottom:1px solid rgba(25,68,76,.18)}.result-screen--game-over .summary-identity{border-color:#e3e7e824}.summary-trainer-image,.summary-trainer-fallback{width:50px;height:50px;flex:0 0 50px;object-fit:contain;border-radius:50%;background:#e8c96d;color:#143743;display:grid;place-items:center;font-size:24px}.result-screen--game-over .summary-trainer-image,.result-screen--game-over .summary-trainer-fallback{background:#52616b;color:#f0f2f2;filter:grayscale(.6)}.summary-identity-copy{min-width:0;flex:0 0 auto;margin-right:8px}.summary-identity-copy span{display:block;font-size:.72rem;letter-spacing:.12em;opacity:.65}.summary-identity-copy strong{display:block;margin:2px 0;font-size:clamp(1.1rem,2.5vw,1.45rem)}.summary-identity .difficulty-icon-img{width:44px;height:44px;margin-right:12px;filter:drop-shadow(0 3px 5px rgba(18,52,59,.2))}.summary-identity-stats{display:grid;grid-auto-flow:column;grid-auto-columns:auto;gap:clamp(22px,2.8vw,34px);margin-left:0}.summary-identity-stats .stat-box{min-width:0;padding:3px 0;text-align:center}.game-result-overlay .stat-box-label{color:inherit;font-size:.68rem;opacity:.6}.game-result-overlay .stat-box-value{color:inherit;font-size:clamp(1rem,2.4vw,1.3rem);white-space:nowrap}.summary-actions{display:grid;grid-template-columns:repeat(4,62px);gap:6px;margin-left:auto}.summary-actions .summary-tab-btn-compact{width:62px;height:34px;border:0;border-radius:7px;padding:3px 6px;background:#14414817;color:inherit;font-size:.72rem;font-weight:800;line-height:1.1;opacity:.72;box-shadow:none}.result-screen--game-over .summary-actions .summary-tab-btn-compact{background:#ffffff14}.summary-actions .summary-tab-btn-compact.is-active{background:#e9c969;color:#183f47;opacity:1;box-shadow:none}.result-screen--game-over .summary-actions .summary-tab-btn-compact.is-active{background:#657681;color:#fff}.game-result-overlay .summary-tab-content{min-height:min(340px,44vh);max-height:44vh;padding:12px;border-radius:12px;overflow-y:auto!important;overflow-x:hidden!important;background:#164a4e12}.result-screen--game-over .summary-tab-content{background:#ffffff14}.result-screen--champion .summary-history-display .hero-label{color:#7c5715;text-shadow:none}.result-screen--game-over .summary-history-display .hero-label{color:#e4bd62}.summary-restart-action{width:62px;height:34px;min-width:0;border:0;border-radius:7px;padding:3px 6px;background:#174653;color:#fffaf0;font:inherit;font-size:.72rem;font-weight:900;line-height:1.1;cursor:pointer;box-shadow:none;transition:transform .2s,background .2s}.summary-restart-action:hover{background:#0e3540;transform:translateY(-1px)}.result-screen--game-over .summary-restart-action{background:#657681;color:#fff;box-shadow:0 4px 10px #0006}.result-screen--game-over .summary-restart-action:hover{background:#778a95}@media(max-width:600px){.game-result-overlay .summary-container{width:min(94vw,520px);padding:15px;box-sizing:border-box}.summary-identity{flex-wrap:wrap;gap:7px}.summary-identity-stats{width:100%;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:7px;margin-left:0}.summary-actions{width:100%;grid-template-columns:repeat(2,30px) minmax(0,1fr);margin-left:0}.game-result-overlay .stat-box-label{font-size:.58rem}.game-result-overlay .stat-box-value{font-size:.82rem}.game-result-overlay .summary-tab-content{min-height:300px;max-height:48vh;padding:10px}}.is-selection-pool-card.pool-choice-card{min-width:0;color:#173f45;flex-direction:column}.is-selection-pool-card.pool-choice-card:hover{background:#fffef8!important;border-color:#d6a43c!important;box-shadow:0 14px 28px #1f625b33!important;transform:translateY(-5px)}.pool-choice-card .pool-card-img-wrapper{width:100%!important;aspect-ratio:1.15!important;margin-bottom:2px!important}.pool-choice-card__details{width:100%;text-align:left;padding:0 4px 8px}.pool-choice-card__heading{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.pool-choice-card__title{color:#164b4c;font-family:Georgia,"Noto Serif TC",serif;font-size:clamp(1.05rem,2vw,1.38rem);font-weight:800;letter-spacing:.04em}.pool-choice-card__synergies{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pool-choice-card__title span{color:#ad741b;font-family:inherit;font-size:.82em;white-space:nowrap}.pool-choice-card__details p{min-height:3em;margin:5px 0 0;color:#32676a;font-size:clamp(.76rem,1.15vw,.9rem);line-height:1.45}.pool-choice-card .synergy-icon{filter:none}.pool-selection-overlay .pool-choice-card{max-width:220px}.pool-selection-overlay .pool-choice-card .pool-card-img-wrapper{aspect-ratio:1.35!important}.pool-selection-overlay .pool-choice-card__details{padding-bottom:4px}.pool-selection-overlay .pool-choice-card__details p{min-height:2.7em;font-size:clamp(.7rem,1vw,.8rem)}.pool-selection-overlay .pool-choice-card__title{font-size:clamp(.95rem,1.5vw,1.12rem)}.opponent-card--choice{flex-direction:column;justify-content:flex-start;min-height:220px}.opponent-card--choice .opponent-card__portrait{display:block;margin:0 auto 6px!important}.opponent-card--choice .opponent-card__name{width:100%}@media(max-width:760px){.summary-actions{grid-template-columns:repeat(4,54px);gap:4px}.summary-actions .summary-tab-btn-compact{width:54px;height:32px;font-size:.67rem}.summary-restart-action{min-width:54px;padding:3px 6px;font-size:.67rem}}.summary-team-toggle{display:flex;gap:6px;margin:0}.summary-synergies-row .summary-team-toggle{order:2;margin-left:auto;flex:0 0 auto}.summary-team-toggle button{border:0;border-radius:7px;padding:6px 10px;background:#14414817;color:inherit;font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}.summary-team-toggle button.is-active{background:#e9c969;color:#183f47}.summary-team-panel{display:none}.summary-team-display>.summary-team-panel{width:100%}.summary-team-panel.is-visible{display:block}.summary-team-units-grid.summary-team-panel.is-visible,.summary-team-panel.is-visible>.summary-team-units-grid{display:grid;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:clamp(2px,1.2vw,8px)}.summary-team-units-grid.summary-team-panel.is-visible>.summary-synergies-row,.summary-team-panel.is-visible>.summary-team-units-grid>.summary-synergies-row{grid-column:1 / -1}.summary-team-units-grid.summary-team-panel.is-visible>.summary-unit-card,.summary-team-panel.is-visible>.summary-team-units-grid>.summary-unit-card{box-sizing:border-box;min-width:0;min-height:0;width:auto!important;padding:clamp(3px,1.2vw,10px);padding-top:clamp(5px,1.6vw,15px)}.summary-team-units-grid.summary-team-panel.is-visible>.summary-unit-card .summary-unit-img,.summary-team-panel.is-visible>.summary-team-units-grid>.summary-unit-card .summary-unit-img{width:min(80px,100%);height:clamp(42px,10vw,80px)}.summary-history-display--battle .history-hero-grid{display:none}.summary-history-display--battle{max-height:none;overflow:visible;padding-right:0}.game-result-overlay,.game-result-overlay .summary-tab-content{scrollbar-width:none;-ms-overflow-style:none}.game-result-overlay::-webkit-scrollbar,.game-result-overlay .summary-tab-content::-webkit-scrollbar{display:none;width:0;height:0}.summary-history-display--achievement .summary-history-grid{display:none}.summary-achievement-display .hero-card.hero-card--player{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);box-shadow:none;transform:none}.summary-achievement-display .hero-card.hero-card--player:before{display:none}.summary-achievement-display .hero-card.hero-card--player .hero-label{color:gold;text-shadow:0 2px 4px rgba(0,0,0,.5)}.summary-achievement-display .hero-card.hero-card--player .hero-img{filter:drop-shadow(0 8px 16px rgba(0,0,0,.6))}.result-screen--champion .summary-achievement-display .hero-name{color:#143743;text-shadow:none}.summary-achievement-display .hero-name{margin-top:10px;font-size:.88rem;font-weight:800;text-align:center}.hero-name{margin-top:5px;font-size:.72rem;font-weight:800;text-align:center}.summary-history-grid .history-item.is-loss img,.summary-history-grid .history-item.is-draw img{filter:grayscale(1);opacity:.48}@media(max-width:760px){.summary-actions{grid-template-columns:repeat(4,54px)}.summary-restart-action{width:54px;height:32px;min-width:0;padding:3px 6px;font-size:.67rem}}@media(max-width:700px){.opponent-cards-container{grid-template-columns:1fr!important;width:min(420px,92vw)!important}.pool-choice-card{flex-direction:row!important;align-items:center!important;gap:10px}.pool-choice-card .pool-card-img-wrapper{width:98px!important;flex:0 0 98px}.pool-choice-card .pool-choice-card__details{flex:1}.pool-choice-card .synergy-icon{transform:scale(.88);transform-origin:left center}}@media(max-width:950px)or (max-height:500px){.shop-slots{display:flex;gap:8px!important;width:max-content;min-width:100%}.shop-slots>*{flex:0 0 84px;width:84px}.shop-slots .unit-card,.shop-slots .slot-placeholder{width:84px!important;max-width:84px;height:100px!important;margin:0!important}.shop-slots .unit-image{flex:none;width:76px!important;height:76px!important;max-width:100%}}.adventure-choice-art{position:relative;display:inline-block;line-height:0}.adventure-choice-lock{position:absolute;right:-6px;bottom:-6px;display:grid;place-items:center;width:34px;height:34px;font-size:22px;filter:drop-shadow(0 2px 3px rgba(21,63,69,.35));line-height:1}.adventure-choice.is-unavailable .adventure-choice-subtitle{color:#153f45;font-weight:700}.result-unlock{width:fit-content;margin:14px auto 0;padding:3px 12px;border-radius:999px;background:#fffdf3eb;color:#b7791f;font-size:.95rem;font-weight:800;letter-spacing:1px}@media(max-height:500px){.adventure-choice-lock{width:26px;height:26px;font-size:18px}}.adventure-choice-grid:not(.adventure-choice-grid--difficulty){grid-template-columns:repeat(5,minmax(0,1fr));width:min(1080px,96vw)!important;gap:clamp(8px,1.6vw,22px)!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice{padding:18px 6px;gap:12px}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-icon--edition{width:112px;height:112px}@media(orientation:landscape)and (max-height:500px){.adventure-choice-grid:not(.adventure-choice-grid--difficulty){grid-template-columns:repeat(5,minmax(0,1fr))!important;box-sizing:border-box;width:min(900px,100%)!important;padding:0!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice{padding:8px 2px;gap:6px;min-height:0}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-icon--edition{width:58px;height:58px}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-name{font-size:.95rem!important;letter-spacing:1px}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-subtitle{font-size:.7rem!important;letter-spacing:0}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-hint{font-size:.66rem!important;letter-spacing:0}}@media(max-width:600px){.adventure-choice-grid:not(.adventure-choice-grid--difficulty){grid-template-columns:1fr}}.adventure-choice-grid{-webkit-text-size-adjust:100%;text-size-adjust:100%}@media(orientation:landscape)and (max-height:500px){.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-copy{gap:2px;min-width:0}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-copy>span{white-space:nowrap}}.adventure-choice-hint{visibility:hidden;color:#153f45;font-size:.8rem;font-weight:700;letter-spacing:1px}.adventure-choice.is-unavailable:hover .adventure-choice-hint{visibility:visible}@media(max-height:500px){.adventure-choice-hint{font-size:.7rem}}.adventure-choice-grid:not(.adventure-choice-grid--difficulty){width:min(880px,96vw)!important;gap:clamp(4px,1vw,12px)!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-name{font-size:1.6rem}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-subtitle{font-size:1rem}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-hint{font-size:.9rem}@media(orientation:landscape)and (max-height:500px){.adventure-choice-grid:not(.adventure-choice-grid--difficulty){width:min(720px,100%)!important;gap:4px!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-icon--edition{width:64px;height:64px}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-name{font-size:1.1rem!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-subtitle{font-size:.8rem!important}.adventure-choice-grid:not(.adventure-choice-grid--difficulty) .adventure-choice-hint{font-size:.7rem!important}}@media(orientation:landscape)and (max-height:500px){.adventure-choice-grid--difficulty{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,2vw,20px)!important;box-sizing:border-box;width:min(760px,94vw)!important;padding:0!important}.adventure-choice-grid--difficulty .adventure-choice{width:100%!important;max-width:none;min-width:0!important;box-sizing:border-box}}.summary-identity-stats{grid-auto-columns:max-content;gap:clamp(14px,2vw,26px)}.summary-identity-stats .stat-box{min-width:max-content}.game-result-overlay .summary-identity-stats .stat-box-value{font-size:clamp(.95rem,2vw,1.15rem)}.summary-actions{grid-template-columns:repeat(4,48px);gap:4px}.summary-actions .summary-tab-btn-compact,.summary-restart-action{width:48px;height:28px;padding:2px 4px;font-size:.66rem;border-radius:6px}@media(max-width:760px){.summary-actions{grid-template-columns:repeat(4,42px);gap:3px}.summary-actions .summary-tab-btn-compact,.summary-restart-action{width:42px;height:26px;font-size:.6rem}.summary-identity-stats{gap:10px}.game-result-overlay .summary-identity-stats .stat-box-value{font-size:.85rem}}
