:root {
    --casino-red: #8B0000;
    --casino-red-light: #D20202;
    --casino-green: #01431E;
    --casino-green-light: #016D29;
    --casino-gold: #D4AF37;
    --casino-gold-bright: #F3C620;
    --casino-black: #1A1A1A;
    --casino-white: #F6F4F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(ellipse at center, var(--casino-red-light) 0%, var(--casino-red) 70%, #5a0000 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.container {
    background: linear-gradient(145deg, var(--casino-green), var(--casino-green-light));
    border-radius: 20px;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    border: 5px solid var(--casino-gold);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.6),
        0 0 60px rgba(212, 175, 55, 0.3),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    border-radius: 15px;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--casino-gold);
}
.corner-tl { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.corner-tr { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.corner-br { bottom: 15px; right: 15px; border-left: none; border-top: none; }

h1 {
    text-align: center;
    color: var(--casino-gold);
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 1;
}

.subtitle {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.score {
    text-align: center;
    font-size: 20px;
    color: var(--casino-gold-bright);
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(243, 198, 32, 0.5);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 3px dashed white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chip-red { background: var(--casino-red-light); color: white; }
.chip-gold { background: var(--casino-gold); color: var(--casino-black); }
.chip-black { background: var(--casino-black); color: white; }

.chip.active {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    border-radius: 2px;
}

.progress-line {
    position: absolute;
    top: 17px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--casino-gold), var(--casino-gold-bright));
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.step {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--casino-black);
    border: 3px solid var(--casino-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--casino-white);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
}

.step.active {
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    color: var(--casino-black);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.step.completed {
    background: var(--casino-gold);
    color: var(--casino-black);
}

.step.completed::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.step.completed span { display: none; }

.form-step {
    display: none;
    animation: dealCard 0.5s ease;
    position: relative;
    z-index: 1;
}

.form-step.active { display: block; }

@keyframes dealCard {
    from { opacity: 0; transform: translateY(-30px) rotateX(20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.content-zone {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-prev {
    background: var(--casino-black);
    color: var(--casino-gold);
    border: 2px solid var(--casino-gold);
}

.btn-prev:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.btn-next {
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    color: var(--casino-black);
    border: 2px solid var(--casino-gold-bright);
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.6);
}

/* ========== RÉCAPITULATIF ========== */
.recap-message {
    display: none;
    position: relative;
    z-index: 1;
}

.recap-message.active {
    display: block;
    animation: dealCard 0.8s ease;
}

.recap-title {
    color: var(--casino-gold);
    font-family: 'Cinzel', serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.recap-content {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--casino-gold);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--casino-white);
}

.recap-item:last-child {
    border-bottom: none;
}

.recap-label {
    font-weight: bold;
    color: var(--casino-gold-bright);
}

.recap-value {
    text-align: right;
}

.btn-validate {
    background: linear-gradient(180deg, #00cc00 0%, #009900 50%, #006600 100%);
    color: white;
    border: 3px solid var(--casino-gold);
    padding: 16px 40px;
    font-size: 18px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 0 #004400,
        0 8px 15px rgba(0,0,0,0.4);
    display: block;
    margin: 0 auto;
}

.btn-validate:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 0 #004400,
        0 12px 25px rgba(0,0,0,0.4),
        0 0 40px rgba(0, 200, 0, 0.3);
}

.btn-validate:active {
    transform: translateY(3px);
    box-shadow: 
        0 2px 0 #004400,
        0 4px 10px rgba(0,0,0,0.4);
}

/* ========== MODAL BLACKJACK ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-popup {
    background: linear-gradient(145deg, var(--casino-green), var(--casino-green-light));
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border: 5px solid var(--casino-gold);
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.8),
        0 0 100px rgba(212, 175, 55, 0.4),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    border-radius: 15px;
}

.btn-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--casino-red-light);
    color: white;
    border: 2px solid var(--casino-gold);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-close-x:hover {
    background: var(--casino-red);
    transform: rotate(90deg) scale(1.1);
}

.blackjack-container {
    position: relative;
    z-index: 1;
}

.blackjack-title {
    color: var(--casino-gold);
    font-family: 'Cinzel', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.blackjack-subtitle {
    color: var(--casino-white);
    text-align: center;
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.blackjack-table {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--casino-gold);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.dealer-section,
.player-section {
    margin-bottom: 20px;
}

.player-section {
    margin-bottom: 0;
}

.hand-label {
    color: var(--casino-gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
}

.cards-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 80px;
}

.card {
    width: 60px;
    height: 85px;
    background: white;
    border-radius: 8px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: cardDeal 0.3s ease;
}

@keyframes cardDeal {
    from {
        opacity: 0;
        transform: translateY(-20px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.card.red {
    color: #d32f2f;
}

.card.black {
    color: #000;
}

.card.hidden {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: transparent;
    position: relative;
    overflow: hidden;
}

.card.hidden::before {
    content: '🃏';
    position: absolute;
    font-size: 40px;
    color: var(--casino-gold);
}

.game-message {
    text-align: center;
    font-size: 20px;
    font-family: 'Cinzel', serif;
    color: var(--casino-gold-bright);
    min-height: 30px;
    margin-bottom: 20px;
}

.game-message.win {
    color: #00ff08;
    animation: pulse 0.5s ease;
}

.game-message.lose {
    color: #ea1000;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.blackjack-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-hit,
.btn-stand {
    padding: 14px 35px;
    font-size: 16px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid var(--casino-gold);
}

.btn-hit {
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    color: var(--casino-black);
}

.btn-hit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
}

.btn-stand {
    background: var(--casino-black);
    color: var(--casino-gold);
}

.btn-stand:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.btn-new-game {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: linear-gradient(180deg, #00cc00 0%, #009900 50%, #006600 100%);
    color: white;
    border: 3px solid var(--casino-gold);
    font-size: 16px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #004400;
}

.btn-new-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #004400, 0 0 30px rgba(0, 200, 0, 0.4);
}

.card-decoration {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    pointer-events: none;
}
.card-1 { top: 10%; left: 5%; transform: rotate(-15deg); }
.card-2 { top: 20%; right: 8%; transform: rotate(20deg); }
.card-3 { bottom: 15%; left: 8%; transform: rotate(10deg); }
.card-4 { bottom: 25%; right: 5%; transform: rotate(-10deg); }

/* ========== STYLES SPÉCIFIQUES MACHINE À SOUS ========== */

/* Titre infernal avec effet de feu */
h1.infernal-title {
    font-family: 'Arial Black', sans-serif;
    color: var(--casino-gold);
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px rgba(212, 175, 55, 0.5);
    font-size: 2.5em;
}

.game-info {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--casino-gold);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9em;
    color: var(--casino-gold);
}

.slot-machine {
    background: #000;
    border: 3px solid var(--casino-gold);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.slots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.slot {
    width: 80px;
    height: 100px;
    background: #1a1a1a;
    border: 3px solid var(--casino-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: var(--casino-gold);
    text-shadow: 0 0 10px var(--casino-gold);
    position: relative;
    overflow: hidden;
}

.slot.spinning {
    animation: spin 0.1s infinite;
}

.slot.lucky {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

@keyframes spin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.credits-display {
    background: #000;
    border: 2px solid var(--casino-gold);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 1.2em;
    text-align: center;
    color: var(--casino-white);
}

.credits-number {
    color: #00ff00;
    font-size: 2em;
    text-shadow: 0 0 10px #00ff00;
}

.bet-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5em;
    text-align: center;
    border: 3px solid var(--casino-gold);
    border-radius: 10px;
    background: #000;
    color: var(--casino-gold);
    margin: 10px 0;
    font-family: 'Roboto', sans-serif;
}

.btn {
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    border: none;
    padding: 20px 40px;
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    font-family: 'Cinzel', serif;
    text-transform: none;
    letter-spacing: normal;
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    min-height: 60px;
    margin: 20px 0;
    font-size: 1.2em;
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
}

.success {
    color: #00ff00 !important;
    text-shadow: 0 0 10px #00ff00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.luck-meter {
    margin: 10px 0;
    font-size: 0.8em;
    color: #ff00ff;
    text-align: center;
}

#startSection {
    display: block;
}

#gameSection {
    display: none;
}

/* ========== CONTAINER SIZE FOR GAMES ========== */
.container {
    max-width: 800px;
}

.content-zone {
    min-height: 450px;
    width: 100%;
}

/* ========== STEP TITLES ========== */
.step-title {
    color: var(--casino-gold);
    font-family: 'Cinzel', serif;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.step-subtitle {
    color: var(--casino-white);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ========== STEP 1: NAME SLOT MACHINE ========== */
.letters-container {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 8px 16px rgba(0,0,0,0.5);
    position: relative;
    border: 3px solid var(--casino-gold);
    width: 100%;
}

.letters {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.letter {
    width: 120px;
    height: 360px;
    background: var(--casino-white);
    border: 5px solid var(--casino-gold);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
}

.letter-inner {
    position: absolute;
    width: 100%;
    transition: filter 0.2s;
}

.letter-inner.spinning {
    filter: blur(3px);
}

.symbol {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    border-bottom: 2px solid #ecf0f1;
    color: var(--casino-black);
    font-family: 'Courier New', monospace;
}

.payline {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 120px;
    border: 5px solid var(--casino-red-light);
    box-shadow: 0 0 30px var(--casino-red-light), inset 0 0 30px rgba(210, 2, 2, 0.2);
    z-index: 10;
    pointer-events: none;
    border-radius: 15px;
    background: transparent;
}

.win-highlight {
    animation: winPulse 0.5s ease-in-out infinite;
}

@keyframes winPulse {
    0%, 100% {
        background: #2ecc71;
        transform: scale(1);
    }
    50% {
        background: #27ae60;
        transform: scale(1.02);
    }
}

.game-controls {
    text-align: center;
    margin-bottom: 15px;
}

.btn-game {
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    color: var(--casino-black);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cinzel', serif;
    margin: 5px;
}

.btn-game:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
}

.btn-game:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-game.hidden {
    display: none;
}

.stop-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-stop {
    width: 80px;
    padding: 12px;
    font-size: 0.9em;
    font-weight: bold;
    background: var(--casino-black);
    color: var(--casino-gold);
    border: 3px solid var(--casino-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cinzel', serif;
}

.btn-stop:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.btn-stop:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.text-display {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid var(--casino-gold);
    width: 100%;
}

.text-display h3 {
    color: var(--casino-gold);
    margin-bottom: 10px;
    font-size: 1.2em;
    font-family: 'Cinzel', serif;
}

.text {
    font-size: 1.5em;
    color: var(--casino-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    min-height: 40px;
    word-wrap: break-word;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    background: linear-gradient(145deg, var(--casino-gold), var(--casino-gold-bright));
    color: var(--casino-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cinzel', serif;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.btn-clear {
    background: var(--casino-black);
    color: var(--casino-gold);
    border: 2px solid var(--casino-gold);
}

.btn-action.btn-clear:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* ========== STEP 2: AGE SLOT MACHINE ========== */
.age-input-section {
    text-align: center;
    width: 100%;
}

.age-input {
    width: 100%;
    max-width: 200px;
    padding: 15px;
    font-size: 1.5em;
    text-align: center;
    border: 3px solid var(--casino-gold);
    border-radius: 10px;
    background: #000;
    color: var(--casino-gold);
    margin: 15px 0;
    font-family: 'Roboto', sans-serif;
}

.age-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.age-game-section {
    text-align: center;
    width: 100%;
}

.slot-machine-mini {
    background: #000;
    border: 3px solid var(--casino-gold);
    border-radius: 15px;
    padding: 25px;
    margin: 15px auto;
    display: inline-block;
}

.slot-machine-mini .slots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slot-machine-mini .slot {
    width: 70px;
    height: 90px;
    font-size: 2.5em;
}

/* ========== STEP 3: PHONE ROULETTE ========== */
.phone-display {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--casino-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin-bottom: 15px;
    text-align: center;
}

.result-box {
    background: rgba(0,0,0,0.3);
    padding: 10px 25px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
    border: 2px solid var(--casino-gold);
}

.current-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--casino-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.canvas-container {
    margin: 15px auto;
    width: 400px;
    height: 400px;
}

canvas {
    display: block;
    margin: 0 auto;
}

.roulette-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.progress-text {
    color: var(--casino-gold);
    font-size: 14px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ========== SUCCESS OVERLAY ========== */
.success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 100, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.success-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-popup {
    background: linear-gradient(145deg, var(--casino-green), var(--casino-green-light));
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 5px solid var(--casino-gold);
    box-shadow: 0 0 100px rgba(212, 175, 55, 0.8);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-popup h2 {
    color: var(--casino-gold);
    font-family: 'Cinzel', serif;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.success-popup p {
    color: var(--casino-white);
    font-size: 18px;
    margin-bottom: 25px;
}

.success-data {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--casino-gold);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.success-data p {
    color: var(--casino-white);
    margin: 10px 0;
    font-size: 16px;
}

.success-data strong {
    color: var(--casino-gold-bright);
}

/* ========== BUTTON DISABLED STATE ========== */
.btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-next.enabled {
    animation: buttonReady 0.5s ease;
}

@keyframes buttonReady {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .container {
        padding: 20px;
    }

    .letters {
        gap: 10px;
    }

    /* Keep letter/symbol dimensions fixed for JS calculations */
    .letter {
        width: 90px;
    }

    .payline {
        width: 320px;
    }

    .canvas-container {
        width: 300px;
        height: 300px;
    }

    canvas {
        width: 300px;
        height: 300px;
    }

    .phone-display {
        font-size: 1.4em;
    }
}