/* ===== RESET & VARIABLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --item-height: 110px;
    --primary-color: #0a0a1a;
    --secondary-color: #1a1a3a;
    --accent-color: #2196F3;
    --gold-color: #FFD700;
    --text-color: #ffffff;
    --win-color: #4CAF50;
    --lose-color: #f44336;
    --animation-speed: 0.3s;
    --neon-blue: #00d4ff;
    --neon-purple: #b347d9;
    --neon-pink: #ff0080;
}

/* ===== PARTICULES FLOTTANTES ANIMÉES ===== */
@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    animation: float-particle 15s linear infinite;
}

.particle:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 15%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    left: 35%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.particle:nth-child(5) {
    left: 45%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.particle:nth-child(6) {
    left: 55%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.particle:nth-child(7) {
    left: 65%;
    animation-delay: 2.5s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    left: 75%;
    animation-delay: 0.5s;
    animation-duration: 14s;
}

.particle:nth-child(9) {
    left: 85%;
    animation-delay: 3.5s;
    animation-duration: 12s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: 1.5s;
    animation-duration: 16s;
}

/* ===== EFFET NEON GLOW ===== */
@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px var(--neon-blue),
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 40px var(--neon-blue);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes neon-pulse {

    0%,
    100% {
        box-shadow:
            0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            inset 0 0 10px rgba(33, 150, 243, 0.1);
    }

    50% {
        box-shadow:
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 40px var(--accent-color),
            0 0 60px var(--accent-color),
            inset 0 0 20px rgba(33, 150, 243, 0.2);
    }
}

@keyframes rainbow-glow {
    0% {
        filter: drop-shadow(0 0 15px #ff0000);
    }

    14% {
        filter: drop-shadow(0 0 15px #ff7f00);
    }

    28% {
        filter: drop-shadow(0 0 15px #ffff00);
    }

    42% {
        filter: drop-shadow(0 0 15px #00ff00);
    }

    57% {
        filter: drop-shadow(0 0 15px #0000ff);
    }

    71% {
        filter: drop-shadow(0 0 15px #4b0082);
    }

    85% {
        filter: drop-shadow(0 0 15px #9400d3);
    }

    100% {
        filter: drop-shadow(0 0 15px #ff0000);
    }
}

/* ===== EFFET ÉTOILES SCINTILLANTES ===== */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ===== ANIMATIONS DES SYMBOLES AMÉLIORÉES ===== */
.symbol-animate {
    transition: all var(--animation-speed) ease;
    animation: symbol-levitate 3s ease-in-out infinite;
}

.symbol-animate:hover {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) brightness(1.3);
    animation: symbol-excited 0.5s ease-in-out infinite;
}

@keyframes symbol-levitate {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 5px rgba(33, 150, 243, 0.3));
    }

    25% {
        transform: translateY(-4px) scale(1.02);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
        filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.6));
    }

    75% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes symbol-excited {

    0%,
    100% {
        transform: scale(1.2) rotate(8deg);
    }

    50% {
        transform: scale(1.25) rotate(-8deg);
    }
}

/* Animation de rebond pour les symboles du slot */
@keyframes symbol-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-10px);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-8px);
    }

    80% {
        transform: translateY(-3px);
    }
}

/* Effet de brillance traversante sur les symboles */
.symbol-img {
    position: relative;
    overflow: hidden;
}

.symbol-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: symbol-shine-sweep 3s infinite;
}

@keyframes symbol-shine-sweep {
    0% {
        left: -100%;
    }

    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* Animation de pulsation énergétique pour les symboles VIP */
.win-item:nth-child(-n+4) .symbol-animate {
    animation: vip-energy-pulse 2s ease-in-out infinite;
}

@keyframes vip-energy-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.3)) brightness(1.15);
        transform: scale(1.05);
    }
}

/* Animation spéciale pour Jackpot */
.win-item:first-child .symbol-animate {
    animation: jackpot-rainbow 3s linear infinite, vip-energy-pulse 2s ease-in-out infinite;
}

