[data-game-panel][hidden] {
    display: none !important;
}

.game-tabs {
    display: flex;
    gap: 8px;
    margin: 0 8px 20px;
    padding: 4px;
    border: 1px solid var(--card-border, #334155);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
}

.game-tab {
    flex: 1;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    cursor: pointer;
}

.game-tab.is-active {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px #475569;
}

.game-tab:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.slow-balls,
.slow-mini-balls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.slow-ball,
.slow-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-weight: 700;
    line-height: 1;
}

.slow-ball--main {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.28);
}

.slow-ball--tail {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    color: #cbd5e1;
    background: transparent;
    box-shadow: inset 0 0 0 2px #64748b;
}

.slow-ball--wide {
    width: auto;
    min-width: 46px;
    padding: 0 10px;
    border-radius: 999px;
}

.slow-gap {
    width: 1px;
    align-self: stretch;
    min-height: 36px;
    margin: 0 6px;
    background: #475569;
}

.slow-mini {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.slow-mini--tail {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    color: #cbd5e1;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px #64748b;
}

.slow-mini--wide {
    width: auto;
    min-width: 24px;
    padding: 0 6px;
    border-radius: 999px;
}

.slow-gap--mini {
    width: 1px;
    height: 18px;
    margin: 0 2px;
    background: #475569;
}

body.page-home .timer-area:has(.slow-clock) .timer-stack {
    max-width: min(520px, 100%);
}

body.page-home .slow-clock {
    perspective: 700px;
}

body.page-home .slow-clock .flip-clock-inner {
    align-items: flex-start;
    gap: 6px;
}

body.page-home .slow-clock .flip-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

body.page-home .slow-clock .flip-pair {
    display: inline-flex;
    gap: 4px;
}

body.page-home .slow-clock .flip-digit {
    width: 44px;
    height: 56px;
    font-size: 1.95rem;
    border-radius: 8px;
    transform-origin: center center;
    backface-visibility: hidden;
}

body.page-home .slow-clock .flip-unit {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
    line-height: 1;
}

body.page-home .slow-clock .flip-colon {
    align-self: flex-start;
    height: 56px;
    padding: 0 1px;
    justify-content: center;
}

body.page-home .slow-clock .flip-colon span {
    animation: slow-colon 1s steps(2, end) infinite;
}

body.page-home .slow-clock.tone-safe .flip-colon span {
    background: #6ee7b7;
    box-shadow: 0 0 6px rgba(110, 231, 183, 0.55);
}

body.page-home .slow-clock.tone-warn .flip-colon span {
    background: #fde047;
    box-shadow: 0 0 6px rgba(253, 224, 71, 0.5);
}

body.page-home .slow-clock.tone-urgent .flip-colon span {
    background: #fca5a5;
    box-shadow: 0 0 6px rgba(252, 165, 165, 0.55);
}

body.page-home .slow-clock .flip-digit.is-flipping {
    animation: slow-flip 0.42s ease;
}

body.page-home .slow-clock .flip-clock-msg {
    letter-spacing: 0.28em;
    font-size: 1.85rem;
}

body.page-home .slow-clock.tone-urgent .flip-clock-msg {
    animation: slow-pulse 1.1s ease-in-out infinite;
}

@keyframes slow-flip {
    0% { transform: translateY(0); filter: brightness(1); }
    30% { transform: translateY(-4px); filter: brightness(1.55); }
    100% { transform: translateY(0); filter: brightness(1); }
}

@keyframes slow-colon {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.22; }
}

@keyframes slow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (min-width: 992px) {
    body.page-home .slow-clock .flip-digit {
        width: 58px;
        height: 74px;
        font-size: 2.55rem;
    }

    body.page-home .slow-clock .flip-colon {
        height: 74px;
    }
}

@media (max-width: 575.98px) {
    body.page-home .slow-clock .flip-digit {
        width: 32px;
        height: 42px;
        font-size: 1.35rem;
        border-radius: 6px;
    }

    body.page-home .slow-clock .flip-pair {
        gap: 3px;
    }

    body.page-home .slow-clock .flip-clock-inner {
        gap: 4px;
    }

    body.page-home .slow-clock .flip-colon {
        height: 42px;
        gap: 7px;
    }

    body.page-home .slow-clock .flip-unit {
        font-size: 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .slow-ball--main {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .slow-ball--tail {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}
