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

:root {
    --wall-base: #f4f1ea;
    --wall-shadow: #d8d2c5;
    --floor: #b49272;
    --accent: #d2232a;
    --ink: #1f1f1f;
}

body.corridor-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background: linear-gradient(180deg, #f9f9f4 0%, #f0ece3 55%, #c7baa6 100%);
    overflow: hidden;
}

.corridor-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    mix-blend-mode: multiply;
    z-index: 10;
}

.corridor-logo {
    font-weight: 700;
    letter-spacing: 0.1em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.corridor {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ceiling-lights {
    height: 140px;
    display: flex;
    align-items: stretch;
    gap: 4rem;
    padding: 0 5vw;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(236,233,226,0.1));
}

.ceiling-lights span {
    flex: 1;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.9), rgba(255,255,255,0.05) 70%);
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
    opacity: 0.6;
}

.wall-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 2rem 0 3rem;
    scrollbar-width: none;
}

.wall-wrapper::-webkit-scrollbar {
    display: none;
}

.wall-track {
    display: flex;
    gap: 4rem;
    padding: 0 8vw;
    height: 100%;
    align-items: center;
}

.wall-panel {
    flex: 0 0 70vw;
    min-height: 60vh;
    background: var(--wall-base);
    border-radius: 32px;
    padding: 3rem;
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.05),
        0 12px 30px rgba(0,0,0,0.12),
        0 40px 80px rgba(160,140,120,0.2);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wall-panel::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(0,0,0,0.08);
    pointer-events: none;
    border-radius: 26px;
}

.wall-panel.active {
    transform: translateY(-12px);
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.05),
        0 20px 40px rgba(0,0,0,0.18),
        0 80px 120px rgba(160,140,120,0.25);
}

.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: var(--accent);
}

.panel-title {
    font-size: 2.4rem;
    margin: 1rem 0 1.5rem;
    font-weight: 700;
}

.panel-text {
    font-size: 1.1rem;
    max-width: 42ch;
    line-height: 1.8;
}

.panel-notes {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.75);
}

.panel-notes span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-notes span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.floor {
    height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,0.25)), radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%), linear-gradient(90deg, #b28e6f, #a07858);
    filter: blur(0.5px);
}

.scroll-hint {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.scroll-hint.dismissed {
    opacity: 0;
    transform: translate(-50%, 20px);
}

.panel-progress {
    position: fixed;
    bottom: 1.5rem;
    left: 5vw;
    right: 5vw;
    height: 3px;
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
    overflow: hidden;
}

.panel-progress span {
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--accent);
    transition: width 0.3s ease;
}

.scroll-arrow {
    position: fixed;
    bottom: 4.6rem;
    width: 46px;
    height: 46px;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    z-index: 11;
    transition: opacity 280ms ease;
    border: none;
    border-radius: 14px;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.scroll-arrow.visible {
    opacity: 1;
}

.scroll-arrow.right {
    right: max(4vw, 22px);
    background: #D2232A;
}

.scroll-arrow.left {
    left: max(4vw, 22px);
    background: #0047AB;
}

.scroll-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 1024px) {
    .wall-panel {
        flex-basis: 85vw;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    body.corridor-body {
        overflow-y: auto;
    }

    .corridor-header {
        position: sticky;
        background: rgba(244,241,234,0.95);
        mix-blend-mode: normal;
        padding: 1rem;
    }

    .wall-wrapper {
        padding-bottom: 5rem;
    }

    .wall-track {
        padding: 0 10vw;
    }

    .wall-panel {
        flex-basis: 92vw;
        min-height: auto;
        border-radius: 24px;
        padding: 2rem;
    }

    .panel-title {
        font-size: 1.9rem;
    }

    .scroll-hint,
    .panel-progress,
    .scroll-arrow {
        display: none;
    }
}
