/* ================== BASE & RESET ================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'DotGothic16', sans-serif;
    background-color: #050505;
    color: #e0e0e0;
}

#scroller {
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
}

/* ================== FIXED BACKGROUND & FOG ================== */
#fixed-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#bg-map {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: pixelated; 
    opacity: 0.2;
    transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

#bg-fog-noise {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

#bg-fog-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    transition: background 1.5s ease-in-out;
}

/* Stages 1 to 6 */
#fixed-background[data-stage="1"] #bg-map { opacity: 0.4; filter: blur(2px); }
#fixed-background[data-stage="1"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.85) 60%); }

#fixed-background[data-stage="2"] #bg-map { opacity: 0.5; filter: blur(1px); }
#fixed-background[data-stage="2"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 10%, rgba(0,0,0,0.8) 70%); }

#fixed-background[data-stage="3"] #bg-map { opacity: 0.6; filter: blur(0px); }
#fixed-background[data-stage="3"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0,0,0,0.7) 80%); }

#fixed-background[data-stage="4"] #bg-map { opacity: 0.7; }
#fixed-background[data-stage="4"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 90%); }

#fixed-background[data-stage="5"] #bg-map { opacity: 0.9; }
#fixed-background[data-stage="5"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(0,0,0,0.4) 100%); }

#fixed-background[data-stage="6"] #bg-map { opacity: 1.0; }
#fixed-background[data-stage="6"] #bg-fog-gradient { background: radial-gradient(circle at 50% 50%, transparent 80%, rgba(0,0,0,0.1) 120%); }

/* ================== SNAP SECTIONS ================== */
.snap-section {
    height: 100vh;
    height: 100svh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 5%;
    box-sizing: border-box;
}

.panel-inner {
    max-width: 680px;
    width: 100%;
    padding: 50px;
    background: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.03);
    border-radius: 4px; /* Maintain 16-bit boxy feel but refined */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.panel-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.4), transparent);
}

.snap-section.is-visible .panel-inner {
    opacity: 1;
    transform: translateY(0);
}

.center-align { text-align: center; }
.text-left { text-align: left; }

/* ================== TYPOGRAPHY ================== */
.hero-eyecatch {
    color: #f39c12;
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

h1, h2 {
    color: #fff;
    margin-top: 0;
    line-height: 1.5;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
}

h1 { font-size: 2.5rem; letter-spacing: 0.05em; }
h2 { font-size: 1.6rem; margin-bottom: 30px; position: relative; display: inline-block; }
h2::after {
    content: "";
    position: absolute;
    bottom: -10px; left: 0; width: 60px; height: 2px;
    background: #f39c12;
}
.center-align h2::after { left: 50%; transform: translateX(-50%); }

.brand-title { 
    font-size: 3rem; 
    letter-spacing: 0.2em; 
    color: #fff; 
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
    margin-bottom: 30px;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
}

.text-block p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.5em;
    color: rgba(255,255,255,0.9);
}

strong { color: #f39c12; font-weight: bold; }

/* ================== FLOW STEPS ================== */
.flow-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.step-card:hover {
    background: rgba(243, 156, 18, 0.05);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-5px);
}

.step-num {
    font-weight: bold;
    color: #f39c12;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================== BUTTONS ================== */
.btn-main-cta {
    display: inline-block;
    background: #f39c12;
    color: #000;
    text-decoration: none;
    padding: 20px 45px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f39c12;
    box-shadow: 0 0 0 rgba(243, 156, 18, 0);
}

.btn-main-cta:hover {
    background: transparent;
    color: #f39c12;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
    transform: translateY(-3px);
}

/* ================== FLOATING CTA ================== */
#floating-cta {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.btn-floating {
    pointer-events: auto;
    background: rgba(243, 156, 18, 0.95);
    color: #000;
    padding: 18px 40px;
    border-radius: 2px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.1em;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid #f39c12;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-5px);
}

/* ================== QUEST NOTE SCREEN ================== */
.quest-note-badge {
    display: inline-block;
    margin-top: 20px;
}

.badge-label {
    display: inline-block;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.5);
    color: #f39c12;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    border-radius: 2px;
}

.btn-sub-cta {
    display: inline-block;
    background: transparent;
    color: #f39c12;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f39c12;
}

.btn-sub-cta:hover {
    background: rgba(243, 156, 18, 0.1);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.3);
    transform: translateY(-3px);
}

.mt-6 { margin-top: 30px; }

/* ================== FOOTER ================== */
.site-footer {
    background: rgba(0,0,0,0.9);
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #f39c12; }

/* ================== GLOBAL TEXTURE ================== */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.01));
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* ================== MEDIA QUERIES ================== */
@media (max-width: 600px) {
    .flow-steps { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
    .brand-title { font-size: 2.2rem; }
    .panel-inner { padding: 30px 20px; }
    .btn-main-cta { width: 100%; box-sizing: border-box; }
}
