/* ==========================================================================
   LAL PARI — MSRTC BUS JOURNEY STYLESHEET
   VINTAGE BUS CABIN DASHBOARD (Inspired by Img 2)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Mukta:wght@400;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --dash-red:        #8B1A1A;
    --dash-red-dark:   #5c0f0f;
    --dash-red-light:  #a82020;
    --chrome:          #c0c0c0;
    --chrome-bright:   #e8e8e8;
    --chrome-dark:     #808080;
    --gauge-bg:        #1a1a1a;
    --gauge-face:      #222;
    --amber:           #ff9800;
    --amber-glow:      rgba(255,152,0,0.9);
    --led-green:       #22c55e;
    --needle-red:      #ef4444;
    --font-display:    'Baloo 2', cursive, sans-serif;
    --font-mono:       'Space Mono', monospace;
    --font-dash:       'Orbitron', monospace;
    --font-body:       'Mukta', sans-serif;
    --scroll-speed:    2s;
    --wheel-speed:     0.6s;
    --bounce-speed:    1.2s;
}

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

html, body {
    width: 100%; height: 100%;
    overflow-x: hidden;
    background: #0b0f1a;
    font-family: var(--font-body);
    color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   VINTAGE BUS DASHBOARD — Full Instrument Panel (Super Compact)
   ========================================================================== */

.vintage-bus-dashboard {
    position: relative;
    width: 100%;
    height: 120px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(200,50,50,0.18) 0%, transparent 70%),
        linear-gradient(180deg, #7a1515 0%, #8B1A1A 30%, #7c1616 70%, #5c0f0f 100%);
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 6px 30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, margin-bottom 0.2s ease;
}

.vintage-bus-dashboard.engine-vibrate-active {
    animation: dashVibrate 0.1s infinite alternate ease-in-out;
}
@keyframes dashVibrate {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-0.8px); }
}

.vintage-bus-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 2px at 8px 8px, #6b1111 50%, transparent 50%),
        radial-gradient(circle 2px at 8px calc(100% - 8px), #6b1111 50%, transparent 50%),
        radial-gradient(circle 2px at calc(100% - 8px) 8px, #6b1111 50%, transparent 50%),
        radial-gradient(circle 2px at calc(100% - 8px) calc(100% - 8px), #6b1111 50%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---- TOP INFO BAR ---- */
.dash-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(245,158,11,0.2);
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.08) 100%);
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 4px;
}
.brand-name .flag { font-size: 13px; }
.brand-name h1 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: #fef3c7;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1;
}

/* LED Destination Board */
.led-dest-board {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #020817;
    border: 1px solid var(--amber);
    border-radius: 4px;
    padding: 1px 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.9);
}

.led-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 5px var(--amber-glow);
    animation: ledPulse 1.4s infinite alternate;
}
@keyframes ledPulse {
    0%  { opacity: 0.3; box-shadow: 0 0 1px var(--amber-glow); }
    100%{ opacity: 1;   box-shadow: 0 0 8px var(--amber-glow); }
}

.led-dest-text {
    font-family: var(--font-dash);
    font-size: 9px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---- MAIN INSTRUMENT PANEL ---- */
.dash-instrument-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
    padding: 0 10px;
    gap: 4px;
}

