/* ============================================================================
   MYSTICAL.BOO - Skeuomorphic Instrument Cockpit Stylesheet
   ============================================================================ */

/* ============================================================================
   RESET & BASE
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2455 100%);
    font-family: "IBM Plex Mono", monospace;
    color: #e8e0f0;
    overflow: hidden;
    position: relative;
    animation: radarPulse 8s ease-in-out infinite;
}

@keyframes radarPulse {
    0%, 100% {
        box-shadow: inset 0 0 60px rgba(57, 255, 133, 0.05);
    }
    50% {
        box-shadow: inset 0 0 60px rgba(57, 255, 133, 0.15);
    }
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

body {
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    line-height: 1.7;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dial-inscription-text {
    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    fill: #e8e0f0;
    opacity: 0.8;
}

.panel-title {
    font-size: clamp(1rem, 2vw, 1.6rem);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.gauge-title {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.annotation, .panel-annotation, .gauge-note {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    font-weight: 300;
    font-style: italic;
    opacity: 0.7;
}

/* ============================================================================
   AURORA BACKGROUND
   ============================================================================ */

#aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#aurora-svg {
    width: 100%;
    height: 100%;
    filter: blur(2px);
}

.aurora-path {
    will-change: transform;
}

.aurora-path-1 {
    animation: auroraFloat1 25s ease-in-out infinite;
}

.aurora-path-2 {
    animation: auroraFloat2 33s ease-in-out infinite;
}

.aurora-path-3 {
    animation: auroraFloat3 41s ease-in-out infinite;
}

.aurora-path-4 {
    animation: auroraFloat4 47s ease-in-out infinite;
}

@keyframes auroraFloat1 {
    0%, 100% {
        transform: translateY(-5vh) scaleX(0.9);
    }
    50% {
        transform: translateY(5vh) scaleX(1.1);
    }
}

@keyframes auroraFloat2 {
    0%, 100% {
        transform: translateY(5vh) scaleX(1.1);
    }
    50% {
        transform: translateY(-5vh) scaleX(0.95);
    }
}

@keyframes auroraFloat3 {
    0%, 100% {
        transform: translateY(-3vh) scaleX(0.95);
    }
    50% {
        transform: translateY(4vh) scaleX(1.05);
    }
}

@keyframes auroraFloat4 {
    0%, 100% {
        transform: translateY(3vh) scaleX(1.05);
    }
    50% {
        transform: translateY(-4vh) scaleX(0.98);
    }
}

/* ============================================================================
   FLOATING PARTICLES
   ============================================================================ */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #39ff85;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
    box-shadow: 0 0 8px rgba(57, 255, 133, 0.5);
}

/* Generated particle animations via JavaScript */

/* ============================================================================
   RADAR PULSE
   ============================================================================ */

#radar-pulse {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmin;
    height: 100vmin;
    margin-left: -50vmin;
    margin-top: -50vmin;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: radarSweep 8s ease-in-out infinite;
}

@keyframes radarSweep {
    0% {
        box-shadow: inset 0 0 20px rgba(57, 255, 133, 0.1),
                    inset 0 0 40px rgba(185, 103, 255, 0.05);
    }
    50% {
        box-shadow: inset 0 0 40px rgba(57, 255, 133, 0.2),
                    inset 0 0 80px rgba(185, 103, 255, 0.1);
    }
    100% {
        box-shadow: inset 0 0 20px rgba(57, 255, 133, 0.1),
                    inset 0 0 40px rgba(185, 103, 255, 0.05);
    }
}

/* ============================================================================
   COMPASS ROSE NAVIGATION
   ============================================================================ */

#compass-rose {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: clamp(80px, 10vw, 140px);
    height: clamp(80px, 10vw, 140px);
    z-index: 100;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#compass-rose:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(57, 255, 133, 0.6));
}

.compass-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

#compass-needle {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 60px 60px;
    text-shadow: 0 0 12px #39ff85, 0 0 24px rgba(57, 255, 133, 0.4);
}

.compass-label {
    position: absolute;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e8e0f0;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(57, 255, 133, 0.4);
    pointer-events: none;
}

#compass-rose:hover .compass-label {
    opacity: 0.9;
}

.compass-label-n {
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
}

.compass-label-e {
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
}

.compass-label-s {
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
}

.compass-label-w {
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================================================
   PANEL OVERLAY (for expanded states)
   ============================================================================ */

#panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(10, 10, 26, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

#panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================================
   INSTRUMENT PANELS - BASE STYLES
   ============================================================================ */

.instrument-panel {
    position: fixed;
    backdrop-filter: blur(12px) saturate(1.4);
    background: rgba(20, 18, 40, 0.65);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    cursor: pointer;
}

.instrument-panel:hover {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(57, 255, 133, 0.3));
}

.instrument-panel.expanded {
    backdrop-filter: blur(0px);
    background: rgba(20, 18, 40, 0.95);
    z-index: 75;
}

/* Rivets on all panels */
.rivet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e8a042, #8b6914);
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.5),
                0 1px 2px rgba(255, 255, 255, 0.2);
}

