/* Container & Base Layout */
#tabletop {
    padding: 5% 2%;
    background: var(--A_bg); 
    color: var(--A_text);
}

.tabletop-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* Column 1: Typography & Intro Text */
.tabletop-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tabletop h2 {
    font-family: var(--serif);
    font-size: 3rem; 
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--B_bg);
}

.tabletop-text p {
    color: var(--A_text);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Column 2: The Main Interactive Visual (Shadow Box) */
.scene-container {
    background: var(--B_bg);
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-sizing: border-box;
}

#scene {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Column 3: The Controls Wrapper (Glassmorphism Box) */
.controls {
    background: var(--A_bg);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.controls h3 {
    font-family: var(--serif);
    color: var(--A_text);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.slider-group {
    margin-bottom: 10px;
}

.slider-group:last-child {
    margin-bottom: 0;
}

/* Custom row to handle label next to its dynamic pill value */
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--A_text);
    text-transform: none; /* Stripped old look to adopt spider style */
    letter-spacing: normal;
}

.slider-value {
    display: inline-block;
    background: var(--A_text);
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    margin-top: 0;
}

/* The Range Slider Component */
.slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--muted);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

/* Slider Thumb styling (Chrome/Safari/Edge) */
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent3);
    border: 2px solid var(--B_text);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Slider Thumb styling (Firefox) */
.slider-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--accent3);
    border: 2px solid var(--B_text);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Button Group Enhancements */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.smoke-btn {
    flex: 1;
    padding: 10px 0;
    background: var(--A_bg);
    border: 1px solid var(--border);
    color: var(--A_text);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.smoke-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

.smoke-btn.active {
    border-color: var(--accent3);
    color: var(--B_bg);
    background: var(--B_text);
    font-weight: 600;
}