/* World experience overlay — matches the site's Geist/Anybody identity. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
    background: #0b1016;
    color: #fff;
    font-family: 'Geist', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#canvas3d { position: fixed; inset: 0; }
#canvas3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* ── splash ─────────────────────────────────────────────── */
#splash {
    position: fixed; inset: 0; z-index: 40;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 120% at 50% 20%, #00524a 0%, #002b26 55%, #00110f 100%);
    transition: opacity .8s ease, visibility .8s;
}
#splash.hidden { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; padding: 2rem; max-width: 30rem; }
.splash-inner h1 {
    font-family: 'Anybody', 'Geist', sans-serif;
    font-weight: 900; font-size: clamp(2.2rem, 7vw, 4rem);
    letter-spacing: .12em;
}
.splash-logo {
    max-width: min(340px, 85vw);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.splash-sub {
    margin-top: .6rem; letter-spacing: .28em; font-size: .78rem;
    text-transform: uppercase; opacity: .65;
}
#load-bar {
    margin: 2rem auto 1.2rem; width: min(320px, 70vw); height: 3px;
    background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden;
}
#load-bar-fill {
    width: 0%; height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #c0c0c0, #f5f5f5, #c0c0c0);
    transition: width .25s ease;
}
#btn-enter {
    font-family: 'Anybody', sans-serif; font-weight: 700;
    font-size: 1rem; letter-spacing: .18em;
    padding: .8rem 2.6rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
    cursor: pointer; transition: all .25s ease;
}
#btn-enter:not(:disabled):hover { background: #fff; color: #00352f; }
#btn-enter:disabled { opacity: .45; cursor: wait; }
.splash-hint { margin-top: 1.4rem; font-size: .8rem; opacity: .55; line-height: 1.6; }

/* ── HUD ────────────────────────────────────────────────── */
#hud-top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem;
    opacity: 0; transition: opacity 1s ease .3s;
    pointer-events: none;
}
body.started #hud-top { opacity: 1; pointer-events: auto; }
#brand {
    font-family: 'Anybody', sans-serif; font-weight: 900; font-size: 1.15rem;
    letter-spacing: .14em; padding: .4rem .7rem; border-radius: .5rem;
    background: rgba(6, 12, 16, .45); backdrop-filter: blur(8px);
}
#wp-nav { display: flex; gap: .4rem; }
#wp-nav button {
    font-family: 'Geist', sans-serif; font-size: .82rem; letter-spacing: .08em;
    text-transform: uppercase; color: #fff;
    padding: .5rem .9rem; border: 0; border-radius: 999px;
    background: rgba(6, 12, 16, .45); backdrop-filter: blur(8px);
    cursor: pointer; transition: background .25s ease, color .25s;
}
#wp-nav button:hover { background: rgba(255,255,255,.85); color: #00352f; }
#wp-nav button.active { background: rgba(255,255,255,.92); color: #00352f; }

/* big waypoint title */
#wp-title {
    position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%);
    z-index: 15; pointer-events: none;
    font-family: 'Anybody', sans-serif; font-weight: 900;
    font-size: clamp(1.6rem, 5vw, 3.2rem); letter-spacing: .18em;
    text-shadow: 0 2px 24px rgba(0,0,0,.55);
    opacity: 0; transition: opacity .7s ease;
    white-space: nowrap;
}
#wp-title.visible { opacity: 1; }

/* toast */
#toast {
    position: fixed; left: 50%; bottom: 22vh; transform: translateX(-50%) translateY(6px);
    z-index: 25; pointer-events: none;
    font-size: .9rem; letter-spacing: .06em;
    padding: .6rem 1.2rem; border-radius: 999px;
    background: rgba(6, 12, 16, .72); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .35s ease, transform .35s ease;
}
#toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* scroll hint */
#scroll-hint {
    position: fixed; left: 50%; bottom: 2.2vh; transform: translateX(-50%);
    z-index: 15; pointer-events: none;
    display: flex; align-items: center; gap: .6rem;
    font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0;
    transition: opacity 1s ease;
}
body.started #scroll-hint { opacity: .75; }
body.moved #scroll-hint { opacity: 0; }
.mouse {
    width: 18px; height: 28px; border: 1.5px solid rgba(255,255,255,.8);
    border-radius: 10px; position: relative; display: inline-block;
}
.wheel {
    position: absolute; left: 50%; top: 5px; width: 3px; height: 6px;
    margin-left: -1.5px; border-radius: 2px; background: #fff;
    animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

.splash-link { color: #cfe0da; }
#classic-link {
    position: fixed; right: 1.2rem; bottom: 1.1rem; z-index: 18;
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.65); text-decoration: none;
    padding: .35rem .7rem; border-radius: 999px;
    background: rgba(6,12,16,.4); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 1s ease .5s;
}
body.started #classic-link { opacity: 1; }
#classic-link:hover { color: #fff; }

@media (max-width: 640px) {
    #wp-nav button { padding: .45rem .6rem; font-size: .72rem; }
    #wp-title { bottom: 16vh; }
}
