:root {
    --void: #4A3F30;
    --wood-dark: #5A4F40;
    --paper-gold: #F5E6C8;
    --paper-warm: #E0D0B0;
    --paper-dim: #C8B898;
    --blood: #C43030;
    --blood-glow: rgba(196, 48, 48, 0.5);
    --seal-red: #8B1A1A;
    --cork: #A89880;
    --wood-frame: #5D4538;
    --ink-brown: #3D2B1F;
    --ink-black: rgba(26, 26, 26, 0.9);
    --pin-red: #D04040;
    --pin-yellow: #F0C830;
    --pin-green: #40A050;
    --overlay: rgba(30, 25, 18, 0.85);
    --metal-light: #C0C0C0;
    --metal-dark: #4A4A4A;
    --stamp-green: #2E7D32;
    --paper-yellow: #D4C5A0;
    --paper-yellow-light: #C4B590;
}

@font-face { font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--void);
    color: #F5F5F5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--blood); border-radius: 2px; }

.view {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    display: none !important;
}

.view.active {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}
.view.scrollable {
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
}

.font-title { font-family: 楷体, serif; font-weight: bold; }
.font-body { font-family: 'Noto Sans SC', sans-serif; font-weight: 400; }
.font-typewriter { font-family: 'Special Elite', monospace; }
.font-handwrite { font-family: 'Ma Shan Zheng', cursive; }

.wood-bg {
    background-color: var(--void);
    background-image:
        repeating-linear-gradient(92deg, transparent, transparent 3px, rgba(120,80,30,0.04) 3px, rgba(120,80,30,0.04) 5px),
        repeating-linear-gradient(2deg, transparent, transparent 12px, rgba(90,55,15,0.03) 12px, rgba(90,55,15,0.03) 14px);
}

.paper-bg {
    background-color: #5A5040;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(180,150,100,0.03) 1px, rgba(180,150,100,0.03) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(160,130,80,0.02) 3px, rgba(160,130,80,0.02) 4px),
        linear-gradient(160deg, #6A5F50 0%, #5A5040 40%, #4A4030 100%);
}

.detail-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.polaroid {
    position: absolute;
    z-index: 15;
    pointer-events: none;
    background: #fff;
    padding: 10px 10px 40px 10px;
    box-shadow:
        2px 3px 12px rgba(0,0,0,0.4),
        0 1px 4px rgba(0,0,0,0.2),
        0 8px 24px rgba(0,0,0,0.25);
}

.polaroid img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.polaroid .polaroid-caption {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.85rem;
    color: #3D2B1F;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.polaroid .polaroid-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 60px;
    height: 22px;
    background: rgba(255,240,180,0.55);
    border: 1px solid rgba(200,180,100,0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@keyframes polaroidFadeIn {
    from { opacity: 0; transform: var(--polaroid-rotate) translateY(20px) scale(0.9); }
    to { opacity: 1; transform: var(--polaroid-rotate) translateY(0) scale(1); }
}

.polaroid.animate-in {
    animation: polaroidFadeIn 0.8s ease-out forwards;
}

.file-header {
    background: linear-gradient(160deg, #EDE0C8 0%, #E0D2B8 100%);
    border: 1px solid rgba(180,160,120,0.4);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.file-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blood), transparent 30%, transparent 70%, var(--blood));
    opacity: 0.4;
}

.corner-stamp {
    position: absolute;
    font-family: 'Special Elite', monospace;
    font-size: 0.6rem;
    color: var(--blood);
    opacity: 0.25;
    transform: rotate(-90deg);
    letter-spacing: 0.15em;
    pointer-events: none;
}

.classification-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px;
    background: var(--blood);
    color: #fff;
    font-family: 'Special Elite', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    border-radius: 1px;
}

.side-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
}

.stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--blood);
    border-radius: 50%;
    color: var(--blood);
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    transform: rotate(-5deg);
    opacity: 0.85;
    position: relative;
}

.stamp::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid var(--blood);
    border-radius: 50%;
    opacity: 0.6;
}

