/* lunch.quest — CSS */
/* Earth-tone palette with tech-mono typography */

:root {
    --warm-cream: #f0e6d6;
    --sand: #e8d8c4;
    --clay: #b8a089;
    --warm-grey: #8a7a6a;
    --earth-brown: #5a4a3a;
    --deep-brown: #3d2b1f;
    --sage-green: #7a9a6b;
    --terracotta: #c4795a;
}

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

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--warm-cream);
    color: var(--earth-brown);
}

/* Scroll Container */
.scroll-container {
    width: 100%;
}

/* Course Sections */
.course {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course:nth-child(1) { background: var(--warm-cream); }
.course:nth-child(2) { background: var(--sand); }
.course:nth-child(3) { background: var(--warm-cream); }
.course:nth-child(5) { background: var(--sand); }
.course:nth-child(6) { background: var(--warm-cream); }

.palate-cleanser {
    height: 50vh;
    background: var(--deep-brown);
}

.palate-cleanser .cleanser-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    color: var(--clay);
    letter-spacing: 1em;
}

/* Course Content */
.course-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.course-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-brown);
    margin-bottom: 1.5rem;
}

.course-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--warm-grey);
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* Course Indicator */
.course-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--clay);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.indicator-dot.active {
    opacity: 1;
    background: var(--terracotta);
    transform: scale(1.4);
}

/* ======================== */
/* INFLATED 3D OBJECTS      */
/* ======================== */

.inflated-object {
    display: inline-block;
    position: relative;
    margin: 1rem;
}

/* Onigiri (Rice Ball) */
.onigiri-body {
    width: 120px;
    height: 110px;
    background: radial-gradient(ellipse at 35% 30%, #ffffff 0%, var(--sand) 50%, var(--clay) 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow:
        0 20px 40px rgba(61, 43, 31, 0.2),
        inset 0 -15px 30px rgba(138, 122, 106, 0.3),
        0 5px 15px rgba(61, 43, 31, 0.1);
    position: relative;
}

.onigiri-nori {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 45px;
    background: var(--deep-brown);
    border-radius: 5px 5px 20px 20px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

/* Thermos */
.thermos-body {
    width: 60px;
    height: 140px;
    background: radial-gradient(ellipse at 30% 30%, var(--terracotta) 0%, #a0604a 60%, var(--earth-brown) 100%);
    border-radius: 30px 30px 20px 20px;
    box-shadow:
        0 20px 40px rgba(61, 43, 31, 0.25),
        inset -10px 0 20px rgba(61, 43, 31, 0.2),
        0 5px 15px rgba(61, 43, 31, 0.1);
    position: relative;
}

.thermos-cap {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 25px;
    background: radial-gradient(ellipse at 40% 30%, var(--clay) 0%, var(--warm-grey) 100%);
    border-radius: 10px 10px 5px 5px;
    box-shadow: 0 -3px 10px rgba(61, 43, 31, 0.15);
}

/* Bento Box */
.bento-body {
    width: 140px;
    height: 90px;
    background: radial-gradient(ellipse at 35% 25%, var(--sand) 0%, var(--clay) 60%, var(--warm-grey) 100%);
    border-radius: 15px;
    box-shadow:
        0 20px 40px rgba(61, 43, 31, 0.2),
        inset 0 -10px 20px rgba(90, 74, 58, 0.2),
        0 5px 15px rgba(61, 43, 31, 0.1);
    position: relative;
}

.bento-lid {
    position: absolute;
    top: -8px;
    left: 5px;
    right: 5px;
    height: 20px;
    background: radial-gradient(ellipse at 40% 30%, var(--terracotta) 0%, #a06050 100%);
    border-radius: 10px 10px 3px 3px;
    box-shadow: 0 -3px 8px rgba(61, 43, 31, 0.1);
}

/* Chopsticks */
.chopsticks {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.chopstick {
    width: 8px;
    height: 160px;
    background: linear-gradient(180deg, var(--earth-brown) 0%, var(--clay) 50%, var(--warm-grey) 100%);
    border-radius: 4px 4px 2px 2px;
    box-shadow:
        3px 10px 20px rgba(61, 43, 31, 0.2),
        inset -2px 0 5px rgba(61, 43, 31, 0.1);
    transform: rotate(-3deg);
}

.chopstick.right {
    transform: rotate(3deg);
}

/* Napkin */
.napkin-body {
    width: 100px;
    height: 80px;
    background: radial-gradient(ellipse at 30% 25%, #ffffff 0%, var(--sand) 50%, var(--clay) 100%);
    border-radius: 5px 40px 5px 40px;
    box-shadow:
        0 15px 30px rgba(61, 43, 31, 0.15),
        inset 0 -8px 15px rgba(138, 122, 106, 0.2);
}

/* Apple */
.apple-body {
    width: 90px;
    height: 85px;
    background: radial-gradient(ellipse at 30% 25%, #d88a6a 0%, var(--terracotta) 50%, #8a4030 100%);
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    box-shadow:
        0 18px 35px rgba(61, 43, 31, 0.25),
        inset -8px -5px 15px rgba(61, 43, 31, 0.2),
        0 5px 12px rgba(61, 43, 31, 0.1);
    position: relative;
}

.apple-stem {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 14px;
    background: var(--earth-brown);
    border-radius: 2px;
}

.apple-leaf {
    position: absolute;
    top: -8px;
    left: 55%;
    width: 18px;
    height: 10px;
    background: var(--sage-green);
    border-radius: 0 50% 50% 0;
    transform: rotate(15deg);
}

/* Teacup */
.teacup-body {
    width: 80px;
    height: 60px;
    background: radial-gradient(ellipse at 35% 30%, var(--sand) 0%, var(--clay) 60%, var(--warm-grey) 100%);
    border-radius: 5px 5px 35px 35px;
    box-shadow:
        0 18px 35px rgba(61, 43, 31, 0.2),
        inset 0 -10px 20px rgba(90, 74, 58, 0.2);
    position: relative;
}

.teacup-handle {
    position: absolute;
    right: -18px;
    top: 10px;
    width: 20px;
    height: 30px;
    border: 5px solid var(--clay);
    border-left: none;
    border-radius: 0 20px 20px 0;
}

/* Steam */
.steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.steam span {
    display: block;
    width: 3px;
    height: 20px;
    background: rgba(138, 122, 106, 0.4);
    border-radius: 3px;
    animation: steam-rise 2s ease-in-out infinite;
}

.steam span:nth-child(2) { animation-delay: 0.5s; height: 25px; }
.steam span:nth-child(3) { animation-delay: 1s; height: 18px; }

@keyframes steam-rise {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.4; }
    50% { transform: translateY(-10px) scaleX(1.3); opacity: 0.1; }
}

/* Lunchbox Closed */
.lunchbox-body {
    width: 150px;
    height: 70px;
    background: radial-gradient(ellipse at 35% 30%, var(--sage-green) 0%, #5a7a4b 60%, #3a5a2b 100%);
    border-radius: 15px;
    box-shadow:
        0 20px 40px rgba(61, 43, 31, 0.25),
        inset 0 -10px 20px rgba(40, 60, 30, 0.3),
        0 5px 15px rgba(61, 43, 31, 0.1);
}

/* Shake Error Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Object float animation */
.inflated-object {
    animation: gentle-float 4s ease-in-out infinite;
}

.inflated-object:nth-child(2) { animation-delay: -1s; }
.inflated-object:nth-child(3) { animation-delay: -2s; }

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Course entry animations */
.course-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.course.visible .course-content {
    opacity: 1;
    transform: translateY(0);
}
