/* ========================================
   CHINA - 3D Train Journey Experience
   ======================================== */

:root {
    --primary-dark: #100505;
    --primary-mid: #200c0c;
    --primary-light: #301515;
    
    --accent-gold: #d4a853;
    --accent-gold-light: #f0d590;
    --accent-copper: #b87333;
    --accent-red: #c41e3a;
    --accent-red-dark: #8b0000;
    
    --teal: #2dd4bf;
    --blue: #60a5fa;
    
    --white: #ffffff;
    --off-white: #f5f5f0;
    --gray-light: #a0a8b8;
    --gray-mid: #6b7280;
    
    --tunnel-color: #2e1a1a;
    --track-color: #4a4a5a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--white);
    overflow-x: hidden;
}

/* ========================================
   SCROLL CONTAINER (Hidden, controls progress)
   ======================================== */

.scroll-container {
    position: relative;
    z-index: 1;
}

.scroll-section {
    height: 100vh;
}

/* ========================================
   FIXED VIEWPORT
   ======================================== */

.viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

/* ========================================
   TUNNEL BACKGROUND
   ======================================== */

.tunnel-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, var(--primary-mid) 0%, var(--primary-dark) 70%);
}

.tunnel-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(800px) rotateY(-25deg) rotateX(10deg);
}

.ring {
    position: absolute;
    border: 2px solid rgba(212, 168, 83, 0.15);
    border-radius: 50%;
    animation: ringZoom 3s ease-in-out infinite;
    left: -20%;
}

.ring:nth-child(1) { width: 180%; height: 180%; animation-delay: 0s; }
.ring:nth-child(2) { width: 155%; height: 155%; animation-delay: 0.4s; }
.ring:nth-child(3) { width: 130%; height: 130%; animation-delay: 0.8s; }
.ring:nth-child(4) { width: 105%; height: 105%; animation-delay: 1.2s; }
.ring:nth-child(5) { width: 80%; height: 80%; animation-delay: 1.6s; }
.ring:nth-child(6) { width: 55%; height: 55%; animation-delay: 2s; }
.ring:nth-child(7) { width: 30%; height: 30%; animation-delay: 2.4s; }
.ring:nth-child(8) { width: 15%; height: 15%; animation-delay: 2.8s; }

@keyframes ringZoom {
    0% { 
        transform: scale(0.8) translateZ(-100px);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.1) translateZ(0px);
        opacity: 0.4;
    }
    100% { 
        transform: scale(0.8) translateZ(-100px);
        opacity: 0.1;
    }
}

.track-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.track-line {
    position: absolute;
    width: 4px;
    height: 300%;
    background: linear-gradient(to top, var(--track-color) 0%, rgba(74, 74, 90, 0.5) 50%, transparent 100%);
    transform-origin: bottom center;
}

.track-line.left {
    bottom: 20%;
    left: 20%;
    transform: rotateX(70deg) rotateY(-45deg) rotateZ(10deg);
}

.track-line.right {
    bottom: 20%;
    left: 30%;
    transform: rotateX(70deg) rotateY(-45deg) rotateZ(10deg);
}

/* Speed lines - diagonal motion effect */
.speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.speed-line {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(212, 168, 83, 0.7) 30%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(212, 168, 83, 0.7) 70%, 
        transparent 100%
    );
    animation: speedLineDiagonal 0.5s linear infinite;
    opacity: 0;
}

.speed-line.active {
    opacity: 1;
}

@keyframes speedLineDiagonal {
    0% {
        transform: rotate(135deg) translate(-100px, -100px) scaleY(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: rotate(135deg) translate(150vh, 150vh) scaleY(1.5);
        opacity: 0;
    }
}

/* ========================================
   3D TRAIN CONTAINER (Three.js Canvas)
   ======================================== */

.train-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 70vh;
    z-index: 10;  /* Behind the text boxes */
}

#trainCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.train-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.train-fallback.hidden {
    display: none;
}

