/* ============================================================
   PATH OF LIGHT — Game-like Scrollytelling Engine
   Dark fantasy • sticky companion • volumetric light • particles

   PERFORMANCE NOTES:
   - All continuous animations use transform/opacity only, on
     will-change-promoted layers (compositor-friendly, 60fps).
   - Filters and blend modes are STATIC (rastered once, cached).
   - Every animation pauses when the section leaves the viewport.
   - Levels use content-visibility so off-screen content is
     skipped by the renderer entirely.
   ============================================================ */

.path-of-light-section {
    --pol-bg-0: #04060e;
    --pol-bg-1: #0a0f22;
    --pol-ink: #e8ecf7;
    --pol-ink-dim: #9aa6c4;
    --pol-gold: #ffd97a;
    --pol-gold-deep: #e8a93d;
    --pol-cyan: #8fd8ff;
    --pol-violet: #8d7bff;
    --pol-fire: #ff9a3d;
    --pol-rune: #7fe7c4;
    --pol-danger: #ff5d6c;

    position: relative;
    overflow: visible;
    /* The blend into the page above is baked into the background
       itself: the first stops match the site's own --bg-primary,
       so no overlay seam or harsh line can ever appear. */
    background:
        radial-gradient(1200px 700px at 50% 6%, rgba(19, 29, 64, .85) 0%, transparent 55%),
        linear-gradient(180deg,
            var(--bg-primary) 0vh,
            #8d90a0 16vh,
            #474e6b 32vh,
            #1c2444 46vh,
            var(--pol-bg-1) 58vh,
            var(--pol-bg-0) 76vh,
            var(--pol-bg-0) 100%);
    color: var(--pol-ink);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    isolation: isolate;
}

body.dark-mode .path-of-light-section {
    background:
        radial-gradient(1200px 700px at 50% 6%, rgba(19, 29, 64, .85) 0%, transparent 55%),
        linear-gradient(180deg,
            var(--bg-primary) 0vh,
            #131629 18vh,
            #0d1226 38vh,
            var(--pol-bg-1) 56vh,
            var(--pol-bg-0) 76vh,
            var(--pol-bg-0) 100%);
}

.path-of-light-section *,
.path-of-light-section *::before,
.path-of-light-section *::after {
    box-sizing: border-box;
}

/* Freeze every animation while the journey is off-screen */
.path-of-light-section:not(.pol-inview) *,
.path-of-light-section:not(.pol-inview) *::before,
.path-of-light-section:not(.pol-inview) *::after,
#pol-companion:not(.pol-on) *,
#pol-companion:not(.pol-on) *::before,
#pol-companion:not(.pol-on) *::after {
    animation-play-state: paused !important;
}

/* Skip rendering work for levels far outside the viewport */
.pol-level {
    content-visibility: auto;
    contain-intrinsic-size: auto 1000px;
}

/* Level 2 must not use containment — its fixed backdrop would clip */
.pol-level-2 {
    content-visibility: visible !important;
    contain: none !important;
}

/* Level 3 must not use containment — prevents header overlap and z-index collisions */
.pol-level-3 {
    content-visibility: visible !important;
    contain: none !important;
    padding-top: 15vh;
}

/* ---------- Ambient layers (static raster, transform-only motion) ---------- */
.pol-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 32% 42%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(2px 2px at 58% 12%, rgba(255,233,180,.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 74% 30%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 55%, rgba(180,220,255,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(2px 2px at 44% 82%, rgba(255,233,180,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 74%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 82% 88%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 90%, rgba(180,220,255,.7) 50%, transparent 51%);
    background-size: 640px 640px;
    animation: polTwinkle 5s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes polTwinkle {
    from { opacity: .45; }
    to   { opacity: 1; }
}

.pol-vignette {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

.pol-godrays {
    position: absolute;
    top: -8%;
    left: 50%;
    width: 130%;
    height: 55%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .45;
    background:
        conic-gradient(from 168deg at 50% 0%,
            transparent 0deg,
            rgba(255, 224, 150, .08) 6deg, transparent 14deg,
            rgba(160, 210, 255, .06) 19deg, transparent 27deg,
            rgba(255, 224, 150, .10) 33deg, transparent 42deg,
            rgba(160, 210, 255, .05) 49deg, transparent 58deg,
            rgba(255, 224, 150, .08) 66deg, transparent 74deg);
    transform: translateX(-50%) rotate(-2deg);
    animation: polRaySway 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes polRaySway {
    from { transform: translateX(-50%) rotate(-2.5deg); }
    to   { transform: translateX(-50%) rotate(2.5deg); }
}

/* ============================================================
   KYRA — STICKY COMPANION (fixed) + SPOTLIGHT + CHAT BUBBLE
   ============================================================ */
#pol-companion {
    pointer-events: none;
}

.pol-spotlight {
    position: fixed;
    left: var(--kx, 50%);
    top: var(--ky, 42vh);
    width: 640px;
    height: 640px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(var(--ks, 1));
    background: radial-gradient(circle,
        rgba(255, 224, 150, .12) 0%,
        rgba(255, 214, 130, .05) 38%,
        transparent 65%);
    mix-blend-mode: screen;
    z-index: 25;
    opacity: 0;
    transition: left 1s cubic-bezier(.22,1,.36,1), top 1s cubic-bezier(.22,1,.36,1), opacity .6s ease;
    will-change: left, top;
}

.pol-kyra {
    position: fixed;
    left: var(--kx, 50%);
    top: var(--ky, 42vh);
    width: calc(150px * var(--ks, 1));
    margin-left: calc(-75px * var(--ks, 1));
    margin-top: calc(-85px * var(--ks, 1));
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition:
        left 1s cubic-bezier(.22,1,.36,1),
        top 1s cubic-bezier(.22,1,.36,1),
        width 1s cubic-bezier(.22,1,.36,1),
        margin 1s cubic-bezier(.22,1,.36,1),
        opacity .6s ease,
        visibility .6s ease;
    will-change: left, top;
}

#pol-companion.pol-on .pol-kyra { opacity: 1; visibility: visible; }
#pol-companion.pol-on .pol-spotlight { opacity: 1; }

/* --- Zone anchors --- */
/* Level 0: not yet met */
#pol-companion.kx-hidden { --kx: 50%; --ky: 62vh; --ks: .6; }
#pol-companion.kx-hidden .pol-kyra,
#pol-companion.kx-hidden .pol-spotlight,
#pol-companion.kx-hidden .pol-chat { opacity: 0 !important; visibility: hidden; }

/* Level 1: center stage to greet the user */
#pol-companion.kx-center { --kx: 50%; --ky: 32vh; --ks: 1; }

/* Levels 2-7: settled in the bottom-left corner for the journey */
#pol-companion.kx-corner { --kx: 118px; --ky: calc(100vh - 128px); --ks: .78; }

/* Level 0: mysterious silhouette — figure visible but fully darkened */
#pol-companion.kx-anonymous .pol-kyra-img {
    filter: brightness(0) drop-shadow(0 0 18px rgba(157, 180, 208, .35));
}
#pol-companion.kx-anonymous .pol-kyra-aura {
    opacity: .25 !important;
    filter: grayscale(1);
}
#pol-companion.kx-anonymous .pol-kyra-beam {
    opacity: .12 !important;
    filter: grayscale(1);
}
#pol-companion.kx-anonymous .pol-chat { border-color: rgba(154, 166, 196, .3); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }

/* The departure: she floats skyward as the hope launches */
#pol-companion.kx-gone { --kx: 50%; --ky: -18vh; --ks: .5; }
#pol-companion.kx-gone .pol-kyra,
#pol-companion.kx-gone .pol-spotlight,
#pol-companion.kx-gone .pol-chat { opacity: 0 !important; visibility: hidden; }

.pol-kyra-float {
    animation: polKyraFloat 4.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes polKyraFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

/* The aura does all the "pulsing glow" work — transform/opacity only */
.pol-kyra-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 223, 140, .32) 0%,
        rgba(255, 200, 110, .13) 34%,
        rgba(140, 200, 255, .05) 56%,
        transparent 72%);
    mix-blend-mode: screen;
    animation: polGlowPulse 3.4s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes polGlowPulse {
    0%, 100% { opacity: .7;  transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* Static glow — rastered once, never re-painted */
.pol-kyra-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(255, 217, 122, .8)) drop-shadow(0 0 44px rgba(255, 190, 90, .42));
}

.pol-kyra-beam {
    position: absolute;
    top: 12%;
    left: 50%;
    width: 240px;
    height: 320px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(255, 230, 160, .26) 0%,
        rgba(255, 220, 140, .08) 45%,
        transparent 80%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0% 100%);
    filter: blur(10px);
    mix-blend-mode: screen;
    animation: polBeamFlicker 5s ease-in-out infinite;
    will-change: opacity;
}

@keyframes polBeamFlicker {
    0%, 100% { opacity: .55; }
    40%      { opacity: .9; }
    60%      { opacity: .65; }
    80%      { opacity: .95; }
}

/* --- RPG chat bubble (zone-aware, typewriter with interrupt) --- */
.pol-chat {
    position: fixed;
    left: var(--kx, 50%);
    top: var(--ky, 42vh);
    width: 245px;
    padding: .85rem 1.05rem;
    border-radius: 14px;
    background: rgba(8, 12, 30, .93);
    border: 2px solid rgba(255, 217, 122, .45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 200, 90, .12);
    z-index: 61;
    transform: translate(34px, calc(-100% - 92px)) scale(.75);
    transform-origin: bottom left;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .35s cubic-bezier(.22,1,.36,1),
        left 1s cubic-bezier(.22,1,.36,1),
        top 1s cubic-bezier(.22,1,.36,1);
    will-change: left, top;
}

.pol-chat.open {
    opacity: 1;
    visibility: visible;
    transform: translate(34px, calc(-100% - 92px)) scale(1);
}

.pol-chat::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 24px;
    border: 9px solid transparent;
    border-left-width: 4px;
    border-top-color: rgba(255, 217, 122, .45);
}

.pol-chat-text {
    margin: 0;
    min-height: 2.7em;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--pol-ink);
}

/* ============================================================
   LEVELS — shared layout, headings, reveal system
   ============================================================ */
.pol-level {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16vh 1.5rem;
    overflow: visible;
}

.pol-h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    color: var(--pol-ink);
    text-shadow: 0 0 24px rgba(255, 217, 122, .35);
    margin: 0 0 1rem;
}

.pol-lead {
    max-width: 640px;
    text-align: center;
    color: var(--pol-ink-dim);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
    margin: 0 auto 3rem;
}

.pol-lead strong { color: var(--pol-gold); font-weight: 600; }

.pol-level-head { position: relative; z-index: 12; }

.pol-reveal {
    opacity: 0;
    transform: translateY(46px);
    transition:
        opacity .9s cubic-bezier(.22,1,.36,1),
        transform .9s cubic-bezier(.22,1,.36,1);
    transition-delay: calc(var(--d, 0) * 160ms);
    will-change: opacity, transform;
}

.pol-reveal.pol-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LEVEL 0 — TRANSITION ZONE
   ============================================================ */
.pol-level-0 {
    min-height: 115vh;
    z-index: 11;
}

