/* Expedition games: large playfields, readable decisions and accessible touch controls. */
.advanced-page .game-layout{grid-template-columns:minmax(0,1fr)}
.advanced-page .game-instructions{display:block;padding:24px 28px}
.advanced-page .game-instructions ol{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:0}
.advanced-page .game-instructions h2{font-size:22px;margin:8px 0 20px}
.advanced-page .instruction-foot{flex-direction:row;margin-top:12px}
.advanced-page .save-note{margin-top:12px;padding-top:12px}
.expedition-root{height:680px;background:#13232c}
.expedition-hud{font-family:Manrope,Arial,sans-serif;text-shadow:0 2px 10px #0009}
.cinema-vignette{pointer-events:none;position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at 50% 40%,transparent 40%,#06111c77 100%);box-shadow:inset 0 0 70px #06111c44}
.expedition-top{position:absolute;top:22px;left:25px;right:25px;display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.expedition-stat{padding:11px 17px;background:#0b1726d9;border:1px solid #b9d0d327;border-radius:10px;min-width:98px;backdrop-filter:blur(12px)}
.expedition-stat small{display:block;color:#acbdc8;letter-spacing:.14em;font-size:8px;margin-bottom:5px;font-weight:700}
.expedition-stat strong{font-size:23px;letter-spacing:-.6px;font-weight:750;line-height:1.2}
.vital-stat{width:210px;background:#0b1726d9;border:1px solid #b9d0d327;border-radius:10px;padding:12px 16px;backdrop-filter:blur(12px)}
.vital-stat>span{font-size:8px;letter-spacing:.2em;color:#e8c9a5;font-weight:800}.vital-stat>div{margin:5px 0}.vital-stat b{font-size:23px}.vital-stat small{font-size:10px;color:#bcc7cc}.vital-stat progress{display:block;width:100%;height:5px;accent-color:#ffc57f;border:0;border-radius:4px;overflow:hidden}.vital-stat progress::-webkit-progress-bar{background:#313d46}.vital-stat progress::-webkit-progress-value{background:#efb473}.vital-stat .shield-progress{height:3px;margin-top:5px}.vital-stat .shield-progress::-webkit-progress-value{background:#8edce9}
.expedition-objective{position:absolute;top:130px;left:50%;transform:translateX(-50%);padding:8px 14px;border-radius:20px;background:#0d1727ab;border:1px solid #ccdede20;color:#e8e9d6;font-size:10px;letter-spacing:.025em;white-space:nowrap;max-width:90%;text-overflow:ellipsis;overflow:hidden}
.xp-track{position:absolute;left:25px;right:25px;bottom:19px;display:flex;align-items:center;gap:12px;font-size:9px;color:#c1e9dd}.xp-track progress{height:4px;flex:1;accent-color:#8be6bf}.xp-track progress::-webkit-progress-bar{background:#10242b}.xp-track progress::-webkit-progress-value{background:#a0e4c4}
.ability-status{position:absolute;bottom:143px;right:24px;display:flex;gap:9px;font-size:8px;font-weight:700;letter-spacing:.05em}.ability-status span{background:#0e1b29dc;border:1px solid #c7d2c83b;border-radius:6px;padding:7px 10px;color:#e4e6d2}
.boss-health{position:absolute;bottom:161px;left:50%;transform:translateX(-50%);width:38%;max-width:350px;text-align:center}.boss-health>span{font-size:9px;letter-spacing:.2em;color:#f5c5ba}.boss-health progress{display:block;width:100%;height:7px;accent-color:#e47c8c;margin-top:8px}.boss-health progress::-webkit-progress-bar{background:#191623}.boss-health progress::-webkit-progress-value{background:#d98398}
.music-toggle{position:absolute;right:25px;bottom:108px;z-index:4;width:28px;height:28px;border:1px solid #c3d7dc3b;background:#102035c9;border-radius:50%;color:#cfdec6;font-size:15px;display:grid;place-items:center;padding:0}.music-toggle[aria-pressed=false]{opacity:.4}
.adventure-pad{bottom:48px;left:25px;right:25px;align-items:flex-end}.adventure-pad .control-group:first-child{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:43px 43px;gap:4px}.adventure-pad .touch-key{height:43px;min-width:43px;font-size:22px;padding:0;background:#0e2136b5;border-color:#c7dfd947;box-shadow:0 3px 0 #07112166}.adventure-pad .gas{grid-column:2;grid-row:1}.adventure-pad .left{grid-column:1;grid-row:2}.adventure-pad .brake{grid-column:2;grid-row:2}.adventure-pad .right{grid-column:3;grid-row:2}.adventure-pad .action,.adventure-pad .boost{height:53px;min-width:58px;padding:0 15px;font-size:24px;border-radius:14px}.adventure-pad .action{background:#9ac5ae;color:#122c2e;box-shadow:0 3px 0 #18333188}.adventure-pad .held{background:#e2e5b1;color:#1b3937}.platform-pad .control-group:first-child{display:flex}.platform-pad{bottom:29px}.platform-pad .touch-key.left,.platform-pad .touch-key.right{min-width:53px;height:51px}.platform-pad+.music-toggle{bottom:95px}
.expedition-panel{position:absolute;inset:0;z-index:8;background:linear-gradient(110deg,#08131cf2,#101829dc);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:30px;overflow-y:auto;overscroll-behavior:contain}
.expedition-panel-inner{width:100%;max-width:890px;margin:auto;text-align:center}.expedition-eyebrow{font-size:9px;letter-spacing:.2em;color:#dabd91;font-weight:800}.expedition-panel h2{font-size:38px;letter-spacing:-1.4px;line-height:1.14;color:#fff1d8;margin:16px 0}.expedition-panel-inner>p{font-size:12px;line-height:1.85;color:#aebcc7;max-width:650px;margin:0 auto 22px}.brief-controls{font-size:9px!important;color:#8294a3;display:block;margin:20px auto 0;line-height:1.8;letter-spacing:.02em}
.hero-select,.upgrade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.hero-select>button,.upgrade-grid>button{background:linear-gradient(155deg,#243540,#172430);border:1px solid #738c8561;border-radius:13px;padding:23px 18px;color:#e6eddf;text-align:left;min-width:0;position:relative;overflow:hidden;transition:transform .18s,border-color .18s,background .18s}.hero-select>button:hover:enabled,.upgrade-grid>button:hover:enabled{transform:translateY(-4px);border-color:#e9ce9b;background:linear-gradient(155deg,#394846,#1e303b)}.hero-select button:disabled,.chapter-grid button:disabled,.map-select button:disabled,.sector-select button:disabled,.route-choices button:disabled{opacity:.4;cursor:not-allowed}.hero-glyph{display:flex;align-items:center;justify-content:center;width:65px;height:65px;background:radial-gradient(circle,#edb98533,#edb98500);font-size:45px;color:#eabb86;margin-bottom:22px}.hero-glyph-1{color:#8ce5c4;background:radial-gradient(circle,#96dac733,transparent)}.hero-glyph-2{color:#b8a7ed;background:radial-gradient(circle,#b8a7ed33,transparent)}.hero-select strong,.upgrade-grid strong{display:block;font-size:19px;letter-spacing:-.5px;margin:8px 0}.hero-select small{display:block;color:#a4b4be;font-size:10px;line-height:1.7;min-height:30px}.hero-select em,.upgrade-grid em{font-style:normal;display:block;font-size:9px;color:#dfc297;margin-top:18px;line-height:1.7}.upgrade-grid>button>span{display:block;font-size:42px;color:#efc78f;margin:0 0 22px}.upgrade-grid small{display:block;font-size:8px;letter-spacing:.12em;color:#a4b8b5}.upgrade-grid p{font-size:11px;color:#bac7ce;line-height:1.7;min-height:42px;margin:10px 0 0}.legacy-row{display:flex;justify-content:center;align-items:center;gap:20px;font-size:11px;color:#b0c1c7}.legacy-row button{border:1px solid #7d9e9277;padding:10px 14px;border-radius:7px;background:#253a3e;color:#dbe1c8;font-size:10px}.legacy-row button:disabled{opacity:.35}
.expedition-primary,.expedition-secondary{border:1px solid #c7ddac;border-radius:8px;padding:12px 19px;font:700 11px Manrope,Arial,sans-serif;background:#d8e9b5;color:#203b36;cursor:pointer;line-height:1.4}.expedition-primary:hover:enabled{background:#eff9d8}.expedition-primary:disabled{opacity:.35;cursor:not-allowed}.expedition-secondary{background:#26343e;color:#c6d5d9;border-color:#69817f;margin:8px}.expedition-secondary:hover{background:#384951}.expedition-panel .expedition-primary{margin:7px}
.chapter-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:25px auto;max-width:600px}.chapter-grid button{border:1px solid #7294905e;background:#21353e;border-radius:9px;padding:17px 12px;color:#cee7d1}.chapter-grid b{font-size:25px;display:block;font-weight:600}.chapter-grid span{display:block;font-size:11px;color:#eaca9b;margin-top:7px;letter-spacing:2px}.chapter-grid button:hover:enabled{border-color:#b6e6cb;background:#304e53}
.map-select,.sector-select{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:24px 0}.map-select button,.sector-select button{border:1px solid #7c999766;background:#22313f;border-radius:11px;padding:25px 18px;text-align:left;color:#cfdfd6}.map-select b,.sector-select b{display:block;font-size:35px;font-weight:400;color:#dfcba4;margin-bottom:20px}.map-select strong,.sector-select strong{display:block;font-size:16px;margin-bottom:8px}.map-select span,.sector-select span{font-size:9px;color:#98b6b5;line-height:1.6}.sector-select{grid-template-columns:repeat(5,1fr)}.sector-select button{padding:23px 12px}.sector-select strong{font-size:12px}
.defense-console{position:absolute;z-index:4;bottom:15px;left:20px;right:20px;max-width:660px;margin:auto;background:#0c1b29ee;border:1px solid #74898466;border-radius:12px;backdrop-filter:blur(13px);padding:13px;display:grid;gap:10px;font-size:10px}.defense-slots{display:flex;gap:5px}.defense-slots button{flex:1;border:1px solid #55747077;background:#233841;color:#c4d3c7;border-radius:5px;min-height:32px;font-size:10px;padding:5px}.defense-slots button[aria-pressed=true]{background:#b0d6ae;color:#182f2e;border-color:#b9e3b7}.defense-build{display:flex;gap:7px;min-height:45px}.defense-build>button{flex:1;padding:8px;border:1px solid #5e788377;background:#263740;color:#d5e0da;border-radius:6px;display:flex;align-items:center;gap:6px;justify-content:center;font-size:10px}.defense-build>button:disabled{opacity:.4}.defense-build small{font-size:9px;white-space:nowrap;color:#dcc99e}.defense-build strong{font-size:10px}.tower-dot{color:#95d9c7}.tower-cannon{color:#edb183}.tower-frost{color:#a4c9f2}.tower-prism{color:#bca5ed}.tower-selected{display:flex;flex-direction:column;gap:6px;color:#d1ddc7;min-width:140px;padding:5px}.tower-selected span{font-size:9px;color:#829da6}.defense-actions{display:flex;gap:8px}.defense-actions>.expedition-primary{margin:0;flex:1;padding:9px 13px;font-size:10px}.defense-actions>button:not(.expedition-primary){background:#29454b;color:#c9ded2;border:1px solid #7c9a9166;border-radius:7px;padding:9px 13px;font-size:10px}.defense-actions>button:disabled{opacity:.4}
.rune-console{position:absolute;z-index:4;left:0;right:0;bottom:0;background:linear-gradient(0deg,#09121cf5 75%,#09121c00);padding:18px 22px 11px}.rune-turnbar{display:flex;gap:20px;align-items:center;margin-bottom:12px}.rune-energy{display:flex;gap:8px;align-items:center}.rune-energy>b{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;border:1px solid #8ebfae;background:#294843;font-size:24px;color:#d6f4c9}.rune-energy>span{font-size:8px;color:#b9cfbf;letter-spacing:.1em;line-height:1.6}.rune-energy small{display:block;color:#89a39e;letter-spacing:0}.rune-defence{font-size:10px;color:#a9bdd0}.rune-defence strong{font-size:18px;margin:0 5px}.rune-defence>span{margin-left:12px;color:#e4bb8e}.rune-turnbar>.expedition-primary{margin-left:auto;padding:10px 16px;font-size:10px}.rune-hand{display:flex;align-items:stretch;justify-content:center;gap:9px;min-height:180px}.rune-card{flex:1;max-width:170px;min-width:0;min-height:185px;position:relative;padding:13px 12px 10px;border:1px solid #a8928266;background:linear-gradient(145deg,#403b43,#232a3b);border-radius:10px;color:#eadcc2;text-align:center;box-shadow:0 8px 18px #030c16aa;transition:transform .16s,filter .16s;overflow:hidden;isolation:isolate}.rune-card::after{content:'';pointer-events:none;position:absolute;inset:6px;border:1px solid #caba9020;border-radius:5px;z-index:-1}.rune-card:hover:enabled{transform:translateY(-9px);border-color:#e4cba0;filter:brightness(1.13)}.rune-card:disabled{opacity:.4;filter:saturate(.35);cursor:not-allowed}.rune-cost{position:absolute;top:9px;left:10px;width:25px;height:25px;background:#c3d5b6;border:2px solid #394738;border-radius:50%;font-size:14px;color:#263b32;font-weight:800;display:grid;place-items:center}.rune-card-glyph{display:flex;height:59px;align-items:center;justify-content:center;font-size:40px;color:#dab890;text-shadow:0 0 24px #d6ac7866;background:radial-gradient(ellipse,#baa08022,transparent 65%)}.rune-card>strong{display:block;font-size:12px;margin:8px 0 9px;line-height:1.3;font-weight:750}.rune-card>p{font-size:9px;line-height:1.65;color:#c0bbc5;margin:0 0 12px}.rune-card>small{display:block;font-size:6px;letter-spacing:.15em;color:#958e9d}.rune-guard{background:linear-gradient(145deg,#334c51,#1e303e);border-color:#8ea89f88}.rune-guard .rune-card-glyph{color:#a1d9ce}.rune-skill{background:linear-gradient(145deg,#4b3d63,#262b42)}.rune-skill .rune-card-glyph{color:#c2a9e7}.rune-card.upgraded{border-color:#d6c38c}.rune-piles{display:flex;justify-content:space-between;color:#7896a1;font-size:8px;padding:12px 0 0}.rune-piles button{border:0;background:none;color:#a4c8c3;font-size:9px}.rune-enemies{position:absolute;right:30px;top:160px;z-index:3;display:flex;gap:10px;max-width:50%}.rune-enemies button{border:1px solid #986a7666;background:#1d2138c9;border-radius:9px;padding:9px 12px;color:#e1c9cc;font-size:10px;min-width:140px;backdrop-filter:blur(8px);text-align:left}.rune-enemies button[aria-pressed=true]{border-color:#e0b994}.rune-enemies span,.rune-enemies strong,.rune-enemies em{display:block}.rune-enemies span{font-size:9px;color:#c2b2c1}.rune-enemies strong{font-size:13px;margin:5px 0}.rune-enemies progress{width:100%;height:4px;accent-color:#d398a1;display:block;margin:6px 0}.rune-enemies em{font-style:normal;font-size:8px;color:#e6ba96;line-height:1.5}.rune-enemies small{display:block;color:#a0bc91;font-size:8px;margin-top:4px}.rune-relics{position:absolute;left:25px;top:138px;display:flex;gap:8px;font-size:8px}.rune-relics span{border:1px solid #b49f6555;background:#292c27;padding:6px;border-radius:6px;color:#ded0a0}.rune-rewards{display:flex;justify-content:center;gap:15px;margin:25px auto}.rune-rewards .rune-card{min-height:220px;max-width:210px}.rune-rewards .rune-card-glyph{height:77px;font-size:48px}.rune-rewards .rune-card>strong{font-size:16px}.rune-rewards .rune-card>p{font-size:11px}.rune-forge{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.route-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}.route-choices button{padding:23px 18px;border:1px solid #8c858469;background:#263040;border-radius:11px;text-align:left;color:#dbd5be}.route-choices span{display:block;font-size:32px;margin-bottom:20px;color:#c5cca8}.route-choices strong{display:block;font-size:16px;margin-bottom:12px}.route-choices small{font-size:10px;line-height:1.8;color:#a9b9c1}.vault-intro{display:flex;text-align:left;align-items:center;gap:20px;max-width:550px;padding:25px;border:1px solid #a9997466;border-radius:12px;background:#3b334344;margin:25px auto}.vault-intro>span{font-size:64px;color:#ccb390}.vault-intro strong{font-size:17px;display:block;color:#dfd9c9}.vault-intro small{display:block;line-height:1.8;color:#abacb9;font-size:11px;margin-top:8px}.rune-deck-list{max-height:310px;overflow:auto;text-align:left;margin:25px 0}.rune-deck-list>div{padding:12px;display:grid;grid-template-columns:40px 160px 1fr;gap:10px;border-bottom:1px solid #72868244;font-size:11px}.rune-deck-list span{color:#d6c194}.rune-deck-list strong{color:#c5d4d1}.rune-deck-list small{font-size:10px;color:#9baeba;line-height:1.5}
body[data-game=citadel] .music-toggle,body[data-game=vault] .music-toggle{bottom:235px}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-root{height:calc(100dvh - 51px)}.theatre-mode .expedition-root{height:80dvh;min-height:500px}
@media(min-width:1800px){.expedition-root{height:760px}.advanced-page .game-stage{max-width:1400px;margin:auto}.advanced-page .stage-bottom{max-width:1400px;margin:auto}.rune-hand{gap:13px}.rune-card{min-height:208px;max-width:185px}.rune-card>strong{font-size:14px}.rune-card>p{font-size:11px}.rune-card-glyph{height:73px}}
@media(max-width:1000px){.expedition-panel{padding:25px}.expedition-panel h2{font-size:31px}.hero-select,.upgrade-grid{gap:10px}.hero-select>button,.upgrade-grid>button{padding:18px 13px}.hero-select strong,.upgrade-grid strong{font-size:16px}.rune-enemies{top:150px}.rune-hand{gap:6px}.rune-card{padding:10px 8px}.rune-card>strong{font-size:11px}.rune-card>p{font-size:8px}.rune-forge{grid-template-columns:repeat(4,1fr)}}
@media(max-width:720px){.advanced-page .game-instructions{padding:20px}.advanced-page .game-instructions ol{display:block}.expedition-root{height:640px}.expedition-top{top:14px;left:13px;right:13px;gap:7px}.expedition-stat{padding:9px 10px;min-width:64px;border-radius:8px}.expedition-stat small{font-size:6px;letter-spacing:.1em}.expedition-stat strong{font-size:18px}.vital-stat{width:137px;padding:10px 11px}.vital-stat>span{font-size:7px;letter-spacing:.14em}.vital-stat b{font-size:20px}.vital-stat small{font-size:8px}.expedition-objective{top:111px;font-size:8px;padding:7px 10px}.adventure-pad{left:14px;right:14px;bottom:43px}.adventure-pad .control-group:first-child{grid-template-columns:repeat(3,37px);grid-template-rows:39px 39px;gap:4px}.adventure-pad .touch-key{height:39px;min-width:37px;font-size:20px}.adventure-pad .action,.adventure-pad .boost{height:48px;min-width:49px;font-size:23px;padding:0 12px}.platform-pad{bottom:25px}.platform-pad .touch-key.left,.platform-pad .touch-key.right{height:46px;min-width:47px}.ability-status{right:14px;bottom:136px;gap:6px;font-size:6px}.ability-status span{padding:6px 7px}.xp-track{left:14px;right:14px;font-size:7px;gap:7px;bottom:16px}.music-toggle{right:14px;bottom:99px;width:25px;height:25px;font-size:13px}.boss-health{bottom:187px;width:57%}.boss-health>span{font-size:7px}.expedition-panel{padding:25px 16px;align-items:flex-start}.expedition-panel h2{font-size:29px;margin:14px 0}.expedition-panel-inner>p{font-size:11px;line-height:1.75;margin-bottom:17px}.expedition-eyebrow{font-size:7px;letter-spacing:.13em}.hero-select,.upgrade-grid{grid-template-columns:1fr;margin:18px 0;gap:9px}.hero-select>button{padding:13px 14px;display:grid;grid-template-columns:45px 1fr;column-gap:12px}.hero-glyph{grid-column:1;grid-row:1/4;width:42px;height:65px;font-size:33px;margin:0}.hero-select strong{margin:2px 0 4px;font-size:16px}.hero-select small{min-height:0;font-size:10px}.hero-select em{grid-column:2;font-size:8px;margin-top:5px}.upgrade-grid>button{display:grid;grid-template-columns:37px 1fr;column-gap:14px;padding:15px}.upgrade-grid>button>span{grid-column:1;grid-row:1/5;font-size:32px;align-self:center;margin:0}.upgrade-grid small{font-size:7px}.upgrade-grid strong{font-size:16px;margin:5px 0}.upgrade-grid p{font-size:10px;min-height:0;margin:0}.upgrade-grid em{grid-column:2;font-size:8px;margin-top:8px}.legacy-row{flex-direction:column;gap:10px;font-size:10px}.legacy-row button{font-size:10px;padding:10px 14px}.brief-controls{font-size:8px!important;margin-top:16px}.chapter-grid{grid-template-columns:repeat(4,1fr);gap:8px}.chapter-grid button{padding:13px 9px}.chapter-grid b{font-size:22px}.chapter-grid span{font-size:8px;letter-spacing:1px}.map-select{grid-template-columns:1fr;gap:10px}.map-select button{display:grid;grid-template-columns:50px 1fr;padding:17px;column-gap:10px}.map-select b{grid-row:1/3;margin:0;font-size:32px}.map-select strong{font-size:15px;margin-bottom:5px}.sector-select{grid-template-columns:repeat(3,1fr);gap:8px}.sector-select button{padding:15px 10px}.sector-select b{font-size:26px;margin-bottom:15px}.sector-select strong{font-size:11px}.sector-select span{font-size:7px}.defense-console{left:9px;right:9px;bottom:11px;padding:9px;gap:7px}.defense-slots{gap:4px}.defense-slots button{font-size:9px;min-height:34px;padding:5px 2px}.defense-build{gap:5px}.defense-build>button{padding:8px 4px;flex-direction:column;gap:4px;font-size:9px}.defense-build strong{font-size:9px}.defense-build small{font-size:8px}.defense-build .tower-dot{display:none}.defense-actions{gap:6px}.defense-actions>.expedition-primary{font-size:9px;padding:10px}.defense-actions>button:not(.expedition-primary){font-size:9px;padding:8px}.tower-selected{min-width:108px}.rune-console{padding:15px 11px 11px}.rune-hand{justify-content:flex-start;overflow-x:auto;padding:9px 0 5px;scroll-snap-type:x proximity;min-height:184px;gap:7px}.rune-card{flex:0 0 112px;max-width:none;min-height:177px;scroll-snap-align:start;padding:10px 10px 9px}.rune-card-glyph{height:51px;font-size:33px}.rune-card>strong{font-size:11px}.rune-card>p{font-size:9px;line-height:1.55}.rune-cost{width:22px;height:22px;top:8px;left:8px;font-size:12px}.rune-turnbar{gap:10px;margin-bottom:0}.rune-energy>b{width:35px;height:35px;font-size:20px}.rune-energy>span{font-size:7px}.rune-defence{font-size:8px}.rune-defence strong{font-size:14px;margin:0 3px}.rune-defence>span{margin-left:5px}.rune-turnbar>.expedition-primary{font-size:9px;padding:10px}.rune-piles{font-size:7px;padding-top:8px}.rune-piles button{font-size:8px}.rune-enemies{top:145px;right:14px;max-width:62%;gap:6px}.rune-enemies button{padding:8px;min-width:0;flex:1}.rune-enemies span{font-size:7px}.rune-enemies strong{font-size:11px}.rune-enemies em{font-size:7px}.rune-relics{left:13px;top:126px;font-size:7px;flex-direction:column;gap:5px}.rune-relics span{padding:4px}.rune-rewards{gap:7px}.rune-rewards .rune-card{flex:1;min-width:0;min-height:195px;padding:10px 7px}.rune-rewards .rune-card-glyph{font-size:32px;height:65px}.rune-rewards .rune-card>strong{font-size:12px}.rune-rewards .rune-card>p{font-size:9px}.rune-forge{grid-template-columns:repeat(3,1fr);gap:8px}.rune-forge .rune-card{min-width:0;min-height:170px}.route-choices{grid-template-columns:1fr 1fr;gap:10px}.route-choices button{padding:18px 13px}.route-choices span{font-size:25px;margin-bottom:15px}.route-choices strong{font-size:14px}.route-choices small{font-size:9px}.vault-intro{padding:17px;gap:14px}.vault-intro>span{font-size:43px}.vault-intro strong{font-size:14px}.vault-intro small{font-size:10px}.rune-deck-list>div{grid-template-columns:30px 1fr;font-size:10px;gap:6px}.rune-deck-list small{grid-column:2;font-size:9px}body[data-game=vault] .music-toggle{bottom:297px}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-root{height:calc(100dvh - 47px)}}
.rune-hand-hint{display:none}
@media(max-width:720px){.rune-hand-hint{display:block;margin-top:8px;text-align:right;font-size:9px;color:#b2c8cd}}
@media(max-width:380px){.expedition-root{height:610px}.expedition-top{left:10px;right:10px;gap:5px}.vital-stat{width:116px}.expedition-stat{min-width:58px;padding:9px 8px}.expedition-stat strong{font-size:16px}.expedition-panel{padding:23px 13px}.expedition-panel h2{font-size:25px}.rune-card{flex-basis:107px}.rune-turnbar{gap:6px}.rune-defence>span{display:none}.expedition-primary{font-size:10px}.rune-forge{grid-template-columns:1fr 1fr}.defense-build strong{font-size:8px}}
@media(max-height:550px) and (orientation:landscape){.game-stage:is(:fullscreen,.is-fullscreen) .expedition-top{top:8px;left:15px;right:15px}.game-stage:is(:fullscreen,.is-fullscreen) .vital-stat{width:135px;padding:6px 10px}.game-stage:is(:fullscreen,.is-fullscreen) .vital-stat b{font-size:17px}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-stat{padding:6px 10px}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-stat strong{font-size:18px}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-objective{top:82px}.game-stage:is(:fullscreen,.is-fullscreen) .adventure-pad{bottom:28px}.game-stage:is(:fullscreen,.is-fullscreen) .ability-status{bottom:118px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-console{max-width:70%;margin-left:auto}.game-stage:is(:fullscreen,.is-fullscreen) .rune-card{min-height:128px;flex-basis:100px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-card-glyph{height:32px;font-size:23px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-card>p{font-size:7px;margin-bottom:5px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-card>strong{font-size:9px;margin:5px 0}.game-stage:is(:fullscreen,.is-fullscreen) .rune-enemies{top:95px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-piles{padding-top:4px}.game-stage:is(:fullscreen,.is-fullscreen) .rune-hand{min-height:0}.game-stage:is(:fullscreen,.is-fullscreen) .expedition-panel h2{font-size:26px}}

.sector-select small{display:block;color:#aec1d7;font-size:10px;line-height:1.55;margin:8px 0 12px}.sector-select [aria-current=step]{border-color:#a2dae7;background:#2a4254;box-shadow:inset 0 0 0 1px #96d9df33}

.ember-build-button{position:absolute;z-index:12;top:155px;left:25px;padding:9px 13px;border:1px solid #739a9c88;border-radius:8px;color:#dbe7e1;background:#1a313dee;font:inherit;font-size:10px;cursor:pointer}.ember-paths{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.ember-paths span{padding:8px 11px;background:#29424a;border:1px solid #628a9166;border-radius:6px;font-size:11px}.ember-combos{padding:0;list-style:none;display:grid;gap:9px;text-align:left}.ember-combos li{padding:13px;border:1px solid #68859355;border-radius:9px;font-size:12px;line-height:1.6;color:#aabecb}.ember-combos li.active{color:#d2f5bc;border-color:#a8d99a88;background:#52735733}.ember-combos small{display:block;font-size:10px;color:#9cafb5}@media(max-width:720px){.ember-build-button{top:150px;left:13px;font-size:9px;padding:8px 10px}}@media(max-height:550px) and (orientation:landscape){.game-stage:is(:fullscreen,.is-fullscreen) .ember-build-button{top:118px;left:12px;font-size:8px}}

body[data-game=starwake] .boss-health{top:170px;bottom:auto;width:42%;max-width:390px}@media(max-width:720px){body[data-game=starwake] .boss-health{top:155px;width:70%}}@media(max-height:550px) and (orientation:landscape){body[data-game=starwake] .game-stage:is(:fullscreen,.is-fullscreen) .boss-health{top:104px;width:34%}}

.chapter-grid [aria-current=step]{border-color:#acd6c0;background:#35554e}#rift-resume{margin-right:10px;margin-bottom:10px}body[data-game=rift] .expedition-top{gap:8px}body[data-game=rift] .expedition-stat{min-width:0}

.star-loadout-button{pointer-events:auto;cursor:pointer;margin-top:8px;padding:5px 0;border:0;background:none;color:#b9e2e4;font:inherit;font-size:10px;text-align:left;min-height:28px}.star-loadout-button:hover{color:#fff}.star-specs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.star-specs span{padding:12px;background:#243643;border-radius:9px;font-size:10px;color:#b4c7cc}.star-specs b{display:block;font-size:24px;color:#f0efd4;margin-top:8px}.star-module-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}.star-module-list article{padding:15px;border:1px solid #697e9144;border-radius:10px;opacity:.65}.star-module-list article.equipped{border-color:#91d8d977;background:#39777a22;opacity:1}.star-module-list strong{display:flex;justify-content:space-between;gap:10px;font-size:13px}.star-module-list p{font-size:11px;line-height:1.6;margin:9px 0 0}.star-module-list b{color:#bde9bd;white-space:nowrap}@media(max-width:720px){.star-specs{grid-template-columns:1fr 1fr}.star-module-list{grid-template-columns:1fr}.star-loadout-button{font-size:9px;margin-top:5px;min-height:28px}body[data-game=starwake] .expedition-objective{top:149px}body[data-game=starwake] .boss-health{top:194px}}@media(max-height:550px) and (orientation:landscape){body[data-game=starwake] .game-stage:is(:fullscreen,.is-fullscreen) .star-loadout-button{min-height:44px;margin-top:1px;padding:2px 0}body[data-game=starwake] .game-stage:is(:fullscreen,.is-fullscreen) .expedition-objective{top:82px}body[data-game=starwake] .game-stage:is(:fullscreen,.is-fullscreen) .boss-health{top:104px}}

@media(max-width:720px){.expedition-stat small{font-size:8px;letter-spacing:.05em}.expedition-objective{font-size:10px}.ability-status{font-size:8px}.boss-health>span{font-size:9px}.adventure-pad .control-group:first-child{grid-template-columns:repeat(3,42px);grid-template-rows:44px 44px;gap:4px}.adventure-pad .touch-key{height:44px;min-width:42px}}

body[data-game=rift] #rift-objective{white-space:normal;line-height:1.5;text-align:center}

body:is([data-game=ember],[data-game=starwake]) .expedition-objective{white-space:normal;line-height:1.5;text-align:center}

/* Real action targets remain reachable on the regular phone page. */
body:is([data-game=ember],[data-game=rift],[data-game=starwake]) .adventure-pad .control-group:first-child{grid-template-columns:repeat(3,44px);grid-template-rows:44px 44px}
body:is([data-game=ember],[data-game=rift],[data-game=starwake]) .adventure-pad .touch-key{min-width:44px;min-height:44px;touch-action:none}
.ember-build-button,.star-loadout-button{min-height:44px}
@media(max-width:720px) and (orientation:portrait){
 body:is([data-game=ember],[data-game=rift],[data-game=starwake]) .game-root.expedition-root{height:clamp(520px,calc(100dvh - 155px),760px);min-height:0!important}
 body:is([data-game=ember],[data-game=rift],[data-game=starwake]) .adventure-pad{left:12px;right:12px;bottom:35px}
 body[data-game=rift] .adventure-pad{bottom:25px}
 body[data-game=ember] .ember-build-button{top:156px}
 body[data-game=starwake] .star-loadout-button{font-size:10px;line-height:1.3}
 body[data-game=starwake] .expedition-objective{top:164px}
 body[data-game=starwake] .boss-health{top:218px}
 body:is([data-game=ember],[data-game=rift],[data-game=starwake]) .game-stage:is(:fullscreen,.is-fullscreen) .game-root.expedition-root{height:calc(100dvh - 47px)}
}

/* Keep the flight, damage and equipment information compact on phones. */
@media(max-width:720px) and (orientation:portrait){
 body[data-game=starwake] .expedition-top{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));align-items:start;top:10px;left:10px;right:10px}
 body[data-game=starwake] .vital-stat{width:auto;min-width:0;padding:6px 8px}
 body[data-game=starwake] .vital-stat>span{display:none}
 body[data-game=starwake] .vital-stat>div{margin:0 0 3px}
 body[data-game=starwake] .vital-stat b{font-size:18px}
 body[data-game=starwake] .vital-stat .shield-progress{margin-top:3px}
 body[data-game=starwake] .star-loadout-button{display:block;width:100%;margin-top:3px;padding:3px 0;min-height:44px}
 body[data-game=starwake] .expedition-stat{min-width:0;padding:8px;border-radius:8px}
 body[data-game=starwake] .expedition-objective{top:118px;left:10px;right:10px;max-width:none;transform:none;padding:6px 9px;font-size:10px;line-height:1.4}
 body[data-game=starwake] .boss-health{top:174px}
}

/* On touch, keep Ember's guide below the actual wrapped teaching text. */
.ember-guidance{display:contents}
.ember-guidance>.ember-build-button{pointer-events:auto}
.game-stage[data-input-mode=touch] .ember-guidance{position:absolute;top:130px;left:5%;right:5%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:12}
.game-stage[data-input-mode=touch] .ember-guidance>.expedition-objective{position:static;top:auto;left:auto;transform:none;max-width:none;width:100%;box-sizing:border-box}
.game-stage[data-input-mode=touch] .ember-guidance>.ember-build-button{position:static;top:auto;left:auto;max-width:100%;margin:0;box-sizing:border-box}
@media(max-width:720px){.game-stage[data-input-mode=touch] .ember-guidance{top:111px;left:13px;right:13px}}
@media(max-height:550px) and (orientation:landscape){.game-stage[data-input-mode=touch]:is(:fullscreen,.is-fullscreen) .ember-guidance{top:82px;left:15px;right:15px}}
