/* ==========================================================================
   CSS VARIABLES - Derived from "fe-slot" (Warm, Amber, Deep Purple)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #0a0710;
    --bg-gradient-1: #1a1025;
    --bg-gradient-2: #2d1b36;
    
    --primary-color: #f5a623; /* Warm Amber */
    --primary-hover: #ffbb4d;
    --secondary-color: #9b51e0; /* Deep Purple */
    
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Glow */
    --glow-primary: 0 0 20px rgba(245, 166, 35, 0.3);
    --glow-secondary: 0 0 30px rgba(155, 81, 224, 0.2);
    
    /* Layout */
    --radius: 20px;
    --radius-sm: 12px;
    --container-max: 1200px;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Ambient Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, var(--bg-gradient-1), transparent 50%),
                radial-gradient(circle at 85% 30%, var(--bg-gradient-2), transparent 50%);
    z-index: -1;
    opacity: 0.8;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d48a1a);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 0 25px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(10, 7, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1001;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: -8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
}

.desktop-nav .nav-list {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--text-main);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }

/* ==========================================================================
   MOBILE MENU (Slide-in)
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(15, 10, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-list a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.glass-visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 90%;
    height: auto;
    border-radius: var(--radius);
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.ambient-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: 1;
    animation: pulseGlow 6s infinite alternate;
}

/* ==========================================================================
   GAME SECTION
   ========================================================================== */
.game-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.game-wrapper:hover {
    box-shadow: var(--glow-primary);
    border-color: rgba(245, 166, 35, 0.2);
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 100px 0 140px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--glow-secondary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.lg-icon {
    font-size: 4rem;
}

/* ==========================================================================
   PAGE CONTENT (About, Legal, Rules)
   ========================================================================== */
.page-content {
    padding: 150px 0 100px;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.content-card h2 {
    color: var(--text-main);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-card p, .content-card li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-card ul, .rules-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-card li {
    margin-bottom: 10px;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-success-msg {
    margin-top: 20px;
    padding: 15px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    color: var(--text-main);
    margin-bottom: 20px;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group a {
    color: var(--text-muted);
}

.link-group a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: #64748b;
    font-size: 0.9rem;
}