/* ============================================
   bada.casa - Skeuomorphic Data-Craft
   Sunset-Warm Palette | Parallax Rooms
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --espresso-shadow: #1A0D05;
    --adobe-clay: #C4663A;
    --brushed-copper: #B87333;
    --sunset-orange: #E85D26;
    --amber-gold: #F2A922;
    --cream-light: #FFF5E6;
    --dark-walnut: #3D2B1F;
    --warm-sienna: #8B5E3C;
    --deep-espresso: #2C1A0E;
    --aurora-teal: #3ECFB2;
    --aurora-violet: #9B72CF;
    --copper-light: #D4A574;
    --glass-frost: rgba(255, 245, 230, 0.25);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: var(--dark-walnut);
    background: var(--espresso-shadow);
    overflow-x: hidden;
    line-height: 1.7;
}

/* --- Typography --- */
.room-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 6vw, 80px);
    color: var(--deep-espresso);
    text-shadow: 1px 1px 0 rgba(255, 245, 230, 0.3), -1px -1px 0 rgba(0, 0, 0, 0.15);
}

.gauge-label, .toggle-name, .toggle-label-top, .toggle-label-bottom {
    font-family: 'Varela Round', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-sienna);
}

.readout-value {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    color: var(--sunset-orange);
}

.desk-text, .workshop-desc, .observatory-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: var(--dark-walnut);
    line-height: 1.7;
}

/* --- Room System --- */
.room {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.layer-bg { z-index: 1; }
.layer-mid { z-index: 2; }
.layer-fg { z-index: 3; }
.layer-overlay { z-index: 4; pointer-events: none; }

/* --- Wall Textures --- */
.wall-texture {
    width: 100%;
    height: 100%;
}

.foyer-wall {
    background:
        repeating-linear-gradient(
            87deg,
            rgba(139, 94, 60, 0.04) 0px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #C4663A 0%, #8B5E3C 60%, #3D2B1F 100%);
}

.study-wall {
    background:
        repeating-linear-gradient(
            92deg,
            rgba(61, 43, 31, 0.06) 0px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(180deg, #8B5E3C 0%, #5A3A24 40%, #3D2B1F 100%);
}

.workshop-wall {
    background:
        repeating-linear-gradient(
            88deg,
            rgba(26, 13, 5, 0.05) 0px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #3D2B1F 0%, #2C1A0E 50%, #1A0D05 100%);
}

/* --- Compass Rose --- */
#compass-rose {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
}

.compass-body {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--copper-light) 0%, var(--brushed-copper) 30%, var(--warm-sienna) 60%, var(--brushed-copper) 90%, var(--copper-light) 100%);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 245, 230, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-needle {
    width: 3px;
    height: 22px;
    background: linear-gradient(180deg, var(--sunset-orange) 0%, var(--amber-gold) 100%);
    border-radius: 2px;
    position: absolute;
    transform-origin: center bottom;
    bottom: 50%;
    left: calc(50% - 1.5px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.3);
}

.compass-markings {
    display: none;
}

/* --- Dust Motes --- */
.dust-mote {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 245, 230, 0.5);
    left: var(--x);
    top: var(--y);
    animation: dustFloat 8s ease-in-out var(--delay) infinite;
    box-shadow: 0 0 6px rgba(242, 169, 34, 0.3);
}

.dust-mote.warm {
    background: rgba(242, 169, 34, 0.4);
    box-shadow: 0 0 8px rgba(242, 169, 34, 0.4);
}

@keyframes dustFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-10px, -35px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(20px, -15px) scale(1.1); opacity: 0.6; }
}

/* =============================================
   ROOM 1: THE FOYER
   ============================================= */
.foyer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

/* --- Gauges (Shared) --- */
.gauge {
    position: relative;
}

.gauge-large {
    width: clamp(280px, 40vw, 400px);
    height: clamp(280px, 40vw, 400px);
}

.gauge-small {
    width: 120px;
    height: 120px;
}