.loading-train {
    text-align: center;
    color: var(--accent-gold);
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 168, 83, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-train span {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ========================================
   STATION IMAGE DISPLAY
   ======================================== */

.station-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.station-image-container.visible {
    opacity: 1;
    visibility: visible;
}

.station-image-frame {
    position: relative;
    max-width: 420px;
    max-height: 60vh;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(212, 168, 83, 0.8) 0%, 
        rgba(184, 115, 51, 0.8) 50%,
        rgba(212, 168, 83, 0.8) 100%
    );
    padding: 4px;
    box-shadow: 
        0 0 60px rgba(212, 168, 83, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(212, 168, 83, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.station-image-container.visible .station-image-frame {
    transform: scale(1) translateY(0);
}

.station-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

.station-image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 100%
    );
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 3;
}

#stationImage {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(60vh - 8px);
    object-fit: contain;
    border-radius: 12px;
    background: var(--primary-dark);
}

/* ========================================
   MAGNIFYING WINDOWS
   ======================================== */

.magnify-window {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.magnify-window.visible {
    opacity: 1;
}

.magnify-window.left {
    left: 3%;
    transform: translateY(-50%) translateX(-50px) rotateY(15deg);
}

.magnify-window.left.visible {
    transform: translateY(-50%) translateX(0) rotateY(5deg);
}

.magnify-window.right {
    right: 3%;
    transform: translateY(-50%) translateX(50px) rotateY(-15deg);
}

.magnify-window.right.visible {
    transform: translateY(-50%) translateX(0) rotateY(-5deg);
}

.window-frame {
    width: 340px;
    height: 450px;
    background: linear-gradient(135deg, 
        rgba(69, 30, 30, 0.95) 0%, 
        rgba(40, 15, 15, 0.98) 100%
    );
    border: 3px solid rgba(212, 168, 83, 0.4);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 
        0 0 40px rgba(212, 168, 83, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.window-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper), var(--accent-gold));
}

.window-glass {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.window-content {
    padding: 25px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.window-content::-webkit-scrollbar {
    width: 6px;
}

.window-content::-webkit-scrollbar-track {
    background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.window-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
    border-radius: 12px;
}

.window-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    opacity: 0.7;
}

/* Window content styling */
.window-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.window-content .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent-gold-light);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.window-content ul {
    list-style: none;
}

.window-content li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--off-white);
    opacity: 0;
    transform: translateX(-10px);
    animation: bulletReveal 0.4s ease-out forwards;
}

.window-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
}

.window-content li:nth-child(1) { animation-delay: 0.1s; }
.window-content li:nth-child(2) { animation-delay: 0.15s; }
.window-content li:nth-child(3) { animation-delay: 0.2s; }
.window-content li:nth-child(4) { animation-delay: 0.25s; }
.window-content li:nth-child(5) { animation-delay: 0.3s; }
.window-content li:nth-child(6) { animation-delay: 0.35s; }
.window-content li:nth-child(7) { animation-delay: 0.4s; }
.window-content li:nth-child(8) { animation-delay: 0.45s; }

@keyframes bulletReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.window-content strong {
    color: var(--accent-gold-light);
    font-weight: 600;
}

/* ========================================
   STATION INDICATOR
   ======================================== */

.station-indicator {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 60;
}

.station-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

.progress-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(212, 168, 83, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    cursor: pointer;
}

.progress-dot:hover {
    border-color: var(--accent-gold);
}

.progress-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.6);
}

.progress-dot.passed {
    background: rgba(212, 168, 83, 0.5);
    border-color: rgba(212, 168, 83, 0.5);
}

/* ========================================
   INTRO OVERLAY
   ======================================== */

.intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(16, 5, 5, 0.98) 0%, 
        rgba(32, 12, 12, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 1s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
}

.logo-emblem {
    margin-bottom: 2rem;
}

.emblem-svg {
    width: 120px;
    height: 120px;
    color: var(--accent-gold);
    animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 168, 83, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.5));
    }
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: titleSlide 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
    color: var(--accent-gold);
    font-size: 1.3em;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.motto {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--accent-gold-light);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
    margin-bottom: 1rem;
}