.stamp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.pin {
    width: 16px; height: 16px;
    border-radius: 50%;
    position: absolute;
    top: -6px; left: 12px;
    z-index: 10;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

.pin::after {
    content: '';
    position: absolute;
    top: 2px; left: 3px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.pin-red { background: radial-gradient(circle at 35% 35%, #e74c3c, var(--pin-red)); }
.pin-yellow { background: radial-gradient(circle at 35% 35%, #f9e154, var(--pin-yellow)); }
.pin-green { background: radial-gradient(circle at 35% 35%, #2ecc71, var(--pin-green)); }

.red-annotation {
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--blood);
    position: relative;
    display: inline;
}

.red-annotation .underline {
    position: absolute;
    bottom: -2px; left: 0;
    height: 2px;
    background-color: var(--blood);
    width: 0;
    transition: width 0.6s ease-out;
}

.red-annotation.revealed .underline { width: 100%; }

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(196,48,48,0.3); }
    50% { box-shadow: 0 0 50px rgba(196,48,48,0.7); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes dustFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(var(--drift, 20px), -80px); opacity: 0.6; }
    90% { opacity: 1; }
}

@keyframes dustInCone {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    8% { opacity: 1; }
    25% { transform: translate(var(--drift, 15px), calc(var(--drift-y, -10px) - 30px)); opacity: 0.7; }
    50% { transform: translate(calc(var(--drift, 15px) * -0.5), calc(var(--drift-y, -10px) - 60px)); opacity: 0.9; }
    75% { transform: translate(calc(var(--drift, 15px) * 0.3), calc(var(--drift-y, -10px) - 40px)); opacity: 0.5; }
    92% { opacity: 1; }
}

@keyframes cardFlyIn {
    from { opacity: 0; transform: translateY(80px) rotate(var(--card-rotate, 0deg)) scale(0.85); }
    to { opacity: 1; transform: translateY(0) rotate(var(--card-rotate, 0deg)) scale(1); }
}

@keyframes stampImpact {
    0% { transform: rotate(-8deg) scale(1); filter: brightness(1); }
    15% { transform: rotate(-8deg) scale(1.6); filter: brightness(1.3); }
    40% { transform: rotate(-8deg) scale(0.85); filter: brightness(0.9); }
    60% { transform: rotate(-8deg) scale(1.1); filter: brightness(1.1); }
    100% { transform: rotate(-8deg) scale(1); filter: brightness(1); }
}

@keyframes inkSplash {
    0% { transform: translate(0, 0) scale(0); opacity: 0.9; }
    30% { opacity: 0.7; }
    100% { transform: translate(var(--sx), var(--sy)) scale(1); opacity: 0; }
}

@keyframes sealHover {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    15% { transform: rotate(-14deg) scale(1.06); }
    30% { transform: rotate(-3deg) scale(0.96); }
    45% { transform: rotate(-11deg) scale(1.04); }
    60% { transform: rotate(-5deg) scale(0.97); }
    75% { transform: rotate(-10deg) scale(1.02); }
    90% { transform: rotate(-6deg) scale(0.99); }
}

@keyframes stampShockwave {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

#seal-btn { transition: none; transform: rotate(-8deg); }
#seal-btn.seal-breathe { animation: breathe 3s ease-in-out infinite; }
#seal-btn:hover { animation: sealHover 0.5s ease-in 1 !important; cursor: pointer; }
#seal-btn.stamp-impact { animation: stampImpact 0.6s cubic-bezier(0.2,0,0.2,1) forwards !important; pointer-events: none; }

.ink-splash {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 25;
    animation: inkSplash 0.7s ease-out forwards;
}

.stamp-shockwave {
    position: absolute;
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid var(--blood);
    pointer-events: none;
    z-index: 24;
    animation: stampShockwave 0.6s ease-out forwards;
}

.board-photo {
    opacity: 0;
    transform: translateY(-40px) rotate(var(--photo-rotate, 0deg)) scale(0.8);
    transition: none;
}

.board-photo.pin-in {
    animation: pinIn 0.5s cubic-bezier(0.2,0,0.2,1) forwards;
}

@keyframes pinIn {
    0% { opacity: 0; transform: translateY(-40px) rotate(var(--photo-rotate, 0deg)) scale(0.8); }
    60% { opacity: 1; transform: translateY(4px) rotate(var(--photo-rotate, 0deg)) scale(1.02); }
    80% { transform: translateY(-2px) rotate(var(--photo-rotate, 0deg)) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) rotate(var(--photo-rotate, 0deg)) scale(1); }
}

.red-string path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.red-string.drawn path { animation: stringDraw 2s ease-out forwards; }
.red-string.drawn path:nth-child(2) { animation-delay: 0.3s; }
.red-string.drawn path:nth-child(3) { animation-delay: 0.6s; }

@keyframes stringDraw { to { stroke-dashoffset: 0; } }

@keyframes candleFlicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.92; }
    10% { opacity: 0.98; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
    50% { opacity: 0.95; }
    55% { opacity: 0.88; }
    60% { opacity: 0.96; }
    80% { opacity: 0.93; }
    85% { opacity: 1; }
}

.lamp-flicker { animation: candleFlicker 4s ease-in-out infinite; }

@keyframes paperBreath {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

.paper-breath { animation: paperBreath 6s ease-in-out infinite; }

.blackboard {
    background: linear-gradient(145deg, #1A1A1A 0%, #111111 30%, #0D0D0D 60%, #181818 100%);
    border: 6px solid #3D2518;
    border-radius: 3px;
    box-shadow:
        inset 0 0 80px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(0,0,0,0.3),
        0 8px 32px rgba(0,0,0,0.5);
    position:relative;
    height: 95%;
    width: 100%;
}

.blackboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.01) 4px, rgba(255,255,255,0.01) 5px);
    pointer-events: none;
    border-radius: 2px;
}

.blackboard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 2px;
}

.chalk-text {
    color: rgba(255,255,240,0.85);
    text-shadow:
        0 0 4px rgba(255,255,240,0.3),
        1px 1px 0 rgba(0,0,0,0.3);
}

.chalk-text-dim {
    color: rgba(255,255,240,0.5);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.chalk-line {
    border-color: rgba(255,255,240,0.2);
    border-style: solid;
}

.scroll-section {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 100vw;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-section-blackboard {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 100vw;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.scroll-section-blackboard.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes chalkWrite {
    from { width: 0; }
    to { width: 100%; }
}

.chalk-underline {
    display: inline-block;
    position: relative;
}

.chalk-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: rgba(255,255,240,0.4);
    width: 0;
}

.chalk-underline.revealed::after {
    animation: chalkWrite 0.8s ease-out forwards;
}

#credits-stamp { opacity: 0; transform: rotate(-5deg) scale(2); }
#credits-stamp.stamp-down { animation: stampDown 0.6s cubic-bezier(0.2,0,0.2,1) forwards; }

@keyframes stampDown {
    0% { opacity: 0; transform: rotate(-5deg) scale(2); }
    50% { opacity: 1; transform: rotate(-5deg) scale(0.9); }
    70% { transform: rotate(-5deg) scale(1.05); }
    100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}

#photo-modal.show {
    display: flex !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#photo-modal.show {
    animation: modalFadeIn 0.35s ease-out;
}

.modal-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 5vw 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.modal-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.modal-slide-inner {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    gap: 4vw;
    align-items: center;
}

.modal-slide-inner.layout-reverse {
    flex-direction: row-reverse;
}

.slide-image-wrap {
    flex: 1.15;
    height: 88%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-image-wrap.enter-from-left {
    transform: translateX(-80px) scale(0.93);
}

.slide-image-wrap.enter-from-right {
    transform: translateX(80px) scale(0.93);
}

.modal-slide.active .slide-image-wrap {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.slide-image-wrap img,
.slide-image-wrap video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.3);
}

.slide-text-wrap {
    flex: 0.85;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vw;
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.13s,
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.13s;
}

.slide-text-wrap.enter-from-left {
    transform: translateX(-60px);
}

.slide-text-wrap.enter-from-right {
    transform: translateX(60px);
}

.modal-slide.active .slide-text-wrap {
    opacity: 1;
    transform: translateX(0);
}

.slide-text-wrap h3 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    font-size: 1.75rem;
    color: rgba(255,255,240,0.92);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-text-wrap .slide-divider {
    width: 60px;
    height: 2px;
    background: var(--blood);
    margin-bottom: 1.2rem;
    opacity: 0.6;
}

.slide-text-wrap p {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,240,0.6);
}

.modal-slide-counter {
    letter-spacing: 0.15em;
}

.view.anim-slide-left-out,
.view.anim-slide-right-out,
.view.anim-zoom-in-out,
.view.anim-flip-right-out,
.view.anim-flip-left-out {
    filter: brightness(0.4);
}

.view.anim-slide-left-in,
.view.anim-slide-right-in,
.view.anim-zoom-in-in,
.view.anim-flip-right-in,
.view.anim-flip-left-in {
    filter: brightness(1);
}

.route-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.2,0,0.2,1), box-shadow 0.5s ease;
    border-radius: 2px;
}

