/* Western spaghetti cinema — Lost Pinup Slots */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --western-tan: #c4a574;
    --western-dark: #2c1810;
    --western-leather: #5c4033;
    --western-gold: #b8860b;
    --western-dust: #8b7355;
    --western-red: #8b2500;
    --vignette: rgba(0,0,0,0.5);
}

body {
    font-family: 'Oswald', sans-serif;
    background: var(--western-dark);
    color: #f0e6d8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic background — theme wallpaper, tiled */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-size: contain;
    background-repeat: repeat;
    background-position: center;
    filter: brightness(0.32) saturate(0.65) sepia(0.28);
}

/* Per-theme wallpaper mood */
body.theme-dust-spurs .bg-layer { filter: brightness(0.3) saturate(0.7) sepia(0.35); }
body.theme-tumbleweed .bg-layer { filter: brightness(0.28) saturate(0.5) sepia(0.2) hue-rotate(-8deg); }
body.theme-high-noon .bg-layer { filter: brightness(0.35) saturate(0.8) sepia(0.25); }
body.theme-desert-rose .bg-layer { filter: brightness(0.3) saturate(0.6) sepia(0.2); }
body.theme-outlaw .bg-layer { filter: brightness(0.22) saturate(0.55) sepia(0.3); }
body.theme-saloon .bg-layer { filter: brightness(0.3) saturate(0.7) sepia(0.4); }

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 40%, var(--vignette) 100%);
    pointer-events: none;
}

/* Informational / confirm modals — hyperstylized western saloon */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(ellipse at center, rgba(44, 24, 16, 0.85) 0%, rgba(0, 0, 0, 0.92) 70%, rgba(0, 0, 0, 0.97) 100%);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    position: relative;
    background: linear-gradient(165deg, #4a3324 0%, #3d2a1f 25%, #2c1810 70%, #1f140d 100%);
    border: 3px solid var(--western-gold);
    border-radius: 4px;
    padding: 0;
    max-width: 360px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 0 4px var(--western-leather),
        0 0 24px rgba(184, 134, 11, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(184, 134, 11, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.modal-box::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 2px;
    pointer-events: none;
}
.modal-overlay.is-open .modal-box {
    transform: scale(1);
}
.modal-box .modal-title {
    padding: 1.25rem 1.5rem 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--western-gold) 15%, var(--western-gold) 85%, transparent 100%) 1;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}