/* Deep Talk inside transition zone */
.pol-deep-talk {
    position: relative;
    z-index: 7;
    max-width: 760px;
    margin: 5vh auto;
    padding: 1.8rem 1rem;
    text-align: center;
    pointer-events: none;
}
.pol-story-kicker {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(232, 169, 61, 0.35);
    border-radius: 999px;
    color: var(--pol-gold);
}
.pol-deep-talk h2 {
    margin: 1.2rem 0 0.8rem;
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 4.2vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pol-ink);
}
.pol-deep-talk > p {
    margin: 0 auto 2rem;
    max-width: 640px;
    color: var(--pol-ink-dim);
    font-size: 1.08rem;
    line-height: 1.7;
}
.pol-growth-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 760px;
}
.pol-growth-cards article {
    padding: 1.1rem;
    border-radius: 14px;
    background: rgba(13, 19, 40, 0.75);
    border: 1px solid rgba(154, 166, 196, 0.2);
    text-align: left;
    pointer-events: auto;
    transition: border-color 0.3s, background 0.3s;
}
.pol-growth-cards article strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--pol-gold);
    font-size: 0.9rem;
}
.pol-growth-cards article span {
    color: var(--pol-ink-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}
.pol-deep-closing {
    margin: 0 auto;
    max-width: 660px;
    color: var(--pol-ink-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    font-style: italic;
}
.pol-entry-bridge {
    position: relative;
    z-index: 7;
    max-width: 560px;
    margin: 5vh auto 2vh;
    text-align: center;
    font-size: 1rem;
    color: var(--pol-ink-dim);
    line-height: 1.6;
}

/* UTBK Gate — new level between Level 1 and Level 2 */
.pol-level-utbk {
    min-height: 100vh;
}
.pol-utbk-gate {
    position: relative;
    z-index: 12;
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(154, 166, 196, 0.25);
    background: rgba(8, 12, 30, 0.7);
    backdrop-filter: blur(8px);
    text-align: center;
}
.pol-utbk-gate-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at 50% 0%, rgba(143, 216, 255, 0.2), transparent 70%);
    pointer-events: none;
}
.pol-utbk-numbers {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0 2.5rem;
}
.pol-utbk-numbers article {
    text-align: center;
}
.pol-utbk-numbers strong {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--pol-gold), var(--pol-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pol-utbk-numbers span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--pol-ink-dim);
    margin-top: 0.2rem;
}
.pol-utbk-gate > p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--pol-ink-dim);
    line-height: 1.75;
}
.pol-utbk-gate p:first-of-type {
    margin-top: 1.5rem;
}

/* Surat Harapan — after hope form */
.pol-destiny-surat {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    padding: 2rem 2rem 2.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 217, 122, 0.35);
    background: linear-gradient(160deg, rgba(255, 247, 224, 0.06) 0%, rgba(255, 217, 122, 0.08) 100%);
    position: relative;
    text-align: center;
}
.pol-destiny-surat .pol-surat-header {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--pol-gold);
    margin-bottom: 0.8rem;
}
.pol-destiny-surat .pol-surat-footer {
    margin-top: 1.2rem;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--pol-ink-dim);
}

.pol-destiny-greeting p:first-of-type {
    margin-bottom: 0.5rem;
    color: var(--pol-ink-dim);
    font-size: 0.95rem;
}

.pol-destiny-greeting p:nth-of-type(2) {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pol-gold);
    margin: 0.5rem 0 0.8rem;
    text-shadow: 0 0 20px rgba(255, 217, 122, 0.3);
    line-height: 1.4;
}

.pol-destiny-greeting p:last-of-type {
    margin: 0.8rem 0 0;
    color: var(--pol-ink);
    font-size: 0.95rem;
    line-height: 1.7;
}
.pol-destiny-after {
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    color: var(--pol-ink-dim);
    line-height: 1.7;
}

.pol-destiny-after p:first-child {
    margin-bottom: .7rem;
    font-weight: 700;
    color: var(--pol-gold);
}

.pol-destiny-after span {
    display: block;
    margin-top: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pol-gold);
    text-align: center;
}

/* Download surat button */
.pol-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2a1c05;
    background: linear-gradient(180deg, #ffd97a 0%, #e8a93d 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(180, 130, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pol-btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(180, 130, 40, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pol-btn-download:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(180, 130, 40, 0.45);
}

.pol-btn-download .pol-btn-icon {
    font-size: 1.2rem;
    animation: polDownloadBounce 1.8s ease-in-out infinite;
    display: inline-block;
    pointer-events: none;
}

.pol-btn-download > span {
    pointer-events: none;
}

@keyframes polDownloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Canvas download overlay */
.pol-download-overlay {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 6, 14, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pol-download-overlay.active {
    opacity: 1;
}

.pol-download-overlay p {
    color: var(--pol-gold);
    font-size: 1.1rem;
    font-weight: 700;
    animation: polDownloadPulse 1.2s ease-in-out infinite;
}

@keyframes polDownloadPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating return button only after journey starts */
#pol-journey-return {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--pol-gold);
    background: rgba(8, 12, 30, 0.88);
    border: 1px solid rgba(255, 217, 122, 0.4);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.75;
}
#pol-journey-return:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Solid veil that crossfades away — no gradient band, no line */
.pol-entry-veil {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: var(--bg-primary);
    opacity: var(--veil, 1);
}

.pol-entry-fog {
    position: absolute;
    inset: -8%;
    z-index: 5;
    pointer-events: none;
    opacity: var(--efog, 0);
    will-change: transform;
}

.pol-entry-fog.fog-a {
    background:
        radial-gradient(58% 40% at 24% 58%, rgba(157, 180, 208, .26), transparent 70%),
        radial-gradient(52% 38% at 76% 68%, rgba(157, 180, 208, .22), transparent 70%);
    animation: polFogDrift 20s ease-in-out infinite alternate;
}

.pol-entry-fog.fog-b {
    background:
        radial-gradient(72% 52% at 50% 85%, rgba(190, 205, 228, .3), transparent 72%);
    animation: polFogDrift 15s ease-in-out infinite alternate-reverse;
}

@keyframes polFogDrift {
    from { transform: translateX(-4%) translateY(0); }
    to   { transform: translateX(4%) translateY(-3%); }
}

.pol-entry-caption {
    position: relative;
    z-index: 7;
    margin: 0;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: .18em;
    color: var(--pol-ink-dim);
    text-shadow: 0 0 18px rgba(157, 180, 208, .4);
    opacity: var(--cap, 0);
}

/* ============================================================
   LEVEL 1 — NPC ENCOUNTER
   ============================================================ */
.pol-level-1 { min-height: 110vh; }

.pol-forest {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 0;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: bottom center;
    will-change: transform;
}

.pol-forest-far {
    height: 46%;
    z-index: 1;
    filter: blur(5px);
    opacity: .8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='240' viewBox='0 0 480 240'%3E%3Cg fill='%23223152'%3E%3Cpath d='M40 240 L70 130 L52 130 L82 70 L64 70 L94 8 L124 70 L106 70 L136 130 L118 130 L148 240 Z'/%3E%3Cpath d='M190 240 L214 150 L198 150 L224 95 L208 95 L234 35 L260 95 L244 95 L270 150 L254 150 L278 240 Z'/%3E%3Cpath d='M330 240 L362 120 L342 120 L374 60 L354 60 L386 4 L418 60 L398 60 L430 120 L410 120 L442 240 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 480px 240px;
}

.pol-forest-near {
    height: 30%;
    z-index: 3;
    filter: blur(1.5px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='200' viewBox='0 0 520 200'%3E%3Cg fill='%23070b18'%3E%3Cpath d='M20 200 L58 90 L36 90 L72 40 L50 40 L86 0 L122 40 L100 40 L136 90 L114 90 L150 200 Z'/%3E%3Cpath d='M210 200 L242 110 L222 110 L252 60 L232 60 L262 12 L292 60 L272 60 L302 110 L282 110 L314 200 Z'/%3E%3Cpath d='M380 200 L418 85 L395 85 L432 32 L408 32 L446 0 L484 32 L460 32 L497 85 L474 85 L510 200 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 200px;
}

.pol-fog {
    position: absolute;
    inset: -10%;
    z-index: 5;
    pointer-events: none;
    opacity: var(--fog-opacity, 1);
    will-change: transform;
}

.pol-fog-a {
    background:
        radial-gradient(60% 42% at 22% 62%, rgba(157, 180, 208, .18), transparent 70%),
        radial-gradient(55% 40% at 78% 70%, rgba(157, 180, 208, .15), transparent 70%);
    animation: polFogDrift 22s ease-in-out infinite alternate;
}

.pol-fog-b {
    background:
        radial-gradient(70% 50% at 50% 88%, rgba(190, 205, 228, .2), transparent 72%);
    animation: polFogDrift 16s ease-in-out infinite alternate-reverse;
}

/* RPG dialogue box */
.pol-hero-content {
    position: relative;
    z-index: 12;
    text-align: center;
    margin-top: 46vh;
}

.pol-dialogue {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    padding: 1.9rem 1.8rem 1.5rem;
    border-radius: 16px;
    background: rgba(8, 12, 30, .86);
    border: 2px solid rgba(255, 217, 122, .42);
    box-shadow:
        0 0 0 4px rgba(8, 12, 30, .55),
        0 0 40px rgba(255, 200, 90, .14),
        inset 0 0 40px rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
}

.pol-dialogue-name {
    position: absolute;
    top: -15px;
    left: 22px;
    padding: .32rem 1.1rem;
    background: linear-gradient(180deg, var(--pol-gold), var(--pol-gold-deep));
    color: #2a1c05;
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .22em;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(232, 169, 61, .5);
}

.pol-typewriter {
    margin: 0;
    min-height: 4.6em;
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    line-height: 1.7;
    color: var(--pol-ink);
}

.pol-caret {
    display: inline-block;
    width: .55em;
    height: 1.15em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--pol-gold);
    box-shadow: 0 0 10px rgba(255, 217, 122, .8);
    animation: polCaretBlink .85s steps(1) infinite;
}

@keyframes polCaretBlink {
    0%, 55% { opacity: 1; }
    56%, 100% { opacity: 0; }
}

.pol-dialogue-hint {
    margin: .9rem 0 0;
    text-align: right;
    font-size: .82rem;
    letter-spacing: .14em;
    color: var(--pol-gold);
    animation: polHintNudge 1.6s ease-in-out infinite;
    will-change: transform;
}

@keyframes polHintNudge {
    0%, 100% { transform: translateY(0); opacity: .65; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* ============================================================
   LEVEL 2 — HALLWAY OF ILLUSIONS
   2D Cinematic Theme Morphing — standard vertical scroll,
   no sticky/pin, no parallax depth. Background crossfades
   between dark-cold (myth) and warm-glowing (fact) palettes.
   Scroll-velocity reactive 2D particle system on canvas.
   ============================================================ */

/* --- Container stacks frames vertically with ample spacing --- */
.pol-level-2-container {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
    z-index: 5;
}

/* --- 2D Theme Morph Backdrop (full viewport width, fixed to escape overflow) --- */
.pol-l2-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
    will-change: opacity, clip-path;
    /* Long, smooth vertical fade to blend with surrounding sections.
       The bottom fade dissolves the backdrop into Level 3's dark base. */
    mask-image: linear-gradient(180deg,
        transparent 0%,
        black 22%,
        black 70%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0%,
        black 22%,
        black 70%,
        transparent 100%);
}

/* Visible when Level 2 is in viewport */
.pol-l2-backdrop.l2-visible {
    opacity: 1;
}

/* Myth theme: dark, cold palette (visible by default) */
.pol-l2-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 28%, rgba(36, 14, 72, .55) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 25% 72%, rgba(10, 12, 40, .5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 75% 50%, rgba(20, 8, 48, .4) 0%, transparent 55%);
    opacity: 1;
    transition: opacity 1.6s cubic-bezier(.22,1,.36,1);
    will-change: opacity;
}

