/* ============================================================
   RAVEN LOAM - DRAGON'S KEEP SOCIAL CASINO
   Aurora Design Style | Dragon Medieval Fantasy Castle Theme
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --primary-glow: rgba(74, 222, 128, 0.4);
    --secondary: #818cf8;
    --secondary-dark: #6366f1;
    --secondary-glow: rgba(129, 140, 248, 0.4);
    --accent: #c084fc;
    --accent-dark: #a855f7;
    --accent-glow: rgba(192, 132, 252, 0.4);

    --bg-deep: #050a12;
    --bg-dark: #0a1020;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(20, 30, 55, 0.95);
    --bg-overlay: rgba(5, 10, 18, 0.92);

    --text-primary: #e8ecf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-bright: #f8fafc;

    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(74, 222, 128, 0.2);

    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.4);
    --red: #f87171;
    --red-glow: rgba(248, 113, 113, 0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow-green: 0 0 30px rgba(74, 222, 128, 0.15), 0 0 60px rgba(74, 222, 128, 0.05);
    --shadow-glow-purple: 0 0 30px rgba(192, 132, 252, 0.15), 0 0 60px rgba(192, 132, 252, 0.05);

    --font-display: 'Cinzel Decorative', 'Georgia', serif;
    --font-body: 'Crimson Pro', 'Georgia', serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(129, 140, 248, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(192, 132, 252, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: auroraShift 20s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% {
        background:
            radial-gradient(ellipse 80% 60% at 20% 10%, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
            radial-gradient(ellipse 60% 80% at 80% 30%, rgba(129, 140, 248, 0.04) 0%, transparent 60%),
            radial-gradient(ellipse 70% 50% at 50% 80%, rgba(192, 132, 252, 0.03) 0%, transparent 60%);
    }
    33% {
        background:
            radial-gradient(ellipse 70% 70% at 30% 20%, rgba(129, 140, 248, 0.05) 0%, transparent 60%),
            radial-gradient(ellipse 80% 60% at 70% 50%, rgba(192, 132, 252, 0.04) 0%, transparent 60%),
            radial-gradient(ellipse 60% 80% at 40% 90%, rgba(74, 222, 128, 0.03) 0%, transparent 60%);
    }
    66% {
        background:
            radial-gradient(ellipse 60% 80% at 60% 15%, rgba(192, 132, 252, 0.05) 0%, transparent 60%),
            radial-gradient(ellipse 70% 70% at 20% 60%, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
            radial-gradient(ellipse 80% 50% at 80% 80%, rgba(129, 140, 248, 0.03) 0%, transparent 60%);
    }
    100% {
        background:
            radial-gradient(ellipse 80% 60% at 40% 5%, rgba(74, 222, 128, 0.05) 0%, transparent 60%),
            radial-gradient(ellipse 60% 80% at 90% 40%, rgba(129, 140, 248, 0.05) 0%, transparent 60%),
            radial-gradient(ellipse 70% 60% at 30% 85%, rgba(192, 132, 252, 0.04) 0%, transparent 60%);
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

::selection {
    background: rgba(74, 222, 128, 0.3);
    color: var(--text-bright);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-dark), var(--accent-dark));
    border-radius: 4px;
}

/* === SECTION AURORA BACKGROUNDS === */
.section-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.section-aurora::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    animation: sectionAurora1 15s ease-in-out infinite alternate;
}

.section-aurora::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(192, 132, 252, 0.06) 0%, transparent 70%);
    animation: sectionAurora2 18s ease-in-out infinite alternate;
}

@keyframes sectionAurora1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 5%) scale(1.2); }
}
@keyframes sectionAurora2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -5%) scale(1.15); }
}

/* === AGE VERIFICATION MODAL === */
.age-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.age-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.age-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, 0.97);
    backdrop-filter: blur(20px);
}

.age-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 32, 0.98));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow-green);
    animation: modalSlideIn 0.6s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.age-modal-dragon {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
    border-radius: 2px;
}