.gauge-bezel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--copper-light) 0%, var(--brushed-copper) 30%, var(--warm-sienna) 60%, var(--brushed-copper) 90%, var(--copper-light) 100%);
    padding: 8px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 245, 230, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.gauge-large .gauge-bezel {
    padding: 12px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 245, 230, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.gauge-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 40% 35%, #FFF5E6 0%, #F5E6D0 30%, #E8D5BC 70%, #D4C4A8 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Scale Markings */
.gauge-scale {
    position: absolute;
    width: 100%;
    height: 100%;
}

.scale-marking {
    position: absolute;
    width: 2px;
    height: 14px;
    background: var(--dark-walnut);
    top: 8%;
    left: calc(50% - 1px);
    transform-origin: center calc(50vh - 8%);
    transform-origin: 50% 300%;
    transform: rotate(calc(var(--angle) - 135deg));
}

.gauge-large .scale-marking {
    width: 3px;
    height: 20px;
    top: 6%;
}

.scale-marking span {
    font-family: 'Varela Round', sans-serif;
    font-size: 10px;
    color: var(--warm-sienna);
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) rotate(calc(-1 * (var(--angle) - 135deg)));
    white-space: nowrap;
}

.gauge-large .scale-marking span {
    font-size: 13px;
    top: 24px;
}

