/* Original quiet tower board. All interaction is on full-size controls. */
.tower-game{box-sizing:border-box;width:100%;max-width:360px;min-width:0;margin-inline:auto;color:var(--ink,#263e35)}
.tower-host{position:relative}
.tower-turn-notice{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;border-radius:14px;background:rgba(247,247,235,.82);color:#314c37;text-align:center;pointer-events:auto}
.tower-turn-notice[hidden]{display:none}
.tower-turn-notice strong{display:block;font-size:clamp(22px,6vw,30px);line-height:1.4;padding:12px 18px;border:1px solid #b6c5a5;border-radius:14px;background:#fffdf3;box-shadow:0 3px 0 #d7dfcd}
.tower-turn-notice span{font-size:13px;line-height:1.65;font-weight:650}
.tower-preview{padding:7px 8px;border:1px solid #d6ddce;border-radius:13px;background:#f7f5e9;font-size:11px;line-height:1.4}
.tower-current{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;margin:0 2px 5px}
.tower-current strong{font-size:13px;line-height:1.3;color:#755414}
.tower-eyebrow{font-size:11px;font-weight:700;color:#59694d}
.tower-choices{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.tower-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;min-width:44px;min-height:62px;padding:4px 5px;border:1px solid #b8c5aa;border-radius:10px;background:#fffdf5;color:#3d5737;font:inherit;font-size:11px;line-height:1.4;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tower-choice[aria-pressed="true"]{border:2px solid #527645;padding:3px 4px;background:#eaf0dd;box-shadow:inset 0 0 0 1px #fffdf5}
.tower-choice-title{font-size:11px;font-weight:750}
.tower-choice:not([aria-pressed="true"]):hover{background:#f0f3e7}
.tower-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 5px;margin-top:5px;font-size:10px;color:#56684b}
.tower-next-shape{display:block;width:112px;max-width:100%;height:19px;overflow:visible}
.tower-next .tower-next-shape{width:65px;height:12px}
.tower-strategy{margin:9px 0 1px;text-align:center;font-size:11px;line-height:1.5;color:#53684b}
.tower-board{display:block;box-sizing:border-box;width:min(100%,calc(max(150px,100vh - 545px)*320/272));height:auto;aspect-ratio:320/272;overflow:visible;margin:3px auto 5px;border-radius:12px;background:linear-gradient(#fffdf7,#f4f4e8);user-select:none;touch-action:pan-y}
@supports(height:100svh){.tower-board{width:min(100%,calc(max(150px,100svh - 545px)*320/272))}}
.tower-level-line{fill:none;stroke:#e4e7d8;stroke-width:.6;stroke-dasharray:2 5}
.tower-level-number{fill:#71806c;font-size:8px;text-anchor:middle;font-family:inherit}
.tower-ground-foot{fill:#d9deca;stroke:#c2ccb4;stroke-width:1}
.tower-ground{fill:none;stroke:#425c45;stroke-width:5;stroke-linecap:round}
.tower-ground-label{fill:#57684d;font-size:10px;font-family:inherit}
.tower-block-base{fill:#e0e9d3;stroke:#61785d;stroke-width:1}
.tower-owner-1 .tower-block-base{fill:#f1e4ca;stroke:#8a734f}
.tower-heavy-half{fill:#3d4b2c;fill-opacity:.09;stroke:none}
.tower-half-line{fill:none;stroke:#7c8b6e;stroke-width:.6;stroke-dasharray:2 2}
.tower-mass-dot{fill:#33472d;stroke:none}
.tower-candidate .tower-block-base{stroke:#374a30;stroke-width:1.4;stroke-dasharray:3 2}
.tower-candidate-label{fill:#34492e;font-size:10px;font-weight:700;font-family:inherit}
.tower-drop-guide{fill:none;stroke:#627558;stroke-width:1.2;stroke-dasharray:2 3}
.tower-overhang{fill:none;stroke:#9a711d;stroke-width:2;stroke-linejoin:round}
.tower-support{fill:none;stroke:#587b48;stroke-width:3.5;stroke-linecap:butt}
.tower-support-failed{stroke:#ab5239;stroke-dasharray:4 2}
.tower-com{fill:#233326;stroke:#fffdf4;stroke-width:.8}
.tower-com-hollow{fill:#fffdf4;stroke:#233326;stroke-width:1.4}
.tower-com-failed{fill:#a24029;stroke:#fff9ee;stroke-width:1}
.tower-controls{display:grid;grid-template-columns:minmax(60px,1fr) minmax(110px,1.7fr) minmax(60px,1fr);gap:8px;width:100%;margin:0}
.tower-controls button{box-sizing:border-box;min-width:44px;min-height:50px;border:1px solid #aab99c;border-radius:12px;font:inherit;font-size:14px;font-weight:750;line-height:1.3;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tower-move{padding:8px 4px;background:#eef0e2;color:#3d5737}
.tower-place{padding:8px 6px;background:#466b45;color:#fffdf3;box-shadow:0 3px 0 #2f5030}
.tower-move:not(:disabled):hover{background:#dfe8d3}
.tower-place:not(:disabled):hover{background:#365a37}
.tower-choice:focus-visible,.tower-controls button:focus-visible,.tower-details summary:focus-visible{outline:3px solid #886717;outline-offset:3px}
.tower-controls button:disabled{opacity:.46;cursor:default;box-shadow:none}
.tower-legend{margin:11px 0 4px;font-size:11px;line-height:1.7;text-align:center;color:#516349}
.tower-legend-support{font-weight:800;border-bottom:3px solid #587b48}
.tower-failure{margin:10px 0;padding:10px 12px;border:1px solid #d8b3a0;border-radius:10px;background:#fff1e8;color:#844531;font-size:12px;line-height:1.65}
.tower-details{margin:5px 0 0;text-align:left;font-size:11px;line-height:1.65;color:#506148}
.tower-details summary{box-sizing:border-box;min-height:44px;padding:11px 7px;cursor:pointer;font-weight:700;text-align:center;list-style-position:inside;border-radius:9px}
.tower-details p{margin:5px 0 9px}
.tower-details ul{padding-left:19px;margin:8px 0}
.tower-details li{margin:5px 0}
@media(max-width:360px){.tower-preview{padding:6px}.tower-choice{font-size:10px}.tower-next{font-size:9.5px}.tower-controls{gap:6px;grid-template-columns:minmax(44px,1fr) minmax(100px,1.7fr) minmax(44px,1fr)}.tower-controls button{font-size:13px}.tower-legend{font-size:10.5px}}
