@font-face {
    font-family: "Epilepsy Sans";
    src: url("/fonts/EpilepsySans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Epilepsy Sans";
    src: url("/fonts/EpilepsySansBold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: "Epilepsy Sans", monospace;
    font-weight: bold;
    background-color: #0f0f0f;
    color: #00ff41;
    overflow-x: hidden;
    text-align: center;
    background-image: url("/images/image.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    background: #0f0f0f url("/images/image.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.pip-boy-text {
    text-shadow: 0 0 5px #00ff41;
}

.pip-boy-border {
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.pip-boy-button {
    background-color: #0f0f0f;
    border: 2px solid #00ff41;
    color: #00ff41;
    transition: all 0.3s;
}

    .pip-boy-button:hover {
        background-color: #00ff41;
        color: #0f0f0f;
        text-shadow: none;
        box-shadow: 0 0 15px #00ff41;
    }

    .pip-boy-button.pip-boy-tab-active {
        background-color: #00ff41;
        color: #0f0f0f;
        text-shadow: none;
        box-shadow: 0 0 15px #00ff41;
    }

    .pip-boy-button:disabled {
        border-color: #555;
        color: #555;
        cursor: not-allowed;
    }

        .pip-boy-button:disabled:hover {
            background-color: #0f0f0f;
            color: #555;
            box-shadow: none;
        }

/* Кастомный чекбокс в стиле Pip-Boy: квадрат с зелёной рамкой, заливка и "галочка" по образу терминала Vault-Tec */
.pip-boy-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background-color: #0f0f0f;
    border: 2px solid #00ff41;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

    .pip-boy-checkbox:hover {
        box-shadow: 0 0 8px #00ff41;
    }

    .pip-boy-checkbox:checked {
        background-color: #00ff41;
        box-shadow: 0 0 10px #00ff41;
    }

        .pip-boy-checkbox:checked::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 10px;
            border: solid #0f0f0f;
            border-width: 0 3px 3px 0;
            transform: rotate(45deg);
        }

    .pip-boy-checkbox:focus-visible {
        outline: 2px solid #00ff41;
        outline-offset: 2px;
    }

html {
    scrollbar-width: thin;
    scrollbar-color: #00ff41 #0f0f0f;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background-color: #00ff41;
    border: 2px solid #0f0f0f;
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #00cc33;
        box-shadow: 0 0 8px #00ff41;
    }

::-webkit-scrollbar-corner {
    background: #0f0f0f;
}

.color-scheme-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #00ff41;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.color-scheme-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.title-animation {
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 20px #00ff41;
    }

    20%, 24%, 55% {
        text-shadow: none;
    }
}

.radiation-digit {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.vault-boy {
    filter: sepia(100%) hue-rotate(70deg) saturate(300%) brightness(0.7);
}

.header-block {
    background-color: rgba(15, 15, 15, 0.7);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0f0f;
    opacity: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loading-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ff41;
    animation: flicker 1.5s infinite alternate;
}

.loading-bar-container {
    width: 300px;
    height: 20px;
    border: 2px solid #00ff41;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #00ff41;
    animation: loadingBar 3s ease-in-out forwards;
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }

    20% {
        width: 20%;
    }

    40% {
        width: 45%;
    }

    60% {
        width: 70%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

.loading-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 0 0 5px #00ff41;
}

.loading-dots {
    display: inline-block;
    width: 30px;
    text-align: left;
}

    .loading-dots::after {
        content: "";
        animation: loadingDots 1.5s infinite;
    }

@keyframes loadingDots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}

/* Rain Animation */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.drop {
    position: absolute;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #00ff41);
    animation: rain linear infinite;
    opacity: 0.6;
}

.critical {
    color: #ff0000;
    animation: pulse 1s infinite;
}

.warning {
    color: #ffff00;
}

.good {
    color: #00ff41;
}

.cell-text {
    flex: 1;
    word-break: break-word;
}

.hint-btn:hover {
    background-color: rgba(0, 255, 65, 0.7);
    transform: scale(1.2);
}

@keyframes rain {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(calc(100vh + 100px));
    }
}

/* Puddle effects */
.puddle {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 10px;
    background: #00ff41;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(2px);
    animation: puddle 3s infinite;
}

@keyframes puddle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Fire Animation */
.fire-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.fire {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 80, 0, 0.8) 0%, rgba(255, 150, 0, 0.6) 40%, rgba(255, 200, 0, 0.4) 60%, rgba(255, 255, 0, 0.2) 80%, transparent 100%);
    border-radius: 50%;
    filter: blur(5px);
    animation: flicker-fire 2s infinite alternate;
    transform-origin: center bottom;
}