@keyframes jackpot-rainbow {
    0% {
        filter: drop-shadow(0 0 20px #ff0000);
    }

    16% {
        filter: drop-shadow(0 0 20px #ff7f00);
    }

    33% {
        filter: drop-shadow(0 0 20px #ffff00);
    }

    50% {
        filter: drop-shadow(0 0 20px #00ff00);
    }

    66% {
        filter: drop-shadow(0 0 20px #0000ff);
    }

    83% {
        filter: drop-shadow(0 0 20px #9400d3);
    }

    100% {
        filter: drop-shadow(0 0 20px #ff0000);
    }
}

/* ===== NOTIFICATION SYSTÈME ===== */
.game-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: notification-slide 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.game-notification button:hover {
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.notification-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: white;
}

@keyframes notification-slide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== BASE STYLES ÉLARGIS ===== */
body {
    background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 20%);
    z-index: -1;
}

/* ===== CONTAINER PRINCIPAL ÉLARGI ===== */
#container {
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.95), rgba(15, 15, 35, 0.95));
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 4px solid var(--accent-color);
    max-width: 800px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    margin: 20px auto;
}

/* ===== BOUTON DE RETOUR EN HAUT ===== */
.top-return-link {
    display: block;
    text-align: center;
    color: #4FC3F7;
    background: rgba(33, 150, 243, 0.2);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 25px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.top-return-link:hover {
    background: rgba(33, 150, 243, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* ===== INDICATEUR D'ÉTAT DU JEU ===== */
.game-status-indicator {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 100;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.status-offline {
    background-color: #f44336;
    box-shadow: 0 0 10px #f44336;
    animation: pulse 2s infinite;
}

/* ===== BOUTON DE CONTRÔLE DU SON ===== */
.sound-toggle-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle-btn:hover {
    background: rgba(33, 150, 243, 0.5);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* ===== OVERLAY JEU FERMÉ ===== */
.game-closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.closed-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 35, 0.95));
    border-radius: 25px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.closed-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.closed-content h2 {
    color: #f44336;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.closed-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* ===== STATUTS UTILISATEUR ADDITIONNELS ===== */
.status-text.closed {
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-text.limit-reached {
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

/* ===== EN-TÊTE DU JEU ===== */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.game-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.6));
}

.game-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--gold-color);
    text-shadow:
        0 0 25px rgba(255, 215, 0, 0.8),
        0 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.game-subtitle {
    font-size: 1.9rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(33, 150, 243, 0.6);
}

.game-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    padding: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* ===== MESSAGE D'INFORMATION ===== */
.game-notice {
    background: linear-gradient(to right, rgba(33, 150, 243, 0.2), rgba(255, 215, 0, 0.1));
    border-radius: 15px;
    padding: 20px;
    margin: 25px auto;
    max-width: 700px;
    text-align: center;
    border: 2px solid rgba(33, 150, 243, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-notice p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.game-notice strong {
    color: #FFD700;
    font-weight: bold;
}

/* ===== SECTION UTILISATEUR ===== */
.user-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-input-group {
    margin-bottom: 10px;
}

.instagram-input-group label {
    display: block;
    color: var(--gold-color);
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

#instagramId {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-blue);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

#instagramId:focus {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    border-color: #fff;
}

#instagramId:disabled {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 243, 255, 0.2);
    opacity: 0.7;
    cursor: not-allowed;
}

.connect-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.connect-btn:active {
    transform: translateY(0);
}

/* ===== BOUTON VALIDAR NOME ===== */
.validate-name-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    letter-spacing: 1px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validate-name-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    background: linear-gradient(135deg, #00ffff, #b347d9);
}

.validate-name-btn:active:not(:disabled) {
    transform: translateY(0);
}

.validate-name-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.validate-name-btn.validated {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    cursor: default;
}

.user-status.validated {
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.4) !important;
}

.input-hint {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.user-status {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 1.1rem;
}

.status-text {
    color: #ff6b6b;
    transition: color 0.3s;
}

.status-text.connected {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* ===== TITRE CPA POWER SLOT AVEC EFFETS ===== */
.slot-title-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 10px;
    /* Ajouté pour éviter le débordement */
}

.slot-title-container {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, #0a0a1a, var(--accent-color));
    border-radius: 25px;
    box-shadow:
        0 0 30px rgba(33, 150, 243, 0.7),
        0 8px 20px rgba(0, 0, 0, 0.4);
    animation: pulse-border 2.5s ease-in-out infinite;
    border: 3px solid rgba(255, 215, 0, 0.6);
    position: relative;
    overflow: hidden;
    max-width: 95%;
    /* Limite la largeur maximale */
    box-sizing: border-box;
    /* Inclut le padding dans la largeur */
    margin: 0 auto;
    /* Centre le bloc */
}

.slot-title-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine-title 4s infinite linear;
}

.slot-title-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.slot-title-cpa {
    color: #4FC3F7;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    animation: glow-blue 2s infinite alternate;
}

.slot-title-slot {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glow-gold 2s infinite alternate;
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(33, 150, 243, 0.7),
            0 8px 20px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(33, 150, 243, 0.9),
            0 12px 25px rgba(0, 0, 0, 0.5);
    }
}

@keyframes shine-title {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes glow-blue {
    0% {
        text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    }

    100% {
        text-shadow: 0 0 25px rgba(79, 195, 247, 1), 0 0 35px rgba(79, 195, 247, 0.6);
    }
}

@keyframes glow-gold {
    0% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }

    100% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 35px rgba(255, 215, 0, 0.6);
    }
}

/* ===== SEÇÃO DE GAINS ACCUMULÉS COMPACTA - CENTRÉE ===== */
.compact-wins-section {
    background: linear-gradient(to right, rgba(13, 27, 42, 0.6), rgba(33, 150, 243, 0.4));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.compact-wins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 18px;
    align-items: stretch;
    justify-items: stretch;
}

.compact-wins-item {
    background: rgba(26, 26, 46, 0.9);
    padding: 18px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(79, 195, 247, 0.4);
    transition: all 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.compact-wins-item:hover {
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 1);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.compact-wins-label {
    font-size: 0.9rem;
    color: #4FC3F7;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compact-wins-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    word-break: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
}

.compact-wins-finalize {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

.compact-finalize-btn {
    background: linear-gradient(to bottom, #4CAF50, #388E3C);
    color: white;
    border: none;
    padding: 16px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.compact-finalize-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

.compact-finalize-btn:hover {
    background: linear-gradient(to bottom, #388E3C, #2E7D32);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6);
}

/* ===== MACHINE À SOUS - 3 COLONNES SIMPLIFIÉE ===== */
.slot-container {
    margin: 30px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    width: 100%;
}

.window-border {
    padding: 15px;
    background: linear-gradient(45deg, rgba(42, 42, 80, 0.9), rgba(30, 30, 60, 0.9));
    border-radius: 25px;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.7),
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(33, 150, 243, 0.5);
    border: 4px solid var(--accent-color);
    display: inline-block;
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
}

.window {
    position: relative;
    overflow: hidden;
    height: calc(3 * var(--item-height));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(10, 10, 26, 0.8), rgba(26, 26, 58, 0.8));
}

.columns-container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    padding: 0 5px;
}

.window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.9), transparent);
    z-index: 10;
}

.window::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(33, 150, 243, 0.9));
    z-index: 10;
}

