* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}
body {
    font-family: 'Satoshi', sans-serif;
    background: #000;
    color: #f5f5f5;
    overflow-x: hidden;
}

/* ─── LOADING SCREEN ─── */
#loading-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#loading-screen h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.5rem, 10vw, 7rem);
    font-weight: 200;
    letter-spacing: 0.4em;
    color: #fff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: scale(0.1);
    filter: blur(12px);
}

/* ─── MAIN CONTENT ─── */
#main-content {
    display: none;
    min-height: 100vh;
    position: relative;
}

/* ─── HAMBURGER ─── */
.hamburger {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    cursor: pointer;
    width: 44px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}
.hamburger.top-left {
    left: 30px;
    transform: none;
    transition: left 0.4s ease, transform 0.4s ease;
}
.hamburger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease, left 0.35s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #fff;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #fff;
}

/* ─── MENU OVERLAY ─── */
#menu-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.menu-bg.show {
    opacity: 0.6;
}
.menu-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.3) 100%);
}

.menu-items {
    list-style: none;
    text-align: center;
    position: relative;
    z-index: 1;
}
.menu-items li {
    margin: 18px 0;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.6em;
    cursor: pointer;
    transition: all 0.35s ease;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    padding: 6px 20px;
}
.menu-items li:hover {
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}
.menu-items li.blur {
    filter: blur(5px);
    opacity: 0.2;
    transform: scale(0.95);
}

.menu-items li[data-level="room"] {
    position: relative;
}
.menu-items li[data-level="room"]::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 16%;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: center;
}
.menu-items li[data-level="room"]:hover::after {
    transform: scaleX(1);
}
.menu-items li[data-level="room"]:hover {
    text-shadow: none;
    transform: none;
    color: rgba(255, 255, 255, 0.7);
}

/* ─── VOLUME ICON ─── */
.volume-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    color: #fff;
    cursor: pointer;
}

/* ─── HERO ─── */
.hero {
    height: 100vh;
    background: url('../img/room.webp') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}
.hero .tagline {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 1;
    text-align: right;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
.hero .tagline span {
    display: block;
}
.hero .tagline .line1 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.5em;
}
.hero .tagline .line2 {
    font-size: clamp(0.6rem, 1.2vw, 0.9rem);
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
}
.hero .hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.2em;
}

/* ─── LORE SECTIONS ─── */
.lore-section {
    padding: 120px 24px;
    max-width: 720px;
    margin: 0 auto;
}
.lore-inner {
    text-align: center;
}
.lore-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(245, 245, 245, 0.2);
    margin-bottom: 20px;
    font-weight: 400;
}
.lore-title {
    font-weight: 200;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.6em;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 24px;
}
.lore-divider {
    width: 40px;
    height: 1px;
    background: rgba(245, 245, 245, 0.08);
    margin: 0 auto 32px;
}
.lore-text {
    font-weight: 200;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1.9;
    margin-bottom: 18px;
}
.lore-aside {
    margin-top: 32px;
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(245, 245, 245, 0.3);
}

/* ─── NOTE ─── */
.note-section {
    padding: 80px 24px 120px;
    max-width: 600px;
    margin: 0 auto;
}
.note-card {
    border: 1px solid rgba(245, 245, 245, 0.06);
    padding: 40px 36px;
    background: rgba(245, 245, 245, 0.01);
}
.note-header {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 700;
}
.note-body p {
    font-weight: 200;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    letter-spacing: 0.1em;
    color: rgba(245, 245, 245, 0.5);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}
.note-footer {
    margin-top: 24px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(245, 245, 245, 0.15);
}

/* ─── LEVELS TEASER ─── */
.levels-teaser {
    padding: 80px 24px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.teaser-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.teaser-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.teaser-bg.show {
    opacity: 1;
}
.levels-teaser .lore-label,
.levels-teaser .lore-title,
.levels-teaser .lore-divider,
.levels-teaser .teaser-grid {
    position: relative;
    z-index: 1;
}
.teaser-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.teaser-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 20px;
    border-left: 1px solid rgba(245, 245, 245, 0.06);
    transition: border-color 0.3s;
}
.teaser-item:hover {
    border-left-color: rgba(245, 245, 245, 0.2);
}
.teaser-num {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    min-width: 28px;
    letter-spacing: 0.1em;
}
.teaser-name {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: rgba(245, 245, 245, 0.5);
    min-width: 140px;
}
.teaser-desc {
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(245, 245, 245, 0.35);
}

