:root {
    --forest: #102416;
    --moss: #1d3d24;
    --gold: #f4d35e;
    --cream: #fff7e6;
    --glass: rgba(255, 255, 255, 0.14);
    --glass-strong: rgba(255, 255, 255, 0.22);
    --line: rgba(255, 255, 255, 0.42);
}

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

html,
body {
    margin: 0;
    height: 100%;
    height: 100svh;
    overflow: hidden;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    color: var(--cream);
    background: var(--forest);
    cursor: none;
}

.scene {
    position: relative;
    isolation: isolate;
    height: 100%;
    display: grid;
    place-items: center;
    padding: clamp(0.55rem, 1.8vh, 1.25rem) 1rem;
    overflow: hidden;
}

.backdrop {
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(244, 211, 94, 0.18), transparent 42%),
        radial-gradient(ellipse at 85% 80%, rgba(92, 184, 92, 0.16), transparent 45%),
        url("/images/under-construction.png") center / cover no-repeat;
    filter: blur(28px) saturate(1.25) brightness(0.55);
    transform: scale(1.08);
    z-index: 0;
}

.vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(8, 18, 10, 0.55) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%, rgba(0, 0, 0, 0.2));
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
    animation: drift 14s ease-in-out infinite;
}

.orb-a {
    width: 280px;
    height: 280px;
    background: rgba(244, 211, 94, 0.35);
    top: 8%;
    left: 12%;
}

.orb-b {
    width: 340px;
    height: 340px;
    background: rgba(120, 198, 90, 0.28);
    right: 6%;
    bottom: 4%;
    animation-delay: -6s;
}

.panel {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(420px, 100%);
    max-height: 100%;
    padding: clamp(0.65rem, 1.6vh, 1.05rem) clamp(0.7rem, 1.5vw, 1.1rem) clamp(0.75rem, 1.8vh, 1.15rem);
    border-radius: 24px;
    background: linear-gradient(165deg, var(--glass-strong), rgba(255, 255, 255, 0.06));
    border: 1px solid var(--line);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -20px 40px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    text-align: center;
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.38) 48%,
        transparent 62%
    );
    transform: translateX(-40%);
    animation: shine 6.5s ease-in-out infinite;
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 0.15rem 0 0.35rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vh + 0.6rem, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fffdf6;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.domain {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(0.68rem, 1.4vh, 0.8rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 247, 230, 0.72);
}

.frame {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    width: 100%;
    margin: 0 0 clamp(0.45rem, 1.2vh, 0.8rem);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 12.75rem);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.22),
        transparent 28%,
        transparent 72%,
        rgba(0, 0, 0, 0.12)
    );
    pointer-events: none;
}

.note {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 0 auto;
    max-width: 34ch;
    font-size: clamp(0.78rem, 1.5vh, 0.92rem);
    line-height: 1.4;
    color: rgba(255, 247, 230, 0.88);
}

.badge {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: clamp(0.45rem, 1.4vh, 0.8rem);
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a2208;
    background: linear-gradient(180deg, #ffe9a3, #f0c54a);
    box-shadow:
        0 8px 18px rgba(240, 197, 74, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #2f6b1f;
    box-shadow: 0 0 0 4px rgba(47, 107, 31, 0.18);
    animation: pulse 1.8s ease-in-out infinite;
}

#durian-layer,
#cursor-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}

.durian-drop,
.durian-orbit,
.cursor-durian {
    position: fixed;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    background: url("/images/durian-icon.svg") center / contain no-repeat;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
    will-change: transform, opacity;
    pointer-events: none;
}

.cursor-durian {
    width: 34px;
    height: 34px;
    z-index: 12;
    filter: drop-shadow(0 0 10px rgba(244, 211, 94, 0.55));
}

.cursor-glow {
    position: fixed;
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 211, 94, 0.28), transparent 68%);
    pointer-events: none;
    z-index: 7;
    mix-blend-mode: screen;
}

@media (max-width: 640px) {
    body {
        cursor: auto;
    }

    .cursor-durian,
    .cursor-glow {
        display: none;
    }

    .panel {
        width: min(430px, 100%);
        border-radius: 20px;
    }

    .frame img {
        max-height: calc(100svh - 11.5rem);
    }
}

@media (max-height: 700px) {
    .frame img {
        max-height: calc(100svh - 10.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel::before,
    .orb,
    .badge::before {
        animation: none;
    }
}

@keyframes shine {
    0%,
    55% {
        transform: translateX(-45%);
    }
    100% {
        transform: translateX(45%);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(24px, -18px);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}
