/* === continua.quest styles === */
/* Colors: #E8E0D0, #C8C0B0, #D8A0A0, #A0A8D8, #A0C8B0, #D8B888, #3A3830, #8A8078 */
/* Chrome: #B0A898, #D0C8B8, #C0B8A8, #D8D0C0 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #E8E0D0 0%, #D8D0C0 50%, #E8E0D0 100%);
    color: #3A3830;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Vintage Frame */
#vintage-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    box-shadow: inset 0 0 0 16px #D8D0C0, inset 0 0 0 18px #C8C0B0;
}

/* Vignette */
#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 49;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(58,56,48,0.1) 100%);
}

/* Noise */
#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 48;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* === Navigation === */
#dash-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 80;
    padding: 8px 16px;
    background: rgba(232, 224, 208, 0.8);
    border-radius: 28px;
    border: 2px solid #B0A898;
    backdrop-filter: blur(8px);
}

.nav-logo {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 16px;
    color: #3A3830;
}

.nav-pills {
    display: flex;
    gap: 8px;
}

.pill {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #B0A898;
    background: transparent;
    color: #3A3830;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.pill.active,
.pill:hover {
    background: #B0A898;
    color: #FFFFFF;
}

/* === Hero === */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #E0D8C8 0%, #C8C0B8 50%, #D8D0C0 100%);
}

#hero::before {
    content: '';
    position: absolute;
    top: 48%;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
}

#hero-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #3A3830;
    text-shadow:
        1px 1px 0 #D0C8B8,
        2px 2px 0 #C8C0B0,
        3px 3px 0 #C0B8A8,
        4px 4px 0 #B8B0A0,
        5px 5px 0 #B0A898,
        6px 6px 0 #A8A090,
        7px 7px 0 #A09888,
        8px 8px 0 #989080,
        9px 9px 0 #908878,
        10px 10px 0 #888070,
        11px 11px 0 #807868,
        12px 12px 0 #787060;
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
}

#hero-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A8078;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
    z-index: 10;
}

.hero-sub.visible {
    opacity: 1;
}

/* === Float Shapes === */
.float-shape {
    position: absolute;
    z-index: 5;
}

.sphere {
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.3), #D8A0A0 40%, #C08888 100%);
    box-shadow: 4px 8px 20px rgba(58, 56, 48, 0.15), inset -4px -4px 12px rgba(0,0,0,0.1);
}

.sphere-rose {
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.3), #D8A0A0 40%, #C08888 100%);
}

.sphere-apricot {
    width: 80px;
    height: 80px;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.3), #D8B888 40%, #C8A878 100%);
}

.torus {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 20px solid;
    border-color: #A0A8D8;
    box-shadow: 3px 6px 16px rgba(58, 56, 48, 0.12), inset 2px 2px 6px rgba(255,255,255,0.2);
}

.torus-sage {
    border-color: #A0C8B0;
}

.rounded-cube {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #B8B8D8, #A0A8D8);
    box-shadow: 4px 8px 16px rgba(58, 56, 48, 0.15), inset -2px -2px 8px rgba(0,0,0,0.08);
    transform: rotateX(-10deg) rotateY(15deg);
}

.cube-periwinkle {
    background: linear-gradient(135deg, #B8B8D8, #A0A8D8);
}

.shape-hero-1 {
    width: 120px;
    height: 120px;
    top: 25%;
    right: 15%;
    animation: floatBob 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.shape-hero-1.visible {
    opacity: 1;
}

.shape-hero-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 12%;
    animation: floatBob 3.5s ease-in-out infinite 0.5s;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.shape-hero-2.visible {
    opacity: 1;
}

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

@keyframes floatBobSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

/* === Quest Path === */
#quest-path {
    position: absolute;
    top: 100vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2000px;
    pointer-events: none;
    z-index: 2;
}

/* === Main Content === */
#content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    z-index: 10;
}

.panel-row {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 64px;
}

.panel-row.reverse {
    flex-direction: row-reverse;
}

.quest-panel {
    flex: 1;
    background: rgba(232, 224, 208, 0.6);
    border: 3px solid #B0A898;
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quest-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Chrome sweep hover */
.quest-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.quest-panel:hover::after {
    left: 100%;
}

.panel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
}

.dot-rose { background: #D8A0A0; }
.dot-periwinkle { background: #A0A8D8; }
.dot-sage { background: #A0C8B0; }
.dot-apricot { background: #D8B888; }

.panel-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A8078;
    display: block;
    margin-bottom: 12px;
}

.quest-panel h2 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #3A3830;
    margin-bottom: 16px;
}

.quest-panel p {
    color: #3A3830;
    margin-bottom: 12px;
}

.quest-panel p:last-child {
    margin-bottom: 0;
}

/* Float Zone */
.float-zone {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
}

.float-zone .float-shape {
    position: relative;
    animation: floatBobSlow 5s ease-in-out infinite;
}

/* === Footer === */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-top: 2px solid #C8C0B0;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 18px;
    color: #3A3830;
}

.footer-note {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A8078;
}

/* === Responsive === */
@media (max-width: 768px) {
    #vintage-frame {
        display: none;
    }

    .panel-row,
    .panel-row.reverse {
        flex-direction: column;
    }

    .float-zone {
        flex: none;
        height: 80px;
    }

    #dash-nav {
        flex-direction: column;
        gap: 8px;
        top: 8px;
        padding: 8px 12px;
    }

    .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pill {
        font-size: 11px;
        padding: 6px 14px;
    }

    #content {
        padding: 32px 16px 64px;
    }

    .quest-panel {
        padding: 32px;
    }

    #footer {
        flex-direction: column;
        gap: 8px;
        padding: 24px;
    }
}
