/* ========================================
   Vertical Scroll Picker Visuals
   ======================================== */

.stage-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Changed from radial-gradient to allow canvas to show */
    perspective: 1000px;
    padding: 2rem;
}

.picker-frame {
    position: relative;
    width: 600px;
    /* Increased from 350px */
    max-width: 90vw;
    /* Responsive */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================== REEL WINDOW ================== */
.reel-window {
    width: 100%;
    height: 100%;
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* Hides the scrolling items */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Glass Reflection Overlay (Subtle) */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--bg-dark) 0%,
            transparent 20%,
            transparent 80%,
            var(--bg-dark) 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
}

/* Highlight Bar (The Selector) */
.highlight-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--secondary);
    z-index: 1;
    transform: translateY(-50%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0.5;
    pointer-events: none;
}

.highlight-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

/* ================== REEL ITEMS ================== */
.reel-container {
    position: relative;
    transform: translateY(0);
    will-change: transform;
}

.reel-item {
    height: 80px;
    /* Fixed height matching highlight bar */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    opacity: 0.5;

    /* Text Handling for Long Names */
    padding: 0 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

/* Active State (Visual simulation, handled by position) */
.reel-item.active {
    color: var(--text-main);
    opacity: 1;
    transform: scale(1.1);
}

/* Spin Blur Effect */
.is-spinning .reel-container {
    filter: blur(1px);
}

/* ================== BUTTON ================== */
.spin-button-large {
    margin-top: 2rem;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
}

.spin-button-large:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.spin-button-large:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Theme specifics adjustment */
[data-theme="minimal"] .reel-window {
    box-shadow: none;
    border: 2px solid #000;
    border-radius: 0;
}

[data-theme="minimal"] .spin-button-large {
    background: #000;
    border-radius: 0;
}