.world-tree-view{max-width:1500px;min-width:0}.world-tree-heading{position:relative;display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.world-tree-heading h2{margin:0;font:800 34px var(--display)}.world-tree-heading>div>span{color:var(--muted);font-size:11px}.world-tree-heading-actions{display:flex;align-items:center;gap:10px}.world-tree-heading-actions .game-help{position:static;flex:0 0 35px;width:35px;height:35px}.world-tree-heading-actions>span{padding:8px 11px;border-left:2px solid #55c99a;background:#14251e;color:#9fd9bf;font-size:10px}.world-tree-lobby{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);min-height:650px;border:1px solid #33423e;background:#0c1514;overflow:hidden}.world-tree-intro{position:relative;min-height:650px;padding:70px 58px;display:flex;align-items:flex-end;background:linear-gradient(90deg,#07110ee6 0,#081411bf 62%,#08141133),linear-gradient(0deg,#07100dd9,#07100d11),url('/assets/adventure/forest.jpg') center/cover}.world-tree-intro>div:first-child{position:relative;z-index:2;max-width:510px}.world-tree-kicker{color:#65d6a7;font:800 10px var(--display)}.world-tree-intro h3{margin:12px 0 18px;color:#f2f7f2;font:900 56px/1.02 var(--display)}.world-tree-intro p{margin:0;max-width:460px;color:#a8b9b1;font-size:12px;line-height:1.8}.world-tree-sigil{position:absolute;right:35px;top:40px;width:110px;height:110px;border:1px solid #88e7be66;background:#092019a8;display:grid;place-content:center;justify-items:center;gap:6px;color:#70dfb0;box-shadow:inset 0 0 30px #47d59a18}.world-tree-sigil svg{width:45px;height:45px}.world-tree-sigil span{font:900 10px var(--display)}.world-tree-setup{padding:34px;background:#111a19;display:flex;flex-direction:column;gap:18px}.world-tree-mode,.world-tree-role{display:grid;grid-template-columns:1fr 1fr;gap:8px}.world-tree-mode button,.world-tree-role button{min-height:67px;border:1px solid #34423e;background:#141f1d;color:#aab8b2;padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left}.world-tree-mode button:hover,.world-tree-role button:hover{border-color:#5d8b77}.world-tree-mode button.active,.world-tree-role button.active{border-color:#62d4a3;background:#183025;color:#e9fff5;box-shadow:inset 0 -2px #62d4a3}.world-tree-mode svg,.world-tree-role svg{width:20px;flex:0 0 20px;color:#6bd6a9}.world-tree-mode span,.world-tree-role span{display:grid;gap:3px}.world-tree-mode b,.world-tree-role b{font-size:12px}.world-tree-mode small,.world-tree-role small{font-size:9px;color:#768b82}.world-tree-team-head{display:flex;align-items:end;justify-content:space-between;padding-top:7px;border-top:1px solid #2a3733}.world-tree-team-head div{display:grid;gap:4px}.world-tree-team-head small{color:#58c895;font:800 8px var(--display)}.world-tree-team-head b{font-size:15px}.world-tree-team-head strong{color:#7c9188;font-size:11px}.world-tree-team-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:330px;overflow:auto;padding-right:4px}.world-tree-pet{position:relative;min-width:0;height:116px;border:1px solid #34413e;background:#0d1514;color:#dce7e2;padding:4px;overflow:hidden}.world-tree-pet.selected{border-color:#ecd44c;box-shadow:inset 0 0 0 2px #ecd44c33}.world-tree-pet img{width:100%;height:76px;object-fit:contain}.world-tree-pet span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}.world-tree-pet b{position:absolute;right:6px;top:5px;color:var(--rarity);font-size:9px}.world-tree-pet i{position:absolute;left:6px;top:5px;width:16px;height:16px;border-radius:50%;background:#ebcf42;color:#142019;font:900 10px/16px var(--display);font-style:normal}.world-tree-start{height:46px;margin-top:auto}
.world-tree-battle{border:1px solid #34433e;background:#091210;min-width:0;overflow:hidden}.world-tree-battle-hud{height:78px;padding:0 24px;border-bottom:1px solid #31413b;background:#101a18;display:grid;grid-template-columns:1fr minmax(280px,420px) 1fr;align-items:center;gap:20px}.world-tree-battle-hud>div:first-child{display:grid;gap:4px}.world-tree-battle-hud small{color:#65d5a5;font-size:9px}.world-tree-battle-hud strong{font-size:18px}.world-tree-hp{display:grid;grid-template-columns:1fr auto;gap:5px 12px}.world-tree-hp>span{display:flex;align-items:center;gap:6px;color:#9bb0a7;font-size:10px}.world-tree-hp>span svg{width:16px;color:#64d6a7}.world-tree-hp>b{color:#eaf8f1;font-size:16px}.world-tree-hp>div{grid-column:1/-1;height:8px;border:1px solid #365047;background:#07100e;overflow:hidden}.world-tree-hp>div i{display:block;height:100%;background:#58ce97;transition:width .5s ease}.world-tree-battle-hud>button{justify-self:end}.world-tree-objective{min-height:38px;padding:8px 22px;display:flex;align-items:center;justify-content:center;gap:9px;border-bottom:1px solid #2a3934;background:#13201d;color:#a9bcb4;font-size:10px;line-height:1.5}.world-tree-objective svg{width:16px;height:16px;flex:0 0 16px;color:#e0c855}
.world-tree-field{position:relative;min-height:400px;padding:34px 252px 28px 24px;background:linear-gradient(90deg,#07110fd9,#07110f9c),url('/assets/adventure/forest.jpg') center 42%/cover;overflow:hidden}.world-tree-field:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 67%,#08110feb 84%)}.world-tree-canopy{position:absolute;z-index:2;right:210px;top:50%;transform:translateY(-50%);display:grid;justify-items:center;gap:5px;color:#73dfad;text-shadow:0 3px 10px #000}.world-tree-canopy svg{width:72px;height:72px;filter:drop-shadow(0 0 18px #55d89b66)}.world-tree-canopy span{font:900 8px var(--display)}.world-tree-routes{position:relative;z-index:3;display:grid;gap:15px;min-width:0}.world-tree-route{width:100%;min-width:0;min-height:94px;border:1px solid #34453f;border-left:3px solid var(--route-color);background:#0b1614dc;color:#dce8e3;padding:13px 14px;display:grid;grid-template-columns:122px minmax(160px,1fr) 72px;align-items:center;gap:14px;text-align:left;transition:border-color .18s,background .18s,transform .18s}.world-tree-route:hover{border-color:#6c887c;background:#10201cdc}.world-tree-route.active{border-color:var(--route-color);background:#13241fdc;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--route-color) 30%,transparent)}.world-tree-route-label{display:grid;gap:7px;min-width:0}.world-tree-route-label>span{display:flex;align-items:center;gap:7px}.world-tree-route-label b{font-size:12px}.world-tree-route-label em{padding:2px 5px;background:color-mix(in srgb,var(--pressure-color) 14%,#0c1513);color:var(--pressure-color);font:800 8px var(--display);font-style:normal}.world-tree-route-label small{color:#80968c;font-size:8px;white-space:nowrap}.world-tree-route-track{position:relative;height:42px}.world-tree-route-track:before{content:"";position:absolute;left:0;right:0;top:20px;height:4px;background:var(--route-color);opacity:.65}.world-tree-cell{position:absolute;top:13px;width:16px;height:16px;transform:translateX(-50%);border:3px solid var(--route-color);border-radius:50%;background:#10201c}.world-tree-cell.reached{background:var(--route-color);box-shadow:0 0 9px var(--route-color)}.world-tree-attacker,.world-tree-shield{position:absolute;z-index:5;top:1px;transform:translateX(-50%);width:38px;height:38px;display:grid;grid-template-columns:auto auto;place-content:center;gap:2px;border:2px solid #f5dd52;border-radius:50%;background:#13211d;color:#f4dd59;box-shadow:0 0 14px #f4dd5966;transition:left .55s ease}.world-tree-attacker svg,.world-tree-shield svg{width:15px;height:15px}.world-tree-attacker b,.world-tree-shield b{font:900 9px var(--display)}.world-tree-shield{z-index:4;border:1px solid #67cba5;border-radius:4px;background:#0b3024;color:#9df0ce;box-shadow:0 0 12px #47d89a44}.world-tree-shield.broken{opacity:.28;filter:grayscale(1)}.world-tree-route-status{display:grid;justify-items:end;gap:4px}.world-tree-route-status>b{font-size:11px;color:var(--route-color)}.world-tree-route-status>small{color:#778c83;font-size:8px;text-align:right}.world-tree-events{position:absolute;z-index:4;right:16px;top:16px;bottom:16px;width:216px;border-left:2px solid #4ccb96;background:#07100ed9;padding:16px;overflow:auto;scrollbar-width:thin;scrollbar-color:#477366 #101b18}.world-tree-events small{color:#51cc97;font:800 8px var(--display)}.world-tree-events p{margin:9px 0 0;color:#a8bbb2;font-size:9px;line-height:1.6}.world-tree-events p+p{padding-top:8px;border-top:1px solid #26362f}
.world-tree-command{min-height:344px;padding:16px 18px;background:#111a18;border-top:1px solid #33423d;display:grid;grid-template-columns:112px minmax(0,1fr) 142px;gap:14px;min-width:0}.world-tree-target{display:grid;grid-template-columns:1fr;align-content:start;gap:6px}.world-tree-target>span{color:#7f9189;font-size:9px}.world-tree-target button{height:36px;border:1px solid #33423d;background:#0c1513;color:#899b93;font-size:10px;display:flex;align-items:center;justify-content:center;gap:5px}.world-tree-target button svg{width:13px}.world-tree-target button.active{border-color:#e8d34e;color:#f4e584;background:#28271a}.world-tree-target small{color:#65766f;font-size:8px;line-height:1.5}.world-tree-planning{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:9px;min-width:0}.world-tree-plan-heading{display:flex;align-items:end;justify-content:space-between;gap:10px}.world-tree-plan-heading>div{display:flex;align-items:baseline;gap:8px;min-width:0}.world-tree-plan-heading small{color:#5fcf9f;font:800 7px var(--display)}.world-tree-plan-heading b{font-size:12px}.world-tree-plan-heading span{color:#74877f;font-size:8px}.world-tree-plan-heading>span{white-space:nowrap}.world-tree-companions{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:6px;min-width:0}.world-tree-companion{position:relative;min-width:0;height:64px;padding:6px 44px 6px 6px;border:1px solid #35453f;background:#0d1715;color:#dce7e2;display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:7px;text-align:left;overflow:hidden}.world-tree-companion:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--companion-color)}.world-tree-companion:hover{border-color:#6f8b80}.world-tree-companion.selected{border-color:#ead54f;background:#26271b;box-shadow:inset 0 -2px #ead54f}.world-tree-companion.cooling{opacity:.48;filter:saturate(.55)}.world-tree-companion img{width:43px;height:43px;object-fit:contain;background:#111e1b;border-radius:50%}.world-tree-companion>span{display:grid;gap:3px;min-width:0}.world-tree-companion b,.world-tree-companion small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-tree-companion b{font-size:9px}.world-tree-companion small{display:flex;align-items:center;gap:3px;color:var(--attribute-color);font-size:7px}.world-tree-companion small svg{width:10px;height:10px;flex:0 0 10px}.world-tree-companion em{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;padding:4px 3px;background:#182720;color:#89ad9e;text-align:center;font:800 7px/1.25 var(--display);font-style:normal}.world-tree-companion.selected em{background:#e0ca4b;color:#172019}.world-tree-hand{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:9px;min-width:0}.world-tree-hand-group{min-width:0;border-top:1px solid #2e4039;padding-top:7px}.world-tree-hand-group>header{height:25px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.world-tree-hand-group>header b{font-size:9px}.world-tree-hand-group>header small{color:#687c74;font-size:7px}.world-tree-hand-group>div{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 7px;scrollbar-width:thin;scrollbar-color:#477366 #101b18}.world-tree-hand-group>div::-webkit-scrollbar,.world-tree-events::-webkit-scrollbar{width:6px;height:6px}.world-tree-hand-group>div::-webkit-scrollbar-track,.world-tree-events::-webkit-scrollbar-track{background:#101b18}.world-tree-hand-group>div::-webkit-scrollbar-thumb,.world-tree-events::-webkit-scrollbar-thumb{background:#477366;border-radius:2px}.world-tree-card{position:relative;flex:0 0 108px;height:154px;border:1px solid #3b4b45;background:#17231f;color:#e6eee9;padding:29px 9px 9px;text-align:left;overflow:hidden}.world-tree-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--card-color)}.world-tree-card:hover{border-color:#778f85}.world-tree-card.selected{border-color:#f0d84f;box-shadow:inset 0 0 0 2px #f0d84f33}.world-tree-card-type{position:absolute;left:8px;top:9px;color:#72877e;font:800 7px var(--display)}.world-tree-card>svg{width:22px;height:22px;color:var(--card-color);margin-bottom:7px}.world-tree-card>b{display:block;font-size:11px}.world-tree-card>small{display:block;margin-top:3px;color:#879b92;font-size:7px;line-height:1.4}.world-tree-card em{position:absolute;left:8px;right:7px;bottom:7px;color:#b8c6c0;font:700 7px/1.3 var(--display);font-style:normal}.world-tree-card strong{position:absolute;right:7px;top:8px;color:var(--card-color);font-size:9px}.world-tree-card .card-lane{position:absolute;right:6px;bottom:23px;padding:3px 4px;background:#e7d34d;color:#192019;font:900 7px var(--display)}.world-tree-submit{display:flex;flex-direction:column;justify-content:flex-end;gap:9px}.world-tree-submit>div{display:grid;gap:4px;text-align:center}.world-tree-submit span{color:#9aaca4;font-size:9px}.world-tree-submit small{min-height:28px;color:#dc906d;font-size:8px;line-height:1.45}.world-tree-submit small.ready{color:#63d4a3}.world-tree-submit button{height:46px}.world-tree-battle.finished .world-tree-command{display:none}.world-tree-battle.finished .world-tree-field{min-height:520px}.world-tree-battle.finished .world-tree-events{width:280px}.world-tree-battle.finished .world-tree-canopy svg{width:110px;height:110px}
@media(max-width:1050px){.world-tree-lobby{grid-template-columns:1fr}.world-tree-intro{min-height:390px}.world-tree-battle-hud{grid-template-columns:1fr minmax(220px,1fr);padding:0 14px}.world-tree-battle-hud>button{position:absolute;right:14px;top:145px;z-index:8}.world-tree-field{padding-right:212px}.world-tree-canopy{right:176px}.world-tree-events{width:178px}.world-tree-command{grid-template-columns:100px minmax(0,1fr)}.world-tree-submit{grid-column:1/-1;display:grid;grid-template-columns:1fr 170px;align-items:center}.world-tree-submit>div{text-align:left}.world-tree-companions{overflow-x:auto;grid-template-columns:repeat(5,135px);padding-bottom:5px}.world-tree-hand{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.world-tree-heading{align-items:start}.world-tree-heading h2{font-size:27px}.world-tree-heading>div>span{display:none}.world-tree-heading-actions>span{max-width:125px;text-align:right}.world-tree-intro{min-height:300px;padding:32px 22px}.world-tree-intro h3{font-size:36px}.world-tree-intro p{font-size:11px}.world-tree-sigil{right:18px;top:20px;width:80px;height:80px}.world-tree-sigil svg{width:34px}.world-tree-setup{padding:18px}.world-tree-mode,.world-tree-role{gap:6px}.world-tree-mode button,.world-tree-role button{min-height:72px;padding:9px}.world-tree-mode small,.world-tree-role small{line-height:1.35}.world-tree-team-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:310px}.world-tree-battle{margin:0 -17px}.world-tree-battle-hud{height:86px;grid-template-columns:1fr 1.2fr;gap:10px;padding:0 12px}.world-tree-battle-hud strong{font-size:15px}.world-tree-objective{padding:8px 12px;justify-content:flex-start;font-size:8px}.world-tree-field{min-height:0;padding:14px 9px 10px;background-position:45% center;overflow:hidden}.world-tree-field:after{background:linear-gradient(90deg,#07110f4d,#07110fb8)}.world-tree-canopy{right:18px;top:13px;transform:none;opacity:.5}.world-tree-canopy svg{width:34px;height:34px}.world-tree-canopy span{display:none}.world-tree-routes{gap:8px}.world-tree-route{min-height:78px;padding:9px 7px;grid-template-columns:80px minmax(120px,1fr) 50px;gap:7px}.world-tree-route-label{gap:5px}.world-tree-route-label b{font-size:10px}.world-tree-route-label em{font-size:6px}.world-tree-route-label small{font-size:6px;white-space:normal}.world-tree-route-track{height:36px}.world-tree-route-track:before{top:17px}.world-tree-cell{top:11px;width:14px;height:14px;border-width:2px}.world-tree-attacker,.world-tree-shield{top:0;width:34px;height:34px}.world-tree-route-status>b{font-size:8px}.world-tree-route-status>small{font-size:6px}.world-tree-events{position:relative;right:auto;top:auto;bottom:auto;width:auto;max-height:102px;margin-top:10px;padding:10px 12px;border:1px solid #2f453d;border-left:2px solid #4ccb96;background:#07100ed9}.world-tree-events p{font-size:8px}.world-tree-command{min-height:0;padding:10px 8px 12px;display:grid;grid-template-columns:1fr;gap:10px}.world-tree-target{grid-template-columns:repeat(3,1fr);gap:5px}.world-tree-target>span,.world-tree-target>small{grid-column:1/-1}.world-tree-target button{height:34px}.world-tree-planning{min-width:0}.world-tree-plan-heading>div{display:grid;grid-template-columns:auto auto;gap:2px 7px}.world-tree-plan-heading>div span{grid-column:1/-1}.world-tree-companions{grid-template-columns:repeat(5,128px);overflow-x:auto;overscroll-behavior-inline:contain}.world-tree-hand{grid-template-columns:1fr;gap:7px}.world-tree-hand-group>header{height:23px}.world-tree-hand-group>div{overscroll-behavior-inline:contain}.world-tree-card{flex-basis:104px;height:150px}.world-tree-submit{grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) 142px;align-items:center}.world-tree-submit>div{text-align:left}.world-tree-submit button{height:43px}.world-tree-battle.finished .world-tree-field{min-height:410px}.world-tree-battle.finished .world-tree-events{width:auto}.world-tree-battle.finished .world-tree-canopy{right:18px}}

/* Reserve a dedicated lane for equipped achievement frames above each pet HUD. */
.battle-canvas .trainer-name.achievement{z-index:11;min-height:58px;max-width:min(280px,38%);display:grid;place-content:center;overflow-wrap:anywhere;pointer-events:none}
#myTrainerName.achievement:not(.hidden)~#myPetHud,#enemyTrainerName.achievement:not(.hidden)~#enemyPetHud{top:calc(13% + 88px)}
@media(max-width:900px){#myTrainerName.achievement:not(.hidden)~#myPetHud,#enemyTrainerName.achievement:not(.hidden)~#enemyPetHud{top:calc(12% + 80px)}}
@media(max-width:560px){.battle-canvas .trainer-name.achievement{min-height:52px;max-width:44%}#myTrainerName.achievement:not(.hidden)~#myPetHud,#enemyTrainerName.achievement:not(.hidden)~#enemyPetHud{top:calc(15% + 72px)}}

/* Persistent private-message unread indicators. */
.friend-row>.friend-avatar-wrap{position:relative;flex:0 0 36px;min-width:36px;width:36px;height:36px;overflow:visible}
.friend-row>.friend-avatar-wrap img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover;background:#34404a}
.friend-row>.friend-identity{min-width:0;flex:1}
.friend-unread-dot{position:absolute;z-index:2;right:-7px;top:-7px;display:grid!important;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #1d252e;border-radius:10px;background:#ef4452!important;color:#fff!important;font:800 8px/1 var(--display)!important;overflow:visible!important;box-shadow:0 0 0 2px #ef445222,0 2px 8px #0009;animation:friendUnreadPulse 2.2s ease-in-out infinite}
.friend-row.has-unread{background:#242a30;box-shadow:inset 3px 0 #ef4452}
.friend-unread-total{z-index:3;right:-6px;top:-7px;box-shadow:0 0 0 2px #10151b}
@keyframes friendUnreadPulse{50%{box-shadow:0 0 0 5px #ef44521f,0 2px 8px #0009}}
@media(max-width:560px){.friend-unread-dot{right:-5px;top:-5px}.friend-unread-total{right:-4px;top:-5px}}

/* World Tree tactical sandbox: route actors, concrete targets and action playback. */
.world-tree-field{min-height:640px;padding:66px 248px 26px 22px;background-color:#0a1612;background-image:linear-gradient(90deg,#07110fe8,#07110fa8),url('/assets/adventure/forest.jpg');background-position:center;background-size:cover}
.world-tree-field:after{background:linear-gradient(90deg,transparent 0 70%,#07110fea 86%)}
.world-tree-side-status{position:absolute;z-index:6;left:22px;right:248px;top:15px;display:flex;justify-content:space-between;pointer-events:none}
.world-tree-side-status span{height:34px;padding:0 11px;display:flex;align-items:center;gap:7px;border:1px solid #3e5d52;background:#0b1715e8;color:#c7d7d0;font:800 9px var(--display)}
.world-tree-side-status span:first-child{border-left:3px solid #47b7d7}.world-tree-side-status span:last-child{border-right:3px solid #e56f5e}
.world-tree-side-status svg{width:14px;height:14px}
.world-tree-routes{gap:12px}
.world-tree-route{position:relative;min-width:0;height:158px;padding:10px 13px 8px;border:1px solid #355047;border-left:3px solid var(--route-color);background:#0a1513e8;color:#dce8e3;overflow:hidden;transition:border-color .18s,box-shadow .18s,background .18s}
.world-tree-route.active{border-color:var(--route-color);background:#0d1c18ee;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--route-color) 32%,transparent)}
.world-tree-route.target-ready{box-shadow:inset 0 0 20px color-mix(in srgb,var(--route-color) 14%,transparent)}
.world-tree-route>header,.world-tree-route>footer{position:relative;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:10px}
.world-tree-route>header span{display:flex;align-items:center;gap:7px}.world-tree-route>header b{font:900 10px var(--display)}
.world-tree-route>header em{padding:2px 5px;background:color-mix(in srgb,var(--pressure-color) 16%,#0d1816);color:var(--pressure-color);font:800 7px var(--display);font-style:normal}
.world-tree-route>header small{color:#81958c;font-size:8px}
.world-tree-route>footer{height:23px;color:#72887e;font-size:7px}.world-tree-route>footer span{width:38%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.world-tree-route>footer span:last-child{text-align:right}.world-tree-route>footer b{color:var(--route-color);font-size:7px}
.world-tree-route-track{position:relative;height:92px;margin:2px 28px 0;display:grid;grid-template-columns:repeat(var(--route-length),minmax(0,1fr));align-items:center;isolation:isolate}
.world-tree-route-track:before{content:"";position:absolute;z-index:0;left:0;right:0;top:46px;height:26px;transform:translateY(-50%) skewX(-12deg);border:1px solid #4d675d;background:#26382f;box-shadow:0 8px 16px #0007}
.world-tree-cell{position:relative;z-index:1;top:auto;width:100%;height:28px;transform:none;border:0;border-right:1px solid #557064;background:transparent;cursor:pointer}
.world-tree-cell:first-child{border-left:1px solid #557064}.world-tree-cell i{display:block;width:6px;height:6px;margin:auto;border-radius:50%;background:#6f857c;box-shadow:0 0 0 3px #14221e}
.world-tree-cell.reached i{background:var(--route-color);box-shadow:0 0 9px var(--route-color)}
.world-tree-cell.defense-tile{background:#bd5e3620}.world-tree-cell.tree-tile{background:#57c49218}
.world-tree-origin,.world-tree-destination{position:absolute;z-index:2;top:27px;width:38px;height:38px;display:grid;place-content:center;border:1px solid #48665a;background:#101f1a;color:#75ad99}
.world-tree-origin{left:-31px}.world-tree-destination{right:-31px;border-color:#4c9476;color:#68d6a5}.world-tree-origin svg,.world-tree-destination svg{width:18px;height:18px}
.world-tree-deploy-zone,.world-tree-unit{position:absolute;z-index:5;top:15px;width:58px;height:58px;border:2px solid #3b6255;background:#0d1b17;color:#a4b9b0;display:grid;place-content:center;justify-items:center;transition:left .75s ease,transform .18s,filter .18s,box-shadow .18s}
.world-tree-deploy-zone{left:-2px;border-style:dashed}.world-tree-deploy-zone svg{width:18px}
.world-tree-unit.attacker{left:var(--to);transform:translateX(-50%);border-color:var(--unit-color);animation:world-tree-advance .8s ease both}
.world-tree-unit.defender{left:var(--position);transform:translateX(-50%);border-color:#537a68}.world-tree-unit.defender.occupied{border-color:var(--unit-color)}
.world-tree-unit img{width:48px;height:42px;object-fit:contain;filter:drop-shadow(0 4px 5px #000b)}.world-tree-unit>svg{width:23px;height:23px;color:#7fb99f}
.world-tree-unit>b{position:absolute;right:-6px;bottom:-6px;min-width:20px;height:20px;padding:0 4px;display:grid;place-content:center;border:1px solid #e8d95a;background:#17211d;color:#f2df59;font:900 8px var(--display)}
.world-tree-unit .pet-stars{left:1px;top:1px;transform:scale(.72);transform-origin:top left}.world-tree-unit .pet-stars svg{width:9px;height:9px}
.world-tree-unit.valid-target,.world-tree-deploy-zone.valid-target{border-color:#fff06a;box-shadow:0 0 0 3px #f3dc4933,0 0 22px #f3dc4988;animation:world-tree-target-pulse .9s ease-in-out infinite alternate;cursor:pointer}
@keyframes world-tree-advance{from{left:var(--from);filter:brightness(1.8);transform:translateX(-50%) scale(.85)}to{left:var(--to);filter:brightness(1);transform:translateX(-50%) scale(1)}}
@keyframes world-tree-target-pulse{to{transform:translateX(-50%) scale(1.08)}}
.world-tree-deploy-zone.valid-target{animation-name:world-tree-deploy-pulse}@keyframes world-tree-deploy-pulse{to{transform:scale(1.08)}}
.world-tree-route.resolving{z-index:8;border-color:#f0dd58;box-shadow:0 0 24px #e8cf4d33}.world-tree-route.resolving.attack-action .world-tree-unit.attacker{animation:world-tree-strike .46s ease}.world-tree-route.resolving.defense-action .world-tree-unit.defender{animation:world-tree-guard-strike .46s ease}
@keyframes world-tree-strike{45%{transform:translateX(-35%) scale(1.2);filter:brightness(1.9) drop-shadow(0 0 12px #5edcff)}100%{transform:translateX(-50%) scale(1)}}
@keyframes world-tree-guard-strike{45%{transform:translateX(-68%) scale(1.18);filter:brightness(1.9) drop-shadow(0 0 12px #ff8b62)}100%{transform:translateX(-50%) scale(1)}}
.world-tree-action-banner{position:absolute;z-index:12;left:50%;top:13px;transform:translateX(-50%);width:min(520px,52%);min-height:44px;padding:6px 12px;border:1px solid #e8d64e;background:#111b18f2;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 8px 26px #000b;pointer-events:none}
.world-tree-action-banner img{width:38px;height:38px;object-fit:contain}.world-tree-action-banner>svg{width:24px;color:#ead953}.world-tree-action-banner span{display:grid;gap:2px}.world-tree-action-banner b{font-size:10px}.world-tree-action-banner small{color:#9eb0a8;font-size:7px}
.world-tree-canopy{right:205px;top:49%;opacity:.8}.world-tree-canopy svg{width:60px;height:60px}
.world-tree-command{grid-template-columns:190px minmax(0,1fr) 152px;gap:12px;padding:14px;min-height:360px}
.world-tree-target{display:flex;flex-direction:column;align-content:stretch;gap:8px;padding-right:12px;border-right:1px solid #2c3c36}.world-tree-target>span{color:#5fcf9f;font:800 7px var(--display)}.world-tree-target>b{font-size:11px;line-height:1.4}.world-tree-target>small{margin-top:auto;color:#70837b;font-size:7px;line-height:1.5}
.world-tree-target-picker{display:grid;gap:6px}.world-tree-target-picker button{height:51px;padding:6px 8px;border:1px solid #344840;background:#0c1614;color:#aabbb4;display:flex;align-items:center;justify-content:flex-start;gap:8px;text-align:left}.world-tree-target-picker button:not(:disabled):hover{border-color:#ead750;background:#20251a}.world-tree-target-picker button:disabled{opacity:.42}.world-tree-target-picker img,.world-tree-target-picker>button>svg{width:34px;height:34px;flex:0 0 34px;object-fit:contain}.world-tree-target-picker span{display:grid;gap:2px}.world-tree-target-picker b{font-size:9px}.world-tree-target-picker small{color:#6f837b;font-size:7px}
.world-tree-companions{grid-template-columns:repeat(5,minmax(112px,1fr))}.world-tree-companion{height:70px}.world-tree-companion.targeting{border-color:#f0dd55;box-shadow:inset 0 0 0 1px #f0dd5544}.world-tree-companion .pet-stars{left:4px;top:3px;transform:scale(.7);transform-origin:top left}
.world-tree-card{flex-basis:124px;height:184px;padding:60px 9px 29px;background:#121d1a}.world-tree-card.unit-card{border-color:color-mix(in srgb,var(--rarity) 58%,#34443e)}.world-tree-card.targeting{border-color:#f0db50;box-shadow:inset 0 0 0 2px #f0db5044,0 0 14px #f0db5022}
.world-tree-card>img{position:absolute;left:8px;right:8px;top:23px;width:calc(100% - 16px);height:58px;object-fit:contain;filter:drop-shadow(0 4px 6px #0009)}.world-tree-card.unit-card>b{margin-top:26px}.world-tree-card>svg{width:28px;height:28px}.world-tree-card>b{font-size:10px}.world-tree-card>small{height:42px;overflow:hidden;font-size:7px;line-height:1.45}.world-tree-card em{bottom:8px}.world-tree-card strong{color:var(--rarity)}.world-tree-card .pet-stars{left:7px;top:7px;transform:scale(.72);transform-origin:top left}.world-tree-card .attribute-badge{position:absolute;right:7px;top:29px}.world-tree-card .card-lane{bottom:7px;top:auto}.world-tree-card .card-lane.pending{background:#e4ce4e;color:#172019}
.world-tree-events{scrollbar-color:#4d7568 #0b1513}
@media(max-width:1050px){.world-tree-field{padding-right:205px}.world-tree-side-status{right:205px}.world-tree-canopy{right:165px}.world-tree-command{grid-template-columns:170px minmax(0,1fr)}.world-tree-submit{grid-column:1/-1}.world-tree-companions{grid-template-columns:repeat(5,132px)}}
@media(max-width:650px){.world-tree-field{padding:58px 7px 10px;overflow:hidden}.world-tree-side-status{left:8px;right:8px;top:12px}.world-tree-side-status span{height:30px;padding:0 7px;font-size:7px}.world-tree-canopy{right:10px;top:8px;opacity:.22}.world-tree-routes{gap:8px}.world-tree-route{height:139px;padding:7px 6px 5px}.world-tree-route>header small{font-size:6px}.world-tree-route-track{height:78px;margin:1px 22px 0}.world-tree-route-track:before{top:39px;height:22px}.world-tree-cell{height:24px}.world-tree-cell i{width:4px;height:4px}.world-tree-origin,.world-tree-destination{top:23px;width:31px;height:31px}.world-tree-origin{left:-25px}.world-tree-destination{right:-25px}.world-tree-deploy-zone,.world-tree-unit{top:11px;width:48px;height:48px}.world-tree-unit img{width:41px;height:36px}.world-tree-route>footer{font-size:6px}.world-tree-route>footer b{font-size:6px}.world-tree-events{position:relative;right:auto;top:auto;bottom:auto;width:auto;max-height:112px;margin-top:9px}.world-tree-action-banner{top:48px;width:calc(100% - 28px);min-height:40px}.world-tree-command{grid-template-columns:1fr;padding:10px 8px;gap:10px}.world-tree-target{padding:0 0 9px;border-right:0;border-bottom:1px solid #2c3c36}.world-tree-target-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.world-tree-target-picker button{height:48px;padding:5px;gap:4px}.world-tree-target-picker img,.world-tree-target-picker>button>svg{width:27px;height:27px;flex-basis:27px}.world-tree-target>small{margin-top:0}.world-tree-companions{grid-template-columns:repeat(5,126px);overflow-x:auto;overscroll-behavior-inline:contain}.world-tree-hand{grid-template-columns:1fr}.world-tree-card{flex-basis:116px;height:176px}.world-tree-submit{grid-column:auto;grid-template-columns:minmax(0,1fr) 132px}.world-tree-battle.finished .world-tree-field{min-height:560px}}
:root{--auction-gold:#f2cf62;--auction-cyan:#63dbe7;--auction-panel:#171f26}
.battle-view{box-sizing:border-box;width:calc(100vw - 90px);max-width:calc(100vw - 90px);overflow:hidden}
.auction-heading{align-items:center}.auction-heading-actions{display:flex;align-items:center;gap:10px}.auction-heading-actions>div{display:grid;text-align:right}.auction-heading-actions small{color:#7f8d96;font-size:9px}.auction-heading-actions strong{font:800 15px var(--display);color:var(--auction-gold)}
.auction-probability{min-height:48px;display:flex;align-items:center;gap:18px;padding:0 18px;border:1px solid #35434c;background:#11181e;color:#9ba8b1;font-size:11px}.auction-probability span{display:flex;align-items:center;gap:8px;color:#e4ebee;font-weight:700}.auction-probability span svg{width:15px;color:var(--auction-gold)}.auction-probability b{font:800 12px var(--display)}.auction-probability b:nth-of-type(1){color:#9cf4ff}.auction-probability b:nth-of-type(2){color:#ff83bd}.auction-probability b:nth-of-type(3){color:#c99b39}.auction-probability em{margin-left:auto;font-style:normal;color:#6f7d86}
.auction-section-title{display:flex;align-items:end;justify-content:space-between;margin:25px 0 12px}.auction-section-title small{color:#697983;font:700 9px var(--display);letter-spacing:1px}.auction-section-title h3{margin:3px 0 0;font:800 22px var(--display)}.auction-section-title>span{font-size:10px;color:#7f8c95}.player-auction-title{margin-top:32px}.auction-filters{display:flex;border:1px solid #35414a}.auction-filters button{height:34px;padding:0 14px;border:0;border-right:1px solid #35414a;background:#151d23;color:#84919a;font-size:10px}.auction-filters button:last-child{border-right:0}.auction-filters button.active{background:var(--auction-gold);color:#15191d;font-weight:800}
.auction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.player-auction-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.auction-card{position:relative;min-width:0;overflow:hidden;border:1px solid #38464f;background:linear-gradient(155deg,#1c252c,#12181d);transition:transform .2s,border-color .2s}.auction-card:hover{transform:translateY(-2px);border-color:#697b86}.auction-card.system{border-top:2px solid var(--rarity)}.auction-card.ended{filter:saturate(.25);opacity:.68}.auction-card.ended:hover{transform:none}.auction-card-visual{position:relative;height:210px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 54%,color-mix(in srgb,var(--rarity) 22%,transparent),transparent 58%)}.auction-card-visual:after{content:'';position:absolute;left:10%;right:10%;bottom:20px;height:20px;border-radius:50%;background:#0007;filter:blur(8px)}.auction-card-visual img{position:relative;z-index:1;width:88%;height:180px;object-fit:contain;filter:drop-shadow(0 12px 12px #0008)}.auction-card.equipment .auction-card-visual img{width:120px;height:120px}.auction-source{position:absolute;z-index:3;left:10px;top:10px;padding:5px 7px;background:#0a1015d9;color:#dfe8ed;font:800 9px var(--display)}.auction-rarity{position:absolute;z-index:3;right:10px;top:10px;color:var(--rarity);font:900 16px var(--display);text-shadow:0 2px 8px #000}.auction-status{position:absolute;z-index:4;inset:auto 12px 12px;display:flex;justify-content:center;padding:7px;background:#111820e6;color:#8e9ca5;font:800 10px var(--display)}.auction-card-body{padding:14px}.auction-card-body header{display:flex;justify-content:space-between;gap:10px}.auction-card-body h4{margin:0;font:800 18px var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auction-card-body header span{color:#8c9aa3;font-size:9px;white-space:nowrap}.auction-card-body>p{min-height:18px;margin:8px 0;color:#77868f;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auction-price{display:flex;align-items:end;justify-content:space-between;padding:11px 0;border-top:1px solid #303b43}.auction-price small,.auction-price strong{display:block}.auction-price small{color:#78858e;font-size:9px}.auction-price strong{margin-top:2px;font:800 20px var(--display);color:var(--auction-gold)}.auction-price time{font:700 11px var(--display);color:#e3ecf0}.auction-card.leading{box-shadow:inset 0 0 0 1px var(--auction-cyan)}.auction-leader{height:18px;color:#8b99a2;font-size:9px}.auction-leader b{color:var(--auction-cyan)}.auction-card button{width:100%;height:40px;margin-top:8px}.auction-card button:disabled{background:#283139;color:#77848c}.auction-market{display:inline-flex;align-items:center;gap:4px;color:#e2bd58!important}.auction-market svg{width:12px;height:12px}
.auction-dialog-head{display:flex;gap:13px;align-items:center;margin-bottom:20px;padding-right:36px}.auction-dialog-head>span{width:48px;height:48px;display:grid;place-items:center;background:#29343b;color:var(--auction-gold)}.auction-dialog-head h2{margin:2px 0 3px}.auction-dialog-head small{color:#82909a;font-size:10px}.auction-sell-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #37444d;margin-bottom:12px}.auction-sell-tabs button{height:40px;border:0;background:#12191f;color:#89969f}.auction-sell-tabs button.active{background:var(--auction-gold);color:#15191c;font-weight:800}.auction-sell-assets{height:260px;overflow-y:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:8px;padding:4px;scrollbar-color:#56646e #11171c}.auction-sell-item{position:relative;height:118px;border:1px solid #34414a;background:#11181e;color:#dfe7eb;padding:8px;display:grid;grid-template-columns:70px 1fr;align-items:center;text-align:left}.auction-sell-item img{width:68px;height:78px;object-fit:contain}.auction-sell-item b,.auction-sell-item small{display:block}.auction-sell-item small{margin-top:4px;color:#85939c;font-size:9px}.auction-sell-item.selected{border-color:var(--auction-gold);box-shadow:inset 0 0 0 2px #f2cf6233}.auction-sell-item.locked{opacity:.42}.auction-sell-dialog form,.auction-bid-dialog form{margin-top:17px}.auction-price-input{height:48px;margin-top:7px;display:flex;align-items:center;border:1px solid #3b4851;background:#0f151a}.auction-price-input:focus-within{border-color:var(--auction-gold)}.auction-price-input svg{width:17px;margin:0 12px;color:var(--auction-gold)}.auction-price-input input{flex:1;min-width:0;height:46px;border:0;background:transparent;color:#fff;font:700 18px var(--display);outline:0}.auction-sell-dialog label>small{display:block;margin:6px 0 14px;color:#7f8d96;font-size:9px}.auction-bid-summary{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;background:#11181e;border:1px solid #34414a;padding:16px}.auction-bid-summary div:last-child{text-align:right}.auction-bid-summary small,.auction-bid-summary strong{display:block}.auction-bid-summary small{color:#7d8b94;font-size:9px}.auction-bid-summary strong{margin-top:4px;font:800 20px var(--display);color:var(--auction-gold)}.auction-bid-summary>svg{width:17px;color:#64737c}
.battle-canvas{isolation:isolate;background-color:#0e2022;background-image:var(--battle-scene);background-position:center;background-size:cover}.battle-canvas:after{content:'';position:absolute;z-index:-1;inset:-3%;background:inherit;background-position:center;background-size:cover;animation:battleScenery 18s ease-in-out infinite alternate;filter:saturate(.92) brightness(.78)}@keyframes battleScenery{from{transform:scale(1.02) translate3d(-.6%,0,0)}to{transform:scale(1.09) translate3d(.7%,-.5%,0)}}.battle-canvas canvas{z-index:1}.battle-canvas.is-hit canvas{animation:arenaShake .28s ease-out}@keyframes arenaShake{0%,100%{transform:translate3d(0,0,0)}25%{transform:translate3d(-7px,3px,0)}55%{transform:translate3d(6px,-2px,0)}80%{transform:translate3d(-3px,1px,0)}}.battle-canvas.is-critical{animation:criticalFlash .42s ease-out}@keyframes criticalFlash{30%{filter:brightness(1.45) saturate(1.25)}}.battle-vignette{position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(#07101538,#07101500 30%,#06101626),radial-gradient(ellipse at 50% 55%,transparent 40%,#0310159c 100%)}.battle-projectile{position:absolute;z-index:6;top:51%;width:34%;height:9px;border-radius:50%;background:linear-gradient(90deg,transparent,#fff 55%,var(--effect-color));box-shadow:0 0 16px var(--effect-color),0 0 35px var(--effect-color);transform-origin:center;pointer-events:none;animation:battleProjectile .42s cubic-bezier(.2,.8,.2,1) forwards}.battle-projectile.to-enemy{left:28%;transform:rotate(-10deg)}.battle-projectile.to-mine{right:28%;transform:rotate(190deg)}@keyframes battleProjectile{0%{opacity:0;scale:.05 1}35%{opacity:1}100%{opacity:0;scale:1.4 .35}}.battle-impact{position:absolute;z-index:6;top:39%;width:150px;height:150px;border:4px solid var(--effect-color);border-radius:50%;box-shadow:0 0 28px var(--effect-color),inset 0 0 24px var(--effect-color);pointer-events:none;animation:battleImpact .58s ease-out forwards}.battle-impact.enemy{right:14%}.battle-impact.mine{left:14%}@keyframes battleImpact{from{opacity:1;transform:scale(.15) rotate(0)}to{opacity:0;transform:scale(1.55) rotate(100deg)}}
@media(max-width:1100px){.player-auction-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.auction-heading{align-items:start}.auction-heading-actions>div{display:none}.auction-grid,.player-auction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auction-probability{overflow-x:auto;white-space:nowrap}.auction-probability em{display:none}.auction-card-visual{height:170px}.auction-card-visual img{height:148px}.auction-sell-assets{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-view{width:100vw;max-width:100vw}.battle-canvas{background-position:center}.battle-impact{width:100px;height:100px}}
@media(max-width:560px){.auction-heading{display:block}.auction-heading-actions{margin-top:12px}.auction-heading-actions .primary{flex:1}.auction-probability{margin:0 -17px;padding-left:17px;border-left:0;border-right:0}.auction-section-title{align-items:start}.player-auction-title{display:block}.auction-filters{margin-top:10px}.auction-filters button{flex:1;padding:0 7px}.auction-grid,.player-auction-grid{grid-template-columns:1fr 1fr;gap:8px}.auction-card-visual{height:135px}.auction-card-visual img{height:116px}.auction-card.equipment .auction-card-visual img{width:78px;height:78px}.auction-card-body{padding:10px}.auction-card-body h4{font-size:14px}.auction-price{display:block}.auction-price time{display:block;margin-top:5px}.auction-price strong{font-size:16px}.auction-leader{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auction-sell-assets{height:230px;grid-template-columns:1fr}.auction-sell-item{height:92px}.auction-sell-item img{height:68px}.auction-dialog-head h2{font-size:23px}.battle-projectile{top:55%;width:42%}.battle-projectile.to-enemy{left:20%}.battle-projectile.to-mine{right:20%}}
.battle-canvas:after{z-index:0}
.battle-canvas>.pet-hud{position:absolute}

@media(max-width:560px){
  .battle-view{box-sizing:border-box;width:100vw;max-width:100vw;margin-left:-17px;margin-right:0;overflow:hidden}
  .battle-hud,.battle-canvas,.team-dock{box-sizing:border-box;width:100%;max-width:100vw;min-width:0}
  .battle-canvas{aspect-ratio:9/10;height:auto;min-height:0;max-height:none;contain:layout paint}
  .battle-canvas canvas{max-width:100%!important}
  .trainer-name{top:14%;min-width:0;width:39%;max-width:39%;padding:5px 4px;overflow-wrap:anywhere}
  .trainer-name.mine{left:3%}.trainer-name.enemy{right:3%}
  .battle-canvas>.pet-hud{top:25%;width:42%;max-width:42%;padding:6px 7px;text-align:left}
  .battle-canvas>.pet-hud.mine{left:3%}.battle-canvas>.pet-hud.enemy{right:3%;text-align:right}
  .pet-hud>b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pet-hud em{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pet-hud>div{height:7px;margin:5px 0 3px}
  .pet-hud span{display:block;white-space:nowrap;font-size:7px}
  .battle-round{top:4%;max-width:72%;padding:5px 8px;font-size:9px;white-space:normal}
  .battle-round.versus{max-width:58%;padding:6px 9px;font-size:15px;line-height:1.2;white-space:nowrap}
  .damage-pop{top:45%;max-width:44%;font-size:29px;line-height:1.05;white-space:nowrap}
  .damage-pop.critical{font-size:37px}.damage-pop.attribute-hit small{font-size:10px;white-space:normal}
  .damage-pop.enemy-hit{right:5%}.damage-pop.my-hit{left:5%}
  .battle-impact{top:43%;width:78px;height:78px}
  .system-auction-grid,.player-auction-grid{grid-template-columns:minmax(0,1fr);overflow:visible}
  .auction-card-visual{height:190px}.auction-card-visual img{height:166px;max-width:100%}
  .auction-card-body{padding:13px}.auction-price{display:flex}.auction-price time{margin-top:0}
  .auction-view,.auction-grid,.auction-card{min-width:0;max-width:100%}
}

.arena-model-loading{position:absolute;z-index:12;left:50%;top:52%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #5c737f;background:#081118e8;color:#dce9ef;font:800 9px var(--display);pointer-events:none}.arena-model-loading span{width:14px;height:14px;border:2px solid #6e818b;border-top-color:#63e5ff;border-radius:50%;animation:arenaModelSpin .7s linear infinite}@keyframes arenaModelSpin{to{transform:rotate(360deg)}}
.friends-drawer:not(.open){visibility:hidden;pointer-events:none}
.world-tree-2d-stage{position:relative;min-height:460px;border:1px solid #315449;background:#081310;overflow:hidden;isolation:isolate}
.world-tree-2d-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.world-tree-2d-hint{position:absolute;z-index:4;right:14px;top:14px;padding:7px 10px;border:1px solid #3b6757;background:#07110ee8;color:#8fb9a8;font-size:8px;pointer-events:none}
.world-tree-2d-hit-layer{position:absolute;z-index:5;inset:0;display:grid;grid-template-rows:repeat(3,1fr);padding:38px 90px 28px 70px;gap:0;pointer-events:none}
.world-tree-route-hit{position:relative;border:1px solid transparent;transition:border-color .2s,background .2s;pointer-events:none}
.world-tree-route-hit.active{border-color:#ffffff50;background:#ffffff05}
.world-tree-route-hit.target-ready{border-color:var(--pressure-color);box-shadow:inset 0 0 25px color-mix(in srgb,var(--pressure-color) 16%,transparent)}
.world-tree-route-hit-button{position:absolute;inset:0;border:0;background:transparent;cursor:pointer;pointer-events:auto}
.world-tree-route-hit-button:focus-visible{outline:2px solid #f0d84f;outline-offset:-2px}
.world-tree-companions,.world-tree-hand-group>div{scrollbar-width:thin;scrollbar-color:#477366 #101b18;overscroll-behavior-inline:contain}
@media(min-width:901px){.topbar{right:auto;width:calc(100vw - 92px)}}
@media(max-width:650px){.world-tree-companions,.world-tree-hand-group>div{touch-action:pan-x;box-shadow:inset -18px 0 16px -18px #75d6ad}.world-tree-companions:after,.world-tree-hand-group>div:after{content:"";flex:0 0 8px}}
@media(max-width:650px){.world-tree-2d-stage{min-height:405px}.world-tree-2d-hint{right:8px;top:8px;font-size:7px;padding:6px 7px}.world-tree-2d-hit-layer{padding:36px 28px 22px 58px}}

/* Hero-style presentation for World Tree. The transparent route layer above
   the canvas keeps the existing targeting behavior intact. */
.world-tree-battle{border-color:#4b7595;border-radius:18px;background:#0a1830;box-shadow:0 22px 55px #02091388}
.world-tree-battle-hud{background:linear-gradient(180deg,#122944,#0c1d34);border-bottom-color:#47708d}
.world-tree-objective{background:#102844;border-bottom-color:#416783;color:#d0e7f4}
.world-tree-field{background:#102d4a;min-height:0;padding:18px 252px 18px 18px}
.world-tree-field:after{background:linear-gradient(90deg,transparent 0 70%,#07152aee 87%)}
.world-tree-side-status span{border-color:#5282a0;background:#0c2039e8;color:#d9efff;border-radius:10px}
.world-tree-side-status span:first-child{border-left-color:#ffd35a}.world-tree-side-status span:last-child{border-right-color:#ff7d8e}
.world-tree-2d-stage{border:2px solid #5c8cab;border-radius:16px;background:#102d4a;box-shadow:inset 0 0 45px #77c7f41a,0 10px 28px #02091388}
.world-tree-2d-hint{border-color:#6b99b7;border-radius:999px;background:#091a2de8;color:#d2edff;box-shadow:0 4px 15px #02091366}
.world-tree-2d-hit-layer{padding-left:104px;padding-right:126px;padding-top:46px;padding-bottom:32px}
.world-tree-route-hit{border-radius:14px}
.world-tree-route-hit.active{background:#ffffff0a;box-shadow:inset 0 0 20px #ffffff0d}
.world-tree-route-hit.target-ready{box-shadow:inset 0 0 28px color-mix(in srgb,var(--pressure-color) 25%,transparent),0 0 18px color-mix(in srgb,var(--pressure-color) 25%,transparent)}
.world-tree-command{background:linear-gradient(180deg,#102844,#0c1d34);border-top-color:#47708d}
.world-tree-target{border-right-color:#416783}
.world-tree-companion{border-color:#416783;border-radius:12px;background:linear-gradient(145deg,#143452,#0b2038);box-shadow:0 5px 12px #02091355}
.world-tree-companion.selected{border-color:#ffd35a;background:#3b3a1b;box-shadow:0 0 18px #ffd35a33,inset 0 -2px #ffd35a}
.world-tree-card{border-color:#4b7595;border-radius:13px;background:linear-gradient(155deg,#204b70 0,#112c4c 46%,#0c2039 100%);box-shadow:0 8px 14px #02091366}
.world-tree-card:before{height:5px;border-radius:13px 13px 0 0}
.world-tree-card-type{padding:3px 6px;border:1px solid #8ab6cd66;border-radius:999px;background:#07182bd9;color:#d3ebf7}
.world-tree-card:hover{border-color:#c3e9ff;transform:translateY(-3px)}
.world-tree-card.selected{border-color:#ffd85e;box-shadow:0 0 22px #ffd85e33,inset 0 0 0 2px #ffd85e44;transform:translateY(-7px)}
.world-tree-card.targeting{border-color:#8ee7ff;box-shadow:0 0 22px #67d9ff66,inset 0 0 0 2px #8ee7ff44}
.world-tree-card>b{color:#f1fbff}.world-tree-card>small{color:#b9d0df}.world-tree-card em{color:#d8ecf7}
.world-tree-card strong{padding:2px 5px;border-radius:999px;background:#07182bd9}
.world-tree-card .card-lane{border-radius:999px;background:#ffd85e;color:#132238}
@media(max-width:650px){.world-tree-field{padding:10px 7px 10px}.world-tree-2d-hit-layer{padding:40px 30px 25px 54px}.world-tree-2d-stage{min-height:420px}.world-tree-card{border-radius:12px}.world-tree-card:hover{transform:none}}

/* Bright comic-board palette: the canvas is the scene, the surrounding controls
   use the same paper, grass and ink colors so the battle reads as one 2D board. */
.world-tree-battle{border-color:#7b5937;background:#5b9a61;box-shadow:0 18px 42px #172c1f66}
.world-tree-battle-hud{background:#fff1b8;border-bottom-color:#9b7244;color:#3d332b}
.world-tree-battle-hud strong,.world-tree-battle-hud small{color:#3d332b}
.world-tree-hp span,.world-tree-hp b{color:#3d332b}.world-tree-hp>div{background:#cbb67e}.world-tree-hp>div i{background:#65a64e}
.world-tree-objective{background:#f9e9ad;border-bottom-color:#9b7244;color:#4a3a2c}
.world-tree-field{background:#8fc871;padding:18px 252px 18px 18px}
.world-tree-field:after{background:linear-gradient(90deg,transparent 0 70%,#37684655 87%)}
.world-tree-side-status span{border-color:#8b633b;background:#fff0b9e8;color:#4a3a2c;border-radius:10px}
.world-tree-side-status span:first-child{border-left-color:#d99727}.world-tree-side-status span:last-child{border-right-color:#d85c67}
.world-tree-2d-stage{border:2px solid #7b5937;border-radius:16px;background:#8fc871;box-shadow:inset 0 0 34px #eff6b244,0 8px 22px #284a2d55}
.world-tree-2d-hint{border-color:#8b633b;border-radius:999px;background:#fff1b8e8;color:#4a3a2c;box-shadow:0 4px 12px #345b3766}
.world-tree-command{background:#fff1b8;border-top-color:#9b7244}.world-tree-target{border-right-color:#9b7244}.world-tree-target span,.world-tree-target b,.world-tree-target small{color:#4a3a2c}
.world-tree-companion{border-color:#8b633b;border-radius:12px;background:linear-gradient(145deg,#fff1b8,#e8ce87);box-shadow:0 5px 12px #345b3744;color:#3e322b}
.world-tree-companion.selected{border-color:#d99727;background:#ffe48a;box-shadow:0 0 18px #d9972744,inset 0 -2px #d99727}
.world-tree-card{border-color:#8b633b;border-radius:13px;background:linear-gradient(155deg,#fff3c6 0,#f4dda0 46%,#dfbd71 100%);box-shadow:0 8px 14px #345b3744;color:#3e322b}
.world-tree-card-type{border-color:#9b7244;background:#fff8dcd9;color:#4a3a2c}.world-tree-card>b{color:#3e322b}.world-tree-card>small,.world-tree-card em{color:#5d4a37}.world-tree-card strong{background:#fff8dcd9;color:#3e322b}.world-tree-card .card-lane{background:#d99727;color:#fff8dc}
.world-tree-events{background:#fff8dceb;border-left-color:#9b7244;color:#4a3a2c}.world-tree-events small,.world-tree-events p{color:#4a3a2c;border-bottom-color:#d4bd83}
.world-tree-objective span{display:grid;gap:2px}.world-tree-objective span b{color:#6c4525;font-size:9px}.world-tree-revealed-plan{display:grid;gap:5px;margin-top:9px;padding-bottom:8px;border-bottom:1px solid #d4bd83}.world-tree-revealed-plan p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:6px 7px;border:1px solid #c9a86b;background:#fff4c7}.world-tree-revealed-plan p+p{padding-top:6px;border-top:1px solid #c9a86b}.world-tree-revealed-plan b{font-size:8px}.world-tree-revealed-plan span{flex:0 0 auto;color:#9a5d2b;font-size:7px}
.world-tree-3d-stage{position:relative;min-height:540px;border:2px solid #765338;border-radius:18px;background:linear-gradient(#8ed8ee,#8fc871 48%,#4e9659);overflow:hidden;isolation:isolate;box-shadow:inset 0 -22px 0 #6f442d22,0 10px 24px #2e583b66}
.world-tree-three-scene{position:absolute;inset:0;z-index:1}.world-tree-three-scene canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.world-tree-3d-fallback{display:none}.world-tree-3d-hint{position:absolute;z-index:6;right:14px;top:14px;padding:8px 13px;border:1px solid #765338;border-radius:999px;background:#fff1b9e8;color:#4a3629;font:800 9px var(--display);box-shadow:0 4px 13px #2e583b55;pointer-events:none}.world-tree-3d-stage .world-tree-2d-hit-layer{z-index:5;padding:48px 108px 150px 104px}.world-tree-3d-stage .world-tree-route-hit{border-color:transparent;background:transparent}.world-tree-3d-stage .world-tree-route-hit.active{border-color:#fff1a877;background:#fff5b52b}.world-tree-3d-stage .world-tree-route-hit.target-ready{border-color:var(--pressure-color);box-shadow:inset 0 0 30px color-mix(in srgb,var(--pressure-color) 28%,transparent),0 0 20px color-mix(in srgb,var(--pressure-color) 20%,transparent)}.world-tree-draw-notice{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 16px;border:2px solid #ffdd72;border-radius:999px;background:#292f59e8;color:#fff4c2;font:900 12px var(--display);box-shadow:0 0 28px #ffde724f;animation:worldTreeDrawNotice 1.2s ease both;pointer-events:none}@keyframes worldTreeDrawNotice{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}18%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.06)}}
.world-tree-3d-stage.fallback-mode .world-tree-three-scene{display:none}.world-tree-3d-stage.fallback-mode .world-tree-3d-fallback{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:1}
.world-tree-3d-stage>#worldTreeHand{position:absolute;z-index:8;left:50%;bottom:8px;transform:translateX(-50%);width:min(820px,calc(100% - 150px));display:grid;grid-template-columns:1.1fr .9fr;gap:8px;padding:7px 8px;border:1px solid #765338;border-radius:14px;background:#fff1b9ee;box-shadow:0 8px 18px #274a2e66;pointer-events:auto}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group{min-width:0;border-top:0;padding-top:0}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group>header{height:16px}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group>header b{font-size:8px;color:#4a3629}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group>header small{color:#7d6245;font-size:6px}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group>div{gap:4px;padding:0;overflow:hidden}.world-tree-3d-stage>#worldTreeHand .world-tree-card{flex:1 1 0;min-width:65px;height:106px;padding:22px 5px 5px;border-color:#8b633b;border-radius:9px;background:linear-gradient(155deg,#fff8d8,#e2c078);box-shadow:0 4px 8px #345b3744}.world-tree-3d-stage>#worldTreeHand .world-tree-card:hover{transform:translateY(-5px)}.world-tree-3d-stage>#worldTreeHand .world-tree-card>img{width:100%;height:38px;object-fit:contain}.world-tree-3d-stage>#worldTreeHand .world-tree-card>b{font-size:8px}.world-tree-3d-stage>#worldTreeHand .world-tree-card>small{font-size:6px;max-height:25px;overflow:hidden}.world-tree-3d-stage>#worldTreeHand .world-tree-card em{font-size:6px;bottom:4px}.world-tree-3d-stage>#worldTreeHand .world-tree-card-type{left:5px;top:5px;padding:2px 3px;font-size:6px}.world-tree-3d-stage>#worldTreeHand .world-tree-card strong{right:4px;top:5px;font-size:7px}.world-tree-target-arrow{position:absolute;z-index:9;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.world-tree-target-arrow path{fill:none;stroke:#ffe36c;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:10 5;filter:drop-shadow(0 0 5px #d76539);marker-end:url(#worldTreeArrowHead)}.world-tree-target-arrow circle{fill:#ffe36c33;stroke:#fff2a6;stroke-width:2;opacity:0;filter:drop-shadow(0 0 7px #ffb52d)}.world-tree-3d-stage.arrow-snapped .world-tree-target-arrow path{stroke:#fff2a6;stroke-width:4.5;stroke-dasharray:none}.world-tree-3d-stage.arrow-snapped .world-tree-target-arrow circle{opacity:1;animation:worldTreeTargetPulse .7s ease-in-out infinite alternate}@keyframes worldTreeTargetPulse{to{r:16;opacity:.55}}.world-tree-3d-stage.is-targeting .world-tree-2d-hit-layer{z-index:10}.world-tree-3d-stage.is-targeting .world-tree-3d-hint{background:#ffd96e;color:#4a2b1b}.world-tree-3d-stage.is-targeting .world-tree-route-hit-button{cursor:crosshair}
@media(max-width:650px){.world-tree-3d-stage{min-height:520px;border-radius:13px}.world-tree-3d-stage .world-tree-2d-hit-layer{padding:44px 32px 150px 54px}.world-tree-3d-hint{right:8px;top:8px;padding:6px 9px;font-size:7px}.world-tree-3d-stage>#worldTreeHand{bottom:5px;width:calc(100% - 12px);grid-template-columns:1fr;gap:3px;padding:5px}.world-tree-3d-stage>#worldTreeHand .world-tree-hand-group>header{height:13px}.world-tree-3d-stage>#worldTreeHand .world-tree-card{height:88px;min-width:50px;padding-top:18px}.world-tree-3d-stage>#worldTreeHand .world-tree-card>img{height:29px}.world-tree-3d-stage>#worldTreeHand .world-tree-card>small{display:none}}
.ladder-battle-stage{background-color:#0e2022;background-image:var(--battle-scene);background-position:center;background-size:cover}.ladder-battle-stage:after{content:'';position:absolute;z-index:0;inset:0;background:linear-gradient(#07111933,#07111900 48%,#050b10b8),radial-gradient(ellipse at center,transparent 30%,#06101799 100%);pointer-events:none}.ladder-battle-canvas{position:absolute;z-index:1;inset:0;overflow:hidden;pointer-events:none}.ladder-battle-canvas canvas{position:absolute;inset:0;width:100%!important;height:100%!important}.ladder-battle-canvas.has-3d~.ladder-fighter img{opacity:0}.ladder-battle-canvas.has-3d~.ladder-versus>span{opacity:.42}.ladder-fighter,.ladder-versus,.ladder-damage{z-index:4}.ladder-fighter-meta{position:relative;z-index:5}.ladder-fighter img{transition:opacity .2s,transform .2s,filter .2s}
.world-tree-stage-dock{position:absolute;z-index:8;left:50%;bottom:8px;transform:translateX(-50%);width:min(1040px,calc(100% - 24px));display:grid;gap:6px;pointer-events:none}.world-tree-stage-dock>#worldTreeCompanions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:6px;border:1px solid #765338;border-radius:14px;background:#fff1b9e8;box-shadow:0 7px 16px #274a2e66;pointer-events:auto}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion{height:62px;padding:5px 38px 5px 5px;background:linear-gradient(145deg,#fff8d8,#e2c078);border-color:#8b633b;color:#3e322b}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion img{width:38px;height:38px;background:#fff3c4}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion b{font-size:8px}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion small{font-size:6px}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion em{right:4px;width:29px;font-size:6px;background:#fff0b8;color:#6d5127}.world-tree-stage-dock>#worldTreeHand{position:relative;left:auto;bottom:auto;transform:none;width:100%;display:grid;grid-template-columns:1.1fr .9fr;gap:8px;padding:7px 8px;border:1px solid #765338;border-radius:14px;background:#fff1b9ee;box-shadow:0 8px 18px #274a2e66;pointer-events:auto}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group{min-width:0;border-top:0;padding-top:0}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group>header{height:16px}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group>header b{font-size:8px;color:#4a3629}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group>header small{color:#7d6245;font-size:6px}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group>div{gap:4px;padding:0;overflow:hidden}.world-tree-stage-dock>#worldTreeHand .world-tree-card{flex:1 1 0;min-width:65px;height:106px;padding:22px 5px 5px;border-color:#8b633b;border-radius:9px;background:linear-gradient(155deg,#fff8d8,#e2c078);box-shadow:0 4px 8px #345b3744}.world-tree-stage-dock>#worldTreeHand .world-tree-card:hover{transform:translateY(-5px)}.world-tree-stage-dock>#worldTreeHand .world-tree-card>img{width:100%;height:38px;object-fit:contain}.world-tree-stage-dock>#worldTreeHand .world-tree-card>b{font-size:8px}.world-tree-stage-dock>#worldTreeHand .world-tree-card>small{font-size:6px;max-height:25px;overflow:hidden}.world-tree-stage-dock>#worldTreeHand .world-tree-card em{font-size:6px;bottom:4px}.world-tree-stage-dock>#worldTreeHand .world-tree-card-type{left:5px;top:5px;padding:2px 3px;font-size:6px}.world-tree-stage-dock>#worldTreeHand .world-tree-card strong{right:4px;top:5px;font-size:7px}
@media(max-width:650px){.world-tree-stage-dock{bottom:5px;width:calc(100% - 12px);gap:4px}.world-tree-stage-dock>#worldTreeCompanions{grid-template-columns:repeat(5,112px);overflow-x:auto;padding:4px;border-radius:10px}.world-tree-stage-dock>#worldTreeCompanions .world-tree-companion{height:54px}.world-tree-stage-dock>#worldTreeHand{grid-template-columns:1fr;gap:3px;padding:5px;border-radius:10px}.world-tree-stage-dock>#worldTreeHand .world-tree-hand-group>header{height:13px}.world-tree-stage-dock>#worldTreeHand .world-tree-card{height:88px;min-width:50px;padding-top:18px}.world-tree-stage-dock>#worldTreeHand .world-tree-card>img{height:29px}.world-tree-stage-dock>#worldTreeHand .world-tree-card>small{display:none}}
.world-tree-3d-stage{min-height:720px}.world-tree-3d-stage .world-tree-three-scene,.world-tree-3d-stage .world-tree-3d-fallback{bottom:235px}.world-tree-3d-stage .world-tree-2d-hit-layer{bottom:235px;padding-bottom:28px}.world-tree-stage-dock{bottom:10px}.world-tree-stage-dock:before{content:"";position:absolute;left:0;right:0;top:-10px;border-top:1px solid #fff1b966;pointer-events:none}
@media(max-width:650px){.world-tree-3d-stage{min-height:650px}.world-tree-3d-stage .world-tree-three-scene,.world-tree-3d-stage .world-tree-3d-fallback{bottom:285px}.world-tree-3d-stage .world-tree-2d-hit-layer{bottom:285px;padding:34px 24px 20px 54px}.world-tree-stage-dock{bottom:6px}}
@media(max-width:650px){.world-tree-field{padding:10px 7px}.world-tree-field:after{background:linear-gradient(90deg,#07110f4d,#07110fb8)}}
.world-tree-field.world-tree-3d-only{padding:0;min-height:0;background:transparent;overflow:visible}
.world-tree-field.world-tree-3d-only:after{display:none}
.world-tree-field.world-tree-3d-only>.world-tree-canopy{display:none}
.world-tree-field.world-tree-3d-only>.world-tree-routes{width:100%;display:block}
.world-tree-field.world-tree-3d-only .world-tree-route{display:none}
.world-tree-field.world-tree-3d-only .world-tree-route-hit,.world-tree-field.world-tree-3d-only .world-tree-route-hit.active,.world-tree-field.world-tree-3d-only .world-tree-route-hit.target-ready{border-color:transparent;background:transparent;box-shadow:none}
.world-tree-field.world-tree-3d-only .world-tree-route-hit-button{outline:0}
.world-tree-field.world-tree-3d-only>.world-tree-events{z-index:12}
@media(max-width:650px){.world-tree-field.world-tree-3d-only>.world-tree-events{margin:8px 8px 0;width:auto}}

/* World Tree tactical table: high-contrast top-down board, fan hand and a
   separate persistent companion roster. Hit zones remain visually inert. */
.world-tree-field.world-tree-3d-only .world-tree-3d-stage{min-height:790px;border:2px solid #587362;border-radius:12px;background:#101b17;box-shadow:inset 0 0 0 1px #93ad8955,0 18px 42px #02070dcc}
.world-tree-field.world-tree-3d-only .world-tree-three-scene,.world-tree-field.world-tree-3d-only .world-tree-3d-fallback{bottom:238px;background:#101b17}
.world-tree-field.world-tree-3d-only .world-tree-2d-hit-layer{bottom:238px;padding:34px 6.5% 26px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr;gap:1.8%;pointer-events:none}
.world-tree-field.world-tree-3d-only .world-tree-route-hit,.world-tree-field.world-tree-3d-only .world-tree-route-hit.active,.world-tree-field.world-tree-3d-only .world-tree-route-hit.target-ready{border:0;background:transparent;box-shadow:none}
.world-tree-field.world-tree-3d-only .world-tree-route-hit-button{pointer-events:auto;outline:0;background:transparent}
.world-tree-field.world-tree-3d-only .world-tree-3d-hint{right:14px;top:13px;border:1px solid #5c819b;border-radius:5px;background:#071522e8;color:#cbeeff;box-shadow:0 6px 18px #0008;font-size:9px}
.world-tree-field.world-tree-3d-only .world-tree-3d-stage.is-targeting .world-tree-3d-hint{border-color:#ffd761;background:#31270de8;color:#fff1ae}
.world-tree-field.world-tree-3d-only .world-tree-target-arrow path{stroke:#ffe164;stroke-width:4.5;filter:drop-shadow(0 0 4px #000) drop-shadow(0 0 9px #ffb21d)}
.world-tree-field.world-tree-3d-only .world-tree-target-arrow circle{fill:#ffe16440;stroke:#fff6bd;stroke-width:3}
.world-tree-action-queue{position:absolute;z-index:11;left:12px;top:12px;width:min(400px,52%);padding:8px;border:1px solid #43657c;border-radius:7px;background:#071522e8;box-shadow:0 8px 22px #0009;color:#d8edf6;pointer-events:auto}
.world-tree-action-queue header{display:flex;align-items:center;gap:8px;padding:0 2px 6px}.world-tree-action-queue header span{font-size:8px;color:#8eb0c2}.world-tree-action-queue header b{color:#ffe06b;font-size:10px}.world-tree-action-queue header small{margin-left:auto;color:#708c9b;font-size:7px}.world-tree-action-queue>div{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin}.world-tree-action-queue button{flex:0 0 116px;height:42px;padding:4px;border:1px solid #3e6177;border-radius:5px;background:#10283a;color:#e7f3f7;display:grid;grid-template-columns:31px 1fr 14px;align-items:center;gap:5px;text-align:left}.world-tree-action-queue button:hover{border-color:#ffd761;background:#19364a}.world-tree-action-queue button>img{width:31px;height:31px;object-fit:contain;background:#071522;border-radius:4px}.world-tree-action-queue button>svg{width:13px;color:#ffd761}.world-tree-action-queue button>span{min-width:0}.world-tree-action-queue button b,.world-tree-action-queue button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-tree-action-queue button b{font-size:8px}.world-tree-action-queue button small{margin-top:3px;color:#8fb0bf;font-size:6px}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock{left:0;right:0;bottom:0;transform:none;width:100%;height:238px;display:block;padding:0;pointer-events:none;background:linear-gradient(180deg,transparent 0,#07111dcc 17%,#050a11 100%)}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock:before{left:3%;right:3%;top:55px;border-top-color:#4b718766}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions{position:absolute;z-index:3;left:50%;top:4px;transform:translateX(-50%);width:min(680px,84%);height:51px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:4px;border:1px solid #3e6177;border-radius:7px;background:#0a1b28e8;box-shadow:0 8px 18px #0008;overflow:visible;pointer-events:auto}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion{height:41px;min-width:0;padding:3px 30px 3px 3px;grid-template-columns:33px minmax(0,1fr);gap:4px;border:1px solid #315368;border-radius:5px;background:#102638;color:#dff1f7;box-shadow:none}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion:hover{border-color:#78d8ef}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion.selected{border-color:#ffd761;background:#3a3015;box-shadow:0 0 12px #ffd76155}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion.cooling{filter:saturate(.45);opacity:.56}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion img{width:32px;height:32px;border-radius:4px;background:#071522}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion b{font-size:7px;color:#e9f6fa}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion small{font-size:6px;color:var(--attribute-color)}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion em{right:3px;width:25px;padding:3px 2px;border-radius:3px;background:#18374b;color:#9dc7d8;font-size:5px}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand{position:absolute;z-index:2;left:50%;bottom:-8px;transform:translateX(-50%);width:min(900px,94%);height:184px;min-height:0;display:flex;align-items:flex-end;justify-content:center;gap:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;perspective:900px;overflow:visible;pointer-events:auto;touch-action:none}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card{--wa-accent:#62d6e9;position:relative;flex:0 0 118px;width:118px;height:156px;min-width:0;min-height:0;margin:0 -19px;padding:0;border:2px solid #33566c;border-radius:8px;background:#101d27;color:#edf7fa;box-shadow:0 15px 26px #000c,inset 0 0 0 2px #08121a,inset 0 0 28px color-mix(in srgb,var(--wa-accent) 18%,transparent);overflow:hidden;text-align:left;transform-origin:50% 128%;transform:translateY(var(--wa-rise,0)) rotate(var(--wa-angle,0deg));transition:transform .18s cubic-bezier(.2,.75,.2,1),border-color .16s,box-shadow .16s;z-index:calc(20 + var(--wa-order,0));cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card:hover,.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card:focus-visible,.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card.selected{border-color:var(--wa-accent);background:#172b38;box-shadow:0 24px 38px #000e,0 0 0 1px var(--wa-accent),0 0 24px color-mix(in srgb,var(--wa-accent) 48%,transparent);transform:translateY(-23px) rotate(0) scale(1.045);z-index:80;outline:0}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card.dragging{transition:none;transform:translate3d(var(--wa-drag-x,0),var(--wa-drag-y,0),120px) rotate(var(--wa-drag-rotate,0deg)) scale(1.07);z-index:100;opacity:.88;filter:brightness(1.12)}
.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card:before{content:"";position:absolute;inset:4px;height:auto;border:1px solid color-mix(in srgb,var(--wa-accent) 55%,#20394a);border-radius:5px;background:transparent;pointer-events:none}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card:after{content:"";position:absolute;left:17px;right:17px;top:59px;height:1px;background:var(--wa-accent);box-shadow:0 0 10px var(--wa-accent);opacity:.72}
.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-art{position:absolute;left:7px;right:7px;top:7px;height:54px;border:1px solid #3e6177;border-radius:5px;background:radial-gradient(circle at 50% 70%,color-mix(in srgb,var(--wa-accent) 28%,transparent),transparent 66%),#132b3a;display:grid;place-items:center;overflow:hidden}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-art img{width:70px;height:52px;object-fit:contain;filter:drop-shadow(0 5px 5px #0009)}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-art>svg{width:34px;height:34px;color:var(--wa-accent);filter:drop-shadow(0 0 9px var(--wa-accent))}
.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-orb{position:absolute;z-index:3;left:6px;top:6px;width:27px;height:27px;border:2px solid #e4f5fa;border-radius:50%;display:grid;place-items:center;background:var(--wa-accent);color:#071019;box-shadow:0 3px 8px #000b,0 0 12px var(--wa-accent)}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-orb svg{width:13px;height:13px}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-priority{position:absolute;z-index:3;right:7px;top:8px;max-width:73px;color:#fff3bd;font:900 6px var(--display);font-style:normal;text-align:right;text-shadow:0 1px 3px #000}
.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy{position:absolute;left:7px;right:7px;top:66px;bottom:7px;padding:7px 5px;border:1px solid #36566a;border-radius:3px;background:#091722;text-align:center;overflow:hidden}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy b{display:block;color:#eff8fa;font:900 10px var(--display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy small{display:-webkit-box;margin-top:5px;color:#a9c2ce;font-size:7px;line-height:1.4;overflow:hidden;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.world-tree-hand-empty{align-self:center;padding:12px 18px;border:1px dashed #46687c;border-radius:6px;background:#0b1a25;color:#89a9b8;font-size:9px}
.world-tree-field.world-tree-3d-only~.world-tree-command{min-height:0;padding:10px 14px;background:#091522;border-top-color:#36576e;grid-template-columns:1fr}.world-tree-field.world-tree-3d-only~.world-tree-command .world-tree-planning{display:none}.world-tree-field.world-tree-3d-only~.world-tree-command .world-tree-submit{grid-column:1;display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center}.world-tree-field.world-tree-3d-only~.world-tree-command .world-tree-submit>div{text-align:left}
@media(max-width:650px){.world-tree-field.world-tree-3d-only .world-tree-3d-stage{min-height:720px}.world-tree-field.world-tree-3d-only .world-tree-three-scene,.world-tree-field.world-tree-3d-only .world-tree-3d-fallback{bottom:224px}.world-tree-field.world-tree-3d-only .world-tree-2d-hit-layer{bottom:224px;padding:34px 3% 22px;gap:1%}.world-tree-field.world-tree-3d-only .world-tree-3d-hint{right:7px;top:7px;max-width:47%;padding:5px 7px;font-size:6px}.world-tree-action-queue{left:6px;top:6px;width:48%;padding:5px}.world-tree-action-queue header{padding-bottom:4px}.world-tree-action-queue header small{display:none}.world-tree-action-queue button{flex-basis:88px;height:35px;grid-template-columns:25px 1fr 11px}.world-tree-action-queue button>img{width:25px;height:25px}.world-tree-field.world-tree-3d-only .world-tree-stage-dock{height:224px}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions{top:3px;width:calc(100% - 10px);height:46px;gap:3px;padding:3px;overflow:hidden}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion{height:38px;padding:2px;display:grid;grid-template-columns:1fr;place-items:center}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion img{width:31px;height:31px}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion>span,.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeCompanions .world-tree-companion>em{display:none}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand{bottom:-4px;width:100%;height:174px;padding-right:0}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card{flex-basis:96px;width:96px;height:135px;margin:0 -30px}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand[data-card-count="1"] .world-tree-card,.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand[data-card-count="2"] .world-tree-card,.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand[data-card-count="3"] .world-tree-card{margin:0 -8px}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-art{height:45px}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy{top:55px}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy b{font-size:8px}.world-tree-field.world-tree-3d-only .world-tree-card .wa-card-copy small{font-size:6px;-webkit-line-clamp:4}.world-tree-field.world-tree-3d-only .world-tree-stage-dock>#worldTreeHand .world-tree-card:after{top:50px}.world-tree-field.world-tree-3d-only~.world-tree-command{padding:8px;grid-template-columns:1fr}.world-tree-field.world-tree-3d-only~.world-tree-command .world-tree-target{display:none}.world-tree-field.world-tree-3d-only~.world-tree-command .world-tree-submit{grid-column:auto;grid-template-columns:1fr 142px}}

/* World Tree Duel: a separate, readable preparation gate below the existing
   tactical sandbox.  The battle state remains independent from the five-round
   World Tree run so opening/closing this module cannot reset that run. */
.ranked-duel-bar{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 26px;border:1px solid #765338;border-radius:14px;background:linear-gradient(115deg,#1c3027,#13231f 58%,#2c2520);color:#f6f2d6;box-shadow:0 14px 34px #1a2a1d55}.ranked-duel-bar-copy{min-width:0}.ranked-duel-bar-copy .world-tree-kicker{color:#f3d85a}.ranked-duel-bar h3{margin:5px 0 6px;font:900 28px var(--display);letter-spacing:.08em}.ranked-duel-bar p{margin:0;color:#bed1c5;font-size:11px;line-height:1.7}.ranked-duel-bar-meta{display:flex;align-items:center;gap:10px;flex:0 0 auto}.ranked-duel-bar-meta>span{display:flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid #557466;border-radius:999px;color:#d8e9dd;font-size:9px}.ranked-duel-bar-meta svg{width:13px;color:#ffd75b}.ranked-duel-bar-meta button{height:40px;white-space:nowrap}.ranked-duel-panel{margin-top:14px;padding:22px;border:1px solid #765338;border-radius:14px;background:#112019;color:#eef4e8;box-shadow:0 18px 40px #14251966}.ranked-duel-panel.hidden{display:none}.ranked-duel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.ranked-duel-head h3{margin:0 0 5px;font:900 22px var(--display)}.ranked-duel-head p{margin:0;color:#a5beb0;font-size:10px}.ranked-duel-progress{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.ranked-duel-progress span{padding:6px 9px;border:1px solid #3f6252;border-radius:999px;color:#b9d4c2;font-size:9px}.ranked-duel-progress span.active{border-color:#f1d454;background:#3c3514;color:#ffe991}.ranked-duel-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px}.ranked-duel-side{display:grid;gap:12px;align-content:start}.ranked-duel-section{padding:13px;border:1px solid #315344;border-radius:10px;background:#0d1a15}.ranked-duel-section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.ranked-duel-section>header b{font-size:12px}.ranked-duel-section>header small{color:#8da99a;font-size:9px}.ranked-duel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ranked-duel-pet{position:relative;min-height:132px;padding:6px;border:1px solid #2e4d40;border-radius:9px;background:linear-gradient(155deg,#152c23,#0a1713);color:#e9f4eb;text-align:left;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s;overflow:hidden}.ranked-duel-pet:hover{transform:translateY(-2px);border-color:#76d3a2}.ranked-duel-pet img{display:block;width:100%;height:70px;object-fit:contain}.ranked-duel-pet b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.ranked-duel-pet small{display:block;margin-top:3px;color:#a9c4b4;font-size:8px}.ranked-duel-pet em{position:absolute;right:5px;top:5px;padding:2px 5px;border-radius:999px;background:var(--rarity);color:#102018;font:900 8px var(--display);font-style:normal}.ranked-duel-pet .duel-pet-stars{position:absolute;left:6px;top:7px;color:#ffdc58;font-size:9px}.ranked-duel-pet.ban{opacity:.48;filter:grayscale(.7);border-color:#c45665;background:#27191c}.ranked-duel-pet.ban:after{content:'BAN';position:absolute;inset:0;display:grid;place-items:center;color:#ff8993;font:900 20px var(--display);letter-spacing:.12em;background:#29151a88}.ranked-duel-pet.order{border-color:#f2d456;box-shadow:inset 0 0 0 2px #f2d45655,0 0 13px #f2d45622}.ranked-duel-pet.order:after{content:attr(data-order);position:absolute;left:6px;top:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#f2d456;color:#172117;font:900 11px var(--display)}.ranked-duel-order{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ranked-duel-order .ranked-duel-pet{min-height:112px}.ranked-duel-order .ranked-duel-pet img{height:55px}.ranked-duel-empty{padding:20px;border:1px dashed #4b7763;color:#90ae9d;text-align:center;font-size:10px}.ranked-duel-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:15px;border-top:1px solid #2c493d}.ranked-duel-actions small{color:#9bb7a7;font-size:9px}.ranked-duel-actions .button-row{display:flex;gap:8px}.ranked-duel-match{display:grid;gap:15px}.ranked-duel-matchbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #3d634f;border-radius:10px;background:linear-gradient(100deg,#152d22,#201d18);}.ranked-duel-matchbar strong{font:900 18px var(--display)}.ranked-duel-matchbar span{color:#b6cbbd;font-size:10px}.ranked-duel-vs{color:#ffd45b;font:900 24px var(--display)}.ranked-duel-lineups{display:grid;grid-template-columns:1fr 70px 1fr;align-items:center;gap:10px}.ranked-duel-lineup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ranked-duel-lineup .ranked-duel-pet{min-height:128px}.ranked-duel-lineup.enemy .ranked-duel-pet{background:linear-gradient(155deg,#332324,#171517);border-color:#714247}.ranked-duel-lineup.enemy .ranked-duel-pet em{background:#d36e79}.ranked-duel-turns{display:grid;gap:8px;padding:12px;border:1px solid #315344;border-radius:10px;background:#0c1914}.ranked-duel-turns p{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border-bottom:1px solid #234033;color:#bdd1c4;font-size:10px}.ranked-duel-turns p:last-child{border-bottom:0}.ranked-duel-turns i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f1d454;color:#172117;font-style:normal;font-weight:900}.ranked-duel-health{height:6px;margin-top:6px;border-radius:999px;background:#253c31;overflow:hidden}.ranked-duel-health i{display:block;height:100%;background:#64d49b}.ranked-duel-health.enemy i{background:#e2767e}@media(max-width:800px){.ranked-duel-bar{display:grid;padding:18px}.ranked-duel-bar-meta{flex-wrap:wrap}.ranked-duel-layout{grid-template-columns:1fr}.ranked-duel-lineups{grid-template-columns:1fr}.ranked-duel-vs{text-align:center}.ranked-duel-lineup{max-width:none}.ranked-duel-head{display:grid}.ranked-duel-progress{justify-content:flex-start}}@media(max-width:520px){.ranked-duel-grid{grid-template-columns:repeat(3,minmax(84px,1fr));overflow:auto}.ranked-duel-pet{min-height:116px}.ranked-duel-pet img{height:56px}.ranked-duel-actions{display:grid}.ranked-duel-actions .button-row{width:100%}.ranked-duel-actions button{flex:1}.ranked-duel-lineup .ranked-duel-pet{min-height:110px}.ranked-duel-lineup .ranked-duel-pet img{height:48px}}
/* Selected nine-pet candidates are outlined before the Ban step. */
.ranked-duel-pet.selected{border-color:#6ed6a2;box-shadow:inset 0 0 0 2px #6ed6a244}
.ranked-duel-draft{display:grid;grid-template-columns:1fr 1fr;gap:14px}.duel-team-grid{display:grid;gap:9px}.duel-team-card{display:grid;gap:5px;width:100%;padding:12px;text-align:left;border:1px solid #315344;border-radius:9px;background:linear-gradient(135deg,#142b21,#0c1713);color:#e8f4ea;transition:.16s}.duel-team-card:hover:not(:disabled){transform:translateY(-2px);border-color:#77dca8}.duel-team-card.selected{border-color:#f2d456;box-shadow:inset 0 0 0 2px #f2d45655,0 0 18px #f2d45622}.duel-team-card.ban{border-color:#c45665;background:#29171a;color:#ffb1b3;opacity:.66}.duel-team-card:disabled{cursor:default}.duel-team-card>b{font-size:12px}.duel-team-card>span{font-size:10px;color:#d3e3d6}.duel-team-card>small{font-size:8px;color:#9fc2aa}.duel-countdown{display:inline-grid;place-items:center;min-width:38px;height:28px;margin-left:5px;border:1px solid #f2d456;border-radius:999px;color:#ffe991;font-size:12px}.duel-active-card{padding:9px;border:1px solid #d5bb5c;background:#1b281e;border-radius:10px}.duel-energy{padding:8px 3px 1px;color:#dceba9;font-size:10px}.duel-command-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #315344;border-radius:10px;background:#0d1a15}.duel-command-bar>span{margin-right:auto;color:#f1d454;font:800 13px var(--display)}.duel-command-bar .secondary.active{border-color:#f1d454;color:#ffe991;background:#3b3415}.duel-command-bar button{min-height:35px;font-size:10px}.duel-command-bar button:disabled{opacity:.38}
@media(max-width:700px){.ranked-duel-draft{grid-template-columns:1fr}.duel-command-bar>span{width:100%;margin-right:0}.duel-command-bar button{flex:1;min-width:120px}.ranked-duel-draft .ranked-duel-section{padding:10px}}

.ranked-duel-heading{position:relative;display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.ranked-duel-heading h2{margin:0;font:800 34px var(--display)}.ranked-duel-heading>div>span{color:var(--muted);font-size:11px}.ranked-duel-heading-actions{display:flex;align-items:center;gap:10px}.ranked-duel-heading-actions>span{padding:8px 11px;border-left:2px solid #55c99a;background:#14251e;color:#9fd9bf;font-size:10px}.ranked-duel-kicker{color:#f3d85a;font:800 10px var(--display)}