/* Gauge Needle */
.gauge-needle {
    position: absolute;
    width: 4px;
    height: 40%;
    background: linear-gradient(180deg, var(--sunset-orange) 0%, #C43A1A 100%);
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: center bottom;
    transform: rotate(-135deg);
    border-radius: 2px 2px 0 0;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.gauge-large .gauge-needle {
    width: 5px;
    height: 42%;
}

.gauge-pivot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #D4A574 0%, #8B5E3C 70%, #3D2B1F 100%);
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    z-index: 4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gauge-large .gauge-pivot {
    width: 22px;
    height: 22px;
    top: calc(50% - 11px);
    left: calc(50% - 11px);
}

.gauge-readout {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.gauge-large .gauge-readout {
    bottom: 25%;
}

.gauge-large .readout-value {
    font-size: 42px;
}

.gauge-small .readout-value {
    font-size: 22px;
}

/* Glass Overlay */
.gauge-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 5;
    pointer-events: none;
}

.gauge-label {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.2em;
}

/* --- Nameplate --- */
.nameplate {
    margin-top: 40px;
    padding: 16px 48px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(139, 94, 60, 0.08) 0px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(135deg, #8B5E3C 0%, #6B4830 50%, #8B5E3C 100%);
    border-radius: 6px;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 245, 230, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.nameplate-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--cream-light);
    text-shadow:
        0 -1px 0 rgba(0, 0, 0, 0.4),
        0 1px 1px rgba(255, 245, 230, 0.1);
    letter-spacing: 0.05em;
}

/* Scroll Hint */
.scroll-hint {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint-text {
    font-family: 'Varela Round', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 245, 230, 0.5);
    margin-bottom: 8px;
}

.scroll-hint-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(255, 245, 230, 0.4);
    border-bottom: 2px solid rgba(255, 245, 230, 0.4);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* =============================================
   ROOM 2: THE STUDY
   ============================================= */
.study-frames {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 60px 40px;
    flex-wrap: wrap;
}

.frame-panel {
    background:
        repeating-linear-gradient(
            93deg,
            rgba(61, 43, 31, 0.12) 0px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(135deg, #6B4830 0%, #4A3020 40%, #6B4830 80%, #4A3020 100%);
    padding: 16px;
    border-radius: 3px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(212, 165, 116, 0.2);
}

.frame-mat {
    background: var(--cream-light);
    padding: 12px;
    border: 1px solid #D4C4A8;
}

.chart-paper {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(139, 94, 60, 0.03) 0px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #F5E6D0 0%, #EDE0CC 100%);
    position: relative;
}

.chart-paper canvas {
    display: block;
}

#frame-area .chart-paper canvas { width: 320px; height: 200px; }
#frame-bar .chart-paper canvas { width: 280px; height: 200px; }
#frame-scatter .chart-paper canvas { width: 240px; height: 200px; }

.study-desk {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 60px;
}

.desk-surface {
    background:
        repeating-linear-gradient(
            88deg,
            rgba(139, 94, 60, 0.08) 0px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(135deg, #8B5E3C 0%, #6B4830 50%, #5A3A24 100%);
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(212, 165, 116, 0.2);
    max-width: 600px;
}

.card-stock {
    background: var(--cream-light);
    padding: 30px;
    box-shadow: inset 0 0 0 1px rgba(61, 43, 31, 0.1);
}

.card-stock .room-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.card-stock .desk-text {
    margin-bottom: 12px;
    font-size: 15px;
}

.card-stock .desk-text:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--warm-sienna);
}

/* =============================================
   ROOM 3: THE WORKSHOP
   ============================================= */
.workshop-bench {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

.workshop-title {
    color: var(--cream-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.workshop-desc {
    color: var(--copper-light);
    max-width: 500px;
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
}

.workshop-instruments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
    padding: 40px;
}

/* Toggle Switches */
.toggle-panel {
    display: flex;
    gap: 36px;
    align-items: center;
}

.toggle-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-housing {
    width: 44px;
    height: 80px;
    background: linear-gradient(135deg, #555 0%, #333 50%, #555 100%);
    border-radius: 6px;
    position: relative;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.toggle-label-top, .toggle-label-bottom {
    font-size: 8px;
    letter-spacing: 0.15em;
    color: rgba(255, 245, 230, 0.5);
}

.toggle-cap {
    width: 22px;
    height: 30px;
    background: linear-gradient(180deg, var(--sunset-orange) 0%, #C43A1A 100%);
    border-radius: 4px;
    position: absolute;
    top: 42px;
    left: 11px;
    transition: top 0.15s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-switch[data-state="on"] .toggle-cap {
    top: 8px;
    background: linear-gradient(180deg, var(--amber-gold) 0%, var(--sunset-orange) 100%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(242, 169, 34, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-name {
    font-size: 10px;
    margin-top: 8px;
    letter-spacing: 0.2em;
}

/* Sparkline Recorder */
.sparkline-recorder {
    width: min(600px, 90vw);
}

.recorder-housing {
    background: linear-gradient(135deg, #555 0%, #3A3A3A 50%, #555 100%);
    padding: 12px 24px;
    border-radius: 8px;
    position: relative;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.recorder-paper {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(139, 94, 60, 0.06) 0px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(139, 94, 60, 0.04) 0px,
            transparent 1px,
            transparent 20px
        ),
        linear-gradient(180deg, #F5E6D0 0%, #EDE0CC 100%);
    border-radius: 2px;
    overflow: hidden;
}

.recorder-paper canvas {
    display: block;
    width: 100%;
    height: 150px;
}

.recorder-perforations {
    position: absolute;
    top: 0;
    height: 100%;
    width: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 15px 0;
}

.recorder-perforations.left { left: 8px; }
.recorder-perforations.right { right: 8px; }

.recorder-perforations::before,
.recorder-perforations::after {
    content: '';
    display: block;
}

/* Workshop Gauge Row */
.gauge-row {
    display: flex;
    gap: 40px;
}

/* =============================================
   ROOM 4: THE OBSERVATORY
   ============================================= */
#room-observatory {
    background: linear-gradient(180deg, #1A0D05 0%, #0A0505 30%, #050210 70%, #0A0A20 100%);
}

.observatory-sky {
    width: 100%;
    height: 100%;
    position: relative;
}

.observatory-sky canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Aurora Ribbons */
.aurora-ribbons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    overflow: hidden;
    pointer-events: none;
}

.aurora-ribbon {
    position: absolute;
    width: 200%;
    height: 60px;
    left: -50%;
    opacity: 0.5;
    filter: blur(20px);
}

.ribbon-1 {
    top: 15%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--aurora-teal) 20%,
        var(--aurora-violet) 50%,
        var(--aurora-teal) 80%,
        transparent 100%
    );
    animation: auroraFlow1 12s ease-in-out infinite;
}

.ribbon-2 {
    top: 25%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--aurora-violet) 15%,
        var(--aurora-teal) 45%,
        var(--aurora-violet) 75%,
        transparent 100%
    );
    animation: auroraFlow2 15s ease-in-out infinite;
    opacity: 0.35;
    height: 40px;
}

.ribbon-3 {
    top: 10%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--aurora-teal) 30%,
        rgba(62, 207, 178, 0.3) 50%,
        var(--aurora-violet) 70%,
        transparent 100%
    );
    animation: auroraFlow3 18s ease-in-out infinite;
    opacity: 0.25;
    height: 80px;
}

@keyframes auroraFlow1 {
    0%, 100% { transform: translateX(-10%) scaleY(1); }
    33% { transform: translateX(5%) scaleY(1.3); }
    66% { transform: translateX(-5%) scaleY(0.8); }
}

@keyframes auroraFlow2 {
    0%, 100% { transform: translateX(5%) scaleY(1); }
    50% { transform: translateX(-10%) scaleY(1.5); }
}

@keyframes auroraFlow3 {
    0%, 100% { transform: translateX(0%) scaleY(1); opacity: 0.25; }
    25% { transform: translateX(-8%) scaleY(1.2); opacity: 0.4; }
    75% { transform: translateX(8%) scaleY(0.7); opacity: 0.2; }
}

.observatory-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.observatory-title {
    color: var(--cream-light);
    text-shadow: 0 0 20px rgba(62, 207, 178, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.observatory-text {
    color: rgba(255, 245, 230, 0.7);
    max-width: 500px;
    margin-top: 16px;
    margin-bottom: 40px;
}

.observatory-instruments {
    display: flex;
    gap: 40px;
}

/* Aurora-themed gauge overrides */
.aurora-bezel {
    background: linear-gradient(135deg, #2A2A3A 0%, #1A1A2A 50%, #2A2A3A 100%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(62, 207, 178, 0.1),
        inset 0 1px 2px rgba(62, 207, 178, 0.2);
}

.aurora-face {
    background: radial-gradient(ellipse at 40% 35%, #1A1A2A 0%, #0F0F1A 50%, #050510 100%);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.aurora-needle {
    background: linear-gradient(180deg, var(--aurora-teal) 0%, var(--aurora-violet) 100%);
    box-shadow: 0 0 8px rgba(62, 207, 178, 0.4);
}

.aurora-value {
    color: var(--aurora-teal);
}

.aurora-label {
    color: rgba(62, 207, 178, 0.7);
}

/* Particle Canvas */
#particle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* =============================================
   ROOM 5: THE PORCH
   ============================================= */
.porch-sunset {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        #F2A922 0%,
        #E85D26 25%,
        #C4663A 50%,
        #8B5E3C 75%,
        #3D2B1F 100%
    );
}

.porch-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

/* Gauge Cluster */
.gauge-cluster {
    margin-bottom: 60px;
}

.gauge-cluster-housing {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, var(--copper-light) 0%, var(--brushed-copper) 30%, var(--warm-sienna) 60%, var(--brushed-copper) 90%, var(--copper-light) 100%);
    padding: 24px 36px;
    border-radius: 12px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 245, 230, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Wooden Plaque */
.wooden-plaque {
    background:
        repeating-linear-gradient(
            93deg,
            rgba(61, 43, 31, 0.1) 0px,
            transparent 1px,
            transparent 6px
        ),
        linear-gradient(135deg, #6B4830 0%, #5A3A24 50%, #6B4830 100%);
    padding: 24px 48px;
    border-radius: 6px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(212, 165, 116, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.plaque-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--cream-light);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    font-style: italic;
    max-width: 400px;
}

/* =============================================
   MAGNETIC ELEMENT HOVER STYLES
   ============================================= */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .study-frames {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .frame-panel {
        padding: 10px;
    }

    #frame-area .chart-paper canvas,
    #frame-bar .chart-paper canvas,
    #frame-scatter .chart-paper canvas {
        width: 240px;
        height: 150px;
    }

    .toggle-panel {
        gap: 20px;
    }

    .gauge-cluster-housing {
        flex-direction: row;
        gap: 16px;
        padding: 16px 20px;
    }

    .gauge-small {
        width: 90px;
        height: 90px;
    }

    .desk-surface {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .gauge-large {
        width: 240px;
        height: 240px;
    }

    .toggle-panel {
        gap: 14px;
    }

    .toggle-housing {
        width: 36px;
        height: 66px;
    }

    .toggle-cap {
        width: 18px;
        height: 24px;
        left: 9px;
        top: 36px;
    }

    .toggle-switch[data-state="on"] .toggle-cap {
        top: 6px;
    }

    .observatory-instruments {
        gap: 20px;
    }

    .gauge-small {
        width: 80px;
        height: 80px;
    }

    .gauge-small .readout-value {
        font-size: 16px;
    }
}