/* Fact theme: warm, glowing, enlightened palette (hidden by default) */
.pol-l2-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 50% 35%, rgba(255, 200, 90, .14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 60% 65%, rgba(127, 231, 196, .08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 30% 55%, rgba(255, 220, 140, .06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(.22,1,.36,1);
    will-change: opacity;
}

/* Crossfade: when fact-mode is active, warm layer rises */
.pol-level-2.fact-mode .pol-l2-backdrop::before { opacity: 0; }
.pol-level-2.fact-mode .pol-l2-backdrop::after  { opacity: 1; }

/* Soft vertical bridge: fades from the section background above into the dark Level 2 backdrop */
.pol-level-2::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -60vh;
    height: 70vh;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(6, 4, 18, .55) 40%,
        rgba(6, 4, 18, .9) 80%,
        #04060e 100%);
    z-index: 0;
    pointer-events: none;
}

/* Soft vertical bridge: fades from Level 2 backdrop into the dark Level 3 background */
.pol-level-2::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40vh;
    height: 50vh;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(4, 6, 14, .55) 30%,
        rgba(4, 6, 14, .85) 60%,
        #04060e 100%);
    z-index: 0;
    pointer-events: none;
}

/* --- CSS Noise / Grain Overlay --- */
.pol-l2-noise {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
}

/* Grain intensifies subtly in myth-mode (cold dread) */
.pol-level-2:not(.fact-mode) .pol-l2-noise { opacity: .06; }

/* --- Scroll-Velocity Particle Canvas --- */
.pol-l2-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================================================
   ILLUSION FRAMES — stacked vertically, each independent
   ============================================================ */
.pol-illusion {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Myth caption frame */
.pol-myth-frame {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 480px;
    text-align: center;
    margin-bottom: 2.5rem;
    transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}

/* Ensure smooth reverse transition when .dispelled is removed */
.pol-myth-frame,
.pol-illusion-stage,
.pol-spook,
.pol-fact-card {
    transition-duration: .6s;
    transition-timing-function: cubic-bezier(.22,1,.36,1);
}

.pol-myth-caption {
    display: inline-block;
    padding: .6rem 1.4rem;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.55;
    text-align: center;
    color: #e3b8c8;
    background: rgba(46, 10, 24, .72);
    border: 1px solid rgba(255, 93, 108, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
    transition: all .4s ease;
}

.pol-myth-caption strong {
    display: block;
    color: var(--pol-danger);
    letter-spacing: .24em;
    font-size: .72rem;
    margin-bottom: .2rem;
}

/* Illusion stage — contains BOTH the spook silhouette and the fact card,
   stacked on top of each other via absolute positioning */
.pol-illusion-stage {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: filter .8s ease, opacity .8s ease;
}

/* Spook silhouette — centered in stage, revealed on myth-in */
.pol-spook {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -34%) scale(.8);
    opacity: 0;
    filter: drop-shadow(0 0 26px rgba(60, 30, 110, .55));
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1), filter .8s ease;
    will-change: opacity, transform;
}

.pol-illusion.myth-in .pol-spook {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Fact card — absolutely positioned to overlay/replace the spook in the same spot */
.pol-fact-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(420px, 92%);
    padding: 1.6rem 1.6rem 1.4rem;
    border-radius: 16px;
    background: rgba(8, 22, 18, .85);
    border: 1px solid rgba(127, 231, 196, .5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 34px rgba(127, 231, 196, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    filter: blur(8px);
    transition: opacity .8s ease .15s, transform .8s cubic-bezier(.22,1,.36,1) .15s, filter .8s ease .15s;
    will-change: opacity, transform;
}

.pol-fact-card strong {
    display: block;
    color: var(--pol-rune);
    letter-spacing: .24em;
    font-size: .72rem;
    margin-bottom: .5rem;
    text-shadow: 0 0 12px rgba(127, 231, 196, .8);
}

.pol-fact-card p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--pol-ink);
}

/* --- Dispel transitions (2D, reversible) --- */
.pol-illusion.dispelled .pol-spook {
    opacity: 0;
    transform: translate(-50%, -60%) scale(1.12) rotate(3deg);
    filter: blur(14px) drop-shadow(0 0 40px rgba(127, 231, 196, .4));
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
}

.pol-illusion.dispelled .pol-fact-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
}

.pol-illusion.dispelled .pol-myth-frame {
    opacity: .35;
    transform: translateY(-12px);
    filter: blur(2px);
}

/* No blur on the stage itself — the spook already gets its own blur above.
   Keeping the stage clean ensures the fact card stays sharp and readable. */

/* Reverse transition: when .dispelled is removed (scroll back up),
   fact card hides and spook reappears via existing transitions */

/* ============================================================
   SPOOK SILHOUETTES — kept from original, 2D-only animation
   ============================================================ */

/* --- Illusion 1: The Exhausted Wraith --- */
.pol-wraith-body {
    position: relative;
    width: 150px;
    height: 205px;
    background: linear-gradient(180deg, #241640 0%, #0d0722 78%);
    clip-path: polygon(50% 0, 80% 5%, 95% 28%, 100% 60%, 98% 100%, 85% 88%, 73% 100%, 59% 90%, 47% 100%, 33% 89%, 21% 100%, 9% 90%, 0 100%, 2% 56%, 6% 26%, 20% 6%);
    animation: polWraithSway 5.5s ease-in-out infinite;
    will-change: transform;
}

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

.pol-wraith-eye {
    position: absolute;
    top: 36%;
    width: 17px;
    height: 9px;
    border-radius: 0 0 14px 14px;
    background: #b9a5ff;
    box-shadow: 0 0 14px rgba(141, 123, 255, .9);
    opacity: .85;
}

.pol-wraith-eye.left  { left: 30%; }
.pol-wraith-eye.right { right: 30%; }

/* --- Illusion 2: The Wall of Division (SVG) --- */
.pol-wall .wall-bricks { fill: #241016; stroke: #431c26; stroke-width: 2; }
.pol-wall .wall-crack {
    fill: none;
    stroke: var(--pol-danger);
    stroke-width: 3;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 93, 108, .9));
    animation: polCrackPulse 2.4s ease-in-out infinite;
    will-change: opacity;
}
.pol-wall .wall-eye {
    fill: var(--pol-danger);
    filter: drop-shadow(0 0 8px rgba(255, 93, 108, 1));
    animation: polCrackPulse 2.4s ease-in-out infinite;
    will-change: opacity;
}