.age-modal-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(74, 222, 128, 0.2), transparent 70%);
    pointer-events: none;
}

.age-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.age-modal-icon {
    margin: 0 auto 1.5rem;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
    animation: agePulse 2s ease-in-out infinite;
}

@keyframes agePulse {
    0%, 100% { box-shadow: 0 0 30px rgba(74, 222, 128, 0.2); }
    50% { box-shadow: 0 0 50px rgba(74, 222, 128, 0.4); }
}

.age-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.age-modal-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.age-modal-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.age-modal-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.age-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.03em;
    min-width: 160px;
}

.age-btn-confirm {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}
.age-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5);
}

.age-btn-deny {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.age-btn-deny:hover {
    background: rgba(248, 113, 113, 0.25);
}

/* === COOKIE CONSENT === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(10, 16, 32, 0.97), rgba(5, 10, 18, 0.99));
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    padding: 1.2rem;
    animation: cookieSlideUp 0.5s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-accept {
    background: var(--primary-dark);
    color: var(--bg-deep);
}
.cookie-accept:hover { background: var(--primary); }

.cookie-essential {
    background: rgba(129, 140, 248, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(129, 140, 248, 0.3);
}
.cookie-essential:hover { background: rgba(129, 140, 248, 0.3); }

.cookie-decline {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.2);
}
.cookie-decline:hover { background: rgba(100, 116, 139, 0.3); }

/* === DISCLAIMER BAR === */
.disclaimer-bar {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.1), rgba(251, 191, 36, 0.1), rgba(248, 113, 113, 0.1));
    border-bottom: 1px solid rgba(248, 113, 113, 0.15);
    padding: 0.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 100;
}

.disclaimer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--gold);
}

.disclaimer-inner i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* === NAVIGATION === */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 1.5rem;
    transition: all var(--transition-med);
}

.main-nav.scrolled {
    background: rgba(5, 10, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-bright);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(74, 222, 128, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.coin-display i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-aurora::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(74, 222, 128, 0.12) 0%, transparent 60%);
    animation: heroAurora1 12s ease-in-out infinite alternate;
}

.hero-aurora::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 70%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(129, 140, 248, 0.1) 0%, transparent 60%);
    animation: heroAurora2 16s ease-in-out infinite alternate;
}

@keyframes heroAurora1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    50% { transform: translate(5%, 3%) rotate(2deg); opacity: 1; }
    100% { transform: translate(-3%, -2%) rotate(-1deg); opacity: 0.8; }
}

@keyframes heroAurora2 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(-4%, 2%) rotate(-2deg); opacity: 0.9; }
    100% { transform: translate(3%, -3%) rotate(1deg); opacity: 0.7; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-castle-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 0%, rgba(5, 10, 18, 0.5) 60%, var(--bg-deep) 100%);
}

.hero-castle-silhouette::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 30px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.6));
    clip-path: polygon(0 30%, 30% 0, 60% 0, 100% 30%, 100% 100%, 0 100%);
}

.hero-castle-silhouette::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 8%;
    width: 50px;
    height: 160px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5));
    clip-path: polygon(20% 15%, 35% 0, 65% 0, 80% 15%, 80% 30%, 100% 30%, 100% 100%, 0 100%, 0 30%, 20% 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge i {
    font-size: 0.8rem;
    color: var(--gold);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-title-line {
    display: block;
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--text-bright);
    letter-spacing: 0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-title-accent {
    font-size: clamp(3.5rem, 10vw, 8rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(74, 222, 128, 0.3));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(74, 222, 128, 0.5);
    color: var(--bg-deep);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 1s both;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 1; height: 50px; }
}

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

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === GAME SECTION === */
.game-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* === SLOT MACHINE === */
.slot-machine {
    margin: 0 auto;
    max-width: 750px;
    position: relative;
}

.slot-frame {
    position: relative;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(10, 16, 32, 0.98));
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow-green);
    overflow: hidden;
}