.fire-smoke {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(50, 50, 50, 0.3) 0%, rgba(100, 100, 100, 0.2) 40%, rgba(150, 150, 150, 0.1) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(10px);
    animation: rise-smoke 4s infinite ease-out;
    transform-origin: center bottom;
}

@keyframes flicker-fire {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }

    25% {
        transform: scale(1.1) translateY(-5px);
        opacity: 0.9;
    }

    50% {
        transform: scale(0.9) translateY(5px);
        opacity: 0.7;
    }

    75% {
        transform: scale(1.05) translateY(-3px);
        opacity: 0.85;
    }
}

@keyframes rise-smoke {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5) translateY(-100px);
        opacity: 0;
    }
}

/* Bunker stats */
.bunker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.bunker-character {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.countdown-timer {
    font-family: "Share Tech Mono", monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

/* Блок катастрофы внутри карточки бункера */
.catastrophe-block {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid #ff4444;
    background: rgba(255, 68, 68, 0.08);
    box-shadow: 0 0 10px #ff4444;
}

.catastrophe-block-title {
    color: #ff4444;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.75rem;
}

.catastrophe-block-desc {
    text-align: center;
    margin-bottom: 1rem;
}

.catastrophe-block-threat {
    text-align: center;
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 1rem;
}

.catastrophe-block-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Скрытое состояние перед появлением оверлея катастрофы */
.catastrophe-block-hidden {
    opacity: 0;
    transform: translateY(-16px);
}

.catastrophe-block-revealed {
    animation: catastrophe-reveal 0.6s ease-out forwards;
}

@keyframes catastrophe-reveal {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#lobbyCountdownBlock {
    transition: opacity 0.4s ease;
}

    #lobbyCountdownBlock #lobbyCountdownTimer {
        text-shadow: 0 0 10px #00ff41;
    }

    #lobbyCountdownBlock.opacity-50 #lobbyCountdownTimer {
        text-shadow: none;
    }

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Waiting lobby styles */
.player-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background-color: rgba(15, 15, 15, 0.5);
    transition: all 0.3s;
}

    .player-slot:hover {
        background-color: rgba(0, 255, 65, 0.1);
        border-color: #00ff41;
    }

    .player-slot.empty {
        opacity: 0.6;
    }

        .player-slot.empty:hover {
            opacity: 0.8;
        }

.player-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border: 1px solid #00ff41;
}

.avatar-crown-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.8rem;
    background-color: #0f0f0f;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

.player-info {
    flex-grow: 1;
    text-align: left;
}

.player-name {
    font-weight: bold;
}

.kick-player-btn {
    flex-shrink: 0;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: rgba(255, 50, 50, 0.7);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .kick-player-btn:hover {
        border-color: #ff3232;
        color: #ff3232;
        background-color: rgba(255, 50, 50, 0.1);
    }

.player-level {
    font-size: 0.7rem;
    opacity: 0.8;
}

.player-ping {
    font-size: 0.8rem;
    color: #00ff41;
}

    .player-ping.good {
        color: #00ff41;
    }

    .player-ping.medium {
        color: #ffff00;
    }

    .player-ping.bad {
        color: #ff0000;
    }

.waiting-animation {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}

    .waiting-animation::before,
    .waiting-animation::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: #00ff41;
        animation: spin 1s linear infinite;
    }

    .waiting-animation::after {
        animation-delay: 0.2s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.start-game-btn {
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .start-game-btn::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -60%;
        width: 200%;
        height: 200%;
        background: linear-gradient(transparent, rgba(0, 255, 65, 0.2), transparent);
        transform: rotate(30deg);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        left: -60%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.player-count-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.player-count-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #00ff41;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    margin: 0 1rem;
}

.player-count-circle-stop {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #00ff41;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    margin: 0 1rem;
}

.player-count-circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00ff41;
    animation: spin 2s linear infinite;
}