.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--western-tan);
    margin: 0 0 0.75rem 0;
    padding: 0;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.modal-message {
    font-size: 1rem;
    line-height: 1.5;
    color: #f0e6d8;
    margin: 0 0 1.25rem 0;
    padding: 0 1.5rem;
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}
.modal-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.15rem;
    border-radius: 2px;
    cursor: pointer;
    border: 2px solid;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.modal-btn-cancel {
    background: transparent;
    color: var(--western-tan);
    border-color: var(--western-dust);
}
.modal-btn-cancel:hover {
    background: rgba(139, 115, 85, 0.25);
    border-color: var(--western-tan);
}
.modal-btn-ok {
    background: linear-gradient(180deg, #a67c1a 0%, #7d5c12 50%, #6b5010 100%);
    color: #f5ecd8;
    border-color: var(--western-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.modal-btn-ok:hover {
    background: linear-gradient(180deg, #b8860b 0%, #8b6914 50%, #7d5c12 100%);
    box-shadow: 0 0 16px rgba(184, 134, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Cash out success → redemption store */
.cashout-success-modal { z-index: 1002; }
.cashout-success-box { max-width: 400px; }
.cashout-success-box .modal-title {
    padding: 1.5rem 1.5rem 0.5rem;
    border-image: none;
    border-bottom: 2px solid var(--western-gold);
}
.cashout-success-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.25rem;
    letter-spacing: 0.08em;
    color: var(--western-gold);
    margin: 0;
    padding: 0.75rem 1.5rem 1rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(184, 134, 11, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, rgba(184, 134, 11, 0.12) 0%, transparent 100%);
    border-bottom: 1px dashed rgba(184, 134, 11, 0.4);
}
.cashout-success-copy {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #e8e0d4;
    margin: 0;
    padding: 1rem 1.5rem 1.25rem;
}
.cashout-success-actions {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 1.5rem 1.5rem;
}
.cashout-success-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1.25rem;
}

/* Redemption store overlay (full-screen iframe) */
.redemption-store-overlay {
    position: fixed;
    inset: 0;
    z-index: 1003;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.redemption-store-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.redemption-store-overlay iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #2c1810;
}
.redemption-store-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(184, 134, 11, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--western-tan);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.redemption-store-overlay-close:hover {
    background: rgba(184, 134, 11, 0.25);
    color: var(--western-gold);
    border-color: var(--western-gold);
}

/* Promo section — redeem credits link */
.promo-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--western-gold);
    text-decoration: none;
}
.promo-link:hover {
    text-decoration: underline;
    color: var(--western-tan);
}

/* Vintage Pinup Cards promo modal — same hyperstylized treatment */
.vintage-pinup-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(ellipse at center, rgba(44, 24, 16, 0.88) 0%, rgba(0, 0, 0, 0.94) 70%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}
.vintage-pinup-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.vintage-pinup-modal-box {
    position: relative;
    background: linear-gradient(165deg, #4a3324 0%, #3d2a1f 25%, #2c1810 70%, #1f140d 100%);
    border: 3px solid var(--western-gold);
    border-radius: 4px;
    padding: 0;
    max-width: 440px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 0 4px var(--western-leather),
        0 0 28px rgba(184, 134, 11, 0.22),
        0 20px 56px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(184, 134, 11, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vintage-pinup-modal-box::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 2px;
    pointer-events: none;
}
.vintage-pinup-modal.is-open .vintage-pinup-modal-box {
    transform: scale(1);
}
.vintage-pinup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid rgba(184, 134, 11, 0.4);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--western-tan);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vintage-pinup-close:hover {
    background: rgba(184, 134, 11, 0.25);
    color: var(--western-gold);
    border-color: var(--western-gold);
}
.vintage-pinup-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--western-gold);
    margin: 0;
    padding: 1.25rem 1.75rem 0.25rem;
    opacity: 0.95;
}
.vintage-pinup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.12em;
    color: var(--western-gold);
    margin: 0;
    padding: 0 3rem 0.5rem 1.75rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--western-gold) 0%, var(--western-gold) 85%, transparent 100%) 1;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 16px rgba(184, 134, 11, 0.3);
}
.vintage-pinup-tagline {
    font-size: 0.95rem;
    color: #f0e6d8;
    margin: 0 0 1rem 0;
    padding: 0 1.75rem;
    line-height: 1.4;
}
.vintage-pinup-tagline em {
    font-style: normal;
    color: var(--western-gold);
    font-weight: 600;
}
.vintage-pinup-insert {
    margin: 0 1.75rem 1rem;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}
.vintage-pinup-insert:empty {
    min-height: 80px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed var(--western-dust);
}
.vintage-pinup-insert:empty::after {
    content: '';
    display: block;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    border-radius: 8px;
}
.vintage-pinup-promo-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}
.vintage-pinup-hook {
    font-size: 0.95rem;
    color: #e8e0d4;
    margin: 0 0 1.25rem 0;
    padding: 0 1.75rem;
    font-style: italic;
    line-height: 1.45;
}
.vintage-pinup-cta-wrap {
    margin-bottom: 1rem;
    padding: 0 1.75rem;
    text-align: center;
}
.vintage-pinup-cta-price {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--western-gold);
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}
.vintage-pinup-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(180deg, #b8860b 0%, #8b6914 40%, #6b5010 100%);
    color: #1a120c;
    text-decoration: none;
    border: 2px solid var(--western-gold);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.vintage-pinup-cta:hover {
    background: linear-gradient(180deg, #d4a010 0%, #b8860b 50%, #8b6914 100%);
    color: #0f0a06;
    box-shadow: 0 0 28px rgba(184, 134, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1.03);
}
.vintage-pinup-cta:active {
    transform: scale(0.98);
}
.vintage-pinup-disclaimer {
    font-size: 0.75rem;
    color: var(--western-dust);
    margin: 0 0 1.25rem 0;
    padding: 0 1.75rem;
    line-height: 1.4;
}
.vintage-pinup-what {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--western-tan);
    margin: 0 0 0.5rem 0;
    padding: 0 1.75rem;
}
.vintage-pinup-list {
    margin: 0 1.75rem 1rem 1.75rem;
    padding-left: 1.25rem;
    color: #f0e6d8;
    font-size: 0.9rem;
    line-height: 1.55;
}
.vintage-pinup-list li {
    margin-bottom: 0.4rem;
}
.vintage-pinup-list strong {
    color: var(--western-gold);
    font-weight: 600;
}
.vintage-pinup-footer {
    font-size: 0.8rem;
    color: var(--western-dust);
    margin: 0;
    padding: 0 1.75rem 1.75rem;
}
.vintage-pinup-footer a {
    color: var(--western-gold);
    text-decoration: none;
}
.vintage-pinup-footer a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 1.5rem;
    padding-bottom: 4rem; /* space above fixed sound bar */
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(184, 134, 11, 0.5));
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.15em;
    color: var(--western-tan);
    text-shadow: 2px 2px 0 var(--western-leather), 0 0 20px rgba(196, 165, 116, 0.4);
}

