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

:root {
    /* Core Palette */
    --primary: #2d2d2d;
    --primary-light: #4a4a4a;
    --primary-dark: #1a1a1a;
    --secondary: #f7f5f0;
    --secondary-dark: #ede9e0;
    --accent: #7d8c6c;
    --accent-light: #9aab88;
    --accent-dark: #5e6b50;
    
    /* Extended Palette */
    --stone: #a09a8f;
    --bamboo: #b8a88a;
    --cherry: #d4a5a5;
    --cherry-light: #e8c8c8;
    --ink: #3a3a3a;
    --sand: #d4cfc4;
    --sand-light: #e8e4db;
    --cream: #faf8f4;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Noto Serif JP', 'Georgia', serif;
    --font-body: 'Zen Kaku Gothic New', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s ease;
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
    --z-cookie: 1100;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary);
    background-color: var(--secondary);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--accent);
    color: var(--white);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--primary-light);
}

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
    position: relative;
    padding: var(--space-xs) var(--space-lg);
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--sand);
}

.section-tag::before {
    left: -20px;
}

.section-tag::after {
    right: -20px;
}

.section-title {
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--stone);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary);
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--sand);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.2;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie);
    background: var(--white);
    border-top: 1px solid var(--sand);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
    padding: var(--space-lg) var(--space-xl);
    animation: slideUpCookie 0.5s ease forwards;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--primary-light);
}

.cookie-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-cookie-decline {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    background: transparent;
    border: 1px solid var(--sand);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
    border-color: var(--primary-light);
}

.btn-cookie-settings {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-cookie-settings:hover {
    color: var(--primary);
}

.cookie-settings-panel {
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--sand-light);
}

.cookie-settings-panel h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.cookie-option {
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.cookie-option p {
    font-size: 0.8rem;
    color: var(--stone);
    margin-left: 1.6rem;
    margin-top: var(--space-xs);
}

/* ============================================
   AGE VERIFICATION MODAL
   ============================================ */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeInModal 0.4s ease;
}

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

.age-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleInModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.age-modal-content .enso-mark {
    margin-bottom: var(--space-lg);
}

.age-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.age-modal-content p {
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.age-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.age-actions .btn-primary,
.age-actions .btn-secondary {
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 245, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.site-header.scrolled::before {
    border-bottom-color: var(--sand);
}

.main-nav {
    position: relative;
    z-index: 2;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

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

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    background: var(--primary);
    color: var(--secondary) !important;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.3rem !important;
    margin-left: var(--space-sm);
    transition: all var(--transition-base);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem var(--space-xl) var(--space-xl);
        gap: var(--space-xs);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-link::after {
        left: 0;
        right: auto;
        width: 30px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-md);
        text-align: center;
        width: auto;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    overflow: hidden;
    background: var(--secondary);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.sand-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.04;
}

.sand-pattern-1 {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        var(--stone) 30px,
        var(--stone) 31px
    );
    transform: rotate(-2deg) scale(1.1);
}

.sand-pattern-2 {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 60px,
        var(--sand) 60px,
        var(--sand) 61px
    );
    opacity: 0.03;
}

.floating-enso {
    position: absolute;
    animation: floatSlow 20s ease-in-out infinite;
}

.enso-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.enso-2 {
    bottom: 20%;
    left: 3%;
    animation-delay: -7s;
}

.enso-3 {
    top: 60%;
    right: 15%;
    animation-delay: -14s;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(3deg); }
    50% { transform: translate(-5px, -25px) rotate(-2deg); }
    75% { transform: translate(15px, -10px) rotate(1deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(125, 140, 108, 0.1);
    border: 1px solid rgba(125, 140, 108, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

.badge-kanji {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-dark);
    letter-spacing: 0.05em;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.title-line-2 {
    color: var(--accent);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--stone);
    letter-spacing: 0.03em;
}

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

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--sand);
}

.frame-top-left {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
}

.frame-bottom-right {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
}

.hero-game-icon {
    width: 75%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.hero-game-icon:hover {
    transform: scale(1.03) rotate(-1deg);
}

.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    white-space: nowrap;
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    bottom: 15%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: -5%;
    animation-delay: -3s;
}

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

/* Raked Sand Divider */
.raked-sand-divider {
    width: 100%;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.raked-sand-divider svg {
    width: 100%;
    height: 60px;
}

/* ============================================
   SOCIAL PROOF TICKER
   ============================================ */
.social-proof-section {
    background: var(--cream);
    border-top: 1px solid var(--sand-light);
    border-bottom: 1px solid var(--sand-light);
    padding: var(--space-md) 0;
    overflow: hidden;
}

.ticker-container {
    overflow: hidden;
    position: relative;
}

.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--cream), transparent);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--cream), transparent);
}

.ticker-track {
    display: flex;
    gap: var(--space-2xl);
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--stone);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--secondary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--sand-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cherry), var(--bamboo));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-large {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, var(--white), rgba(125, 140, 108, 0.05));
}

.feature-icon {
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-lg);
}

.gallery-item {
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-2 {
    grid-column: span 2;
}

.gallery-item-3 {
    grid-column: span 1;
}

.gallery-item-4 {
    grid-column: span 1;
}

.gallery-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--sand-light);
    transition: all var(--transition-base);
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-frame:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(45, 45, 45, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-frame:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-overlay svg {
    color: var(--white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    animation: fadeInModal 0.3s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    padding: var(--space-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: var(--space-xl);
    right: var(--space-xl);
}

.lightbox-prev {
    left: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ============================================
   RESPONSIBLE GAMING SECTION
   ============================================ */
.responsible-section {
    padding: var(--space-3xl) 0;
    background: var(--secondary);
}

.responsible-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-light);
    box-shadow: var(--shadow-sm);
}

.responsible-icon {
    margin-bottom: var(--space-lg);
}

.responsible-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.responsible-card > p {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: 0.95rem;
}

.responsible-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.resp-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(125, 140, 108, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-dark);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--secondary);
}

