/* mystery.boo - Memphis-design haunted house */

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

:root {
    --white: #ffffff;
    --cream: #f7f5f2;
    --teal: #4ecdc4;
    --dark: #1a1a2e;
    --gray: #4a5568;
    --light-gray: #f0f2f5;
    --yellow: #ffd93d;
    --silver: #c8cdd3;
    --pink: #ff6b9d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--dark);
    background: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.room-title {
    font-size: clamp(3.2rem, 8vw, 7rem);
    margin-bottom: 1.5rem;
}

.room-text {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Room base */
.room {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.room-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.room-dark {
    background: var(--dark);
    color: var(--white);
}

.room-warm {
    background: var(--cream);
    color: var(--dark);
}

.room-light {
    background: var(--light-gray);
    color: var(--dark);
}

/* Floating shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.shape--triangle {
    border-radius: 0;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid var(--yellow);
}

.shape--zigzag {
    border-radius: 0;
    width: 60px !important;
    height: 4px !important;
    background: var(--teal) !important;
    box-shadow: 0 10px 0 var(--teal), 0 20px 0 var(--teal);
}

.shape--circle {
    background: var(--teal);
}

.shape--square {
    border-radius: 4px;
    background: var(--yellow);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

/* Hero Section */
#hero {
    background: var(--dark);
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.question-mark {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--silver), var(--white), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-chrome 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes pulse-chrome {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-top: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: var(--silver);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* Eyes Room */
.eyes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 400px;
    margin: 2rem auto;
}

.eye {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

.eye-pupil {
    width: 30px;
    height: 30px;
    background: var(--dark);
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.eye-pupil::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: var(--teal);
    border-radius: 50%;
}

/* Doors Room */
.doors-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.door {
    width: 140px;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.door:hover {
    transform: translateY(-10px) scale(1.05);
}

.door-frame {
    width: 100%;
    height: 100%;
    border: 4px solid var(--dark);
    border-radius: 60px 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.door-1 .door-frame { border-color: var(--teal); }
.door-2 .door-frame { border-color: var(--yellow); }
.door-3 .door-frame { border-color: var(--pink); }

.door-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.door-pattern.zigzag {
    background: repeating-linear-gradient(
        135deg,
        var(--teal) 0px,
        var(--teal) 10px,
        transparent 10px,
        transparent 20px
    );
}

.door-pattern.dots {
    background: radial-gradient(circle 5px, var(--yellow) 100%, transparent 100%);
    background-size: 20px 20px;
}

.door-pattern.waves {
    background: repeating-linear-gradient(
        0deg,
        var(--dark) 0px,
        var(--dark) 3px,
        transparent 3px,
        transparent 12px
    );
}

.door-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.door-message {
    transition: opacity 0.5s ease;
}

/* Clue Board */
.clue-board {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.clue-card {
    width: 180px;
    height: 200px;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clue-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.clue-svg {
    width: 80px;
    height: 80px;
}

.clue-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.5s ease;
}

.clue-card.revealed .clue-path {
    stroke-dashoffset: 0;
}

.clue-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

/* Reveal Room */
.reveal-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.room-reveal.visible .reveal-title,
.room-reveal.visible .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.memphis-badge {
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    border: 3px solid var(--teal);
    border-radius: 50px;
    display: inline-block;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.room-reveal.visible .memphis-badge {
    opacity: 1;
}

.badge-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--teal);
}

/* Responsive */
@media (max-width: 768px) {
    .eyes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doors-container {
        gap: 1.5rem;
    }

    .door {
        width: 100px;
        height: 160px;
    }

    .clue-board {
        flex-direction: column;
        align-items: center;
    }
}
