/* © WatchJunk */
/* coded by nya & suzunay */

:root {
            --g-bg: #07090c;
            --g-panel: #0f1218;
            --g-item: #161b22;
            --g-accent: #00a3ff;
            --g-accent-hover: #0090e0;
            --g-accent-glow: rgba(0,163,255,0.3);
            --g-accent-soft: rgba(0,163,255,0.1);
            --g-text: #e6edf3;
            --g-text-dim: #7d8590;
            --g-text-muted: #484f58;
            --g-border: rgba(255,255,255,0.05);
            --g-danger: #ef4444;
            --g-success: #22c55e;
            --g-r-lg: 16px;
            --g-r-md: 12px;
            --g-r-sm: 8px;
        }

        body {
            overflow-x: hidden !important;
            overflow-y: hidden !important;
        }

        html {
            overflow-x: hidden !important;
            overflow-y: hidden !important;
        }

        .game-container {
            width: 100%;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            overflow-y: hidden;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
        }

        .selection-screen {
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
            box-sizing: border-box;
        }

        .game-header {
            position: relative;
            margin-bottom: 0;
            min-height: 0;
        }

        .game-header h1 {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: var(--g-text);
        }

        .score-container {
            position: fixed;
            top: 20px;
            right: 20px;
            font-size: 1.5rem;
            color: var(--g-accent);
            font-weight: 700;
            display: none;
            background: var(--g-item);
            padding: 10px 20px;
            border-radius: 24px;
            border: 1px solid var(--g-border);
            z-index: 50;
        }
        
        #leaveGameBtn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 100;
            font-size: 0.7rem !important;
            padding: 6px 12px !important;
            min-width: 100px !important;
            max-width: 150px !important;
            width: auto !important;
            display: none;
            background: transparent;
            color: var(--g-text-dim);
            border: 1px solid var(--g-border);
            border-radius: var(--g-r-sm);
            transition: all 0.3s ease;
        }

        #leaveGameBtn:hover {
            color: var(--g-danger);
            border-color: rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.1);
        }
        
        @media (max-width: 1024px) {
            #leaveGameBtn {
                bottom: 10px;
                right: 10px;
                font-size: 0.65rem !important;
                padding: 5px 10px !important;
                min-width: 90px !important;
                max-width: 130px !important;
            }
        }

        .high-score {
            position: fixed;
            top: 20px;
            left: 20px;
            font-size: 1.5rem;
            color: var(--g-accent);
            font-weight: 700;
            display: none;
            background: var(--g-item);
            padding: 10px 20px;
            border-radius: 24px;
            border: 1px solid var(--g-border);
            z-index: 50;
            max-width: calc(50vw - 40px);
        }

        #highScoreNote {
            font-size: 0.75rem;
            color: var(--g-text-dim);
            margin-left: 0;
            margin-top: 4px;
            font-weight: normal;
            font-style: italic;
            display: block;
            line-height: 1.2;
        }

        .cards-container {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 20px;
            margin-top: 60px;
            margin-bottom: 20px;
            min-height: 280px;
            border-radius: 24px;
            overflow: visible;
            position: relative;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px;
            align-items: stretch;
        }

        .card {
            position: relative;
            background: transparent;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: transform 0.2s ease;
            width: 100%;
            max-width: 500px;
            min-width: 0;
            border-radius: 20px;
            margin: 0 auto;
        }

        .card:hover {
            transform: scale(1.02);
            box-shadow: 0 0 10px rgba(0, 163, 255, 0.15), 0 8px 12px rgba(0, 0, 0, 0.3);
        }

        .card.disabled {
            cursor: not-allowed;
            opacity: 0.7;
        }

        .card.disabled:hover {
            transform: none;
        }

        .card-image {
            width: 100%;
            height: 100%;
            min-height: min(420px, calc(80vh - 140px));
            object-fit: cover;
            background: linear-gradient(180deg, var(--g-item) 0%, var(--g-bg) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: #7b7b95;
            position: relative;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
            padding: 24px 20px 18px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .card-title {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 4px;
            color: #fff;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 163, 255, 0.3);
            line-height: 1.2;
        }

        .card-rating {
            font-size: 1.6rem;
            color: var(--g-accent);
            font-weight: 700;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 163, 255, 0.5);
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.4s ease;
        }

        .card-rating.show {
            opacity: 1;
            transform: translateY(0);
        }

        .or-button-container {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 10;
            width: 80px;
            min-width: 80px;
            max-width: 80px;
            background: transparent;
            flex-shrink: 0;
        }

        .or-button {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--g-item);
            color: var(--g-text-dim);
            font-size: 1.4rem;
            font-weight: 800;
            border: 1px solid var(--g-border);
            cursor: default;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }


        .result-message {
            display: none;
        }

        .card-result-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            z-index: 20;
            padding: 10px 24px;
            border-radius: 24px;
            font-size: 1.3rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            animation: resultPopIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            pointer-events: none;
        }

        .card-result-badge.correct {
            background: rgba(34, 197, 94, 0.2);
            color: var(--g-success);
            border: 1px solid rgba(34, 197, 94, 0.3);
            box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
        }

        .card-result-badge.wrong {
            background: rgba(239, 68, 68, 0.2);
            color: var(--g-danger);
            border: 1px solid rgba(239, 68, 68, 0.3);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
        }

        .card-result-badge.tie {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.3);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
        }

        @keyframes resultPopIn {
            0% {
                transform: translate(-50%, -50%) scale(0) rotate(-180deg);
                opacity: 0;
            }
            50% {
                transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
            }
            100% {
                transform: translate(-50%, -50%) scale(1) rotate(0deg);
                opacity: 1;
            }
        }


        .category-selection {
            text-align: center;
            padding: 20px 40px;
            background: transparent;
            border: none;
            max-width: 900px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-height: 0;
            box-sizing: border-box;
        }

        .category-selection h2 {
            font-size: 1.5rem;
            margin-bottom: 28px;
            color: var(--g-text);
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .category-buttons {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            align-items: stretch;
            gap: 16px;
        }

        .btn-category {
            background: var(--g-item);
            color: var(--g-text);
            padding: 32px 28px;
            width: auto;
            min-width: 180px;
            max-width: 240px;
            flex: 1 1 0;
            font-size: 1.05rem;
            font-weight: 700;
            border: 1px solid var(--g-border);
            border-radius: var(--g-r-lg);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .category-buttons > .hj-btn.hj-btn-secondary {
            flex-basis: 100%;
            max-width: none;
            background: transparent !important;
            color: var(--g-text-dim) !important;
            border: none !important;
            font-size: 0.8rem !important;
            font-weight: 500 !important;
            padding: 10px 16px !important;
            margin-top: 4px !important;
            transition: color 0.2s ease;
        }

        .category-buttons > .hj-btn.hj-btn-secondary:hover {
            color: var(--g-text) !important;
            background: rgba(255, 255, 255, 0.03) !important;
        }

        .btn-category::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--g-accent-soft);
            transition: left 0.4s ease;
            z-index: 0;
        }

        .btn-category:hover:not(:disabled)::before {
            left: 0;
        }

        .btn-category span {
            position: relative;
            z-index: 1;
            display: block;
            font-size: 2.6rem;
            margin-bottom: 10px;
        }

        .btn-category:hover:not(:disabled) {
            border-color: var(--g-accent-glow);
            transform: translateY(-4px);
            box-shadow: 0 0 10px rgba(0, 163, 255, 0.12), 0 8px 10px rgba(0, 0, 0, 0.3);
        }

        .btn-category:active:not(:disabled) {
            transform: translateY(-2px);
        }

        .btn-category:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: var(--g-panel);
            border-color: var(--g-border);
        }

        .btn-category:disabled span {
            opacity: 0.5;
        }


        .btn-restart {
            background: var(--g-accent);
            color: #fff;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: var(--g-r-sm);
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .btn-restart:hover {
            background: var(--g-accent-hover);
            transform: translateY(-2px);
        }

        @keyframes gameoverSlideIn {
            from { opacity: 0; transform: scale(0.96) translateY(8px); }
            to { opacity: 1; transform: none; }
        }

        #game-over-overlay {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.75);
            z-index: 200;
            padding: 20px;
        }

        #game-over-overlay.active {
            display: flex;
        }

        .gameover-box {
            background: rgba(15, 18, 24, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--g-r-lg);
            padding: 28px 28px 22px;
            max-width: 340px;
            width: 100%;
            text-align: center;
            box-shadow: 0 24px 20px rgba(0, 0, 0, 0.6);
            animation: gameoverSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .gameover-icon {
            width: 48px;
            height: 48px;
            background: var(--g-accent-soft);
            border: 1px solid rgba(0, 163, 255, 0.12);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--g-accent);
            margin: 0 auto 12px;
        }

        .gameover-box h2 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--g-text);
            margin-bottom: 14px;
            letter-spacing: 1px;
        }

        .score-box {
            background: var(--g-item);
            border: 1px solid var(--g-border);
            border-radius: var(--g-r-md);
            padding: 12px 24px;
            margin: 0 auto 6px;
            display: inline-block;
        }

        .score-box small {
            display: block;
            font-size: 0.65rem;
            color: var(--g-text-dim);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 2px;
        }

        .score-box small:last-child {
            margin-top: 2px;
            margin-bottom: 0;
        }

        .score-big {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--g-accent);
            line-height: 1;
        }

        .gameover-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            margin-top: 16px;
        }

        #game-over-overlay .hj-btn-primary {
            width: 100%;
            cursor: pointer !important;
        }

        #game-over-overlay .hj-btn-primary:hover {
            cursor: pointer !important;
        }

        #game-over-overlay .hj-btn-ghost {
            cursor: pointer !important;
        }

        #game-over-overlay .hj-btn-ghost:hover {
            cursor: pointer !important;
        }

        @media (max-width: 1024px) {
            .game-header {
                min-height: 0;
                margin-bottom: 0;
            }

            .cards-container {
                grid-template-columns: 1fr auto 1fr;
                gap: 15px;
                min-height: auto;
                max-width: 95%;
                width: auto;
                margin-top: 50px;
                margin-left: auto;
                margin-right: auto;
                padding: 10px;
            }

            .or-button-container {
                display: flex;
                width: 50px;
                min-width: 50px;
                max-width: 50px;
            }

            .or-button {
                width: 50px;
                height: 50px;
                font-size: 1rem;
            }

            .card {
                max-width: 100%;
            }

            .card-image {
                min-height: min(350px, calc(80vh - 120px));
            }

            .card-title {
                font-size: 1.3rem;
            }

            .card-rating {
                font-size: 1.2rem;
            }

            .card-result-badge {
                font-size: 1.1rem;
                padding: 10px 20px;
            }

            .score-container,
            .high-score {
                font-size: 1.2rem;
                padding: 8px 16px;
                top: 10px;
                max-width: calc(50vw - 20px);
            }

            .high-score {
                left: 10px;
            }

            .score-container {
                right: 10px;
            }

            #highScoreNote {
                display: block;
                margin-top: 4px;
                margin-left: 0;
                font-size: 0.7rem;
            }

            .category-selection h2 {
                font-size: 1.3rem;
                margin-bottom: 22px;
            }

            .category-buttons {
                gap: 14px;
            }

            .btn-category {
                padding: 26px 20px;
                font-size: 1rem;
                min-width: 150px;
                max-width: 210px;
            }

            .btn-category span {
                font-size: 2.2rem;
                margin-bottom: 8px;
            }

            .gameover-box {
                padding: 24px 20px 18px;
                max-width: 320px;
            }

            .gameover-icon {
                width: 44px;
                height: 44px;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .game-container {
                overflow-x: hidden;
                width: 100vw;
            }

            .game-header {
                min-height: 0;
            }

            .cards-container {
                gap: 10px;
                padding: 8px;
                max-width: 95%;
                width: auto;
                margin-top: 50px;
                margin-left: auto;
                margin-right: auto;
                grid-template-columns: 1fr auto 1fr;
            }

            .or-button-container {
                display: flex;
                width: 40px;
                min-width: 40px;
                max-width: 40px;
            }

            .or-button {
                width: 40px;
                height: 40px;
                font-size: 0.85rem;
            }

            .card {
                max-width: 100%;
                width: 100%;
            }

            .card-image {
                min-height: min(280px, calc(80vh - 120px));
            }

            .card-title {
                font-size: 0.85rem;
                margin-bottom: 2px;
                line-height: 1.15;
            }

            .card-rating {
                font-size: 0.8rem;
            }

            .card-overlay {
                padding: 14px 10px 10px;
            }

            .card-result-badge {
                font-size: 0.9rem;
                padding: 8px 14px;
                letter-spacing: 1px;
            }

            .game-header {
                min-height: 0;
                margin-bottom: 0;
            }

            .score-container,
            .high-score {
                font-size: 0.95rem;
                padding: 8px 12px;
                top: 10px;
                max-width: calc(50vw - 20px);
            }

            .high-score {
                left: 10px;
            }

            .score-container {
                right: 10px;
            }

            #highScoreNote {
                display: block;
                margin-top: 4px;
                margin-left: 0;
                font-size: 0.65rem;
                line-height: 1.2;
            }

            .category-selection {
                padding: 20px 15px;
            }

            .category-selection h2 {
                font-size: 1.1rem;
                margin-bottom: 18px;
            }

            .category-buttons {
                gap: 10px;
            }

            .btn-category {
                padding: 20px 16px;
                font-size: 0.9rem;
                min-width: 130px;
                max-width: 170px;
            }

            .btn-category span {
                font-size: 1.8rem;
                margin-bottom: 5px;
            }

            .gameover-box {
                padding: 22px 18px 16px;
                max-width: 300px;
            }

            .gameover-box h2 {
                font-size: 1rem;
            }

            .score-big {
                font-size: 2rem;
            }

            .gameover-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
                margin-bottom: 10px;
            }

        }

        @media (max-width: 480px) {
            .cards-container {
                grid-template-columns: 1fr auto 1fr;
                gap: 8px;
                max-width: 95%;
                width: auto;
                margin-top: 40px;
                margin-left: auto;
                margin-right: auto;
            }

            .or-button-container {
                display: flex;
                width: 35px;
                min-width: 35px;
                max-width: 35px;
            }

            .or-button {
                width: 35px;
                height: 35px;
                font-size: 0.75rem;
            }

            .card-image {
                min-height: min(220px, calc(80vh - 100px));
            }

            .card-title {
                font-size: 0.8rem;
                line-height: 1.1;
                margin-bottom: 2px;
            }

            .card-rating {
                font-size: 0.75rem;
            }

            .card-overlay {
                padding: 10px 8px 8px;
            }

            .score-container,
            .high-score {
                font-size: 0.9rem;
                padding: 6px 10px;
                max-width: calc(50vw - 20px);
            }

            #highScoreNote {
                display: block;
                margin-top: 4px;
                margin-left: 0;
                font-size: 0.6rem;
                line-height: 1.2;
            }

            .category-selection {
                padding: 15px 10px;
            }

            .category-selection h2 {
                font-size: 1rem;
                margin-bottom: 14px;
            }

            .category-buttons {
                gap: 8px;
            }

            .btn-category {
                padding: 16px 12px;
                font-size: 0.85rem;
                min-width: 110px;
                max-width: 150px;
            }

            .btn-category span {
                font-size: 1.5rem;
                margin-bottom: 4px;
            }

            .gameover-box {
                padding: 18px 14px 14px;
                max-width: 280px;
            }

            .gameover-box h2 {
                font-size: 0.9rem;
                margin-bottom: 10px;
            }

            .score-big {
                font-size: 1.8rem;
            }

            .gameover-icon {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
                margin-bottom: 8px;
            }

            #game-over-overlay .hj-btn-primary {
                font-size: 0.8rem;
                padding: 9px 16px;
            }
        }