.player-count-separator {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Notification System — ПК: тосты по центру внизу */
.notification-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
    pointer-events: none;
}

.notification {
    pointer-events: all;
    width: 100%;
    background-color: rgba(8, 8, 8, 0.96);
    border: 2px solid #00ff41;
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
    padding: 18px 22px 22px;
    border-radius: 4px;
    animation: toastSlideUpIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
    transform: translateY(24px);
    opacity: 0;
}

    .notification.success {
        border-color: #00ff41;
        box-shadow: 0 0 24px rgba(0, 255, 65, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
    }

    .notification.warning {
        border-color: #ffff00;
        box-shadow: 0 0 24px rgba(255, 255, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
    }

    .notification.error {
        border-color: #ff4444;
        box-shadow: 0 0 24px rgba(255, 68, 68, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
    }

    .notification.info {
        border-color: #1e90ff;
        box-shadow: 0 0 24px rgba(30, 144, 255, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
    }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.notification-title {
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 8px currentColor;
    letter-spacing: 0.02em;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

    .notification-close:hover {
        opacity: 1;
    }

.notification-content {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: currentColor;
    width: 100%;
    transform-origin: left;
    animation: progress 8s linear forwards;
}

/* Появление снизу-вверх (ПК) — сохраняет идею исходной анимации slideIn/slideOut */
@keyframes toastSlideUpIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideUpOut {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Появление сверху-вниз (PWA/мобильные — компактный режим у верхней границы) */
@keyframes toastSlideDownIn {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideDownOut {
    to {
        transform: translateY(-16px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* User Profile */
.user-profile {
    position: relative;
    overflow: hidden;
}

.user-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px #00ff41;
    margin: 0 auto;
    background-color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.user-stat {
    text-align: center;
    padding: 0.5rem;
}

.user-stat-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.user-stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.progress-bar {
    height: 6px;
    background-color: rgba(15, 15, 15, 0.5);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #00ff41;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.user-skills {
    margin-top: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 0.8rem;
}

.skill-level {
    font-size: 0.8rem;
    font-weight: bold;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.user-action-btn {
    flex: 1;
    margin: 0 0.25rem;
    padding: 0.25rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center;
        padding: 1rem;
        /* Убираем fixed — на iOS вызывает лаги при скролле */
        background-attachment: scroll;
        /* Отступ снизу под iOS home indicator */
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    /* PWA/мобильные: компактные тосты у верхнего края — внизу перекрывает PWA-баннер */
    .notification-container {
        top: 10px;
        bottom: auto;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .notification {
        padding: 10px 12px 14px;
        border-width: 1px;
        border-radius: 3px;
        animation-name: toastSlideDownIn;
        transform: translateY(-16px);
        box-shadow: 0 0 12px rgba(0, 255, 65, 0.25), 0 4px 16px rgba(0, 0, 0, 0.7);
    }

        .notification.success {
            box-shadow: 0 0 12px rgba(0, 255, 65, 0.25), 0 4px 16px rgba(0, 0, 0, 0.7);
        }

        .notification.warning {
            box-shadow: 0 0 12px rgba(255, 255, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.7);
        }

        .notification.error {
            box-shadow: 0 0 12px rgba(255, 68, 68, 0.25), 0 4px 16px rgba(0, 0, 0, 0.7);
        }

        .notification.info {
            box-shadow: 0 0 12px rgba(30, 144, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.7);
        }

    .notification-title {
        font-size: 0.95rem;
    }

    .notification-content {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .notification-progress {
        animation-duration: 6s;
    }

    /* Тач-таргеты: минимум 44×44px по Apple HIG */
    .pip-boy-button {
        min-height: 44px;
    }

    .unlock-btn {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* Контейнер таблицы характеристик: на мобильных в нём отображается стек-версия
       (stacktable.js) — ограничиваем высоту и даём плавный вертикальный скролл на iOS */
    .scroll-container {
        height: auto;
        max-height: 70vh;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    /* Счётчик игроков — оставляем строкой */
    .player-count-indicator {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .player-count-circle,
    .player-count-circle-stop {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }

    .loading-logo {
        font-size: 2rem;
    }

    .loading-bar-container {
        width: 80%;
    }

    .color-scheme-btn {
        width: 24px;
        height: 24px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .bunker-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .bunker-character {
        grid-template-columns: 1fr;
    }

    .player-avatar {
        margin-bottom: 0.5rem;
    }

    .start-game-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem;
    }

    /* Карточка игрока: ID комнаты */
    .skill-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* Очень маленькие экраны (320–480px) */
@media (max-width: 480px) {
    /* Статистика бункера: 2 столбца */
    .bunker-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .notification-container {
        left: 8px;
        right: 8px;
        transform: none;
        width: auto;
    }

    .notification {
        padding: 8px 10px 12px;
    }

    .notification-title {
        font-size: 0.85rem;
    }

    .notification-content {
        font-size: 0.78rem;
    }
}

/* New styles for the 11-column table */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.8rem;
}

    .resource-table th {
        /* Непрозрачная подложка обязательна: при «липкой» шапке полупрозрачный фон
           даёт «просвечивание» прокручиваемых строк сквозь заголовок */
        background: linear-gradient(rgba(0, 255, 65, 0.12), rgba(0, 255, 65, 0.12)), #0f0f0f;
        padding: 6px 10px;
        text-align: left;
        white-space: nowrap;
        border: 1px solid #00ff41;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .resource-table td {
        padding: 6px 10px;
        text-align: left;
        white-space: nowrap;
        border: 1px solid rgba(0, 255, 65, 0.3);
    }

/* Стек-версия таблицы характеристик: каждая строка превращается в пары
   «подпись/значение», между игроками — разделитель .seperator */
.stacktable.small-only {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.8rem;
}

    .stacktable.small-only td {
        padding: 6px 10px;
        border: none;
        white-space: normal;
        overflow-wrap: anywhere;
        vertical-align: top;
    }

    .stacktable.small-only td.label {
        width: 42%;
        color: #00ff41;
        font-weight: bold;
        opacity: 0.75;
    }

    .stacktable.small-only td.value {
        width: 58%;
    }

    .stacktable.small-only td.seperator {
        height: 0;
        padding: 0;
        border-top: 1px solid rgba(0, 255, 65, 0.3);
    }

/* Вкладки переключения групп столбцов — занимают всю ширину родителя */
.table-tabs {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.table-tab-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    background-color: #0f0f0f;
    border: 1px solid #00ff41;
    color: #00ff41;
    font-size: 0.75rem;
    text-align: center;
    overflow-wrap: break-word;
    cursor: pointer;
    transition: all 0.2s;
}

    .table-tab-btn:hover {
        background-color: rgba(0, 255, 65, 0.15);
    }

    .table-tab-btn.active {
        background-color: #00ff41;
        color: #0f0f0f;
        text-shadow: none;
        box-shadow: 0 0 10px #00ff41;
    }

/* По умолчанию столбцы, привязанные к вкладкам, скрыты — видна только активная группа.
   Колонка ИМЯ без data-group остаётся видимой всегда. */
.resource-table th[data-group],
.resource-table td[data-group] {
    display: none;
}

    .resource-table[data-active-group="0"] th[data-group="0"],
    .resource-table[data-active-group="0"] td[data-group="0"],
    .resource-table[data-active-group="1"] th[data-group="1"],
    .resource-table[data-active-group="1"] td[data-group="1"],
    .resource-table[data-active-group="2"] th[data-group="2"],
    .resource-table[data-active-group="2"] td[data-group="2"],
    .resource-table[data-active-group="3"] th[data-group="3"],
    .resource-table[data-active-group="3"] td[data-group="3"] {
        display: table-cell;
    }

/* Кнопка-подсказка идёт в потоке рядом с текстом, а не поверх него — без абсолютного позиционирования */
.hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.3);
    color: #00ff41;
    font-size: 10px;
    cursor: pointer;
    border: none;
    vertical-align: middle;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cell-content {
    display: inline-block;
    vertical-align: middle;
}

/* Ячейка «ИМЯ» в таблице характеристик: аватар и имя в одну строку (если влезает),
   выровнены по центру друг относительно друга. flex-wrap позволяет имени перенестись
   на новую строку вместо того, чтобы вылезать за границы ячейки на узких экранах. */
.table-row-name {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Колонка ИМЯ не должна резать имя по nowrap из общего правила .resource-table td —
   иначе длинные имена вылезают вправо за границы ячейки */
.resource-table th:first-child,
.resource-table td:first-child {
    white-space: normal;
}

/* Обёртка вокруг аватара — точка отсчёта для значка короны в углу */
.table-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

/* Маленький значок короны в правом верхнем углу аватара ведущего */
.table-crown-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.55rem;
    background-color: #0f0f0f;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.resource-table tr:nth-child(even) {
    background-color: rgba(0, 255, 65, 0.03);
}

.resource-table tr:hover {
    background-color: rgba(0, 255, 65, 0.1);
}

.critical {
    color: #ff0000;
    animation: pulse 1s infinite;
}

.warning {
    color: #ffff00;
}

.good {
    color: #00ff41;
}

/* Player table styles */
.player-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .player-table th {
        background-color: rgba(0, 255, 65, 0.1);
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #00ff41;
    }

    .player-table td {
        padding: 8px;
        border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    }

    .player-table tr:hover {
        background-color: rgba(0, 255, 65, 0.05);
    }

.player-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #00ff41;
    box-shadow: 0 0 5px #00ff41;
}

.status-afk {
    background-color: #ffff00;
    box-shadow: 0 0 5px #ffff00;
}

.status-offline {
    background-color: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}
/* Food Inventory Styles */
.food-inventory {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .food-inventory th {
        background-color: rgba(0, 255, 65, 0.1);
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #00ff41;
    }

    .food-inventory td {
        padding: 8px;
        border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    }

    .food-inventory tr:hover {
        background-color: rgba(0, 255, 65, 0.05);
    }

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.food-name {
    flex: 1;
}

.food-quantity {
    width: 60px;
    text-align: center;
}

.food-lock {
    width: 40px;
    text-align: center;
}

.lock-btn {
    background: none;
    border: none;
    color: #00ff41;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

    .lock-btn:hover {
        transform: scale(1.2);
    }

.locked {
    color: #ff0000;
}

.unlocked {
    color: #00ff41;
}

.food-status {
    width: 20px;
    text-align: center;
}

.status-icon {
    font-size: 0.8rem;
}

.status-good {
    color: #00ff41;
}

.status-warning {
    color: #ffff00;
}

.status-critical {
    color: #ff0000;
    animation: pulse 1s infinite;
}

.item-name {
    flex: 1;
}

.item-status {
    width: 20px;
    text-align: center;
}

.unlock-btn {
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .unlock-btn:hover {
        background-color: rgba(0, 255, 65, 0.3);
    }

.spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background-color: rgba(0, 255, 65, 0.03);
    transition: all 0.2s;
}

    .spec-card:hover {
        border-color: #00ff41;
        background-color: rgba(0, 255, 65, 0.07);
    }

.spec-card-icon {
    font-size: 1.6rem;
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

.spec-card-name {
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.spec-card-value {
    font-size: 0.8rem;
    opacity: 0.8;
    overflow-wrap: break-word;
}

.spec-card-actions {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .spec-card {
        padding: 8px 4px;
    }

    .spec-card-icon {
        font-size: 1.3rem;
    }
}

/* ══════════════════════════════════════════════════════
   CRT & RETRO ATMOSPHERE
══════════════════════════════════════════════════════ */

/* Статичные горизонтальные линии развёртки */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.045) 0px,
        rgba(0, 0, 0, 0.045) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* Движущаяся полоса сканирования (характерный эффект ЭЛТ-монитора) */
body::before {
    content: "";
    position: fixed;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 255, 65, 0.05),
        rgba(0, 255, 65, 0.13),
        rgba(0, 255, 65, 0.05),
        transparent
    );
    animation: crtScan 14s linear infinite;
}

@keyframes crtScan {
    0%   { top: -8px; }
    100% { top: 100vh; }
}

/* ══════════════════════════════════════════════════════
   PANEL & BUTTON INTERACTIONS
══════════════════════════════════════════════════════ */

.pip-boy-border:hover {
    box-shadow: 0 0 18px #00ff41, 0 0 40px rgba(0, 255, 65, 0.2);
}

.pip-boy-button:active {
    transform: scale(0.96);
    box-shadow: 0 0 25px #00ff41;
}

/* ══════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
══════════════════════════════════════════════════════ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupReveal {
    0%   { opacity: 0; transform: scale(0.84) translateY(14px); }
    65%  { transform: scale(1.04) translateY(-3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes rowHighlight {
    0%   { background-color: rgba(0, 255, 65, 0.22); }
    100% { background-color: transparent; }
}

.anim-slide-in {
    animation: slideInLeft 0.38s ease-out both;
}

.anim-fade-up {
    animation: fadeInUp 0.4s ease-out both;
}

.anim-row-flash {
    animation: rowHighlight 1.4s ease-out;
}

.popup-inner-enter {
    animation: popupReveal 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ══════════════════════════════════════════════════════
   EXPULSION OVERLAY
══════════════════════════════════════════════════════ */

.expulsion-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Перехватываем клики — пока оверлей на экране, элементы под ним недоступны */
    pointer-events: auto;
    cursor: wait;
    /* Постоянная тёмная подложка для читаемости — поверх неё анимируется красный акцент */
    background-color: rgba(0, 0, 0, 0.82);
    animation: expulsionBg 4.5s ease-in-out forwards;
}

@keyframes expulsionBg {
    0%   { background-image: linear-gradient(rgba(180, 0, 0, 0), rgba(180, 0, 0, 0)); }
    12%  { background-image: linear-gradient(rgba(180, 0, 0, 0.38), rgba(180, 0, 0, 0.38)); }
    70%  { background-image: linear-gradient(rgba(140, 0, 0, 0.28), rgba(140, 0, 0, 0.28)); }
    100% { background-image: linear-gradient(rgba(180, 0, 0, 0), rgba(180, 0, 0, 0)); }
}

.expulsion-content {
    text-align: center;
    animation: expulsionContent 4.5s ease-in-out forwards;
}

@keyframes expulsionContent {
    0%   { opacity: 0; transform: scale(0.35); filter: blur(14px); }
    14%  { opacity: 1; transform: scale(1.18); filter: blur(0); }
    28%  { transform: scale(1.0); }
    72%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.05); }
}

.expulsion-title {
    font-size: clamp(3rem, 12vw, 7.5rem);
    font-weight: bold;
    color: #ff1111;
    text-shadow:
        0 0 20px #ff0000,
        0 0 50px #ff0000,
        0 0 110px rgba(255, 0, 0, 0.55);
    letter-spacing: 0.1em;
    line-height: 1;
}

.expulsion-player {
    font-size: clamp(1rem, 4vw, 2.2rem);
    color: #ff9999;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.9);
    letter-spacing: 0.28em;
    margin-top: 0.6rem;
}

/* ══════════════════════════════════════════════════════
   GAME END OVERLAY
══════════════════════════════════════════════════════ */

.game-end-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Перехватываем клики — пока оверлей на экране, элементы под ним недоступны */
    pointer-events: auto;
    cursor: wait;
    animation: gameEndBg 5.5s ease-in-out forwards;
}

@keyframes gameEndBg {
    0%   { background: rgba(0, 0, 0, 0.00); }
    15%  { background: rgba(0, 0, 0, 0.82); }
    78%  { background: rgba(0, 0, 0, 0.82); }
    100% { background: rgba(0, 0, 0, 0.00); }
}

.game-end-content {
    text-align: center;
    animation: gameEndContent 5.5s ease-in-out forwards;
}

@keyframes gameEndContent {
    0%   { opacity: 0; letter-spacing: 0.8em; filter: blur(10px); }
    20%  { opacity: 1; letter-spacing: 0.2em; filter: blur(0); }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}

.game-end-title {
    font-size: clamp(2.5rem, 10vw, 6.5rem);
    font-weight: bold;
    color: #00ff41;
    text-shadow:
        0 0 20px #00ff41,
        0 0 55px #00ff41,
        0 0 110px rgba(0, 255, 65, 0.55);
    letter-spacing: 0.22em;
}

.game-end-sub {
    font-size: clamp(0.8rem, 2.5vw, 1.3rem);
    color: rgba(0, 255, 65, 0.75);
    letter-spacing: 0.38em;
    margin-top: 1.2rem;
    text-shadow: 0 0 12px #00ff41;
}

/* ══════════════════════════════════════════════════════
   GAME EVENT OVERLAY — универсальный полноэкранный оверлей
   для игровых событий (старт игры, голосование, спецкарты,
   раскрытие характеристик, закрытие комнаты и т.д.)
   Цвет задаётся модификатором --green/--red/--yellow/--blue
══════════════════════════════════════════════════════ */

.game-event-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Перехватываем клики — пока оверлей на экране, элементы под ним недоступны */
    pointer-events: auto;
    cursor: wait;
    /* Постоянная тёмная подложка для читаемости — поверх неё анимируется цветной акцент темы */
    background-color: rgba(0, 0, 0, 0.82);
    animation: gameEventBg 4.2s ease-in-out forwards;
    --overlay-tint: 0, 255, 65;
}

.game-event-overlay--green {
    --overlay-tint: 0, 255, 65;
}

.game-event-overlay--red {
    --overlay-tint: 255, 60, 60;
}

.game-event-overlay--yellow {
    --overlay-tint: 255, 215, 0;
}

.game-event-overlay--blue {
    --overlay-tint: 30, 144, 255;
}

@keyframes gameEventBg {
    0%   { background-image: linear-gradient(rgba(var(--overlay-tint), 0), rgba(var(--overlay-tint), 0)); }
    14%  { background-image: linear-gradient(rgba(var(--overlay-tint), 0.45), rgba(var(--overlay-tint), 0.45)); }
    74%  { background-image: linear-gradient(rgba(var(--overlay-tint), 0.32), rgba(var(--overlay-tint), 0.32)); }
    100% { background-image: linear-gradient(rgba(var(--overlay-tint), 0), rgba(var(--overlay-tint), 0)); }
}

.game-event-content {
    text-align: center;
    animation: gameEventContent 4.2s ease-in-out forwards;
}

@keyframes gameEventContent {
    0%   { opacity: 0; letter-spacing: 0.7em; filter: blur(10px); }
    18%  { opacity: 1; letter-spacing: 0.18em; filter: blur(0); }
    76%  { opacity: 1; }
    100% { opacity: 0; }
}

.game-event-title {
    font-size: clamp(2rem, 8vw, 5.5rem);
    font-weight: bold;
    color: rgb(var(--overlay-tint));
    text-shadow:
        0 0 18px rgb(var(--overlay-tint)),
        0 0 48px rgb(var(--overlay-tint)),
        0 0 100px rgba(var(--overlay-tint), 0.55);
    letter-spacing: 0.18em;
    line-height: 1.05;
}

.game-event-sub {
    font-size: clamp(0.75rem, 2.4vw, 1.2rem);
    color: rgba(var(--overlay-tint), 0.8);
    letter-spacing: 0.32em;
    margin-top: 1rem;
    text-shadow: 0 0 12px rgb(var(--overlay-tint));
}

/* ══════════════════════════════════════════════════════
   WIN CONDITION AUTO-END
══════════════════════════════════════════════════════ */

.auto-win-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Перехватываем клики — пока оверлей на экране, элементы под ним недоступны */
    pointer-events: auto;
    cursor: wait;
    animation: gameEndBg 4s ease-in-out forwards;
}

.auto-win-content {
    text-align: center;
    animation: gameEndContent 4s ease-in-out forwards;
}

.auto-win-title {
    font-size: clamp(2rem, 9vw, 5.5rem);
    font-weight: bold;
    color: #00ff41;
    text-shadow:
        0 0 15px #00ff41,
        0 0 45px #00ff41,
        0 0 90px rgba(0, 255, 65, 0.5);
    letter-spacing: 0.15em;
    line-height: 1.2;
}

.auto-win-sub {
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    color: rgba(0, 255, 65, 0.8);
    letter-spacing: 0.3em;
    margin-top: 1rem;
    text-shadow: 0 0 10px #00ff41;
}

/* ── EMOJI REACTIONS ── */
.emoji-bubble {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    animation: emojiFly 2s ease-out forwards;
    pointer-events: none;
    z-index: 60;
}

@keyframes emojiFly {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-120px) scale(1.5); }
}

/* ══════════════════════════════════════════════════════
   МИНИ-ИГРЫ РАЗРЕШЕНИЯ НИЧЬИ — КУБИК И КАМЕНЬ-НОЖНИЦЫ-БУМАГА
══════════════════════════════════════════════════════ */

.dice-cube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2.5rem;
    border: 2px solid #00ff41;
    border-radius: 0.75rem;
    background-color: rgba(0, 255, 65, 0.06);
}

.dice-cube--clickable {
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.dice-cube--clickable:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.5);
}

.dice-cube--rolling {
    animation: diceRoll 0.9s steps(8, end) forwards;
}

.dice-cube--landed {
    animation: diceLand 0.4s ease-out forwards;
}

/* Бросок зарегистрирован, результат пока скрыт (до завершения раунда) —
   приглушаем кубик, чтобы игрок видел, что его ход принят, без раскрытия значения. */
.dice-cube--rolled {
    opacity: 0.45;
    filter: grayscale(0.6);
    border-color: rgba(0, 255, 65, 0.35);
}

@keyframes diceRoll {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(120deg) scale(1.12); }
    50%  { transform: rotate(240deg) scale(0.94); }
    75%  { transform: rotate(360deg) scale(1.12); }
    100% { transform: rotate(480deg) scale(1); }
}

@keyframes diceLand {
    0%   { transform: scale(1.35); filter: brightness(1.8); }
    60%  { transform: scale(0.92); }
    100% { transform: scale(1); filter: brightness(1); }
}

.coin-cube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    height: 4rem;
    padding: 0 0.75rem;
    font-size: 2.5rem;
    font-weight: bold;
    white-space: nowrap;
    border: 2px solid #00ff41;
    border-radius: 0.75rem;
    background-color: rgba(0, 255, 65, 0.06);
}

.coin-cube--clickable {
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.coin-cube--clickable:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.5);
}

.coin-cube--flipping {
    animation: coinFlip 0.9s steps(8, end) forwards;
}

/* Выпавшая сторона показывается текстовой подписью — шрифт меньше, чем у иконки монеты */
.coin-cube--landed {
    font-size: 1.1rem;
    animation: diceLand 0.4s ease-out forwards;
}

/* Бросок зарегистрирован, результат пока скрыт (до завершения раунда) —
   приглушаем монету, чтобы игрок видел, что его ход принят, без раскрытия стороны. */
.coin-cube--flipped {
    opacity: 0.45;
    filter: grayscale(0.6);
    border-color: rgba(0, 255, 65, 0.35);
}

@keyframes coinFlip {
    0%   { transform: rotateY(0deg) scale(1); }
    25%  { transform: rotateY(180deg) scale(1.12); }
    50%  { transform: rotateY(360deg) scale(0.94); }
    75%  { transform: rotateY(540deg) scale(1.12); }
    100% { transform: rotateY(720deg) scale(1); }
}

.rps-slot-value {
    display: inline-block;
}

.rps-reveal-anim {
    animation: rpsReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes rpsReveal {
    0%   { opacity: 0; transform: scale(0.3) rotate(-25deg); }
    60%  { opacity: 1; transform: scale(1.25) rotate(8deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* На мобильных вместо горизонтальной таблицы с вкладками показываем стек-версию
   (stacktable.js) — она не требует прокрутки и переключения групп столбцов.
   Правила вынесены в конец файла, чтобы при равной специфичности побеждать
   более ранние "display"-объявления (например, .table-tabs { display: flex }) */
@media (max-width: 768px) {
    .large-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .small-only {
        display: none;
    }
}
