:root {
    --gold: #f0c356;
    --gold-dark: #8b5a2b;
    --gold-gradient-start: #cd9b3d;
    --gold-gradient-end: #5a3a18;
    --red: #8b0000;
    --black: #050505;
    --reel-bg: #111
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none
}

body {
    background-color: var(--black);
    color: white;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: radial-gradient(circle at center, #2c0e0e 0%, #000 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8)
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg_pattern.png');
    opacity: 0.1;
    pointer-events: none
}

.game-header {
    flex: 0 0 100px;
    background: linear-gradient(to bottom, #300 0%, #000 100%);
    border-bottom: 2px solid var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 10
}

.header-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.header-left {
    display: flex;
    align-items: center
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5))
}

.header-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.jackpot-title {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 5px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9)
}

.jackpot-value {
    color: #ffd700;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    line-height: 1
}

.slot-machine {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.slot-frame {
    width: 100%;
    height: 400px;
    background: #000;
    border: 3px solid var(--gold);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--gold-dark);
    position: relative;
    overflow: hidden;
    padding: 10px
}

.reels-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    background: var(--reel-bg);
    border: 1px solid #333;
    gap: 2px;
    position: relative;
    z-index: 1
}

.reels-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    background: url('assets/logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none
}

.reel {
    width: 33%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1)
}

.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%
}

.symbol {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px
}

.symbol img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3))
}

.game-controls {
    flex: 0 0 140px;
    background: linear-gradient(to top, #000, #111);
    border-top: 2px solid var(--gold-dark);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 15px;
    position: relative;
    gap: 10px
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center
}

.player-label {
    color: #aeaeae;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 1px
}

.player-count {
    color: #00ff00;
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-family: 'Roboto Mono', monospace
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center
}

.login-btn {
    background: linear-gradient(180deg, var(--gold-gradient-start) 0%, var(--gold-gradient-end) 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid #fcebb6;
    box-shadow: 0 0 10px rgba(205, 155, 61, 0.4);
    transition: all 0.2s;
    text-transform: uppercase
}

.login-btn:active {
    transform: scale(0.95)
}

.game-controls::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.spin-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-gradient-start) 0%, var(--gold-gradient-end) 100%);
    border: 3px solid #fcebb6;
    box-shadow: 0 0 20px rgba(205, 155, 61, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: all 0.2s;
    position: relative
}

.spin-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--gold-dark)
}

.spin-text {
    font-weight: 900;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    display: block
}

.spin-loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinIcon 1s ease-in-out infinite
}

@keyframes spinIcon {
    to {
        transform: rotate(360deg)
    }
}

.spin-button.loading .spin-text {
    display: none
}

.spin-button.loading .spin-loader {
    display: block
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    backdrop-filter: blur(5px)
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.modal-content {
    width: 100%;
    max-width: 380px;
    background: #000;
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 60px rgba(139, 90, 43, 0.3);
    position: relative
}

.modal-header {
    background: linear-gradient(90deg, #332211 0%, #5a3a18 50%, #332211 100%);
    padding: 20px 10px;
    border-bottom: 1px solid var(--gold-dark);
    position: relative;
    z-index: 2
}

.modal-header h2 {
    margin: 0;
    color: var(--gold);
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px
}

.modal-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: white;
    background: radial-gradient(circle at top, #1a1510 0%, #000 100%)
}

.status-box {
    background: rgba(139, 90, 43, 0.1);
    border: 1px solid var(--gold-dark);
    padding: 15px;
    border-radius: 6px;
    text-align: center
}

.status-value {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(240, 195, 86, 0.3)
}

.promo-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc
}

.note-box,
.urgency-box {
    background: #111;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.note-box {
    border-left: 4px solid var(--gold)
}

.urgency-box {
    border-color: #ffaa00;
    color: #ffaa00
}

.timer {
    font-family: 'Roboto Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin: 5px 0;
    line-height: 1
}

.timer-label {
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: -10px;
    margin-bottom: 5px
}

.cta-button {
    background: linear-gradient(180deg, var(--gold-gradient-start) 0%, var(--gold-gradient-end) 100%);
    color: #fff;
    padding: 16px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1px solid #fcebb6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    display: block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    color: #fff
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg)
    }

    20% {
        transform: translateX(100%) rotate(45deg)
    }

    100% {
        transform: translateX(100%) rotate(45deg)
    }
}