.slot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
}

.slot-frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(74, 222, 128, 0.3);
    z-index: 5;
}
.slot-frame-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.slot-frame-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.slot-frame-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.slot-frame-br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

/* Slot Header */
.slot-header {
    margin-bottom: 1rem;
}

.slot-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.slot-title-wrap i {
    color: var(--primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
}

.slot-game-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.slot-info-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-subtle);
}

.slot-info-item {
    text-align: center;
    flex: 1;
}

.slot-info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
}

.slot-info-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.slot-win-value {
    color: var(--primary);
}

/* Reel Area */
.slot-reels-container {
    position: relative;
    background: rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.slot-payline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}

.slot-payline-top {
    top: 33.33%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.slot-payline-mid {
    top: 50%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.slot-payline-bot {
    top: 66.66%;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.slot-reels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    min-height: 300px;
}

.slot-reel {
    position: relative;
    background: rgba(10, 16, 32, 0.8);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.08);
}

.reel-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.1s linear;
}

.reel-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0.5rem;
    position: relative;
}

.reel-symbol i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.reel-symbol span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Symbol Colors */
.reel-symbol[data-symbol="dragon"] i { color: var(--primary); filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.5)); }
.reel-symbol[data-symbol="crown"] i { color: var(--gold); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4)); }
.reel-symbol[data-symbol="castle"] i { color: #94a3b8; filter: drop-shadow(0 0 8px rgba(148, 163, 184, 0.3)); }
.reel-symbol[data-symbol="shield"] i { color: var(--secondary); filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.4)); }
.reel-symbol[data-symbol="sword"] i { color: #f0abfc; filter: drop-shadow(0 0 8px rgba(240, 171, 252, 0.3)); }
.reel-symbol[data-symbol="gem"] i { color: var(--accent); filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.4)); }
.reel-symbol[data-symbol="lion"] i { color: #fb923c; filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.3)); }
.reel-symbol[data-symbol="chalice"] i { color: var(--gold); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3)); }
.reel-symbol[data-symbol="harp"] i { color: #67e8f9; filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.3)); }
.reel-symbol[data-symbol="rose"] i { color: #fb7185; filter: drop-shadow(0 0 8px rgba(251, 113, 133, 0.3)); }
.reel-symbol[data-symbol="scroll"] i { color: #d6d3d1; filter: drop-shadow(0 0 6px rgba(214, 211, 209, 0.2)); }
.reel-symbol[data-symbol="key"] i { color: #a8a29e; filter: drop-shadow(0 0 6px rgba(168, 162, 158, 0.2)); }

.reel-symbol.winning {
    animation: symbolWin 0.5s ease-in-out 3;
}

.reel-symbol.winning i {
    animation: symbolGlow 0.5s ease-in-out 3;
}

@keyframes symbolWin {
    0%, 100% { background: transparent; }
    50% { background: rgba(74, 222, 128, 0.15); }
}

@keyframes symbolGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.reel-symbol.cascade-out {
    animation: cascadeOut 0.4s ease-in forwards;
}

@keyframes cascadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3) translateY(20px); }
}

.reel-symbol.cascade-in {
    animation: cascadeIn 0.4s ease-out;
}

@keyframes cascadeIn {
    0% { opacity: 0; transform: translateY(-40px) scale(0.5); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Expanding Indicator */
.expanding-indicator {
    text-align: center;
    padding: 0.5rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    animation: expandPulse 1s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@keyframes expandPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Win Overlay */
.win-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    animation: winOverlayIn 0.3s ease-out;
}

@keyframes winOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.win-overlay-content {
    text-align: center;
    position: relative;
}

.win-overlay-particles {
    position: absolute;
    inset: -60px;
    pointer-events: none;
}

.win-overlay-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.win-overlay-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: winCountUp 0.5s ease-out;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

@keyframes winCountUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.win-overlay-coins {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Slot Controls */
.slot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

.slot-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 600;
}

.slot-btn-bet-down,
.slot-btn-bet-up {
    width: 36px;
    height: 36px;
    background: rgba(129, 140, 248, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(129, 140, 248, 0.25);
    font-size: 0.85rem;
}

.slot-btn-bet-down:hover,
.slot-btn-bet-up:hover {
    background: rgba(129, 140, 248, 0.3);
}

.slot-bet-display {
    text-align: center;
    min-width: 60px;
}

.slot-bet-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slot-bet-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.slot-btn-spin {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-deep);
    font-size: 1rem;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3), inset 0 -3px 6px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.slot-btn-spin:hover {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.5), inset 0 -3px 6px rgba(0,0,0,0.2);
}

.slot-btn-spin:active {
    transform: scale(0.95);
}

.slot-btn-spin.spinning {
    animation: spinBtnPulse 0.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes spinBtnPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(74, 222, 128, 0.3); }
    50% { box-shadow: 0 0 50px rgba(74, 222, 128, 0.6); }
}

.spin-btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.spin-btn-inner i {
    font-size: 1.5rem;
}

.spin-btn-inner span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.slot-btn-auto,
.slot-btn-max {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.8rem;
    background: rgba(192, 132, 252, 0.1);
    color: var(--accent);
    border: 1px solid rgba(192, 132, 252, 0.2);
    font-size: 0.7rem;
}

.slot-btn-auto i,
.slot-btn-max i {
    font-size: 1rem;
}

.slot-btn-auto:hover,
.slot-btn-max:hover {
    background: rgba(192, 132, 252, 0.25);
}

.slot-btn-auto.active {
    background: rgba(192, 132, 252, 0.3);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

/* === PAYTABLE === */
.paytable {
    margin-top: 1.5rem;
}

.paytable-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.05em;
}

.paytable-toggle:hover {
    background: rgba(129, 140, 248, 0.15);
}

.paytable-content {
    margin-top: 1rem;
    background: rgba(10, 16, 32, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    animation: fadeInUp 0.3s ease-out;
}

.paytable-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 1rem;
    text-align: center;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}

.paytable-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.paytable-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-subtle);
}