/* ===== LIGNES DE GAIN ===== */
/* Ligne centrale */
.winning-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: var(--item-height);
    background: linear-gradient(to right,
            transparent,
            rgba(255, 215, 0, 0.3),
            rgba(255, 215, 0, 0.5),
            rgba(255, 215, 0, 0.3),
            transparent);
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.winning-line.active {
    opacity: 1;
    animation: win-line-pulse 1s infinite alternate;
}

@keyframes win-line-pulse {
    0% {
        background: linear-gradient(to right,
                transparent,
                rgba(255, 215, 0, 0.3),
                rgba(255, 215, 0, 0.5),
                rgba(255, 215, 0, 0.3),
                transparent);
    }

    100% {
        background: linear-gradient(to right,
                transparent,
                rgba(255, 215, 0, 0.5),
                rgba(255, 215, 0, 0.8),
                rgba(255, 215, 0, 0.5),
                transparent);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* Lignes diagonales - CORRECTION DES ROTATIONS */
.diagonal-line {
    position: absolute;
    width: 141.4%;
    /* sqrt(2) * 100% pour couvrir la diagonale */
    height: 80px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 5;
}

.diagonal-line.diagonal-left {
    /* Diagonale de haut-gauche vers bas-droite : rotation positive */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(26deg);
    background: linear-gradient(to right,
            transparent,
            rgba(79, 195, 247, 0.2),
            rgba(79, 195, 247, 0.35),
            rgba(79, 195, 247, 0.2),
            transparent);
}

.diagonal-line.diagonal-right {
    /* Diagonale de haut-droite vers bas-gauche : rotation négative */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-26deg);
    background: linear-gradient(to right,
            transparent,
            rgba(156, 39, 176, 0.2),
            rgba(156, 39, 176, 0.35),
            rgba(156, 39, 176, 0.2),
            transparent);
}

.diagonal-line.active {
    opacity: 1;
    animation: diagonal-pulse 1.5s infinite alternate;
}

@keyframes diagonal-pulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* ===== COLONNES SIMPLIFIÉES - 3 SEULEMENT ===== */
.outer-col {
    overflow-y: hidden;
    flex: 1;
    max-width: 230px;
    min-width: 150px;
    background: linear-gradient(to bottom, #0a0a1a, #1a1a3a, #0a0a1a);
    height: calc(var(--item-height) * 3);
    border-radius: 12px;
    position: relative;
    border: 2px solid rgba(33, 150, 243, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.col {
    padding: 0 10px;
    will-change: transform;
    transform: translateY(calc(-100% + var(--item-height) * 3));
    width: 100%;
}

.icon {
    width: 100%;
    height: var(--item-height);
    display: block;
    position: relative;
}

.col img {
    width: 100%;
    height: var(--item-height);
    object-fit: contain;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.5));
    display: block;
    margin: 0 auto;
    transition: transform 0.3s, filter 0.3s;
}

/* Effet sur les symboles gagnants - LIGNE CENTRALE - SPECTACULAIRE */
.winning-symbol {
    animation: symbol-win-explosive 0.6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px #FFD700) drop-shadow(0 0 50px rgba(255, 215, 0, 0.8)) brightness(1.3);
    transform: scale(1.15);
    z-index: 100 !important;
}

@keyframes symbol-win-explosive {

    0%,
    100% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px #FFD700) drop-shadow(0 0 50px rgba(255, 215, 0, 0.8)) brightness(1.3);
    }

    25% {
        transform: scale(1.25) rotate(5deg);
        filter: drop-shadow(0 0 40px #FFD700) drop-shadow(0 0 60px rgba(255, 215, 0, 1)) drop-shadow(0 0 80px rgba(255, 215, 0, 0.6)) brightness(1.5);
    }

    50% {
        transform: scale(1.2) rotate(-3deg);
        filter: drop-shadow(0 0 35px #FFD700) drop-shadow(0 0 55px rgba(255, 215, 0, 0.9)) brightness(1.4);
    }

    75% {
        transform: scale(1.3) rotate(3deg);
        filter: drop-shadow(0 0 45px #FFD700) drop-shadow(0 0 70px rgba(255, 215, 0, 1)) drop-shadow(0 0 90px rgba(255, 215, 0, 0.7)) brightness(1.5);
    }
}

/* Effet sur les symboles gagnants - DIAGONALES - AMÉLIORÉ */
.winning-diagonal {
    animation: symbol-win-diagonal-glow 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #4FC3F7) drop-shadow(0 0 40px rgba(79, 195, 247, 0.6)) brightness(1.2);
    transform: scale(1.1);
    z-index: 100 !important;
}

@keyframes symbol-win-diagonal-glow {

    0%,
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #4FC3F7) drop-shadow(0 0 40px rgba(79, 195, 247, 0.6)) brightness(1.2);
    }

    50% {
        transform: scale(1.18) rotate(2deg);
        filter: drop-shadow(0 0 30px #4FC3F7) drop-shadow(0 0 50px rgba(79, 195, 247, 0.8)) drop-shadow(0 0 70px rgba(79, 195, 247, 0.5)) brightness(1.3);
    }
}

/* Animation confetti pour les grosses victoires */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: 0;
    animation: confetti-fall 4s linear forwards;
    z-index: 9999;
    pointer-events: none;
}

.confetti:nth-child(odd) {
    background: var(--gold-color);
}

.confetti:nth-child(even) {
    background: var(--accent-color);
}

/* Animation explosion pour JACKPOT */
.jackpot-explosion {
    animation: jackpot-mega-win 0.5s ease-in-out infinite;
}

@keyframes jackpot-mega-win {

    0%,
    100% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 40px #ff0000) drop-shadow(0 0 60px #ff7f00) drop-shadow(0 0 80px #ffff00);
    }

    25% {
        transform: scale(1.35) rotate(10deg);
        filter: drop-shadow(0 0 50px #00ff00) drop-shadow(0 0 70px #00ffff) drop-shadow(0 0 90px #0000ff);
    }

    50% {
        transform: scale(1.25) rotate(-8deg);
        filter: drop-shadow(0 0 45px #4b0082) drop-shadow(0 0 65px #9400d3) drop-shadow(0 0 85px #ff0000);
    }

    75% {
        transform: scale(1.4) rotate(5deg);
        filter: drop-shadow(0 0 55px #ff7f00) drop-shadow(0 0 75px #ffff00) drop-shadow(0 0 95px #00ff00);
    }
}

/* ===== ANIMATION DE SPIN ===== */
#container.spinning .columns-container .outer-col:nth-child(1) .col {
    animation-delay: 0.01s;
}

#container.spinning .columns-container .outer-col:nth-child(2) .col {
    animation-delay: 0.02s;
}

#container.spinning .columns-container .outer-col:nth-child(3) .col {
    animation-delay: 0.03s;
}

#container.spinning .col {
    animation-name: scroll;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.65, .97, .72, 1);
    animation-fill-mode: forwards;
}

