/* ============================================
   HOWL WEREWOLF — NOCTURNAL COURT
   Cormorant Display × Raleway Body
   Gothic-Editorial / A24 Horror Aesthetic
   Moon-Gold & Blood-Crimson Palette
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Backgrounds — near-black, deep navy */
    --color-bg: #04040c;
    --color-bg-secondary: #08081a;
    --color-bg-tertiary: #0d0d22;
    --color-surface: #0d0d22;
    --color-surface-elevated: #121230;

    /* Accent — antique gold / blood crimson */
    --color-gold: #c9a84c;
    --color-crimson: #8b1a1a;
    --color-crimson-light: #c0392b;

    /* Text */
    --color-text-primary: #ede8f5;
    --color-text-secondary: #7a7898;
    --color-text-tertiary: #3d3b58;

    /* Accent aliases */
    --color-accent: #c9a84c;
    --color-accent-light: #e8c97a;
    --color-accent-dark: #a07832;
    --color-accent-bg: rgba(201, 168, 76, 0.08);

    /* Gradient */
    --color-gradient-start: #c9a84c;
    --color-gradient-end: #8b1a1a;

    /* Semantic */
    --color-success: #c9a84c;
    --color-warning: #c9a84c;
    --color-error: #c0392b;

    /* Borders */
    --color-border: rgba(201, 168, 76, 0.1);
    --color-border-strong: rgba(201, 168, 76, 0.2);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.75), 0 4px 8px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 40px 80px -12px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.2), 0 0 80px rgba(201, 168, 76, 0.06);
    --shadow-glow-crimson: 0 0 32px rgba(139, 26, 26, 0.3);

    /* Glass */
    --glass-bg: rgba(4, 4, 12, 0.92);
    --glass-border: rgba(201, 168, 76, 0.1);
    --glass-blur: 24px;

    /* Typography */
    --font-display: 'Cormorant', Georgia, serif;
    --font-family: 'Raleway', sans-serif;

    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.75rem;
    --font-size-5xl: 4rem;
    --font-size-6xl: 5.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 7.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1240px;
    --nav-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* Subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    background: var(--color-bg);
}

.nav--scrolled {
    background: rgba(4, 4, 12, 0.92);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow: var(--shadow-md);
}

.nav__container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav__logo-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: 0.04em;
}

.nav__link:hover {
    color: var(--color-gold);
}

.nav__cta {
    padding: 0.5rem var(--spacing-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-bg);
    background: linear-gradient(135deg, #c9a84c, #a07832);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
    letter-spacing: 0.04em;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.5);
}

.nav__lang {
    position: relative;
}

.nav__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    background: rgba(4, 4, 12, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nav__lang-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.nav__lang-btn:hover {
    color: var(--color-gold);
    border-color: rgba(201, 168, 76, 0.4);
    background: var(--color-accent-bg);
}

.nav__lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    display: none;
    padding: 6px;
    background: rgba(8, 8, 26, 0.96);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(201, 168, 76, 0.06);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    max-height: min(60vh, 340px);
    overflow-y: auto;
    z-index: 12;
}

.nav__lang-dropdown--active {
    display: block;
    animation: dropdownIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav__lang-option {
    display: block;
    padding: 7px 10px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav__lang-option:hover {
    color: var(--color-gold);
    background: var(--color-accent-bg);
}

.nav__lang-option--active {
    color: var(--color-gold);
    background: var(--color-accent-bg);
    font-weight: 600;
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

.nav__mobile-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__mobile-toggle--active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__mobile-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .nav__mobile-toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(4, 4, 12, 0.97);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        padding: var(--spacing-xl);
        gap: var(--spacing-sm);
        border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        box-shadow: var(--shadow-xl);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition-base);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav__links--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__link,
    .nav__cta {
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-lg);
        font-size: var(--font-size-base);
        text-align: center;
    }

    .nav__link:hover {
        background: var(--color-accent-bg);
    }

    .nav__cta {
        text-align: center;
        margin-top: var(--spacing-sm);
    }

    .nav__lang {
        width: 100%;
    }

    .nav__lang-btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-lg);
        font-size: var(--font-size-sm);
    }

    .nav__lang-dropdown {
        position: static;
        display: none;
        margin-top: 6px;
        width: 100%;
        background: rgba(201, 168, 76, 0.04);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .nav__lang-dropdown--active {
        display: block;
        animation: none;
    }

    .nav__lang-option {
        text-align: center;
        padding: 10px;
    }
}