/* Theme selector */
.theme-selector {
    margin-bottom: 1.25rem;
}

.theme-selector-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    color: var(--western-tan);
    margin-bottom: 0.35rem;
}

.theme-payout-label {
    font-size: 0.8rem;
    color: var(--western-dust);
    margin-bottom: 0.6rem;
    min-height: 1.2em;
    font-style: italic;
}

.theme-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.theme-btn {
    width: 100px;
    height: 100px;
    padding: 0;
    border: 3px solid var(--western-dust);
    border-radius: 8px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: var(--western-leather);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.theme-btn span {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--western-tan);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    z-index: 1;
}

.theme-btn:hover {
    transform: scale(1.05);
    border-color: var(--western-gold);
    box-shadow: 0 0 12px rgba(184, 134, 11, 0.4);
}

.theme-btn.active {
    border-color: var(--western-gold);
    box-shadow: 0 0 0 2px var(--western-dark), 0 0 14px rgba(184, 134, 11, 0.5);
}

@media (max-width: 768px) {
    .theme-btn {
        width: 82px;
        height: 82px;
    }
    .theme-btn span {
        font-size: 0.65rem;
    }
}

/* Game container — slot cabinet (theme backgrounds applied below) */
.game-container {
    position: relative;
    border-radius: 12px;
    padding: 1.5rem;
    border: 4px solid var(--western-dust);
    box-shadow:
        inset 0 2px 20px rgba(0,0,0,0.4),
        0 8px 32px rgba(0,0,0,0.6),
        0 0 0 2px var(--western-gold);
    background: linear-gradient(165deg, var(--western-leather) 0%, var(--western-dark) 40%, #1a120a 100%);
    background-size: cover;
    background-position: center;
}

.game-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.game-container > * {
    position: relative;
    z-index: 1;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* Balance readout */
.balance-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--western-dust);
    border-radius: 8px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    min-height: 44px;
    align-items: center;
}
.balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--western-dust);
    margin-right: 0.25rem;
}
.balance-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.65rem;
    letter-spacing: 0.02em;
    color: var(--western-gold);
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
    min-width: 1.5em;
    text-align: right;
}
.balance-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--western-tan);
    opacity: 0.9;
}

/* Wager controls */
.bet-controls-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.bet-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--western-dust);
}
.bet-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--western-dust);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.35);
}
.bet-controls button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-right: 1px solid rgba(139, 115, 85, 0.4);
    background: transparent;
    color: var(--western-tan);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bet-controls button:last-of-type {
    border-right: none;
    border-left: 1px solid rgba(139, 115, 85, 0.4);
}
.bet-controls button:hover {
    background: rgba(184, 134, 11, 0.25);
    color: var(--western-gold);
}
.bet-controls button:active {
    background: rgba(184, 134, 11, 0.35);
}
#bet-amount {
    width: 56px;
    height: 40px;
    padding: 0 0.35rem;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(139, 115, 85, 0.4);
    border-right: 1px solid rgba(139, 115, 85, 0.4);
    background: rgba(28, 20, 16, 0.6);
    color: var(--western-gold);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    -moz-appearance: textfield;
}
#bet-amount::-webkit-outer-spin-button,
#bet-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#bet-amount:focus {
    outline: none;
    background: rgba(44, 28, 16, 0.8);
    color: var(--western-tan);
}

/* Slot machine face: reels + lever */
.slot-machine {
    margin: 1rem 0;
}

.slot-face {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    border: 3px solid var(--western-gold);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.reel-cell {
    width: 110px;
    height: 160px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.reel-window {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid var(--western-gold);
    border-radius: 8px;
    background: var(--western-dark);
}

.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
}

.reel-strip.spinning {
    display: flex;
    animation: reelScroll 0.45s linear infinite;
}

.reel-strip .strip-card {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.reel-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* One full cycle = 25% of strip (4 copies of theme cards) for seamless loop */
@keyframes reelScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-25%); }
}