.game-modal {
    padding: 0 !important;
    margin: 0 !important;
}
.game-modal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}
.game-modal .modal-content {
    background: var(--g-bg);
    border: none;
    border-radius: 0;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 0;
    box-sizing: border-box;
}
.game-modal .modal-header {
    display: none;
}
.game-modal .modal-body {
    padding: 0 !important;
    flex: 1;
    overflow: hidden;
    width: 100vw !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#game-over-overlay,
#game-over-overlay * {
    cursor: auto !important;
}

/* ============ MULTIPLAYER SPLIT-SCREEN ============ */
.mp-split-container {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    width: 100%;
    height: 100vh;
    padding: 12px;
    box-sizing: border-box;
    gap: 0;
    align-items: stretch;
}
.mp-player-side {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    background: rgba(15, 18, 24, 0.95);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-my-side.mp-active-turn {
    border-color: rgba(0, 163, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.15), 0 0 8px rgba(0, 163, 255, 0.05), inset 0 1px 0 rgba(0, 163, 255, 0.1);
}
.mp-my-side.mp-waiting-turn {
    opacity: 0.55;
    filter: brightness(0.7) saturate(0.6);
}
.mp-opponent-side {
    background: rgba(15, 18, 24, 0.5);
}
.mp-opponent-side.mp-active-turn {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(245, 158, 11, 0.08);
}
.mp-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}
.mp-player-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e6edf3;
    letter-spacing: 0.02em;
}
.mp-my-side .mp-player-name {
    color: #00a3ff;
}
.mp-opponent-side .mp-player-name {
    color: #f59e0b;
}
.mp-player-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #7d8590;
    font-weight: 600;
}
.mp-player-score span {
    color: #e6edf3;
    font-weight: 800;
    font-size: 0.95rem;
}
.mp-turn-indicator {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    min-height: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.mp-turn-indicator.my-turn {
    background: rgba(0, 163, 255, 0.12);
    color: #00a3ff;
    border: 1px solid rgba(0, 163, 255, 0.2);
}
.mp-turn-indicator.waiting {
    background: rgba(125, 133, 144, 0.08);
    color: #484f58;
    border: 1px solid transparent;
}
.mp-turn-indicator.guessed {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
#mp-waiting-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 12, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}
.mp-waiting-pulse {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 163, 255, 0.3);
    animation: mpWaitPulse 1.5s ease-in-out infinite;
}
@keyframes mpWaitPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}
.mp-cards-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
}
.mp-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    max-width: 300px;
    aspect-ratio: 2/3;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(22, 27, 34, 0.8);
    transition: all 0.3s ease;
}
.mp-card .card-image {
    width: 100%;
    height: 100%;
    min-height: 0;
}
.mp-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mp-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7, 9, 12, 0.98) 0%, rgba(7, 9, 12, 0.7) 50%, transparent 100%);
    padding: 24px 12px 12px;
}
.mp-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.25;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.mp-card .card-rating {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 163, 255, 0.15);
    color: #00a3ff;
}
.mp-card .card-rating.show {
    opacity: 1;
}
.mp-card-interactive {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-card-interactive:not(.disabled):hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 163, 255, 0.3);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 163, 255, 0.1);
}
.mp-card-interactive:not(.disabled):hover .card-image img {
    transform: scale(1.05);
}
.mp-card-interactive.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
    filter: saturate(0.5);
}
.mp-vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #7d8590;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}
.mp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    position: relative;
}
.mp-divider::before {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
    transform: translateX(-50%);
}
.mp-divider span {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    color: #484f58;
}
.mp-choice-display {
    text-align: center;
    min-height: 28px;
    padding: 6px 0 2px;
    font-size: 0.78rem;
    font-weight: 600;
}
.mp-lost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.mp-lost-text {
    color: #ef4444;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Matchmaking spinner */
.mp-matchmaking-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 163, 255, 0.1);
    border-top-color: #00a3ff;
    border-radius: 50%;
    margin: 24px auto;
    animation: mp-spin 0.8s linear infinite;
}
@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

