.game-card.tower{background:#312c39;border-color:#8c7479}.tower .card-art:after{background:linear-gradient(0deg,#312c39,transparent 42%)}.tower .card-copy h2{font-size:39px;color:#f6cfac}.tower .primary{background:#efc69d;color:#3a2a2d}.tower .cover-caption{color:#e5c7b2}.tower .new-pill{color:#ffe3bb;border-color:#d8ad8a77;background:#49323ce0}.tower.featured{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.05fr;align-items:center}.tower.featured .card-art{height:300px}.tower.featured .card-copy{padding:26px}.tower.featured .card-copy p{max-width:400px}
.role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.role-choice{display:flex;align-items:center;gap:9px;padding:12px 9px;border:1px solid #566271;border-radius:11px;background:#243644;color:#dce1d5;font-size:11px;cursor:pointer}.role-choice .icon{width:21px;height:21px;color:#c9c5ad;flex-shrink:0}.role-choice.active{background:#51433f;border-color:#d1ad85;color:#ffe5bd}.role-hint{font-size:11px!important;line-height:1.6!important;color:#bfc8bc!important;margin:8px 0!important;min-height:33px}.tower-howto{background:#e7b68d08;border-color:#c4a58b44}.tower-setup .sheet{border-color:#8e777a}.tower-resume{display:flex;align-items:center;gap:10px;font-size:12px;margin:17px 0;color:#d3d6ca}.tower-resume input{width:19px;height:19px;accent-color:#e0c197}.tower-setup .primary{background:#e8c49d;color:#392f2e}
#rankGame button:last-child{grid-column:1/-1}.tower-mode{background:radial-gradient(ellipse at 50% 0,#453b45,#0d1927 80%);gap:5px}.tower-mode .battle-title b{color:#efc9ab}.tower-mode .arena-wrap{border-color:#776979}.tower-hud{flex-shrink:0;width:min(100%,920px);margin:0 auto}.tower-task{display:flex;gap:10px;align-items:center;border:1px solid #716473;border-radius:10px;padding:8px 10px;background:#2b303f}.tower-floor{font-size:27px;line-height:1;font-weight:850;color:#e4bc95;letter-spacing:-1px;padding-right:10px;border-right:1px solid #796a7155}.tower-task-copy{min-width:0;flex:1}.tower-task-copy b{font-size:12px;color:#efd7b8}.tower-task-copy p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#c1c6c3}.tower-route{height:3px;margin:5px 3px;background:#273c48;overflow:hidden;border-radius:5px}.tower-route i{display:block;background:#d7b795;height:100%;transition:width .2s}.tower-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:9px;min-height:28px}.tower-tools button{background:#2a3b49;border:1px solid #526370;color:#d5decf;padding:5px 7px;font-size:9px;border-radius:7px;cursor:pointer;white-space:nowrap}.tower-tools button:disabled{color:#99adb2;cursor:default}.tower-pings{display:flex;gap:4px}.tower-pings button{font-size:9px;padding:6px}.tower-role-name{color:#d9bd9e;white-space:nowrap}.tower-boss-bar{font-size:9px;padding:5px 7px;color:#f3beaa;border:1px solid #935e5d;border-radius:7px;background:#432e3b}.tower-boss-bar>div{display:flex;justify-content:space-between;margin-bottom:4px}.tower-boss-bar>i{display:block;height:4px;background:#352d3e;border-radius:3px;overflow:hidden}.tower-boss-bar em{display:block;height:100%;background:#e5a18a;transition:width .12s}
.tower-mode .action{background:radial-gradient(circle at 35% 25%,#ffe8bd,#dcb28b 65%,#a57765);border-color:#ffe5bb;color:#4d3740;box-shadow:0 6px 0 #64464b,0 9px 25px #0005,inset 0 2px 0 #fff4d3}.tower-mode .action-caption{color:#e8c7ac;font-size:9px;max-width:125px;min-height:14px;text-align:center;letter-spacing:0}.tower-mode .action-block{position:relative}.tower-skill{position:absolute;left:-62px;top:12px;display:grid;place-items:center;gap:6px}.tower-skill button{width:46px;height:46px;min-height:46px;background:#453c48;border-color:#ad8d86;color:#f0d3ac;touch-action:none}.tower-skill button:disabled{opacity:.45}.tower-skill small{font-size:8px;color:#d4bfa9;max-width:54px;text-align:center}.tower-mode .left-handed .tower-skill{left:auto;right:-62px}.tower-mode .control-hint{display:none}.tower-mode .status-strip{font-size:10px}.tower-mode .working-action .icon{animation:work-turn .5s ease-in-out infinite alternate}
.tower-rest,.tower-result{border-color:#a18485;max-height:100%;overflow:auto;max-width:530px}.tower-rest{padding:20px 16px}.tower-rest h2{font-size:25px;color:#f0d2b0;margin:11px 0}.tower-kicker{font-size:9px;letter-spacing:1px;color:#d2b7a0}.tower-rest .role-choice{padding:10px 8px;font-size:10px}.tower-rest .role-hint{min-height:30px}.tower-upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.upgrade-choice{padding:10px 5px;background:#2a3a47;border:1px solid #66707b;color:#e6d5b6;border-radius:10px;display:flex;align-items:center;flex-direction:column;gap:6px;cursor:pointer}.upgrade-choice:disabled{opacity:.5}.upgrade-choice .icon{width:20px;height:20px}.upgrade-choice b{font-size:10px}.upgrade-choice small{font-size:8px;line-height:1.4;color:#afc0bd}.upgrade-choice i{font-size:9px;font-style:normal;color:#e6bc95}.tower-rest>p{font-size:11px}.tower-rest>.primary,.tower-rest>.secondary{min-height:40px;padding:10px;font-size:11px}.tower-result-score{font-size:37px;font-weight:850;color:#f0cda2;margin:15px 0}.tower-result-score small{display:block;font-size:8px;font-weight:500;letter-spacing:1px;color:#cbb9ad;margin-top:5px}.tower-result .mini-score>span{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:10px;border-bottom:1px solid #c7bab012}.tower-result .mini-score b{color:#dfcba8}
@media(max-width:600px){.tower.featured{display:block}.tower.featured .card-art{height:195px}.tower.featured .card-copy{padding:7px 20px 21px}.tower .card-copy h2{font-size:35px}}
@media(max-height:680px) and (orientation:portrait){.tower-mode .battle-top{min-height:34px}.tower-mode .battle-top .icon-btn{width:32px;height:32px;min-height:32px}.tower-mode .hud{min-height:26px}.tower-mode .hud-person{padding:4px;font-size:8px}.tower-mode .controls{min-height:98px;padding:0 8px}.tower-mode .stick,.tower-mode .dpad{width:90px;height:90px}.tower-mode .stick-knob{width:44px;height:44px}.tower-mode .action{width:71px;height:71px}.tower-mode .tower-skill{left:-54px;top:6px}.tower-mode .left-handed .tower-skill{left:auto;right:-54px}.tower-mode .tower-skill button{width:40px;height:40px;min-height:40px}.tower-mode .battle-bottom{display:none}.tower-task{padding:6px 7px;gap:7px}.tower-floor{font-size:22px;padding-right:7px}.tower-task-copy b{font-size:10px}.tower-task-copy p{font-size:9px;line-height:1.3}.tower-tools{font-size:8px;min-height:25px}.tower-tools button{font-size:8px;padding:5px}.tower-role-name{display:none}.tower-mode .status-strip{font-size:9px}.tower-rest{padding:13px}.tower-rest h2{font-size:20px}.tower-rest .role-choice{padding:7px;font-size:9px}.tower-rest .role-choice .icon{width:17px;height:17px}.tower-rest .role-hint{font-size:9px!important;min-height:26px}.tower-rest .tower-upgrades{margin:6px 0}.tower-rest .upgrade-choice{padding:7px 3px;gap:4px}.tower-rest>p{margin:6px 0;font-size:10px}}
@media(orientation:landscape) and (min-width:640px) and (max-height:650px){.tower-mode{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:36px 27px 121px minmax(98px,1fr) 23px}.tower-mode .battle-top{grid-column:1/-1;grid-row:1}.tower-mode .arena-wrap{grid-column:1;grid-row:2/6}.tower-mode .hud{grid-column:2;grid-row:2;flex-wrap:nowrap;align-self:start}.tower-mode .hud-person{font-size:8px;padding:4px}.tower-mode .hud-person b{display:none}.tower-hud{grid-column:2;grid-row:3;align-self:start}.tower-task{padding:6px;gap:6px}.tower-task-copy b{font-size:10px}.tower-task-copy p{font-size:9px}.tower-floor{font-size:21px;padding-right:6px}.tower-tools{font-size:8px}.tower-role-name{display:none}.tower-tools button{font-size:8px;padding:5px}.tower-mode .controls{grid-column:2;grid-row:4;align-self:end;min-height:98px}.tower-mode .stick,.tower-mode .dpad{width:90px;height:90px}.tower-mode .action{width:71px;height:71px}.tower-mode .tower-skill{left:-52px;top:6px}.tower-mode .left-handed .tower-skill{left:auto;right:-52px}.tower-mode .tower-skill button{width:39px;height:39px;min-height:39px}.tower-mode .status-strip{grid-column:2;grid-row:5;font-size:9px}.tower-rest,.tower-result{padding:13px}.tower-rest h2{font-size:19px}.tower-rest .role-hint{display:none}.tower-rest .role-choices{margin:7px 0}.tower-rest .role-choice{padding:7px}.tower-rest .upgrade-choice{padding:6px}.tower-rest>p{margin:6px 0}.tower-result .result-icon,.tower-result .mini-score{display:none}.tower-result .tower-result-score{font-size:25px;margin:7px 0}}

.tower .game-features{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.tower .game-features span{font-size:9px;padding:5px 7px;border:1px solid #a892773d;border-radius:6px;color:#d7c5ac}.tower .card-buttons{display:flex;gap:8px}.tower .card-buttons button{flex:1;padding:12px 10px;font-size:11px;min-height:44px;white-space:nowrap}.tower .card-buttons .icon{width:16px;height:16px}

.tower-resting .arena-wrap{contain:none;overflow:visible}
.tower-resting .tower-wide{position:fixed;inset:var(--safe-top) 10px var(--safe-bottom);z-index:110;padding:12px;background:#071420ed;border-radius:18px;backdrop-filter:blur(8px)}
.tower-wide .tower-rest,.tower-wide .tower-result{width:min(480px,100%);max-height:100%;background:#162d3bf8}
.tower-wide .tower-lift{display:flex;flex-direction:column;overflow:hidden}
.tower-rest-body{overflow:auto;min-height:0;padding-right:3px}
.tower-rest-actions{flex-shrink:0;border-top:1px solid #a48a7540;padding-top:5px;margin-top:5px}
.tower-rest-actions .primary,.tower-rest-actions .secondary{min-height:40px;font-size:11px;padding:10px}
@media(orientation:landscape) and (min-width:640px) and (max-height:650px){.tower-wide .tower-lift{width:min(700px,100%);display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:15px}.tower-rest-actions{align-self:center;border-top:0;border-left:1px solid #a48a7540;padding-left:15px}.tower-wide .tower-rest-body{max-height:calc(var(--viewport) - 65px)}.tower-wide .tower-rest .role-choice{padding:8px}.tower-wide .tower-rest .role-hint{display:block}}

.tower-task-copy p.has-scheme{font-size:12px;line-height:1.55;color:#f0e1bf;letter-spacing:.3px}
@media(max-height:680px) and (orientation:portrait){.tower-task-copy p.has-scheme{font-size:10px;line-height:1.4}}