@keyframes polCrackPulse {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

/* --- Illusion 3: The Deceitful Scales (SVG) --- */
.pol-scales .scales-metal { stroke: #4a4468; stroke-width: 6; stroke-linecap: round; fill: none; }
.pol-scales .scales-base  { fill: #2a2438; stroke: #4a4468; stroke-width: 2; }
.pol-scales .scales-pan   { fill: #241d3a; stroke: #575084; stroke-width: 2.5; }
.pol-scales .scales-chain { stroke: #575084; stroke-width: 2; }
.pol-scales .scales-glow  { filter: drop-shadow(0 0 10px rgba(141, 123, 255, .5)); }
.pol-scales .scales-beam-group {
    transform-origin: 110px 34px;
    animation: polScalesSway 4.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes polScalesSway {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}

/* --- Illusion 4: The Overloaded Scholar --- */
.pol-scholar { width: 190px; height: 250px; }

.pol-scholar-head {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 66px;
    height: 60px;
    transform: translateX(-50%);
    border-radius: 50% 50% 46% 46%;
    background: #1c1430;
    box-shadow: inset 0 -14px 22px rgba(0, 0, 0, .7);
}

.pol-scholar-head::before,
.pol-scholar-head::after {
    content: '';
    position: absolute;
    top: 42%;
    width: 12px;
    height: 4px;
    border-radius: 3px;
    background: #8d7bff;
    box-shadow: 0 0 10px rgba(141, 123, 255, .9);
}

.pol-scholar-head::before { left: 22%; transform: rotate(12deg); }
.pol-scholar-head::after  { right: 22%; transform: rotate(-12deg); }

.pol-scholar-books {
    position: absolute;
    bottom: 48px;
    left: 50%;
    width: 140px;
    transform: translateX(-50%);
    transform-origin: bottom center;
    animation: polStackWobble 3.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes polStackWobble {
    0%, 100% { transform: translateX(-50%) rotate(-1.6deg); }
    50%      { transform: translateX(-50%) rotate(1.6deg); }
}

.pol-book {
    height: 22px;
    margin: 0 auto 5px;
    border-radius: 3px;
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .5), inset 4px 0 8px rgba(255, 255, 255, .05);
}

.pol-book:nth-child(1) { width: 96px;  background: #3d2438; transform: rotate(-3deg); }
.pol-book:nth-child(2) { width: 118px; background: #24303d; transform: rotate(2deg); }
.pol-book:nth-child(3) { width: 104px; background: #3d3224; transform: rotate(-2deg); }
.pol-book:nth-child(4) { width: 126px; background: #2c3d24; transform: rotate(1.4deg); }
.pol-book:nth-child(5) { width: 100px; background: #3d2424; transform: rotate(-1.6deg); }
.pol-book:nth-child(6) { width: 112px; background: #2a2438; transform: rotate(2.4deg); }

/* --- Illusion 5: The Mirror of Despair --- */
.pol-mirror-frame {
    width: 155px;
    height: 215px;
    padding: 11px;
    border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
    background: linear-gradient(160deg, #4a3a1c, #241a08);
    border: 1px solid #6b5228;
    box-shadow: 0 0 34px rgba(0, 0, 0, .65), inset 0 0 14px rgba(255, 220, 140, .16);
}

.pol-mirror-glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #0a0618;
    overflow: hidden;
}

.pol-mirror-glass::before {
    content: '';
    position: absolute;
    inset: -45%;
    background: conic-gradient(from 0deg,
        #0a0618, #2a1a4a 18%, #0a0618 38%,
        #1a1030 55%, #0a0618 72%, #241640 88%, #0a0618);
    animation: polSpin 9s linear infinite;
    will-change: transform;
}

.pol-mirror-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(10px 6px at 40% 40%, rgba(157, 180, 208, .35), transparent 70%),
        radial-gradient(10px 6px at 60% 40%, rgba(157, 180, 208, .35), transparent 70%),
        radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(4, 2, 10, .8) 100%);
}

@keyframes polSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   LEVEL 3 — FOREST OF WISDOM (7 pillars + tooltips)
   ============================================================ */
.pol-pillar-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: min(1180px, 96vw);
    overflow: visible;
}

/* Magical winding trail SVG connecting the pillars */
.pol-mystic-trail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Fade in the trail as pillars reveal */
.pol-level-3 .pol-mystic-trail {
    animation: polTrailFadeIn 2s ease forwards;
    animation-delay: .4s;
}

@keyframes polTrailFadeIn {
    to { opacity: 1; }
}

/* Soft road bed with subtle pulse */
.pol-mystic-trail .trail-bg {
    animation: polTrailPulse 4s ease-in-out infinite;
    will-change: opacity;
}

.pol-mystic-trail .trail-edge {
    animation: polTrailPulse 4s ease-in-out infinite;
    animation-delay: .6s;
    will-change: opacity;
}

@keyframes polTrailPulse {
    0%, 100% { opacity: .32; }
    50%      { opacity: .55; }
}

/* Dashed center line with animated flow */
.pol-mystic-trail .trail-line {
    animation: polTrailFlow 10s linear infinite;
    will-change: stroke-dashoffset;
}

@keyframes polTrailFlow {
    to { stroke-dashoffset: -200; }
}

/* Glowing step markers with staggered twinkle */
.pol-mystic-trail .trail-marker {
    fill: #7fe7c4;
    filter: drop-shadow(0 0 6px rgba(127, 231, 196, .9)) drop-shadow(0 0 12px rgba(127, 231, 196, .5));
    animation: polMarkerTwinkle 3s ease-in-out infinite;
    will-change: opacity, transform;
}

.pol-mystic-trail .trail-marker:nth-child(4) { animation-delay: 0s; }
.pol-mystic-trail .trail-marker:nth-child(5) { animation-delay: .4s; }
.pol-mystic-trail .trail-marker:nth-child(6) { animation-delay: .8s; }
.pol-mystic-trail .trail-marker:nth-child(7) { animation-delay: 1.2s; }
.pol-mystic-trail .trail-marker:nth-child(8) { animation-delay: 1.6s; }
.pol-mystic-trail .trail-marker:nth-child(9) { animation-delay: 2s; }
.pol-mystic-trail .trail-marker:nth-child(10) { animation-delay: 2.4s; }

@keyframes polMarkerTwinkle {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.3); }
}

.pol-pillar {
    position: relative;
    width: min(280px, 28vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    outline: none;
    padding-top: 96px;
}

.pol-pillar:hover,
.pol-pillar:focus-visible {
    z-index: 100;
}

.pol-pillar:nth-child(odd)  { align-self: flex-start;  margin-left: 2%; }
.pol-pillar:nth-child(even) { align-self: flex-end;    margin-right: 2%; }

.pol-pillar-body {
    position: relative;
    width: 130px;
    height: 250px;
    background: linear-gradient(90deg, #141a2c 0%, #2c3550 22%, #3d4a6e 50%, #2c3550 78%, #10141f 100%);
    border: 1px solid rgba(150, 165, 200, .22);
    border-radius: 10px;
    box-shadow: inset -14px 0 28px rgba(0,0,0,.55), inset 10px 0 22px rgba(190,205,235,.07), 0 18px 40px rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .6s ease, border-color .6s ease;
}

.pol-pillar-body::before,
.pol-pillar-body::after {
    content: '';
    position: absolute;
    left: -14px;
    right: -14px;
    height: 20px;
    background: linear-gradient(90deg, #10141f, #333d5c 50%, #10141f);
    border: 1px solid rgba(150, 165, 200, .25);
    border-radius: 6px;
}

.pol-pillar-body::before { top: -12px; }
.pol-pillar-body::after  { bottom: -12px; }

.pol-pillar.lit .pol-pillar-body,
.pol-pillar:hover .pol-pillar-body,
.pol-pillar:focus-visible .pol-pillar-body {
    border-color: rgba(127, 231, 196, .55);
    box-shadow:
        inset -14px 0 28px rgba(0,0,0,.55),
        inset 10px 0 22px rgba(190,205,235,.07),
        0 18px 40px rgba(0,0,0,.55),
        0 0 34px rgba(127, 231, 196, .28);
}

.pol-pillar-runes {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
}

.pol-rune {
    font-size: 1.35rem;
    color: rgba(127, 231, 196, .16);
    transition: color .45s ease, text-shadow .45s ease, transform .45s ease;
    transition-delay: calc(var(--r) * 110ms);
}

.pol-pillar.lit .pol-rune {
    color: var(--pol-rune);
    text-shadow: 0 0 10px rgba(127, 231, 196, .9), 0 0 26px rgba(127, 231, 196, .5);
}

.pol-pillar:hover .pol-rune,
.pol-pillar:focus-visible .pol-rune {
    transition-delay: 0ms;
    color: var(--pol-rune);
    text-shadow: 0 0 12px rgba(127, 231, 196, 1), 0 0 32px rgba(127, 231, 196, .65);
    transform: scale(1.15);
}

.pol-pillar-label {
    margin-top: 1rem;
    max-width: 190px;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--pol-ink-dim);
    transition: color .5s ease, text-shadow .5s ease;
}

.pol-pillar.lit .pol-pillar-label,
.pol-pillar:hover .pol-pillar-label {
    color: var(--pol-ink);
    text-shadow: 0 0 16px rgba(127, 231, 196, .5);
}

/* Tooltip (hover / focus / tap) */
.pol-tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    width: 230px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(10, 16, 36, .94);
    border: 1px solid rgba(127, 231, 196, .45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(127, 231, 196, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(.92);
    transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}

.pol-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(127, 231, 196, .45);
}

.pol-pillar:hover .pol-tooltip,
.pol-pillar:focus-within .pol-tooltip,
.pol-pillar.tip-on .pol-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.pol-tooltip h4 {
    margin: 0 0 .4rem;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: .04em;
    color: var(--pol-rune);
    text-shadow: 0 0 12px rgba(127, 231, 196, .5);
}

.pol-tooltip p {
    margin: 0 0 .6rem;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--pol-ink-dim);
}

.pol-tooltip-meta {
    display: inline-block;
    padding: .28rem .8rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--pol-gold);
    background: rgba(255, 217, 122, .1);
    border: 1px solid rgba(255, 217, 122, .35);
}

/* ============================================================
   LEVEL 4 — GUARDIAN SPIRITS (6 wisps / bestiary)
   ============================================================ */
.pol-wisp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5rem 3rem;
    width: min(980px, 94vw);
}

.pol-wisp {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem 0 1rem;
    cursor: pointer;
    outline: none;
}

.pol-wisp:hover,
.pol-wisp:focus-visible {
    z-index: 100;
}

.pol-wisp-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%,
        rgba(255, 255, 255, .95) 0%,
        hsl(var(--h) 90% 72%) 22%,
        hsl(var(--h) 85% 55% / .55) 48%,
        hsl(var(--h) 80% 40% / .12) 72%,
        transparent 76%);
    box-shadow:
        0 0 24px hsl(var(--h) 90% 65% / .8),
        0 0 64px hsl(var(--h) 90% 60% / .38);
    animation: polWispFloat 4.6s ease-in-out infinite;
    animation-delay: var(--wd, 0s);
    transition: transform .4s ease;
    will-change: transform;
}

.pol-wisp:hover .pol-wisp-orb,
.pol-wisp:focus-visible .pol-wisp-orb { transform: scale(1.18); }

@keyframes polWispFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-13px); }
}

.pol-wisp-name {
    margin-top: 1rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-align: center;
    color: var(--pol-ink-dim);
    text-transform: uppercase;
    transition: color .4s ease, text-shadow .4s ease;
}

.pol-wisp:hover .pol-wisp-name,
.pol-wisp.tip-on .pol-wisp-name {
    color: var(--pol-ink);
    text-shadow: 0 0 14px hsl(var(--h) 90% 65% / .8);
}

/* Bestiary card */
.pol-wisp-card {
    position: absolute;
    bottom: calc(100% - 10px);
    left: 50%;
    width: 260px;
    max-width: 84vw;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: rgba(10, 16, 36, .94);
    border: 1px solid hsl(var(--h) 80% 65% / .5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .65), 0 0 32px hsl(var(--h) 85% 60% / .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(14px) scale(.7);
    transform-origin: bottom center;
    transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}

.pol-wisp:hover .pol-wisp-card,
.pol-wisp:focus-within .pol-wisp-card,
.pol-wisp.tip-on .pol-wisp-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.pol-wisp-card h4 {
    margin: 0 0 .4rem;
    font-family: Georgia, serif;
    font-size: 1.02rem;
    letter-spacing: .04em;
    color: hsl(var(--h) 85% 72%);
    text-shadow: 0 0 12px hsl(var(--h) 85% 60% / .6);
}

.pol-wisp-format {
    margin: 0 0 .55rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--pol-ink);
}

.pol-wisp-example {
    margin: 0;
    padding-top: .55rem;
    border-top: 1px dashed hsl(var(--h) 70% 60% / .35);
    font-size: .8rem;
    line-height: 1.6;
    color: var(--pol-ink-dim);
}

.pol-wisp-example strong { color: hsl(var(--h) 85% 72%); }

/* ============================================================
   WISP DETAIL MODAL
   ============================================================ */
.pol-wisp-modal {
    --pol-ink: #e8ecf7;
    --pol-ink-dim: #9aa6c4;
    --pol-rune: #7fe7c4;
    --pol-danger: #ff5d6c;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    color: var(--pol-ink);
}

.pol-wisp-modal.open {
    opacity: 1;
    visibility: visible;
}

.pol-wisp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pol-wisp-modal-content {
    position: relative;
    z-index: 2;
    width: min(520px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.2rem 2rem 2rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(14, 20, 44, .97) 0%, rgba(8, 12, 30, .98) 100%);
    border: 1px solid var(--modal-color, rgba(127, 231, 196, .35));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(127, 231, 196, .12);
    text-align: center;
    color: var(--pol-ink);
    transform: translateY(30px) scale(.92);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.pol-wisp-modal.open .pol-wisp-modal-content {
    transform: translateY(0) scale(1);
}

.pol-wisp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(154, 166, 196, .25);
    border-radius: 50%;
    background: rgba(10, 16, 36, .6);
    color: var(--pol-ink-dim);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}

.pol-wisp-modal-close:hover {
    background: rgba(255, 93, 108, .15);
    border-color: rgba(255, 93, 108, .4);
    color: var(--pol-danger);
}

.pol-wisp-modal-orb {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0%, var(--modal-color, #7fe7c4) 40%, transparent 72%);
    box-shadow: 0 0 30px var(--modal-color, #7fe7c4);
    animation: polWispFloat 3s ease-in-out infinite;
}

.pol-wisp-modal-title {
    margin: 0 0 1rem;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--modal-color, var(--pol-rune));
    text-shadow: 0 0 14px rgba(127, 231, 196, .4);
}

.pol-wisp-modal-desc {
    margin: 0 0 1.4rem;
    font-size: .95rem;
    line-height: 1.75;
    color: var(--pol-ink-dim);
    text-align: left;
}

.pol-wisp-modal-example {
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    background: rgba(127, 231, 196, .06);
    border: 1px solid rgba(127, 231, 196, .2);
    text-align: left;
}

.pol-wisp-modal-example strong {
    display: block;
    margin-bottom: .5rem;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--modal-color, var(--pol-rune));
}

.pol-wisp-modal-example p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--pol-ink);
}

/* Long-press hint for mobile */
.pol-wisp-hint {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    color: var(--pol-ink-dim);
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .3s;
}

@media (hover: none) and (pointer: coarse) {
    .pol-wisp-hint { opacity: .6; }
    .pol-wisp-card { display: none; }
}

/* ============================================================
   LEVEL 5 — THE ARMORY
   ============================================================ */
.pol-altar {
    position: relative;
    width: 220px;
    height: 56px;
    margin-bottom: 4rem;
    background: linear-gradient(180deg, #3d4a6e 0%, #1c2338 100%);
    border: 1px solid rgba(255, 217, 122, .35);
    border-radius: 8px 8px 16px 16px;
    box-shadow: 0 0 44px rgba(255, 200, 90, .22), inset 0 4px 12px rgba(255, 220, 150, .18);
}

.pol-altar::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 300px;
    height: 130px;
    transform: translateX(-50%);
    background: radial-gradient(50% 100% at 50% 100%, rgba(255, 220, 140, .26), transparent 75%);
    mix-blend-mode: screen;
    animation: polGlowPulse 3.4s ease-in-out infinite;
    will-change: transform, opacity;
    pointer-events: none;
}

.pol-armory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: min(1100px, 94vw);
    align-items: stretch;
}

.pol-artifact {
    position: relative;
    padding: 2rem 1.4rem 1.6rem;
    border-radius: 18px;
    background: rgba(13, 19, 40, .68);
    border: 1.5px solid rgba(255, 217, 122, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: transform .5s cubic-bezier(.22,1,.36,1), border-color .5s ease, box-shadow .5s ease;
    /* Artifact slot corner decorations */
    box-shadow:
        0 0 0 1px rgba(255, 217, 122, .06),
        inset 0 0 30px rgba(255, 200, 90, .04);
}

/* Glowing corner accents */
.pol-artifact::before,
.pol-artifact::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: opacity .5s ease;
}

.pol-artifact::before {
    top: 6px;
    left: 6px;
    border-top: 2px solid rgba(255, 217, 122, .3);
    border-left: 2px solid rgba(255, 217, 122, .3);
    border-radius: 2px 0 0 0;
}

