@font-face{font-family:Jua;src:url('./assets/fonts/Jua-Regular.ttf') format('truetype');font-display:swap;font-weight:100 1000}
:root{--ink:#264c31;--cream:#fff2c6;--gold:#ffd04e;--green:#2c7b45;--coral:#ef8b73;--font:Jua,'Malgun Gothic',sans-serif}
*{box-sizing:border-box;scrollbar-width:none}*::-webkit-scrollbar{display:none}html,body{margin:0;width:100%;height:100%;color:var(--ink);font-family:var(--font);background:#0a352c;font-size:16px}body{height:100dvh;overflow:hidden}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-family:var(--font)}button:disabled{cursor:default;filter:saturate(.6);opacity:.58}button:active:not(:disabled){transform:translateY(3px) scale(.98)}button:focus-visible,input:focus-visible{outline:3px solid #fff6a7;outline-offset:2px}b,strong{font-weight:400}small{font-size:12px}.ambient{position:fixed;inset:-20px;background:linear-gradient(#143e2a55,#001c20a8),url('./assets/opening-jungle.png') center/cover;filter:blur(13px)}
#game{position:relative;width:min(100vw,520px);height:100dvh;max-height:1000px;margin:auto;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;background:#235e39 url('./assets/lobby-day.png') center/100% 100%;box-shadow:0 0 80px #041c1a,0 0 0 2px #9ab66a66}#game:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 65% 20%,#fff9af24,transparent 70%);animation:canopyLight 8s infinite alternate}#game[data-route=battle],#game[data-route=placement],#game[data-route=tutorial],#game[data-route=journey],#game[data-route=result]{background-image:url('./assets/opening-jungle.png')}
#topbar{position:relative;z-index:10;min-height:68px;padding:max(9px,env(safe-area-inset-top)) 12px 3px;display:flex;gap:5px;align-items:center;justify-content:space-between;flex-shrink:0}#screen{position:relative;z-index:3;flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px 8px;overflow:hidden}.scene-canvas{display:block;width:100%;height:100%;object-fit:contain}.icon{width:28px;height:28px;display:inline-block;object-fit:contain;vertical-align:middle;flex-shrink:0;filter:drop-shadow(0 1px 1px #503e2850)}.icon.sm{width:20px;height:20px}.icon.big{width:40px;height:40px}.center{text-align:center}.subtle{font-size:12px;color:#728157}.row{display:flex;gap:8px;align-items:center}.row>*{flex:1;min-width:0}.small{min-height:38px!important;font-size:14px!important;padding:6px 15px!important}
.primary,.secondary,.coral{position:relative;isolation:isolate;background:transparent url('./assets/ui-v2/gold-button.png') center/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;gap:7px;min-height:70px;padding:15px 32px 19px;font-size:24px;line-height:1.1;text-align:center;filter:drop-shadow(0 4px 3px #28452460);flex-shrink:0;text-shadow:0 1px #fff6a7;transition:filter .15s,transform .12s;color:#24472d}.secondary{background-image:url('./assets/ui-v2/cream-button.png');min-height:55px;padding:10px 23px 14px;font-size:17px}.coral{background-image:url('./assets/ui-v2/coral-button.png');font-size:18px;min-height:56px;padding:11px 28px 15px}.primary:hover:not(:disabled){filter:drop-shadow(0 0 10px #ffed8766) brightness(1.05)}.primary .icon,.secondary .icon{width:30px;height:30px}.button-sheen{position:absolute;inset:15% 8% 25%;border-radius:80px;overflow:hidden;pointer-events:none}.button-sheen:before{content:'';position:absolute;left:-90%;top:-40%;height:180%;width:40%;background:linear-gradient(90deg,transparent,#fffbd9aa,transparent);transform:skew(-25deg);animation:buttonShine 4.4s infinite}
.panel{border:21px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 21px 21px 27px 21px stretch;padding:5px 7px 10px;background:none;filter:drop-shadow(0 4px 2px #173f2840)}.view-heading{position:relative;height:61px;width:100%;flex-shrink:0;display:grid;place-items:center;margin:0 auto 3px;z-index:5}.view-heading>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 3px 1px #32572b55)}.view-heading h1{position:relative;font-size:25px;margin:0 0 7px;text-align:center;text-shadow:0 1px #fff9dc;line-height:1.1}.brand-logo{align-self:center;position:relative;width:61%;max-width:300px;z-index:3;flex-shrink:0;filter:drop-shadow(0 3px #13402966)}.brand-logo img{display:block;width:100%;height:auto}.brand-logo.compact{width:45%;margin:0 auto 7px}.player-badge{display:flex;align-items:center;text-align:left;padding:0 12px 0 0;gap:2px;position:relative;min-width:160px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;height:55px;flex-shrink:1}.avatar-frame{width:58px;height:58px;position:relative;flex-shrink:0;display:grid;place-items:center;background:radial-gradient(#ffe287,#edc364 60%,transparent 62%);border-radius:50%;filter:drop-shadow(0 2px #98663380)}.avatar-frame img{width:56px;height:56px;object-fit:contain}.player-badge b{display:block;font-size:16px;white-space:nowrap;max-width:115px;overflow:hidden;text-overflow:ellipsis}.player-badge small{display:block;font-size:11px;color:#576746;white-space:nowrap}.player-badge i{font-style:normal;background:#2b6843;color:#fff2b8;padding:0 5px;border-radius:7px;margin-right:2px}.wallet{display:flex;align-items:center;gap:3px}.resource-pill{height:39px;min-width:70px;display:flex;align-items:center;justify-content:center;gap:1px;padding:7px 12px 10px 8px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;font-size:16px;position:relative}.resource-pill .icon{width:26px;height:26px;margin-left:-5px}.resource-pill.tickets{min-width:53px}.hud-corner{width:40px;height:43px;padding:5px;background:linear-gradient(#a9763b,#70472b);box-shadow:inset 0 0 0 2px #ffe4a5,inset 0 0 0 4px #9e703c,0 3px #4c3422;border:2px solid #81582e;border-radius:13px;display:grid;place-items:center;flex-shrink:0}.hud-corner .icon{width:31px;height:31px}.match-logo{width:170px;height:66px;object-fit:contain}.hud-seal{width:72px;display:flex;flex-direction:column;align-items:center;font-size:10px;color:#fff2bb;text-shadow:0 2px #28532f}.hud-seal .icon{width:31px;height:30px}
#navigation{position:relative;z-index:14;display:flex;flex-shrink:0;min-height:77px;padding:3px 6px max(8px,env(safe-area-inset-bottom));background:transparent url('./assets/ui-v2/nav-bar.png') center/100% 100%;filter:drop-shadow(0 -3px 2px #153b2870)}#navigation:empty{display:none}#navigation button{position:relative;display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:0;background:none;color:#fff0c1;font-size:14px;text-shadow:0 2px #664329;border-radius:16px;padding:0 2px}.nav-aura{position:absolute;inset:2px 4px 0;z-index:-1;border-radius:18px;background:transparent}#navigation .icon{width:42px;height:41px;transition:transform .2s;filter:drop-shadow(0 2px #583d2a66)}#navigation button.active{color:#234d33;text-shadow:0 1px #fff5bb}#navigation button.active .nav-aura{background:radial-gradient(ellipse,#fff8b3,#ffdc5b 60%,#e8b437);border:2px solid #fff5b7;box-shadow:0 0 14px #fff680,0 0 0 1px #d5a43c}#navigation button.active .icon{transform:translateY(-5px) scale(1.11)}#navigation b{font-weight:400;position:relative;margin-top:-3px}
.lobby-brand{display:flex;align-items:flex-start;justify-content:center;height:111px;margin-top:0;flex-shrink:0}.lobby-brand .brand-logo{width:69%;max-width:330px}.lobby-stage{position:relative;flex:1;min-height:270px;margin:-5px -12px 0}.lobby-stage canvas{position:absolute;inset:0;z-index:2}.tier-badge{position:absolute;z-index:4;top:0;left:16px;width:105px;text-align:center;color:#ffe5a1;text-shadow:0 2px #36502b;border:3px solid #d3af53;background:radial-gradient(#31684d,#154a32);border-radius:22px 22px 46px 46px;padding:5px 8px 15px;box-shadow:inset 0 0 0 2px #6b8a47,0 4px 4px #233b2c66}.tier-badge .icon{width:52px;height:39px;display:block;margin:0 auto}.tier-badge b{font-size:15px;display:block}.tier-badge span{display:block;font-size:18px;margin-top:2px}.lobby-side{position:absolute;right:12px;top:4px;z-index:5;display:flex;flex-direction:column;gap:9px}.lobby-side button{width:44px;height:44px;background:linear-gradient(#527847,#214d35);border:2px solid #d1bd7b;border-radius:13px;box-shadow:inset 0 0 0 2px #365837,0 3px #26442c}.lobby-side .icon{width:33px;height:33px}.stage-whisper{position:absolute;z-index:4;bottom:0;right:19px;color:#fff3bc;text-shadow:0 2px #234e32;font-size:13px;transform:rotate(-3deg)}.lobby-actions{position:relative;z-index:5;display:flex;flex-direction:column;gap:5px;margin:0 13px 7px}.journey-mini{background:none;border:18px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 18px 18px 23px 18px stretch;padding:0 0 4px;min-height:76px;display:flex;text-align:left;align-items:center;gap:5px;width:100%;color:#294d32;filter:drop-shadow(0 3px #42613360)}.journey-mini>.icon{width:41px;height:41px;margin:-5px 0 -5px -4px}.journey-mini>div{flex:1;min-width:0}.journey-caption{display:flex;justify-content:space-between;gap:3px;align-items:center;margin-bottom:5px;font-size:15px}.journey-caption em{font-style:normal;font-size:13px}.journey-caption small{font-size:11px}.bar{height:15px;border:2px solid #9e7b46;background:#bc9c63;border-radius:20px;box-shadow:inset 0 2px 2px #5c482d80;overflow:hidden}.bar>span{display:block;height:100%;border-radius:12px;background:linear-gradient(#ffd4a1,#f28a64 40%,#db6a50);box-shadow:inset 0 2px #ffe5af;transition:width .7s}.mode-ribbon{align-self:center;display:flex;align-items:center;justify-content:center;margin:-4px 0 -9px;z-index:3;background:#ee8c64;color:#fff4c7;border:2px solid #fff2b3;padding:3px 19px;border-radius:18px;font-size:14px;box-shadow:0 2px #7c5736}.mode-ribbon .icon{width:20px;height:20px}.play-cta{min-height:94px;font-size:38px;letter-spacing:-1px;padding-top:12px;padding-bottom:23px}.lobby-actions .row>.secondary{min-height:60px;font-size:17px;padding-left:12px;padding-right:12px}.lobby-actions .row .icon{width:34px;height:32px}
.tabs{display:flex;align-items:center;gap:5px;flex-shrink:0;margin:2px 1px 7px}.tabs button{flex:1;min-width:0;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;padding:7px 5px 10px;min-height:37px;font-size:14px;white-space:nowrap}.tabs button.active{background-image:url('./assets/ui-v2/coral-button.png');color:#fff8d3;text-shadow:0 1px #a25a36}.collection-hero{position:relative;display:flex;align-items:center;flex:1;min-height:180px;max-height:285px;gap:2px}.collection-hero canvas{position:relative;z-index:3;width:57%;height:100%;min-height:0}.collection-stage-floor{position:absolute;left:1%;bottom:5%;width:52%;height:22%;background:radial-gradient(ellipse,#e7bf69,#b68b47 70%,transparent 72%);border-radius:50%;box-shadow:0 8px 0 #665d3666}.character-info{width:44%;padding:0 3px 7px;text-align:center;border-width:18px;border-image-width:18px 18px 23px}.character-info h2{font-size:30px;margin:0 0 5px}.role{display:inline-block;background:#eb8058;border:1px solid #d6794e;border-radius:20px;padding:3px 10px;color:#fff9dd;font-size:13px;line-height:1.2;box-shadow:inset 0 1px #ffa977}.character-info p{font-size:14px;line-height:1.5;margin:7px 0 5px}.rank-token{display:flex;align-items:center;gap:3px;justify-content:center;padding:5px 0;color:#44633a;font-size:14px;border-top:1px solid #c4b57c}.rank-token .icon{width:25px;height:25px}.character-info .small{min-height:33px!important;padding:4px 14px 8px!important;font-size:13px!important;width:100%}.motion-gallery{position:relative;z-index:4;border:19px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 19px 19px 23px 19px stretch;padding:0 0 8px;flex-shrink:0;height:147px;margin-top:4px}.motion-gallery-tabs{display:flex;justify-content:space-between;align-items:center;margin:-4px 3px 4px;font-size:15px}.motion-gallery-tabs span{font-size:12px;color:#84915a}.motion-buttons{display:flex;gap:7px;height:88px}.motion-buttons button{flex:1;position:relative;border:1px solid #c9ad69;background:linear-gradient(#fff6d5,#f1df9e);border-radius:14px;padding:0 2px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#3a5735;overflow:hidden}.motion-buttons img{width:64px;height:64px;object-fit:contain;margin-top:-4px}.motion-buttons span{font-size:13px;margin-top:-3px;white-space:nowrap}.roster{display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:1fr;gap:6px;margin:6px 0 0;flex-shrink:0;min-height:168px;padding:0 0 9px;border-width:19px;border-image-width:19px 19px 24px}.roster button{position:relative;padding:2px 2px 3px;border:1px solid #c3a766;border-radius:13px;background:linear-gradient(#ffefd3,#eddda9);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:visible;box-shadow:inset 0 1px #fff9de}.roster img{width:100%;height:55px;object-fit:contain;z-index:2}.roster b{font-size:12px;z-index:2;white-space:nowrap}.roster button.selected{border:2px solid #dca633;background:linear-gradient(#ffe68c,#ffde6c);box-shadow:0 0 0 2px #fff4ad,0 0 12px #ffdf6699}.roster button.locked img{filter:saturate(.5);opacity:.8}.roster .lock{position:absolute;right:1px;top:0;border-radius:6px;padding:1px 3px;background:#7b8058;color:#fff3cf;font-size:9px;z-index:3}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-shrink:0;height:48px}.collection-footer>span{color:#fff5c4;text-shadow:0 1px #1b5b32;font-size:14px;white-space:nowrap}.collection-footer .icon{width:29px;height:27px}.collection-footer>.primary{min-height:45px!important;font-size:15px!important;flex:1;max-width:230px;padding-bottom:10px!important}
.board-top{display:flex;align-items:center;gap:5px;flex-shrink:0;min-height:60px;margin:-2px 2px 4px}.opponent-hud{position:relative;display:flex;align-items:center;gap:4px;height:55px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;padding-right:14px;flex:1;min-width:0}.opponent-avatar{width:54px;height:54px;flex-shrink:0;background:radial-gradient(#fff0b6,#d5b867 62%,transparent 63%);border-radius:50%;display:grid;place-items:center}.opponent-avatar img{width:52px;height:52px;object-fit:contain}.opponent-hud b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.opponent-hud small{display:block;font-size:11px;color:#7c8251;margin-top:1px}.game-clock{width:98px;height:51px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;display:flex;align-items:center;justify-content:center;gap:2px;padding-bottom:6px;font-size:24px;color:#5c4b2e;flex-shrink:0}.game-clock .icon{width:34px;height:34px}.game-clock.danger{color:#af4a3e;animation:timerDanger .8s ease-in-out infinite}.board-wrap{position:relative;width:100%;min-height:0;flex:0 1 auto;display:flex;align-items:flex-start;justify-content:center;filter:drop-shadow(0 8px 7px #17443080)}.board-wrap canvas{width:100%;height:auto;aspect-ratio:500/590;max-height:100%;object-fit:contain;display:block;touch-action:none;outline:none}.battle-footer{position:relative;z-index:5;margin-top:auto;flex-shrink:0}.turn-badge{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;height:68px;margin:0 15px 0;font-size:22px;padding:4px 20px 10px;color:#25613a}.turn-badge img{width:66px;height:66px;object-fit:contain;margin-left:-32px}.turn-badge.enemy{background-image:url('./assets/ui-v2/coral-button.png');color:#fff1be;text-shadow:0 2px #ac6040}.turn-badge small{position:absolute;bottom:8px;font-size:11px}.board-controls{display:flex;align-items:center;gap:1px;margin:0 -4px 2px}.board-controls .secondary{flex:1;min-width:0;min-height:63px;padding:8px 6px 14px;gap:0;font-size:15px}.board-controls .icon{width:35px;height:35px;margin-left:-3px}.board-controls span{white-space:nowrap}.bluffs{display:flex;gap:3px;padding:6px 5px 8px;background:#16482de8;border:2px solid #bdd181;border-radius:19px;margin-top:-1px;z-index:8}.bluffs button{flex:1;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;padding:8px 3px 12px;font-size:12px;min-height:40px;white-space:nowrap}.bluffs button.active{background-image:url('./assets/ui-v2/gold-button.png')}.placement-bottom{margin-top:auto;flex-shrink:0;z-index:5}.placement-coach{text-align:center;color:#fff8d5;font-size:17px;text-shadow:0 2px #28522d;padding:8px 0 3px}.layout-buttons{display:flex;gap:0}.layout-buttons>button{flex:1;padding:6px 5px 11px!important;gap:1px;min-height:48px!important;font-size:14px!important}.layout-buttons .icon{width:25px;height:25px}.placement-bottom>.primary{width:92%;margin:1px auto 2px;min-height:68px;font-size:24px}.tutorial-card{position:relative;margin:4px 2px 0;border:21px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 21px 21px 27px 21px stretch;min-height:150px;padding:0 0 4px 63px;flex-shrink:0;filter:drop-shadow(0 5px 3px #274a3270)}#tutorial-panel{margin-top:auto;flex-shrink:0;padding-top:3px}.coach-lion{position:absolute;left:-19px;top:4px;width:86px;height:86px;object-fit:contain;transform:rotate(-4deg)}.coach-copy{position:relative;padding:3px 0}.coach-label{font-size:11px;color:#a2874d;display:block;margin-bottom:3px}.coach-copy h3{font-size:20px;margin:0 0 5px;line-height:1.1}.coach-copy p{font-size:14px;line-height:1.5;margin:0}.tutorial-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;margin:8px 0 -3px -65px}.tutorial-actions .small{min-height:34px!important;padding:4px 12px 8px!important;font-size:13px!important}.tutorial-dots{display:flex;gap:4px;flex:1;padding-left:4px}.tutorial-dots i{width:7px;height:7px;background:#d8c590;border:1px solid #a58b55;border-radius:50%;box-shadow:inset 0 1px #fff4c4}.tutorial-dots i.active{background:#e88e55;box-shadow:0 0 5px #e6a44b}.tutorial-gesture{width:100%;margin:6px 0 0 -30px;font-size:14px!important}.in-combat .turn-badge{animation:combatBanner .5s ease-in-out infinite alternate}
.versus-view{position:absolute;inset:0;overflow:hidden;background:#244e38 url('./assets/opening-jungle.png') center/cover}.vs-half{position:absolute;inset:-10%;transform:rotate(-15deg);z-index:0}.vs-green{background:repeating-linear-gradient(165deg,#7cd697b8 0 4px,#3d9b7355 5px 19px,#b8f3aa55 20px 24px);clip-path:polygon(0 54%,100% 54%,100% 100%,0 100%)}.vs-coral{background:repeating-linear-gradient(165deg,#ff926b99 0 4px,#eb5c5550 5px 19px,#ffbc8c44 20px 24px);clip-path:polygon(0 0,100% 0,100% 54%,0 54%)}.vs-slash{position:absolute;z-index:2;left:-30%;right:-30%;top:49%;height:11px;transform:rotate(-17deg);background:#fff5a4;box-shadow:0 0 6px #fff6b4,0 0 25px #ffd762,0 0 0 3px #b9823a}.vs-brand{position:absolute;z-index:7;width:54%;left:23%;top:4%;filter:drop-shadow(0 4px #20532b77)}.versus-view canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:3}.vs-emblem{position:absolute;z-index:6;left:26%;top:38%;width:48%;height:24%;object-fit:contain;filter:drop-shadow(0 0 20px #ffd566);animation:vsSmash .8s .5s cubic-bezier(.18,1.5,.3,1) both}.vs-name{position:absolute;z-index:5;width:54%;min-height:78px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;padding:18px 20px 22px;text-align:center;filter:drop-shadow(0 4px #764b3055);animation:slideInRight .75s .2s both}.vs-name.enemy{right:3%;top:15%}.vs-name.own{left:3%;bottom:11%;animation-name:slideInLeft}.vs-name b{display:block;font-size:25px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vs-name span{display:flex;align-items:center;justify-content:center;font-size:14px;gap:2px}.vs-name .icon{width:27px;height:27px}.vs-caption{position:absolute;bottom:3%;left:0;right:0;z-index:7;text-align:center;color:#fff4be;text-shadow:0 3px #245e35;font-size:20px}.versus-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}.versus-dots i{width:8px;height:8px;background:#fff1b1;border-radius:50%;box-shadow:0 0 7px #ffdf61;animation:dotBeat .8s infinite}.versus-dots i:nth-child(2){animation-delay:.2s}.versus-dots i:nth-child(3){animation-delay:.4s}
.invite-stage{position:relative;flex:1;min-height:280px;margin:-10px -12px 0;isolation:isolate;overflow:hidden}.invite-stage canvas{position:absolute;inset:0;z-index:5}.pod-art{position:absolute;z-index:3;left:24%;width:52%;height:78%;top:4%;object-fit:contain;filter:drop-shadow(0 12px 10px #184d3288);transition:opacity .15s,transform .2s}.pod-art.closed{animation:podBreathe 2.1s ease-in-out infinite}.pod-art.opened{opacity:0;left:14%;width:72%;top:25%;height:64%}.invite-rays{position:absolute;inset:-25%;z-index:1;background:repeating-conic-gradient(from 0deg at 50% 50%,#fff4aa44 0 9deg,transparent 9deg 24deg);opacity:0;transition:opacity .15s;animation:rays 12s linear infinite}.summon-rings{position:absolute;z-index:2;left:21%;right:21%;top:22%;bottom:24%;border:3px solid #fbeb91aa;border-radius:50%;box-shadow:0 0 35px #ffed7577,inset 0 0 25px #ffed7577;opacity:0;transform:scale(.7)}.summon-caption{position:absolute;bottom:2%;left:8%;right:8%;text-align:center;z-index:7;color:#fff5c0;text-shadow:0 2px #2e6338;font-size:20px}.summon-caption strong{display:block;font-size:32px;line-height:1}.summon-caption span{font-size:14px;display:block;margin-top:3px}.charging{background:radial-gradient(ellipse,#ffe7a322,#072f2577 70%)}.charging .closed{animation:podShake .13s infinite alternate}.charging .summon-rings{opacity:1;animation:chargeRing .6s infinite}.charging .invite-rays{opacity:.6}.invite-stage[data-phase=burst] .closed{transform:scale(1.3);filter:brightness(3);opacity:0}.revealed .closed{opacity:0}.revealed .opened{opacity:1;animation:podOpen .6s ease-out both}.revealed .invite-rays{opacity:.9}.recruit-info{flex-shrink:0;text-align:center;min-height:85px;margin:0 8px 4px;padding:0 2px 10px}.recruit-info b{display:block;font-size:17px;line-height:1.3}.recruit-info span{display:block;font-size:12px;color:#7e8757;line-height:1.4;margin-top:3px}.invite-cta{display:flex;flex-direction:column;gap:0;margin:0 10px 0;flex-shrink:0}.invite-cta .primary{min-height:79px;font-size:26px}.invite-cta .secondary{min-height:55px;font-size:18px}.probability{align-self:center;font-size:12px;background:#123e29bb;color:#f4efb8;border-radius:14px;padding:4px 14px;margin:0 0 3px;text-decoration:none}
.journey-status{flex-shrink:0;margin:0 5px;text-align:center}.journey-status .journey-mini{min-height:68px}.journey-status>span{font-size:13px;color:#fff1bb;text-shadow:0 2px #275a35;display:block;margin:-2px 0 3px}.journey-map{position:relative;flex:1;min-height:285px;padding:9px 0 0;display:flex;flex-direction:column;justify-content:space-around;background:radial-gradient(ellipse at 50% 90%,#112f2410,transparent)}.journey-map>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.journey-map>svg path{fill:none;stroke:#fff0a8;stroke-width:12;stroke-dasharray:8 10;stroke-linecap:round;filter:drop-shadow(0 3px 0 #3e5c32)}.level-node{position:relative;display:flex;align-items:center;gap:1px;margin-left:calc(var(--side)*29px);margin-right:calc((1 - var(--side))*29px);min-height:71px;padding:7px 12px 13px 5px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;filter:drop-shadow(0 5px 3px #2b523577);z-index:2;flex-shrink:1}.level-number{display:grid;place-items:center;flex-shrink:0;width:50px;height:50px;background:radial-gradient(#fff0a1,#e3b642 65%,#a98031 68%,#fff1a9 73%,#b38537 77%);border-radius:50%;color:#77552b;font-size:25px;text-shadow:0 1px #fff1ab;box-shadow:0 2px #8d693f55;margin-right:3px}.node-reward{flex:1;display:flex;align-items:center;min-width:0;gap:2px}.node-reward>.icon{width:39px;height:39px}.node-reward b{font-size:15px;display:block;white-space:nowrap}.node-reward small{font-size:11px;display:block;color:#7b8054;margin-top:2px;white-space:nowrap}.level-node>.small{padding:3px 10px 8px!important;min-height:35px!important;font-size:14px!important;margin-right:-2px}.level-node.current{filter:drop-shadow(0 0 9px #fff793);background-image:url('./assets/ui-v2/gold-button.png')}.level-node.locked{filter:saturate(.5);opacity:.82}.node-check>.icon{width:34px;height:34px}.reward-ready{animation:rewardBounce 1.4s ease-in-out infinite}.page-controls{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:5px;flex-shrink:0;margin:5px 6px;color:#fff2be;text-shadow:0 1px #2b5532;font-size:13px}.page-controls>.small{width:34%;max-width:130px;text-shadow:0 1px #fff4c5}.rank-season{text-align:center;color:#fff5cc;font-size:14px;text-shadow:0 2px #1c5731;flex-shrink:0;margin:0 0 4px}.rank-season .icon{width:28px;height:28px}.podium{position:relative;flex:1;min-height:150px;max-height:240px;margin-top:-5px}.podium-name{position:absolute;bottom:0;display:flex;align-items:center;flex-direction:column;width:29%;font-size:12px;color:#fff7c4;text-shadow:0 2px #2e6634}.podium-name b{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.podium-name small{font-size:11px}.podium-0{left:35.5%;bottom:15%}.podium-1{left:4%;bottom:0}.podium-2{right:4%;bottom:0}.ranking-list{display:flex;flex-direction:column;gap:1px;flex:0 1 auto;min-height:0;margin:4px 1px;overflow:hidden}.ranking-row{display:flex;align-items:center;gap:5px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;min-height:65px;padding:7px 17px 13px 15px;filter:drop-shadow(0 3px #264f3055)}.ranking-row.self{background-image:url('./assets/ui-v2/gold-button.png')}.ranking-row .position{width:23px;flex-shrink:0;font-size:22px;color:#846234}.rank-avatar{width:43px;height:43px;flex-shrink:0;background:radial-gradient(#ffde79,#dec376 65%,transparent 68%);border-radius:50%}.rank-avatar img{width:100%;height:100%;object-fit:contain}.ranking-row>span:nth-of-type(2){flex:1;min-width:0}.ranking-row b{font-size:15px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-row small{display:block;font-size:11px;color:#7b8458}.ranking-row strong{display:flex;align-items:center;font-size:17px;gap:1px;white-space:nowrap;margin-left:auto}.ranking-row strong .icon{width:26px;height:26px}.rank-my{display:flex;justify-content:space-between;background:#195436ed;border:2px solid #dfc77a;border-radius:17px;padding:9px 14px;color:#fff0b8;font-size:14px;flex-shrink:0;margin:4px 6px 3px;box-shadow:0 3px #234e3066}.rank-content{flex:1;min-height:0;display:flex;flex-direction:column}
.waiting-stage{position:relative;flex:1;min-height:240px;margin:0 -10px}.waiting-bubble{position:absolute;top:7%;right:7%;z-index:4;color:#425e35;background:#fff4ce;border:2px solid #b99755;border-radius:20px 20px 20px 3px;padding:9px 16px;font-size:17px;transform:rotate(3deg)}.invite-pass{text-align:center;margin:0 7px}.pass-label{font-size:20px;color:#506c3e}.friend-code{font-size:33px;letter-spacing:4px;color:#8c6338;border:2px dashed #c3ac69;border-radius:15px;background:#fff9dc;margin:9px 9px 3px;padding:9px 4px;user-select:all}.invite-pass .primary{width:100%;font-size:22px;min-height:68px}.invite-pass small{display:block;color:#7b8053;font-size:12px}.back-lobby{margin:0 20px 5px}.result-banner{height:160px;position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:8px 0 -3px;animation:vsSmash .8s cubic-bezier(.2,1.35,.4,1) both}.result-banner img{width:70%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #335a2b66)}.result-banner h1{font-size:57px;color:#ffe47f;-webkit-text-stroke:5px #305b34;paint-order:stroke fill;text-shadow:0 4px #6f8137;margin:0}.result-reason{align-self:center;font-size:17px;background:transparent url('./assets/ui-v2/cream-button.png') center/100% 100%;padding:9px 27px 14px;text-align:center;flex-shrink:0;min-height:45px;max-width:100%;margin-top:-4px}.result-stage{position:relative;flex:1;min-height:200px;max-height:360px;margin:-4px -9px 0}.result-summary{flex-shrink:0;min-height:163px;margin:0 3px;padding:0 2px 6px}.result-player{display:flex;align-items:center;gap:5px;border-bottom:1px solid #c7b77c;padding:0 1px 5px;margin-top:-5px}.result-player>img{width:47px;height:47px;object-fit:contain}.result-player>span{flex:1}.result-player b{display:block;font-size:17px}.result-player small{display:block;font-size:12px}.result-player strong{display:flex;align-items:center;gap:2px;font-size:21px}.result-player strong .icon{width:28px;height:28px}.result-player i{font-style:normal;background:#b6d879;padding:3px 7px;border-radius:10px;font-size:14px}.rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:5px 0 -3px}.reward{display:grid;grid-template-columns:40px 1fr;align-items:center;justify-items:center;padding:6px 3px;background:linear-gradient(#fff3bb,#f4d77c);border:1px solid #d3b769;border-radius:14px;box-shadow:inset 0 1px #fff9d5;animation:rewardAppear .5s var(--delay) both}.reward img{width:41px;height:45px;object-fit:contain;grid-row:span 2}.reward span{font-size:11px;color:#7f783f;white-space:nowrap}.reward b{font-size:22px;color:#e87d48;text-shadow:0 1px #fff4bc}.result-actions{flex-shrink:0;margin:0 15px 6px}.result-actions .play-cta{width:100%;font-size:34px;min-height:86px}.result-actions .row{gap:0}.result-actions .secondary{min-height:54px;font-size:16px;padding:8px 12px 14px}.result-actions .secondary .icon{width:27px;height:27px}.result-loss:after{content:'';position:absolute;inset:0;background:linear-gradient(#26365c44,#23474210);pointer-events:none;z-index:1}.result-loss .result-banner{height:140px}.result-loss .result-reason{font-size:15px}
.modal-backdrop{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:18px;background:#0b3025bd;backdrop-filter:blur(5px)}.modal{position:relative;isolation:isolate;width:100%;max-height:95%;overflow:auto;border:28px solid transparent;border-image:url('./assets/ui-v2/panel.png') 70 70 90 70 fill / 28px 28px 36px 28px stretch;padding:7px 4px 14px;filter:drop-shadow(0 8px 20px #082e22);color:#3b5d36}.modal>h2{font-size:25px;margin:4px 0 15px;text-align:center}.modal p{font-size:15px;line-height:1.6}.modal .close{position:absolute;right:-12px;top:-17px;width:31px;height:31px;display:grid;place-items:center;background:radial-gradient(#fff7cd,#f3d995);border:2px solid #bb9759;border-radius:50%;font-size:23px;line-height:1;z-index:12;box-shadow:0 2px #88633a55}.modal>.primary,.modal>.secondary{width:100%;margin:3px 0;min-height:59px;font-size:21px}.modal input[type=text]{width:100%;font-family:var(--font);font-size:19px;color:#45623b;background:#fffbdd;border:3px solid #c5a365;border-radius:20px;padding:13px 16px;box-shadow:inset 0 3px #9b7c3c22}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-size:15px;border-bottom:1px solid #dac58e}.setting-row input[type=range]{width:46%;accent-color:#6eaa41;height:24px}.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:#5e9b3d}.modal .subtle{font-size:12px;line-height:1.6}.detail-profile{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:-12px}.detail-profile>img{width:120px;height:120px;object-fit:contain}.detail-profile h2{font-size:31px;margin:0 0 5px}.character-modal>h2{font-size:17px;margin:0 0 9px;color:#85925e}.info-tabs{margin-top:-1px}.info-page{min-height:225px;padding:4px}.ability-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.ability-stats>div{display:flex;align-items:center;flex-direction:column;background:linear-gradient(#fff1ba,#e6d69e);border:1px solid #c3aa64;border-radius:16px;padding:7px 2px}.ability-stats .icon{width:39px;height:39px}.ability-stats strong{font-size:22px;line-height:1.2;white-space:nowrap}.ability-stats span{font-size:11px;margin-top:4px}.ability-card{padding:12px 13px;margin:9px 0;background:#f5e8b4;border:1px solid #cfb976;border-radius:15px;box-shadow:inset 0 2px #fff7d0}.ability-card h3{font-size:15px;margin:0 0 5px;color:#9c8249}.ability-card strong{font-size:21px}.ability-card p{font-size:15px;line-height:1.6;margin:5px 0}.mastery-medal{position:relative;height:100px;width:145px;margin:0 auto;display:grid;place-items:center}.mastery-medal>img{position:absolute;width:100%;height:100%;object-fit:contain}.mastery-medal strong{position:relative;font-size:49px;color:#936327;text-shadow:0 2px #ffef9a;margin-top:3px}.info-page h3.center{font-size:18px;margin:3px 0 9px}.info-page>.center{font-size:12px;margin:6px 0}.info-page>.bar{margin:0 15px}.reward-cinematic{padding-top:0;overflow:hidden;border-image-width:28px 28px 36px;min-height:540px}.reward-cinematic>h2{position:absolute;opacity:0;pointer-events:none}.reward-rays{position:absolute;inset:-80%;z-index:-1;pointer-events:none;background:repeating-conic-gradient(from 0deg,#ffde7433 0 10deg,transparent 10deg 25deg);animation:rays 13s linear infinite}.levelup-title{display:block;width:105%;height:135px;margin:-8px -2.5% -9px;object-fit:contain;filter:drop-shadow(0 4px #b69a3d55);animation:vsSmash .7s cubic-bezier(.2,1.35,.4,1) both}.levelup-medal{position:relative;height:156px;display:grid;place-items:center;margin:0 0 6px}.levelup-medal>img{position:absolute;width:80%;height:100%;object-fit:contain}.levelup-medal>strong{position:relative;font-size:78px;color:#98632b;text-shadow:0 3px #ffe484,-1px -1px #a57830;margin-top:6px;animation:medalPop .7s .2s both}.reward-copy{font-size:18px!important;text-align:center;margin:7px 0!important;color:#466d3b}.levelup-gifts{display:flex;gap:9px;align-items:center;justify-content:center;position:relative;z-index:3;margin:8px 0 1px}.levelup-gifts>div{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#ffefb1;border:2px solid #d2af58;border-radius:18px;padding:7px 3px 12px;animation:rewardAppear .6s .4s both}.levelup-gifts>div:nth-child(2){animation-delay:.55s}.levelup-gifts .icon{width:64px;height:62px}.levelup-gifts b{font-size:15px;white-space:nowrap}.reward-friends{display:flex;justify-content:space-between;height:54px;margin:-15px -23px -1px;position:relative;z-index:2;pointer-events:none}.reward-friends img{width:90px;height:90px;object-fit:contain;align-self:flex-end;animation:friendHop .8s infinite alternate}.reward-friends img:nth-child(2){animation-delay:.3s}.reward-cinematic>.primary{font-size:25px;min-height:70px}.claimed-rewards{display:flex;justify-content:center;gap:14px;margin:15px 0 10px}.claimed-rewards>div{display:flex;flex:1;flex-direction:column;align-items:center;max-width:150px;background:#ffe9a0;border:2px solid #cda956;border-radius:20px;padding:11px 6px;animation:rewardAppear .7s .2s both}.claimed-rewards .icon{width:100px;height:100px}.claimed-rewards strong{font-size:38px;color:#df8750}.claimed-rewards span{font-size:15px;color:#7d8251}
#effects{position:absolute;inset:0;z-index:30;pointer-events:none;overflow:hidden}.firefly{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff4aa;box-shadow:0 0 8px 2px #fbe76d77;animation:fireflyDrift var(--time) ease-in-out infinite alternate;opacity:.5}.confetti{position:absolute;top:-25px;width:9px;height:17px;animation:confettiFall 2.2s cubic-bezier(.18,.64,.46,1) forwards}.cinematic-flash{position:absolute;inset:0;background:#fff0b7;animation:cinematicFlash .3s ease-out forwards}.loading{margin:auto;color:#fff3c0;text-shadow:0 2px #1e5130;font-size:18px;text-align:center;line-height:1.7}.spinner{width:35px;height:35px;border:4px solid #a5cd78;border-top-color:#fff3a7;border-radius:50%;animation:spin 1s linear infinite;margin:15px auto}.empty{color:#fff2c1;font-size:17px;text-align:center;padding:25px 10px}.fade-in{animation:screenIn .25s ease-out}.light-note{font-size:12px;line-height:1.5;text-align:center;color:#fff2bc;text-shadow:0 1px #285830}#toast{position:absolute;z-index:90;bottom:95px;left:50%;width:max-content;max-width:91%;padding:11px 18px;background:#1b4b32ef;border:2px solid #f7de8d;border-radius:25px;box-shadow:0 4px 8px #123c2e80;color:#fff3c8;text-align:center;font-size:15px;opacity:0;transform:translate(-50%,15px);transition:.2s;pointer-events:none}#toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes canopyLight{to{opacity:.3;transform:translateX(-15px)}}@keyframes buttonShine{0%,45%{left:-90%}80%,100%{left:150%}}@keyframes timerDanger{50%{filter:drop-shadow(0 0 9px #f47e62)}}@keyframes combatBanner{to{filter:drop-shadow(0 0 5px #f4c56f88)}}@keyframes vsSmash{0%{opacity:0;transform:scale(2.2) rotate(-10deg)}60%{opacity:1;transform:scale(.95) rotate(-3deg)}100%{transform:scale(1) rotate(0)}}@keyframes slideInRight{from{transform:translateX(130%)}to{transform:translateX(0)}}@keyframes slideInLeft{from{transform:translateX(-130%)}to{transform:translateX(0)}}@keyframes dotBeat{50%{transform:scale(1.35);opacity:.5}}@keyframes rays{to{transform:rotate(360deg)}}@keyframes podBreathe{50%{transform:translateY(-6px) rotate(3deg)}}@keyframes podShake{to{transform:translateX(4px) rotate(-3deg) scale(1.04)}}@keyframes chargeRing{to{transform:scale(1.3);opacity:0}}@keyframes podOpen{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@keyframes rewardBounce{50%{transform:translateY(-3px);filter:brightness(1.15) drop-shadow(0 0 6px #ffea83)}}@keyframes rewardAppear{from{opacity:0;transform:translateY(18px) scale(.6)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes medalPop{from{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}@keyframes friendHop{to{transform:translateY(-7px) rotate(4deg)}}@keyframes confettiFall{to{top:110%;transform:translateX(var(--drift)) rotate(650deg)}}@keyframes cinematicFlash{from{opacity:.78}to{opacity:0}}@keyframes fireflyDrift{to{transform:translate(12px,-30px);opacity:.9}}@keyframes screenIn{from{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:650px){#game{max-height:calc(100dvh - 20px);margin:10px auto;border-radius:20px;border:2px solid #9fb86b77}}
@media(max-height:790px){#topbar{min-height:56px;padding:6px 9px 1px}.player-badge{height:47px;min-width:140px}.avatar-frame,.avatar-frame img{width:49px;height:49px}.player-badge b{font-size:14px;max-width:100px}.player-badge small{font-size:10px}.resource-pill{min-width:60px;height:34px;padding:5px 9px 8px;font-size:14px}.resource-pill.tickets{min-width:44px}.resource-pill .icon{width:23px;height:23px}.hud-corner{width:34px;height:37px;border-radius:11px}.hud-corner .icon{width:28px;height:28px}#screen{padding:0 8px 4px}#navigation{min-height:65px;padding-bottom:max(5px,env(safe-area-inset-bottom))}#navigation .icon{width:35px;height:34px}#navigation button{font-size:12px}#navigation b{margin-top:0}.view-heading{height:46px;margin-bottom:1px}.view-heading h1{font-size:21px;margin-bottom:5px}.lobby-brand{height:90px}.lobby-brand .brand-logo{width:64%}.lobby-stage{min-height:190px}.tier-badge{width:85px;padding:4px 5px 11px;left:12px;border-width:2px}.tier-badge .icon{width:41px;height:29px}.tier-badge b{font-size:12px}.tier-badge span{font-size:15px}.lobby-side button{width:38px;height:38px}.lobby-side .icon{width:29px;height:29px}.lobby-actions{gap:2px;margin:0 8px 2px}.journey-mini{min-height:65px;border-image-width:16px 16px 21px;border-width:16px}.journey-mini>.icon{width:33px;height:33px}.journey-caption{font-size:13px}.bar{height:12px}.mode-ribbon{font-size:12px;padding:1px 16px}.play-cta{min-height:77px;font-size:31px}.lobby-actions .row>.secondary{min-height:51px;font-size:15px}.lobby-actions .row .icon{width:29px;height:29px}.match-logo{width:145px;height:51px}.hud-seal{font-size:9px;width:61px}.hud-seal .icon{width:25px;height:25px}.board-top{min-height:48px;margin-bottom:1px}.opponent-hud{height:45px;padding-right:10px}.opponent-avatar,.opponent-avatar img{width:46px;height:46px}.opponent-hud b{font-size:15px}.opponent-hud small{font-size:10px}.game-clock{width:85px;height:43px;font-size:22px}.game-clock .icon{width:28px;height:28px}.turn-badge{height:55px;font-size:19px;margin:0 9px}.turn-badge img{width:55px;height:55px}.board-controls .secondary{min-height:51px;font-size:13px;padding-bottom:11px}.board-controls .icon{width:29px;height:29px}.placement-coach{font-size:14px;padding:4px 0 0}.layout-buttons>button{min-height:40px!important;font-size:12px!important;padding:4px 4px 8px!important}.layout-buttons .icon{width:23px;height:23px}.placement-bottom>.primary{min-height:58px;font-size:22px;margin:0 auto}.tutorial-card{min-height:122px;border-width:17px;border-image-width:17px 17px 22px;padding-left:54px;margin:1px 1px 0}.coach-lion{width:71px;height:71px;left:-15px;top:0}.coach-label{font-size:10px;margin:0 0 2px}.coach-copy h3{font-size:17px;margin-bottom:3px}.coach-copy p{font-size:12px;line-height:1.4}.tutorial-actions{margin-top:5px;margin-left:-55px}.tutorial-actions .small{min-height:29px!important;font-size:12px!important;padding:3px 10px 7px!important}.tutorial-dots{gap:3px}.tutorial-dots i{width:6px;height:6px}.tutorial-gesture{min-height:30px!important;font-size:12px!important;padding:4px 10px 8px!important;margin:4px 0 0 -24px}.tabs{margin-bottom:3px;gap:3px}.tabs button{min-height:31px;padding:5px 3px 8px;font-size:12px}.collection-hero{min-height:120px;max-height:190px}.character-info{border-width:14px;border-image-width:14px 14px 18px;padding:0 1px 3px}.character-info h2{font-size:25px;margin-bottom:3px}.character-info .role{font-size:10px;padding:2px 7px}.character-info p{display:none}.rank-token{font-size:12px;padding:3px 0;border-top:none}.rank-token .icon{width:20px;height:20px}.character-info .small{min-height:27px!important;font-size:11px!important;padding:3px 9px 6px!important}.motion-gallery{height:101px;border-width:15px;border-image-width:15px 15px 19px;padding:0 0 4px;margin-top:0}.motion-gallery-tabs{font-size:12px;margin:-4px 1px 2px}.motion-gallery-tabs span{font-size:10px}.motion-buttons{height:59px;gap:4px}.motion-buttons img{width:44px;height:44px;margin-top:-2px}.motion-buttons span{font-size:10px;margin-top:-2px}.motion-buttons button{border-radius:10px;padding-bottom:3px}.roster{height:137px;min-height:137px;gap:4px;border-width:15px;border-image-width:15px 15px 19px;margin-top:3px;padding:0 0 5px}.roster img{height:41px}.roster b{font-size:10px}.roster button{padding:1px;border-radius:10px}.roster .lock{font-size:8px}.collection-footer{height:39px;gap:0}.collection-footer>span{font-size:11px}.collection-footer>.primary{min-height:38px!important;font-size:13px!important;max-width:200px}.collection-footer .icon{width:24px;height:24px}.invite-stage{min-height:220px}.summon-caption{font-size:17px}.summon-caption strong{font-size:27px}.summon-caption span{font-size:12px}.recruit-info{min-height:70px;border-width:16px;border-image-width:16px 16px 21px;padding-bottom:6px}.recruit-info b{font-size:14px}.recruit-info span{font-size:11px}.invite-cta{margin:0 5px}.invite-cta .primary{min-height:65px;font-size:22px}.invite-cta .secondary{min-height:46px;font-size:16px}.probability{font-size:11px;padding:3px 12px}.journey-status .journey-mini{min-height:57px}.journey-status>span{font-size:11px}.journey-map{min-height:245px}.level-node{min-height:59px;padding:5px 9px 10px 4px;margin-left:calc(var(--side)*20px);margin-right:calc((1 - var(--side))*20px)}.level-number{width:41px;height:41px;font-size:21px}.node-reward>.icon{width:31px;height:31px}.node-reward b{font-size:12px}.node-reward small{font-size:9px}.level-node>.small{font-size:11px!important;padding:3px 8px 7px!important;min-height:29px!important}.page-controls{font-size:11px;margin:3px 4px}.page-controls>.small{min-height:31px!important;font-size:12px!important}.rank-season{font-size:12px;margin:0}.rank-season .icon{width:23px;height:23px}.podium{min-height:130px;max-height:175px}.podium-name b{font-size:10px}.podium-name small{font-size:9px}.ranking-row{min-height:52px;padding:5px 14px 10px 11px;gap:4px}.ranking-row .position{font-size:18px;width:20px}.rank-avatar{width:34px;height:34px}.ranking-row b{font-size:12px}.ranking-row small{font-size:9px}.ranking-row strong{font-size:14px}.ranking-row strong .icon{width:23px;height:23px}.rank-my{padding:7px 11px;font-size:12px;margin:2px 3px}.waiting-stage{min-height:190px}.invite-pass .primary{font-size:19px;min-height:58px}.friend-code{font-size:28px;padding:7px}.pass-label{font-size:17px}.waiting-bubble{font-size:14px}.result-banner{height:123px;margin-top:3px}.result-loss .result-banner{height:110px}.result-reason{font-size:14px;min-height:36px;padding:7px 20px 11px}.result-loss .result-reason{font-size:12px}.result-stage{min-height:175px;max-height:245px}.result-summary{min-height:132px;border-width:17px;border-image-width:17px 17px 22px;padding-bottom:5px}.result-player>img{width:39px;height:39px}.result-player b{font-size:14px}.result-player small{font-size:10px}.result-player strong{font-size:18px}.result-player i{font-size:12px;padding:2px 5px}.reward{grid-template-columns:31px 1fr;padding:4px 2px;border-radius:11px}.reward img{width:33px;height:37px}.reward span{font-size:9px}.reward b{font-size:18px}.result-actions{margin:0 10px 3px}.result-actions .play-cta{min-height:70px;font-size:29px}.result-actions .secondary{min-height:45px;font-size:13px;padding:6px 8px 11px}.modal{border-width:23px;border-image-width:23px 23px 30px;padding:3px 0 10px}.modal>h2{font-size:22px;margin-bottom:9px}.modal p{font-size:13px}.modal>.primary,.modal>.secondary{min-height:51px;font-size:18px}.setting-row{padding:9px 0;font-size:13px}.detail-profile>img{width:90px;height:90px}.detail-profile h2{font-size:26px}.info-page{min-height:202px}.ability-stats .icon{width:33px;height:33px}.ability-stats strong{font-size:18px}.ability-stats span{font-size:9px}.ability-card{padding:9px 11px}.ability-card strong{font-size:18px}.ability-card p{font-size:13px}.reward-cinematic{min-height:465px}.levelup-title{height:115px}.levelup-medal{height:128px}.levelup-medal strong{font-size:67px}.levelup-gifts .icon{width:53px;height:51px}.levelup-gifts b{font-size:12px}.reward-copy{font-size:16px!important}.reward-cinematic>.primary{font-size:22px;min-height:60px}.claimed-rewards .icon{width:80px;height:80px}.claimed-rewards strong{font-size:31px}.claimed-rewards span{font-size:13px}.vs-name{min-height:68px;padding:14px 17px 19px}.vs-name b{font-size:22px}.vs-name span{font-size:12px}.vs-caption{font-size:17px}.vs-name .icon{width:23px;height:23px}}
@media(max-height:690px){.lobby-brand{height:75px}.lobby-stage{min-height:150px}.lobby-actions .journey-mini{min-height:57px}.lobby-actions .play-cta{min-height:68px;font-size:28px}.lobby-actions .row>.secondary{min-height:45px;font-size:14px}.collection-hero{min-height:103px}.motion-gallery{height:91px}.motion-buttons{height:52px}.motion-buttons img{width:39px;height:39px}.roster{height:124px;min-height:124px}.roster img{height:35px}.view-heading{height:42px}.coach-copy h3{font-size:16px}.tutorial-card{min-height:110px}.coach-copy p{font-size:11px}.board-top{min-height:43px}.opponent-hud{height:42px}.opponent-avatar,.opponent-avatar img{width:42px;height:42px}.game-clock{height:40px}.turn-badge{height:49px;font-size:17px}.turn-badge img{width:48px;height:48px}.board-controls .secondary{min-height:46px;font-size:12px}.board-controls .icon{width:25px;height:25px}.placement-coach{font-size:12px}.layout-buttons>button{min-height:35px!important;font-size:11px!important}.placement-bottom>.primary{min-height:52px;font-size:20px}.result-stage{min-height:150px}.result-banner{height:107px}.result-loss .result-banner{height:97px}.result-summary{min-height:120px}.result-actions .play-cta{min-height:61px}.journey-map{min-height:225px}.level-node{min-height:54px}.rank-my{font-size:11px}.rank-season{font-size:11px}.podium{min-height:113px}.ranking-row{min-height:48px}.invite-stage{min-height:175px}.invite-cta .primary{min-height:59px}.recruit-info{min-height:66px}.invite-pass{border-width:18px;border-image-width:18px 18px 23px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* Match the approved portrait composition on tall displays. */
body{display:grid;place-items:center}
#game{height:min(100dvh,calc(100vw * 1.9),988px);margin:auto}
@media(min-width:650px){#game{height:min(calc(100dvh - 20px),988px);margin:10px auto}}
.modal .close{right:0;top:0}

.result-stage{max-height:none}
.claim-title{position:relative;display:grid;place-items:center;height:106px;margin:-2px -8px 5px}
.claim-title img{position:absolute;width:100%;height:100%;object-fit:fill}
.claim-title b{position:relative;font-size:27px;margin-bottom:7px;color:#4b6f36}
@media(max-height:790px){.claim-title{height:85px}.claim-title b{font-size:23px}}

.preview-battle-footer{padding:3px 7px 0}.preview-battle-footer .row{margin:0 8px}.preview-battle-footer .row>.primary{min-height:64px;font-size:23px}.preview-battle-footer .row>.secondary{min-height:55px;font-size:18px}@media(max-height:790px){.preview-battle-footer .row>.primary{min-height:54px;font-size:20px}.preview-battle-footer .row>.secondary{min-height:48px;font-size:16px}}

.vs-green{background:linear-gradient(145deg,#287e64c9,#8bd18ca0)}.vs-coral{background:linear-gradient(145deg,#cc6958bb,#ffc29c8c)}
.reward{position:relative}.level-marker{position:absolute;right:-4px;top:-10px;padding:3px 6px;background:#76b34e;border:1px solid #fff1ad;border-radius:10px;color:#fff7d0;font-size:10px;box-shadow:0 2px #5a7a31;animation:rewardBounce 1.2s infinite}