@keyframes scroll {
    to {
        transform: translateY(0);
    }
}

/* ===== BOUTONS DE CONTRÔLE AVEC EFFET DE REFLET ===== */
.controls {
    text-align: center;
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.start-button {
    background: linear-gradient(135deg, #00d4ff, #2196F3, #0d47a1);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 28px 80px;
    font-size: 1.9rem;
    font-weight: 900;
    border-radius: 70px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow:
        0 12px 35px rgba(33, 150, 243, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(33, 150, 243, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    animation: button-gradient-flow 3s ease infinite, button-pulse 2s ease-in-out infinite;
}

@keyframes button-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes button-pulse {

    0%,
    100% {
        box-shadow:
            0 12px 35px rgba(33, 150, 243, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 30px rgba(33, 150, 243, 0.4),
            0 0 60px rgba(0, 212, 255, 0.2);
    }

    50% {
        box-shadow:
            0 15px 40px rgba(33, 150, 243, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 50px rgba(33, 150, 243, 0.6),
            0 0 80px rgba(0, 212, 255, 0.4);
    }
}

.start-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-20deg);
    animation: button-shine 2.5s infinite;
}

@keyframes button-shine {
    0% {
        left: -100%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.start-button:hover:not(:disabled) {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(33, 150, 243, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 60px rgba(33, 150, 243, 0.7),
        0 0 100px rgba(0, 212, 255, 0.5);
    animation: button-gradient-flow 1.5s ease infinite;
}

.start-button:active:not(:disabled) {
    transform: translateY(2px) scale(0.98);
}

.start-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
    background: linear-gradient(135deg, #666, #444);
}

/* Animation pendant le spin */
.start-button.spinning {
    animation: button-spinning 0.5s ease-in-out infinite;
    background: linear-gradient(135deg, #ff9800, #ff5722, #e91e63);
    background-size: 200% 200%;
}

@keyframes button-spinning {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }
}

/* ===== WINS HEADER IMAGE ===== */
.wins-header-image {
    text-align: center;
    margin: 35px 0 25px 0;
}

.wins-header-image img {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.6));
}

/* ===== TABLEAU DES GAINS ===== */
.wins-table-section {
    margin-top: 45px;
    background: rgba(15, 52, 96, 0.25);
    border-radius: 25px;
    padding: 30px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wins-title {
    text-align: center;
    color: var(--gold-color);
    font-size: 2rem;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wins-table.single-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.wins-table.single-column .win-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(42, 42, 70, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 15px;
    padding: 18px 25px;
    border-left: 6px solid var(--gold-color);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.wins-table.single-column .win-item:hover {
    transform: translateX(8px);
    background: linear-gradient(to right, rgba(42, 42, 70, 1), rgba(26, 26, 46, 1));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wins-table.single-column .win-symbol {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.wins-table.single-column .win-symbol img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.4));
}

.wins-table.single-column .win-symbol span {
    font-weight: bold;
    font-size: 1.3rem;
    min-width: 120px;
    color: white;
}

.wins-table.single-column .win-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-color);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    text-align: right;
    flex: 1;
}

.wins-table.single-column .win-vip-value {
    color: #4CAF50;
    font-size: 1.1rem;
    margin-top: 5px;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(33, 150, 243, 0.3);
}

.return-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 12px 30px;
    background: rgba(33, 150, 243, 0.15);
    border-radius: 30px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.return-link:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===== POPUP DE RÉSULTAT ===== */
.result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(5px);
}

.result-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    border: 5px solid;
    transform: scale(0.9);
    transition: transform 0.4s;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.result-popup.active .popup-content {
    transform: scale(1);
}

.popup-content.win {
    border-color: #4CAF50;
    box-shadow: 0 0 40px rgba(76, 175, 80, 0.5);
}

.popup-content.lose {
    border-color: #f44336;
    box-shadow: 0 0 40px rgba(244, 67, 54, 0.5);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.popup-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.popup-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.popup-message {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.popup-close {
    background: linear-gradient(to bottom, var(--accent-color), #0d47a1);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.popup-close::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

.popup-close:hover {
    background: linear-gradient(to bottom, #0d47a1, #0a2d6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

/* ===== RESPONSIVE MOBILE - VERSION ÉLARGIE & ROBUSTE ===== */
@media (max-width: 900px) {
    #container {
        max-width: 95%;
        padding: 15px;
    }

    .game-title {
        font-size: 2.2rem;
    }

    .slot-container {
        transform-origin: top center;
        margin-bottom: 20px;
    }

    .window-border {
        padding: 10px;
    }

    .outer-col {
        width: 130px;
        height: 280px;
    }

    .icon {
        height: 93.33px;
    }

    .winning-line {
        height: 93.33px;
        top: 93.33px;
    }

    .start-button {
        padding: 20px 40px;
        font-size: 1.5rem;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    #container {
        margin: 5px auto;
        padding: 10px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .game-logo {
        max-width: 180px;
        margin-bottom: 10px;
    }

    .game-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .game-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Slot machine responsive - adapté pour mobile */
    .slot-container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        margin: 15px 0;
    }

    .window-border {
        padding: 8px;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
    }

    .columns-container {
        gap: 2px;
        padding: 0 2px;
    }

    .outer-col {
        flex: 1;
        max-width: none !important;
        min-width: auto !important;
        height: auto;
    }

    :root {
        --item-height: 85px;
    }

    .icon {
        height: 85px;
    }

    .icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .winning-line {
        height: 85px;
        top: 50%;
        transform: translateY(-50%);
    }

    .user-section {
        padding: 12px;
        margin-top: 15px;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    #instagramId {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }

    .validate-name-btn {
        width: 100%;
        padding: 14px 10px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .compact-wins-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .compact-wins-item {
        min-height: 70px;
        padding: 12px;
    }

    .wins-table-section {
        padding: 12px;
        margin-top: 20px;
    }

    .wins-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .wins-table.single-column .win-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px 15px;
    }

    .wins-table.single-column .win-symbol {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .wins-table.single-column .win-symbol img {
        width: 50px;
        height: 50px;
    }

    .wins-table.single-column .win-value {
        text-align: center;
        font-size: 1.3rem;
    }

    .start-button {
        padding: 16px 30px;
        font-size: 1.2rem;
        min-width: 90%;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    :root {
        --item-height: 75px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .icon {
        height: 75px;
    }

    .winning-line {
        height: 75px;
    }

    .window-border {
        padding: 5px;
    }

    .start-button {
        font-size: 1rem;
        padding: 14px 20px;
        min-width: 85%;
        max-width: 250px;
    }

    .slot-container {
        margin: 10px 0;
    }

    .compact-wins-value {
        font-size: 1rem;
    }

    .game-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --item-height: 65px;
    }

    #container {
        padding: 8px;
        margin: 0;
    }

    .game-title {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }

    .game-logo {
        max-width: 120px;
        margin-bottom: 5px;
    }

    .game-subtitle {
        font-size: 0.9rem;
    }

    .game-description {
        font-size: 0.8rem;
        padding: 10px;
        line-height: 1.4;
    }

    .icon {
        height: 65px;
    }

    .winning-line {
        height: 65px;
    }

    .window-border {
        padding: 3px;
    }

    .columns-container {
        gap: 1px;
        padding: 0 1px;
    }

    .outer-col {
        border-width: 1px;
        border-radius: 8px;
    }

    .start-button {
        font-size: 0.9rem;
        padding: 12px 15px;
        min-width: 80%;
        max-width: 200px;
        letter-spacing: 0.5px;
    }

    .user-section {
        padding: 8px;
    }

    #instagramId {
        font-size: 0.9rem;
        padding: 10px;
    }

    .validate-name-btn {
        font-size: 0.75rem;
        padding: 10px 8px;
        min-height: 40px;
    }

    .input-hint {
        font-size: 0.75rem;
    }

    .compact-wins-item {
        min-height: 60px;
        padding: 8px;
        font-size: 0.85rem;
    }

    .compact-wins-label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .compact-wins-value {
        font-size: 0.9rem;
    }

    .wins-title {
        font-size: 1.2rem;
    }

    .wins-table.single-column {
        max-height: 300px;
        padding: 8px;
    }

    .wins-table.single-column .win-item {
        padding: 8px 10px;
    }

    .wins-table.single-column .win-symbol img {
        width: 40px;
        height: 40px;
    }

    .wins-table.single-column .win-symbol span {
        font-size: 0.95rem;
        min-width: 80px;
    }

    .wins-table.single-column .win-value {
        font-size: 1.1rem;
    }

    .popup-content {
        padding: 15px;
        width: 95%;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 1.1rem;
    }

    .popup-icon {
        font-size: 3rem;
    }

    .footer {
        margin-top: 20px;
        padding-top: 15px;
    }

    .top-return-link {
        font-size: 0.85rem;
        padding: 8px 15px;
        margin-bottom: 15px;
    }
}