/* Result badge for multiplayer cards */
.mp-card .card-result-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 20;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: mpResultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
}
.mp-card .card-result-badge.correct {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}
.mp-card .card-result-badge.wrong {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}
.mp-card .card-result-badge.tie {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}
@keyframes mpResultPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Opponent card dimming */
.mp-opponent-side .mp-card {
    opacity: 0.85;
}
.mp-opponent-side .mp-card .card-rating {
    display: none;
}

/* ============ MOBILE LAYOUT ============ */
@media (max-width: 768px) {
    .mp-split-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 8px;
        padding: 8px;
    }
    .mp-divider {
        display: none;
    }
    .mp-opponent-side {
        order: -1;
        max-height: 110px;
        min-height: 90px;
        overflow: hidden;
        padding: 8px 12px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .mp-opponent-side .mp-player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 0;
        min-width: 70px;
    }
    .mp-opponent-side .mp-cards-area {
        gap: 4px;
        flex: 1;
    }
    .mp-opponent-side .mp-card {
        max-width: 55px;
        border-radius: 8px;
    }
    .mp-opponent-side .mp-card .card-overlay {
        padding: 3px 4px;
    }
    .mp-opponent-side .mp-card .card-title {
        font-size: 0.5rem;
        margin-bottom: 0;
    }
    .mp-opponent-side .mp-vs-badge {
        width: 18px;
        min-width: 18px;
        height: 18px;
        font-size: 0.45rem;
    }
    .mp-opponent-side .mp-player-name {
        font-size: 0.72rem;
    }
    .mp-opponent-side .mp-player-score {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    .mp-opponent-side .mp-turn-indicator {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 0;
        min-height: auto;
    }
    .mp-opponent-side .mp-choice-display {
        display: none;
    }
    .mp-opponent-side .mp-lost-text {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    .mp-my-side {
        padding: 12px;
    }
    .mp-my-side .mp-card {
        max-width: 180px;
    }
}
@media (max-width: 480px) {
    .mp-my-side .mp-card {
        max-width: 145px;
    }
    .mp-my-side .mp-card .card-title {
        font-size: 0.7rem;
    }
    .mp-my-side .mp-vs-badge {
        width: 26px;
        min-width: 26px;
        height: 26px;
        font-size: 0.55rem;
    }
    .mp-player-header {
        margin-bottom: 4px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .mp-card {
        max-width: 240px;
    }
    .mp-card .card-title {
        font-size: 0.82rem;
    }
}