/* One-armed bandit lever — realistic cabinet mount + satisfying pull */
.lever-area {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

/* Cabinet bracket the lever mounts into */
.lever-area::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 36px;
    background: linear-gradient(180deg, #4a3728 0%, #2c1810 50%, #1a120c 100%);
    border: 2px solid var(--western-gold);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(184, 134, 11, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Rivet/bolt details on bracket */
.lever-area::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 10px;
    background: radial-gradient(ellipse 6px 4px at 50% 50%, #5c4033, #2a1a12);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slot-lever {
    position: relative;
    width: 48px;
    height: 140px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform-origin: top center;
    transition: transform 0.12s ease-out, filter 0.15s ease;
    z-index: 2;
}

.slot-lever:hover:not(:disabled):not(.pulled) {
    transform: rotate(-4deg);
    filter: brightness(1.08);
}

.slot-lever:active:not(:disabled):not(.pulled) {
    cursor: grabbing;
    transform: rotate(-8deg);
}

.slot-lever:disabled {
    cursor: not-allowed;
}

.slot-lever.pulled {
    cursor: grabbing;
    animation: leverPull 0.7s ease-in-out forwards;
}

/* Pull down, hold, then spring back with slight overshoot */
@keyframes leverPull {
    0%    { transform: rotate(0deg); }
    30%   { transform: rotate(-52deg); }
    42%   { transform: rotate(-55deg); }
    52%   { transform: rotate(-55deg); }
    72%   { transform: rotate(4deg); }
    85%   { transform: rotate(-1deg); }
    100%  { transform: rotate(0deg); }
}

/* Handle: cylindrical metal arm */
.lever-handle {
    display: block;
    position: relative;
    width: 26px;
    height: 88px;
    margin-top: 20px;
    background: linear-gradient(105deg,
        #6b6b6b 0%,
        #4a4a4a 18%,
        #2e2e2e 50%,
        #4a4a4a 82%,
        #5a5a5a 100%);
    border-radius: 13px;
    box-shadow:
        inset 2px 0 4px rgba(255, 255, 255, 0.25),
        inset -2px 0 4px rgba(0, 0, 0, 0.4),
        0 6px 14px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

/* Ball grip at end of handle (classic one-armed bandit look) */
.lever-handle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7a7a7a, #3a3a3a 60%, #2a2a2a);
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.2),
        inset -2px -2px 6px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

/* Pivot housing (visible “slot” where lever enters cabinet) */
.slot-lever::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.6);
    border: 2px solid #2a2a2a;
    z-index: 1;
}

/* Game controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.play-button,
.cashout-button {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--western-dust);
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.play-button {
    background: linear-gradient(180deg, #6b4423, var(--western-leather));
    color: var(--western-tan);
}

.play-button:hover {
    background: linear-gradient(180deg, var(--western-gold), #8b6914);
    color: var(--western-dark);
    border-color: var(--western-gold);
}

.cashout-button {
    background: linear-gradient(180deg, #5c2020, var(--western-red));
    color: #f0e6d8;
}

.cashout-button:hover {
    background: linear-gradient(180deg, #a03030, #5c2020);
    border-color: #a03030;
}

/* Win display */
.win-display {
    text-align: center;
    margin-top: 1rem;
}

.win-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--western-gold);
    text-shadow: 0 0 16px rgba(184, 134, 11, 0.6);
}

.win-message {
    font-size: 1rem;
    margin-top: 0.25rem;
    color: var(--western-tan);
}

/* Jackpot celebration overlay */
.jackpot-celebration {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}
.jackpot-celebration.is-visible {
    opacity: 1;
    visibility: visible;
}

.jackpot-celebration-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(180deg, #3d2a1f 0%, #2c1810 100%);
    border: 3px solid var(--western-gold);
    border-radius: 12px;
    box-shadow:
        0 0 60px rgba(184, 134, 11, 0.4),
        inset 0 0 40px rgba(184, 134, 11, 0.08);
    animation: jackpotPop 0.5s ease-out;
}

@keyframes jackpotPop {
    0%   { transform: scale(0.7); opacity: 0; }
    70%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}

.jackpot-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 0.2em;
    color: var(--western-gold);
    text-shadow:
        0 0 20px rgba(184, 134, 11, 0.8),
        0 0 40px rgba(184, 134, 11, 0.4);
    margin: 0 0 0.5rem 0;
    animation: jackpotShine 1.2s ease-in-out infinite;
}