.rivet-tl { top: -4px; left: -4px; }
.rivet-tr { top: -4px; right: -4px; }
.rivet-bl { bottom: -4px; left: -4px; }
.rivet-br { bottom: -4px; right: -4px; }

/* ============================================================================
   CENTER DIAL
   ============================================================================ */

#center-dial {
    top: 50%;
    left: 50%;
    width: clamp(200px, 60vw, 900px);
    height: clamp(200px, 60vw, 900px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#center-dial.expanded {
    width: 90vw;
    height: 90vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
}

.dial-bezel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #1a1a3e, #0a0a1a);
    box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.1),
        inset -2px -2px 6px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(201, 168, 76, 0.2),
        0 4px 12px rgba(57, 255, 133, 0.1);
    border: 2px solid #c9a84c;
}

.dial-glass {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(50, 45, 80, 0.3), rgba(20, 18, 40, 0.7));
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.dial-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(57, 255, 133, 0.08), transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(185, 103, 255, 0.05), transparent 50%);
}

.dial-inscription-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.calibration-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-image:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg 2.5deg,
            rgba(201, 168, 76, 0.3) 2.5deg 3deg
        );
}

.dial-needle {
    position: absolute;
    width: 4px;
    height: 35%;
    top: 15%;
    left: 50%;
    margin-left: -2px;
    z-index: 5;
    animation: needleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

@keyframes needleBounce {
    0% {
        transform: rotate(-45deg);
    }
    60% {
        transform: rotate(75deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

.needle-shaft {
    position: absolute;
    width: 100%;
    height: 85%;
    background: linear-gradient(90deg, transparent, #39ff85 50%, transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px #39ff85, 0 0 24px rgba(57, 255, 133, 0.5);
    transform-origin: center bottom;
}

.needle-cap {
    position: absolute;
    width: 10px;
    height: 10px;
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    background: radial-gradient(circle at 35% 35%, #c9a84c, #8b6914);
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.5),
                0 0 8px rgba(57, 255, 133, 0.4);
}

.dial-reading {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
}

.reading-label {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 300;
    font-style: italic;
    opacity: 0.7;
}

.reading-value {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #39ff85;
    text-shadow: 0 0 12px #39ff85;
    margin: 0.25rem 0;
}

.reading-unit {
    display: block;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    opacity: 0.6;
}

#center-dial.expanded .dial-bezel {
    background: radial-gradient(circle at 40% 40%, #0a0a1a, #1a1a3e);
}

#center-dial.expanded .panel-content {
    display: block;
    position: absolute;
    bottom: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 800px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    padding: 2rem;
    border-radius: 8px;
    color: #e8e0f0;
    margin-top: 2rem;
}

/* ============================================================================
   LEFT CLUSTER
   ============================================================================ */

#left-cluster {
    top: 4vh;
    left: 2vw;
    width: clamp(120px, 20vw, 350px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.gauge-cluster {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.square-gauge {
    position: relative;
    aspect-ratio: 1;
    background: rgba(20, 18, 40, 0.65);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.square-gauge:hover {
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(57, 255, 133, 0.2));
}

.gauge-glass {
    position: absolute;
    inset: 8px;
    border-radius: 2px;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gauge-content {
    text-align: center;
    width: 100%;
    padding: 0.5rem;
}

.gauge-value {
    display: block;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: #b967ff;
    text-shadow: 0 0 12px #b967ff, 0 0 24px rgba(185, 103, 255, 0.3);
    letter-spacing: 0.1em;
    margin: 0.25rem 0;
}

.gauge-unit {
    display: block;
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    opacity: 0.6;
}

.gauge-note {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    opacity: 0.5;
}

#left-cluster.expanded {
    width: 80vw;
    max-width: 600px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
}

#left-cluster.expanded .gauge-cluster {
    flex-direction: row;
}

#left-cluster.expanded .square-gauge {
    flex: 1;
    aspect-ratio: 1;
}

#left-cluster.expanded .panel-content {
    display: block;
    position: absolute;
    bottom: -12vh;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    max-width: 700px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

/* ============================================================================
   RIGHT GAUGE (Mercury Thermometer)
   ============================================================================ */

#right-gauge {
    top: 4vh;
    right: 2vw;
    width: clamp(100px, 18vw, 280px);
    height: clamp(250px, 40vh, 600px);
}

.thermometer-gauge {
    position: relative;
    width: 100%;
    height: 100%;
}

.thermo-glass {
    position: absolute;
    inset: 8px;
    border-radius: 2px;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    overflow: hidden;
}

.thermo-scale {
    position: absolute;
    left: 10%;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1rem 0;
    z-index: 2;
}

.scale-mark {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    font-weight: 300;
    font-style: italic;
    writing-mode: horizontal-tb;
    opacity: 0.6;
    white-space: nowrap;
}

.mercury-tube {
    position: absolute;
    right: 20%;
    top: 5%;
    width: 20px;
    height: 90%;
    border: 2px solid #c9a84c;
    border-radius: 10px 10px 15px 15px;
    background: linear-gradient(90deg, rgba(30, 30, 50, 0.5), rgba(10, 10, 26, 0.8));
    overflow: hidden;
    box-shadow: inset -1px 0 2px rgba(255, 255, 255, 0.2),
                inset 1px 0 2px rgba(0, 0, 0, 0.5);
}

.mercury-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(90deg, #b87333, #c9a84c, #b87333);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.5),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: mercurySettle 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mercurySettle {
    0% {
        height: 10%;
    }
    50% {
        height: 45%;
    }
    100% {
        height: 35%;
    }
}

.mercury-bulb {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #b87333, #8b6914);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                0 0 12px rgba(201, 168, 76, 0.3);
}

.thermo-label {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
}

.thermo-title {
    display: block;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.thermo-value {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 300;
    font-style: italic;
    color: #b967ff;
    text-shadow: 0 0 12px #b967ff;
}

#right-gauge.expanded {
    width: 35vw;
    max-width: 500px;
    height: 70vh;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
}

#right-gauge.expanded .panel-content {
    display: block;
    position: absolute;
    right: -45vw;
    top: 0;
    width: 40vw;
    max-width: 500px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    padding: 1.5rem;
    border-radius: 4px;
    color: #e8e0f0;
}

/* ============================================================================
   BOTTOM STRIP (Periscope)
   ============================================================================ */

#bottom-strip {
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(200px, 80vw, 95vw);
    height: clamp(80px, 15vh, 200px);
}

.periscope-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.periscope-glass {
    position: absolute;
    inset: 8px;
    border-radius: 2px;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(8px);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.periscope-scroll {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    animation: scrollHint 1s ease-out;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
}

@keyframes scrollHint {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.sighting {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: max-content;
}

.sighting-label {
    display: block;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #c9a84c;
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
}

.sighting-text {
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    line-height: 1.5;
    max-width: 300px;
    opacity: 0.85;
}

.periscope-border-left,
.periscope-border-right {
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(26, 26, 62, 0.9),
        transparent);
    z-index: 2;
    pointer-events: none;
}

.periscope-border-left {
    left: 0;
}

.periscope-border-right {
    right: 0;
    background: linear-gradient(270deg,
        rgba(26, 26, 62, 0.9),
        transparent);
}

#bottom-strip.expanded {
    width: 85vw;
    height: auto;
    max-height: 60vh;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

#bottom-strip.expanded .periscope-scroll {
    flex-direction: column;
    overflow-y: auto;
    max-height: 50vh;
    gap: 1.5rem;
}

#bottom-strip.expanded .sighting {
    min-width: 100%;
}