/* ─── LEVEL SECTIONS ─── */
.level-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.level-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}
.level-section .container {
    position: relative;
    z-index: 1;
}
.level-section .number {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    letter-spacing: 0.1em;
    user-select: none;
}
.level-section h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    color: #fff;
}
.level-section p {
    font-weight: 200;
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}
.level-section p.lead-p {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
}
.level-section .img-col {
    opacity: 0;
    transform: translateX(40px);
}
.level-section .img-col img {
    width: 100%;
    border-radius: 2px;
    filter: grayscale(0.3);
}

@media (max-width: 768px) {
    .level-section { background-attachment: scroll; }
    .level-section .img-col { margin-top: 1.5rem; }
    .level-section p { max-width: 100%; }
}

/* ─── RESPONSIVE / MOBILE ─── */

/* tablet & small laptop */
@media (max-width: 991px) {
    .level-section .number {
        font-size: clamp(3.5rem, 12vw, 7rem);
    }
    .level-section .img-col {
        margin-top: 1.5rem;
    }
    .level-section h2 {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
        letter-spacing: 0.3em;
    }
    .level-section p {
        font-size: clamp(0.85rem, 1.6vw, 1rem);
    }
}

/* mobile */
@media (max-width: 575px) {
    .hamburger {
        top: 20px;
        width: 36px;
        height: 28px;
    }
    .hamburger span {
        height: 1.5px;
    }
    .menu-items li {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        letter-spacing: 0.4em;
        margin: 12px 0;
        padding: 4px 12px;
    }

    .volume-icon {
        bottom: 20px;
        left: 20px;
    }

    .hero .tagline {
        bottom: 24px;
        right: 20px;
    }
    .hero .tagline .line1 {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
    .hero .tagline .line2 {
        font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    }

    .lore-section {
        padding: 70px 20px;
    }
    .lore-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        letter-spacing: 0.3em;
    }
    .lore-text {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .note-section {
        padding: 60px 20px 80px;
    }
    .note-card {
        padding: 28px 20px;
    }
    .note-body p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    .levels-teaser {
        padding: 60px 20px;
    }
    .teaser-item {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 14px 16px;
    }
    .teaser-name {
        min-width: auto;
        font-size: 0.8rem;
    }
    .teaser-desc {
        width: 100%;
        font-size: 0.75rem;
    }

    .lore-footer {
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .lore-footer p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        letter-spacing: 0.4em;
    }

    #loading-screen h1 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
        letter-spacing: 0.2em;
    }

    .level-section {
        background-attachment: scroll;
        min-height: 100vh;
        height: auto;
        padding: 80px 0;
    }
    .level-section .container {
        padding: 0 16px;
    }
    .level-section .row {
        flex-direction: column !important;
    }
    .level-section .anim-img {
        order: -1;
    }
    .level-section .img-col {
        margin-top: 1.5rem;
    }
    .level-section p {
        max-width: 100%;
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    }
    .level-section h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        letter-spacing: 0.25em;
    }
    .level-section .number {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

/* ─── FOOTER ─── */
.lore-footer {
    padding: 100px 24px;
    text-align: center;
}
.lore-footer p {
    font-weight: 200;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.6em;
    color: rgba(245, 245, 245, 0.4);
    margin-bottom: 12px;
}
.lore-footer span {
    font-weight: 200;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(245, 245, 245, 0.45);
}

/* ─── RESPONSIVE POLISH ─── */
body {
    min-width: 320px;
}

.hamburger,
.volume-icon {
    touch-action: manipulation;
}

.hamburger {
    top: 22px;
    left: 24px;
    width: 48px;
    height: 48px;
    padding: 14px 8px;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.hamburger:hover,
.hamburger.active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.72);
}

.hamburger.top-left,
.hamburger.hidden {
    left: 24px;
    transform: none;
}

.hamburger.hidden {
    opacity: 1;
    pointer-events: auto;
}

.volume-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
}

.volume-icon:focus-visible,
.hamburger:focus-visible,
.menu-items li:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.65);
    outline-offset: 5px;
}