.route-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    border-radius: 2px;
}

.route-card:hover {
    transform: translateY(-16px) rotate(0deg) !important;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.5),
        0 0 40px rgba(196,48,48,0.25) !important;
}

.route-card:hover .card-reveal {
    opacity: 1;
    transform: translateY(0);
}

.card-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.detail-section {
    background: linear-gradient(160deg, #EDE0C8 0%, #E0D2B8 100%);
    border: 1px solid rgba(180,160,120,0.4);
    border-radius: 2px;
    position: relative;
}

.detail-section .summary-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(61,43,31,0.88);
    letter-spacing: 0.02em;
}

.detail-section .summary-text p {
    margin-bottom: 1.1rem;
    text-indent: 2em;
}

.detail-section .handwrite-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.35rem;
    line-height: 2.1;
    color: rgba(61,43,31,0.85);
}

.detail-section .handwrite-text p {
    margin-bottom: 1.2rem;
}

.detail-section .handwrite-text p:last-child {
    margin-bottom: 0;
}

.keyword-mark {
    position: relative;
    display: inline;
    color: var(--blood);
    font-weight: 700;
}

.keyword-mark::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blood);
    opacity: 0.4;
}

.stamp-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border: 2px solid var(--blood);
    border-radius: 50%;
    color: var(--blood);
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    font-size: 0.75em;
    transform: rotate(-5deg);
    opacity: 0.75;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    white-space: nowrap;
}

