/* ============================================
   BINGO MÍSTICO - Estilos Premium
   ============================================ */

/* Variables CSS */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --gold: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;

    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset y Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
        url('images/bg-mystic.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Partículas de fondo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px currentColor;
}

.particle:nth-child(3n) {
    background: var(--gold);
    width: 6px;
    height: 6px;
}

.particle:nth-child(5n) {
    background: var(--accent);
    animation-duration: 20s;
}

.particle:nth-child(7n) {
    background: var(--secondary);
    width: 3px;
    height: 3px;
    animation-duration: 12s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateY(80vh) rotate(90deg) scale(1);
    }

    50% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* Rune glow effect */
.rune-glow {
    position: fixed;
    font-size: 3rem;
    color: rgba(251, 191, 36, 0.1);
    pointer-events: none;
    animation: rune-pulse 5s infinite ease-in-out;
    z-index: 0;
}

@keyframes rune-pulse {

    0%,
    100% {
        opacity: 0.05;
        transform: scale(1);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.glass-card-mini {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 16px;
}

/* Pantallas */
.screen {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* ============================================
   PANTALLA DE INICIO
   ============================================ */

.start-screen {
    gap: 30px;
}

.logo-container {
    position: relative;
    text-align: center;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    font-size: 4rem;
    animation: float-icon 3s infinite ease-in-out;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
    letter-spacing: 8px;
}

.logo-subtext {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 12px;
    margin-top: -5px;
}

/* Menú Container */
.menu-container {
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.menu-container h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
}

.game-modes {
    margin-bottom: 25px;
}

.mode-buttons,
.speed-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mode-btn,
.speed-btn {
    flex: 1;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover,
.speed-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mode-btn.active,
.speed-btn.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

.mode-icon {
    font-size: 1.5rem;
}

.mode-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.speed-selector {
    margin-bottom: 25px;
}

.speed-btn {
    padding: 12px;
    font-size: 0.85rem;
}

/* Botón de Jugar */
.play-btn {
    position: relative;
    width: 100%;
    padding: 18px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.play-btn:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* High Score */
.high-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trophy {
    font-size: 1.2rem;
}

.high-score strong {
    color: var(--gold);
    font-family: var(--font-display);
}

/* ============================================
   PANTALLA DEL JUEGO
   ============================================ */

.game-screen {
    justify-content: flex-start;
    padding: 15px;
    gap: 15px;
    overflow-y: auto;
}

/* Header del Juego */
.game-header {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.score-display,
.balls-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-label,
.balls-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.balls-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.balls-total {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Área del Bombo */
.drum-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.current-ball-container {
    position: relative;
}

.ball-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: ball-pulse 1.5s infinite ease-in-out;
}

@keyframes ball-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.current-ball {
    position: relative;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f0f0f0 30%, #d0d0d0 70%, #a0a0a0 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset -8px -8px 20px rgba(0, 0, 0, 0.25),
        inset 8px 8px 20px rgba(255, 255, 255, 0.9),
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.5);
    animation: ball-bounce 0.5s ease-out;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.current-ball::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 15px;
    width: 25px;
    height: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(3px);
}

@keyframes ball-bounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.3) rotate(0deg);
    }

    70% {
        transform: scale(0.9) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.current-ball.new-ball {
    animation: ball-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ball-letter {
    font-family: 'Segoe UI Symbol', 'Noto Sans Runic', 'DejaVu Sans', var(--font-display), sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ball-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Bolas recientes */
.recent-balls {
    display: flex;
    gap: 10px;
}

.recent-ball {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e0e0 50%, #b0b0b0 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    box-shadow:
        inset -3px -3px 8px rgba(0, 0, 0, 0.2),
        inset 3px 3px 8px rgba(255, 255, 255, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: ball-pop 0.4s ease-out;
}

@keyframes ball-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.recent-ball:first-child {
    opacity: 1;
    transform: scale(1.1);
    box-shadow:
        inset -3px -3px 8px rgba(0, 0, 0, 0.2),
        inset 3px 3px 8px rgba(255, 255, 255, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(139, 92, 246, 0.5);
}

.recent-ball .mini-letter {
    font-family: 'Segoe UI Symbol', 'Noto Sans Runic', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.recent-ball .mini-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

/* Cartón de Bingo */
.bingo-card {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    overflow: hidden;
}

.card-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.header-letter {
    text-align: center;
    font-family: 'Segoe UI Symbol', 'Noto Sans Runic', var(--font-display), sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
}

.header-letter:nth-child(1) {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.header-letter:nth-child(2) {
    color: #f97316;
    background: rgba(249, 115, 22, 0.2);
}

.header-letter:nth-child(3) {
    color: #eab308;
    background: rgba(234, 179, 8, 0.2);
}

.header-letter:nth-child(4) {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.header-letter:nth-child(5) {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.cell {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cell:hover:not(.called):not(.marked):not(.free) {
    background: var(--bg-card-hover);
}

.cell.called {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
    animation: cell-glow 0.5s ease-out;
}

@keyframes cell-glow {
    0% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
}

.cell.marked {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-color: var(--success);
    color: white;
}

.cell.marked::after {
    content: '✓';
    position: absolute;
    font-size: 1.5rem;
    color: white;
}

.cell.free {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
}

.cell.winning {
    animation: winning-cell 0.5s ease-out infinite alternate;
}

@keyframes winning-cell {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
    }
}

/* Controles del Juego */
.game-controls {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.control-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 10px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.control-btn .btn-icon {
    font-size: 1.5rem;
}

.control-btn .btn-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.draw-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.draw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.auto-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.auto-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.auto-btn.active {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.auto-btn.active .btn-icon::before {
    content: '⏸️';
}

.bingo-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.bingo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bingo-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

.bingo-btn:not(:disabled) {
    animation: bingo-pulse 1s infinite ease-in-out;
}

@keyframes bingo-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(251, 191, 36, 0.8);
    }
}

/* Historial de Bolas */
.balls-history {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin-top: 10px;
}

.balls-history h4 {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    max-height: 100px;
    overflow-y: auto;
}

.history-ball {
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-ball.B {
    color: #ef4444;
}

.history-ball.I {
    color: #f97316;
}

.history-ball.N {
    color: #eab308;
}

.history-ball.G {
    color: #22c55e;
}

.history-ball.O {
    color: #3b82f6;
}

/* Runas místicas */
.history-ball.fehu {
    color: #c0c0c0;
    background: rgba(192, 192, 192, 0.2);
}

.history-ball.uruz {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

.history-ball.ansuz {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.history-ball.raidho {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.2);
}

.history-ball.sowilo {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.2);
}

/* ============================================
   PANTALLA DE VICTORIA
   ============================================ */

.victory-screen {
    background: rgba(0, 0, 0, 0.9);
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    top: -20px;
    animation: confetti-fall 4s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.victory-content {
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: victory-pop 0.5s ease-out;
}

@keyframes victory-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.victory-icon {
    font-size: 5rem;
    margin-bottom: 10px;
    animation: victory-bounce 1s infinite ease-in-out;
}

@keyframes victory-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.victory-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 5px;
}

.victory-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.victory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.new-record {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    animation: record-shine 2s infinite;
}

@keyframes record-shine {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}

.victory-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.victory-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.victory-btn.play-again {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.victory-btn.go-menu {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.victory-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 400px) {
    .logo-text {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .logo-subtext {
        font-size: 1.2rem;
        letter-spacing: 8px;
    }

    .menu-container {
        padding: 20px;
    }

    .mode-btn,
    .speed-btn {
        padding: 12px 8px;
    }

    .bingo-card {
        padding: 10px;
    }

    .header-letter {
        font-size: 1.2rem;
        padding: 6px;
    }

    .cell {
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .current-ball {
        width: 70px;
        height: 70px;
    }

    .ball-number {
        font-size: 1.5rem;
    }

    .control-btn {
        padding: 12px 8px;
    }

    .control-btn .btn-icon {
        font-size: 1.2rem;
    }

    .control-btn .btn-label {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .game-screen {
        padding: 30px;
        gap: 20px;
    }

    .bingo-card {
        max-width: 450px;
        padding: 25px;
    }

    .cell {
        font-size: 1.4rem;
    }

    .header-letter {
        font-size: 2rem;
    }

    .current-ball {
        width: 110px;
        height: 110px;
    }

    .ball-number {
        font-size: 2.5rem;
    }
}

/* Animación de carga */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}