.paytable-item i {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.paytable-legendary i { color: var(--primary); }
.paytable-epic i { color: var(--gold); }
.paytable-rare i { color: var(--secondary); }

.paytable-info {
    flex: 1;
}

.paytable-name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.paytable-val {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.paytable-special {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.paytable-special h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.paytable-special p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.paytable-special p i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* === CULTURAL FACT === */
.cultural-fact {
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(192, 132, 252, 0.05));
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
}

.fact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(129, 140, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.9rem;
}

.cultural-fact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* === ACHIEVEMENTS === */
.achievements-bar {
    margin-top: 2rem;
}

.achievements-bar h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement i {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.achievement span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.achievement.unlocked {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

.achievement.unlocked i {
    color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.achievement.unlocked span {
    color: var(--gold);
}

.achievement.just-unlocked {
    animation: achievementUnlock 0.6s ease-out;
}

@keyframes achievementUnlock {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* === GAME PROGRESS === */
.game-progress {
    max-width: 750px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
}

.xp-bar-container {
    margin-bottom: 1.5rem;
}

.xp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.xp-bar {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 4px 4px 0;
}

.game-progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.progress-stat {
    text-align: center;
    padding: 0.8rem 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.progress-stat i {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.progress-stat span {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.15rem;
}

.progress-stat label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === ABOUT SECTION === */
.about-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(74, 222, 128, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-green);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(129, 140, 248, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === HERITAGE SECTION === */
.heritage-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.heritage-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.2rem;
}

.heritage-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-med);
}

.heritage-card-large {
    grid-column: span 2;
}

.heritage-card:hover {
    border-color: rgba(129, 140, 248, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

.heritage-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    transition: opacity var(--transition-med);
}

.heritage-card:hover .heritage-card-bg {
    opacity: 0.25;
}

.heritage-bg-dragon { background: radial-gradient(ellipse at 80% 20%, rgba(74, 222, 128, 0.4), transparent 60%); }
.heritage-bg-crown { background: radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.4), transparent 60%); }
.heritage-bg-castle { background: radial-gradient(ellipse at 80% 20%, rgba(148, 163, 184, 0.3), transparent 60%); }
.heritage-bg-lion { background: radial-gradient(ellipse at 80% 20%, rgba(251, 146, 60, 0.3), transparent 60%); }
.heritage-bg-rose { background: radial-gradient(ellipse at 80% 20%, rgba(251, 113, 133, 0.3), transparent 60%); }
.heritage-bg-shield { background: radial-gradient(ellipse at 80% 20%, rgba(129, 140, 248, 0.3), transparent 60%); }

.heritage-card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.heritage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.heritage-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.heritage-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.heritage-tag {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    background: rgba(192, 132, 252, 0.1);
    border-radius: var(--radius-sm);
}

/* === TRUST SECTION === */
.trust-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.trust-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all var(--transition-med);
}

.trust-card:hover {
    border-color: rgba(74, 222, 128, 0.15);
    transform: translateY(-2px);
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(192, 132, 252, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.trust-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.trust-address {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.trust-address i {
    color: var(--primary);
}

.trust-address p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === CONTACT SECTION === */
.contact-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.contact-info-card:hover {
    border-color: rgba(74, 222, 128, 0.15);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(74, 222, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-bright);
    margin-bottom: 0.2rem;
}

.contact-info-card a,
.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-consent {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-top: 1px;
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary-dark);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--primary);
}

.form-message.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--red);
}

/* === FOOTER === */
.main-footer {
    position: relative;
    background: rgba(5, 8, 15, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 1.5rem 1.5rem;
    overflow: hidden;
}

.footer-aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.footer-aurora::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(74, 222, 128, 0.03) 0%, transparent 60%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-address {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links-group h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.7rem;
}

.footer-badge i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* === ACHIEVEMENT NOTIFICATION === */
.achievement-notification {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9000;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 32, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(251, 191, 36, 0.1);
    animation: notifSlideIn 0.5s ease-out;
    max-width: 320px;
}

@keyframes notifSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.achievement-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    font-size: 1rem;
    flex-shrink: 0;
}

.achievement-notif-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.achievement-notif-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-bright);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .heritage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .heritage-card-large {
        grid-column: span 2;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(5, 10, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.3rem;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-120%);
        transition: transform var(--transition-med);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title-line { font-size: 2.5rem; }
    .hero-title-accent { font-size: 3.5rem; }

    .slot-reels {
        min-height: 240px;
    }

    .reel-symbol {
        height: 80px;
    }

    .reel-symbol i {
        font-size: 1.6rem;
    }

    .slot-btn-spin {
        width: 80px;
        height: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .heritage-card-large {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .game-progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-controls {
        gap: 0.8rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .paytable-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-line { font-size: 2rem; }
    .hero-title-accent { font-size: 2.8rem; }

    .slot-reels {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        min-height: 200px;
    }

    .reel-symbol {
        height: 66px;
        padding: 0.3rem;
    }

    .reel-symbol i {
        font-size: 1.3rem;
    }

    .reel-symbol span {
        font-size: 0.5rem;
    }

    .slot-btn-spin {
        width: 70px;
        height: 70px;
    }

    .spin-btn-inner i {
        font-size: 1.2rem;
    }

    .slot-info-bar {
        flex-wrap: wrap;
    }

    .achievements-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
    }

    .age-modal-content {
        padding: 2rem 1.5rem;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .age-btn {
        min-width: 100%;
    }
}

/* === UTILITY ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === GRAIN OVERLAY === */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.015;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
