:root {
    --royal-gold: #ffcc00;
    --royal-gold-light: #fff3a3;
    --royal-red: #8b0000;
    --royal-red-dark: #4d0000;
    --royal-bg: linear-gradient(135deg, #b20000 0%, #4d0000 100%);
    --royal-glass: rgba(0, 0, 0, 0.4);
    --royal-border: 4px solid #ffcc00;
}

.royal-container {
    max-width: 1100px;
    margin: 20px auto;
    background: var(--royal-bg);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    font-family: 'Times New Roman', serif;
    color: white;
    user-select: none;
    box-shadow: 0 0 100px rgba(0,0,0,0.8), inset 0 0 50px rgba(255, 204, 0, 0.1);
    border: 3px solid #660000;
}

/* Background bokehs */
.royal-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,204,0,0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255,204,0,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.royal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.royal-logo img {
    height: 100px;
    filter: drop-shadow(0 0 15px rgba(255,204,0,0.5));
}

.royal-top-stats {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--royal-gold);
}

.royal-body {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Lines Column */
.royal-lines-column {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--royal-glass);
    padding: 15px 5px;
    border-radius: 10px;
    border: 2px solid var(--royal-gold);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lines-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--royal-gold);
    margin-bottom: 15px;
}

.line-btn {
    width: 50px;
    height: 40px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #660000;
    background: linear-gradient(#990000, #4d0000);
    border: 2px solid var(--royal-gold);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.line-btn.active {
    background: linear-gradient(#ffcc00, #cc9900);
    color: #4d0000;
    box-shadow: 0 0 15px rgba(255,204,0,0.8);
    transform: scale(1.1);
}

/* Reels */
.royal-reel-frame {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border: 6px solid var(--royal-gold);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.royal-reel-container {
    display: flex;
    gap: 6px;
    height: 500px;
    overflow: hidden;
    background: rgba(255, 192, 103, 0.1);
}

.royal-reel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255,204,0,0.2);
}

.royal-symbol {
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    transition: transform 0.1s linear;
}

/* Stats Column */
.royal-stats-column {
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    padding: 15px;
    text-align: center;
    background: var(--royal-glass);
    border-radius: 10px;
    border: 2px solid var(--royal-gold);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--royal-gold);
    margin-bottom: 8px;
}

.stat-val {
    font-size: 1.3rem;
    font-weight: 900;
}

/* Bottom Bar */
.royal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.7);
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 60px;
    border: 2px solid var(--royal-gold);
}

.bottom-center {
    display: flex;
    gap: 40px;
}

.val-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.val-group .label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.val-group span[id] {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.val-group .unit {
    font-size: 0.7rem;
    color: var(--royal-gold);
}

.val-adjust {
    display: flex;
    align-items: center;
    gap: 15px;
}

.adjust-arrows {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--royal-gold);
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-autoplay {
    width: 45px;
    height: 45px;
    border: 2px solid #aaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.btn-spin {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fff, var(--royal-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px var(--royal-gold);
    transition: transform 0.2s;
}

.btn-spin:active { transform: scale(0.9); }

.spin-icon {
    font-size: 3rem;
    color: #4d0000;
}

/* Animations */
.reel-spinning {
    filter: blur(5px);
}

.winning-symbol {
    animation: win-glow 0.8s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes win-glow {
    from { transform: scale(1); filter: drop-shadow(0 0 5px var(--royal-gold)); }
    to { transform: scale(1.1); filter: drop-shadow(0 0 25px var(--royal-gold)); }
}

@media (max-width: 768px) {
    .royal-body { flex-direction: column; align-items: stretch; }
    .royal-lines-column { width: 100%; flex-direction: row; justify-content: space-around; }
    .royal-stats-column { width: 100%; flex-direction: row; }
    .royal-bottom { flex-wrap: wrap; justify-content: center; border-radius: 20px; gap: 20px; }
}
