@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=Sora:wght@400;600;700&display=swap');

:root {
    /* Backgrounds */
    --bg-primary: #09060f;
    --bg-secondary: #140d1f;
    --bg-section: #1e1530;
    
    /* Glass Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(22px);
    
    /* Accents */
    --fire-start: #ff5f1f;
    --fire-end: #ffb703;
    --fire-glow: rgba(255, 95, 31, 0.45);
    
    --emerald-start: #10b981;
    --emerald-end: #34d399;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    
    --arcane-start: #7c3aed;
    --arcane-end: #c084fc;
    --arcane-glow: rgba(124, 58, 237, 0.35);
    
    --premium-blend: linear-gradient(135deg, #ff5f1f, #7c3aed);
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #d1d5db;
    --text-muted: #94a3b8;
    
    --font-heading: 'Cinzel', serif;
    --font-subheading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1360px;
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 95, 31, 0.05), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #ffb703);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--fire-glow);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-gradient-fire {
    background: linear-gradient(135deg, var(--fire-start), var(--fire-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-arcane {
    background: linear-gradient(135deg, var(--arcane-start), var(--arcane-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-desktop) 0;
    position: relative;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-subheading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--fire-start), var(--fire-end));
    color: #000;
    box-shadow: 0 0 20px var(--fire-glow);
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--fire-glow);
}

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

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

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px var(--arcane-glow);
    transform: translateY(-3px);
}

/* Floating Navigation - Right Dock (Desktop) */
.dragon-dock {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.dragon-dock::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 42px;
    background: linear-gradient(180deg, var(--fire-start), transparent, var(--arcane-end));
    z-index: -1;
    opacity: 0.3;
    animation: borderPulse 4s infinite alternate;
}

.dock-logo {
    width: 60px;
    height: 60px;
    background: var(--premium-blend);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px var(--arcane-glow);
    animation: float 4s ease-in-out infinite;
}

.dock-logo img {
    width: 35px;
    height: 35px;
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s ease;
}

.dock-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.dock-item:hover {
    color: #fff;
    background: var(--glass-bg-hover);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--fire-glow);
}

.dock-item.active {
    background: linear-gradient(135deg, var(--fire-start), var(--fire-end));
    color: #000;
    box-shadow: 0 0 20px var(--fire-glow);
}

.dock-label {
    position: absolute;
    right: 70px;
    background: var(--bg-section);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dock-item:hover .dock-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/photo-1605806616949-1e87b487cb2a.png') center/cover no-repeat;
    z-index: 0;
    filter: brightness(0.4) contrast(1.2);
    transform: scale(1.05);
    animation: subtleZoom 20s linear infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(9,6,15,0.2) 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
    display: inline-block;
}

/* Embers Animation */
.embers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.ember {
    position: absolute;
    bottom: -10px;
    width: 4px; height: 4px;
    background: #ff5f1f;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px #ffb703;
    animation: flyUp linear infinite;
}

/* Game Showcase Section */
.game-showcase {
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.game-wrapper {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255, 95, 31, 0.1);
    position: relative;
    border: 1px solid var(--glass-border);
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(45deg, var(--fire-start), transparent, var(--arcane-end));
    z-index: -1;
    opacity: 0.5;
    animation: borderPulse 3s infinite alternate;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.game-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.game-btn:hover {
    background: var(--fire-glow);
    transform: scale(1.1);
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #000;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Glass Cards / Features */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.card-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(255,95,31,0.1), rgba(124,58,237,0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--fire-start);
}

/* Image Grids */
.image-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    group: hover;
}

.image-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.image-showcase:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

/* Rewards Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.dash-sidebar {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

.player-profile {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.avatar-ring {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--fire-start), var(--arcane-end), var(--fire-start));
    padding: 3px;
    margin: 0 auto 1rem;
    animation: spin 4s linear infinite;
}

.avatar-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fire-start), var(--fire-end));
    width: 75%;
    box-shadow: 0 0 10px var(--fire-glow);
}

.dash-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Legal Pages Typography */
.legal-content {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 4rem;
    border: 1px solid var(--glass-border);
    max-width: 1000px;
    margin: 0 auto;
}

.legal-content h2 { margin-top: 3rem; font-size: 2rem; }
.legal-content h3 { margin-top: 2rem; color: var(--text-primary); }
.legal-content p { margin-bottom: 1.5rem; color: var(--text-secondary); }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; }

.legal-box {
    background: rgba(255, 95, 31, 0.05);
    border-left: 4px solid var(--fire-start);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--fire-end);
    padding-left: 5px;
}

.footer-disclaimer {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.company-info {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes borderPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes flyUp {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    
    .dragon-dock {
        right: 1rem;
        padding: 1.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .section { padding: var(--space-mobile) 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .dash-main { grid-template-columns: 1fr; }
    
    .hero-buttons { flex-direction: column; gap: 1rem; }
    
    .legal-content { padding: 2rem; }
    
    /* Mobile Bottom Dock Navigation */
    .dragon-dock {
        position: fixed;
        right: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: 90%;
        justify-content: space-around;
        padding: 0.75rem;
        border-radius: 20px;
    }
    
    .dragon-dock::before { border-radius: 22px; }
    .dock-logo { display: none; } /* Hide logo in mobile dock to save space */
    .dock-label { display: none; } /* No tooltips on mobile */
    .dock-item { width: 40px; height: 40px; }
}