/* Башня */
.g-tower .g-stage { position: relative; padding: 46px 12px 12px; }
.tw-head { position: absolute; left: 14px; top: 10px; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 14px; background: var(--s2); color: var(--fg2); font-size: 12px; font-weight: 800; }
.tw-head svg { flex: none; color: var(--fg3); }
.tw-wrap { padding: 6px; border-radius: 14px; background: #10111a; box-shadow: inset 0 0 0 1px var(--line); }
.tw-rows { display: grid; gap: 5px; }
.tw-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px; align-items: center; }
.tw-m { height: 30px; border-radius: 15px; display: grid; place-items: center; padding: 0 4px; font-size: 12.5px; font-weight: 800; color: var(--fg3); background: var(--s2); white-space: nowrap; overflow: hidden; }
.tw-row.tw-cur .tw-m { background: var(--accent); color: var(--on-accent); }
.tw-row.tw-done .tw-m { background: rgba(212,255,58,.14); color: var(--win); }
.tw-cells { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; }
.tw-c { position: relative; height: 40px; border-radius: 9px; background: #232634; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); display: grid; place-items: center; touch-action: manipulation; }
.tw-row.tw-cur .tw-c:not(.tw-open) { background: #3d415b; box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), inset 0 0 0 1.5px rgba(139,123,255,.7); }
.tw-row.tw-cur .tw-c:not(.tw-open):active { background: #484c67; }
.tw-c.tw-open { background: #0c0d14; box-shadow: inset 0 0 0 1px var(--line); }
.tw-c.tw-open.tw-safe:not(.tw-dim) { background: #20280a; box-shadow: inset 0 0 0 1.5px rgba(212,255,58,.6), 0 0 12px rgba(212,255,58,.18); }
.tw-c.tw-open.tw-bad:not(.tw-dim) { background: #3a1418; box-shadow: inset 0 0 0 2px var(--loss), 0 0 14px rgba(255,93,99,.35); }
.tw-i { width: 28px; height: 28px; display: block; pointer-events: none; }
.tw-i svg { width: 100%; height: 100%; display: block; }
.tw-burst { position: absolute; z-index: 3; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.95) 0%, rgba(255,120,80,.7) 35%, rgba(255,93,99,0) 70%); pointer-events: none; }
.tw-seg { padding: 3px; gap: 2px; }
.tw-seg button { height: 40px; padding: 0; font-size: 12.5px; min-width: 0; }
.tw-seg button:disabled { opacity: .55; }
.tw-rand { width: 100%; }
.tw-rand svg { flex: none; }
.tw-m.tw-long { font-size: 11.5px; letter-spacing: -.2px; }