/* Mobile nav backdrop */
.nav__backdrop {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.nav__backdrop--active {
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 260px !important;
    padding-bottom: var(--spacing-4xl);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -5%, rgba(201, 168, 76, 0.12) 0%, transparent 60%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    animation: float 22s ease-in-out infinite;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, rgba(201, 168, 76, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    top: -200px;
    right: -160px;
    opacity: 1;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.2) 0%, rgba(139, 26, 26, 0.06) 50%, transparent 70%);
    filter: blur(80px);
    bottom: -150px;
    left: -120px;
    opacity: 1;
    animation-delay: -11s;
}

.hero__moon {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 50%, transparent 70%);
    border: 1px solid rgba(201, 168, 76, 0.06);
    animation: moonPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-gold);
    left: var(--x, 50%);
    top: var(--y, 50%);
    animation: particleFloat var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
    opacity: var(--op, 0.3);
}

.hero__container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__content {
    max-width: 720px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 5px var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    animation: badgeFadeIn 0.6s 0.2s both ease-out;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse 2.4s ease-in-out infinite;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    animation: badgeFadeIn 0.8s 0.4s both ease-out;
}

.hero__title-gradient {
    display: inline;
    background: linear-gradient(135deg, #c9a84c, #e8c97a, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero__subtitle {
    font-family: var(--font-family);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    animation: badgeFadeIn 0.8s 0.6s both ease-out;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
    animation: badgeFadeIn 0.8s 0.8s both ease-out;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    animation: badgeFadeIn 0.8s 1.0s both ease-out;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: -0.01em;
}

.hero__stat-label {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(201, 168, 76, 0.15);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero__stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem var(--spacing-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    color: #04040c;
    background: linear-gradient(135deg, #c9a84c, #a07832);
    box-shadow: 0 2px 16px rgba(201, 168, 76, 0.3);
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.5);
}

.btn--primary:hover::after {
    opacity: 1;
}

.btn--secondary {
    color: var(--color-gold);
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    letter-spacing: 0.05em;
}

.btn--secondary:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.5);
    color: var(--color-accent-light);
}

.btn--large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-sm);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.features__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.features__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-4xl);
}

.features__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.features__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.features__description {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

@media (max-width: 968px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
}

.feature-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08), inset 0 1px 0 rgba(201, 168, 76, 0.1);
    transform: translateY(-4px);
}

.feature-card.in-view:hover {
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--color-gold);
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
    transition: transform var(--transition-spring);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-gold);
}

/* Icon backgrounds per card */
.feature-card:nth-child(1) .feature-card__icon { background: rgba(201, 168, 76, 0.08); }
.feature-card:nth-child(2) .feature-card__icon { background: rgba(139, 26, 26, 0.1); }
.feature-card:nth-child(3) .feature-card__icon { background: rgba(201, 168, 76, 0.08); }
.feature-card:nth-child(4) .feature-card__icon { background: rgba(139, 26, 26, 0.1); }
.feature-card:nth-child(5) .feature-card__icon { background: rgba(201, 168, 76, 0.08); }
.feature-card:nth-child(6) .feature-card__icon { background: rgba(201, 168, 76, 0.08); }

.feature-card:nth-child(2) .feature-card__icon svg,
.feature-card:nth-child(4) .feature-card__icon svg {
    stroke: var(--color-crimson-light);
    filter: drop-shadow(0 0 6px rgba(192, 57, 43, 0.4));
}

.feature-card:nth-child(2) .feature-card__icon,
.feature-card:nth-child(4) .feature-card__icon {
    color: var(--color-crimson-light);
    filter: drop-shadow(0 0 8px rgba(192, 57, 43, 0.3));
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    line-height: 1.2;
}

.feature-card__text {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   HOW TO PLAY SECTION
   ============================================ */
.howtoplay {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.howtoplay__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.howtoplay__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-4xl);
}

.howtoplay__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.howtoplay__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.howtoplay__description {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.howtoplay__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .howtoplay__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .howtoplay__steps {
        grid-template-columns: 1fr;
    }
}

/* Step cards use .howtoplay__step class in JS but the HTML uses .step-card */
.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
}

.step-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    border-left-color: rgba(201, 168, 76, 0.6);
    box-shadow: -2px 0 16px rgba(201, 168, 76, 0.06), 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.step-card.in-view:hover {
    transform: translateY(-2px);
}

