/* Slot Game Styles for Respawnly Embed */

.emoji {
    display: inline-block;
}

.slot-machine-section .btn {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border: 2px solid #9b59b6;
    background: transparent;
    color: #d7bde2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
}

.slot-machine-section .btn:hover {
    background: #9b59b6;
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

/* ===== Slot Machine Section ===== */
.slot-machine-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.slot-machine-header {
    text-align: center;
    margin-bottom: 30px;
}

.slot-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 22px;
    background: linear-gradient(90deg, #ffbe0b, #d7bde2, #9b59b6, #bb8fce);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-rainbow 3s linear infinite;
    margin-bottom: 10px;
}

@keyframes title-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Stats Display */
.slot-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box:nth-child(1) {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    border: 2px solid #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.stat-box:nth-child(2) {
    background: linear-gradient(135deg, #0a1628, #16213e);
    border: 2px solid #bb8fce;
    box-shadow: 0 0 15px rgba(187, 143, 206, 0.3);
}

.stat-box:nth-child(3) {
    background: linear-gradient(135deg, #1a0f00, #3d2800);
    border: 2px solid #ffbe0b;
    box-shadow: 0 0 15px rgba(255, 190, 11, 0.3);
}

.stat-box:nth-child(4) {
    background: linear-gradient(135deg, #001a12, #003d2b);
    border: 2px solid #c39bd3;
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.3);
}

.stat-box .stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-box:nth-child(1) .stat-label { color: #d7bde2; }
.stat-box:nth-child(2) .stat-label { color: #d2b4de; }
.stat-box:nth-child(3) .stat-label { color: #ffe08a; }
.stat-box:nth-child(4) .stat-label { color: #80edd0; }

.stat-box .stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
}

.stat-box:nth-child(1) .stat-value { color: #bb8fce; }
.stat-box:nth-child(2) .stat-value { color: #bb8fce; }
.stat-box:nth-child(3) .stat-value { color: #ffbe0b; }
.stat-box:nth-child(4) .stat-value { color: #c39bd3; }

.stat-box .win-value {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Message Display */
.message-display {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #1a0a2e, #0f3460);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #d7bde2;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(155, 89, 182, 0.15);
}

/* Slot Container */
.slot-container {
    background: linear-gradient(145deg, #0d0221 0%, #150734 30%, #1a0a2e 60%, #0a1628 100%);
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, #d7bde2, #9b59b6, #bb8fce, #c39bd3, #ffbe0b) 1;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        0 0 30px rgba(155, 89, 182, 0.4),
        0 0 60px rgba(187, 143, 206, 0.2),
        inset 0 0 30px rgba(155, 89, 182, 0.1);
    position: relative;
}

.reels-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.reel-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reel-cell {
    background: linear-gradient(145deg, #1a1a3e, #0f0f2d);
    border: 2px solid #4a3f8a;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(155, 89, 182, 0.2);
}

.reel-cell:hover {
    border-color: #9b59b6;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(155, 89, 182, 0.4);
}

.reel-cell.spinning {
    animation: spin-blur 0.1s linear infinite;
    border-color: #bb8fce;
    box-shadow: 0 0 20px rgba(187, 143, 206, 0.5);
}

.reel-cell.winning {
    animation: winning-pulse 0.5s ease infinite;
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, #2d1b00, #1a1000);
}

@keyframes spin-blur {
    0% { transform: translateY(-5px); opacity: 0.7; }
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(-5px); opacity: 0.7; }
}

@keyframes winning-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.paylines-indicator {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 13px;
    color: #ffd700;
    padding-top: 10px;
    border-top: 1px solid rgba(155, 89, 182, 0.4);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Slot Controls */
.slot-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-control {
    padding: 15px 10px;
    font-size: 13px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border: 2px solid #bb8fce;
    color: #d2b4de;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-control:hover {
    background: linear-gradient(135deg, #bb8fce, #bb8fce);
    color: #fff;
    box-shadow: 0 0 20px rgba(187, 143, 206, 0.5);
    border-color: #bb8fce;
}

.btn-spin-main {
    padding: 18px 36px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, #d7bde2, #ff5400, #ffbe0b);
    background-size: 200% 200%;
    color: #fff;
    border: 2px solid #d7bde2;
    border-radius: 12px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: spin-btn-gradient 3s ease infinite;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

@keyframes spin-btn-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-spin-main:hover {
    background: linear-gradient(135deg, #ff3388, #ff7733, #ffd044);
    background-size: 200% 200%;
    border-color: #ff3388;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
    color: #fff;
    animation: spin-btn-gradient 2s ease infinite;
}

.btn-spin-main:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.btn-auto {
    padding: 15px 10px;
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    border: 2px solid #9b59b6;
    color: #d7bde2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-auto:hover {
    background: linear-gradient(135deg, #9b59b6, #a855f7);
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    border-color: #a855f7;
}

.btn-auto.active {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.6);
    border-color: #bb8fce;
}

/* Secondary Controls */
.secondary-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-secondary-action {
    padding: 12px 24px;
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #0a1628, #16213e);
    border: 2px solid #4a3f8a;
    color: #a78bfa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-secondary-action:hover {
    border-color: #9b59b6;
    color: #d7bde2;
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

/* Session Stats */
.session-stats {
    background: linear-gradient(135deg, #0d0221, #1a0a2e, #0a1628);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #9b59b6, #bb8fce, #c39bd3) 1;
    border-radius: 0;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.session-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #bb8fce, #c39bd3, #ffbe0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.session-item .session-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: #a78bfa;
    margin-bottom: 5px;
}

.session-item .session-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
}

.session-item:nth-child(1) .session-value { color: #bb8fce; }
.session-item:nth-child(2) .session-value { color: #c39bd3; }
.session-item:nth-child(3) .session-value { color: #ffbe0b; }

.achievement-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    opacity: 0.3;
}

.achievement-stars .star.earned,
.achievement-stars .trophy.earned {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Game Disclaimer */
.game-disclaimer {
    text-align: center;
    padding: 20px;
}

.game-disclaimer p {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: #6b5b95;
    margin-bottom: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 15, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #0d0221, #1a0a2e, #0a1628);
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, #d7bde2, #9b59b6, #bb8fce, #c39bd3) 1;
    border-radius: 0;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(155, 89, 182, 0.4), 0 0 100px rgba(187, 143, 206, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: #d7bde2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff3388;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.modal-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ffbe0b, #d7bde2, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.paytable-item {
    background: linear-gradient(145deg, #1a1a3e, #0f0f2d);
    border: 2px solid #4a3f8a;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.paytable-item:hover {
    border-color: #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
    transform: translateY(-2px);
}

.paytable-symbol {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

.paytable-mult {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.paytable-note {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #a78bfa;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .slot-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-controls {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-controls .btn-spin-main {
        grid-column: span 2;
    }

    .reels-wrapper {
        gap: 8px;
    }

    .reel-cell {
        font-size: 28px;
    }

    .session-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .paytable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .reel-cell {
        font-size: 24px;
    }
}