#bottom-strip.expanded .panel-content {
    display: block;
    position: absolute;
    bottom: -12vh;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    max-width: 700px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid #b87333;
    outline: 3px solid #c9a84c;
    outline-offset: 3px;
    padding: 1.5rem;
    border-radius: 4px;
    color: #e8e0f0;
}

/* ============================================================================
   PANEL CONTENT (Expanded Details)
   ============================================================================ */

.panel-content {
    display: none;
}

.panel-body {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.panel-annotation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    opacity: 0.7;
}

/* ============================================================================
   INTERACTION STATES
   ============================================================================ */

.instrument-panel.expanded + #panel-overlay.active ~ .instrument-panel:not(.expanded) {
    opacity: 0.4;
    filter: blur(4px) brightness(0.7);
    pointer-events: none;
}

.instrument-panel.expanded {
    filter: brightness(1.1) drop-shadow(0 0 30px rgba(57, 255, 133, 0.4));
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    #center-dial {
        width: clamp(160px, 70vw, 400px);
        height: clamp(160px, 70vw, 400px);
    }

    #center-dial.expanded {
        width: 90vw;
        height: 90vw;
    }

    #left-cluster {
        width: clamp(100px, 22vw, 280px);
    }

    #right-gauge {
        width: clamp(85px, 16vw, 200px);
        height: clamp(200px, 35vh, 400px);
    }

    #compass-rose {
        top: 1rem;
        right: 1rem;
        width: clamp(70px, 12vw, 100px);
        height: clamp(70px, 12vw, 100px);
    }

    .compass-label {
        font-size: clamp(0.6rem, 1vw, 0.8rem);
    }

    .compass-label-n {
        top: -2.5rem;
    }

    .compass-label-e {
        right: -2.5rem;
    }

    .compass-label-s {
        bottom: -2.5rem;
    }

    .compass-label-w {
        left: -2.5rem;
    }
}

@media (max-width: 480px) {
    #center-dial {
        width: 80vw;
        height: 80vw;
    }

    #left-cluster {
        width: 24vw;
        gap: 0.5rem;
        padding: 0.25rem;
    }

    #right-gauge {
        width: 18vw;
        height: 40vh;
    }

    #bottom-strip {
        width: 95vw;
        height: 12vh;
    }

    #compass-rose {
        width: clamp(60px, 15vw, 80px);
        height: clamp(60px, 15vw, 80px);
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    }
}