/* Left / Right Speaker Grills */
.speaker-grill-v {
    width: 32px;
    height: 80px;
    background:
        repeating-linear-gradient(180deg,
            #5a0e0e 0px, #5a0e0e 3px,
            #7a1515 3px, #7a1515 6px
        );
    border: 1.5px solid #3d0909;
    border-radius: 4px;
    box-shadow: inset 1px 0 3px rgba(0,0,0,0.5), inset -1px 0 3px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

/* ---- LEFT GAUGE CLUSTER ---- */
.left-gauges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* Analog Gauge (RPM) — CSS Art */
.analog-gauge {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #2e2e2e, #111);
    border: 2px solid var(--chrome);
    box-shadow:
        0 0 0 1px #444,
        0 3px 6px rgba(0,0,0,0.8),
        inset 0 1px 2px rgba(255,255,255,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.analog-gauge .gauge-ring {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.08);
}

.analog-gauge .gauge-label {
    position: absolute;
    bottom: 8px;
    font-family: var(--font-dash);
    font-size: 4px;
    color: #bbb;
    letter-spacing: 0.2px;
    z-index: 3;
}

.analog-gauge .gauge-ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* Tick marks via box-shadow trick on SVG */
.gauge-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* Needle */
.gauge-needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 1.5px;
    height: 18px;
    background: linear-gradient(180deg, var(--needle-red) 0%, var(--needle-red) 60%, #111 100%);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-130deg);
    border-radius: 1px 1px 0 0;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-center-dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ef4444;
    border: 1px solid #fff;
    z-index: 6;
    box-shadow: 0 0 3px rgba(239,68,68,0.8);
}

/* Ignition Key Mechanism */
.ignition-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; padding: 2px;
}
.ignition-ring {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #64748b 0%, #334155 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8), inset 0 1px 2px rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ignition-keyhole {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
    position: relative;
}
.ignition-key {
    position: absolute;
    top: 50%; left: 50%;
    width: 1.5px; height: 10px;
    background: linear-gradient(90deg, #e2e8f0, #94a3b8);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ignition-key::after {
    content: ''; position: absolute;
    top: -7px; left: -3px;
    width: 7.5px; height: 6px;
    background: #1e293b;
    border: 0.5px solid #475569;
    border-radius: 2px;
    border-top-left-radius: 4px; border-top-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.ignition-block.active .ignition-key {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ON/OFF Toggle Switches Row */
.toggle-switches-row {
    display: flex;
    gap: 3px;
    background: #1a0505;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 2px 4px;
    box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.7);
}

.dash-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.toggle-body {
    width: 13px;
    height: 20px;
    background: linear-gradient(180deg, #2a2a2a, #111);
    border: 0.8px solid #444;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.8);
    overflow: hidden;
}

.toggle-body::before {
    content: 'ON';
    position: absolute;
    top: 1px; left: 0; right: 0;
    font-family: var(--font-dash);
    font-size: 3.5px;
    text-align: center;
    color: #22c55e;
    font-weight: 700;
}

.toggle-body::after {
    content: 'OFF';
    position: absolute;
    bottom: 1px; left: 0; right: 0;
    font-family: var(--font-dash);
    font-size: 3.5px;
    text-align: center;
    color: #ef4444;
    font-weight: 700;
}

.toggle-lever {
    position: absolute;
    top: 50%;
    left: 1.5px; right: 1.5px;
    height: 6px;
    background: linear-gradient(180deg, var(--chrome-bright), var(--chrome-dark));
    border-radius: 1px;
    transform: translateY(-50%);
    transition: top 0.15s ease;
    box-shadow: 0 0.8px 1.5px rgba(0,0,0,0.5);
}

.dash-toggle.active .toggle-lever {
    top: 25%;
}

.toggle-label {
    font-family: var(--font-dash);
    font-size: 3.8px;
    color: #999;
    white-space: nowrap;
}

/* ---- CENTER — TV MONITOR + SPEEDOMETER ---- */
.center-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 140px;
    height: 95px;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* YouTube Monitor (looks like a CRT/dashboard screen) */
.dash-monitor {
    width: 120px;
    background: #0a0a0a;
    border: 2px solid var(--chrome);
    border-radius: 4px 4px 3px 3px;
    box-shadow:
        0 0 0 0.8px #444,
        0 2px 8px rgba(0,0,0,0.9),
        inset 0 0 6px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
}

/* Monitor top bezel bar */
.monitor-bezel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 4px;
    background: linear-gradient(180deg, #1a1a1a, #111);
    border-bottom: 0.8px solid #333;
}

.monitor-power-led {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: 0 0 3px var(--led-green);
    animation: ledPulse 1.8s infinite alternate;
}

.monitor-title {
    font-family: var(--font-dash);
    font-size: 5px;
    color: var(--amber);
    letter-spacing: 0.5px;
}

.monitor-brand {
    font-family: var(--font-dash);
    font-size: 4px;
    color: #555;
}

/* Screen area */
.monitor-screen {
    width: 100%;
    height: 48px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.monitor-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 2.5px);
    pointer-events: none;
    z-index: 10;
}

.monitor-screen #yt-player,
.monitor-screen iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Monitor control buttons styling */
.monitor-control-btn {
    transition: all 0.1s ease;
}
.monitor-control-btn:hover {
    color: var(--amber) !important;
    text-shadow: 0 0 4px var(--amber-glow);
    transform: scale(1.2);
}

/* Main Speedometer — Large Analog */
.main-speedometer {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 38%, #333 0%, #111 55%, #000 100%);
    border: 3px solid var(--chrome);
    box-shadow:
        0 0 0 1px #444,
        0 0 0 2px #222,
        0 4px 12px rgba(0,0,0,0.9),
        inset 0 2px 4px rgba(255,255,255,0.08),
        inset 0 -2px 4px rgba(0,0,0,0.6);
    flex-shrink: 0;
    z-index: 10;
}

.main-speedometer .gauge-ring {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 0.8px dashed rgba(255,255,255,0.08);
}

.main-speedometer .gauge-needle {
    height: 28px;
    width: 1.8px;
    background: linear-gradient(180deg, #ef4444 0%, #ef4444 65%, transparent 100%);
    transform: translateX(-50%) rotate(-130deg);
    box-shadow: 0 0 3px rgba(239,68,68,0.6);
}

.main-speedometer .gauge-center-dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(239,68,68,0.9);
}

.speed-odometer {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 0.8px solid #333;
    border-radius: 2px;
    padding: 0.5px 3px;
    font-family: var(--font-dash);
    font-size: 5.5px;
    color: #ccc;
    letter-spacing: 1px;
    z-index: 5;
    white-space: nowrap;
}

.speed-unit-label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-dash);
    font-size: 4px;
    color: #888;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* ---- RIGHT GAUGE CLUSTER ---- */
.right-gauges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* Fuel Gauge (smaller, right side) */
.fuel-gauge {
    width: 44px;
    height: 44px;
}

/* Temperature Gauge */
.temp-gauge {
    width: 44px;
    height: 44px;
}

/* Action knobs */
.action-knobs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dash-knob {
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5px;
    transition: all 0.12s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.dash-knob::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 0.8px solid rgba(255,255,255,0.15);
}

.dash-knob:active { transform: scale(0.93); }

.dash-knob.horn {
    background: radial-gradient(circle at 35% 30%, #f87171, #991b1b, #7f1d1d);
    border: 1.5px solid #fca5a5;
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

.dash-knob.engine {
    background: radial-gradient(circle at 35% 30%, #4ade80, #15803d, #14532d);
    border: 1.5px solid #86efac;
    box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.dash-knob.engine.off {
    background: radial-gradient(circle at 35% 30%, #64748b, #334155, #1e293b);
    border-color: #94a3b8;
}

.knob-icon { font-size: 10px; line-height: 1; }

.knob-label {
    font-family: var(--font-dash);
    font-size: 4px;
    font-weight: 700;
    color: #fff;
}

/* Scene selector */
.scene-knob-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5px;
}

.scene-select-dash {
    background: #111;
    color: var(--amber);
    border: 1px solid #444;
    border-radius: 3px;
    padding: 2px 3px;
    font-family: var(--font-dash);
    font-size: 7.5px;
    font-weight: 700;
    cursor: pointer;
    width: 60px;
    text-align: center;
}

.scene-select-label {
    font-family: var(--font-dash);
    font-size: 4px;
    color: #666;
}

/* ---- DASH BOTTOM CHROME TRIM ---- */
.dash-chrome-strip {
    height: 4px;
    background: linear-gradient(90deg,
        var(--dash-red-dark),
        var(--chrome-dark) 20%,
        var(--chrome-bright) 40%,
        var(--chrome) 50%,
        var(--chrome-bright) 60%,
        var(--chrome-dark) 80%,
        var(--dash-red-dark)
    );
    position: relative;
    z-index: 2;
    border-bottom: 2px solid #f59e0b;
}

/* ==========================================================================
   WINDSHIELD VIEWPORT
   ========================================================================== */

.viewport {
    position: relative;
    width: 100%;
    height: calc(100vh - 210px);
    min-height: 380px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}

.windshield-frame {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    border: 14px solid #111;
    border-top: 20px solid #111;
    border-bottom: 8px solid #111;
    border-radius: 18px 18px 4px 4px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.windshield-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 10%;
    width: 32%; height: 55%;
    background: linear-gradient(165deg, rgba(255,255,255,0.07) 0%, transparent 70%);
    border-radius: 0 0 50% 0;
    pointer-events: none;
}

/* Wipers */
.wiper-arm {
    position: absolute;
    bottom: 8px;
    width: 3px;
    height: 75%;
    background: #111;
    border-radius: 2px;
    transform-origin: bottom center;
    transform: rotate(0deg);
    z-index: 52;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.wiper-arm::after {
    content: '';
    position: absolute;
    top: 0; left: -1px;
    width: 2px; height: 35px;
    background: #333;
    transform: rotate(15deg);
    transform-origin: top center;
}
.wiper-arm.active {
    opacity: 1;
    animation: wiperSweep 2s ease-in-out infinite;
}
.wiper-arm.left { left: 25%; }
.wiper-arm.right { left: 65%; }

@keyframes wiperSweep {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(-75deg); }
    100% { transform: rotate(0deg); }
}

.viewport.road-shake-active {
    animation: roadCameraShake 0.35s infinite ease-in-out;
}
@keyframes roadCameraShake {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(0.5px, -0.7px); }
    50%  { transform: translate(-0.3px, 0.4px); }
    75%  { transform: translate(0.4px, -0.2px); }
    100% { transform: translate(0, 0); }
}

.viewport.bump-jolt {
    animation: bumpJolt 0.5s ease !important;
}
@keyframes bumpJolt {
    0%   { transform: translateY(0); }
    15%  { transform: translateY(6px); }
    30%  { transform: translateY(-4px); }
    55%  { transform: translateY(2px); }
    75%  { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

/* Rearview Mirror */
.rearview-mirror {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mirror-glass {
    width: 120px; height: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #475569;
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    position: relative;
}

.mirror-scene {
    width: 200%; height: 100%;
    background: linear-gradient(180deg, rgba(11,19,43,0.9) 0%, rgba(28,37,65,0.8) 40%, rgba(100,116,139,0.6) 100%);
    transform: scaleX(-1);
    animation: mirrorScroll 8s linear infinite;
    opacity: 0.7;
}
@keyframes mirrorScroll {
    0%   { transform: scaleX(-1) translateX(0); }
    100% { transform: scaleX(-1) translateX(50%); }
}

.mirror-glass::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(56,189,248,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.mirror-mount { width: 6px; height: 12px; background: #334155; border-radius: 0 0 2px 2px; }

/* Rain Canvas */
.rain-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 40; pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease;
}
.rain-canvas.active { opacity: 1; }

/* Parallax Layers */
.real-bg-layer {
    position: absolute; inset: 0; width: 200%; height: 100%;
    pointer-events: none;
    background-size: cover; background-repeat: repeat-x; background-position: center bottom;
    z-index: 1; transition: opacity 0.8s ease;
    animation: realBgParallax calc(var(--scroll-speed) * 12) linear infinite;
}
.real-bg-layer.ghat-dusk    { background-image: url('images/ghat_dusk_real.png'); }
.real-bg-layer.konkan-coast { background-image: url('images/konkan_coast_real.png'); }
.real-bg-layer.sahyadri-night{ background-image: url('images/sahyadri_night_real.png'); }

.parallax-layer {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; transition: all 0.6s ease;
}

.sun {
    position: absolute; bottom: 28%; right: 18%;
    width: 70px; height: 70px; border-radius: 50%;
    background: radial-gradient(circle, #fff7ed 30%, #fde047 60%, rgba(249,115,22,0) 100%);
    box-shadow: 0 0 50px #f97316, 0 0 100px #f59e0b;
    transition: opacity 0.5s ease;
}
.moon {
    position: absolute; top: 15%; right: 15%;
    width: 55px; height: 55px; border-radius: 50%;
    background: radial-gradient(circle, #fefefc 40%, #e2e8f0 70%, rgba(226,232,240,0) 100%);
    box-shadow: 0 0 40px #fefefe, 0 0 80px rgba(254,254,252,0.4);
    opacity: 0; transition: opacity 0.5s ease;
}
.real-bg-layer.sahyadri-night ~ .layer-2-celestial .moon { opacity: 1; }
.real-bg-layer.sahyadri-night ~ .layer-2-celestial .sun  { opacity: 0; }

.stars-layer {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 30px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 320px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 500px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 700px 60px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 880px 110px, #fff, rgba(0,0,0,0));
    opacity: 0.6;
}

.layer-5-windmills {
    z-index: 5; position: absolute; bottom: 145px;
    width: 100%; height: 80px;
}
.windmill { position: absolute; bottom: 0; width: 20px; height: 60px; }
.windmill.w1 { left: 20%; transform: scale(0.6); }
.windmill.w2 { left: 55%; transform: scale(0.8); }
.windmill.w3 { left: 85%; transform: scale(0.7); }
.windmill .pole { width: 3px; height: 100%; background: #475569; margin: 0 auto; }
.windmill .blades {
    position: absolute; top: 0; left: 50%;
    width: 30px; height: 30px; margin-left: -15px; margin-top: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #94a3b8 0deg 30deg, transparent 30deg 120deg, #94a3b8 120deg 150deg, transparent 150deg 240deg, #94a3b8 240deg 270deg, transparent 270deg 360deg);
    animation: spinWindmill 3s linear infinite;
}

.layer-6-vehicles { z-index: 6; bottom: 0; height: 145px; overflow: hidden; }

.passing-vehicle {
    position: absolute;
    font-size: 26px;
    bottom: 45px;
    animation: vehiclePass 3s linear forwards;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
@keyframes vehiclePass {
    0%   { right: -60px; opacity: 0; }
    5%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { right: calc(100% + 60px); opacity: 0; }
}

.layer-7-poles {
    z-index: 7; bottom: 140px; height: 100px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 360px,
        #334155 360px, #334155 364px, transparent 364px);
    opacity: 0.6;
    animation: parallaxScroll calc(var(--scroll-speed) * 1.5) linear infinite;
}

/* Roadside Billboard */
.layer-7b-billboard {
    z-index: 7; bottom: 145px; height: 115px; overflow: hidden;
}
.billboard-scroll {
    position: absolute; bottom: 0; width: 100%; height: 100%;
    animation: billboardPass calc(var(--scroll-speed) * 18) linear infinite;
}
@keyframes billboardPass {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-300px); }
}
.road-billboard {
    position: absolute; bottom: 0; left: 0;
    display: flex; flex-direction: column; align-items: center;
}
.bb-board {
    width: 230px; height: 80px;
    background: #0f172a;
    border: 3px solid #94a3b8;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.9), inset 0 0 10px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 6px; color: #fff; text-align: center;
}
.bb-title {
    font-family: var(--font-dash); font-size: 14px; font-weight: 900; color: #fbbf24;
    letter-spacing: 1px; margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.bb-sub {
    font-family: var(--font-dash); font-size: 7.5px; font-weight: 700; color: #cbd5e1;
    letter-spacing: 0.5px; margin-bottom: 8px;
}
.bb-link {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #38bdf8;
    background: rgba(56,189,248,0.15); padding: 3px 10px; border-radius: 4px; border: 1px solid #38bdf8;
}
.bb-poles {
    display: flex; gap: 130px; width: 180px; height: 35px; justify-content: center;
}
.bb-pole {
    width: 8px; height: 100%;
    background: linear-gradient(90deg, #334155, #94a3b8, #1e293b);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}

.layer-8-km-strip {
    z-index: 8; bottom: 145px; height: 38px; overflow: hidden;
    background: rgba(15,23,42,0.45);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
.km-stone-marquee {
    display: flex; gap: 120px; width: max-content;
    animation: marqueeScroll calc(var(--scroll-speed) * 6) linear infinite;
}
.km-stone {
    width: 44px; height: 34px;
    background: #fef08a; border: 2px solid #1e293b;
    border-radius: 10px 10px 0 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5); flex-shrink: 0;
}
.km-stone-top { width: 100%; background: #d97706; color: #fff; font-size: 7.5px; font-weight: 800; text-align: center; border-radius: 8px 8px 0 0; padding: 1px 0; }
.km-stone-name { font-size: 7.5px; font-weight: 700; color: #0f172a; text-align: center; white-space: nowrap; }
.km-stone-km { font-family: var(--font-mono); font-size: 7.5px; font-weight: 700; color: #b91c1c; }

.layer-9-streetlamps {
    z-index: 9; bottom: 145px; height: 80px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 480px,
        #64748b 480px, #64748b 484px, transparent 484px);
    opacity: 0.7;
    animation: parallaxScroll calc(var(--scroll-speed) * 1.2) linear infinite;
}

/* Road */
.road-container {
    position: absolute; bottom: 0; width: 100%; height: 145px;
    background: #0f172a; z-index: 10;
    border-top: 3px solid #334155; overflow: hidden;
}
.road-guardrail.top, .road-guardrail.bottom {
    width: 100%; height: 6px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0px, #cbd5e1 30px, #475569 30px, #475569 35px);
}
.road-guardrail.bottom { position: absolute; bottom: 0; }
.road-asphalt {
    width: 100%; height: 133px;
    background: radial-gradient(ellipse at center, #1e293b 0%, #0f172a 100%);
    position: relative; display: flex; align-items: center;
}
.lane-lines {
    position: absolute; width: 200%; height: 6px;
    background: repeating-linear-gradient(90deg, #fbbf24 0px, #fbbf24 40px, transparent 40px, transparent 80px);
    animation: laneScroll var(--scroll-speed) linear infinite;
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 12; }

.bus-wrapper {
    position: absolute;
    bottom: -22px;
    left: 5%;
    width: 680px;
    height: 272px;
    z-index: 15;
    animation: busBounce var(--bounce-speed) ease-in-out infinite alternate;
    transition: transform 0.2s ease;
}
.bus-wrapper.honk-bounce { animation: honkJump 0.4s ease; }
.bus-wrapper.suspension-jolt {
    animation: suspensionJolt 0.55s ease !important;
}
.msrtc-bus-svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Driver Silhouette Bobbing */
.bus-driver {
    transform-origin: 725px 166px;
    animation: driverBob 2.5s ease-in-out infinite alternate;
}
@keyframes driverBob {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1.2px) rotate(0.8deg); }
}

@keyframes suspensionJolt {
    0%   { transform: translateY(0) rotate(0deg); }
    15%  { transform: translateY(-9px) rotate(-1.5deg); }
    30%  { transform: translateY(5px) rotate(1deg); }
    55%  { transform: translateY(-2px) rotate(-0.5deg); }
    75%  { transform: translateY(1px) rotate(0.2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.headlight-beam {
    position: absolute;
    top: 58.5%;
    left: 91%;
    width: 60%;
    height: 10%;
    background: linear-gradient(90deg, rgba(254,240,138,0.95) 0%, rgba(254,240,138,0.4) 55%, rgba(254,240,138,0) 100%);
    clip-path: polygon(0% 30%, 100% 0%, 100% 100%, 0% 70%);
    pointer-events: none; z-index: 14;
    transition: opacity 0.3s ease, width 0.3s ease;
}
.headlight-beam.off { opacity: 0; }
.headlight-beam.low { opacity: 0.5; width: 35%; }

.ground-light-projection {
    position: absolute; bottom: 14px; left: 32%;
    width: 360px; height: 55px;
    background: radial-gradient(ellipse at center, rgba(254,240,138,0.4) 0%, rgba(254,240,138,0) 75%);
    pointer-events: none; z-index: 11;
    transition: opacity 0.3s ease;
}
.tail-light-glow {
    position: absolute; top: 51%; left: -6%;
    width: 12%; height: 22%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.75) 0%, rgba(239, 68, 68, 0) 80%);
    pointer-events: none; z-index: 14;
}

.indicator-led { opacity: 0; transition: opacity 0.1s ease; }
.indicator-led.blinking { animation: hazardBlink 0.6s infinite alternate; }
.real-bg-layer.sahyadri-night ~ * .bus-window-glass { fill: url(#nightGlassGlowGrad) !important; }
.wheel-spokes { transform-origin: center; animation: spinWheel var(--wheel-speed) linear infinite; }

/* Modal */
.audio-modal {
    position: fixed; inset: 0;
    background: rgba(11,19,43,0.96);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.audio-modal.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.audio-modal-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid #8B1A1A;
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-bus-icon { font-size: 40px; margin-bottom: 6px; animation: busWiggle 2s infinite ease-in-out; }
.audio-modal-card h2 { font-family: var(--font-display); font-size: 20px; color: #fef3c7; margin-bottom: 4px; }
.audio-modal-card p { font-size: 13px; color: #cbd5e1; margin-bottom: 8px; }
.modal-note { font-size: 11px !important; color: #fbbf24 !important; background: rgba(245,158,11,0.1); padding: 5px 8px; border-radius: 6px; border: 1px dashed rgba(245,158,11,0.4); margin-bottom: 14px !important; }
.start-journey-btn {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff; border: none;
    padding: 12px 20px;
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    border-radius: 50px; cursor: pointer;
    box-shadow: 0 6px 20px rgba(220,38,38,0.5);
    transition: transform 0.2s ease; width: 100%;
}
.start-journey-btn:hover { transform: translateY(-2px) scale(1.02); }

/* Ticket Bar */
.ticket-bar {
    background: #090d16; border-top: 1.5px solid #8B1A1A;
    padding: 8px 12px; z-index: 100;
}
.ticket-card {
    max-width: 1000px; margin: 0 auto;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1.5px dashed #b91c1c; border-radius: 8px;
    padding: 8px 14px; color: #1e293b;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.ticket-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #b91c1c; padding-bottom: 3px; margin-bottom: 6px; }
.ticket-title { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #991b1b; }
.ticket-badge { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; background: #b91c1c; color: #fff; padding: 1px 4px; border-radius: 3px; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 6px; margin-bottom: 6px; }
.t-col { display: flex; flex-direction: column; }
.t-label { font-size: 8.5px; color: #78350f; font-weight: 600; }
.t-value { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #0f172a; }
.t-value.highlight { color: #b91c1c; }
.t-value.fare-amount { font-size: 13px; color: #065f46; }
.ticket-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #d97706; padding-top: 4px; flex-wrap: wrap; gap: 6px; }
.barcode-graphic { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.barcode-line { width: 1.5px; height: 100%; background: #0f172a; }
.barcode-line.w-1 { width: 1px; }
.barcode-line.w-2 { width: 2.5px; }
.barcode-line.w-3 { width: 3.5px; }
.barcode-line.w-4 { width: 5px; }
.barcode-num { font-family: var(--font-mono); font-size: 8.5px; margin-left: 4px; color: #475569; }
.ticket-actions { display: flex; gap: 5px; }
.ticket-btn { padding: 3px 8px; font-family: var(--font-body); font-size: 10px; font-weight: 700; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; }
.ticket-btn.print-btn { background: #0f172a; color: #fff; }
.ticket-btn.refresh-btn { background: #b91c1c; color: #fff; }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes laneScroll     { 0% { transform: translateX(0); }   100% { transform: translateX(-80px); } }
@keyframes parallaxScroll { 0% { transform: translateX(0); }   100% { transform: translateX(-50%); } }
@keyframes marqueeScroll  { 0% { transform: translateX(0); }   100% { transform: translateX(-50%); } }
@keyframes realBgParallax { 0% { transform: translateX(0); }   100% { transform: translateX(-50%); } }
@keyframes spinWheel      { 0% { transform: rotate(0deg); }    100% { transform: rotate(360deg); } }
@keyframes spinWindmill   { 0% { transform: rotate(0deg); }    100% { transform: rotate(360deg); } }
@keyframes busBounce      { 0% { transform: translateY(0px); } 100% { transform: translateY(-3px); } }
@keyframes honkJump {
    0%   { transform: translateY(0px) scale(1); }
    30%  { transform: translateY(-12px) scale(1.02); }
    60%  { transform: translateY(-4px) scale(1.01); }
    100% { transform: translateY(0px) scale(1); }
}
@keyframes hazardBlink    { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes busWiggle      { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .lane-lines, .layer-7-poles, .layer-9-streetlamps, .km-stone-marquee,
    .wheel-spokes, .windmill .blades, .bus-wrapper, .real-bg-layer { animation: none !important; }
}

@media (max-width: 768px) {
    .speaker-grill-v { display: none; }
    .rearview-mirror { display: none; }
    .vintage-bus-dashboard {
        transform: scale(0.92);
        transform-origin: top center;
        margin-bottom: -10px;
    }
}

@media (max-width: 600px) {
    .vintage-bus-dashboard {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -24px;
    }
    .viewport { height: calc(100vh - 150px); min-height: 280px; }
}

@media (max-width: 480px) {
    .vintage-bus-dashboard {
        transform: scale(0.68);
        transform-origin: top center;
        margin-bottom: -38px;
    }
    .viewport { height: calc(100vh - 130px); }
    .bus-wrapper { width: 300px; height: 120px; left: 2%; bottom: -10px; }
}

@media (max-width: 380px) {
    .vintage-bus-dashboard {
        transform: scale(0.55);
        transform-origin: top center;
        margin-bottom: -54px;
    }
}
