/* V9.2: battlefield, hand and transport share one viewport. */
.gui-playing{height:100dvh;min-height:0!important;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0!important}.gui-playing .masthead{height:54px;min-height:54px;margin:0;padding:0 16px;border-radius:0;gap:12px}.gui-playing .desk-nav,.gui-playing .head-right,.gui-playing>footer,.gui-playing>.mobile-nav{display:none}.gui-playing main{flex:1;min-height:0;display:flex;flex-direction:column;width:calc(100% - 20px);max-width:1440px;margin:0 auto;overflow:hidden}.game-shortcuts{display:flex;gap:7px;margin-left:auto}.game-shortcuts button,.gui-dialog button,.gui-bag-close{min-height:44px;padding:8px 15px;border:1px solid #bbcfcd;background:#fffdf5;color:#234c5a;border-radius:8px;font:600 12px AdventureText;cursor:pointer}.game-shortcuts button:first-child{background:#ffe3a7;border-color:#edbe65}.gui-playing button:focus-visible{outline:3px solid #edac43;outline-offset:2px}.gui-playing .sv-run{position:relative;flex:1;min-height:0;display:grid;grid-template-rows:52px 32px minmax(0,1fr) 48px;gap:0;margin:5px 0;max-width:none}.gui-playing .sv-phase-draft{grid-template-rows:52px 32px minmax(0,1fr)}.sv-run>.sv-error{position:absolute;top:80px;left:5%;right:5%;z-index:50}.sv-run>.sv-hud{padding:5px 14px;border-radius:10px 10px 0 0;min-height:0}.sv-hud>div:first-child{display:grid;grid-template-columns:auto auto;column-gap:12px;align-items:center}.sv-hud>div:first-child>small{grid-column:1}.sv-hud>div:first-child>strong{grid-column:1;font-size:21px}.sv-boss-countdown{grid-column:2;grid-row:1/3;padding:6px 9px;border:1px solid #d5b57066;border-radius:6px;font-size:10px;color:#ffe0a5}.sv-run .sv-hud-chips{gap:12px}.sv-run .sv-hud-chips>span{font-size:8px}.sv-run .sv-hud-chips b{font-size:21px}.sv-run>.sv-subhud{margin:0;padding:0 12px;min-height:0;gap:10px;font-size:9px;overflow:hidden}.sv-run .sv-subhud .sv-btn,.sv-run .sv-seed{min-height:30px;padding:5px;font-size:9px}.sv-run>.sv-draft,.sv-run>.sv-world,.sv-run>.sv-preview,.sv-run>.sv-rewards,.sv-run>.sv-support,.sv-run>.sv-end{min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;border-radius:0}.sv-run .sv-draft{padding:16px}.sv-run .sv-draft .sv-section-head{margin:0 0 12px}.sv-run .sv-offers{margin:0;gap:18px}.sv-run .sv-offer{max-width:190px}.sv-run .sv-drafted{margin-top:12px}.sv-run .sv-world{display:flex;flex-direction:column;position:relative}.sv-run .sv-panorama{flex:1;min-height:145px}.sv-run .sv-world-caption{top:17px}.sv-run .sv-world-caption h2{font-size:32px}.sv-run .sv-world>.sv-section-head{margin:0;padding:10px 20px}.sv-run .sv-world>.sv-section-head h2{font-size:23px}.sv-run .sv-route-cards{gap:20px;margin:0;padding:0 20px 16px;flex-shrink:0}.sv-run .sv-route-card{min-height:0}.sv-run .sv-route-art{height:100px}.sv-run .sv-route-copy{padding:11px 15px;gap:5px}.sv-run .sv-route-copy strong{font-size:27px}.sv-run .sv-route-card>b{padding:12px}.sv-run .sv-map-history{display:none}.sv-run .sv-marker{bottom:8px}.sv-run .sv-routes{height:110px;bottom:15px}.sv-run .sv-waypoint{bottom:100px}.sv-run .sv-preview{padding:14px 22px}.sv-run .sv-preview .sv-section-head{margin:0 0 10px}.sv-run .sv-preview .sv-section-head h2{font-size:29px}.sv-run .sv-intel{margin:8px 0}.sv-run .sv-enemy-preview{margin:12px 0;gap:20px}.sv-run .sv-enemy-preview .sv-fighter{width:105px}.sv-run .sv-preview>.sv-actions{position:sticky;bottom:0;background:#fffdf3;padding:8px;z-index:2}.sv-boss-route-art{position:absolute;inset:3px 25%;display:flex;justify-content:center}.sv-boss-route-art img{height:100%;object-fit:contain;filter:drop-shadow(0 3px 8px #17112d)}.sv-boss-banner{display:flex;align-items:center;gap:15px;background:linear-gradient(100deg,#482c4b,#9c4d49);color:#fff4d3;padding:9px 16px;border-radius:8px;margin-bottom:10px}.sv-boss-banner>div:last-child{display:grid;gap:2px}.sv-boss-banner small{font-size:9px;letter-spacing:2px}.sv-boss-banner strong{font:700 32px AdventureDisplay}.sv-boss-banner span{font-size:11px}.sv-boss-portrait{height:85px;width:90px}.sv-boss-portrait img{height:100%;width:100%;object-fit:contain}.sv-boss-badge{position:absolute;top:-7px;left:50%;transform:translateX(-50%);z-index:4;color:#fff3d5;background:#8f3742;padding:3px 8px;border:1px solid #f9c97c;border-radius:4px;font:700 9px AdventureText}.sv-boss-meter{display:flex;align-items:center;gap:10px;background:#572d3b;color:#fff1d3;min-height:25px;padding:3px 14px;font-size:10px;grid-area:boss}.sv-boss-meter progress{flex:1;min-width:0;height:9px;accent-color:#ffb566}.sv-boss-meter small{font-size:9px;white-space:nowrap}.sv-boss-meter b{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sv-run>.sv-battle{min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:54px 26px minmax(0,1fr) auto 30px 180px;grid-template-areas:'controls' 'hint' 'board' 'boss' 'live' 'hand';border-radius:0;overflow:hidden}.sv-battle>.sv-battle-top{grid-area:controls;display:flex;align-items:center;padding:4px 15px;min-height:0;gap:10px}.sv-battle-top>div:first-child{display:flex;align-items:center;gap:14px}.sv-battle-top h2{font-size:25px;white-space:nowrap}.sv-battle-top small{font-size:8px}.sv-battle .sv-battle-controls{display:flex;gap:7px;margin:0}.sv-battle-controls .sv-btn{min-height:44px;padding:8px 13px;font-size:11px}.sv-battle>.sv-play-hint{grid-area:hint;padding:5px 15px;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sv-battle>.sv-board{grid-area:board;position:relative;min-height:0;display:grid;grid-template-rows:18px minmax(0,1fr) 16px minmax(0,1fr);padding:5px 14px 8px;overflow:hidden}.sv-board>.sv-enemy-field,.sv-board>.sv-player-field{display:flex;align-items:center;justify-content:safe center;gap:20px;padding:7px 0;min-height:0;overflow:auto;overscroll-behavior:contain}.sv-board>.sv-enemy-field{align-items:start}.sv-board>.sv-versus{text-align:center;font-size:16px;line-height:16px}.sv-board>.sv-side-label{font-size:8px;line-height:18px}.sv-board .sv-fighter{width:85px;flex:0 0 85px;min-width:0;position:relative}.sv-board .sv-fighter>.ki-card,.sv-board .sv-fighter>.sv-hxh{width:100%;margin:0}.sv-board .sv-hp{margin-top:4px;height:5px}.sv-board .sv-hp-label{font-size:8px;white-space:nowrap;display:block;text-align:center}.sv-board .sv-equipped{display:flex;flex-direction:column;gap:1px;font-size:7px;margin:2px 0 0;max-height:26px;overflow:auto}.sv-equipped>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:2px 3px}.sv-board .sv-status-icons{font-size:7px;line-height:10px;max-height:20px;overflow:auto}.sv-board .sv-empty{width:85px;flex:0 0 85px;min-height:0;height:125px;gap:4px;padding:4px}.sv-board .sv-empty b{font-size:24px}.sv-board .sv-empty span{font-size:7px}.sv-board .sv-empty small{font-size:8px}.sv-battle>.sv-live-event{grid-area:live;min-height:0;padding:6px 13px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sv-battle>.sv-hand{grid-area:hand;min-height:0;position:relative;padding:0 12px 7px;display:grid;grid-template-rows:39px minmax(0,1fr);gap:4px}.sv-hand>.sv-section-head{margin:0!important;display:flex!important;align-items:center;gap:10px}.sv-hand .sv-section-head>div{display:flex;align-items:center;gap:10px}.sv-hand h3{font-size:20px;margin:0!important}.sv-hand .sv-section-head small{font-size:8px}.sv-hand .sv-action-chip{margin-left:auto;padding:5px 8px;font-size:8px}.sv-hand [data-sv=deployAll]{min-height:32px;padding:5px 9px;font-size:10px}.sv-hand>.sv-hand-row{display:flex;overflow-x:auto;overflow-y:hidden;gap:12px;min-height:0;align-items:stretch;padding:0 2px 4px;scroll-snap-type:x proximity}.sv-hand-row>.sv-deck-pile{flex:0 0 83px;margin:0 3px 0 0;padding:5px;min-height:0;position:relative;gap:0;box-shadow:2px 2px 0 #93b6b4;border-radius:7px}.sv-deck-pile>b{display:none}.sv-deck-pile>strong{font-size:26px}.sv-deck-pile>span{font-size:8px}.sv-deck-pile>small{font-size:7px;line-height:1.3}.sv-deck-pile summary{font-size:8px;min-height:28px;padding:4px 0;cursor:pointer}.sv-deck-pile details[open] ul{position:fixed;bottom:230px;left:25px;max-height:40vh;overflow:auto;width:240px;background:#13364b;color:#fff5d8;border:1px solid #9dc7cd;padding:15px 25px;z-index:20;font-size:11px}.sv-hand-row>.sv-hand-card{position:relative;flex:0 0 190px;display:grid;grid-template-columns:65px 1fr;grid-template-rows:1fr 44px;gap:4px 10px;padding:7px;background:#edf4ed;border:1px solid #c6d9ce;border-radius:8px;min-height:0;scroll-snap-align:start}.sv-hand-title{grid-column:2;grid-row:1;align-self:center;font:700 20px/1.05 AdventureDisplay;color:#234d60}.sv-hand-card>.ki-card,.sv-hand-card>.sv-hxh{grid-column:1;grid-row:1/3;align-self:center;width:65px!important}.sv-hand-card>.sv-btn{grid-column:2;grid-row:2;padding:5px;font-size:10px;min-height:44px;align-self:end}.sv-hand-card.sv-hand-gear{grid-template-columns:1fr;flex-basis:215px}.sv-hand-gear>.sv-gear{grid-row:1;grid-column:1;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;gap:2px 7px;padding:0;border:0;background:none;min-height:0;box-shadow:none}.sv-hand-gear .sv-gear>.sv-object-art{grid-column:1;grid-row:1/4;width:42px;height:50px;margin:0;align-self:center}.sv-hand-gear .sv-gear>small{grid-column:2;font-size:7px}.sv-hand-gear .sv-gear>strong{grid-column:2;font-size:18px;line-height:1}.sv-hand-gear .sv-gear>p{grid-column:2;font-size:9px;line-height:1.2;margin:0;max-height:24px;overflow:auto}.sv-hand-gear .sv-gear>.sv-cost{position:absolute;bottom:54px;left:8px;font-size:7px;background:#edf4ed;padding:0}.sv-hand-gear .sv-editorial,.sv-hand-gear .sv-item-details{display:none}.sv-hand-gear>.sv-btn{grid-column:1;grid-row:2}.sv-scout{position:absolute;top:-28px;right:10px;padding:5px;background:#e7f7e3;font-size:9px;z-index:3}.sv-battle>.sv-log{position:absolute;right:14px;top:2px;display:none}.sv-impact-number{display:none!important}
.sv-run>.sv-drawer,.v8-bottom-zone{position:relative;min-height:0;z-index:15;margin:0}.sv-drawer>summary,.v8-base-drawer>summary{height:48px;min-height:48px!important;padding:6px 14px!important;gap:10px}.sv-drawer>summary:before,.v8-base-drawer>summary:before{display:none}.sv-drawer-faces .sv-mini-art{width:24px;height:30px}.sv-drawer-count{font-size:8px}.sv-drawer-grip,.v8-drawer-grip{display:none}.sv-drawer>summary b{font-size:10px}.sv-drawer-content,.v8-drawer-content{display:block;position:absolute;bottom:48px;left:0;right:0;max-height:min(580px,70dvh);overflow:auto;overscroll-behavior:contain;box-shadow:0 -15px 50px #102c4966;border:1px solid #a3c2c4;border-radius:12px 12px 0 0;padding:14px;background:#f6faef;z-index:16}.gui-bag-close{display:block;margin:0 0 9px auto;position:sticky;top:0;z-index:3;background:#ffe3a7}.gui-dialog,.sv-target-picker{position:fixed;inset:0;margin:auto;width:min(1000px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #8baab2;border-radius:15px;background:#f8fbf1;color:#234d60;box-shadow:0 20px 90px #0a243c99;font-family:AdventureText;overflow:auto}.gui-dialog::backdrop,.sv-target-picker::backdrop{background:#102f49b0;backdrop-filter:blur(4px)}.gui-dialog>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:13px 20px;background:#f8fbf1;border-bottom:1px solid #cedcd5}.gui-dialog header small{font-size:8px;letter-spacing:2px}.gui-dialog header h2{font:700 30px AdventureDisplay;margin:2px 0}.gui-map-body{padding:20px}.gui-map-body .ki-world{min-height:500px}.sv-overview-title{display:flex;justify-content:space-between;gap:15px}.sv-overview-title b{font:700 27px AdventureDisplay}.sv-overview-title span,.sv-overview>p{font-size:12px;color:#608188}.sv-map-track{display:flex;justify-content:space-around;gap:10px;padding:25px 0;overflow:auto}.sv-map-track>span{display:grid;justify-items:center;min-width:55px;gap:6px}.sv-map-track i{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#e2e9df;color:#60858a;border:2px solid #bfd2c6;font-style:normal;font-size:24px}.sv-map-track .current i{background:#ffdc93;color:#4c432d;border-color:#d79740}.sv-map-track .boss i{background:#733e4e;color:#ffe5b4;border-color:#c88669}.sv-map-track b{font-size:13px}.sv-map-track small{font-size:9px}.sv-map-choices{display:flex;gap:14px;margin:15px 0 25px}.sv-map-choices>button{display:grid;gap:8px;text-align:left;flex:1;padding:20px}.sv-map-choices>button span{font-size:10px;font-weight:400}.sv-target-picker{width:min(650px,calc(100% - 24px));padding:20px}.sv-target-picker[open]{display:grid;grid-template-columns:1fr;gap:12px}.sv-target-picker .sv-target-choice{min-width:0;max-width:none;display:grid;grid-template-columns:1fr auto;padding:12px;gap:7px}.sv-target-choice>small{grid-column:1}.sv-target-choice>.sv-btn{grid-column:2;grid-row:1/3;min-height:44px}.sv-target-choice strong{font-size:24px}
.gui-playing .rogue-v8{flex:1;min-height:0;display:flex;flex-direction:column;margin:5px 0;position:relative}.gui-playing .rogue-v8>.v7-hud{min-height:58px;padding:7px 14px;flex-shrink:0}.gui-playing .rogue-main{flex:1;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 48px;gap:0}.gui-playing .v7-game-screen{min-height:0;overflow:auto}.gui-playing .v8-journey{height:100%;min-height:0;border-radius:0}.gui-playing .v8-scene-layer{height:100%;min-height:0;display:flex;flex-direction:column}.gui-playing .v8-fullmap{display:none}.gui-playing .v8-choice-grid{margin:140px auto 105px;width:100%;max-width:1050px;gap:20px;padding:0 25px}.gui-playing .v8-choice{min-height:0}.gui-playing .v8-choice-art{height:100px}.gui-playing .v8-choice-body{padding:13px;gap:5px}.gui-playing .v8-choice-body strong{font-size:27px}.gui-playing .v8-choice-desc{min-height:0}.gui-playing .v8-choice-action{padding:13px}.gui-playing .v8-bottom-zone>.v8-base-drawer{height:48px}.gui-playing .v8-drawer-face{width:26px;height:32px}.gui-playing .v8-drawer-copy small{display:none}.gui-playing .v8-travel-caption h2{font-size:30px}.gui-playing .v8-base-drawer>summary{background:#133b50}
.gui-playing .battle-wrap{flex:1;min-height:0;position:relative;display:grid;grid-template-rows:38px minmax(0,1fr) 55px 72px;gap:0;margin:5px 0;overflow:hidden;border-radius:12px;background:#163b52}.gui-playing .battle-header{height:auto;min-height:0;padding:5px 14px;margin:0}.gui-playing .fight-field{position:relative;display:grid;grid-template-rows:minmax(0,1fr) 24px minmax(0,1fr);gap:4px;min-height:0;padding:10px 20px;margin:0;overflow:hidden}.gui-playing .fight-team{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:0;background:none;gap:5px}.gui-playing .fight-team>b{font-size:9px;line-height:15px}.gui-playing .fighter-grid{display:flex;justify-content:center;gap:23px;min-height:0}.gui-playing .fighter{width:100px;min-width:0}.gui-playing .fighter .ki-card{width:100%}.gui-playing .fighter .hp-bar{height:6px;margin-top:5px}.gui-playing .battle-center{min-height:0;font-size:20px;line-height:24px;position:static}.gui-playing .battle-center>b{font-size:21px}.gui-playing .battle-glare,.gui-playing .fight-action-text,.gui-playing .v52-ko-cinematic,.gui-playing .v51-live-compact{display:none}.gui-playing .v51-live-event{min-height:0;margin:0;padding:6px 15px;border-radius:0;font-size:11px;gap:10px;overflow:hidden}.gui-playing .v51-live-event>span{font-size:22px}.gui-playing .v51-live-event small{font-size:8px}.gui-playing .v51-live-event b{font-size:12px}.gui-playing .v52-live-portrait{width:30px;height:38px}.gui-playing .battle-bottom{padding:8px 15px;display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;background:#f4f6ed}.gui-playing .battle-controls{display:flex;gap:7px;flex-wrap:nowrap;margin:0}.gui-playing .battle-controls .btn{min-height:44px;padding:8px 13px;font-size:10px}.gui-playing [data-action=battleSpeed]{display:none}.gui-playing .battle-timeline{grid-column:1/3;margin:0;font-size:7px;color:#65808a}.gui-playing .timeline-track{height:3px}.gui-playing .log-toggle{font-size:9px;min-height:44px;color:#35576b}.gui-playing .fight-result{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff4d9f2;border:1px solid #e4b96a;border-radius:12px;color:#355367;padding:18px 35px;font:700 30px AdventureDisplay;white-space:nowrap;box-shadow:0 10px 40px #122d4166}.gui-playing .fight-result small{font-size:12px}.gui-playing .battle-log{position:absolute;inset:44px 15px 80px;z-index:12;overflow:auto;background:#102b42f5;color:#e8f1ea;padding:15px;border:1px solid #68919e}
.ad-auto5-entry{width:100%;display:flex;align-items:center;gap:22px;text-align:left;margin:20px 0;padding:20px 25px;border:1px solid #bed2c9;border-radius:12px;background:#fff8df;color:#294d60;cursor:pointer;font-family:AdventureText}.ad-auto5-entry>span{font:700 37px AdventureDisplay;white-space:nowrap}.ad-auto5-entry i{font-size:14px;color:#c67b35;font-style:normal}.ad-auto5-entry>div{display:grid;gap:5px}.ad-auto5-entry b{font:700 24px AdventureDisplay}.ad-auto5-entry small{font-size:12px}.ad-auto5-entry>strong{margin-left:auto;font-size:11px}.auto5{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:13px 0;color:#294f61;font-family:AdventureText}.a5-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.a5-head small{font-size:9px;letter-spacing:1px}.a5-head h1{font:700 32px AdventureDisplay;margin:3px 0}.a5-head h1 em{font-style:normal;color:#a17b42}.a5-btn{border:1px solid #c0d3ca;border-radius:7px;background:#fffdf3;color:#30556a;padding:7px 12px;min-height:44px;font:600 11px AdventureText;cursor:pointer}.a5-btn.active{background:#214b60;color:#fff5d8;border-color:#214b60}.a5-btn.primary{background:#f5b957;color:#3d4135;border-color:#dba042}.a5-btn:disabled{opacity:.45;cursor:default}.a5-teams{display:grid;grid-template-columns:1fr 1fr;gap:18px}.a5-teams>section{padding:9px 14px;background:#e9f1e6;border:1px solid #c2d6c5;border-radius:10px}.a5-teams>section:last-child{background:#e9eff2;border-color:#bdcfdb}.a5-team-title{display:flex;align-items:center;gap:10px;min-height:36px}.a5-team-title>div,.a5-team-title>.a5-btn{margin-left:auto}.a5-team-title .a5-btn{min-height:32px;padding:5px 9px;font-size:10px}.a5-team-title>strong{font:700 23px AdventureDisplay}.a5-team-title>span{font-size:10px}.a5-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:6px}.a5-slot{position:relative;border:1px dashed #a4bdba;border-radius:7px;background:#fffdf67d;color:#31566a;padding:4px 2px;min-width:0;display:grid;justify-items:center;align-content:center;cursor:pointer;min-height:102px}.a5-slot.filled{border-style:solid;background:#fffaf0}.a5-slot img{width:100%;height:63px;object-fit:contain}.a5-slot>span{font-size:26px;line-height:50px}.a5-slot b{font-size:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.a5-slot small{font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.a5-slot i{position:absolute;right:2px;top:0;font-style:normal}.a5-compose{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #c2d4cc;border-radius:10px;background:#fafff4;overflow:hidden}.a5-library-head{padding:9px 13px;display:flex;align-items:center;gap:13px;flex-shrink:0;border-bottom:1px solid #d5dfd5}.a5-library-head>div{display:grid;gap:3px;margin-right:auto}.a5-library-head b{font:700 22px AdventureDisplay}.a5-library-head small{font-size:9px}.a5-library-head input,.a5-library-head select,.a5-launch input{min-height:44px;border:1px solid #b9cec4;border-radius:7px;background:#fffdf8;color:#315367;padding:8px;font:11px AdventureText;max-width:100%;min-width:0}.a5-library{min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-content:start}.a5-choice{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid #c5d4c8;border-radius:7px;background:#fffdf4;min-width:0;text-align:left;color:#32556b;cursor:pointer;font-family:AdventureText}.a5-choice img{width:50px;height:65px;object-fit:contain}.a5-choice>span{display:grid;gap:4px;min-width:0}.a5-choice b{font-size:12px}.a5-choice small{font-size:8px}.a5-choice em{font-size:8px;font-style:normal;color:#68838d}.a5-choice.chosen{background:#dceccf;border-color:#85ae7d}.a5-choice:disabled:not(.chosen){opacity:.5}.a5-choice i{margin-left:auto}.a5-launch{display:flex;align-items:center;gap:20px;padding:9px 16px;background:#fff7dd;border:1px solid #dfd1a6;border-radius:9px;flex-shrink:0}.a5-launch label{font-size:8px;display:grid;gap:3px;width:140px}.a5-launch input{min-height:34px}.a5-launch p{font-size:11px;line-height:1.5;margin:0}.a5-launch small{font-size:9px;color:#748880}.a5-launch .primary{margin-left:auto}
/* Actual event metadata selects the effect. These layers never resolve damage. */
.combat-fx-layer{position:absolute;inset:0;z-index:10;pointer-events:none;overflow:hidden;color:var(--fx-color)}.combat-fx-layer svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.fx-travel path{fill:none;stroke:var(--fx-color);stroke-width:10;stroke-linecap:round;filter:drop-shadow(0 0 6px var(--fx-color));stroke-dasharray:1400;animation:ki-ray var(--fx-duration) ease-out both}.fx-travel .fx-core{stroke:#fffdf0;stroke-width:3}.fx-burst circle,.fx-burst path{fill:none;stroke:var(--fx-color);stroke-width:4;transform-origin:center;animation:ki-impact var(--fx-duration) ease-out both}.fx-caption{position:absolute;top:44%;left:50%;transform:translateX(-50%);max-width:90%;padding:6px 15px;border-radius:5px;background:#12364bd9;border:1px solid var(--fx-color);color:#fff9e7;font:700 20px AdventureDisplay;text-align:center;white-space:nowrap;animation:ki-caption .7s ease-out both}.fx-number{position:absolute;transform:translate(-50%,-70%);color:#fff9e8;font:700 29px AdventureDisplay;text-shadow:0 2px 3px #173b4a,0 0 5px var(--fx-color);animation:ki-number .8s ease-out both}.fx-melee .fx-travel,.fx-heal .fx-travel,.fx-shield .fx-travel,.fx-aura .fx-travel,.fx-status .fx-travel,.fx-evade .fx-travel,.fx-ko .fx-travel{display:none}.fx-melee circle,.fx-slash circle,.fx-counter circle{display:none}.fx-melee .fx-burst path,.fx-counter .fx-burst path{stroke-width:7}.fx-slash .fx-travel path{stroke-width:2}.fx-slash .fx-burst path{animation:ki-slash var(--fx-duration) ease-out both}.fx-blast .fx-travel path{stroke-width:20;stroke-dasharray:20 1400;animation:ki-blast var(--fx-duration) ease-out both}.fx-blast .fx-burst circle{fill:#fff9cd88;stroke-width:8}.fx-shockwave .fx-burst circle,.fx-aura .fx-burst circle{stroke-width:9;animation:ki-wave .6s ease-out both}.fx-heal .fx-burst path{d:path('M-13 0H13M0 -13V13');stroke-width:6}.fx-heal .fx-burst circle{stroke-width:2;animation:ki-heal .7s ease-out both}.fx-shield .fx-burst circle{stroke-width:5;fill:#78ddff26;animation:ki-shield .6s ease-out both}.fx-status .fx-burst path{stroke-dasharray:5 4}.fx-evade .fx-burst{opacity:.6}.fx-evade .fx-burst circle{display:none}.fx-ko .fx-burst path{stroke-width:8}.fx-ko .fx-burst circle{animation:ki-wave .7s ease-out both}@keyframes ki-ray{from{stroke-dashoffset:1400;opacity:0}30%{opacity:1}to{stroke-dashoffset:0;opacity:0}}@keyframes ki-impact{from{scale:.3;opacity:0}25%{opacity:1}to{scale:1.6;opacity:0}}@keyframes ki-slash{from{translate:-25px -20px;opacity:0}35%{opacity:1}to{translate:15px 10px;opacity:0}}@keyframes ki-blast{from{stroke-dashoffset:0;opacity:0}20%{opacity:1}to{stroke-dashoffset:-1400;opacity:0}}@keyframes ki-wave{from{scale:.2;opacity:1}to{scale:3;opacity:0}}@keyframes ki-heal{from{translate:0 20px;opacity:0}40%{opacity:1}to{translate:0 -30px;opacity:0}}@keyframes ki-shield{from{scale:.7;opacity:0}30%{scale:1.1;opacity:1}to{scale:1;opacity:0}}@keyframes ki-caption{0%{opacity:0}15%,70%{opacity:1}100%{opacity:0}}@keyframes ki-number{from{translate:0 0;opacity:1}to{translate:0 -35px;opacity:0}}
@media(max-height:790px){.sv-run>.sv-battle{grid-template-rows:50px 23px minmax(0,1fr) auto 27px 157px}.sv-board .sv-fighter{width:70px;flex-basis:70px}.sv-board .sv-empty{width:70px;flex-basis:70px;height:100px}.sv-hand-row>.sv-hand-card{grid-template-columns:55px 1fr}.sv-hand-card>.ki-card,.sv-hand-card>.sv-hxh{width:55px!important}.sv-run .sv-route-art{height:75px}.gui-playing .fighter{width:85px}.a5-slot{min-height:82px}.a5-slot img{height:47px}.a5-head h1{font-size:27px}.auto5{gap:8px}.gui-playing .v8-choice-grid{margin-top:115px;margin-bottom:85px}.gui-playing .v8-choice-art{height:80px}.gui-playing .v8-choice-desc{display:none}}
@media(max-width:900px){.sv-run .sv-hud-chips{gap:9px}.sv-boss-countdown{font-size:8px;padding:5px}.sv-hud>div:first-child{column-gap:8px}.sv-hand .sv-section-head small{display:none}.a5-library{grid-template-columns:repeat(3,minmax(0,1fr))}.a5-library-head{gap:7px}.a5-library-head small{display:none}.a5-library-head input{width:170px}.a5-library-head b{font-size:20px}.gui-playing .fighter-grid{gap:16px}.gui-playing .fighter{width:90px}.a5-teams{gap:10px}.a5-slot b{font-size:9px}}
@media(max-width:560px){.gui-playing .masthead{height:52px;min-height:52px;padding:0 10px;gap:8px}.gui-playing .wordmark,.gui-playing .wordmark b{font-size:27px}.gui-playing .ki-burst{width:24px;height:24px;font-size:13px}.game-shortcuts{gap:5px}.game-shortcuts button{padding:7px 11px;font-size:10px}.gui-playing main{width:calc(100% - 12px)}.gui-playing .sv-run{margin:4px 0;grid-template-rows:58px 30px minmax(0,1fr) 44px}.gui-playing .sv-phase-draft{grid-template-rows:58px 30px minmax(0,1fr)}.sv-run>.sv-hud{padding:5px 9px;gap:6px}.sv-hud>div:first-child{display:flex;flex-wrap:wrap;column-gap:5px;max-width:175px}.sv-hud>div:first-child>small{font-size:6px;width:100%}.sv-hud>div:first-child>strong{font-size:19px}.sv-boss-countdown{font-size:6px;padding:3px 4px}.sv-run .sv-hud-chips{gap:7px}.sv-run .sv-hud-chips>span{font-size:6px;gap:0}.sv-run .sv-hud-chips b{font-size:19px}.sv-run .sv-hud-chips>span:last-child{display:none}.sv-run>.sv-subhud{padding:0 6px;gap:6px}.sv-subhud>span{display:none}.sv-run .sv-subhud .sv-btn,.sv-run .sv-seed{font-size:8px;min-height:28px}.sv-run>.sv-battle{grid-template-rows:67px 22px minmax(0,1fr) auto 28px 170px}.sv-battle>.sv-battle-top{display:grid;grid-template-columns:1fr;padding:3px 7px;gap:1px}.sv-battle-top>div:first-child{justify-content:space-between;gap:5px}.sv-battle-top h2{font-size:20px}.sv-battle-top small{font-size:7px}.sv-battle .sv-battle-controls{gap:5px}.sv-battle-controls .sv-btn{font-size:9px;padding:5px 8px;min-height:40px}.sv-battle-controls [data-sv=round],.sv-battle-controls [data-sv=finishAnim]{flex:1}.sv-battle>.sv-play-hint{font-size:8px;padding:3px 8px;line-height:16px}.sv-battle>.sv-board{padding:3px 8px 5px;grid-template-rows:15px minmax(0,1fr) 13px minmax(0,1fr)}.sv-board>.sv-side-label{font-size:6px;line-height:15px}.sv-board>.sv-versus{font-size:13px;line-height:13px}.sv-board>.sv-enemy-field,.sv-board>.sv-player-field{gap:12px;padding:6px 1px}.sv-board .sv-fighter{width:68px;flex-basis:68px}.sv-board .sv-empty{width:68px;flex-basis:68px;height:103px;padding:4px}.sv-board .sv-empty small{font-size:7px}.sv-board .sv-empty span{font-size:6px}.sv-board .sv-hp-label{font-size:6px}.sv-board .sv-status-icons{font-size:6px;max-height:8px}.sv-board .sv-equipped{font-size:6px;max-height:20px}.sv-battle>.sv-live-event{padding:5px 9px;font-size:8px}.sv-battle>.sv-hand{padding:0 7px 4px;grid-template-rows:36px minmax(0,1fr)}.sv-hand .sv-section-head{gap:5px}.sv-hand .sv-section-head>div{gap:0}.sv-hand h3{font-size:19px}.sv-hand .sv-action-chip{font-size:6px;padding:4px;max-width:95px;text-align:center}.sv-hand [data-sv=deployAll]{font-size:8px;padding:5px 7px;min-height:32px}.sv-hand-row>.sv-hand-card{flex-basis:172px;grid-template-columns:60px 1fr;gap:3px 6px;padding:5px}.sv-hand-card>.ki-card,.sv-hand-card>.sv-hxh{width:60px!important}.sv-hand-title{font-size:18px}.sv-hand-card>.sv-btn{font-size:8px;padding:4px;min-height:42px}.sv-hand-row>.sv-deck-pile{flex-basis:69px}.sv-deck-pile>small{font-size:6px}.sv-hand-card.sv-hand-gear{grid-template-columns:1fr;flex-basis:190px}.sv-hand-gear .sv-gear>strong{font-size:16px}.sv-hand-gear .sv-gear>p{font-size:8px}.sv-hand-gear .sv-gear>small{font-size:6px}.sv-hand-gear .sv-gear>.sv-cost{font-size:6px;bottom:49px}.sv-drawer>summary,.v8-base-drawer>summary{height:44px;min-height:44px!important;padding:5px 9px!important;gap:5px}.sv-drawer>summary b{font-size:8px}.sv-drawer-count{font-size:6px}.sv-drawer-faces .sv-mini-art{width:19px;height:26px}.sv-drawer-content,.v8-drawer-content{bottom:44px}.sv-run .sv-world-caption h2{font-size:27px}.sv-run .sv-world-caption{left:15px;top:12px}.sv-run .sv-panorama{min-height:155px}.sv-run .sv-world>.sv-section-head{padding:8px 14px}.sv-run .sv-world>.sv-section-head h2{font-size:22px}.sv-run .sv-route-cards{padding:0 14px 12px;gap:13px;grid-auto-columns:83%;overflow-x:auto}.sv-run .sv-route-art{height:93px}.sv-run .sv-route-copy{padding:10px 13px}.sv-run .sv-route-copy p{font-size:10px}.sv-run .sv-route-copy strong{font-size:26px}.sv-run .sv-route-card>b{padding:12px}.sv-run .sv-preview{padding:12px}.sv-run .sv-preview .sv-section-head{display:block}.sv-run .sv-preview .sv-section-head h2{font-size:27px}.sv-boss-banner{padding:7px 10px;gap:9px}.sv-boss-portrait{height:64px;width:65px}.sv-boss-banner strong{font-size:29px}.sv-boss-banner span{font-size:8px}.sv-boss-banner small{font-size:7px}.sv-boss-meter{padding:4px 8px;gap:7px;font-size:8px;min-height:23px}.sv-boss-meter small{font-size:7px}.sv-run .sv-enemy-preview .sv-fighter{width:85px}.sv-run .sv-intel>span{padding:6px 8px}.sv-run .sv-intel b{font-size:18px}.sv-run .sv-rewards{padding:16px 13px}.sv-run .sv-reward-grid{display:grid;grid-auto-flow:column;grid-auto-columns:88%;grid-template-columns:none;overflow:auto;scroll-snap-type:x mandatory;gap:13px;padding:0 0 15px}.sv-run .sv-reward{min-height:300px;scroll-snap-align:center}.gui-dialog header{padding:10px 13px}.gui-map-body{padding:15px}.gui-dialog header h2{font-size:27px}.sv-overview-title{display:grid;gap:5px}.sv-overview-title b{font-size:25px}.sv-map-choices{flex-direction:column}.sv-map-choices>button{padding:15px}.sv-map-track{gap:7px}.sv-map-track>span{min-width:47px}.sv-map-track i{width:39px;height:39px}.gui-playing .rogue-v8>.v7-hud{min-height:65px;padding:5px 8px}.gui-playing .rogue-main{grid-template-rows:minmax(0,1fr) 44px}.gui-playing .v8-bottom-zone>.v8-base-drawer{height:44px}.gui-playing .v8-travel-caption{top:15px;left:14px}.gui-playing .v8-travel-caption h2{font-size:28px}.gui-playing .v8-select-header{position:absolute;top:105px;left:15px;right:15px;margin:0;padding:0;max-width:none}.gui-playing .v8-choice-grid,.gui-playing .v8-choice-grid.v8-single-choice{margin:140px 0 85px;padding:0 15px 8px;gap:16px;grid-auto-columns:83%}.gui-playing .v8-choice-art{height:100px}.gui-playing .v8-choice-body{gap:5px;padding:13px}.gui-playing .v8-choice-desc{font-size:9px}.gui-playing .v8-drawer-face{width:22px;height:28px}.gui-playing .v8-drawer-copy b{font-size:7px}.gui-playing .battle-wrap{margin:4px 0;grid-template-rows:36px minmax(0,1fr) 59px 88px}.gui-playing .battle-header{padding:4px 9px;font-size:8px}.gui-playing .battle-header .back-mini{font-size:8px}.gui-playing .fight-field{padding:4px 7px;grid-template-rows:minmax(0,1fr) 18px minmax(0,1fr);gap:0}.gui-playing .fighter-grid{gap:7px;max-width:100%}.gui-playing .fighter{width:61px}.gui-playing .fight-team>b{font-size:7px}.gui-playing .battle-center>b{font-size:18px}.gui-playing .fighter .hp-text{font-size:6px}.gui-playing .v51-live-event{padding:6px 10px;gap:7px}.gui-playing .v51-live-event b{font-size:10px}.gui-playing .battle-bottom{padding:5px 7px;gap:2px;grid-template-columns:1fr}.gui-playing .battle-controls{gap:5px}.gui-playing .battle-controls .btn{font-size:7px;padding:5px 6px;flex:1}.gui-playing .battle-timeline{grid-column:1}.gui-playing .log-toggle{min-height:19px;padding:1px;font-size:8px}.gui-playing .fight-result{font-size:25px;padding:16px 24px}.ad-auto5-entry{padding:16px;gap:12px}.ad-auto5-entry>strong{display:none}.ad-auto5-entry>span{font-size:29px}.ad-auto5-entry b{font-size:21px}.ad-auto5-entry small{font-size:10px}.auto5{gap:8px;padding:8px 0}.a5-head small{font-size:7px}.a5-head h1{font-size:24px;line-height:1.1}.a5-head h1 em{display:block}.a5-head .a5-btn{font-size:9px;padding:7px 9px}.a5-teams{gap:6px;grid-template-columns:1fr}.a5-teams>section{padding:5px 8px;border-radius:7px}.a5-team-title{min-height:27px;gap:7px}.a5-team-title>strong{font-size:19px}.a5-team-title .a5-btn{min-height:27px;font-size:8px;padding:4px 8px}.a5-slots{gap:5px;padding-top:3px}.a5-slot{min-height:65px;padding:2px}.a5-slot img{height:39px}.a5-slot>span{font-size:20px;line-height:35px}.a5-slot b{font-size:7px}.a5-slot small{font-size:6px}.a5-library-head{display:grid;grid-template-columns:1fr 90px;gap:5px;padding:6px}.a5-library-head>div{grid-column:1}.a5-library-head b{font-size:18px}.a5-library-head input{grid-column:1;grid-row:2;width:100%;min-height:36px}.a5-library-head select{grid-column:2;grid-row:2;min-height:36px;width:90px;font-size:9px}.a5-library-head>.a5-btn{grid-column:2;grid-row:1;min-height:30px;padding:4px;font-size:8px}.a5-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px}.a5-choice{gap:4px;padding:4px}.a5-choice img{width:32px;height:44px}.a5-choice b{font-size:10px}.a5-choice small{font-size:6px}.a5-choice em{font-size:6px}.a5-launch{padding:7px;gap:7px;flex-wrap:wrap}.a5-launch label{width:85px;font-size:6px}.a5-launch input{min-height:30px;font-size:9px}.a5-launch p{font-size:8px;flex:1;min-width:75px}.a5-launch small{font-size:6px}.a5-launch .primary{padding:7px 10px;font-size:9px;min-height:44px}.fx-caption{font-size:17px;padding:5px 10px}.fx-number{font-size:25px}}
@media(max-width:560px) and (max-height:740px){.sv-run>.sv-battle{grid-template-rows:64px 0 minmax(0,1fr) auto 25px 145px}.sv-battle>.sv-play-hint{display:none}.sv-board .sv-fighter{width:54px;flex-basis:54px}.sv-board .sv-empty{width:54px;flex-basis:54px;height:85px}.sv-board .sv-equipped{max-height:9px}.sv-hand-card>.ki-card,.sv-hand-card>.sv-hxh{width:48px!important}.sv-hand-row>.sv-hand-card{grid-template-columns:48px 1fr}.sv-hand-card.sv-hand-gear{grid-template-columns:1fr}.sv-run .sv-route-art{height:70px}.sv-run .sv-panorama{min-height:125px}.gui-playing .fighter{width:52px}.a5-slot img{height:28px}.a5-slot{min-height:52px}.a5-head h1{font-size:21px}.a5-head small{display:none}}
@media(prefers-reduced-motion:reduce){.combat-fx-layer{display:none!important}.gui-playing *,.gui-playing *:before,.gui-playing *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Scale the complete historical card, including typography and badges. */
.sv-board .sv-fighter>.ki-card{width:150px!important;zoom:.566667}.sv-hand-card>.ki-card{width:150px!important;zoom:.433333}.gui-playing .fight-unit{width:100px;min-width:0}.gui-playing .fight-unit>.ki-card{width:150px!important;zoom:.666667}.gui-playing .hp-number{font-size:9px}.sv-run .sv-hud-chips>span{min-width:0;padding:2px 8px}.sv-run .sv-hud>div:first-child{flex-shrink:0}.sv-run .sv-hud-chips{margin-left:auto}.sv-run .sv-hud{overflow:visible}.sv-board .sv-fighter.ko{opacity:.3}.sv-board .sv-hp-label{overflow:hidden;text-overflow:ellipsis}
@media(max-height:790px){.sv-board .sv-fighter>.ki-card{zoom:.466667}.sv-hand-card>.ki-card{zoom:.366667}.gui-playing .fight-unit{width:85px}.gui-playing .fight-unit>.ki-card{zoom:.566667}}
@media(max-width:560px){.sv-board .sv-fighter>.ki-card{zoom:.453333}.sv-hand-card>.ki-card{zoom:.4}.sv-run .sv-hud>div:first-child{flex-shrink:1}.sv-run .sv-hud-chips>span{padding:1px 4px;min-width:0}.sv-run .sv-hud{align-items:center}.gui-playing .fight-unit{width:61px}.gui-playing .fight-unit>.ki-card{zoom:.406667}.gui-playing .hp-number{font-size:6px}}
@media(max-width:560px) and (max-height:740px){.sv-board .sv-fighter>.ki-card{zoom:.36}.sv-hand-card>.ki-card{zoom:.32}.gui-playing .fight-unit{width:52px}.gui-playing .fight-unit>.ki-card{zoom:.346667}}
.sv-run>.sv-drawer,.v8-base-drawer,.v8-bottom-zone{overflow:visible}.sv-run>.sv-drawer{bottom:0}.sv-run>.sv-hud{display:flex}.sv-run .sv-hud-chips{display:flex;margin-top:0}.sv-run .sv-hud-chips>span{display:grid}.sv-drawer-content,.v8-drawer-content{color:#294e62}
.a5-slot .art-img,.a5-choice .art-img,.sv-boss-portrait .art-img,.sv-boss-route-art .art-img{position:static!important;inset:auto!important;transform:none!important;object-fit:contain!important;opacity:1}.a5-choice.chosen,.a5-slot:disabled{opacity:1}.a5-choice .art-img{width:50px;height:65px;flex-shrink:0}.a5-slot .art-img{width:100%;height:63px}.sv-hand>.sv-hand-row{justify-content:flex-start}.a5-choice:disabled:not(.chosen){opacity:.7}
@media(max-height:790px){.a5-slot .art-img{height:47px}}@media(max-width:560px){.a5-slot .art-img{height:39px}.a5-choice .art-img{width:32px;height:44px}}@media(max-width:560px) and (max-height:740px){.a5-slot .art-img{height:28px}}
.sv-run>.sv-hud{flex-wrap:nowrap}.sv-run .sv-hud-chips{width:auto;flex:0 0 auto}.sv-hand-row>.sv-deck-pile{position:sticky;left:0;z-index:3;scroll-snap-align:start;align-self:stretch}.sv-hand>.sv-hand-row{scroll-padding-left:100px}.sv-hand-card{scroll-snap-align:none!important}
@media(max-width:560px){.sv-run .sv-hud>div:first-child{display:grid;grid-template-columns:1fr;grid-template-rows:10px 22px 12px;gap:0;max-width:180px;min-width:0}.sv-run .sv-hud>div:first-child>small{grid-row:1;grid-column:1;letter-spacing:.5px;font-size:6px;white-space:nowrap}.sv-run .sv-hud>div:first-child>strong{grid-row:2;grid-column:1;font-size:20px;white-space:nowrap}.sv-boss-countdown{grid-row:3;grid-column:1;padding:0;border:0;font-size:7px}.sv-run .sv-hud-chips{gap:6px}.sv-run .sv-hud-chips>span{padding:1px 4px}.sv-hand>.sv-hand-row{scroll-padding-left:80px}}
.sv-hand-gear>.sv-gear{grid-template-rows:auto auto auto auto}.sv-hand-gear .sv-gear>.sv-object-art{grid-row:1/5}.sv-hand-gear .sv-gear>.sv-cost{position:static;grid-column:2;grid-row:4;font-size:7px;line-height:1.15;margin:0;padding:0;border:0;background:none;white-space:nowrap;align-self:start}.sv-hand-gear .sv-gear>p{line-height:1.15}.fight-field[data-fx-kind=beam] .unit-strike,.fight-field[data-fx-kind=slash] .unit-strike{animation:none}
.fx-travel path{stroke-dasharray:1}.fx-blast .fx-travel path{stroke-dasharray:.12 1}@keyframes ki-ray{from{stroke-dashoffset:1;opacity:0}25%{opacity:1}75%{opacity:1}to{stroke-dashoffset:0;opacity:0}}@keyframes ki-blast{from{stroke-dashoffset:0;opacity:0}20%,80%{opacity:1}to{stroke-dashoffset:-1;opacity:0}}
.sv-journal-toggle{width:44px;min-width:44px;padding:6px!important}.gui-journal{width:min(700px,calc(100% - 24px))}.gui-journal-body{padding:12px 25px 20px;font-size:12px;line-height:1.65}.gui-journal-body li{padding:6px 0;border-bottom:1px solid #d8e1d8}.gui-journal-body b{color:#b07830}
.sv-battle-top h2{margin:0}.sv-battle-top>div:first-child{min-height:22px}.sv-battle-controls .sv-btn{min-height:44px}
@media(max-width:560px){.sv-run>.sv-battle{grid-template-rows:74px 22px minmax(0,1fr) auto 28px 178px}.sv-battle-top>div:first-child{height:22px}.sv-battle>.sv-hand{grid-template-rows:44px minmax(0,1fr)}.sv-hand [data-sv=deployAll]{min-height:44px}.sv-hand-card>.sv-btn{min-height:44px}.a5-team-title{min-height:44px}.a5-team-title .a5-btn{min-height:44px}.a5-library-head input,.a5-library-head select,.a5-library-head>.a5-btn{min-height:44px}.a5-launch input{min-height:44px}}
@media(max-width:560px) and (max-height:740px){.sv-run>.sv-battle{grid-template-rows:74px 0 minmax(0,1fr) auto 25px 153px}}
/* Two readable five-unit lines; legacy column rules must not leak into this layout. */
.gui-playing .fight-field{grid-template-columns:1fr;grid-auto-flow:row}.gui-playing .fight-team,.gui-playing .battle-center{grid-column:1;grid-row:auto}.gui-playing .fighter-grid{flex-wrap:nowrap;width:100%}.gui-playing .v51-live-event{display:flex;align-items:center;isolation:isolate}.gui-playing .v52-live-portrait{position:relative!important;inset:auto;flex:0 0 30px!important;overflow:hidden;border-radius:5px;width:30px;height:38px}.gui-playing .v52-live-portrait .art-img{position:static!important;transform:none!important;width:100%;height:100%;object-fit:contain}.gui-playing .v51-live-event>div:last-child{min-width:0;flex:1;overflow:hidden}.gui-playing .v51-live-event b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gui-playing .battle-wrap:not(.rogue-battle) .fight-field{background:linear-gradient(#fff7d933,#3b5b6630),url('../assets/v9/sky.webp') center/cover}.gui-playing .battle-center{align-self:center;color:#fff7d5;text-shadow:0 2px 3px #2b5269}
@media(min-width:901px){.gui-playing .fight-unit{width:120px;flex:0 0 120px}.gui-playing .fight-unit>.ki-card{zoom:.8}}
@media(min-width:901px) and (max-height:790px){.gui-playing .fight-unit{width:100px;flex-basis:100px}.gui-playing .fight-unit>.ki-card{zoom:.666667}}
@media(min-width:561px) and (max-width:900px){.gui-playing .fight-unit{width:90px;flex:0 0 90px}.gui-playing .fight-unit>.ki-card{zoom:.6}}
.gui-playing .battle-wrap{padding:0!important}.gui-playing .battle-wrap:not(.rogue-battle) .fight-field{background:linear-gradient(#fff8df22,#345a6c44),url('../assets/v9/sky.webp') center/cover!important;box-shadow:inset 0 0 40px #37596a33;border:1px solid #91b9bd;border-radius:10px}.gui-playing .battle-wrap:not(.rogue-battle) .fight-field:before{background:linear-gradient(0deg,#294b6033,transparent 65%)}.gui-playing .v51-live-event{background:#fff5de!important;color:#234c5c;box-shadow:none;border:1px solid #c9d8cd;opacity:1;filter:none}.gui-playing .v51-live-event b{color:#234c5c;opacity:1;text-shadow:none}.gui-playing .v51-live-event small{color:#748379}.gui-playing .v51-live-event>span{background:#eadbb5;color:#8b683b;box-shadow:none}.gui-playing .v51-live-event.type-heal,.gui-playing .v51-live-event.type-revive{background:#e5f4dc!important}.gui-playing .v51-live-event.type-hit,.gui-playing .v51-live-event.type-ko{background:#ffebd6!important}
/* A new event must be readable immediately, even when playback is faster than a fade. */
.gui-playing .v51-live-event{animation:none!important;transition:none!important;opacity:1!important}
/* 9.3: readable combatant sheets, useful equipment and explicit deck maintenance. */
.sv-inspect-hit,.sv-hand-info{position:absolute;z-index:4;left:0;top:0;width:100%;height:calc(100% - 35px);min-height:44px;min-width:44px;border:0;background:transparent;box-shadow:none!important;cursor:help;border-radius:8px;padding:0}.sv-inspect-hit:after,.sv-hand-info:after{content:'i';position:absolute;right:3px;bottom:6px;width:15px;height:15px;display:grid;place-items:center;background:#173f58bd;color:#fff9df;border:1px solid #d9e8d4b3;border-radius:50%;font:700 10px AdventureText}.sv-hand-info{left:7px;top:7px;width:65px;height:calc(100% - 14px)}.sv-inspect-hit:focus-visible,.sv-hand-info:focus-visible{outline:3px solid #ffcc67;outline-offset:1px}.gui-inspection{width:min(930px,calc(100% - 24px))}.gui-inspection-body{padding:22px}.sv-inspection{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.sv-inspection-card{padding:8px;align-self:start}.sv-inspection-card>.ki-card{width:150px!important;zoom:1.1}.sv-inspection-info{min-width:0}.sv-inspection-info>small{font-size:8px;letter-spacing:1px;color:#7a8b83}.sv-inspection-info h2{font:700 36px AdventureDisplay;margin:7px 0;color:#254b5c}.sv-inspection-info h3{font:700 24px AdventureDisplay;margin:20px 0 10px;color:#315e6b}.sv-inspection-info>p{font:11px/1.6 AdventureText;color:#71868a}.sv-inspection-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.sv-inspection-stats>span{display:grid;gap:4px;border:1px solid #d0ded2;background:#edf3e7;border-radius:7px;padding:10px;font:8px AdventureText;color:#6c8586}.sv-inspection-stats b{font:700 24px AdventureDisplay;color:#305667}.sv-techniques{display:grid;gap:10px}.sv-techniques article{background:#fffdf2;border:1px solid #d5ded2;border-radius:8px;padding:12px 14px}.sv-techniques article>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.sv-techniques b{font:700 22px AdventureDisplay;color:#305667}.sv-techniques span{font:8px AdventureText;color:#5c897f;border:1px solid #bdd9c4;border-radius:5px;padding:4px 7px;white-space:nowrap}.sv-techniques p{font:11px/1.6 AdventureText;color:#617e84;margin:7px 0}.sv-techniques small{font-size:8px;color:#89968c}.sv-techniques .inactive{background:#eeeae5}.sv-techniques .inactive span{color:#985b4b;border-color:#d6b4a7}.sv-inspection-slot{display:grid;grid-template-columns:100px 1fr;gap:10px;padding:10px 12px;border:1px solid #d4ded4;border-radius:7px;margin:6px 0;font:10px/1.6 AdventureText}.sv-inspection-slot b{color:#34566b}.sv-inspection-slot span{color:#67868a}.sv-care{display:flex;align-items:center;gap:20px;padding:15px 18px;background:#fff4d9;border:1px solid #e6cca0;border-radius:9px;margin:10px 0;flex-shrink:0}.sv-care>div{flex:1}.sv-care small{font-size:7px;letter-spacing:1px;color:#958166}.sv-care strong{display:block;font:700 25px AdventureDisplay;color:#5c6454;margin:5px 0}.sv-care p{font:11px/1.5 AdventureText;color:#8a886f;margin:0}.sv-care .sv-btn{white-space:nowrap;min-height:44px}.sv-recycle-confirm{padding:12px;background:#fff4dd;border:1px solid #dfcc9e;border-radius:7px;margin-top:10px;display:flex;flex-wrap:wrap;gap:10px}.sv-recycle-confirm p{flex:1 0 100%;margin:0;font-size:11px}.sv-recycle-note{display:block;margin-top:8px;color:#978776}.sv-bag-item [data-sv=askRecycle]{margin-top:12px}.sv-phase-shop>.sv-support{display:flex;flex-direction:column;overflow:hidden}.sv-phase-shop .sv-shop-grid{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;align-items:start;margin:8px 0;padding:4px 4px 10px}.sv-phase-shop .sv-support>.sv-section-head{flex-shrink:0;margin:0}.sv-phase-shop .sv-support>[data-sv=leave]{flex-shrink:0;align-self:flex-end}.fx-draw .fx-travel{display:none}.fx-draw .fx-burst circle{animation:ki-heal .7s ease-out both}.fx-draw .fx-burst path{d:path('M-16 -19H16V19H-16ZM-8 -12H8M-8 -3H8M-8 6H8');stroke-width:3}
@media(max-width:560px){.sv-hand-info{left:5px;top:5px;width:60px;height:calc(100% - 10px)}.gui-inspection-body{padding:14px}.sv-inspection{display:block}.sv-inspection-card{float:right;margin:0 0 10px 13px;padding:0}.sv-inspection-card>.ki-card{zoom:.65}.sv-inspection-info h2{font-size:29px}.sv-inspection-info>small{font-size:7px;letter-spacing:0}.sv-inspection-stats{clear:both;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sv-inspection-stats>span{padding:8px}.sv-inspection-stats b{font-size:23px}.sv-techniques article{padding:11px}.sv-techniques b{font-size:22px}.sv-techniques article>div{align-items:start}.sv-techniques span{font-size:7px;padding:3px 5px}.sv-techniques p{font-size:11px}.sv-inspection-slot{grid-template-columns:75px 1fr;font-size:9px}.sv-care{gap:10px;padding:10px;margin:7px 0}.sv-care small{font-size:6px;letter-spacing:.4px}.sv-care strong{font-size:21px}.sv-care p{font-size:9px}.sv-care .sv-btn{font-size:9px;padding:8px}.sv-phase-shop .sv-support>.sv-section-head{padding:0}.sv-phase-shop .sv-shop-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:85%;scroll-snap-type:x proximity;gap:14px}.sv-phase-shop .sv-shop-grid>div{scroll-snap-align:start}.sv-phase-shop .sv-shop-grid .sv-gear{min-height:165px;padding:10px;gap:5px}.sv-phase-shop .sv-shop-grid .sv-object-art{height:45px;margin:3px 0}.sv-phase-shop .sv-shop-grid .sv-object-art img{height:42px;width:42px}.sv-phase-shop .sv-shop-grid .sv-gear>strong{font-size:23px}.sv-phase-shop .sv-shop-grid .sv-gear p{font-size:10px}.sv-phase-shop .sv-shop-grid .sv-item-details summary{min-height:32px}}
@media(max-width:560px) and (max-height:740px){.sv-hand-info{width:48px}.sv-care strong{font-size:19px}.sv-care p{font-size:8px}.sv-care small{font-size:5px}}
.sv-techniques b{min-width:0;overflow-wrap:anywhere;flex:1}.sv-techniques article>div>span{flex-shrink:0}.sv-inspection-slot span{overflow-wrap:anywhere}
.sv-offer{position:relative}.sv-draft-info{position:absolute;z-index:4;inset:0 0 92px;width:100%;min-height:44px;min-width:44px;border:0;background:transparent;box-shadow:none;cursor:help;border-radius:10px;padding:0}.sv-draft-info:after{content:'i';position:absolute;bottom:8px;right:8px;width:20px;height:20px;display:grid;place-items:center;background:#163c55d9;color:#fff2d0;border:1px solid #fff3d7;border-radius:50%;font:700 12px AdventureText}.sv-draft-info:focus-visible{outline:3px solid #edb959}
/* Buying stays visible; only long item details scroll inside their own card. */
.sv-phase-shop .sv-shop-grid{grid-template-rows:minmax(0,1fr);align-items:stretch}.sv-phase-shop .sv-shop-grid>div{display:flex;flex-direction:column;min-height:0;height:100%;max-height:100%;gap:6px}.sv-phase-shop .sv-shop-grid>div>.sv-gear{flex:1;min-height:0!important;overflow:auto;overscroll-behavior:contain}.sv-phase-shop .sv-shop-grid>div>.sv-btn{flex:0 0 auto;min-height:44px;margin:0}
@media(max-width:560px) and (max-height:740px){.sv-phase-shop .sv-shop-grid .sv-gear{padding:8px;gap:2px}.sv-phase-shop .sv-shop-grid .sv-object-art,.sv-phase-shop .sv-shop-grid .sv-object-art img{height:23px;width:23px;margin:0}.sv-phase-shop .sv-shop-grid .sv-gear>strong{font-size:21px;line-height:1.1}.sv-phase-shop .sv-shop-grid .sv-gear p{margin:2px 0;font-size:9px}.sv-phase-shop .sv-shop-grid .sv-cost{padding:3px;font-size:7px}}

.sv-save-recovery{padding:14px 16px;border:1px solid #e2bd8c;background:#fff3d9;border-radius:8px;margin:12px 0;color:#6c614c;font:12px/1.5 AdventureText}.sv-save-recovery strong{font:700 22px AdventureDisplay}.sv-save-recovery p{margin:8px 0}.sv-save-recovery small{display:block;margin-top:8px}.sv-save-recovery .sv-btn{min-height:44px}