.pol-artifact::after {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid rgba(255, 217, 122, .3);
    border-right: 2px solid rgba(255, 217, 122, .3);
    border-radius: 0 0 2px 0;
}

.pol-artifact:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 217, 122, .55);
    box-shadow:
        0 0 0 1px rgba(255, 217, 122, .12),
        0 24px 60px rgba(0, 0, 0, .55),
        0 0 40px rgba(255, 200, 90, .12),
        inset 0 0 30px rgba(255, 200, 90, .06);
}

.pol-artifact:hover::before,
.pol-artifact:hover::after {
    opacity: 1;
    width: 28px;
    height: 28px;
}

.pol-artifact h3 {
    font-family: Georgia, serif;
    font-size: 1.12rem;
    letter-spacing: .04em;
    color: var(--pol-gold);
    margin: 1.2rem 0 .6rem;
    text-shadow: 0 0 16px rgba(255, 217, 122, .35);
}

.pol-artifact p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.65;
    color: var(--pol-ink-dim);
}

.pol-artifact .pol-note {
    margin-top: .7rem;
    font-size: .78rem;
    color: var(--pol-cyan);
    opacity: .85;
}

/* New unified SVG illustration container */
.pol-artifact-visual {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}

.pol-illu {
    width: 110px;
    height: 110px;
    opacity: .9;
    filter: drop-shadow(0 0 8px rgba(255, 217, 122, .3));
    transition: transform .5s cubic-bezier(.22,1,.36,1), filter .5s ease;
}

.pol-artifact:hover .pol-illu {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 0 14px rgba(255, 217, 122, .5));
}

/* Footer CTA text */
.pol-armory-footer {
    max-width: 520px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pol-ink-dim);
    font-style: italic;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 217, 122, .04);
    border: 1px solid rgba(255, 217, 122, .15);
    box-shadow: 0 0 30px rgba(255, 200, 90, .06);
    transition: border-color .5s ease, box-shadow .5s ease;
}

.pol-armory-footer:hover {
    border-color: rgba(255, 217, 122, .3);
    box-shadow: 0 0 40px rgba(255, 200, 90, .1);
}

.pol-level-4-closing {
    max-width: 520px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pol-ink-dim);
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    background: rgba(127, 231, 196, .04);
    border: 1px solid rgba(127, 231, 196, .18);
    box-shadow: 0 0 32px rgba(127, 231, 196, .08);
}

.pol-level-4-closing p {
    margin: 0 0 .8rem;
}

.pol-level-4-closing p:last-child {
    margin-bottom: 0;
}

.pol-camp-footer {
    max-width: 520px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--pol-ink);
    padding: 1.3rem 1.6rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 154, 61, .06) 0%, rgba(255, 200, 90, .04) 100%);
    border: 1px solid rgba(255, 154, 61, .2);
    box-shadow: 0 0 34px rgba(255, 154, 61, .12), inset 0 0 24px rgba(255, 120, 40, .04);
}

.pol-camp-footer br {
    display: block;
    margin: .5rem 0;
}

.pol-portal {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 30, 70, .9) 30%, rgba(141, 123, 255, .35) 62%, transparent 72%);
    box-shadow: 0 0 30px rgba(141, 123, 255, .5), inset 0 0 30px rgba(141, 123, 255, .4);
}

.pol-portal::before,
.pol-portal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px dashed rgba(180, 165, 255, .65);
    animation: polSpin 9s linear infinite;
    will-change: transform;
}

.pol-portal::after {
    inset: 18px;
    border-style: solid;
    border-color: rgba(143, 216, 255, .5) transparent rgba(143, 216, 255, .5) transparent;
    animation: polSpin 5.5s linear infinite reverse;
}

/* Glow pulse via a dedicated overlay — opacity only, no repaint */
.pol-portal-glow,
.pol-crystal-glow {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    pointer-events: none;
    animation: polOrbGlow 3s ease-in-out infinite;
    will-change: opacity;
}

.pol-portal-glow { background: radial-gradient(circle, rgba(141,123,255,.35) 0%, transparent 65%); }
.pol-crystal-glow { background: radial-gradient(circle, rgba(143,216,255,.35) 0%, transparent 65%); animation-duration: 3.6s; }

