/* Compact arsenal. Card controls cover the metadata, never the next row. */
#main-menu .view-inventory .arsenal-heading{margin-bottom:8px}
#main-menu .collection-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;margin:0 0 8px;flex-shrink:0;max-width:540px}
#main-menu .collection-filter{position:relative;min-width:0;border:1px solid #9eaf9f3d;border-radius:8px;background:#19343e;display:block;height:41px}
#main-menu .collection-filter>span{position:absolute;left:10px;top:5px;font:6px Arial;letter-spacing:1px;color:#96b0ad;pointer-events:none}
#main-menu .collection-filter>select{height:100%;min-height:0;width:100%;padding:13px 24px 3px 9px;border:0;border-radius:8px;background:transparent;color:#e5d9b8;font:12px Arial;cursor:pointer;color-scheme:dark;outline-offset:2px}
#main-menu .collection-filter option{background:#18343d;color:#e4dfcb}
#main-menu .equipped-section .section-caption{min-height:18px;gap:8px}
#main-menu .equipped-section .section-caption .menu-text{min-height:18px;padding:0;font-size:10px;flex-shrink:0}
#main-menu .deck-placement-hint{font-size:10px;line-height:1.35;color:#f3d69c}
#main-menu .deck-placement-hint>b{font-weight:400;color:inherit;margin:0;font-size:inherit}
#main-menu .collection-scroll{padding-top:2px;padding-bottom:5px}
#main-menu .inventory-grid{padding-bottom:4px;gap:12px;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}
#main-menu .tower-card-wrap{isolation:isolate;min-width:0}
#main-menu .tower-card-wrap.is-selected{z-index:2}
#main-menu .tower-card-wrap .tower-card{position:relative;width:100%;padding:6px 9px 8px;gap:0;border:2px solid color-mix(in srgb,var(--rarity),transparent 25%);border-radius:11px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rarity),transparent 86%),inset 0 0 18px color-mix(in srgb,var(--rarity),transparent 96%),0 2px 8px #0002;overflow:hidden}
#main-menu .tower-card-art{height:76px;margin:0}
#main-menu .tower-card>strong{font:16px/1.12 Georgia;min-height:35px;margin:0 0 2px;position:relative;z-index:1}
#main-menu .tower-card-meta{width:100%;display:flex;justify-content:space-between;align-items:flex-start;gap:3px;height:34px;padding-top:3px;position:relative;z-index:1}
#main-menu .tower-card-meta .tower-card-level{position:static;width:auto;font:10px Arial;color:#c9d7cf;margin:0;white-space:nowrap;display:flex;align-items:center;gap:4px}
#main-menu .tower-card-level>i{position:static;font:12px Arial;color:#a5ead0}
#main-menu .tower-card-meta .shard-count{font:10px Arial;color:#cad7c8;margin:0;white-space:nowrap}
#main-menu .tower-card .shard-track{height:4px;margin:2px 0 0;position:relative;z-index:1}
#main-menu .card-equipped{position:absolute;right:6px;top:5px;color:#e8cf8e;font-size:9px;z-index:1}
#main-menu .tower-card.chosen{border-color:var(--rarity);box-shadow:0 0 0 1px #f4e0a17d,inset 0 0 20px color-mix(in srgb,var(--rarity),transparent 90%)}
#main-menu .card-inline-actions{top:auto;bottom:3px;left:3px;right:3px;min-height:45px;padding:3px;gap:4px;margin:0;background:linear-gradient(0deg,#102b35 80%,#102b35f0);border:1px solid color-mix(in srgb,var(--rarity),transparent 35%);border-radius:7px;box-shadow:0 -5px 13px #102b3599;scroll-margin:3px;transform-origin:50% 100%;z-index:3;animation:card-controls-overlay .26s cubic-bezier(.2,.8,.2,1) both}
#main-menu .card-inline-actions button{min-height:36px;padding:5px 2px;min-width:0;font-size:10px;border-radius:5px;white-space:nowrap;flex:1}
#main-menu .card-inline-actions[hidden]{display:none}
#main-menu .tower-card-wrap[data-rarity=legendary] .tower-card{border-color:#e8ba62;box-shadow:inset 0 0 0 1px #ffe2a84d,inset 0 0 18px #e5b95210,0 2px 10px #e7b55115;background:radial-gradient(ellipse at 50% 15%,#d5a84c22,transparent 75%),linear-gradient(145deg,#304347,#182f39)}
#main-menu .tower-card-wrap[data-rarity=legendary] .tower-card:before{content:'';position:absolute;inset:0;border-radius:8px;box-shadow:inset 0 0 15px #f7ce6d44;pointer-events:none;animation:legendary-breathe 6.5s ease-in-out infinite;opacity:.25}
#main-menu .tower-card-wrap[data-rarity=legendary] .tower-card:after{content:'✦';position:absolute;left:7px;top:5px;color:#ffe8a5;font-size:10px;text-shadow:0 0 8px #f4d16a66;pointer-events:none;animation:legendary-star 7.5s ease-in-out infinite;opacity:.5}
@keyframes card-controls-overlay{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes legendary-breathe{0%,100%{opacity:.2}50%{opacity:.65}}
@keyframes legendary-star{0%,35%,100%{opacity:.4;transform:scale(.85)}50%{opacity:.85;transform:scale(1.1)}65%{opacity:.4;transform:scale(.85)}}
@media(max-width:760px){
 #main-menu .collection-tools{max-width:none;gap:6px;margin-bottom:7px}
 #main-menu .collection-filter{height:38px}#main-menu .collection-filter>select{font-size:11px;padding-left:8px}#main-menu .collection-filter>span{font-size:5px;left:9px;top:4px}
 #main-menu .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #main-menu .tower-card-wrap .tower-card{padding:4px 6px 6px;border-radius:9px}
 #main-menu .tower-card-art{height:66px}#main-menu .tower-card>strong{font-size:13px;min-height:30px;margin-bottom:1px}
 #main-menu .tower-card-meta{height:34px}#main-menu .tower-card-meta .tower-card-level,#main-menu .tower-card-meta .shard-count{font-size:9px}#main-menu .tower-card-level>i{font-size:10px}
 #main-menu .card-inline-actions{min-height:43px;padding:2px;gap:3px;left:2px;right:2px;bottom:2px}#main-menu .card-inline-actions button{min-height:37px;font-size:9px;padding-inline:0}
 #main-menu .card-equipped{font-size:7px;right:4px;top:4px}
}
@media(max-width:380px){#main-menu .inventory-grid{gap:6px}#main-menu .tower-card-art{height:58px}#main-menu .tower-card>strong{font-size:12px;min-height:28px}#main-menu .tower-card-wrap .tower-card{padding-inline:5px}#main-menu .tower-card-meta .tower-card-level,#main-menu .tower-card-meta .shard-count{font-size:8px}#main-menu .card-inline-actions button{font-size:8px}#main-menu .tower-card-meta{gap:1px}}
@media(max-height:500px) and (max-width:900px) and (orientation:landscape){#main-menu .collection-tools{margin-bottom:5px;gap:6px}#main-menu .collection-filter{height:34px}#main-menu .collection-filter>select{font-size:10px;padding-top:12px}#main-menu .tower-card-art{height:53px}#main-menu .tower-card>strong{font-size:12px;min-height:27px}#main-menu .card-inline-actions button{font-size:8px}}
/* Tower sheet: a smaller portrait and two columns of parameter tiles. */
.game-sheet.tower-sheet{width:min(820px,calc(100% - 24px));max-height:calc(var(--game-height,100dvh) - 24px)}
.game-sheet.tower-sheet .sheet-frame{height:auto;max-height:calc(var(--game-height,100dvh) - 24px);grid-template-rows:auto auto auto}
.game-sheet.tower-sheet .sheet-header{padding:18px 22px 15px;gap:12px}
.game-sheet.tower-sheet .sheet-header h2{font-size:28px;margin-top:5px}
.game-sheet.tower-sheet .sheet-header small{font-size:9px}
.game-sheet.tower-sheet .sheet-scroll{overflow:visible;scrollbar-gutter:auto;padding:20px 22px;min-height:0}
.game-sheet.tower-sheet .sheet-actions{padding:14px 22px;gap:12px}
.game-sheet.tower-sheet .sheet-actions button{min-height:46px;font-size:12px}
.tower-sheet .tower-detail-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;min-width:0;align-items:start}
.tower-sheet .tower-info-column,.tower-sheet .tower-values-column{min-width:0}
.tower-sheet .tower-overview{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:center}
.game-sheet.tower-sheet .detail-portrait{position:relative;height:136px;width:120px;max-width:none;margin:0;padding:0;border:1px solid color-mix(in srgb,var(--rarity),transparent 63%);border-radius:14px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse,color-mix(in srgb,var(--rarity),transparent 86%),transparent 75%);display:grid;place-items:center}
.game-sheet.tower-sheet .detail-portrait>.tower-icon{width:100%;height:100%;max-width:none;margin:0;filter:drop-shadow(0 5px 8px #0004);z-index:1}
.tower-sheet .detail-rune{inset:19px 8px;border-radius:50%;box-shadow:0 0 0 7px #a5c7b20b,0 0 0 8px #b1d3bd16;transform:rotate(-20deg);opacity:.6}
.tower-sheet .tower-intro{min-width:0}.tower-sheet .tower-role{font-size:8px;line-height:1.6;letter-spacing:.7px;color:var(--accent);display:block}
.tower-sheet .tower-level-badge{margin:12px 0 8px}.tower-sheet .tower-level-badge>small{font-size:6px;letter-spacing:1px;color:#acbfb6;display:block;margin-bottom:3px}
.tower-sheet .tower-level-number{font:34px Georgia;color:#f1d59d;display:block;position:relative;line-height:1.05}
.tower-sheet .tower-level-number .level-after{position:absolute;inset:0;top:0;left:0;text-align:left;animation:new-stat .5s .8s both}
.tower-sheet .tower-element{font-size:10px;color:#bacbbf}
.tower-sheet .tower-description{font-size:12px;color:#c0cfc4;line-height:1.65;margin:14px 0 12px}
.tower-sheet .tower-mode-note{font-size:9px;line-height:1.5;margin:0;color:#94b2ac}
.tower-sheet .stat-table-heading{padding:0 0 12px;font-size:8px;letter-spacing:.8px;min-height:28px}
.tower-sheet .stat-table-heading>b{font-size:19px}
.tower-sheet .tower-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-sheet.tower-sheet .detail-stat{border:1px solid #99b8a62e;background:linear-gradient(135deg,#29454b77,#15313b);border-radius:9px;padding:10px 11px;min-width:0;min-height:70px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}
.game-sheet.tower-sheet .detail-stat>span{flex:none;min-width:0;font-size:9px;line-height:1.3;color:#aebfb5}
.game-sheet.tower-sheet .detail-stat>strong,.game-sheet.tower-sheet .detail-stat:not(.stat-changing)>strong{font:20px/1.12 Georgia;max-width:100%;white-space:normal;text-align:left;color:#e5e5ce;overflow-wrap:anywhere}
.game-sheet.tower-sheet .detail-stat.stat-changing>strong{font-size:22px;white-space:nowrap}
.game-sheet.tower-sheet .detail-stat i{font-size:12px;margin:0 3px;color:#8fa89c}
.game-sheet.tower-sheet .detail-stat .stat-after{color:#b7eace}
.tower-sheet .tower-resource-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.tower-sheet .tower-resource{border-top:1px solid #9bb8a62b;padding:10px 2px 0;min-width:0}
.tower-sheet .tower-resource>span{font-size:11px;color:#dfcfaa;display:block}.tower-sheet .tower-resource b{font:19px Georgia;color:#ebd49c}
.tower-sheet .tower-resource small{display:block;font-size:9px;color:#a5bdb0;margin-top:4px}.tower-sheet .tower-resource.insufficient>span,.tower-sheet .tower-resource.insufficient b{color:#e6ae96}
.tower-sheet .tower-upgrade-status{font-size:11px;line-height:1.45;color:#b1d4b4;background:#94c29c0a;border-radius:6px;padding:9px;margin-top:11px;min-height:34px}
/* Light reaches its peak, then decays gradually while the next purchase becomes available. */
.tower-sheet .forge-halo,.tower-sheet .forge-wave{position:absolute;pointer-events:none;inset:-12px;opacity:0;z-index:2;border-radius:50%}
.tower-sheet .forge-halo{background:radial-gradient(ellipse,#e2ffd66b,transparent 68%);mix-blend-mode:screen}
.tower-sheet .forge-wave{inset:10px;border:1px solid #eaffc8;box-shadow:0 0 15px #d4f7ad44}
.game-sheet.tower-sheet .upgrade-sequence .detail-portrait>.tower-icon{animation:forge-tower-smooth 2.8s cubic-bezier(.2,.65,.3,1) both}
.tower-sheet .upgrade-sequence .detail-rune{animation:forge-rune-smooth 2.8s ease both}
.tower-sheet .upgrade-sequence .forge-halo{animation:forge-glow-smooth 3s ease both}
.tower-sheet .upgrade-sequence .forge-wave{animation:forge-wave-smooth 2.5s .2s ease-out both}
.tower-sheet .upgrade-sequence .reward-sparkles{z-index:2}.tower-sheet .upgrade-sequence .reward-sparkles i{animation-duration:1.8s;animation-delay:calc(.35s + var(--i)*.06s);background:#e8f5bd}
.tower-sheet .upgrade-sequence .stat-changing .stat-before{animation:dim-stat .75s .65s both}.tower-sheet .upgrade-sequence .stat-changing .stat-after{display:inline-block;animation:new-stat .65s .85s both}
.tower-sheet .upgrade-settled .stat-changing .stat-before,.tower-sheet .upgrade-settled .stat-changing .stat-after{animation:none;opacity:1}
.tower-sheet .upgrade-settled .tower-stat-grid{animation:stat-preview-refresh .35s ease both}
@keyframes forge-tower-smooth{0%{transform:scale(1);filter:brightness(1) drop-shadow(0 5px 8px #0004)}25%{transform:scale(.96);filter:brightness(1.12) drop-shadow(0 0 7px #d8f9c74d)}42%{transform:scale(1.06);filter:brightness(1.55) drop-shadow(0 0 13px #d6ffd888)}65%{transform:scale(1.02);filter:brightness(1.18) drop-shadow(0 0 10px #c8f1c93d)}85%{transform:scale(1);filter:brightness(1.04) drop-shadow(0 5px 8px #0004)}100%{transform:scale(1);filter:brightness(1) drop-shadow(0 5px 8px #0004)}}
@keyframes forge-glow-smooth{0%{opacity:0;transform:scale(.7)}35%{opacity:.85;transform:scale(1)}55%{opacity:.5;transform:scale(1.1)}78%{opacity:.12;transform:scale(1.18)}100%{opacity:0;transform:scale(1.2)}}
@keyframes forge-wave-smooth{0%{opacity:0;transform:scale(.55)}25%{opacity:.55}70%{opacity:.1}100%{opacity:0;transform:scale(1.5)}}
@keyframes forge-rune-smooth{0%{transform:rotate(-20deg);opacity:.6}40%{transform:rotate(60deg);opacity:1}100%{transform:rotate(160deg);opacity:.6}}
@keyframes stat-preview-refresh{from{opacity:.7}to{opacity:1}}
@media(max-width:760px){
 .game-sheet.tower-sheet{width:calc(100% - 16px);max-height:calc(var(--game-height,100dvh) - 16px)}
 .game-sheet.tower-sheet .sheet-frame{max-height:calc(var(--game-height,100dvh) - 16px)}
 .game-sheet.tower-sheet .sheet-header{padding:14px 16px 12px}.game-sheet.tower-sheet .sheet-header h2{font-size:24px}.game-sheet.tower-sheet .sheet-header small{font-size:8px}
 .game-sheet.tower-sheet .sheet-scroll{padding:14px 16px}.game-sheet.tower-sheet .sheet-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));gap:8px}.game-sheet.tower-sheet .sheet-actions button{font-size:11px;min-height:44px}
 .tower-sheet .tower-detail-layout{grid-template-columns:1fr;gap:14px}.tower-sheet .tower-overview{grid-template-columns:94px minmax(0,1fr);gap:16px}.game-sheet.tower-sheet .detail-portrait{width:94px;height:94px;padding:0;margin:0}
 .tower-sheet .tower-level-badge{margin:7px 0 3px}.tower-sheet .tower-level-number{font-size:30px}.tower-sheet .tower-role{font-size:8px;line-height:1.4}.tower-sheet .tower-element{font-size:9px}
 .tower-sheet .tower-description{font-size:11px;line-height:1.55;margin:11px 0 0}.tower-sheet .tower-mode-note{font-size:8px;line-height:1.4;margin-top:8px}.tower-sheet .tower-mode-note br{display:none}
 .tower-sheet .tower-stat-grid{gap:7px}.game-sheet.tower-sheet .detail-stat{min-height:59px;padding:8px 10px;gap:5px}.game-sheet.tower-sheet .detail-stat>span{font-size:9px}.game-sheet.tower-sheet .detail-stat>strong,.game-sheet.tower-sheet .detail-stat:not(.stat-changing)>strong{font-size:18px}.game-sheet.tower-sheet .detail-stat.stat-changing>strong{font-size:21px}
 .tower-sheet .stat-table-heading{padding-bottom:9px;min-height:25px}.tower-sheet .tower-resource-row{margin-top:8px}.tower-sheet .tower-resource{padding-top:8px}.tower-sheet .tower-upgrade-status{margin-top:8px;padding:8px;min-height:31px;font-size:10px}
}
@media(max-height:650px) and (max-width:760px) and (orientation:portrait){
 .game-sheet.tower-sheet .sheet-header{padding:10px 12px}.game-sheet.tower-sheet .sheet-header h2{font-size:20px;margin-top:4px}.game-sheet.tower-sheet .sheet-header small{font-size:6px}.game-sheet.tower-sheet .sheet-close{width:36px;height:36px;min-width:36px;min-height:36px}
 .game-sheet.tower-sheet .sheet-scroll{padding:10px 12px}.game-sheet.tower-sheet .sheet-actions{padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px))}.game-sheet.tower-sheet .sheet-actions button{min-height:42px;font-size:10px}
 .tower-sheet .tower-detail-layout{gap:9px}.tower-sheet .tower-overview{grid-template-columns:58px minmax(0,1fr);gap:10px}.game-sheet.tower-sheet .detail-portrait{width:58px;height:62px}.tower-sheet .detail-rune{inset:8px}.tower-sheet .tower-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center}.tower-sheet .tower-role{font-size:7px;letter-spacing:.3px;grid-column:1}.tower-sheet .tower-element{font-size:8px;grid-column:1}.tower-sheet .tower-level-badge{margin:0;grid-column:2;grid-row:1/3;text-align:center}.tower-sheet .tower-level-badge>small{font-size:5px;letter-spacing:.5px}.tower-sheet .tower-level-number{font-size:27px}.tower-sheet .tower-level-number .level-after{text-align:center}
 .tower-sheet .tower-description{font-size:10px;line-height:1.45;margin-top:7px}.tower-sheet .tower-mode-note{font-size:7px;line-height:1.3;margin-top:5px}.tower-sheet .stat-table-heading{font-size:6px;letter-spacing:.5px;min-height:21px;padding-bottom:6px}.tower-sheet .stat-table-heading>b{font-size:16px}
 .tower-sheet .tower-stat-grid{gap:5px}.game-sheet.tower-sheet .detail-stat{min-height:42px;padding:5px 7px;gap:3px}.game-sheet.tower-sheet .detail-stat>span{font-size:7px;line-height:1.2}.game-sheet.tower-sheet .detail-stat>strong,.game-sheet.tower-sheet .detail-stat:not(.stat-changing)>strong{font-size:14px;line-height:1.1}.game-sheet.tower-sheet .detail-stat.stat-changing>strong{font-size:17px}.game-sheet.tower-sheet .detail-stat i{font-size:10px;margin-inline:2px}
 .tower-sheet .tower-resource-row{margin-top:6px;gap:5px}.tower-sheet .tower-resource{padding-top:6px}.tower-sheet .tower-resource>span{font-size:9px}.tower-sheet .tower-resource b{font-size:15px}.tower-sheet .tower-resource small{font-size:8px;margin-top:2px}.tower-sheet .tower-upgrade-status{font-size:9px;line-height:1.35;padding:6px;margin-top:6px;min-height:25px}
}
@media(max-height:500px) and (orientation:landscape){
 .game-sheet.tower-sheet{width:min(820px,calc(100% - 20px));max-height:calc(var(--game-height,100dvh) - 20px)}.game-sheet.tower-sheet .sheet-frame{max-height:calc(var(--game-height,100dvh) - 20px)}.game-sheet.tower-sheet .sheet-header{padding:10px 16px}.game-sheet.tower-sheet .sheet-header h2{font-size:22px;margin-top:3px}.game-sheet.tower-sheet .sheet-header small{font-size:7px}.game-sheet.tower-sheet .sheet-close{min-height:36px;min-width:36px;width:36px;height:36px}.game-sheet.tower-sheet .sheet-scroll{padding:10px 16px}.game-sheet.tower-sheet .sheet-actions{padding:9px 16px}.game-sheet.tower-sheet .sheet-actions button{min-height:40px;font-size:11px}
 .tower-sheet .tower-detail-layout{grid-template-columns:215px minmax(0,1fr);gap:18px}.tower-sheet .tower-overview{grid-template-columns:72px minmax(0,1fr);gap:10px}.game-sheet.tower-sheet .detail-portrait{height:80px;width:72px}.tower-sheet .tower-role{font-size:7px}.tower-sheet .tower-level-badge{margin:6px 0 3px}.tower-sheet .tower-level-number{font-size:27px}.tower-sheet .tower-element{font-size:8px}.tower-sheet .tower-description{font-size:10px;line-height:1.45;margin-top:9px}.tower-sheet .tower-mode-note{font-size:7px;margin-top:7px}
 .tower-sheet .stat-table-heading{min-height:21px;font-size:7px;padding-bottom:6px}.tower-sheet .stat-table-heading>b{font-size:16px}.tower-sheet .tower-stat-grid{gap:5px}.game-sheet.tower-sheet .detail-stat{min-height:42px;padding:5px 8px;gap:3px}.game-sheet.tower-sheet .detail-stat>span{font-size:8px}.game-sheet.tower-sheet .detail-stat>strong,.game-sheet.tower-sheet .detail-stat:not(.stat-changing)>strong{font-size:15px}.game-sheet.tower-sheet .detail-stat.stat-changing>strong{font-size:18px}.tower-sheet .tower-resource-row{margin-top:6px}.tower-sheet .tower-resource{padding-top:6px}.tower-sheet .tower-resource b{font-size:16px}.tower-sheet .tower-resource>span{font-size:10px}.tower-sheet .tower-resource small{font-size:8px;margin-top:2px}.tower-sheet .tower-upgrade-status{margin-top:6px;padding:6px;font-size:9px;min-height:25px}
}
@media(prefers-reduced-motion:reduce){#main-menu .tower-card:before,#main-menu .tower-card:after,#main-menu .card-inline-actions,.tower-sheet *,.tower-sheet *:before,.tower-sheet *:after{animation:none!important;transition:none!important}}
#main-menu.calm-ui .tower-card:before,#main-menu.calm-ui .tower-card:after,.tower-sheet.calm-ui *{animation:none!important;transition:none!important}
@media(max-height:500px) and (orientation:landscape){
 .game-sheet.tower-sheet .sheet-header{padding-block:8px}.game-sheet.tower-sheet .sheet-scroll{padding-block:8px}.game-sheet.tower-sheet .detail-stat{min-height:40px;padding-block:4px}.tower-sheet .tower-upgrade-status{padding-block:5px;min-height:23px}
}
@media(max-height:500px) and (orientation:landscape){
 .game-sheet.tower-sheet .sheet-header{padding-block:6px}.game-sheet.tower-sheet .sheet-scroll{padding-block:6px}.game-sheet.tower-sheet .sheet-actions{padding-block:6px}
}
/* Align short and two-line names at the same baseline, close to the metadata. */
#main-menu .tower-card>strong{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
/* Bring progress close to the numbers and balance the art's vertical breathing room. */
#main-menu .tower-card-art>.tower-icon{transform:translateY(4px)}
#main-menu .tower-card>strong{justify-content:center;margin-top:8px;margin-bottom:1px}
#main-menu .tower-card-meta{height:20px;padding-top:2px}
#main-menu .card-inline-actions{min-height:32px;padding:1px;bottom:2px}
#main-menu .card-inline-actions button{min-height:28px;padding-block:3px}
@media(max-width:760px){#main-menu .tower-card-meta{height:20px}#main-menu .tower-card>strong{margin-top:7px}#main-menu .card-inline-actions{min-height:30px;padding:1px;bottom:1px}#main-menu .card-inline-actions button{min-height:26px}}
/* Let short names give their spare line to the art area, keeping every row aligned. */
#main-menu .inventory-grid{align-items:stretch}
#main-menu .tower-card-wrap{display:flex}
#main-menu .tower-card-wrap .tower-card{height:100%;flex:1}
#main-menu .tower-card-art{display:grid;place-items:center;flex:1 0 76px;min-height:76px}
#main-menu .tower-card-art>.tower-icon{height:76px;transform:translateY(3px)}
#main-menu .tower-card>strong{display:block;min-height:0;width:100%;flex:none;margin-top:8px}
#main-menu .tower-card-meta,#main-menu .tower-card .shard-track{flex:none}
@media(max-width:760px){#main-menu .tower-card-art{flex-basis:66px;min-height:66px}#main-menu .tower-card-art>.tower-icon{height:66px}#main-menu .tower-card>strong{min-height:0;margin-top:7px}}
@media(max-width:380px){#main-menu .tower-card-art{flex-basis:58px;min-height:58px}#main-menu .tower-card-art>.tower-icon{height:58px}}
@media(max-height:500px) and (max-width:900px) and (orientation:landscape){#main-menu .tower-card-art{flex-basis:53px;min-height:53px}#main-menu .tower-card-art>.tower-icon{height:53px}}