.faq-container {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--sand-light);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--stone);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--primary-light);
}

.faq-answer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.registration-section {
    padding: var(--space-4xl) 0;
    background: var(--cream);
    position: relative;
}

.reg-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.reg-info {
    position: sticky;
    top: 120px;
}

.reg-info .section-tag {
    text-align: left;
    display: block;
    padding-left: 0;
}

.reg-info .section-tag::before {
    display: none;
}

.reg-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.reg-info .section-desc {
    text-align: left;
    margin: 0 0 var(--space-xl);
}

.reg-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.95rem;
    color: var(--primary-light);
}

.reg-counter {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--sand-light);
}

.reg-counter-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
}

.reg-counter-label {
    font-size: 0.9rem;
    color: var(--stone);
}

/* Form */
.reg-form-wrapper {
    position: relative;
}

.reg-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--sand-light);
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: var(--space-xl);
}

.form-header h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.form-header p {
    font-size: 0.9rem;
    color: var(--stone);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.required {
    color: var(--cherry);
}

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

.form-group input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(125, 140, 108, 0.15);
}

.form-group input.error {
    border-color: var(--cherry);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.2);
}

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

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--cherry);
    margin-top: var(--space-xs);
    min-height: 1.2em;
}

.form-checkbox {
    margin-bottom: var(--space-md);
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--sand);
    border-radius: var(--radius-sm);
    margin-top: 2px;
    transition: all var(--transition-fast);
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(125, 140, 108, 0.3);
}

.form-checkbox span {
    font-size: 0.85rem;
    color: var(--primary-light);
    line-height: 1.5;
}

.form-checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    background: rgba(125, 140, 108, 0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(125, 140, 108, 0.3);
}

.form-message.error {
    background: rgba(212, 165, 165, 0.1);
    color: #8b4a4a;
    border: 1px solid rgba(212, 165, 165, 0.3);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.trust-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--sand-light);
    transition: all var(--transition-base);
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-card svg {
    margin-bottom: var(--space-md);
}

.trust-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.trust-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary);
    color: var(--sand);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--stone);
    line-height: 1.6;
}

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

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-col a {
    color: var(--stone);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-col li svg {
    flex-shrink: 0;
    color: var(--stone);
}

.footer-col li:not(:has(a)) {
    font-size: 0.85rem;
    color: var(--stone);
    word-break: break-all;
}

.footer-divider {
    margin-bottom: var(--space-xl);
}

.footer-divider svg {
    width: 100%;
    height: 20px;
}

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

.footer-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--stone);
}

.footer-address svg {
    flex-shrink: 0;
    color: var(--stone);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--stone);
    margin-bottom: var(--space-xs);
}

.footer-age {
    font-size: 0.78rem;
    color: var(--primary-light);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
    background: var(--secondary);
    text-align: center;
    position: relative;
}

.legal-hero .enso-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

.legal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-md);
    position: relative;
}

.legal-hero p {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: calc(-1 * var(--space-xl));
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand-light);
    border-bottom: none;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--sand-light);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--accent-dark);
}

.legal-content p {
    margin-bottom: var(--space-md);
    font-size: 0.93rem;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--primary-light);
}

.legal-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content .contact-box {
    background: rgba(125, 140, 108, 0.08);
    border: 1px solid rgba(125, 140, 108, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.legal-content .contact-box p {
    margin-bottom: var(--space-xs);
}

.legal-content .contact-box p:last-child {
    margin-bottom: 0;
}

.legal-bottom-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
    background: var(--white);
    border: 1px solid var(--sand-light);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.legal-bottom-section p {
    font-size: 0.85rem;
    color: var(--stone);
    text-align: center;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-frame {
        max-width: 300px;
    }
    
    .card-1 {
        left: 5%;
    }
    
    .card-2 {
        right: 5%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item-1 {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .reg-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .reg-info {
        position: static;
        text-align: center;
    }
    
    .reg-info .section-tag,
    .reg-info .section-title,
    .reg-info .section-desc {
        text-align: center;
    }
    
    .reg-info .section-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .reg-benefits {
        align-items: center;
    }
    
    .reg-counter {
        justify-content: center;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card-large {
        grid-column: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item-1 {
        grid-column: span 1;
    }
    
    .gallery-item-2 {
        grid-column: span 1;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cookie-inner {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .btn-cookie-accept,
    .btn-cookie-decline {
        flex: 1;
    }
    
    .responsible-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .reg-form {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .age-actions {
        gap: var(--space-sm);
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

.gallery-item-1 { transition-delay: 0.05s; }
.gallery-item-2 { transition-delay: 0.15s; }
.gallery-item-3 { transition-delay: 0.25s; }
.gallery-item-4 { transition-delay: 0.35s; }

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.1s; }
.faq-item:nth-child(3) { transition-delay: 0.15s; }
.faq-item:nth-child(4) { transition-delay: 0.2s; }
.faq-item:nth-child(5) { transition-delay: 0.25s; }
.faq-item:nth-child(6) { transition-delay: 0.3s; }
.faq-item:nth-child(7) { transition-delay: 0.35s; }
.faq-item:nth-child(8) { transition-delay: 0.4s; }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .cookie-banner,
    .age-modal,
    .social-proof-section,
    .hero-bg-elements,
    .raked-sand-divider,
    .lightbox {
        display: none !important;
    }
    
    body::after {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