.stamp-highlight::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid var(--blood);
    border-radius: 50%;
    opacity: 0.5;
}

.margin-note {
    position: relative;
    display: inline;
    color: var(--blood);
    font-family: 'Special Elite', monospace;
    font-size: 0.7em;
    opacity: 0.6;
    vertical-align: super;
    margin-left: 2px;
}

.margin-note::before {
    content: '※';
}

.typewriter-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.typewriter-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.cork-board {
    background: linear-gradient(145deg, #A09080 0%, #908070 50%, #807060 100%);
    border: 3px solid #4A3828;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.3),
        0 10px 40px rgba(0,0,0,0.4);
    position: relative;
}

.cork-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(rgba(0,0,0,0.05) 0% 25%, transparent 0% 50%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    pointer-events: none;
}

.detail-bar {
    background: rgba(70,60,45,0.88);
    border-color: rgba(200,180,140,0.25);
    backdrop-filter: blur(12px);
}

.detail-bar-top { border-bottom: 1px solid rgba(200,180,140,0.25); }

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(240,224,192,0.06), transparent);
    pointer-events: none;
    z-index: 2;
    animation: scanline 8s linear infinite;
}

.route-title-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood), transparent);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .font-title { font-size: 1.5rem !important; }
    .route-card { width: 150px !important; height: 210px !important; }
    .board-photo .bg-white div { width: 140px !important; height: 105px !important; }
    .modal-slide-inner { flex-direction: column !important; gap: 2vh !important; }
    .modal-slide-inner.layout-reverse { flex-direction: column !important; }
    .slide-image-wrap { flex: none !important; height: 50vh !important; }
    .slide-text-wrap { flex: none !important; padding: 0 4vw !important; }
    .slide-text-wrap h3 { font-size: 1.3rem !important; }
    .slide-text-wrap p { font-size: 0.9rem !important; line-height: 1.7 !important; }
    .modal-slide { padding: 60px 3vw 40px !important; }
}