@keyframes jackpotShine {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.25); }
}

.jackpot-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #f0e6d8;
    text-shadow: 0 0 16px rgba(184, 134, 11, 0.6);
    margin: 0 0 0.5rem 0;
}

.jackpot-subtitle {
    font-size: 0.95rem;
    color: var(--western-tan);
    margin: 0;
    letter-spacing: 0.03em;
}

/* Confetti burst */
.jackpot-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 1px;
    top: 50%;
    left: 50%;
    opacity: 0;
    animation: confettiBurst 2s ease-out forwards;
}
.jackpot-celebration.is-visible .confetti-piece {
    opacity: 1;
}

.confetti-piece:nth-child(1)  { --cx: -80px; --cy: -120px; --rot: 0deg;   --c: #b8860b; animation-delay: 0.1s; }
.confetti-piece:nth-child(2)  { --cx:   60px; --cy: -100px; --rot: 40deg;  --c: #c4a574; animation-delay: 0.05s; }
.confetti-piece:nth-child(3)  { --cx: -60px; --cy:   90px; --rot: 80deg;  --c: #8b2500; animation-delay: 0.15s; }
.confetti-piece:nth-child(4)  { --cx:  100px; --cy:   80px; --rot: 120deg; --c: #b8860b; animation-delay: 0s; }
.confetti-piece:nth-child(5)  { --cx: -100px; --cy:  -80px; --rot: 160deg; --c: #5c4033; animation-delay: 0.2s; }
.confetti-piece:nth-child(6)  { --cx:   0px; --cy: -140px; --rot: 200deg; --c: #c4a574; animation-delay: 0.08s; }
.confetti-piece:nth-child(7)  { --cx:  80px; --cy:  100px; --rot: 240deg; --c: #8b7355; animation-delay: 0.12s; }
.confetti-piece:nth-child(8)  { --cx: -120px; --cy:    0px; --rot: 280deg; --c: #b8860b; animation-delay: 0.18s; }
.confetti-piece:nth-child(9)  { --cx:  120px; --cy:  -60px; --rot: 320deg; --c: #8b2500; animation-delay: 0.06s; }
.confetti-piece:nth-child(10) { --cx:  -40px; --cy:  130px; --rot: 30deg;  --c: #5c4033; animation-delay: 0.14s; }
.confetti-piece:nth-child(11) { --cx:   70px; --cy:   70px; --rot: 90deg;  --c: #c4a574; animation-delay: 0.1s; }
.confetti-piece:nth-child(12) { --cx:  -90px; --cy:  -50px; --rot: 150deg; --c: #b8860b; animation-delay: 0.16s; }
.confetti-piece:nth-child(13) { --cx:   50px; --cy: -130px; --rot: 210deg; --c: #8b7355; animation-delay: 0.04s; }
.confetti-piece:nth-child(14) { --cx:  -70px; --cy:   60px; --rot: 270deg; --c: #8b2500; animation-delay: 0.2s; }
.confetti-piece:nth-child(15) { --cx:   90px; --cy:  -90px; --rot: 330deg; --c: #b8860b; animation-delay: 0.02s; }
.confetti-piece:nth-child(16) { --cx:    0px; --cy:  140px; --rot: 45deg;  --c: #c4a574; animation-delay: 0.18s; }

@keyframes confettiBurst {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
        opacity: 1;
        background: var(--c);
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--cx), var(--cy)) rotate(var(--rot));
        opacity: 0.6;
        background: var(--c);
    }
}

/* Stats */
.stats-container {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
    border: 1px solid var(--western-dust);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-item {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--western-tan);
}

.stat-item span {
    color: var(--western-gold);
    margin-left: 0.25rem;
}

/* Auto-play */
.auto-play-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.auto-play-button,
.stop-button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--western-dust);
    border-radius: 6px;
    background: var(--western-dark);
    color: var(--western-tan);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auto-play-button:hover:not(:disabled) {
    background: var(--western-leather);
}

.stop-button:hover:not(:disabled) {
    background: var(--western-red);
    color: #fff;
}

.auto-play-button:disabled,
.stop-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#auto-play-rounds {
    width: 56px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid var(--western-dust);
    border-radius: 6px;
    background: var(--western-dark);
    color: var(--western-tan);
    font-size: 1rem;
}

/* Promo / footer */
.promo-section {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid var(--western-dust);
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.promo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--western-tan);
    margin-bottom: 0.5rem;
}

.promo-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--western-leather);
    color: var(--western-tan);
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--western-dust);
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.promo-button:hover {
    background: var(--western-gold);
    color: var(--western-dark);
}
.promo-button-secondary {
    margin-top: 0.5rem;
    cursor: pointer;
    border: 2px solid var(--western-gold);
    background: transparent;
    color: var(--western-gold);
    font-family: inherit;
}
.promo-button-secondary:hover {
    background: rgba(184, 134, 11, 0.2);
    color: var(--western-tan);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .header-logo {
        width: 140px;
    }

    .reel-cell {
        width: 85px;
        height: 130px;
    }

    .reel-strip .strip-card {
        height: 130px;
    }

    .reels-container {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .lever-area {
        padding: 0.5rem 0;
    }

    .lever-area::before {
        width: 48px;
        height: 30px;
    }

    .slot-lever {
        width: 40px;
        height: 100px;
    }

    .lever-handle {
        width: 22px;
        height: 68px;
        margin-top: 16px;
    }

    .lever-handle::after {
        width: 26px;
        height: 26px;
        bottom: -5px;
    }

    .game-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .balance-wrap {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .bet-controls-wrap {
        width: 100%;
        max-width: 200px;
    }

    .win-amount {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ---------- Theme-specific wallpaper & elements ---------- */

/* Dust & Spurs — warm desert, leather */
.game-container.theme-dust-spurs {
    background-image: url('cards-western/card-5.png');
    border-color: #8b7355;
}
.game-container.theme-dust-spurs .reels-container {
    background: rgba(44,24,16,0.75);
    border-color: #b8860b;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.game-container.theme-dust-spurs .reel-window { border-color: #c4a574; }
.game-container.theme-dust-spurs .stats-container {
    background: rgba(92,64,51,0.85);
    border-color: #8b7355;
}
.container.theme-dust-spurs .theme-selector-title,
.container.theme-dust-spurs h1 { color: #c4a574; }
.container.theme-dust-spurs .theme-payout-label { color: #8b7355; }
.container.theme-dust-spurs .promo-section {
    background: rgba(92,64,51,0.6);
    border-color: #8b7355;
}
.game-container.theme-dust-spurs .reel-window { border-radius: 8px; box-shadow: inset 0 0 12px rgba(0,0,0,0.3); }
.game-container.theme-dust-spurs .win-amount { color: #b8860b; text-shadow: 0 0 12px rgba(184,134,11,0.5); }
.game-container.theme-dust-spurs .lever-area::before { border-color: #b8860b; }
.game-container.theme-dust-spurs .play-button {
    background: linear-gradient(180deg, #8b6914, #6b4423);
    border-color: #b8860b;
}

/* Tumbleweed — dusty sage, faded */
.game-container.theme-tumbleweed {
    background-image: url('cards-western/card-11.png');
    border-color: #6b5b4a;
}
.game-container.theme-tumbleweed .reels-container {
    background: rgba(40,45,42,0.8);
    border-color: #7d8b75;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.game-container.theme-tumbleweed .reel-window { border-color: #8b9a82; }
.game-container.theme-tumbleweed .stats-container {
    background: rgba(55,60,52,0.9);
    border-color: #6b5b4a;
}
.container.theme-tumbleweed .theme-selector-title,
.container.theme-tumbleweed h1 { color: #b8c4b0; }
.container.theme-tumbleweed .theme-payout-label { color: #7d8b75; }
.container.theme-tumbleweed .promo-section {
    background: rgba(50,55,48,0.75);
    border-color: #6b5b4a;
}
.game-container.theme-tumbleweed .reel-window { border-radius: 12px; box-shadow: inset 0 0 16px rgba(0,0,0,0.25); }
.game-container.theme-tumbleweed .win-amount { color: #8b9a82; text-shadow: 0 0 10px rgba(139,154,130,0.5); }
.game-container.theme-tumbleweed .lever-area::before { border-color: #7d8b75; }
.game-container.theme-tumbleweed .play-button {
    background: linear-gradient(180deg, #5a6b52, #4a5a42);
    border-color: #7d8b75;
}

/* High Noon — golden, harsh light */
.game-container.theme-high-noon {
    background-image: url('cards-western/card-21.png');
    border-color: #8b6914;
}
.game-container.theme-high-noon .reels-container {
    background: rgba(60,45,20,0.8);
    border-color: #c9a227;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.game-container.theme-high-noon .reel-window { border-color: #d4b03a; }
.game-container.theme-high-noon .stats-container {
    background: rgba(80,60,25,0.9);
    border-color: #8b6914;
}
.container.theme-high-noon .theme-selector-title,
.container.theme-high-noon h1 { color: #e8d4a0; }
.container.theme-high-noon .theme-payout-label { color: #c9a227; }
.container.theme-high-noon .promo-section {
    background: rgba(70,52,22,0.75);
    border-color: #a08020;
}
.game-container.theme-high-noon .reel-window { border-radius: 4px; box-shadow: inset 0 0 20px rgba(201,162,39,0.15); }
.game-container.theme-high-noon .win-amount { color: #e8d4a0; text-shadow: 0 0 20px rgba(232,212,160,0.7); }
.game-container.theme-high-noon .lever-area::before { border-color: #c9a227; }
.game-container.theme-high-noon .play-button {
    background: linear-gradient(180deg, #c9a227, #8b6914);
    border-color: #e8d4a0;
    color: #2c1810;
}

/* Desert Rose — warm pink/rose tones */
.game-container.theme-desert-rose {
    background-image: url('cards-western/card-29.png');
    border-color: #8b5a5a;
}
.game-container.theme-desert-rose .reels-container {
    background: rgba(55,35,40,0.8);
    border-color: #a07070;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.game-container.theme-desert-rose .reel-window { border-color: #b08080; }
.game-container.theme-desert-rose .stats-container {
    background: rgba(65,40,48,0.9);
    border-color: #8b5a5a;
}
.container.theme-desert-rose .theme-selector-title,
.container.theme-desert-rose h1 { color: #e0b8b8; }
.container.theme-desert-rose .theme-payout-label { color: #a07070; }
.container.theme-desert-rose .promo-section {
    background: rgba(60,38,45,0.75);
    border-color: #8b5a5a;
}
.game-container.theme-desert-rose .reel-window { border-radius: 10px; box-shadow: inset 0 0 14px rgba(160,112,112,0.2); }
.game-container.theme-desert-rose .win-amount { color: #e0b8b8; text-shadow: 0 0 14px rgba(224,184,184,0.6); }
.game-container.theme-desert-rose .lever-area::before { border-color: #a07070; }
.game-container.theme-desert-rose .play-button {
    background: linear-gradient(180deg, #9a6060, #6b4040);
    border-color: #c09090;
}

/* Outlaw — dark, moody */
.game-container.theme-outlaw {
    background-image: url('cards-western/card-38.png');
    border-color: #4a3030;
}
.game-container.theme-outlaw .reels-container {
    background: rgba(25,18,18,0.85);
    border-color: #5c3a3a;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
}
.game-container.theme-outlaw .reel-window { border-color: #6b4545; }
.game-container.theme-outlaw .stats-container {
    background: rgba(30,22,22,0.95);
    border-color: #4a3030;
}
.container.theme-outlaw .theme-selector-title,
.container.theme-outlaw h1 { color: #c8a8a8; }
.container.theme-outlaw .theme-payout-label { color: #8b6060; }
.container.theme-outlaw .promo-section {
    background: rgba(35,25,25,0.85);
    border-color: #5c3a3a;
}
.game-container.theme-outlaw .reel-window { border-radius: 2px; box-shadow: inset 0 0 18px rgba(0,0,0,0.5); }
.game-container.theme-outlaw .win-amount { color: #c8a8a8; text-shadow: 0 0 16px rgba(200,168,168,0.5); }
.game-container.theme-outlaw .lever-area::before { border-color: #6b4040; }
.game-container.theme-outlaw .play-button {
    background: linear-gradient(180deg, #5c3030, #3a2020);
    border-color: #6b4040;
}

/* Saloon — amber, whiskey tones */
.game-container.theme-saloon {
    background-image: url('cards-western/card-48.png');
    border-color: #6b4423;
}
.game-container.theme-saloon .reels-container {
    background: rgba(45,30,18,0.85);
    border-color: #8b5a2b;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5);
}
.game-container.theme-saloon .reel-window { border-color: #a07040; }
.game-container.theme-saloon .stats-container {
    background: rgba(55,38,25,0.9);
    border-color: #6b4423;
}
.container.theme-saloon .theme-selector-title,
.container.theme-saloon h1 { color: #d4b896; }
.container.theme-saloon .theme-payout-label { color: #8b5a2b; }
.container.theme-saloon .promo-section {
    background: rgba(50,34,22,0.8);
    border-color: #7d5228;
}
.game-container.theme-saloon .reel-window { border-radius: 6px; box-shadow: inset 0 0 14px rgba(139,90,43,0.2); }
.game-container.theme-saloon .win-amount { color: #d4b896; text-shadow: 0 0 12px rgba(212,184,150,0.5); }
.game-container.theme-saloon .lever-area::before { border-color: #8b5a2b; }
.game-container.theme-saloon .play-button {
    background: linear-gradient(180deg, #8b5a2b, #5c3a18);
    border-color: #a07040;
}

/* Joe Eddie — sound bar fixed to bottom; full width on mobile, contained on desktop */
.joe-eddie-radio {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: rgba(28, 20, 16, 0.96);
    border-top: 1px solid var(--western-dust);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    transition: box-shadow 0.2s ease;
}

/* Desktop: contained width, right side, rounded top corners */
@media (min-width: 769px) {
    .joe-eddie-radio {
        left: auto;
        right: 1rem;
        width: 100%;
        max-width: 420px;
        border-radius: 10px 10px 0 0;
        border-left: 1px solid var(--western-dust);
        border-right: 1px solid var(--western-dust);
    }
}

/* Always-visible bar row (logo + label + toggle) */
.joe-eddie-radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 1rem;
    min-height: 44px;
    flex-shrink: 0;
}

.joe-eddie-radio-logo-wrap {
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

.joe-eddie-radio-logo {
    display: block;
    width: 100px;
    height: auto;
    max-height: 32px;
    object-fit: contain;
}

.joe-eddie-radio-label {
    font-size: 1em;
    letter-spacing: 0.05em;
    color: var(--western-tan);
    flex: 1;
    text-align: left;
}

.joe-eddie-radio-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--western-dust);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--western-tan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.joe-eddie-radio-toggle:hover {
    background: rgba(184, 134, 11, 0.2);
    color: var(--western-gold);
}
.joe-eddie-radio-toggle-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg) translate(1px, 1px);
    transition: transform 0.2s;
}
/* Expanded = chevron points down (collapse) */
.joe-eddie-radio:not(.is-collapsed) .joe-eddie-radio-toggle-icon {
    transform: rotate(45deg) translate(1px, 1px);
}

/* Expandable body: Spotify player (above the bar when expanded) */
.joe-eddie-radio-body {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.joe-eddie-radio:not(.is-collapsed) .joe-eddie-radio-body {
    max-height: 180px;
    opacity: 1;
    padding: 0.75rem 1rem 0.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.3);
}

.joe-eddie-radio-embed-wrap {
    width: 100%;
    height: 120px;
    min-height: 120px;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}

.joe-eddie-radio-embed {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    display: block;
}

.joe-eddie-radio-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--western-gold);
    text-decoration: none;
    margin-top: 0.4rem;
    transition: color 0.2s;
}
.joe-eddie-radio-link:hover {
    color: var(--western-tan);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .joe-eddie-radio-header {
        padding: 0.4rem 0.75rem;
        min-height: 40px;
    }
    .joe-eddie-radio-logo {
        width: 80px;
        max-height: 28px;
    }
    .joe-eddie-radio-label {
        font-size: 0.8rem;
    }
    .joe-eddie-radio-embed-wrap {
        height: 100px;
    }
    .joe-eddie-radio:not(.is-collapsed) .joe-eddie-radio-body {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .reel-cell {
        width: 72px;
        height: 110px;
    }

    .reel-strip .strip-card {
        height: 110px;
    }

    .slot-face {
        flex-direction: column;
        align-items: center;
    }

    .slot-lever {
        transform-origin: top center;
    }

    .lever-handle {
        width: 18px;
        height: 58px;
        margin-top: 12px;
    }

    .lever-handle::after {
        width: 22px;
        height: 22px;
        bottom: -4px;
    }

    .joe-eddie-radio-header {
        padding: 0.35rem 0.5rem;
        min-height: 36px;
    }
    .joe-eddie-radio-logo {
        width: 70px;
        max-height: 24px;
    }
    .joe-eddie-radio-label {
        font-size: 0.75rem;
    }
    .joe-eddie-radio-toggle {
        width: 28px;
        height: 28px;
    }
    .joe-eddie-radio-embed-wrap {
        height: 90px;
    }
    .joe-eddie-radio:not(.is-collapsed) .joe-eddie-radio-body {
        max-height: 145px;
    }
}