@keyframes polOrbGlow {
    0%, 100% { opacity: .45; transform: scale(.92); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

.pol-grimoire {
    position: relative;
    width: 124px;
    height: 88px;
    transform-style: preserve-3d;
    animation: polBookFloat 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes polBookFloat {
    0%, 100% { transform: translateY(0) rotateY(-14deg) rotateX(8deg); }
    50%      { transform: translateY(-12px) rotateY(14deg) rotateX(8deg); }
}

.pol-grimoire-page {
    position: absolute;
    top: 0;
    width: 58px;
    height: 84px;
    background: linear-gradient(180deg, #f0e6c8 0%, #d8c9a0 100%);
    background-image: repeating-linear-gradient(180deg, transparent 0 9px, rgba(120, 100, 60, .35) 9px 10px);
    border: 1px solid #b8a878;
    box-shadow: 0 0 26px rgba(255, 220, 140, .35);
}

.pol-grimoire-page.left {
    left: 0;
    border-radius: 8px 2px 2px 8px;
    transform: rotateY(-16deg);
    transform-origin: right center;
}

.pol-grimoire-page.right {
    right: 0;
    border-radius: 2px 8px 8px 2px;
    transform: rotateY(16deg);
    transform-origin: left center;
}

.pol-grimoire-spine {
    position: absolute;
    left: 50%;
    top: -3px;
    width: 8px;
    height: 90px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #6b4a2a, #3d2812);
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(255, 200, 90, .5);
}

.pol-crystal {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 26%),
        radial-gradient(circle at 50% 55%, rgba(143, 216, 255, .5) 0%, rgba(60, 90, 180, .55) 55%, rgba(16, 24, 54, .95) 100%);
    box-shadow: 0 0 30px rgba(143, 216, 255, .4), inset 0 -14px 30px rgba(10, 16, 40, .8);
    overflow: hidden;
}

.pol-crystal::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 0deg, transparent, rgba(143, 216, 255, .35), transparent 30%, transparent 60%, rgba(255, 217, 122, .3), transparent 85%);
    animation: polSpin 7s linear infinite;
    will-change: transform;
}

.pol-crystal-base {
    width: 74px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3d4a6e, #141a2c);
    border: 1px solid rgba(143, 216, 255, .3);
}

/* ============================================================
   LEVEL 6 — BRIDGE & CAMPFIRE
   ============================================================ */
.pol-bridge-zone {
    position: relative;
    width: min(1020px, 94vw);
}

.pol-bridge-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pol-bridge-svg .rope { fill: none; stroke: #5a6785; stroke-width: 3; }
.pol-bridge-svg .rope-lower { stroke: #46536f; }
.pol-bridge-svg .plank { fill: #6b543a; stroke: #3a2c1a; stroke-width: 1; }
.pol-bridge-svg .hanger { stroke: #46536f; stroke-width: 1.5; }

.pol-bridge-svg .crystal {
    stroke: rgba(255, 217, 122, .7);
    stroke-width: 1;
    fill: rgba(255, 217, 122, .35);
    filter: drop-shadow(0 0 6px rgba(255, 217, 122, .9));
    animation: polCrystalHang 3s ease-in-out infinite;
    will-change: opacity;
}

.pol-bridge-svg .crystal.big {
    fill: rgba(255, 180, 90, .5);
    filter: drop-shadow(0 0 12px rgba(255, 180, 90, 1));
}

@keyframes polCrystalHang {
    0%, 100% { opacity: .65; }
    50%      { opacity: 1; }
}

.pol-signpost {
    position: absolute;
    right: 3%;
    bottom: 4%;
    width: min(310px, 72%);
    z-index: 12;
}

.pol-sign-board {
    position: relative;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    background: linear-gradient(170deg, #4a3820 0%, #2e2010 100%);
    border: 2px solid #6b5228;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 200, 90, .14), inset 0 0 20px rgba(0, 0, 0, .4);
}

.pol-sign-board::before,
.pol-sign-board::after {
    content: '';
    position: absolute;
    top: -16px;
    width: 3px;
    height: 16px;
    background: #6b5228;
}

.pol-sign-board::before { left: 24%; }
.pol-sign-board::after  { right: 24%; }

.pol-sign-board h4 {
    margin: 0 0 .45rem;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: .06em;
    color: var(--pol-gold);
    text-shadow: 0 0 14px rgba(255, 217, 122, .55);
}

.pol-sign-board p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
    color: #e6d9b8;
}

.pol-sign-post {
    width: 16px;
    height: 54px;
    margin: -2px auto 0;
    background: linear-gradient(90deg, #241a08, #4a3820 50%, #241a08);
    border-radius: 0 0 4px 4px;
}

/* --- Campfire scene: forest clearing with tent & fireflies --- */
.pol-camp-zone {
    position: relative;
    width: min(1180px, 98vw);
    min-height: 500px;
    margin-top: 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 26px;
    border: 1px solid rgba(150, 165, 200, .12);
    overflow: hidden;
    /* Ground fades in from nothing — no harsh horizon line */
    background: linear-gradient(180deg,
        rgba(10, 15, 34, 0) 0%,
        rgba(9, 14, 30, .55) 42%,
        rgba(6, 10, 22, .95) 100%);
}

/* Pine silhouettes framing the clearing (masked open in the middle) */
.pol-camp-trees {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: bottom center;
    -webkit-mask-image: radial-gradient(62% 84% at 50% 100%, transparent 34%, #000 70%);
    mask-image: radial-gradient(62% 84% at 50% 100%, transparent 34%, #000 70%);
}

.pol-camp-trees.far {
    height: 64%;
    opacity: .45;
    filter: blur(3px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg fill='%231a2540'%3E%3Cpath d='M20 240 L52 132 L34 132 L64 72 L46 72 L78 8 L110 72 L92 72 L122 132 L104 132 L136 240 Z'/%3E%3Cpath d='M150 240 L182 146 L164 146 L194 92 L176 92 L206 34 L238 92 L220 92 L250 146 L232 146 L264 240 Z'/%3E%3Cpath d='M300 240 L336 118 L316 118 L350 58 L330 58 L366 4 L402 58 L382 58 L416 118 L396 118 L432 240 Z'/%3E%3Cpath d='M470 240 L502 150 L484 150 L514 98 L496 98 L526 40 L558 98 L540 98 L570 150 L552 150 L584 240 Z'/%3E%3Cpath d='M560 240 L588 136 L572 136 L600 78 L584 78 L612 10 L640 78 L624 78 L652 136 L636 136 L664 240 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 190px;
}

.pol-camp-trees.near {
    height: 46%;
    opacity: .9;
    filter: blur(1px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='210' viewBox='0 0 700 210'%3E%3Cg fill='%23070c1a'%3E%3Cpath d='M0 210 L34 94 L12 94 L50 42 L28 42 L64 0 L102 42 L80 42 L116 94 L94 94 L130 210 Z'/%3E%3Cpath d='M160 210 L194 110 L174 110 L204 60 L184 60 L214 12 L246 60 L226 60 L256 110 L236 110 L270 210 Z'/%3E%3Cpath d='M330 210 L368 84 L346 84 L382 34 L360 34 L398 0 L436 34 L414 34 L450 84 L428 84 L466 210 Z'/%3E%3Cpath d='M500 210 L534 94 L514 94 L546 46 L526 46 L560 8 L594 46 L574 46 L606 94 L586 94 L620 210 Z'/%3E%3Cpath d='M610 210 L642 106 L624 106 L654 54 L636 54 L668 14 L700 54 L682 54 L712 106 L694 106 L726 210 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 640px 170px;
}

/* Soft ground mound + warm firelight pool */
.pol-camp-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    pointer-events: none;
    background: radial-gradient(78% 100% at 50% 112%, #111c33 0%, #0a1226 48%, transparent 80%);
}

.pol-camp-ground::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(30% 60% at 50% 100%, rgba(255, 154, 61, .22), transparent 70%);
    mix-blend-mode: screen;
    animation: polGroundFlicker 1.6s ease-in-out infinite;
    will-change: opacity;
}

@keyframes polGroundFlicker {
    0%, 100% { opacity: .7; }
    50%      { opacity: 1; }
}

/* Small tent silhouette, rim-lit by the fire */
.pol-tent {
    position: absolute;
    bottom: 42px;
    left: 11%;
    width: 118px;
    height: 76px;
    pointer-events: none;
    background: linear-gradient(160deg, #131c34 0%, #080d1c 70%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}

.pol-tent::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 42px;
    transform: translateX(-50%);
    background: #04070f;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* warm rim light on the fire-facing edge */
.pol-tent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(250deg, transparent 55%, rgba(255, 154, 61, .35) 88%, rgba(255, 180, 90, .5) 100%);
    clip-path: polygon(50% 0, 100% 100%, 62% 100%);
    mix-blend-mode: screen;
    animation: polGroundFlicker 1.6s ease-in-out infinite;
    will-change: opacity;
}

/* Ambient glowing fireflies drifting through the clearing */
.pol-firefly {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe9a8;
    box-shadow: 0 0 10px 2px rgba(255, 217, 122, .85);
    opacity: 0;
    pointer-events: none;
    animation: polFirefly var(--ft, 7s) ease-in-out infinite;
    animation-delay: var(--fd, 0s);
    will-change: transform, opacity;
}

@keyframes polFirefly {
    0%   { transform: translate(0, 0) scale(.7); opacity: 0; }
    18%  { opacity: .95; }
    52%  { transform: translate(var(--fx, 40px), -58px) scale(1); opacity: .55; }
    84%  { opacity: .9; }
    100% { transform: translate(calc(var(--fx, 40px) * -.55), -118px) scale(.6); opacity: 0; }
}

.pol-campfire-scene {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
}

.pol-warm-glow {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 380px;
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(50% 60% at 50% 100%, rgba(255, 154, 61, .3), rgba(255, 120, 40, .11) 55%, transparent 80%);
    mix-blend-mode: screen;
    animation: polGroundFlicker 1.6s ease-in-out infinite;
    will-change: opacity;
    pointer-events: none;
}

.pol-fire {
    position: relative;
    width: 70px;
    height: 96px;
    margin-bottom: 26px;
}

.pol-flame {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50% 50% 22% 22% / 68% 68% 30% 30%;
    transform-origin: bottom center;
    animation: polFireFlicker 1.1s ease-in-out infinite;
    will-change: transform, opacity;
}

.pol-flame-outer {
    width: 62px;
    height: 84px;
    background: radial-gradient(50% 62% at 50% 78%, rgba(255, 120, 40, .85) 0%, rgba(255, 90, 30, .35) 55%, transparent 78%);
    filter: blur(2px);
}

.pol-flame-mid {
    width: 42px;
    height: 62px;
    background: radial-gradient(50% 62% at 50% 76%, #ffb54d 0%, rgba(255, 150, 50, .6) 60%, transparent 82%);
    animation-duration: .9s;
    animation-delay: .12s;
}

.pol-flame-core {
    width: 22px;
    height: 40px;
    background: radial-gradient(50% 60% at 50% 74%, #fff3c8 0%, rgba(255, 220, 120, .8) 58%, transparent 85%);
    animation-duration: .7s;
    animation-delay: .25s;
}

@keyframes polFireFlicker {
    0%, 100% { transform: translateX(-50%) scale(1, 1); opacity: .9; }
    25%      { transform: translateX(-52%) scale(1.06, .94) rotate(-2deg); opacity: 1; }
    55%      { transform: translateX(-48%) scale(.94, 1.08) rotate(2deg); opacity: .85; }
    80%      { transform: translateX(-50%) scale(1.03, .97); opacity: 1; }
}

.pol-logs {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 92px;
    height: 20px;
    transform: translateX(-50%);
}

.pol-logs::before,
.pol-logs::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 92px;
    height: 13px;
    border-radius: 7px;
    background: linear-gradient(180deg, #6b4a2a, #33200f);
    border: 1px solid #241505;
}

.pol-logs::before { transform: rotate(14deg); }
.pol-logs::after  { transform: rotate(-14deg); }

.pol-ember {
    position: absolute;
    bottom: 64px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffc86b;
    box-shadow: 0 0 8px rgba(255, 180, 80, .9);
    opacity: 0;
    animation: polEmberRise 2.8s ease-in infinite;
    animation-delay: var(--e, 0s);
    will-change: transform, opacity;
}

@keyframes polEmberRise {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    12%  { opacity: 1; }
    100% { transform: translate(var(--ex, 12px), -120px) scale(.3); opacity: 0; }
}

/* Holographic floating cards, bobbing in sync with the firelight */
.pol-holo-card {
    position: absolute;
    width: min(290px, 82%);
    padding: 1.05rem 1.2rem;
    border-radius: 14px;
    background: rgba(80, 200, 255, .07);
    border: 1px solid rgba(143, 216, 255, .42);
    box-shadow: 0 0 30px rgba(143, 216, 255, .16), inset 0 0 26px rgba(143, 216, 255, .05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: .88rem;
    line-height: 1.65;
    color: #cfeaff;
    animation: polHoloBob 1.6s ease-in-out infinite;
    animation-delay: var(--b, 0s);
    will-change: transform, opacity;
    z-index: 9999;
}

.pol-holo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(143, 216, 255, .05) 0 2px, transparent 2px 5px);
    pointer-events: none;
}

.pol-holo-card strong {
    display: block;
    margin-bottom: .3rem;
    color: var(--pol-cyan);
    letter-spacing: .12em;
    font-size: .78rem;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(143, 216, 255, .8);
}

.pol-holo-1 { left: 4%;  top: 4%; }
.pol-holo-2 { right: 4%; top: 16%; }
.pol-holo-3 { right: 5%; top: 52%; max-width: 320px; }

@keyframes polHoloBob {
    0%, 100% { transform: translateY(0);    opacity: .88; }
    25%      { transform: translateY(-6px); opacity: 1; }
    55%      { transform: translateY(-9px); opacity: .92; }
    80%      { transform: translateY(-3px); opacity: 1; }
}

.pol-holo-3 {
    animation-name: polHoloBobRight;
}

@keyframes polHoloBobRight {
    0%, 100% { transform: translateY(0); opacity: .88; }
    25% { transform: translateY(-6px); opacity: 1; }
    55% { transform: translateY(-9px); opacity: .92; }
    80% { transform: translateY(-3px); opacity: 1; }
}

/* ============================================================
   LEVEL 7 — CLIFF PEAK: destiny scroll & dynamic store reveal
   ============================================================ */
.pol-level-7 { min-height: 120vh; }

.pol-peak-fog {
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
    background: radial-gradient(75% 55% at 50% 45%, rgba(190, 205, 228, .16), transparent 70%);
    opacity: 1;
    transition: opacity 1.4s ease;
}

.pol-level-7.destiny-revealed .pol-peak-fog { opacity: 0; }

.pol-parchment {
    position: relative;
    z-index: 12;
    width: min(480px, 92vw);
    padding: 2.6rem 2.2rem 2.2rem;
    border-radius: 14px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(90, 70, 35, .28) 0%, transparent 55%),
        linear-gradient(180deg, #efe2bd 0%, #ddcb9c 55%, #c9b382 100%);
    color: #3a2c14;
    border: 1px solid #a8905c;
    box-shadow:
        0 0 0 6px rgba(240, 225, 180, .12),
        0 0 55px rgba(255, 220, 140, .3),
        0 30px 60px rgba(0, 0, 0, .6);
    text-align: center;
    transition: transform 1s cubic-bezier(.5,0,.75,0), opacity .9s ease, filter 1s ease;
}

.pol-parchment::before,
.pol-parchment::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #8a6a38, #5a4020);
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.pol-parchment::before { top: -8px; }
.pol-parchment::after  { bottom: -8px; }

.pol-parchment.pol-fly {
    transform: translateY(-42vh) scale(.04) rotate(8deg);
    opacity: 0;
    filter: brightness(2.4) blur(1px);
    pointer-events: none;
}

.pol-parchment h2 {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    letter-spacing: .05em;
    margin: 0 0 .4rem;
    color: #4a3410;
}

.pol-parchment-sub {
    margin: 0 0 1.6rem;
    font-size: .9rem;
    color: #6b5228;
    font-style: italic;
}

.pol-field-label {
    display: block;
    margin: 0 0 .4rem;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b5228;
}

.pol-store-title {
    margin: 0 auto .8rem;
    max-width: 720px;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    letter-spacing: .04em;
    text-align: center;
    color: var(--pol-gold);
}

.pol-store-lead {
    margin: 0 auto 2rem;
    max-width: 640px;
    text-align: center;
    color: var(--pol-ink-dim);
    font-size: .95rem;
    line-height: 1.7;
}

.pol-field {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: .95rem;
    color: #3a2c14;
    background: rgba(255, 250, 230, .65);
    border: 1px solid #a8905c;
    border-radius: 8px;
    outline: none;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.pol-field:focus {
    border-color: var(--pol-gold-deep);
    box-shadow: 0 0 0 3px rgba(232, 169, 61, .25), 0 0 18px rgba(232, 169, 61, .35);
}

.pol-field::placeholder { color: #8a7248; }

textarea.pol-field { min-height: 88px; resize: vertical; }

.pol-btn-hope {
    position: relative;
    width: 100%;
    padding: 1rem;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #2a1c05;
    background: linear-gradient(180deg, var(--pol-gold) 0%, var(--pol-gold-deep) 100%);
    border: 1px solid #b8860b;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(180, 130, 40, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pol-btn-hope:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(180, 130, 40, .6);
}

.pol-btn-hope:disabled { cursor: wait; opacity: .75; transform: none; }

/* Grand portal gate */
.pol-destiny {
    position: relative;
    z-index: 12;
    width: min(1100px, 94vw);
    text-align: center;
}

.pol-destiny[hidden] { display: none; }

.pol-portal-gate {
    position: relative;
    width: min(340px, 70vw);
    height: 220px;
    margin: 0 auto 2.5rem;
    border-radius: 170px 170px 14px 14px;
    border: 3px solid rgba(255, 217, 122, .65);
    background:
        radial-gradient(80% 90% at 50% 100%, rgba(141, 123, 255, .35) 0%, rgba(20, 28, 64, .9) 70%),
        linear-gradient(180deg, #0d1330, #1a2450);
    box-shadow: 0 0 50px rgba(255, 217, 122, .26), inset 0 0 56px rgba(141, 123, 255, .3);
    overflow: hidden;
}

.pol-portal-gate::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(255, 217, 122, .22) 40deg, transparent 90deg,
        transparent 160deg, rgba(143, 216, 255, .2) 210deg, transparent 260deg,
        rgba(141, 123, 255, .22) 310deg, transparent 360deg);
    animation: polSpin 12s linear infinite;
    will-change: transform;
}

.pol-portal-gate::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px dashed rgba(255, 217, 122, .35);
    pointer-events: none;
}

.pol-destiny-greeting {
    max-width: 560px;
    margin: 0 auto 3rem;
    color: var(--pol-ink-dim);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pol-destiny-greeting strong { color: var(--pol-gold); }

/* ============================================================
   DYNAMIC STORE — injected markup from paketbelajar.html
   ============================================================ */
.pol-store-inventory { position: relative; }

.pol-store-inventory .paket-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
    margin: 0;
}

.pol-store-inventory .paket-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.2rem 1.7rem 1.8rem;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 55%, rgba(141,123,255,.06) 100%);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    text-align: left;
    color: var(--pol-ink);
    opacity: 0;
    transform: scale(.72) translateY(40px);
    transition:
        opacity .65s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1),
        border-color .4s ease,
        box-shadow .4s ease;
    will-change: opacity, transform;
}

.pol-store-inventory.unlocked .paket-card { opacity: 1; transform: scale(1) translateY(0); }
.pol-store-inventory.unlocked .paket-card:nth-child(1) { transition-delay: .05s; }
.pol-store-inventory.unlocked .paket-card:nth-child(2) { transition-delay: .22s; }
.pol-store-inventory.unlocked .paket-card:nth-child(3) { transition-delay: .39s; }

.pol-store-inventory .paket-card:hover {
    border-color: rgba(255, 217, 122, .5);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 44px rgba(255, 200, 90, .16);
}

.pol-store-inventory .paket-card.recommended {
    border-color: rgba(255, 217, 122, .55);
    background: linear-gradient(165deg, rgba(255, 217, 122, .13) 0%, rgba(255,255,255,.04) 55%, rgba(232, 169, 61, .09) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 44px rgba(255, 200, 90, .2);
}

.pol-store-inventory .recommended-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: .32rem 1rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    color: #2a1c05;
    background: linear-gradient(180deg, var(--pol-gold), var(--pol-gold-deep));
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(232, 169, 61, .5);
    white-space: nowrap;
}

.pol-store-inventory .discount-badge {
    position: absolute;
    top: 14px;
    right: -8px;
    padding: .28rem .7rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    background: linear-gradient(180deg, #ff5d6c, #c62f42);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 12px rgba(255, 93, 108, .45);
}

.pol-store-inventory .paket-name {
    margin: 0 0 .2rem;
    font-family: Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: .05em;
    color: var(--pol-ink);
}

.pol-store-inventory .paket-slogan {
    margin: 0 0 1rem;
    font-size: .84rem;
    color: var(--pol-ink-dim);
}

.pol-store-inventory .paket-price { margin: 0 0 1rem; }

.pol-store-inventory .original-price {
    display: block;
    font-size: .85rem;
    color: var(--pol-ink-dim);
    text-decoration: line-through;
    opacity: .75;
}

.pol-store-inventory .current-price,
.pol-store-inventory .paket-price {
    color: var(--pol-gold);
    text-shadow: 0 0 20px rgba(255, 217, 122, .35);
}

.pol-store-inventory .currency { font-size: 1rem; font-weight: 700; }
.pol-store-inventory .amount { font-size: 2rem; font-weight: 800; letter-spacing: .01em; }

.pol-store-inventory .paket-badge { margin: 0 0 1.1rem; }

.pol-store-inventory .badge-year {
    display: inline-block;
    padding: .24rem .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--pol-cyan);
    background: rgba(143, 216, 255, .1);
    border: 1px solid rgba(143, 216, 255, .35);
    border-radius: 999px;
}

.pol-store-inventory .paket-features {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    flex: 1;
}

.pol-store-inventory .paket-features li {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .4rem 0;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--pol-ink-dim);
}

.pol-store-inventory .paket-features .check {
    color: var(--pol-rune);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(127, 231, 196, .8);
}

.pol-store-inventory .btn-pilih-paket {
    display: block;
    width: 100%;
    padding: .9rem;
    text-align: center;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .05em;
    color: var(--pol-ink);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    cursor: pointer;
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.pol-store-inventory .btn-pilih-paket:hover:not(:disabled) {
    background: rgba(255, 217, 122, .16);
    box-shadow: 0 0 26px rgba(255, 217, 122, .25);
    transform: translateY(-2px);
}

.pol-store-inventory .paket-card.recommended .btn-pilih-paket {
    color: #2a1c05;
    background: linear-gradient(180deg, var(--pol-gold), var(--pol-gold-deep));
    border-color: #b8860b;
}

.pol-store-inventory .btn-pilih-paket:disabled {
    cursor: default;
    opacity: .55;
}

/* Fallback if the fetch fails (e.g. opened via file://) */
.pol-store-fallback {
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    background: rgba(13, 19, 40, .7);
    border: 1px solid rgba(255, 217, 122, .3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pol-store-fallback[hidden] { display: none; }

.pol-store-fallback p {
    margin: 0 0 1.4rem;
    color: var(--pol-ink-dim);
    line-height: 1.65;
}

.pol-store-fallback a {
    display: inline-block;
    padding: .9rem 2rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .05em;
    color: #2a1c05;
    background: linear-gradient(180deg, var(--pol-gold), var(--pol-gold-deep));
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(232, 169, 61, .45);
    transition: transform .3s ease, box-shadow .3s ease;
}

.pol-store-fallback a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 169, 61, .6);
}

/* Starburst canvas overlay */
.pol-burst-canvas {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
}

/* Scroll lock during the climax animation */
html.pol-no-scroll,
html.pol-no-scroll body {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    #pol-companion.kx-corner { --kx: 74px; --ky: calc(100vh - 88px); --ks: .48; }
    .pol-kyra-beam { display: none; }
    .pol-spotlight { width: 400px; height: 400px; }

    .pol-chat {
        width: 205px;
        transform: translate(16px, calc(-100% - 68px)) scale(.75);
    }
    .pol-chat.open { transform: translate(16px, calc(-100% - 68px)) scale(1); }
    .pol-chat-text { font-size: .78rem; }

    .pol-level-2-container {
        max-width: 100%;
        padding: 1rem 1rem 4rem;
    }

    .pol-illusion {
        width: 100%;
        max-width: 100%;
        padding: 3.5rem 0;
    }

    .pol-illusion-stage {
        height: 300px;
    }

    .pol-armory-grid,
    .pol-store-inventory .paket-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .pol-wisp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem 1.5rem;
    }

    .pol-level-3 .pol-pillar-path {
        width: min(94vw, 100%);
        padding: 0 1rem;
    }

    .pol-pillar {
        width: min(220px, 70vw);
    }

    .pol-pillar:nth-child(odd)  { margin-left: 0; }
    .pol-pillar:nth-child(even) { margin-right: 0; }

    .pol-pillar-body::before {
        width: 220px;
        height: 150px;
        top: -90px;
    }

    .pol-signpost { right: 50%; transform: translateX(50%); bottom: 2%; }
    .pol-signpost.pol-reveal { transform: translateX(50%) translateY(46px); }
    .pol-signpost.pol-reveal.pol-visible { transform: translateX(50%); }

    .pol-tent { left: 5%; transform: scale(.8); transform-origin: bottom left; }

    .pol-hero-content { margin-top: 40vh; }
}

@media (max-width: 560px) {
    .pol-wisp-grid { grid-template-columns: 1fr; gap: 4rem; }
    .pol-wisp-card { width: min(280px, 86vw); }
    .pol-dialogue { padding: 1.7rem 1.2rem 1.3rem; }
    .pol-parchment { padding: 2.2rem 1.4rem 1.8rem; }
    .pol-growth-cards { grid-template-columns: 1fr; }
    .pol-utbk-numbers { gap: 1.5rem; flex-wrap: wrap; }
    .pol-utbk-numbers strong { font-size: 2rem; }
    .pol-camp-zone { min-height: 540px; }
    .pol-holo-card { font-size: .8rem; }
    .pol-holo-1 { top: 2%; }
    .pol-holo-2 { top: 26%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .path-of-light-section *,
    .path-of-light-section *::before,
    .path-of-light-section *::after,
    #pol-companion *,
    #pol-companion *::before,
    #pol-companion *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .pol-reveal { opacity: 1; transform: none; }
    .pol-fog, .pol-entry-fog { display: none; }
    .pol-entry-veil { opacity: 0; }
    .pol-spook { opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================================================
   ✨ ELEVATED VISUAL DESIGN — Professional UI Polish ✨
   These enhancements layer on top of existing styles to create
   a world-class, immersive visual experience.
   ============================================================ */

/* --- Level 0 Deep Talk — Atmospheric Gradient & Glass Cards --- */
.pol-level-0 {
    background:
        radial-gradient(ellipse 120% 60% at 50% 20%, rgba(19, 29, 64, 0.6) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-primary) 0%, #1a1f3a 40%, #0d1226 70%, #04060e 100%);
}

.pol-deep-talk {
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255, 217, 122, 0.04) 0%, transparent 70%);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    backdrop-filter: blur(4px);
}

.pol-deep-talk h2 {
    background: linear-gradient(135deg, #ffd97a 0%, #e8a93d 50%, #ff9a3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 217, 122, 0.3);
    position: relative;
}

.pol-deep-talk h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pol-gold), transparent);
    border-radius: 2px;
}

.pol-growth-cards article {
    background: linear-gradient(160deg, rgba(13, 19, 40, 0.9) 0%, rgba(26, 35, 70, 0.85) 100%);
    border: 1px solid rgba(154, 166, 196, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.pol-growth-cards article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pol-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pol-growth-cards article:hover {
    border-color: rgba(255, 217, 122, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 217, 122, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pol-growth-cards article:hover::before {
    opacity: 1;
}

.pol-growth-cards article strong {
    background: linear-gradient(135deg, #ffd97a 0%, #e8a93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pol-deep-closing {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 122, 0.05), transparent);
    border-top: 1px solid rgba(255, 217, 122, 0.15);
    border-bottom: 1px solid rgba(255, 217, 122, 0.15);
}

/* --- Level UTBK — Dramatic Gate & Animated Numbers --- */
.pol-level-utbk {
    background:
        radial-gradient(ellipse 100% 50% at 50% 30%, rgba(19, 29, 64, 0.7) 0%, transparent 65%),
        linear-gradient(180deg, transparent 0%, rgba(10, 15, 34, 0.8) 50%, transparent 100%);
}

.pol-utbk-gate {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(143, 216, 255, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, rgba(8, 12, 30, 0.85) 0%, rgba(13, 19, 40, 0.75) 100%);
    border: 1px solid rgba(154, 166, 196, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(143, 216, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.pol-utbk-gate::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background:
        radial-gradient(ellipse at center, rgba(255, 217, 122, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.7;
}

.pol-utbk-numbers article {
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(13, 19, 40, 0.9) 0%, rgba(26, 35, 70, 0.8) 100%);
    border: 1px solid rgba(154, 166, 196, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pol-utbk-numbers article::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 217, 122, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pol-utbk-numbers article:hover {
    border-color: rgba(255, 217, 122, 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 217, 122, 0.12);
}

.pol-utbk-numbers article:hover::after {
    opacity: 1;
}

.pol-utbk-numbers strong {
    background: linear-gradient(135deg, #ffd97a 0%, #ff9a3d 50%, #ffd97a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(255, 217, 122, 0.4);
    animation: utbkNumberPulse 3s ease-in-out infinite;
}

@keyframes utbkNumberPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* --- Level 1 — Enhanced RPG Dialogue --- */
.pol-dialogue {
    background: linear-gradient(180deg, rgba(8, 12, 30, 0.94) 0%, rgba(13, 19, 40, 0.9) 100%);
    border: 2px solid rgba(255, 217, 122, 0.5);
    box-shadow:
        0 0 0 6px rgba(8, 12, 30, 0.6),
        0 0 60px rgba(255, 200, 90, 0.18),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.pol-dialogue::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 122, 0.6), transparent);
}

.pol-dialogue-name {
    background: linear-gradient(180deg, #ffd97a 0%, #e8a93d 100%);
    box-shadow:
        0 6px 20px rgba(232, 169, 61, 0.6),
        0 0 30px rgba(255, 217, 122, 0.3);
    letter-spacing: 0.25em;
    padding: 0.4rem 1.3rem;
    border-radius: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Level 2 — Refined Illusion Cards --- */
.pol-myth-caption {
    background: linear-gradient(160deg, rgba(46, 10, 24, 0.9) 0%, rgba(30, 15, 30, 0.85) 100%);
    border: 1px solid rgba(255, 93, 108, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 93, 108, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.6rem;
    border-radius: 14px;
}

.pol-myth-caption strong {
    background: linear-gradient(135deg, #ff5d6c 0%, #c62f42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 93, 108, 0.5);
}

.pol-fact-card {
    background: linear-gradient(160deg, rgba(8, 22, 18, 0.94) 0%, rgba(15, 35, 30, 0.9) 100%);
    border: 1px solid rgba(127, 231, 196, 0.6);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(127, 231, 196, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(127, 231, 196, 0.05);
}

.pol-fact-card strong {
    background: linear-gradient(135deg, #7fe7c4 0%, #5cc9a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 24px rgba(127, 231, 196, 0.6);
}

/* --- Level 3 — Enhanced Pillars --- */
.pol-pillar {
    width: min(280px, 28vw);
    padding-top: 96px;
}

.pol-pillar-body {
    width: 92px;
    height: 238px;
    border: 0;
    border-radius: 48% 52% 22% 26% / 10% 12% 8% 10%;
    background:
        linear-gradient(78deg, transparent 0 17%, rgba(8, 18, 18, .38) 18% 21%, transparent 22% 100%),
        linear-gradient(104deg, transparent 0 68%, rgba(104, 154, 116, .16) 69% 72%, transparent 73% 100%),
        linear-gradient(90deg, #101b18 0%, #263d2e 18%, #3f5a3d 43%, #263d2e 70%, #0b1412 100%);
    box-shadow:
        inset -18px 0 24px rgba(0, 0, 0, .62),
        inset 12px 0 18px rgba(157, 203, 163, .08),
        0 24px 28px rgba(0, 0, 0, .55),
        0 0 24px rgba(127, 231, 196, .08);
    transform-origin: 50% 100%;
    transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s ease;
    overflow: visible;
}

.pol-pillar-body::before {
    top: -112px;
    left: 50%;
    right: auto;
    width: 280px;
    height: 190px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 48% 52% 44% 56%;
    background:
        radial-gradient(ellipse at 23% 62%, #172d25 0 25%, transparent 26%),
        radial-gradient(ellipse at 39% 30%, #294737 0 31%, transparent 32%),
        radial-gradient(ellipse at 65% 27%, #203d31 0 30%, transparent 31%),
        radial-gradient(ellipse at 80% 61%, #132a23 0 27%, transparent 28%),
        radial-gradient(ellipse at 52% 65%, #315441 0 42%, transparent 43%);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .48));
    box-shadow: none;
    opacity: .96;
}

.pol-pillar-body::after {
    left: 50%;
    right: auto;
    bottom: -17px;
    width: 170px;
    height: 42px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 50%;
    background:
        linear-gradient(158deg, transparent 0 38%, #17251d 39% 50%, transparent 51%) 0 0 / 50% 100% no-repeat,
        linear-gradient(202deg, transparent 0 38%, #17251d 39% 50%, transparent 51%) 100% 0 / 50% 100% no-repeat;
    box-shadow: none;
}

.pol-pillar-runes {
    position: relative;
    z-index: 2;
}

.pol-pillar.lit .pol-pillar-body,
.pol-pillar:hover .pol-pillar-body,
.pol-pillar:focus-visible .pol-pillar-body {
    border-color: transparent;
    transform: translateY(-5px) scale(1.025);
    box-shadow:
        inset -18px 0 24px rgba(0, 0, 0, .62),
        inset 12px 0 18px rgba(157, 203, 163, .1),
        0 28px 34px rgba(0, 0, 0, .6),
        0 0 42px rgba(127, 231, 196, .28);
}

.pol-level-3 {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

.pol-level-3 .pol-level-head {
    width: min(860px, 92vw);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.pol-level-3 .pol-pillar-path {
    width: min(1280px, 100vw);
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    box-sizing: border-box;
}

.pol-level-3 .pol-mystic-trail {
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pol-tooltip {
    background: linear-gradient(180deg, rgba(10, 16, 36, 0.98) 0%, rgba(13, 19, 40, 0.95) 100%);
    border: 1px solid rgba(127, 231, 196, 0.6);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(127, 231, 196, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.pol-tooltip h4 {
    background: linear-gradient(135deg, #7fe7c4 0%, #5cc9a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(127, 231, 196, 0.5);
}

/* --- Level 4 — Enhanced Wisps --- */
.pol-wisp-orb {
    background: radial-gradient(circle at 34% 30%,
        rgba(255, 255, 255, 0.98) 0%,
        hsl(var(--h) 90% 72%) 25%,
        hsl(var(--h) 85% 55% / 0.7) 50%,
        hsl(var(--h) 80% 40% / 0.2) 75%,
        transparent 82%);
    box-shadow:
        0 0 32px hsl(var(--h) 90% 65% / 0.9),
        0 0 80px hsl(var(--h) 90% 60% / 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.pol-wisp:hover .pol-wisp-orb,
.pol-wisp:focus-visible .pol-wisp-orb {
    transform: scale(1.25);
    box-shadow:
        0 0 48px hsl(var(--h) 90% 65% / 1),
        0 0 100px hsl(var(--h) 90% 60% / 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.pol-wisp-card {
    background: linear-gradient(180deg, rgba(10, 16, 36, 0.98) 0%, rgba(13, 19, 40, 0.95) 100%);
    border: 1px solid hsl(var(--h) 80% 65% / 0.7);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 0 50px hsl(var(--h) 85% 60% / 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pol-wisp-card h4 {
    background: linear-gradient(135deg, hsl(var(--h) 85% 72%) 0%, hsl(var(--h) 75% 62%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px hsl(var(--h) 85% 60% / 0.5);
}

/* --- Level 5 — Enhanced Artifacts --- */
.pol-artifact {
    background: linear-gradient(160deg, rgba(13, 19, 40, 0.85) 0%, rgba(20, 28, 55, 0.8) 100%);
    border: 1.5px solid rgba(255, 217, 122, 0.3);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 40px rgba(255, 200, 90, 0.03);
}

.pol-artifact::before,
.pol-artifact::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.pol-artifact::before {
    top: 8px;
    left: 8px;
    border-top: 2px solid rgba(255, 217, 122, 0.4);
    border-left: 2px solid rgba(255, 217, 122, 0.4);
    border-radius: 2px 0 0 0;
}

.pol-artifact::after {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid rgba(255, 217, 122, 0.4);
    border-right: 2px solid rgba(255, 217, 122, 0.4);
    border-radius: 0 0 2px 0;
}

.pol-artifact:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 217, 122, 0.65);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 200, 90, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(255, 200, 90, 0.08);
}

.pol-artifact:hover::before,
.pol-artifact:hover::after {
    width: 32px;
    height: 32px;
    border-color: rgba(255, 217, 122, 0.7);
}

.pol-artifact h3 {
    background: linear-gradient(135deg, #ffd97a 0%, #e8a93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 217, 122, 0.4);
}

.pol-altar {
    background: linear-gradient(180deg, #4a5a8e 0%, #1c2338 100%);
    border: 1px solid rgba(255, 217, 122, 0.5);
    box-shadow:
        0 0 60px rgba(255, 200, 90, 0.3),
        inset 0 4px 16px rgba(255, 220, 150, 0.25),
        inset 0 -4px 12px rgba(0, 0, 0, 0.5);
}

/* --- Level 6 — Enhanced Campfire & Holograms --- */
.pol-camp-zone {
    background: linear-gradient(180deg,
        rgba(10, 15, 34, 0) 0%,
        rgba(9, 14, 30, 0.7) 42%,
        rgba(6, 10, 22, 1) 100%);
    border: 1px solid rgba(150, 165, 200, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pol-holo-card {
    background: linear-gradient(160deg, rgba(80, 200, 255, 0.08) 0%, rgba(80, 200, 255, 0.04) 100%);
    border: 1px solid rgba(143, 216, 255, 0.6);
    box-shadow:
        0 0 50px rgba(143, 216, 255, 0.2),
        inset 0 0 40px rgba(143, 216, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.pol-holo-card strong {
    background: linear-gradient(135deg, #8fd8ff 0%, #6bc4e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(143, 216, 255, 0.6);
}

.pol-sign-board {
    background: linear-gradient(170deg, #5a4828 0%, #3a2818 100%);
    border: 2px solid #7a6238;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 200, 90, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 24px rgba(0, 0, 0, 0.5);
}

/* --- Level 7 — Enhanced Parchment & Surat Harapan --- */
.pol-parchment {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(90, 70, 35, 0.4) 0%, transparent 55%),
        linear-gradient(180deg, #f0e6c8 0%, #e0d4b0 55%, #d4c49c 100%);
    border: 1px solid #b8a878;
    box-shadow:
        0 0 0 8px rgba(240, 225, 180, 0.15),
        0 0 80px rgba(255, 220, 140, 0.35),
        0 40px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pol-parchment::before,
.pol-parchment::after {
    background: linear-gradient(180deg, #9a7a48, #6a4a28);
    box-shadow:
        0 2px 8px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pol-btn-hope {
    background: linear-gradient(180deg, #ffd97a 0%, #e8a93d 100%);
    border: 1px solid #c89620;
    box-shadow:
        0 8px 24px rgba(180, 130, 40, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pol-btn-hope:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(180, 130, 40, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pol-destiny-surat {
    background: linear-gradient(160deg, rgba(255, 247, 224, 0.08) 0%, rgba(255, 217, 122, 0.12) 100%);
    border: 1px solid rgba(255, 217, 122, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 217, 122, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.pol-destiny-surat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 217, 122, 0.08) 0%, transparent 70%);
    animation: suratGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.pol-destiny-surat::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(255, 217, 122, 0.02) 4px,
        rgba(255, 217, 122, 0.02) 8px
    );
}

@keyframes suratGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.pol-destiny-surat .pol-surat-header {
    background: linear-gradient(135deg, #ffd97a 0%, #e8a93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 217, 122, 0.4);
}

.pol-destiny-surat .pol-surat-footer {
    color: rgba(154, 166, 196, 0.9);
    font-style: italic;
}

/* --- Global Micro-Interactions & Polish --- */
.pol-story-kicker {
    background: linear-gradient(90deg, transparent, rgba(255, 217, 122, 0.08), transparent);
    border: 1px solid rgba(232, 169, 61, 0.4);
    padding: 0.4rem 0.9rem;
    box-shadow: 0 0 20px rgba(255, 217, 122, 0.1);
    position: relative;
}

.pol-story-kicker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pol-gold);
    box-shadow: 0 0 8px rgba(255, 217, 122, 0.8);
}

.pol-h2 {
    background: linear-gradient(135deg, #e8ecf7 0%, #c0c8e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 217, 122, 0.3);
    position: relative;
}

.pol-h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pol-gold), transparent);
    border-radius: 2px;
}

.pol-lead {
    color: rgba(154, 166, 196, 0.95);
}

.pol-lead strong {
    background: linear-gradient(135deg, #ffd97a 0%, #e8a93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 217, 122, 0.4);
}

/* --- Enhanced Reveal Animation --- */
.pol-reveal {
    opacity: 0;
    transform: translateY(46px) scale(0.96);
    transition:
        opacity 1s cubic-bezier(.22,1,.36,1),
        transform 1s cubic-bezier(.22,1,.36,1);
    transition-delay: calc(var(--d, 0) * 160ms);
    will-change: opacity, transform;
}

.pol-reveal.pol-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Floating Return Button --- */
#pol-journey-return {
    background: linear-gradient(180deg, rgba(8, 12, 30, 0.95) 0%, rgba(13, 19, 40, 0.9) 100%);
    border: 1px solid rgba(255, 217, 122, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 217, 122, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#pol-journey-return:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 217, 122, 0.8);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 217, 122, 0.25);
}