.step-card__number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.18;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.step-card__content {
    flex: 1;
}

.step-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.step-card__text {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.pricing__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.pricing__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-4xl);
}

.pricing__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.pricing__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.pricing__description {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.pricing__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .pricing__cards {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.pricing-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.pricing-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card--featured {
    background: linear-gradient(145deg, #121230, #0d0d22);
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.1);
}

.pricing-card--featured.in-view {
    opacity: 1;
    transform: translateY(0);
    animation: floatCard 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #04040c;
    background: linear-gradient(135deg, #c9a84c, #a07832);
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 16px rgba(201, 168, 76, 0.4);
}

.pricing-card__header {
    text-align: center;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    margin-bottom: var(--spacing-xl);
}

.pricing-card__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-card__amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-gold);
}

.pricing-card__period {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-weight: 400;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 0;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--color-gold);
    stroke: var(--color-gold);
}

.pricing-card__btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.pricing-card__btn--primary {
    color: #04040c;
    background: linear-gradient(135deg, #c9a84c, #a07832);
    box-shadow: 0 2px 16px rgba(201, 168, 76, 0.3);
}

.pricing-card__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

.pricing-card__btn--secondary {
    color: var(--color-text-secondary);
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid var(--color-border);
}

.pricing-card__btn--secondary:hover {
    border-color: rgba(201, 168, 76, 0.3);
    color: var(--color-gold);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.15) 0%, rgba(201, 168, 76, 0.08) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.cta__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.cta__text {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.cta .btn--primary {
    background: linear-gradient(135deg, #c9a84c, #a07832);
    color: #04040c;
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.35);
}

.cta .btn--primary:hover {
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    background: var(--color-bg-tertiary);
    border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

@media (max-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__logo-emoji {
    font-size: 2rem;
    line-height: 1;
}

.footer__brand-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
}

.footer__tagline {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer__links-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer__links-title {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 4px;
    opacity: 0.8;
}

.footer__link {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-gold);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    text-align: center;
}

.footer__copyright {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 300;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
}

/* ============================================
   POLICY / LEGAL PAGES
   ============================================ */
.policy-hero {
    padding: calc(var(--nav-height) + var(--spacing-3xl)) var(--spacing-xl) var(--spacing-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 168, 76, 0.1) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 80% 100%, rgba(139, 26, 26, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.policy-hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.35rem var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.policy-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.policy-hero__subtitle {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-4xl);
}

.policy-toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

.policy-toc__title {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.policy-toc__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.policy-toc__list a {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 4px 0;
}

.policy-toc__list a::before {
    content: '→';
    color: var(--color-gold);
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.policy-toc__list a:hover {
    color: var(--color-gold);
}

.policy-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section__title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    line-height: 1.2;
}

.policy-section__title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, #c9a84c, #8b1a1a);
    border-radius: 4px;
    flex-shrink: 0;
}

.policy-section p {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-section ul, .policy-section ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.policy-section li {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.policy-section a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-section strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.policy-highlight {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.policy-highlight p {
    margin-bottom: 0 !important;
    font-size: var(--font-size-sm) !important;
}

/* ============================================
   SUPPORT / FAQ PAGE
   ============================================ */
.faq {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.faq__header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.faq__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.faq__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.faq__description {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.faq .feature-card,
.faq .faq-item {
    opacity: 1;
    transform: none;
}

.faq-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: rgba(201, 168, 76, 0.25);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    gap: var(--spacing-md);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

.faq-item__question:hover {
    color: var(--color-gold);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-gold);
    transition: transform var(--transition-base);
}

.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item--open .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer-inner {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-label {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}

.form-input {
    padding: 0.65rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    font-weight: 400;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

.form-input::placeholder {
    color: var(--color-text-tertiary);
}

.form-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ============================================
   SUPPORT CONTACT
   ============================================ */
.support-contact {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.support-contact__container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    text-align: center;
}

.support-contact__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    line-height: 1.15;
}

.support-contact__text {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.support-contact__email {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #04040c;
    background: linear-gradient(135deg, #c9a84c, #a07832);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 20px rgba(201, 168, 76, 0.35);
    transition: var(--transition-base);
}

.support-contact__email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%       { transform: translate(24px, -24px) rotate(4deg); }
    50%       { transform: translate(-12px, 24px) rotate(-4deg); }
    75%       { transform: translate(-24px, -12px) rotate(2deg); }
}

@keyframes moonPulse {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.02); }
}

@keyframes heroReveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
    to { clip-path: inset(0 0% 0 0); opacity: 1; }
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: var(--op, 0.3); }
    50% { transform: translateY(-80px); opacity: 0; }
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.6); }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SCROLL REVEAL — STAGGER DEFAULTS
   (delay set via JS inline style)
   ============================================ */
.feature-card,
.pricing-card,
.step-card,
.faq-item {
    /* base hidden state already set in each component above */
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots {
    padding: var(--spacing-5xl) 0;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.screenshots__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.screenshots__header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.screenshots__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.screenshots__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
}

.screenshots__description {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

.screenshots__scroll {
    overflow-x: auto;
    padding-bottom: var(--spacing-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.screenshots__scroll::-webkit-scrollbar { display: none; }
.screenshots__scroll.is-dragging { cursor: grabbing; user-select: none; }

.screenshots__track {
    display: flex;
    gap: var(--spacing-xl);
    width: max-content;
    padding: var(--spacing-lg) calc((100vw - 1200px) / 2 + var(--spacing-xl));
    align-items: flex-end;
}

/* Phone frame */
.phone-frame {
    flex-shrink: 0;
    width: 190px;
    aspect-ratio: 9 / 19.5;
    background: #0a0a1a;
    border-radius: 36px;
    border: 2px solid rgba(201, 168, 76, 0.15);
    position: relative;
    box-shadow:
        0 0 0 6px #070710,
        0 24px 48px -8px rgba(0,0,0,0.9),
        0 0 40px rgba(201,168,76,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 0 0 6px #070710,
        0 32px 56px -8px rgba(0,0,0,0.9),
        0 0 50px rgba(201,168,76,0.12);
}

/* Dynamic island */
.phone-frame__island {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: #000;
    border-radius: 10px;
    z-index: 10;
}

/* Screenshot image fills the frame */
.phone-frame__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.phone-frame__img.is-loaded {
    opacity: 1;
}

/* Placeholder — shimmer + wolf icon */
.phone-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    transition: opacity 0.4s ease;
}

.phone-frame__placeholder.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.phone-frame__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(201, 168, 76, 0.04) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.phone-frame__icon {
    font-size: 2rem;
    opacity: 0.25;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(1.08); }
}

.phone-frame__hint {
    font-family: var(--font-family);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    text-align: center;
}

/* Decorative bars on placeholder */
.phone-frame__lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: var(--spacing-sm);
}

.phone-frame__line {
    height: 4px;
    border-radius: 2px;
    background: rgba(201, 168, 76, 0.07);
}

.phone-frame__line:nth-child(2) { width: 75%; }
.phone-frame__line:nth-child(3) { width: 55%; }

/* Stagger scale for carousel depth effect */
.phone-frame:nth-child(1) { transform: scale(0.92) translateY(12px); }
.phone-frame:nth-child(2) { transform: scale(0.96) translateY(6px); }
.phone-frame:nth-child(3) { transform: scale(1); }
.phone-frame:nth-child(4) { transform: scale(0.96) translateY(6px); }
.phone-frame:nth-child(5) { transform: scale(0.92) translateY(12px); }

.phone-frame:nth-child(1):hover,
.phone-frame:nth-child(2):hover,
.phone-frame:nth-child(3):hover,
.phone-frame:nth-child(4):hover,
.phone-frame:nth-child(5):hover {
    transform: scale(1.03) translateY(-8px);
}

@media (max-width: 768px) {
    .screenshots__track {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }

    .phone-frame:nth-child(1),
    .phone-frame:nth-child(2),
    .phone-frame:nth-child(3),
    .phone-frame:nth-child(4),
    .phone-frame:nth-child(5) {
        transform: none;
    }

    .phone-frame { width: 155px; border-radius: 28px; }
    .phone-frame__img { border-radius: 26px; }
    .phone-frame__island { width: 50px; height: 8px; top: 11px; }
}

/* ============================================
   UTILITY
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ============================================
   ROLES SECTION
   ============================================ */
.roles {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.roles::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.roles__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.roles__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.roles__label {
    display: inline-block;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.roles__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.roles__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.roles__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    perspective: 1200px;
}

/* Role Card 3D Flip */
.role-card {
    height: 420px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.role-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.role-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card:hover .role-card__inner,
.role-card.flipped .role-card__inner {
    transform: rotateY(180deg);
}

.role-card__front,
.role-card__back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.role-card__front {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(201,168,76,0.03) 0px,
        rgba(201,168,76,0.03) 1px,
        transparent 1px,
        transparent 12px
    );
}

.role-card__symbol {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 300;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    animation: symbolPulse 3s ease-in-out infinite;
}

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

.role-card__tap {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--spacing-lg);
}

/* Card backs by role */
.role-card--wolf .role-card__back {
    background: linear-gradient(145deg, #1a0808, #0d0d22);
    border: 1px solid rgba(139,26,26,0.5);
    box-shadow: 0 0 40px rgba(139,26,26,0.15), inset 0 1px 0 rgba(255,100,0,0.1);
    transform: rotateY(180deg);
}

.role-card--seer .role-card__back {
    background: linear-gradient(145deg, #0d0d22, #0a0a1a);
    border: 1px solid rgba(201,168,76,0.4);
    box-shadow: 0 0 40px rgba(201,168,76,0.12), inset 0 1px 0 rgba(201,168,76,0.15);
    transform: rotateY(180deg);
}

.role-card--villager .role-card__back {
    background: linear-gradient(145deg, #0a1408, #0d0d22);
    border: 1px solid rgba(58,122,58,0.4);
    box-shadow: 0 0 40px rgba(58,122,58,0.1), inset 0 1px 0 rgba(58,122,58,0.1);
    transform: rotateY(180deg);
}

.role-card__art {
    width: 120px;
    height: 120px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
    line-height: 1;
}

.role-card__art .role-card__svg {
    width: 100%;
    height: 100%;
}

.role-card__name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.role-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
    display: flex;
    align-items: center;
}

.role-card__tag {
    margin-top: var(--spacing-md);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.role-card__tag--evil {
    background: rgba(139,26,26,0.2);
    border: 1px solid rgba(192,57,43,0.4);
    color: #e74c3c;
}

.role-card__tag--good {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--color-gold);
}

/* Wolf eye glow animation */
.role-card--wolf:hover .role-card__svg ellipse[fill="#ff3300"] {
    animation: wolfEyeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes wolfEyeGlow {
    from { opacity: 0.9; }
    to { opacity: 1; filter: drop-shadow(0 0 6px #ff3300); }
}

/* Seer eye animation */
.role-card--seer .role-card__svg circle[r="4"] {
    animation: seerPupil 4s ease-in-out infinite;
}

@keyframes seerPupil {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); filter: drop-shadow(0 0 8px #c9a84c); }
}

/* Responsive roles */
@media (max-width: 768px) {
    .roles__cards {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .role-card {
        height: 380px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .roles__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    .role-card {
        height: 380px;
    }
}

/* ============================================
   HERO CHEST ANIMATION
   ============================================ */
.hero__chest-wrap {
    margin-top: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: badgeFadeIn 0.8s 1.2s both ease-out;
}

.hero__chest {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.hero__chest-svg {
    width: 140px;
    height: 110px;
    filter: drop-shadow(0 0 20px rgba(201,168,76,0.3));
    transition: filter 0.3s ease;
}

/* The lid group */
.hero__chest-lid {
    transform-origin: 70px 52px;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__chest--open .hero__chest-lid {
    transform: rotateX(-110deg);
}

/* Chest glow light */
.hero__chest-light {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.8) 0%, rgba(201,168,76,0.3) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    filter: blur(4px);
}

.hero__chest--open .hero__chest-light {
    opacity: 1;
    animation: chestLightPulse 2s ease-in-out infinite;
}

@keyframes chestLightPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleY(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1.2); }
}

/* Chest particles burst */
.hero__chest-particles {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero__chest-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0;
    transition: none;
}

.hero__chest--open .hero__chest-particles span:nth-child(1) { animation: chestParticle1 1s 0.3s ease-out forwards; }
.hero__chest--open .hero__chest-particles span:nth-child(2) { animation: chestParticle2 1.1s 0.35s ease-out forwards; }
.hero__chest--open .hero__chest-particles span:nth-child(3) { animation: chestParticle3 0.9s 0.4s ease-out forwards; }
.hero__chest--open .hero__chest-particles span:nth-child(4) { animation: chestParticle4 1.2s 0.3s ease-out forwards; }
.hero__chest--open .hero__chest-particles span:nth-child(5) { animation: chestParticle5 1s 0.45s ease-out forwards; }
.hero__chest--open .hero__chest-particles span:nth-child(6) { animation: chestParticle6 0.8s 0.25s ease-out forwards; }

@keyframes chestParticle1 { to { transform: translate(-60px, -80px) scale(0); opacity: 0; } from { opacity: 1; } }
@keyframes chestParticle2 { to { transform: translate(70px, -60px) scale(0); opacity: 0; } from { opacity: 1; } }
@keyframes chestParticle3 { to { transform: translate(-30px, -100px) scale(0); opacity: 0; } from { opacity: 1; } }
@keyframes chestParticle4 { to { transform: translate(50px, -90px) scale(0); opacity: 0; } from { opacity: 1; } }
@keyframes chestParticle5 { to { transform: translate(-80px, -50px) scale(0); opacity: 0; } from { opacity: 1; } }
@keyframes chestParticle6 { to { transform: translate(40px, -110px) scale(0); opacity: 0; } from { opacity: 1; } }

/* The role card that floats out */
.hero__chest-card {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(0.6);
    width: 52px;
    height: 72px;
    background: linear-gradient(135deg, #1a1008, #0d0d1a);
    border: 1.5px solid rgba(201,168,76,0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: none;
    box-shadow: 0 0 20px rgba(201,168,76,0.3);
    z-index: 2;
}

.hero__chest-card span {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold);
    font-weight: 700;
}

.hero__chest--open .hero__chest-card {
    animation: cardFloat 1.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardFloat {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.6) rotateZ(-5deg); }
    40% { opacity: 1; }
    100% { opacity: 1; transform: translateX(-50%) translateY(-70px) scale(1) rotateZ(0deg); }
}

.hero__chest-label {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s;
}

.hero__chest:hover .hero__chest-label {
    color: var(--color-gold);
}

.hero__chest:hover .hero__chest-svg {
    filter: drop-shadow(0 0 30px rgba(201,168,76,0.5));
}

/* Chest shake on hover (before open) */
.hero__chest:not(.hero__chest--open):hover .hero__chest-svg {
    animation: chestShake 0.5s ease-in-out;
}

@keyframes chestShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    60% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
}

/* ============================================
   HERO FOREST SILHOUETTE
   ============================================ */
.hero__forest {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

.hero__forest svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Push hero content above forest */
.hero__container {
    position: relative;
    z-index: 1;
}

/* ============================================
   INTRO SPLASH OVERLAY
   Recreates the app's chest-open launch animation
   ============================================ */

#intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

#intro-overlay.intro--done {
    animation: introFadeOut 0.45s ease-in forwards;
    pointer-events: none;
}

@keyframes introFadeOut { to { opacity: 0; } }

.intro__bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 50% 58%, rgba(255,195,40,0.32) 0%, rgba(255,100,0,0.10) 52%, transparent 72%);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.25);
    will-change: transform, opacity;
}

.intro__bg-glow.active {
    animation: introGlow 0.9s ease-out forwards;
}

@keyframes introGlow {
    0%   { opacity: 0; transform: scale(0.25); }
    18%  { opacity: 1; }
    100% { opacity: 0; transform: scale(2.8); }
}

.intro__flash {
    position: absolute;
    inset: 0;
    background: #ffc820;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.intro__flash.active {
    animation: introFlash 0.72s ease-out forwards;
}

@keyframes introFlash {
    0%   { opacity: 0.58; }
    100% { opacity: 0; }
}

/* Stage — full viewport */
.intro__stage {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Burst rings — origin set dynamically via JS (--origin-top) */
.intro__ring {
    position: absolute;
    left: 50%;
    top: var(--origin-top, 55%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.06);
}

.intro__ring--1 { width: 180px; height: 70px; border: 8px   solid #ffd700; }
.intro__ring--2 { width: 180px; height: 70px; border: 5.5px solid #ff8c00; }
.intro__ring--3 { width: 180px; height: 70px; border: 3px   solid #ff5500; }

.intro__ring--1.active { animation: ring1Burst 0.68s ease-out          forwards; }
.intro__ring--2.active { animation: ring2Burst 0.84s ease-out 0.10s    forwards; }
.intro__ring--3.active { animation: ring3Burst 1.00s ease-out 0.22s    forwards; }

@keyframes ring1Burst {
    0%   { transform: translate(-50%, -50%) scale(0.06); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.8);  opacity: 0; }
}
@keyframes ring2Burst {
    0%   { transform: translate(-50%, -50%) scale(0.06); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3.6);  opacity: 0; }
}
@keyframes ring3Burst {
    0%   { transform: translate(-50%, -50%) scale(0.06); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4.6);  opacity: 0; }
}

/* Spark particles — same origin as rings */
.intro__spark {
    position: absolute;
    left: 50%;
    top: var(--origin-top, 55%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}

.intro__spark.active {
    animation: sparkFly var(--dur) ease-out var(--delay) forwards;
}

@keyframes sparkFly {
    0%   { transform: translate(-50%, -50%); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))); opacity: 0; }
}

/* Chest — centered horizontally, placed at 55% */
.intro__chest-wrap {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 144px;
    z-index: 7;
}

#intro-chest-anim {
    opacity: 0;
    transform: scale(0.141, 0.2175);
    transform-origin: center center;
    will-change: transform, opacity;
}

.intro__chest-3d {
    position: relative;
    width: 210px;
    height: 144px;
}

/* Lid (top 59px = 45/110*144) with 3D perspective */
.intro__lid-perspective {
    position: absolute;
    top: 0;
    left: 0;
    width: 210px;
    height: 59px;
    perspective: 550px;
    transform-style: preserve-3d;
    z-index: 2;
}

.intro__svg-lid {
    width: 210px;
    height: 59px;
    transform-origin: bottom center;
    transform: rotateX(0deg);
    display: block;
    will-change: transform;
}

/* Body (bottom 85px = 65/110*144) */
.intro__svg-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 210px;
    height: 85px;
    z-index: 1;
}

/* Golden glow inside open chest */
.intro__chest-glow {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,215,0,0.95) 0%, rgba(255,140,0,0.55) 50%, transparent 100%);
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.28s ease-out 0.08s;
}

/* Chest keyframes */
@keyframes chestSpawn {
    0%   { transform: scale(0.141, 0.2175); }
    68%  { transform: scale(1.0528, 1.624); }
    84%  { transform: scale(0.9024, 1.392); }
    100% { transform: scale(0.94, 1.45); }
}

@keyframes chestRattle {
    0%,100% { transform: scale(0.94, 1.45) translateX(  0px); }
    12%     { transform: scale(0.94, 1.45) translateX( 8px); }
    25%     { transform: scale(0.94, 1.45) translateX(-8px); }
    37%     { transform: scale(0.94, 1.45) translateX( 7px); }
    50%     { transform: scale(0.94, 1.45) translateX(-7px); }
    63%     { transform: scale(0.94, 1.45) translateX( 5px); }
    75%     { transform: scale(0.94, 1.45) translateX(-4px); }
    88%     { transform: scale(0.94, 1.45) translateX( 2px); }
}

@keyframes chestFadeOut { to { opacity: 0; } }

/* Role cards — origin set dynamically via --card-ot (top position) */
.intro__card {
    position: absolute;
    left: 50%;
    top: var(--card-ot, 55%);
    width: 76px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 8;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.intro__card--wolf     { border: 2px solid rgba(255, 60, 60, 0.65); box-shadow: 0 0 30px rgba(255, 60, 60, 0.75); }
.intro__card--seer     { border: 2px solid rgba(160, 32,240, 0.65); box-shadow: 0 0 30px rgba(160, 32,240, 0.75); }
.intro__card--villager { border: 2px solid rgba( 34,197, 94, 0.65); box-shadow: 0 0 30px rgba( 34,197, 94, 0.75); }

.intro__card-inner {
    font-size: 36px;
    line-height: 1;
    display: block;
    transform: scale(1);
}

/* Title — centered at same 55% vertical anchor as the chest */
.intro__title-wrap {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9;
    will-change: transform, opacity;
}

.intro__title-emoji {
    display: block;
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 0 22px rgba(180, 0, 0, 0.95));
    margin-bottom: 10px;
}

.intro__title-text {
    display: block;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(180,0,0,0.95), 0 0 60px rgba(180,0,0,0.42);
    line-height: 1;
}

/* Skip hint */
.intro__skip {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0);
    pointer-events: none;
    z-index: 10;
    transition: color 0.5s ease;
    white-space: nowrap;
}

.intro__skip.visible { color: rgba(255,255,255,0.28); }
