html { scroll-behavior: smooth; }

body.landing-page {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #231f1d;
    background: #ede5d8;
    min-height: 100%;
    overflow-x: hidden;
}

.landing-sky {
    background: #ede5d8;
}

.landing-content {
    background: transparent;
    color: #231f1d;
}

.landing-content h1,
.landing-content h2,
.landing-content h3 {
    color: #18181b;
}

.l2-hero-frame,
.l2-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    background: #ede5d8 url('/img/hero-bg.png') right center / cover no-repeat;
}

.l2-hero {
    isolation: isolate;
}

/* Clear absolute header — compact top padding */
.l2-hero__content {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 1.5rem 0 1rem;
    display: block;
}

.hero-aura-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e8c374;
    background: rgba(28, 23, 19, 0.85);
    border: 1px solid rgba(197, 154, 69, 0.5);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(38, 27, 10, 0.18);
}

.hero-title {
    color: transparent;
    background-image: linear-gradient(to bottom, #8a6828, #5c4314, #261b0a);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

.hero-title span {
    color: transparent;
    background-image: linear-gradient(to bottom, #8a6828, #5c4314, #261b0a);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    color: #221b16;
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-status-card {
    display: none;
}

.aura-pulse { animation: auraPulse 3.6s ease-in-out infinite; }
@keyframes auraPulse {
    0%, 100% { opacity: 0.42; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.12); }
}

.aura-fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.aura-petal {
    position: absolute;
    top: -8%;
    border-radius: 80% 0 80% 0;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.45));
    animation-name: petalFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes petalFall {
    0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
    8% { opacity: 0.95; }
    100% { transform: translate3d(var(--drift, 40px), 112vh, 0) rotate(420deg); opacity: 0.15; }
}

.aura-spark {
    position: absolute;
    bottom: 8%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle, #fff7d1 0%, #fbbf24 55%, transparent 70%);
    box-shadow: 0 0 10px 3px rgba(251, 191, 36, 0.65);
    animation-name: sparkRise;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}
@keyframes sparkRise {
    0% { transform: translate3d(0, 20px, 0) scale(0.3); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: translate3d(var(--drift, -20px), -70vh, 0) scale(1); opacity: 0; }
}

.nav-smudge {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    z-index: 10;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1c1917;
    text-shadow: none;
    filter: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.875rem; /* text-sm — do not override Tailwind */
    line-height: 1.25;
}
@media (min-width: 768px) {
    .nav-smudge { font-size: 0.875rem; }
}
.nav-smudge::before {
    content: '';
    position: absolute;
    inset: -6px -14px;
    background: radial-gradient(ellipse at 50% 50%, rgba(220, 175, 75, 0.75) 0%, rgba(200, 150, 50, 0.45) 45%, rgba(200, 150, 50, 0) 75%);
    border-radius: 9999px;
    filter: blur(7px);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -1;
    pointer-events: none;
}
.nav-smudge:hover::before {
    opacity: 1;
    transform: scale(1.05);
}
.nav-smudge:hover {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(180, 130, 40, 0.6);
    filter: none;
}
.nav-smudge:hover svg,
.nav-smudge:hover span,
.nav-smudge:hover i {
    color: #ffffff !important;
}
.nav-smudge.is-active {
    color: #18181b;
}
.nav-smudge .l2-nav-chevron {
    margin-left: 0.4rem;
    font-size: 0.62em;
    color: inherit;
}

.l2-nav-link,
.l2-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #18181b;
    text-shadow: none;
    filter: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.25s ease;
}

.btn-cabinet {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff8e7;
    background:
        linear-gradient(#6d28d9, #6d28d9) padding-box,
        linear-gradient(180deg, #fde68a, #b45309) border-box;
    border: 2px solid transparent;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
    box-shadow:
        0 8px 16px rgba(109, 40, 217, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-cabinet:hover {
    background:
        linear-gradient(#7c3aed, #5b21b6) padding-box,
        linear-gradient(180deg, #fff7d1, #f59e0b) border-box;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.45);
}

.btn-play-ornate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 16px 34px;
    font-family: Cinzel, serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fffbeb;
    text-shadow: 0 2px 0 rgba(15, 23, 42, 0.25);
    background: linear-gradient(180deg, #5eead4 0%, #0f766e 42%, #ca8a04 100%);
    border: 2px solid rgba(253, 230, 138, 0.85);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    box-shadow:
        0 14px 30px rgba(15, 118, 110, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-play-ornate:hover {
    background: linear-gradient(180deg, #99f6e4 0%, #0d9488 40%, #eab308 100%);
    box-shadow:
        0 0 28px rgba(251, 191, 36, 0.55),
        0 16px 32px rgba(15, 118, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-play-ornate--compact {
    min-width: 0;
    padding: 12px 22px;
    font-size: 13px;
}
.btn-play-circle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    padding: 0;
    clip-path: none;
    border-radius: 999px;
}

.l2-panel {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(216, 200, 176, 0.7);
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(43 33 24 / 0.08), 0 1px 2px -1px rgb(43 33 24 / 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #231f1d;
}
.l2-panel::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(216, 200, 176, 0.35);
    border-radius: 0.75rem;
    box-shadow: none;
    pointer-events: none;
}
.l2-panel > * { position: relative; z-index: 1; }
.l2-panel > .l2-plaque,
.l2-panel > .l2-corner { position: absolute; }
.l2-panel > .l2-plaque { z-index: 5; }
.l2-panel > .l2-corner { z-index: 4; }

.l2-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
}
.l2-corner--tl { top: 2px; left: 2px; border-top: 2px solid #fbbf24; border-left: 2px solid #fbbf24; }
.l2-corner--tr { top: 2px; right: 2px; border-top: 2px solid #fbbf24; border-right: 2px solid #fbbf24; }
.l2-corner--bl { bottom: 2px; left: 2px; border-bottom: 2px solid #d9cbb6; border-left: 2px solid #d9cbb6; }
.l2-corner--br { bottom: 2px; right: 2px; border-bottom: 2px solid #d9cbb6; border-right: 2px solid #d9cbb6; }

.l2-plaque {
    position: absolute;
    top: -18px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    min-width: 210px;
    padding: 8px 34px;
    text-align: center;
    font-family: Cinzel, serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff8e7;
    background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 46%, #5b21b6 100%);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
    border: 1px solid rgba(251, 191, 36, 0.65);
    box-shadow: 0 8px 18px rgba(91, 33, 182, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.l2-plaque--gold {
    background: linear-gradient(180deg, #fde68a 0%, #d97706 52%, #92400e 100%);
    color: #fffbeb;
}

.hero-stage {
    display: block;
    width: 100%;
}

.online-count {
    font-family: Cinzel, serif;
    font-size: clamp(48px, 6vw, 64px);
    line-height: 0.95;
    font-weight: 700;
    color: #b88628;
}

.tab-chip {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #18181b;
}
.tab-chip.is-on {
    color: #78350f;
    background: linear-gradient(180deg, #fde68a, #d97706);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}

.media-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(242, 236, 226, 0.55) 40%, rgba(217, 203, 182, 0.35));
}

.btn-play-ornate--hero {
    min-width: 220px;
    padding: 10px 24px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .l2-hero-frame,
    .l2-hero {
        background-position: 75% top;
    }
    .l2-hero__art {
        object-position: 75% top;
    }
}

@media (max-width: 1023px) {
    .l2-hero__content {
        padding: 3.5rem 0 1.25rem;
    }
    .btn-play-ornate--hero {
        width: 100%;
        max-width: 20rem;
        min-width: 0;
        padding: 0.75rem 1.25rem;
        font-size: 14px;
        margin-inline: auto;
    }
    .btn-play-ornate:not(.btn-play-ornate--compact):not(.btn-play-circle) { min-width: 0; }
}

[x-cloak] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .aura-petal, .aura-spark, .aura-pulse { animation: none !important; }
}
