.strategy-root{height:760px}
.strategy-root .expedition-panel{background:linear-gradient(125deg,rgba(9,23,31,.97),rgba(24,33,43,.96));padding:32px 42px}
.strategy-root .expedition-panel-inner{max-width:960px}
.strategy-root .expedition-panel h2{font-size:clamp(27px,3.2vw,42px);margin:12px 0 14px}
.strategy-root .expedition-panel-inner>p{max-width:730px;font-size:13px;line-height:1.8}
.strategy-choice-label{margin:22px 0 10px;font-size:9px;letter-spacing:2px;color:#d8c59f;font-weight:700}
.doctrine-select,.rune-hero-select{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.doctrine-select button,.rune-hero-select button{border:1px solid #455662;border-radius:12px;background:#20323c;text-align:left;color:#f5eddb;overflow:hidden;transition:border-color .18s,background .18s}
.doctrine-select button{padding:16px}
.doctrine-select button[aria-pressed=true],.rune-hero-select button[aria-pressed=true]{border-color:#d6d7a2;background:#35483e;box-shadow:inset 0 0 0 1px #d6d7a255}
.doctrine-select strong,.rune-hero-select strong{display:block;font-size:14px;margin-bottom:6px}
.doctrine-select small,.rune-hero-select small{display:block;font-size:11px;line-height:1.65;color:#bfd1cc}
.strategy-map-select{grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.strategy-map-select button{display:grid;grid-template-columns:35px 1fr;column-gap:14px;padding:16px}
.strategy-map-select button b{grid-row:span 2;font-size:26px;margin:0;align-self:center;color:#d5c5a3}
.strategy-map-select button strong{font-size:13px;margin:0 0 5px}
.strategy-map-select button span{font-size:9px}
.strategy-journal-button{position:absolute;left:25px;top:132px;z-index:5;border:1px solid #6f837b66;border-radius:20px;background:#152b32dc;color:#d0dcc6;padding:9px 13px;font-size:10px;cursor:pointer}
.strategy-root .expedition-objective{top:140px;font-size:11px;max-width:55%;white-space:nowrap}
.strategy-root .defense-console{max-width:980px;width:calc(100% - 36px);bottom:12px;left:50%;right:auto;transform:translateX(-50%);padding:14px;background:#10242ef5;border-color:#687b7370;box-shadow:0 6px 35px #06151e66}
.wave-forecast{display:flex;align-items:center;gap:18px;padding:2px 4px 10px;border-bottom:1px solid #78928b33;margin-bottom:10px;font-size:11px}
.wave-forecast b{color:#e9d9aa;white-space:nowrap}.wave-forecast span{color:#b6ccc5;line-height:1.6}
.wave-forecast{flex-wrap:wrap}.wave-forecast small{flex-basis:100%;color:#a8c4ce;line-height:1.55;font-size:10px}.citadel-threat{line-height:1.65}.strategy-map-select button>small{font-size:10px;color:#a9c5c9;margin-top:5px}
.strategy-root .defense-slots button{min-height:39px}
.strategy-root .defense-build>button{min-height:45px}
.tower-tactics{display:flex;align-items:center;gap:8px;margin-top:8px;color:#aebfbf;font-size:10px}
.tower-tactics>span{margin-right:auto}.tower-tactics>button{border:1px solid #536774;background:#223642;border-radius:5px;color:#d7e7df;padding:8px 13px;font:inherit}
.tower-tactics>button[aria-pressed=true]{border-color:#b4d09e;background:#46614b;color:#eff6df}
.tower-specializations{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.tower-specializations button{border:1px solid #7e8260;background:#364139;color:#ece0bf;border-radius:8px;padding:12px;text-align:left}
.tower-specializations strong{display:block;font-size:12px;margin-bottom:5px}.tower-specializations small{display:block;font-size:10px;line-height:1.6;color:#bdcbbd}
.strategy-root .defense-actions{margin-top:9px}
.strategy-root .music-toggle{bottom:355px}
.strategy-goals{display:grid;gap:8px;margin:20px 0}
.strategy-goals>div{display:flex;align-items:center;gap:16px;border:1px solid #6d827047;background:#27393285;border-radius:8px;padding:14px 17px;font-size:12px}
.strategy-goals b{font-size:17px;color:#d9c397}.strategy-goals span{flex:1;color:#d1daca}.strategy-goals strong{color:#e4d5af;font-size:14px}
.combo-guide{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.combo-guide article{background:#253443;border:1px solid #73869044;border-radius:10px;padding:19px}.combo-guide article>span{display:block;font-size:25px;color:#badadc;margin-bottom:10px}.combo-guide strong{font-size:13px}.combo-guide p{font-size:11px;line-height:1.7;color:#c3d0d2;margin-bottom:0}
.rune-hero-select button{padding:0 0 16px}.rune-hero-select img{display:block;width:100%;height:105px;object-fit:cover;margin-bottom:12px}.rune-hero-select strong,.rune-hero-select small{margin-left:15px;margin-right:15px}
.rune-difficulty{display:flex;align-items:center;gap:9px;margin:17px 0;color:#b3c3c4;font-size:11px}
.rune-difficulty button{border:1px solid #596975;border-radius:7px;background:#21323e;color:#d8e3df;padding:10px 14px;font:inherit}.rune-difficulty button[aria-pressed=true]{background:#3d514b;border-color:#b1c8a2}
.strategy-root .rune-card{padding:0 0 12px;overflow:hidden;min-height:230px;max-width:172px;border-color:#708986;box-shadow:0 7px 16px #05161c66}
.strategy-root .rune-card-art{width:100%;height:98px;display:block;object-fit:cover;border-bottom:1px solid #9dad9155;pointer-events:none}
.strategy-root .rune-cost{z-index:2;box-shadow:0 2px 8px #0b182a88;border:1px solid #dce7bf}
.strategy-root .rune-card>strong{margin:12px 9px 7px;font-size:12px;line-height:1.4}
.strategy-root .rune-card>p{font-size:10px;line-height:1.6;margin:0 9px 10px;min-height:45px;color:#d1d9d4}
.strategy-root .rune-card>small{font-size:8px;letter-spacing:1.3px;display:block;margin:0 9px;color:#9bacae}
.strategy-root .rune-card:disabled{opacity:.48;filter:saturate(.6)}
.strategy-root .rune-console{padding:15px 25px 15px;background:linear-gradient(transparent,#0c1b29ed 20%,#0b1924 100%)}
.strategy-root .rune-hand{gap:9px;min-height:248px;padding-top:10px;overflow-x:auto;justify-content:safe center}
.strategy-root .rune-enemies{top:165px;right:28px;max-width:54%;gap:9px}
.strategy-root .rune-enemies button{background:#152536e8;border-color:#776d68;min-width:145px;padding:13px}
.strategy-root .rune-enemies button[aria-pressed=true]{border-color:#dac093;box-shadow:0 0 0 1px #dbc79a3d}
.strategy-root .rune-enemies span{font-size:10px}.strategy-root .rune-enemies em{font-size:10px;line-height:1.5;color:#e8c9a2}.strategy-root .rune-enemies small{font-size:9px;color:#c6d3bb;display:block;margin-top:6px}
.strategy-root .rune-relics{top:168px;left:25px;max-width:42%;gap:6px;flex-wrap:wrap}.strategy-root .rune-relics span{font-size:9px;max-width:130px;background:#2b3435d9}
.rune-player-status{position:absolute;left:25px;top:215px;font-size:10px;color:#c4d791;max-width:38%;line-height:1.7}
.rune-battle-log{position:absolute;right:27px;bottom:330px;max-width:45%;font-size:10px;line-height:1.7;color:#c2bdab;pointer-events:none;text-align:right}
.rune-campaign-map{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;margin:20px 0 25px}
.rune-campaign-map>div{position:relative;text-align:center}.rune-campaign-map>div:not(:last-child):after{content:'';position:absolute;top:17px;left:68%;width:74%;height:1px;background:#687b6c77}
.rune-campaign-map b{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;margin:0 auto 8px;border:1px solid #5b6a6f;border-radius:50%;background:#23343c;color:#94aaa9;font-size:11px}
.rune-campaign-map span{font-size:8px;line-height:1.5;color:#9bafac;display:block}.rune-campaign-map .complete b{background:#3e5846;border-color:#a8c193;color:#dbeac7}.rune-campaign-map .current b{background:#d7c191;color:#20302c;border-color:#e1ce9e;box-shadow:0 0 20px #d7c19130}.rune-campaign-map .current span{color:#e1ce9e}
.strategy-root .route-choices{grid-template-columns:repeat(3,1fr);gap:10px}.strategy-root .route-choices button{padding:18px}.strategy-root .route-choices span{font-size:28px;margin-bottom:12px}.strategy-root .route-choices strong{font-size:14px}.strategy-root .route-choices small{font-size:11px;line-height:1.7}
.relic-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:25px 0}
.relic-choices button{border:1px solid #9f906b;background:radial-gradient(at top,#554930,#1b2c36);border-radius:14px;color:#f0e3be;padding:30px 22px;text-align:left}
.relic-choices span{display:block;font-size:44px;margin-bottom:30px;color:#e9cb87}.relic-choices strong{display:block;font-size:18px}.relic-choices p{font-size:12px;line-height:1.8;color:#d0d3c1;min-height:66px}.relic-choices em{font-size:11px;font-style:normal;color:#d6dcb8}
.strategy-root .rune-rewards .rune-card{max-width:210px;flex:1}.strategy-root .rune-forge .rune-card{max-width:none}.strategy-root .rune-forge{gap:12px}
.rune-shop-offers{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.rune-shop-offers article{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:center}.rune-shop-offers .rune-card{width:100%;max-width:none}.rune-shop-offers article>strong{color:#dac998;font-size:15px}
.rune-remove-card{display:flex;gap:10px;flex-wrap:wrap;background:#273840;padding:16px;border:1px solid #637b7666;border-radius:9px;margin:22px 0}.rune-remove-card label{width:100%;font-size:11px;color:#cbd4cb}.rune-remove-card select{flex:1;min-width:120px;background:#142632;border:1px solid #62756d;border-radius:6px;color:#e1e7d5;padding:10px;font-size:12px}.rune-remove-card button{padding:11px 20px;border:1px solid #b1ac7d;border-radius:6px;background:#c6d49f;color:#1f3331;font-size:12px}
.strategy-root .rune-deck-list>div{grid-template-columns:75px 1fr;gap:7px 14px;padding:12px}.rune-deck-list img{width:75px;height:52px;object-fit:cover;grid-row:span 2;border-radius:6px}.strategy-root .rune-deck-list small{grid-column:2;font-size:11px;line-height:1.6}
.rune-glossary{font-size:12px;color:#b9c9c7;line-height:1.8}.rune-glossary b{color:#e0d6b6}
@media(max-width:1000px){.strategy-root .rune-card{flex:0 0 145px}.strategy-root .rune-hand{justify-content:flex-start}.strategy-root .defense-console{max-width:850px}.strategy-root .expedition-panel{padding:25px}}
@media(max-width:720px){
  .strategy-root{height:max(760px,calc(100svh - 135px))}.strategy-root .expedition-panel{padding:24px 16px}.strategy-root .expedition-panel-inner>p{font-size:11px}.strategy-choice-label{font-size:8px;letter-spacing:1px}
  .doctrine-select{grid-template-columns:1fr;gap:7px}.doctrine-select button{padding:10px 13px;display:grid;grid-template-columns:73px 1fr;gap:9px;align-items:center}.doctrine-select strong{font-size:12px;margin:0}.doctrine-select small{font-size:9px;line-height:1.5}
  .strategy-map-select{grid-template-columns:1fr 1fr;gap:8px}.strategy-map-select button{display:block;padding:12px}.strategy-map-select button b{font-size:22px;margin-bottom:8px}.strategy-map-select button strong{font-size:10px;line-height:1.4}.strategy-map-select button span{font-size:8px}
  .strategy-journal-button{left:12px;top:128px;font-size:9px;padding:8px 11px}.strategy-root .expedition-objective{top:177px;max-width:86%;font-size:9px}
  .strategy-root .defense-console{width:calc(100% - 18px);padding:10px;bottom:10px}.wave-forecast{gap:7px;align-items:flex-start;flex-direction:column;font-size:10px;padding:0 0 7px;margin-bottom:8px}.wave-forecast span{font-size:9px}
  .strategy-root .defense-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.strategy-root .defense-slots button{min-height:39px;font-size:11px}.strategy-root .defense-build>button{min-height:49px}.strategy-root .defense-build strong{font-size:9px}.strategy-root .defense-build .tower-selected{min-width:90px}.strategy-root .tower-selected span{font-size:8px}
  .tower-tactics{gap:5px;font-size:8px;flex-wrap:wrap}.tower-tactics>button{padding:9px;font-size:9px}.tower-tactics>small{width:100%}.tower-specializations{gap:6px}.tower-specializations button{padding:10px}.tower-specializations strong{font-size:10px}.tower-specializations small{font-size:9px}.strategy-root .music-toggle{bottom:390px}
  .strategy-goals>div{padding:11px;gap:9px;font-size:10px}.strategy-goals strong{font-size:12px}.strategy-goals b{font-size:14px}.combo-guide{grid-template-columns:1fr}.combo-guide article{padding:14px}
  .rune-hero-select{gap:7px}.rune-hero-select img{height:73px;margin-bottom:8px}.rune-hero-select button{padding-bottom:10px}.rune-hero-select strong,.rune-hero-select small{margin-left:8px;margin-right:8px}.rune-hero-select strong{font-size:11px;line-height:1.4}.rune-hero-select small{font-size:9px;line-height:1.55}
  .rune-difficulty{gap:6px;flex-wrap:wrap;font-size:9px}.rune-difficulty button{padding:9px;font-size:9px}
  .strategy-root .rune-console{padding:15px 11px 11px}.strategy-root .rune-hand{min-height:252px;gap:7px;justify-content:flex-start}.strategy-root .rune-card{flex-basis:132px;min-height:235px;max-width:none}.strategy-root .rune-card-art{height:81px}.strategy-root .rune-card>strong{font-size:11px;margin:10px 8px 7px}.strategy-root .rune-card>p{font-size:9px;margin:0 8px 9px;line-height:1.6;min-height:67px}.strategy-root .rune-card>small{font-size:7px;margin:0 8px}.strategy-root .rune-cost{font-size:12px;width:23px;height:23px;left:7px;top:7px}
  .strategy-root .rune-enemies{top:181px;right:12px;max-width:64%;gap:6px}.strategy-root .rune-enemies button{padding:8px;min-width:0}.strategy-root .rune-enemies span{font-size:8px}.strategy-root .rune-enemies em{font-size:8px}.strategy-root .rune-enemies small{font-size:8px;line-height:1.6}.strategy-root .rune-relics{top:170px;left:12px;max-width:33%;gap:4px}.strategy-root .rune-relics span{font-size:7px}.rune-player-status{left:12px;top:245px;font-size:8px;max-width:32%}.rune-battle-log{right:14px;bottom:350px;font-size:9px}
  .rune-campaign-map{gap:4px;margin:16px 0 20px}.rune-campaign-map b{width:25px;height:25px;font-size:9px;margin-bottom:5px}.rune-campaign-map>div:not(:last-child):after{top:12px}.rune-campaign-map span{font-size:6px}.strategy-root .route-choices{grid-template-columns:1fr 1fr;gap:8px}.strategy-root .route-choices button{padding:13px}.strategy-root .route-choices strong{font-size:12px}.strategy-root .route-choices small{font-size:10px}.strategy-root .route-choices span{font-size:24px;margin-bottom:8px}
  .relic-choices{grid-template-columns:1fr;gap:10px;margin:16px 0}.relic-choices button{padding:17px;display:grid;grid-template-columns:40px 1fr;column-gap:12px}.relic-choices span{grid-row:span 3;font-size:35px;margin:0;align-self:center}.relic-choices strong{font-size:15px}.relic-choices p{font-size:11px;min-height:0;margin:8px 0}.relic-choices em{font-size:9px}
  .strategy-root .rune-rewards{gap:6px}.strategy-root .rune-rewards .rune-card{padding:0 0 10px;min-width:0;min-height:267px}.strategy-root .rune-rewards .rune-card-art{height:76px}.strategy-root .rune-rewards .rune-card>strong{font-size:10px}.strategy-root .rune-rewards .rune-card>p{font-size:9px}
  .rune-shop-offers{gap:7px}.rune-shop-offers .rune-card{min-height:285px}.rune-shop-offers .rune-card-art{height:75px}.rune-shop-offers .rune-card>strong{font-size:10px}.rune-shop-offers .rune-card>p{font-size:9px}.rune-shop-offers article>strong{font-size:12px}.rune-remove-card{padding:12px;gap:8px}.rune-remove-card label{font-size:10px}.rune-remove-card button{padding:10px;font-size:10px}.rune-remove-card select{font-size:10px}
  .strategy-root .rune-forge{grid-template-columns:1fr 1fr}.strategy-root .rune-forge .rune-card{min-height:235px}.strategy-root .rune-deck-list>div{grid-template-columns:52px 1fr;padding:10px;gap:5px 9px}.rune-deck-list img{width:52px;height:44px}.strategy-root .rune-deck-list small{font-size:9px}.rune-glossary{font-size:10px}
}
@media(max-height:550px) and (orientation:landscape){.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root{height:calc(100dvh - 47px)}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-journal-button{top:85px}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-console{width:70%;margin-left:auto}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card{min-height:160px;flex-basis:125px}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card-art{height:50px}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card>p{font-size:8px;min-height:34px;line-height:1.4}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-hand{min-height:0}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-console{max-width:65%;left:auto;right:10px;transform:none}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-slots{grid-template-columns:repeat(8,1fr)}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .wave-forecast{display:none}.game-stage:is(:fullscreen,.is-fullscreen) .rune-hand-hint{display:none}}

/* Let the navigation scroll away while a strategy game uses the whole page. */
body[data-game=citadel] .topbar,body[data-game=vault] .topbar{position:relative}
body[data-game=citadel] .strategy-root .music-toggle,body[data-game=vault] .strategy-root .music-toggle{top:132px;bottom:auto;right:25px}
@media(max-width:720px){
  .strategy-journal-button{top:110px}
  .strategy-root .expedition-objective{top:145px}
  .strategy-root .rune-enemies{top:156px}
  .strategy-root .rune-relics{top:155px}
  .rune-player-status{top:209px}
  body[data-game=citadel] .strategy-journal-button{top:95px}
  body[data-game=citadel] .strategy-root .expedition-objective{top:133px}
  body[data-game=citadel] .strategy-root .music-toggle,body[data-game=vault] .strategy-root .music-toggle{top:112px;right:12px}
}
@media(max-height:550px) and (orientation:landscape){
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-console{width:50%;max-width:50%;padding:9px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .tower-specializations button{padding:7px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .tower-specializations small{font-size:8px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .tower-specializations strong{font-size:10px;margin-bottom:3px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-build>button{min-height:33px;padding:7px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .tower-tactics{margin-top:6px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .tower-tactics>button{padding:6px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-slots button{min-height:30px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-console{width:62%;max-width:62%;padding:8px 12px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies{top:78px;right:14px;max-width:60%}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies button{padding:5px 8px;display:flex;align-items:center;gap:8px;min-width:0}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies span,.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies strong,.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies em{font-size:8px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies progress{display:none}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-enemies small{margin:0;font-size:7px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card{min-height:145px;flex-basis:126px;padding-bottom:7px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card-art{height:45px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card>strong{font-size:9px;margin:7px 8px 4px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-card>p{font-size:8px;min-height:30px;line-height:1.4;margin-bottom:5px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-hand{padding-top:4px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-relics{top:127px;left:15px;max-width:30%}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-player-status{top:172px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .strategy-journal-button{top:76px;left:15px;font-size:8px}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .expedition-objective{top:112px;font-size:8px;left:15px;transform:none;max-width:42%}
  .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .music-toggle{top:auto;bottom:12px;left:15px;right:auto}
  .game-stage:is(:fullscreen,.is-fullscreen) .rune-battle-log{bottom:16px;left:45px;max-width:27%;font-size:8px}
}

.skip:not(:focus){clip-path:inset(50%)}

@media(max-width:720px) and (min-height:551px){
  .strategy-root .rune-card>strong{font-size:12px}
  .strategy-root .rune-card>p{font-size:11px;line-height:1.5;min-height:72px}
  .strategy-root .rune-card>small{font-size:8px}
  .strategy-root .rune-enemies span,.strategy-root .rune-enemies em{font-size:10px}
  .strategy-root .rune-enemies small{font-size:9px}
  .rune-hero-select small{font-size:10px}
  .strategy-root .rune-rewards .rune-card>p,.rune-shop-offers .rune-card>p{font-size:11px}
}

@media(max-height:550px) and (orientation:landscape){.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root #rune-journal{top:98px}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-relics{top:136px}.game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .rune-player-status{top:196px}}

.strategy-root.strategy-sideboard .defense-console{width:310px;left:auto;right:20px;top:158px;bottom:20px;transform:none;overflow-y:auto;padding:17px}
.strategy-sideboard .wave-forecast{flex-direction:column;align-items:flex-start;gap:8px;font-size:12px;padding-bottom:15px;margin-bottom:15px}
.strategy-sideboard .wave-forecast span{font-size:11px}
.strategy-root.strategy-sideboard .defense-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.strategy-root.strategy-sideboard .defense-slots button{min-height:40px;font-size:12px}
.strategy-sideboard .defense-build{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.strategy-root.strategy-sideboard .defense-build>button{min-height:55px;flex-wrap:wrap;justify-content:center;gap:6px;padding:12px 8px;font-size:11px}
.strategy-sideboard .defense-build strong{font-size:11px}.strategy-sideboard .defense-build .tower-dot{display:none}
.strategy-sideboard .tower-selected{grid-column:1/-1;padding:9px 0}.strategy-sideboard .tower-selected strong{font-size:13px}.strategy-sideboard .tower-selected span{font-size:11px}
.strategy-sideboard .tower-tactics{flex-wrap:wrap;margin-top:14px;gap:6px}.strategy-sideboard .tower-tactics>span{width:100%;font-size:11px;margin-bottom:3px}
.strategy-sideboard .tower-tactics>button{flex:1;font-size:11px;padding:9px}
.strategy-sideboard .tower-specializations{grid-template-columns:1fr;margin-top:14px}.strategy-sideboard .tower-specializations button{padding:12px}.strategy-sideboard .tower-specializations small{font-size:11px}
.strategy-sideboard .defense-actions{flex-wrap:wrap;margin-top:16px;gap:8px}.strategy-sideboard .defense-actions>.expedition-primary{flex:1 0 100%;font-size:12px;padding:13px}.strategy-sideboard .defense-actions>button:not(.expedition-primary){flex:1}

.wave-forecast{display:grid;grid-template-columns:auto minmax(0,1fr)}.wave-forecast small{grid-column:1/-1;min-width:0;white-space:normal;overflow-wrap:anywhere;flex-basis:auto}.strategy-sideboard .wave-forecast{grid-template-columns:minmax(0,1fr)}@media(max-width:720px){.wave-forecast{grid-template-columns:minmax(0,1fr)}}

/* Citadel quality pack: the playable board keeps its space while the tactical
   panel scrolls. Currency and cooldown ticks update controls in place. */
body[data-game=citadel] .defense-console{max-height:49%;overflow:hidden;grid-template-rows:minmax(0,1fr) auto;align-content:start}
.citadel-console-content{display:grid;grid-auto-rows:max-content;align-content:start;gap:10px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#809782 #10242e;scroll-padding:12px;padding:3px}
body[data-game=citadel] .defense-console .defense-actions{margin-top:0;border-top:1px solid #78928b33;padding-top:8px}
body[data-game=citadel] .strategy-sideboard .defense-console{max-height:none}
.citadel-coach{border-left:3px solid #b7dca3;padding:1px 0 1px 10px;color:#e8eedc}
.citadel-coach strong{font-size:13px;line-height:1.4}
.citadel-coach p{font-size:12px;line-height:1.55;margin:5px 0;color:#bdcfc8}
.citadel-wave-review{font-size:11px;line-height:1.5;color:#cbe6ab;margin:0;padding:7px 0;border-bottom:1px solid #78928b33}
.wave-forecast .citadel-new-threat{color:#f2cf97;font-weight:700}
body[data-game=citadel] .defense-build>button{position:relative;flex-wrap:wrap}
body[data-game=citadel] .defense-build>button[data-tower]{flex-direction:column;flex-wrap:nowrap;min-width:0;gap:5px}
.citadel-tower-role{display:block;flex:0 0 auto;width:100%;white-space:normal;text-align:center;font-size:10px;line-height:1.3;color:#b4cbc8}
.tower-specializations em{display:block;margin-top:7px;font-size:10px;line-height:1.45;font-style:normal;color:#d9ca99}
.tower-specializations button[aria-pressed=true]{border-color:#b7dca3;background:#334c42;opacity:1}
.tower-specializations button:disabled:not([aria-pressed=true]){opacity:.5;cursor:not-allowed}
.citadel-quickstart{background:#294238;border:1px solid #96b38a66;border-radius:12px;padding:18px;margin:16px 0 22px}
.citadel-quickstart p{font-size:14px;line-height:1.65;color:#e2ebd9;margin:0 0 14px}
.citadel-quickstart .expedition-primary{margin:0 0 12px;min-height:46px;font-size:13px}
.citadel-quickstart small{display:block;font-size:12px;line-height:1.6;color:#bbd2bd}
body[data-game=citadel] .defense-console button:focus-visible{outline:2px solid #ecdcad;outline-offset:2px}
@media(max-width:720px){
  body[data-game=citadel] .strategy-root .expedition-top{top:8px;left:12px;right:12px;gap:6px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-game=citadel] .strategy-root .expedition-stat{min-width:0;padding:6px 9px}
  body[data-game=citadel] .strategy-root .expedition-stat small{font-size:8px;margin-bottom:2px}
  body[data-game=citadel] .strategy-root .expedition-stat strong{font-size:19px}
  body[data-game=citadel] .strategy-root .strategy-journal-button{top:57px;left:12px;min-height:44px;max-width:138px;font-size:10px;padding:7px 10px}
  body[data-game=citadel] .strategy-root .expedition-objective{top:63px;left:156px;right:12px;max-width:none;transform:none;white-space:normal;padding:6px 8px;font-size:9px;line-height:1.35}
  body[data-game=citadel] .defense-slots button,body[data-game=citadel] .defense-actions button,body[data-game=citadel] .tower-tactics button{min-height:44px}
  .citadel-coach strong{font-size:12px}.citadel-coach p{font-size:11px}
  body[data-game=citadel] .wave-forecast small{font-size:11px}
}
@media(max-height:550px) and (orientation:landscape){
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-console{top:12px;bottom:12px;max-height:calc(100% - 24px)}
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .expedition-top{left:15px;right:calc(50% + 22px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .expedition-stat{min-width:0;padding:6px 9px}
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .expedition-stat small{font-size:8px;letter-spacing:.1em}
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .wave-forecast{display:grid}
  body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .strategy-root .defense-slots{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Normal phone pages keep the valley and fixed wave actions together. */
@media(max-width:720px) and (orientation:portrait){
 body[data-game=citadel] .game-root.strategy-root{height:clamp(500px,calc(100dvh - 155px),820px);min-height:0}
 body[data-game=citadel] .strategy-root .defense-console{max-height:min(300px,43dvh);bottom:9px;padding:9px}
 body[data-game=citadel] .game-stage:is(:fullscreen,.is-fullscreen) .game-root.strategy-root{height:calc(100dvh - 47px)}
}

/* Name the existing Citadel scroller; keep fixed wave actions separate. */
body[data-game=citadel] .defense-actions>button{min-width:44px}
body[data-game=citadel] .citadel-console-content{scrollbar-width:auto;scrollbar-color:#bed99d #10242e;scrollbar-gutter:stable;scroll-padding-top:26px;padding-bottom:12px}
body[data-game=citadel] .citadel-scroll-hint{position:sticky;top:0;z-index:1;margin:0;padding:3px 5px;background:#10242e;color:#d3e3c3;font-size:10px;line-height:1.4;border-bottom:1px solid #78928b55}
body[data-game=citadel] .citadel-console-content::-webkit-scrollbar{width:7px}
body[data-game=citadel] .citadel-console-content::-webkit-scrollbar-thumb{background:#bed99d;border-radius:4px}
body[data-game=citadel] .citadel-console-content::-webkit-scrollbar-track{background:#10242e}