.creators {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: var(--gray-light);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.scroll-prompt span {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   FINAL OVERLAY
   ======================================== */

.final-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, 
        rgba(32, 12, 12, 0.95) 0%, 
        rgba(16, 5, 5, 0.98) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease;
}

.final-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.final-content {
    text-align: center;
}

.arrival-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: none;
}

.final-overlay.visible .arrival-text {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.welcome-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0;
}

.final-overlay.visible .welcome-text {
    animation: titleSlide 0.8s ease-out 0.4s forwards;
}

.final-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.final-overlay.visible .final-motto {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.tagline {
    font-size: 1.1rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
}

.final-overlay.visible .tagline {
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

.final-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    opacity: 0;
}

.final-overlay.visible .stat:nth-child(1) { animation: fadeIn 0.6s ease-out 1s forwards; }
.final-overlay.visible .stat:nth-child(2) { animation: fadeIn 0.6s ease-out 1.2s forwards; }
.final-overlay.visible .stat:nth-child(3) { animation: fadeIn 0.6s ease-out 1.4s forwards; }

.stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ========================================
   NAVIGATION HINT
   ======================================== */

.nav-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--gray-mid);
    text-transform: uppercase;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.nav-hint .image-credit {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.nav-hint.visible {
    opacity: 1;
}

/* ========================================
   START OVER LINK - TOP LEFT
   ======================================== */

.start-over-link {
    position: absolute;
    top: 25px;
    left: 25px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--gray-mid);
    text-decoration: none;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: none;
}

.start-over-link.visible {
    opacity: 0.6;
    visibility: visible;
    pointer-events: auto;
}

.start-over-link:hover {
    opacity: 1;
    color: var(--accent-gold);
    background: rgba(212, 168, 83, 0.1);
}

/* ========================================
   START OVER BIG - FINAL SCREEN
   ======================================== */

.start-over-big {
    display: inline-block;
    margin-top: 3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    text-decoration: none;
    padding: 18px 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    background: rgba(212, 168, 83, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.2);
    cursor: pointer;
    pointer-events: none;
}

.final-overlay.visible .start-over-big {
    animation: fadeIn 0.8s ease-out 1.6s forwards;
    pointer-events: auto;
}

.start-over-big:hover {
    background: rgba(212, 168, 83, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.start-over-big:active {
    transform: translateY(0);
}

/* ========================================
   RETURN TO TOP BUTTON
   ======================================== */

.return-to-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(69, 30, 30, 0.9);
    border: 2px solid rgba(212, 168, 83, 0.5);
    border-radius: 50%;
    cursor: pointer;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.return-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
}

.return-to-top:active {
    transform: translateY(0);
}

.return-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.return-to-top:hover svg {
    transform: translateY(-2px);
}

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

@media (max-width: 1200px) {
    .magnify-window.left {
        left: 2%;
    }
    
    .magnify-window.right {
        right: 2%;
    }
    
    .window-frame {
        width: 300px;
        height: 400px;
    }
    
    .train-3d-container {
        width: 400px;
        height: 400px;
    }
    
    .station-image-frame {
        max-width: 350px;
        max-height: 50vh;
    }
}

@media (max-width: 1024px) {
    .window-frame {
        width: 260px;
        height: 350px;
        padding: 15px;
    }
    
    .window-content h3 {
        font-size: 1.3rem;
    }
    
    .window-content li {
        font-size: 0.82rem;
    }
    
    .train-3d-container {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .magnify-window {
        position: absolute;
        top: auto;
        bottom: 5%;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90%;
        max-width: 400px;
    }
    
    .magnify-window.left.visible,
    .magnify-window.right.visible {
        transform: translateX(-50%) !important;
    }
    
    .magnify-window.right {
        display: none;
    }
    
    .window-frame {
        width: 100%;
        height: 280px;
    }
    
    .train-3d-container {
        width: 280px;
        height: 280px;
        top: 35%;
    }
    
    .station-image-frame {
        max-width: 280px;
        max-height: 40vh;
    }
    
    .station-image-container {
        top: 40%;
    }
    
    .final-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
