/* ===== GAME UI STYLES ===== */

/* PvP Section */
.pvp-section {
    margin-top: 16px;
}

.pvp-main-button {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.pvp-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.pvp-icon {
    background: rgba(255, 255, 255, 0.25);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pvp-content {
    flex: 1;
    text-align: left;
}

.pvp-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.pvp-subtitle {
    font-size: 0.875rem;
    opacity: 0.95;
    line-height: 1.4;
}

/* Game Container */
.game-container {
    background: var(--background);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Game Menu */
.game-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.game-menu-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.game-menu-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-menu-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Live Stats Section */
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card.online-stats {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
}

.stat-card.waiting-stats {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.stat-card.rooms-stats {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

.stat-card.active-stats {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    width: 14px;
    height: 14px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.online-stats .stat-value {
    color: #0369a1;
}

.waiting-stats .stat-value {
    color: #d97706;
}

.rooms-stats .stat-value {
    color: #059669;
}

.active-stats .stat-value {
    color: #db2777;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Game Modes Section */
.game-modes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-mode-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.game-mode-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-mode-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.game-mode-button:hover::before {
    opacity: 1;
}

.game-mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.game-mode-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.game-mode-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.game-mode-bet-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.bet-amount, .win-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bet-amount .label, .win-amount .label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.bet-amount .value, .win-amount .value {
    font-size: 1.125rem;
    font-weight: 700;
}

.win-amount .value.glow {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: gentle-glow 2s ease-in-out infinite;
}

@keyframes gentle-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.multiplier {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.bet-divider {
    font-size: 1.5rem;
    opacity: 0.6;
    font-weight: 300;
}

.game-mode-desc {
    font-size: 0.9375rem;
    opacity: 0.95;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.desc-icon {
    font-size: 1.125rem;
}

.game-mode-footer {
    font-size: 0.8125rem;
    opacity: 0.8;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Back Button */
.game-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--background);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.game-back-button:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Game Lobby */
/* ===== LOBBY / WAITING SCREEN ===== */
.game-lobby {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.game-lobby::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lobby-animation {
    position: relative;
    margin-bottom: 2rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searching-pulse {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.lobby-content {
    position: relative;
    z-index: 10;
}

.lobby-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.searching-text {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dots {
    display: inline-flex;
    gap: 4px;
}

.dot {
    animation: blink 1.4s infinite;
    opacity: 0;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.lobby-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.info-icon {
    font-size: 1.25rem;
}

.info-text {
    color: rgba(255, 255, 255, 0.95);
}

.room-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.prize-highlight {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lobby-tip {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tip-icon {
    font-size: 1.125rem;
}

.cancel-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cancel-icon {
    font-size: 1.25rem;
}

/* ===== MATCH FOUND SCREEN ===== */
.game-lobby.match-found {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.match-found-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.success-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    animation: checkmark-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
}

@keyframes checkmark-pop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.lobby-title.success {
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 2rem;
}

.player-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-badge.you {
    border-color: rgba(255, 215, 0, 0.5);
}

.player-icon {
    font-size: 2rem;
}

.player-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.prize-showcase {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: trophy-bounce 0.6s ease-out;
}

@keyframes trophy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.prize-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 4px;
}

.prize-subtext {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 600;
}

.starting-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Game Countdown */
.game-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.countdown-number {
    font-size: 120px;
    font-weight: bold;
    color: #667eea;
    animation: countdownPulse 0.5s ease;
    text-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.countdown-go {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes countdownPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Game Screen */
.game-screen {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Game Info Header with Pot */
.game-info-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin-bottom: 1rem;
}

.game-stat-card {
    background: var(--surface);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.game-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.pot-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    grid-column: 2;
}

.game-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.pot-card .game-stat-label {
    color: #92400e;
}

.game-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1;
}

.pot-card .game-stat-value {
    color: #d97706;
    font-size: 1.75rem;
}

.game-stat-icon {
    width: 14px;
    height: 14px;
}

.game-header {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.round-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    flex: 1;
}

.round-number {
    color: var(--primary);
}

/* Timer Display */
.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--surface);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-left: auto;
}

.timer-display.timer-urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.timer-display.timer-urgent .timer-icon {
    stroke: #dc2626;
    animation: gentle-pulse 0.8s ease-in-out infinite;
}

.timer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
    transition: stroke 0.3s ease;
}

#timer-value {
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes pulse-urgent {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
    }
}

.scores-display {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.your-score {
    color: #0ea5e9;
}

.opponent-score {
    color: #64748b;
}

.game-board {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

/* Card Display */
.card-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.card {
    width: 140px;
    height: 200px;
    background: white;
    border: 3px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 3rem;
    font-weight: bold;
    position: relative;
}

.card.hearts, .card.diamonds {
    color: #dc2626;
}

.card.clubs, .card.spades {
    color: #1f2937;
}

.card-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-suit {
    font-size: 3rem;
}

.card-comparison {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.arrow {
    font-size: 2rem;
    color: var(--text-secondary);
}

/* Game Message */
.game-message {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    min-height: 40px;
}

/* Choice Buttons */
.choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.choice-button {
    flex: 1;
    max-width: 200px;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.higher-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.higher-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.lower-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.lower-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.choice-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Round Result */
.round-result {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.round-result.win {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.round-result.lose {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

.round-result.tie {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 2px solid var(--warning);
}

.choices-display {
    margin-top: 1rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Game Result */
.game-result {
    text-align: center;
    padding: 3rem 2rem;
}

.game-result h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.game-result.victory h1 {
    color: var(--success);
}

.game-result.defeat h1 {
    color: var(--error);
}

.result-details {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.result-details p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.prize {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: var(--success) !important;
    margin-top: 1rem !important;
}

.game-result button {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-result .primary-button {
    background: var(--primary);
    color: white;
}

.game-result .secondary-button {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.game-result button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        padding: 0;
    }

    .game-menu-header {
        padding: 16px;
    }

    .game-menu-header h2 {
        font-size: 1.25rem;
    }

    .game-menu-subtitle {
        font-size: 0.8125rem;
    }

    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-label {
        font-size: 0.6875rem;
        margin-bottom: 6px;
    }

    .stat-icon {
        width: 12px;
        height: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-subtext {
        font-size: 0.6875rem;
    }

    .game-mode-button {
        padding: 18px;
    }

    .game-mode-icon {
        font-size: 1.75rem;
    }

    .game-mode-title {
        font-size: 1.25rem;
    }

    .game-mode-bet-info {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .bet-amount, .win-amount {
        text-align: center;
    }

    .bet-divider {
        transform: rotate(90deg);
    }

    .bet-amount .value, .win-amount .value {
        font-size: 1rem;
    }

    .game-mode-desc {
        font-size: 0.8125rem;
    }

    .game-mode-footer {
        font-size: 0.75rem;
    }

    /* Lobby Mobile */
    .game-lobby {
        padding: 2rem 1.5rem;
    }

    .lobby-animation {
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .lobby-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-item {
        padding: 10px 16px;
        font-size: 0.9375rem;
    }

    .lobby-tip {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }

    /* Match Found Mobile */
    .match-found-animation {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .success-checkmark {
        font-size: 3.5rem;
    }

    .vs-container {
        gap: 16px;
    }

    .player-badge {
        padding: 14px 20px;
    }

    .player-icon {
        font-size: 1.75rem;
    }

    .vs-text {
        font-size: 1.25rem;
    }

    .prize-showcase {
        padding: 20px;
    }

    .prize-icon {
        font-size: 2.5rem;
    }

    .prize-amount {
        font-size: 1.75rem;
    }

    .pvp-title {
        font-size: 1.125rem;
    }

    .pvp-subtitle {
        font-size: 0.8125rem;
    }

    .pvp-icon {
        padding: 0.875rem;
    }

    .pvp-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Game Screen Mobile */
    .game-info-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pot-card {
        grid-column: 1;
        order: -1;
    }

    .game-stat-card {
        padding: 12px 14px;
    }

    .game-stat-label {
        font-size: 0.6875rem;
        margin-bottom: 4px;
    }

    .game-stat-value {
        font-size: 1.25rem;
    }

    .pot-card .game-stat-value {
        font-size: 1.5rem;
    }

    .game-stat-icon {
        width: 12px;
        height: 12px;
    }
    
    .card {
        width: 100px;
        height: 150px;
    }
    
    .card-value {
        font-size: 2rem;
    }
    
    .card-suit {
        font-size: 2.5rem;
    }
    
    .choice-buttons {
        flex-direction: column;
    }
    
    .choice-button {
        max-width: 100%;
    }
    
    .countdown-number {
        font-size: 80px;
    }
    
    .game-result h1 {
        font-size: 2rem;
    }
}

