.live-only { display: none !important; }
.controls.live .live-only { display: flex !important; }
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

.tower-center { flex: 1; display: grid; place-items: center; }
.tower {
  display: flex; flex-direction: column; gap: 8px; width: min(480px, 100%); padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #ffc23d14, transparent 40%), var(--panel); box-shadow: 0 10px 30px #0006;
}
.trow { display: grid; grid-template-columns: 62px repeat(var(--cols), 1fr); gap: 8px; align-items: center; opacity: .55; transition: opacity .2s; }
.trow.current, .trow.cleared { opacity: 1; }
.trow.current .tmult { color: #ffc23d; }
.tmult { font-size: 13px; font-weight: 800; color: var(--muted); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.ttile {
  height: 42px; border-radius: 9px; display: grid; place-items: center; position: relative;
  background: linear-gradient(180deg, #2b4470, #213656); box-shadow: inset 0 -5px 0 #142440;
  transition: transform .12s, background .15s, box-shadow .2s;
}
.trow.current .ttile { background: linear-gradient(180deg, #3a5c94, #2b4778); box-shadow: inset 0 -5px 0 #1a2f55, 0 0 0 2px #ffc23d55; cursor: pointer; }
.trow.current .ttile:hover { transform: translateY(-3px); background: linear-gradient(180deg, #4569a6, #33528a); }
.ttile.press { transform: scale(.92); }
.ttile.open { background: #0d1828; box-shadow: inset 0 0 0 2px #ffffff0c; animation: tpop .28s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tpop { from { transform: scale(.7); } }
.ttile img { position: absolute; height: 30px; width: 30px; object-fit: contain; filter: drop-shadow(0 4px 6px #0008); }
.ttile.safe.hit { background: linear-gradient(180deg, #1c6b45, #12482f); box-shadow: inset 0 0 0 2px #22e07a88, 0 0 18px #22e07a33; }
.ttile.trap.hit { background: radial-gradient(circle, #ff2e3f66, #2a0a12 75%); box-shadow: inset 0 0 0 2px #ff2e3f99; }
.ttile.dim img { opacity: .35; height: 22px; width: 22px; }
.shake-stage .tower { animation: shake .4s; }

@media (max-width: 640px) { .ttile { height: 36px; } .trow { grid-template-columns: 52px repeat(var(--cols), 1fr); gap: 6px; } .tower { padding: 10px; gap: 6px; } }
