#livesLabel { color: var(--bad); letter-spacing: 1px; }
.tn-stage .ba-banner { color: #ffcf66; text-shadow: 0 2px 0 #3a1a08, 0 0 18px #000; }

.tn-stage { height: clamp(400px, calc(100vh - 300px), 572px); cursor: text; }
.tn-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.typing-game .ba-controls .tg-input { font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.ba-controls .tg-input.is-miss { animation: tn-shake .25s; border-color: var(--bad); }
@keyframes tn-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.tn-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.typing-game .tn-keypad button { height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 22px; font-weight: 600; cursor: pointer; }
.typing-game .tn-keypad button:active { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 699px) {
    .tn-stage { height: 320px; }
    .typing-game .ba-controls .tg-input { height: 44px; }
    .typing-game .tn-keypad button { height: 44px; }
}