#menu-overlay {
    min-height: 100dvh;
    padding: 88px 18px 48px;
    overflow-y: auto;
}

.menu-items {
    width: min(100%, 760px);
}

.menu-items li {
    overflow-wrap: anywhere;
}

.hero {
    min-height: 100dvh;
    height: auto;
}

.hero .tagline {
    left: 24px;
}

.lore-title,
.level-section h2 {
    text-indent: 0.6em;
}

.level-section {
    min-height: 100dvh;
    height: auto;
}

.level-section .container {
    width: min(100% - 32px, 1140px);
}

.level-section h2 {
    text-indent: 0.5em;
}

.level-section .img-col img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.teaser-item {
    min-height: 64px;
}

.levels-teaser {
    overflow: hidden;
}

@media (max-width: 991px) {
    #menu-overlay {
        align-items: flex-start;
    }

    .menu-items li {
        letter-spacing: 0.42em;
    }

    .hero {
        background-position: 47% center;
    }

    .lore-section,
    .note-section,
    .levels-teaser,
    .lore-footer {
        width: min(100%, 720px);
    }

    .level-section {
        align-items: flex-start;
        padding: 92px 0 64px;
        background-attachment: scroll;
    }

    .level-section h2 {
        text-indent: 0.3em;
    }
}

@media (max-width: 575px) {
    .hamburger {
        top: 20px;
        left: 20px;
        transform: none;
    }

    .hamburger.hidden {
        transform: translateY(-20px);
    }

    #menu-overlay {
        justify-content: flex-start;
        padding: 84px 18px 36px;
    }

    .menu-bg.show {
        opacity: 0.35;
    }

    .menu-items li {
        min-height: 48px;
        padding: 10px 4px;
        font-size: clamp(1.35rem, 8vw, 2.2rem);
        letter-spacing: 0.18em;
    }

    .menu-items li.blur {
        filter: none;
        opacity: 0.45;
        transform: none;
    }

    .volume-icon {
        bottom: max(16px, env(safe-area-inset-bottom));
        left: max(16px, env(safe-area-inset-left));
        width: 46px;
        height: 46px;
    }

    .hero .tagline {
        right: 18px;
        bottom: max(24px, env(safe-area-inset-bottom));
        left: 18px;
    }

    .hero .tagline .line1 {
        letter-spacing: 0.2em;
    }

    .hero .tagline .line2 {
        letter-spacing: 0.16em;
    }

    .lore-label,
    .note-header,
    .note-footer,
    .lore-footer span {
        letter-spacing: 0.16em;
    }

    .lore-title {
        letter-spacing: 0.16em;
        text-indent: 0.16em;
    }

    .lore-text,
    .note-body p {
        letter-spacing: 0.05em;
        line-height: 1.75;
    }

    .teaser-item {
        display: grid;
        grid-template-columns: 34px 1fr;
        align-items: start;
        gap: 8px 12px;
    }

    .teaser-name {
        letter-spacing: 0.14em;
    }

    .teaser-desc {
        grid-column: 2;
        width: auto;
        letter-spacing: 0.05em;
        line-height: 1.5;
    }

    .lore-footer p {
        letter-spacing: 0.18em;
    }

    #loading-screen h1 {
        max-width: calc(100vw - 32px);
        letter-spacing: 0.14em;
        text-indent: 0.14em;
    }

    .level-section {
        min-height: 100svh;
        padding: 88px 0 56px;
    }

    .level-section .container {
        width: min(100% - 32px, 540px);
        padding: 0;
    }

    .level-section .anim-img {
        order: 0;
    }

    .level-section .img-col {
        margin-top: 1.25rem;
    }

    .level-section .img-col img {
        max-height: 34vh;
    }

    .level-section p {
        letter-spacing: 0.055em;
        line-height: 1.7;
    }

    .level-section h2 {
        margin-bottom: 1rem;
        letter-spacing: 0.14em;
        text-indent: 0.14em;
    }
}

@media (max-width: 380px) {
    .hero .tagline .line1,
    .lore-title,
    .level-section h2,
    .lore-footer p {
        letter-spacing: 0.1em;
        text-indent: 0.1em;
    }

    .menu-items li {
        letter-spacing: 0.12em;
    }
}

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