@charset "UTF-8";
:root{--ink:#122c3f;--paper:#fff1d0;--muted:#b9c9c7;--gold:#f8cc72;--coral:#ef8b68;--sea:#78c6c2;--line:#667d84}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#101f30;color:var(--paper);font-family:"Microsoft YaHei",system-ui,sans-serif;background-image:linear-gradient(#13283a80 1px,transparent 1px);background-size:100% 5px}button,input{font:inherit}button{cursor:pointer;font-weight:800;border:1px solid #9e9876;background:#203d50;color:var(--paper);padding:11px 20px;box-shadow:inset 0 0 0 2px #122c3f,0 3px 0 #081622;transition:background .15s,transform .15s}button:hover{background:#355668;border-color:var(--gold)}button:active{transform:translateY(2px);box-shadow:inset 0 0 0 2px #122c3f}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffe3a0;outline-offset:4px}.quiet{background:#152c3d;box-shadow:none;border-color:#516671;font-size:12px;padding:8px 12px}.primary{background:var(--gold);color:var(--ink);border-color:#ffe5a4}.primary:hover{background:#ffe6aa}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.topbar,main{width:min(1100px,92%);margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;height:72px;border-bottom:1px solid #51616b66}.masthead{display:flex;align-items:center;gap:12px;font-size:14px;letter-spacing:.15em}.masthead svg{width:30px;height:30px;image-rendering:pixelated}.nav{display:flex;gap:10px}main{padding:24px 0 30px}.cover{position:relative;isolation:isolate;height:390px;border:1px solid #92a4a1;box-shadow:inset 0 0 0 5px #122c3f,0 8px 30px #0004;overflow:hidden;background:#217e92}.mural{position:absolute;inset:5px;z-index:-2}.seascape{width:100%;height:100%}.cover:after{content:"";position:absolute;inset:5px;z-index:-1;background:linear-gradient(90deg,#123b5270,transparent 65%),linear-gradient(0deg,#0d3b57aa,transparent 30%)}.title-lockup{position:absolute;top:68px;left:5%;z-index:2}.romaji{font:800 10px monospace;letter-spacing:.22em;color:#19374a;display:flex;align-items:center;gap:10px}.romaji i{width:26px;height:2px;background:#19374a}h1{font-size:clamp(45px,6vw,78px);font-weight:1000;letter-spacing:-.07em;line-height:1.15;color:var(--paper);text-shadow:3px 3px 0 var(--ink),-2px -2px 0 var(--ink),2px -2px 0 var(--ink),-2px 2px 0 var(--ink),5px 6px 0 #153e4c55;margin:14px 0 12px;transform:rotate(-3deg)}h1 span{color:#ffd987;display:block}.subtitle{display:inline-block;color:var(--paper);background:#16384ce8;border:1px solid #dfbc72;padding:6px 20px;letter-spacing:.5em;font-size:12px}.poster{position:absolute;left:41%;top:0;width:59%;height:100%;pointer-events:none}.player-poster{position:absolute;left:0;bottom:-10px;width:65%;height:91%}.player-poster img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(6px 6px #112f4655)}.boss-poster{position:absolute;right:-1%;top:0;width:45%;height:76%;transform:rotate(5deg)}.boss-poster img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(5px 5px #112f4644)}.boss-poster b{position:absolute;bottom:6%;left:21%;background:#16384c;color:#ffe5af;border:1px solid #d8b56b;padding:4px 14px;font-size:12px;letter-spacing:.2em}.versus{position:absolute;left:53%;top:49%;font:bold italic 34px Georgia;color:#ffe09a;text-shadow:2px 3px #133447;transform:rotate(-12deg)}.cover-foot{position:absolute;bottom:17px;left:5%;right:3%;display:flex;justify-content:space-between;font:10px monospace;letter-spacing:.12em}.cover-foot i{display:inline-block;width:6px;height:6px;background:#b9e78f;margin-right:5px}
.routes{padding:24px 0}.section-title{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:16px}.section-title span{width:45px;height:1px;background:#718486}.section-title h2{font-size:12px;color:var(--muted);font-weight:500;letter-spacing:.4em;margin:0}.route-list{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.route{display:flex;text-align:left;align-items:center;gap:16px;min-height:105px;padding:16px;background:#19374b}.route-symbol{font:40px Georgia;color:#84d9cf}.route small{display:block;font:9px monospace;letter-spacing:.13em;color:#b0c7c7}.route b{display:block;font-size:20px;margin:5px 0}.route em{font-size:11px;font-style:normal;font-weight:400;color:#afc3c7}.route i{margin-left:auto;color:var(--gold);font-style:normal;font-size:12px}.route-quick{background:linear-gradient(115deg,#b28148,#e6bc6c);color:#152c3d;box-shadow:inset 0 0 0 2px #694b31,0 3px 0 #081622;border-color:#ffe5ac}.route-quick small,.route-quick em,.route-quick i{color:#2c4650}.route-quick .route-symbol{color:#ffecbd}.route-quick:hover{background:#f8d184}.route-duel .route-symbol{color:#e6a297}
.roster{border-top:1px solid #51616b66;padding:22px 0}.roster-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.roster-title h2{font-size:13px;letter-spacing:.15em;margin:0}.roster-title span{font:9px monospace;letter-spacing:.2em;color:#7d989e}.forms{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.card{position:relative;display:flex;align-items:center;min-height:112px;background:#162d3d;border:1px solid #3b5969;overflow:hidden;padding:8px}.card img{width:45%;height:100px;object-fit:contain;image-rendering:pixelated}.card small{color:#9bb6b7;font:9px monospace;display:block}.card b{font-size:12px;display:block;margin:7px 0}.card span{font-size:10px;color:#e4c58b}.card:after{content:"";position:absolute;right:0;bottom:0;height:2px;width:70%;background:linear-gradient(90deg,transparent,#6dbaa7)}.dock{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid #51616b66}.gift{padding:16px 0;font-size:12px}.gift summary{cursor:pointer;letter-spacing:.08em;color:#b4c8c9}.settings{display:grid;gap:10px;margin-top:16px}.settings label{display:grid;gap:7px;color:#91aeb9}input{width:100%;background:#102535;color:#fff0cd;border:1px solid #4d6c7a;padding:10px;outline:none}.log-row{padding:11px 0;border-bottom:1px solid #34525b77;font-size:11px;color:#b4c8c9}#voyage-log p{font-size:11px;color:#819fa9}
body.playing{overflow:hidden;background:#123346}.playing .topbar{display:none}#arena{width:100%;height:100dvh;display:flex;flex-direction:column}.hud{height:76px;flex-shrink:0;background:linear-gradient(180deg,#1e394b,#122838);border-bottom:2px solid #a6a07b;display:flex;align-items:center;padding:8px 22px;gap:22px}.pilot{display:flex;gap:12px;align-items:center;min-width:180px}.pilot img{width:50px;height:56px;object-fit:contain;image-rendering:pixelated;border:1px solid #7b856f;background:#2b5c66}.pilot b{display:block;font-size:14px}.pilot small{display:block;font-size:10px;margin-top:6px;color:#a9c3c3}.instruments{max-width:400px;flex:1;display:grid;gap:8px}.gauge{display:flex;align-items:center;gap:10px}.gauge small{font:10px monospace;color:#d6e3ce;width:35px}.meter{height:8px;background:#081c29;border:1px solid #476477;position:relative;display:block;flex:1}.meter i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#61975b,#bee89e);transition:width .1s}.meter .low{background:#ee9073}.xp .meter i{background:linear-gradient(90deg,#b58d41,#fce1a1)}.gauge b{font:10px monospace;color:#a7bfc7;min-width:47px}.run-info{margin-left:auto;text-align:center}.run-info b{font:800 22px Georgia;color:#ffe5a9;display:block}.run-info small{display:block;font-size:10px;color:#a7c3c9;margin-top:6px}.field{flex:1;position:relative;min-height:0;background:#299fba}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.controls{display:flex;align-items:center;justify-content:space-between;height:56px;flex-shrink:0;padding:6px 20px;background:#122838;border-top:1px solid #b1a47766;font-size:11px;color:#95b2b9;gap:14px}.controls kbd{font:10px monospace;border:1px solid #536f7c;padding:2px 4px;color:#e8d7ab}.touch-hint{display:none}#dash{background:#e4bd71;color:#172f40;min-width:130px;font-size:11px;padding:10px}#gear-summary{display:flex;gap:4px;margin-left:auto}#gear-summary>span{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:35px;background:#254656;border:1px solid #4b6a71}#gear-summary img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}#gear-summary small{position:absolute;bottom:-2px;right:1px;font:9px monospace;background:#122838;color:#ffe7ae}
#modal{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#071d2caa;backdrop-filter:blur(3px);z-index:10}.sheet{width:min(840px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;padding:30px;text-align:center;background:linear-gradient(145deg,#203e51,#102536);border:1px solid #c5b278;box-shadow:inset 0 0 0 4px #102536,0 16px 80px #001522aa}.sheet>small{font:9px monospace;letter-spacing:.2em;color:#8cbaba}.sheet h2{font-size:26px;color:#ffe4a8;margin:12px 0}.sheet>p{font-size:12px;line-height:1.8;color:#b9d0d2;margin:0 0 24px}#choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.upgrade-grid{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.upgrade{position:relative;background:#f5e5bb;color:#203746;border:2px solid #caa456;box-shadow:inset 0 0 0 3px #fff2cf,0 4px 0 #091d2d;display:flex;flex-direction:column;align-items:center;min-height:285px;padding:14px 12px}.upgrade:hover{background:#fff2cf;transform:translateY(-4px)}.card-key{font:9px monospace;letter-spacing:.07em;align-self:flex-start;color:#57716f}.upgrade img{width:120px;height:120px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px #163b3b22);margin:10px 0 2px}.upgrade b{font-size:18px}.gear-level{font:10px monospace;color:#a37530;margin:9px 0}.upgrade p{margin:0;max-width:190px;font-size:11px;font-weight:400;line-height:1.7;color:#4c6264}.upgrade-actions{display:flex;justify-content:center;gap:10px;width:100%;margin-top:10px}.upgrade-actions button{font-size:11px;padding:10px 14px;box-shadow:none}.upgrade-actions .selected{border-color:#ef8b68;background:#773d38}.result-stats{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid #567079;margin:18px 0;padding:18px 0}.result-stats b{display:block;font:800 25px Georgia;color:#ffdf9f}.result-stats small{display:block;margin-top:8px;font-size:10px;color:#91afb8}.result-loadout{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 0 24px}.result-loadout img{width:48px;height:48px;object-fit:contain;background:#2b4b59;border:1px solid #536f70}
dialog{width:min(560px,92%);padding:0;background:#1a3548;color:#e8eddb;border:1px solid #bea46c;box-shadow:0 20px 90px #000a}dialog::backdrop{background:#061726cc;backdrop-filter:blur(4px)}.guide-content{padding:30px}.guide-head{display:flex;align-items:center;justify-content:space-between}.guide-head small{font:10px monospace;letter-spacing:.15em;color:#8eb7bb}.guide-content h2{color:#ffe1a0;margin:18px 0 24px}.guide-content dl{font-size:12px;line-height:1.8}.guide-content dt{font-weight:800;color:#a0d8cf;margin-top:16px}.guide-content dd{margin:5px 0;color:#b7cbd0}
@media(min-width:1600px){.topbar,main{width:1200px}.cover{height:435px}}@media(max-width:800px){.topbar{height:60px}.cover{height:330px}.title-lockup{top:55px}.poster{left:40%;width:60%}.title-lockup h1{font-size:55px}.route{gap:10px;padding:12px}.route-symbol{font-size:30px}.route b{font-size:17px}.route em{font-size:10px}.card{padding:5px;min-height:95px}.card img{height:85px}.card b{font-size:10px}.card span{font-size:9px}.hud{padding:8px 12px;gap:12px}.pilot{min-width:150px}.instruments{max-width:240px}.run-info b{font-size:20px}.desktop-hint{display:none}.touch-hint{display:block}.controls{padding:6px 12px}}@media(max-width:580px){.topbar,main{width:94%}.masthead{font-size:11px;gap:7px;letter-spacing:.05em}.masthead svg{width:25px}.nav{gap:6px}.quiet{font-size:10px;padding:8px}main{padding-top:12px}.cover{height:330px}.title-lockup{top:27px;left:7%}.romaji{font-size:8px;letter-spacing:.09em}.title-lockup h1{font-size:46px;line-height:1;margin-top:12px}.title-lockup h1 span{display:inline}.subtitle{font-size:9px;padding:4px 12px;margin-top:4px}.poster{left:22%;top:75px;width:78%;height:80%}.player-poster{width:71%;left:-16%;height:93%}.boss-poster{right:0;width:55%;height:82%}.versus{font-size:26px;left:47%;top:53%}.boss-poster b{font-size:9px;left:17%;padding:3px 8px}.cover-foot{font-size:8px;bottom:14px}.cover-foot span:last-child{display:none}.routes{padding:20px 0}.section-title{margin-bottom:12px}.route-list{grid-template-columns:1fr;gap:9px}.route{min-height:79px;padding:10px 20px;gap:20px}.route b{font-size:18px;margin:4px 0}.route-symbol{width:29px;font-size:35px}.route small{font-size:8px}.route em{font-size:10px}.forms{grid-template-columns:1fr 1fr;gap:8px}.card{min-height:106px}.card img{height:92px}.card b{font-size:11px}.dock{grid-template-columns:1fr;gap:0}.gift{padding:14px 6px}.roster-title h2{font-size:12px}.hud{height:89px;display:grid;grid-template-columns:1fr auto auto;grid-template-rows:37px 25px;gap:2px 8px;padding:6px 9px}.pilot{min-width:0;gap:7px}.pilot img{width:32px;height:36px}.pilot b{font-size:11px}.pilot small{font-size:8px;margin-top:3px}.instruments{grid-row:2;grid-column:1/4;display:flex;gap:12px;max-width:none;width:100%}.gauge{flex:1;gap:4px}.gauge small{font-size:8px;width:30px}.gauge b{font-size:8px;min-width:39px}.run-info{margin:0}.run-info b{font-size:18px}.run-info small{font-size:8px;margin-top:2px}.hud #pause{font-size:0;padding:8px;width:38px}.hud #pause:after{content:'Ⅱ';font-size:15px}.controls{height:64px;gap:8px;padding:8px}.touch-hint{font-size:9px;max-width:65px;line-height:1.6}#gear-summary{gap:2px;max-width:180px;overflow:hidden}#gear-summary>span{width:25px;height:28px;flex-shrink:0}#gear-summary img{width:23px;height:23px}#dash{min-width:91px;padding:13px 8px;font-size:10px}.sheet{padding:20px 12px}.sheet h2{font-size:21px;margin:10px 0}.sheet>p{font-size:10px;margin-bottom:15px}.upgrade-grid{gap:7px}.upgrade{padding:9px 6px;min-height:230px}.upgrade img{width:86px;max-width:100%;height:90px}.upgrade b{font-size:13px}.card-key{font-size:7px;letter-spacing:0}.upgrade p{font-size:9px}.gear-level{font-size:8px}.upgrade-actions{gap:6px;margin-top:6px}.upgrade-actions button{font-size:9px;padding:9px 8px}.result-stats b{font-size:20px}.guide-content{padding:22px}}
@media(prefers-reduced-motion:reduce){button,.meter i{transition:none}}
.boss-roster{border-top:1px solid #51616b66;padding:23px 0}.boss-roster .roster-title{margin-bottom:18px}#boss-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.boss-card{position:relative;text-align:left;background:linear-gradient(150deg,#294654,#152c3c);padding:0 14px 14px;overflow:hidden;box-shadow:none;border-color:#506775}.boss-card:before{content:'';position:absolute;width:140px;height:140px;border-radius:100%;background:#ba91552a;top:20px;left:50%;transform:translateX(-50%);border:1px dashed #d1b67b66}.boss-card img{display:block;position:relative;width:100%;height:180px;object-fit:contain;filter:drop-shadow(0 5px 3px #081e3677)}.boss-card small{font:9px monospace;color:#87c6c3;letter-spacing:.13em}.boss-card b{display:block;font-size:17px;margin:7px 0 3px}.boss-card em{font-size:10px;color:#d5be92;font-style:normal;font-weight:500}.boss-card p{font-size:10px;color:#9fb8c2;line-height:1.6;font-weight:400;min-height:32px;margin:9px 0 0}.boss-card .fight-tag{position:absolute;right:12px;top:12px;font-size:10px;color:#e6ce94}.roster-note{font-size:10px;line-height:1.8;color:#90adb4;margin:15px 0 0}.encounter-strip{display:flex;align-items:center;justify-content:center;gap:0;min-height:25px;flex-shrink:0;background:#112a3a;border-bottom:1px solid #456373;color:#89a7b4;font-size:9px;letter-spacing:.04em}.encounter-strip span{display:flex;align-items:center;gap:7px;padding:4px 20px}.encounter-strip span+span:before{content:'›';color:#5a7d8b;margin-right:20px}.encounter-strip .cleared{color:#b4df9b}.encounter-strip .active{color:#ffd59b;background:#563e3655}.selection-hint{font-size:12px;line-height:1.8;color:#b5ced2}#boss-select{width:min(900px,94%)}#duel-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}#duel-cards .boss-card{padding:0 12px 15px}#duel-cards .boss-card img{height:170px}.defeated-badges{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:12px 0 20px}.defeated-badges span{border:1px solid #7b986e;background:#31504c;padding:6px 9px;color:#c8e9ab;font-size:11px}.sound-pause{width:100%;display:flex;justify-content:center;margin-top:5px}.sound-pause button{font-size:11px;padding:9px 15px}.instruments{min-width:0}.gauge{min-width:0}.meter{min-width:10px}.field canvas:focus-visible{outline:2px solid #fff3b4;outline-offset:-2px}.route:disabled{opacity:.65}.sheet:focus{outline:none}
@media(max-width:800px){#boss-cards{grid-template-columns:repeat(2,1fr)}#duel-cards{grid-template-columns:repeat(2,1fr)}.boss-card img{height:165px}.encounter-strip span{padding:4px 12px}.encounter-strip span+span:before{margin-right:12px}}
@media(max-width:580px){.boss-roster{padding:18px 0}#boss-cards{gap:8px}.boss-card{padding:0 11px 12px}.boss-card img{height:150px}.boss-card b{font-size:14px}.boss-card small{font-size:8px}.boss-card p{font-size:9px}.boss-card:before{width:110px;height:110px}.roster-note{font-size:9px}.encounter-strip{min-height:27px;font-size:8px;letter-spacing:0}.encounter-strip span{padding:5px 5px;gap:2px}.encounter-strip span+span:before{margin-right:4px}#duel-cards{gap:8px}#duel-cards .boss-card img{height:126px}#duel-cards .boss-card p{display:none}#boss-select .guide-content{padding:18px}.controls{padding-bottom:max(8px,env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom))}.hud{padding-top:max(6px,env(safe-area-inset-top));height:calc(89px + env(safe-area-inset-top))}.upgrade-grid{grid-template-columns:1fr}.upgrade{min-height:108px;display:grid;grid-template-columns:70px 1fr;text-align:left;padding:10px 12px;column-gap:12px}.upgrade img{grid-row:1/5;grid-column:1;width:65px;height:72px;margin:0}.upgrade .card-key,.upgrade b,.upgrade .gear-level,.upgrade p{grid-column:2}.upgrade p{max-width:none}.gear-level{margin:3px 0}.upgrade-grid{gap:9px}.sheet>p{margin-bottom:12px}.sheet{padding:16px 12px}.upgrade-actions button{font-size:10px}.upgrade-actions{position:sticky;bottom:0;padding-top:4px;background:#173347}}
@media(max-height:500px) and (orientation:landscape){.hud{height:52px;padding:4px 12px}.pilot img{height:40px;width:35px}.pilot small{margin-top:2px}.controls{height:42px}.encounter-strip{min-height:21px}.sheet{padding:14px}.sheet h2{font-size:20px;margin:5px 0}.sheet>p{margin-bottom:8px}.upgrade{min-height:180px;padding:8px}.upgrade img{height:65px;width:80px;margin:2px}.upgrade p{font-size:10px}.upgrade-actions{margin-top:2px}.upgrade-actions button{padding:6px 10px}}
.route-featured{background:linear-gradient(115deg,#b28148,#e6bc6c);color:#152c3d;box-shadow:inset 0 0 0 2px #694b31,0 3px 0 #081622;border-color:#ffe5ac}.route-featured small,.route-featured em,.route-featured i{color:#2c4650}.route-featured .route-symbol{color:#ffecbd}.route-featured:hover{background:#f8d184}.route-secondary{background:#19374b;color:var(--paper);box-shadow:inset 0 0 0 2px #122c3f,0 3px 0 #081622;border-color:#9e9876}.route-secondary small,.route-secondary em{color:#afc3c7}.route-secondary i{color:var(--gold)}.route-secondary:hover{background:#355668}

.route-list{grid-template-columns:1fr 1fr}.boss-card{border:1px solid #506775;font-weight:400}.boss-card b{font-weight:800}.encounter-strip{font-size:10px;padding:4px 12px;line-height:1.5;text-align:center;flex-wrap:wrap}@media(max-width:580px){.route-list{grid-template-columns:1fr}.encounter-strip{font-size:8px;padding:4px 8px}.upgrade{min-height:96px}.upgrade img{height:62px}.sheet h2{font-size:19px}}
#coin-label{color:#f1d792;white-space:nowrap;margin-right:18px;font-size:11px}#encounter-strip{flex:1}.reward-list{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:8px 0 24px}.reward{display:flex;flex-direction:column;align-items:center;border:1px solid #6c8e8d;background:#254753;padding:15px;min-width:120px;max-width:180px}.reward img{height:85px;width:85px;object-fit:contain}.reward b{font-size:13px;margin:8px 0}.reward small{font-size:10px;color:#b4cfce}.evolved{border-color:#ffd96e!important;box-shadow:0 0 12px #ffdd6b44;background:#67522c!important}.chest-art{width:190px;height:170px;object-fit:contain;margin:0 auto 15px;display:block}.chest-art.mystery{filter:hue-rotate(45deg)}.shop-offer:disabled{opacity:.6}.shop-offer:disabled:hover{transform:none}@media(max-width:580px){#coin-label{font-size:9px;margin-right:10px}.chest-art{width:145px;height:120px}.reward{padding:10px;min-width:90px;max-width:140px}.reward img{width:60px;height:60px}.reward b{font-size:11px}.reward small{font-size:9px}.reward-list{gap:7px}.shop-offer{min-height:104px}}

/* Review v2: every equipment slot stays visible and opens a readable paused inventory. */
#gear-summary{padding:3px;background:transparent;border:1px solid #567783;box-shadow:none;min-width:0;border-radius:3px;cursor:pointer}
#gear-summary:disabled{opacity:1;cursor:default}#gear-summary:focus-visible{outline:2px solid #ffe7ae;outline-offset:2px}
.loadout-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.loadout-item{display:grid;grid-template-columns:52px 1fr;gap:4px 10px;align-items:center;background:#244453;border:1px solid #527784;padding:11px;text-align:left}.loadout-item img{grid-row:1/4;width:52px;height:60px;object-fit:contain}.loadout-item b{font-size:12px}.loadout-item small{color:#ffe0a1;font-size:11px}.loadout-item span{font-size:10px;color:#c0d5d5;line-height:1.5}.loadout-item.unowned{opacity:.6}
@media(max-width:580px){.controls{height:calc(82px + env(safe-area-inset-bottom));padding:6px 10px max(6px,env(safe-area-inset-bottom));gap:10px}.touch-hint{display:none}#gear-summary{display:grid;grid-template-columns:repeat(6,25px);gap:3px;max-width:none;margin-left:0;overflow:visible}#gear-summary>span{width:25px;height:28px}#dash{margin-left:auto;min-height:48px}.loadout-grid{grid-template-columns:1fr 1fr;gap:7px}.loadout-item{grid-template-columns:36px 1fr;padding:8px;gap:4px 7px}.loadout-item img{width:36px;height:43px}.loadout-item b{font-size:11px}.loadout-item span{font-size:9px}.loadout-item small{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){.controls{height:45px}#gear-summary{display:flex}#gear-summary>span{width:28px;height:29px}#dash{min-height:32px}.loadout-grid{grid-template-columns:repeat(3,1fr)}}

.loadout-sheet #choices{position:sticky;bottom:-1px;background:#173347;padding:10px 0 0;box-shadow:0 -8px 12px #173347}.loadout-sheet #choices button{min-width:160px}

/* Expanded roster: retain the arcade layout, but allow names and recipes to wrap. */
#boss-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.boss-card b,.boss-card em,.boss-card p,.loadout-item b,.loadout-item span{overflow-wrap:anywhere}
.boss-card p{font-size:12px;line-height:1.7;color:#b9cdd3}
.roster-note{font-size:12px;line-height:1.9;color:#b0c8cc}
#encounter-timelines .roster-note{margin-top:10px}
#roster-count{letter-spacing:.04em;text-align:right;line-height:1.6}
.loadout-item{min-width:0}.loadout-item.unowned{opacity:.8}
.loadout-item span{font-size:11px}.guide-content dd{line-height:1.9}
@media(max-width:800px){#boss-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.boss-card p{font-size:11px}.roster-note{font-size:11px}.boss-card b{font-size:15px}.loadout-grid{grid-template-columns:1fr}.loadout-item{grid-template-columns:46px minmax(0,1fr);padding:10px}.loadout-item img{width:44px;height:50px}.loadout-item b{font-size:13px}.loadout-item span{font-size:11px}.roster-title{gap:12px}#roster-count{font-size:10px}.guide-content{padding:20px}}

.mob-roster{border-top:1px solid #51616b66;padding:22px 0}#mob-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mob-card{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #456573;background:#162e3e;min-width:0}.mob-card img{width:72px;height:90px;object-fit:contain}.mob-card b{font-size:13px}.mob-card p{font-size:11px;line-height:1.7;color:#b9cdd3;margin:7px 0 0}.mob-card div{min-width:0}
@media(max-width:800px){#mob-cards{grid-template-columns:1fr}.mob-card img{width:64px;height:72px}.mob-card b{font-size:14px}.mob-card p{font-size:12px}}

/* Role details stay out of the live HUD and remain readable in the paused inventory. */
.companion-roster{border-top:1px solid #51616b66;padding:22px 0}#companion-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.companion-card{display:flex;gap:12px;align-items:center;padding:14px;background:#193b47;border:1px solid #56847c;text-align:left;min-width:0}.companion-card img{width:70px;height:100px;object-fit:contain;flex-shrink:0}.companion-card div{min-width:0}.companion-card b{font-size:14px;color:#d9ecbc}.companion-card p{font-size:12px;line-height:1.8;color:#bed6d5;margin:7px 0 0;overflow-wrap:anywhere}.companion-card small{display:block;font-size:11px;color:#ffe0a1;line-height:1.7;margin-top:8px}.companion-loadout{display:grid;gap:8px;margin-top:18px}.companion-loadout h3{font-size:14px;color:#d9ecbc;text-align:left;margin:0 0 4px}.companion-loadout>p{font-size:12px;line-height:1.8;color:#bed6d5;text-align:left;margin:0}.companion-loadout .companion-card{padding:10px}.companion-loadout .companion-card img{height:72px;width:52px}
@media(max-width:800px){#companion-cards{grid-template-columns:1fr}.companion-card img{width:64px;height:84px}}
@media(max-width:580px){.companion-card{padding:12px;gap:10px}.companion-card p{font-size:12px}.companion-card small{font-size:11px}}

/* Full ensemble illustration is never cropped and no title covers a face. */
.roster-cover{height:auto;overflow:hidden;background:#173548}.roster-cover:after{display:none}.roster-cover .title-lockup{position:relative;inset:auto;display:flex;align-items:center;gap:22px;padding:18px 26px;flex-wrap:wrap;background:linear-gradient(100deg,#19374b,#225165)}.roster-cover .romaji{color:#b3d7da;font-size:9px}.roster-cover .romaji i{background:#87b7bd}.roster-cover h1{font-size:42px;letter-spacing:-.04em;line-height:1;margin:0;transform:none}.roster-cover h1 span{display:inline}.roster-cover .subtitle{margin-left:auto;font-size:10px;padding:7px 12px;letter-spacing:.3em}.roster-cover-art{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain;border-top:1px solid #92a4a1;border-bottom:1px solid #92a4a1}.roster-cover .cover-foot{position:static;padding:12px 24px;gap:12px;background:#142d3e;font-size:9px;letter-spacing:.06em}
@media(max-width:580px){.roster-cover .title-lockup{padding:16px 14px;gap:10px}.roster-cover .romaji{font-size:7px;letter-spacing:.12em;width:100%}.roster-cover h1{font-size:34px}.roster-cover .subtitle{font-size:8px;padding:5px 7px;letter-spacing:.12em;margin-left:0}.roster-cover .cover-foot{padding:10px;font-size:7px}.roster-cover-art{min-height:0}}

@media(max-width:580px){.roster-cover .title-lockup{position:absolute;inset:0 0 auto;z-index:2;background:transparent;padding:12px 14px;gap:8px}.roster-cover .title-lockup .romaji{color:#203c58}.roster-cover .title-lockup .romaji i{background:#203c58}.roster-cover .subtitle{display:none}.roster-cover-art{aspect-ratio:auto}}

/* Separate Boss HP cards never cover the sea, pause, equipment or dash controls. */
.boss-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex-shrink:0;gap:4px;padding:5px 12px;background:#102838;border-bottom:1px solid #486573;pointer-events:none}
.boss-health{min-width:0;padding:3px 7px;background:#203d4e;border:1px solid #526c77;border-radius:3px}
.boss-health-name{display:block;font-size:12px;line-height:15px;font-weight:700;white-space:nowrap;color:#ffe4ae}
.boss-health-status{display:flex;align-items:center;gap:7px;height:12px;min-width:0}
.boss-health-meter{display:block;height:6px;min-width:12px;flex:1;background:#081c29;border:1px solid #536d78}
.boss-health-meter i{display:block;height:100%;background:#edb86b}
.boss-health-number{font:10px/12px monospace;color:#dcebe9;white-space:nowrap;font-variant-numeric:tabular-nums}
.boss-health.low .boss-health-meter i{background:#f18b76}
.encounter-strip{flex-wrap:nowrap;min-height:27px;padding:3px 10px}
#encounter-strip{min-width:0;padding:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:580px){.boss-hud{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:4px 8px}.boss-health{padding:2px 5px}.boss-health-name{font-size:11px;line-height:13px}.boss-health-status{height:11px;gap:5px}.boss-health-number{font-size:9px;line-height:11px}}
@media(max-height:500px) and (orientation:landscape){.boss-hud{padding:3px 8px;gap:3px}.boss-health{padding:2px 5px}.boss-health-name{font-size:11px;line-height:13px}.boss-health-status{height:10px}.boss-health-number{font-size:9px;line-height:10px}}

.altar-rewards .upgrade.selected{outline:3px solid #7de6bb;outline-offset:-3px;background:#183c3e}.altar-note{color:#ffdba2;font-size:13px;line-height:1.6}.altar-collection{padding:16px;border:1px solid #ffffff20;border-radius:14px;margin-top:16px}.altar-collection h3{margin:0 0 8px;font-size:16px}.altar-collection p{font-size:13px;color:#d5e9e4;line-height:1.5}.altar-collection button{display:block;margin-top:8px;max-width:100%;white-space:normal}

.special-forms-collection{border:1px solid #8bb9b044;padding:16px;border-radius:12px;margin-top:14px;color:#dcefe7}.special-forms-collection h3{margin:0 0 12px;color:#ffe6aa}.special-form-recipe{padding:12px 0;border-bottom:1px solid #8bb9b025}.special-form-recipe b{color:#bcebdc}.special-form-recipe p,.special-forms-collection>p{font-size:12px;line-height:1.65;margin:7px 0}.special-form-recipe small{font-size:11px;line-height:1.6;color:#a9c8c0}

/* V7: the sea is the screen. Readouts stay compact; details live in pause/loadout. */
.home-catalog{border-top:1px solid #51616b66;margin:0 0 12px}.home-catalog>summary{cursor:pointer;padding:18px 4px;font-weight:800;font-size:14px;color:#b9d8d6}.home-catalog[open]>summary{color:#ffe1a0}.home-catalog .roster-note{max-width:76ch}
#arena{--hud-height:60px;position:relative;overflow:hidden}
#arena>.hud{position:relative;z-index:4;height:calc(var(--hud-height) + env(safe-area-inset-top));padding:calc(10px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 7px max(18px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102a37;border:0;box-shadow:0 1px 0 #a8d7cc33}
.xp-edge{position:absolute;top:0;left:0;right:0;height:4px;background:#062b36;overflow:hidden}.xp-edge i{display:block;height:100%;width:0;background:#7ae6bd;box-shadow:0 0 9px #6ce3c899}
.hud-left{display:flex;align-items:center;gap:14px;min-width:0}#level-label{font:900 17px/1.2 system-ui,sans-serif;color:#f6f5df;white-space:nowrap}.health-readout{display:grid;gap:4px;width:140px;min-width:0}.health-readout .meter{height:8px;min-width:0;border:0;border-radius:2px;overflow:hidden;background:#041b27}.health-readout .meter i{background:#92d6a4}.health-readout .meter i.low{background:#ff685f}#health-number{font:600 11px/1 system-ui,sans-serif;color:#b9d3ce;font-variant-numeric:tabular-nums;text-align:left}
.run-clock{position:absolute;left:50%;transform:translateX(-50%);font:900 24px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#f9f4de;letter-spacing:.03em}.hud-right{display:flex;align-items:center;gap:18px;min-width:0}#arena #coin-label{margin:0;font:800 14px/1 system-ui,sans-serif;color:#ffdb7f;white-space:nowrap}#arena #pause{width:42px;height:40px;min-width:42px;font:800 19px/1 system-ui,sans-serif;padding:0;border:0;border-radius:6px;background:#ffffff0d;box-shadow:none}#arena #pause:after{content:none}
#arena>.field{flex:1;min-height:0}#arena .boss-hud{position:absolute;z-index:3;top:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;width:min(540px,calc(100% - 32px));gap:7px;padding:0;background:none;border:0;pointer-events:none}
#arena .boss-health{position:relative;min-width:0;padding:0;background:transparent;border:0;border-radius:0;filter:drop-shadow(0 1px 2px #04202f)}.boss-health-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:3px}#arena .boss-health-name{font-size:15px;line-height:18px;font-weight:900;color:#fff0ee;text-shadow:0 1px 2px #38121b;white-space:nowrap}.boss-health-phase{font-size:11px;line-height:16px;font-weight:800;color:#bfeff1;white-space:nowrap}#arena .boss-health-status{height:12px;display:block}#arena .boss-health-meter{height:12px;width:100%;background:#351922e8;border:1px solid #ff8b8b;border-radius:3px;overflow:hidden}#arena .boss-health-meter i,#arena .boss-health.low .boss-health-meter i{background:#f1434c;box-shadow:0 0 8px #ff3f4580}#arena .boss-health[data-untargetable="true"] .boss-health-meter{border-style:dashed;border-color:#c1f4f0}#arena .boss-health-number{font-variant-numeric:tabular-nums}
#arena .boss-health-suppressed{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.boss-overflow{align-self:flex-end;color:#ffe1de;background:#4e1c25e8;border:1px solid #ff7f8277;padding:3px 8px;border-radius:4px;font-size:11px;font-weight:800;line-height:14px}
#arena>.controls{position:absolute;z-index:4;left:0;right:0;bottom:0;height:auto;min-height:64px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:linear-gradient(0deg,#071e2c9c,transparent);border:0;pointer-events:none}
#arena #gear-summary{pointer-events:auto;margin:0;display:flex;flex-wrap:wrap;gap:4px;padding:4px;min-height:44px;min-width:44px;max-width:calc(100% - 94px);border:1px solid #c4e5d254;border-radius:7px;background:#0a2739bd;box-shadow:none;overflow:visible;justify-content:flex-start}#arena #gear-summary>span{width:32px;height:32px;flex-shrink:0;border:0;border-radius:4px;background:#badcda12}#arena #gear-summary img{width:29px;height:29px}#arena #gear-summary small{bottom:0;right:1px;font:800 10px/12px system-ui,sans-serif;border-radius:2px;padding:0 2px;background:#092333df;color:#ffedb6}#arena #gear-summary:empty:after{content:'配装';font-size:12px;padding:8px}
#arena #dash{pointer-events:auto;width:80px;min-width:80px;height:48px;min-height:48px;margin:0;border:1px solid #ffdf94;border-radius:8px;font:900 14px/1 system-ui,sans-serif;background:#efd48b;color:#153449;box-shadow:0 3px 0 #071e2b66}#arena #dash:disabled{opacity:.62}
#arena #modal{z-index:10}.sheet>p:empty{display:none}
@media(max-width:580px){
 #arena{--hud-height:58px}#arena>.hud{padding-right:max(10px,env(safe-area-inset-right));padding-left:max(10px,env(safe-area-inset-left));gap:6px}.hud-left{display:grid;gap:5px;width:94px}#level-label{font-size:14px}.health-readout{width:94px;display:flex;align-items:center;gap:5px}.health-readout .meter{height:6px;flex:1}#health-number{font-size:9px}.run-clock{font-size:21px}.hud-right{gap:7px}#arena #coin-label{font-size:12px}#arena #pause{height:40px;min-width:36px;width:36px}
 #arena .boss-hud{top:9px;width:calc(100% - 24px);gap:6px}#arena .boss-health-name{font-size:14px;line-height:17px}.boss-health-phase{font-size:10px;line-height:15px}#arena .boss-health-status,#arena .boss-health-meter{height:11px}.boss-overflow{font-size:10px;line-height:13px;padding:2px 7px}
 #arena>.controls{padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));gap:10px}#arena #gear-summary{display:grid;grid-template-columns:repeat(6,29px);gap:3px;padding:4px;max-width:none;min-height:44px}#arena #gear-summary>span{width:29px;height:29px}#arena #gear-summary img{width:27px;height:27px}#arena #dash{width:68px;min-width:68px;height:48px}
}
@media(max-height:500px) and (orientation:landscape){
 #arena{--hud-height:46px}#arena>.hud{padding-top:calc(7px + env(safe-area-inset-top));padding-bottom:4px}.hud-left{display:flex;gap:10px;width:auto}#level-label{font-size:14px}.health-readout{display:flex;align-items:center;width:120px;gap:6px}.health-readout .meter{height:6px;flex:1}#health-number{font-size:10px}.run-clock{font-size:21px}#arena #pause{height:32px;width:36px;min-width:36px}
 #arena .boss-hud{top:7px;width:min(430px,calc(100% - 24px));gap:5px}#arena .boss-health-name{font-size:13px;line-height:15px}.boss-health-title{margin-bottom:2px}.boss-health-phase{font-size:10px;line-height:14px}#arena .boss-health-status,#arena .boss-health-meter{height:9px}.boss-overflow{font-size:10px;line-height:12px;padding:2px 6px}
 #arena>.controls{min-height:46px;padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}#arena #gear-summary{display:flex;gap:2px;padding:3px;min-height:36px}#arena #gear-summary>span{width:25px;height:25px}#arena #gear-summary img{width:23px;height:23px}#arena #dash{height:36px;min-height:36px;width:70px;min-width:70px;font-size:12px}
}

/* V7 progression quality is visible without adding another stats system. */
.gear-recommendation{display:block;margin-top:7px;color:#a8ecc7;font-size:12px;line-height:1.35;font-weight:800}
#arena #gear-summary>span[class*="quality-"]{box-shadow:inset 0 0 0 1px var(--quality-color);border-bottom:2px solid var(--quality-color)}
@media(max-width:580px){.upgrade .gear-recommendation{grid-column:2;font-size:12px;margin-top:4px}.upgrade .ocean-quality-name{font-size:14px}.upgrade .quality-label{font-size:10px}}

/* Non-modal growth choices leave movement and battle running. */
.route-control{position:fixed;left:14px;bottom:78px;z-index:9;pointer-events:none}.route-control>button{pointer-events:auto;background:#102e36e8;border:1px solid #72999b;color:#fff4ce;border-radius:8px;padding:7px 12px;font-weight:800;min-height:36px;font-size:12px}.route-control section{pointer-events:auto;position:absolute;left:0;bottom:44px;width:min(340px,calc(100vw - 28px));background:#132f38f5;border:1px solid #7f9c9e;border-radius:12px;padding:12px;box-shadow:0 12px 35px #0006;max-height:60vh;overflow:auto}.route-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.route-panel-head button{padding:3px 10px;min-height:30px}.growth-route{position:relative;padding:10px 64px 10px 8px;border-left:3px solid var(--route-color);margin:7px 0;background:#ffffff08}.growth-route.active{background:#ffffff15}.growth-route b{display:block;color:var(--route-color);font-size:13px}.growth-route small{display:block;font-size:11px;color:#d3e6df;margin-top:5px;line-height:1.5}.growth-route button{position:absolute;right:4px;top:13px;padding:5px;min-width:48px;font-size:12px}.island-threat{color:#f0a796;font-size:12px}
@media(max-height:500px) and (orientation:landscape){.route-control{left:12px;bottom:55px}.route-control>button{min-height:28px;padding:4px 8px}.route-control section{bottom:35px;max-height:calc(100vh - 90px)}}

/* V8: one compact interrupt control, no extra instructions over the battle. */
#island-cancel{position:absolute;left:50%;bottom:104px;transform:translateX(-50%);z-index:9;background:#18394de8;border:1px solid #d9f6e5;border-radius:8px;padding:9px 15px;color:#fff4d1;font:800 13px system-ui;min-height:40px}
#island-cancel[hidden]{display:none}
@media(max-height:450px){#island-cancel{bottom:74px}}

/* V8: keep luminous tier names legible on pale reward cards. */
.upgrade .ocean-quality-name{background:#173345;padding:5px 7px;border-radius:5px;box-shadow:0 1px 3px #10202b40;justify-content:center}

/* Light reward cards need dark status text, not HUD colors. */
.upgrade .gear-recommendation{color:#246247}
.upgrade .island-threat{color:#963a26;font-weight:800}
.upgrade .gear-level{color:#785318}

/* Difficulty is independent from the six/twenty-minute route. */
.difficulty-picker{margin:0 0 18px;padding:16px;border:1px solid #526c77;background:#142f40;min-width:0;border-radius:8px}
.difficulty-picker legend,.mode-heading{font-size:12px;font-weight:800;color:#d4e5df;letter-spacing:.05em}
.difficulty-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.difficulty-options label{position:relative;cursor:pointer;min-width:0}.difficulty-options input{position:absolute;opacity:0;width:1px;height:1px;padding:0}
.difficulty-options span{display:block;padding:12px 8px;text-align:center;border:1px solid #547481;border-radius:6px;background:#203d50}
.difficulty-options b{font-size:17px;display:block}.difficulty-options small{font-size:11px;display:block;margin-top:5px;color:#bed4d4}
.difficulty-options input:checked+span{background:#35594f;border:2px solid #9be7be;padding:11px 7px;color:#e0ffe8}
.difficulty-options input:checked+span b:before{content:'✓ ';color:#b4f2ce}.difficulty-options input:focus-visible+span{outline:3px solid #ffe3a0;outline-offset:3px}
#difficulty-detail{font-size:12px;color:#e1d5ac;line-height:1.7;margin:12px 0 5px}#difficulty-note{font-size:11px;line-height:1.7;color:#b9cdd3;margin:0}.mode-heading{margin:0 0 10px}
.run-readout{position:absolute;left:50%;transform:translateX(-50%);display:grid;text-align:center;gap:5px}.run-readout .run-clock{position:static;transform:none;display:block}
#run-mode{font:700 10px/1.2 system-ui,sans-serif;color:#bfe0d6;white-space:nowrap}.result-context{font-size:14px;font-weight:800;color:#c6ebdc;line-height:1.5}
@media(max-width:580px){.difficulty-picker{padding:12px}.difficulty-options{gap:7px}.difficulty-options b{font-size:16px}.difficulty-options small{font-size:10px}#difficulty-detail{font-size:11px}#run-mode{font-size:9px}.run-readout{gap:4px}}
@media(max-height:500px) and (orientation:landscape){.run-readout{gap:2px}#run-mode{font-size:9px}}

/* V16: compact identity card, red life and green experience, no combat prose. */
#arena>.hud{height:84px;min-height:84px;padding:8px 18px;align-items:center;gap:8px}
#arena .hud-left{display:flex;gap:10px;width:auto;align-items:center;min-width:0}
.pilot-portrait{position:relative;flex:0 0 62px;height:62px;border-radius:50%;background:radial-gradient(circle,#3d7c95,#122b40 75%);border:2px solid #d5b777;box-shadow:0 2px 8px #0007}
#arena #pilot-img{position:absolute;inset:3px;width:52px;height:52px;object-fit:contain;object-position:center;border-radius:50%}
.portrait-frame-art{position:absolute;inset:-5px;width:68px;height:68px;object-fit:contain;pointer-events:none}
#arena #level-label{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);font:900 12px/18px system-ui;background:#172d40;border:1px solid #d6bb81;border-radius:5px;padding:0 5px;color:#fff7d7;white-space:nowrap}
.pilot-bars{display:grid;gap:7px;width:172px}
#arena .health-readout,#arena .xp-readout{position:relative;display:block;width:100%;height:23px;min-width:0;padding:0;background:none;border:0}
#arena .health-readout .meter,#arena #xp-meter{display:block;width:100%;height:23px;border:1px solid #ffad9c;border-radius:5px;overflow:hidden;background:#071a2a;box-shadow:inset 0 1px 4px #0008}
#arena .health-readout .meter i{display:block;height:100%;background:linear-gradient(#ff857a,#c9253e);transition:width .12s ease}
#arena .health-readout .meter i.low{background:linear-gradient(#ff857a,#c9253e)}
#arena .health-readout:has(.low) .meter{border-color:#fff0c2;box-shadow:0 0 6px #ffb87a}
#arena #xp-meter{border-color:#8adf9a;background:#0b271f;height:20px}
#arena #xp-fill{display:block;height:100%;background:linear-gradient(#a6ed87,#31a75d);transition:width .12s ease}
#arena #health-number,#arena #xp-number{position:absolute;inset:0;text-align:center;font:800 12px/23px system-ui,sans-serif;color:#fff;text-shadow:0 1px 2px #00151f,1px 0 2px #00151f,-1px 0 2px #00151f;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
#arena #xp-number{font-size:11px;line-height:20px}
#arena .run-readout{position:absolute;left:50%;top:18px;transform:translateX(-50%);gap:0}
#arena .run-clock{font:900 28px/36px system-ui,sans-serif;color:#fff4d4;text-shadow:0 2px 4px #0006}
#arena #run-mode{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#arena .hud-right{display:flex;gap:14px;align-items:center;margin-left:auto}
.coin-readout{display:flex;align-items:center;gap:5px}.coin-readout img{width:34px;height:38px;object-fit:contain}
#arena #coin-label{font:900 19px/26px system-ui;color:#ffe29b;font-variant-numeric:tabular-nums;max-width:90px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:580px){
 #arena>.hud{height:104px;min-height:104px;padding:8px 10px;align-items:flex-start}
 #arena .hud-left{gap:7px;align-self:flex-end;padding-bottom:4px}.pilot-portrait{flex-basis:48px;height:48px}#arena #pilot-img{inset:2px;width:40px;height:40px}.portrait-frame-art{inset:-4px;width:52px;height:52px}#arena #level-label{font-size:10px;line-height:16px;bottom:-5px;padding:0 3px}
 .pilot-bars{width:137px;gap:6px}#arena .health-readout,#arena .xp-readout{height:20px}#arena .health-readout .meter{height:20px}#arena #health-number{font-size:11px;line-height:20px}#arena #xp-number{font-size:10px}
 #arena .run-readout{top:5px}#arena .run-clock{font-size:23px;line-height:28px}#arena .hud-right{align-self:center;gap:6px}.coin-readout{gap:2px}.coin-readout img{width:26px;height:31px}#arena #coin-label{font-size:15px;max-width:65px}#arena #pause{min-width:32px;width:32px;height:36px}
}
@media(max-height:500px) and (min-width:581px){#arena>.hud{height:66px;min-height:66px;padding:5px 12px}.pilot-portrait{flex-basis:48px;height:48px}#arena #pilot-img{width:40px;height:40px}.portrait-frame-art{width:54px;height:54px;inset:-5px}.pilot-bars{gap:4px}#arena .run-readout{top:12px}}

/* Crop the authored form to face/shoulders, keeping the decorative frame unclipped. */
.portrait-crop{position:absolute;inset:3px;border-radius:50%;overflow:hidden}
#arena #pilot-img{inset:auto;left:-50%;top:-10%;width:200%;height:200%;max-width:none;object-fit:contain;border-radius:0}

.portrait-frame-art{inset:-13px;width:84px;height:84px}
.pilot-portrait{border-color:transparent}
@media(max-width:580px){.portrait-frame-art{inset:-10px;width:64px;height:64px}}
@media(max-height:500px) and (min-width:581px){.portrait-frame-art{inset:-10px;width:64px;height:64px}}
