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

:root {
    /* Royal Lux Palette */
    --bg-primary: #140808;
    --bg-secondary: #1f0d0d;
    --surface: rgba(255, 255, 255, 0.04);
    
    --accent-primary: #dc2626;
    --accent-sec: #facc15;
    --accent-highlight: #fde047;
    
    --text-primary: #fff7ed;
    --text-secondary: #fde68a;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1320px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-highlight);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

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

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 1024px) {
    .container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-highlight); }
.text-red { color: var(--accent-primary); }

.section-spacing {
    padding: 110px 0;
}

@media (max-width: 1024px) {
    .section-spacing { padding: 80px 0; }
}

@media (max-width: 768px) {
    .section-spacing { padding: 60px 0; }
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(20, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.15);
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-sec);
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-sec);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-sec);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-sec);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #991b1b 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-sec) 0%, #ca8a04 100%);
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent-sec);
    border: 2px solid var(--accent-sec);
}

.btn-outline:hover {
    background: rgba(250, 204, 21, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(20, 8, 8, 0.8) 50%, rgba(20, 8, 8, 0.3) 100%);
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    align-items: center;
}

.hero-content {
    grid-column: span 6;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-legal {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.hero-visual {
    grid-column: 7 / -1;
    position: relative;
}

.hero-visual img {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(220, 38, 38, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* Game Section */
.game-section {
    background-color: var(--bg-primary);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: radial-gradient(circle, var(--accent-sec) 0%, transparent 70%);
    opacity: 0.3;
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.game-header {
    text-align: center;
    margin-bottom: 48px;
}

.game-header h2 {
    font-size: 2.5rem;
    color: var(--accent-highlight);
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(220, 38, 38, 0.15);
    transition: var(--transition-smooth);
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(250, 204, 21, 0.2);
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

/* Features / Legal Section */
.features-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid rgba(250, 204, 21, 0.1);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-sec), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-sec);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
    padding: 120px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--accent-sec);
    box-shadow: 0 0 10px var(--accent-sec);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.content-section {
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper h2 {
    margin-top: 32px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    padding-bottom: 8px;
}

.content-wrapper p {
    margin-bottom: 24px;
    color: #e5e5e5;
}

.content-wrapper ul {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #e5e5e5;
}

.content-wrapper li {
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-sec);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #0a0404;
    border-top: 1px solid rgba(250, 204, 21, 0.15);
    padding: 60px 0 30px;
}

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

.footer-brand .logo-container {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    opacity: 0.7;
    max-width: 400px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-sec);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
}

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

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

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-content { grid-column: span 12; text-align: center; margin-bottom: 48px; }
    .hero-actions { justify-content: center; }
    .hero-visual { grid-column: span 12; max-width: 600px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(20, 8, 8, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: var(--transition-smooth);
    }
    .nav-links.active { right: 0; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-desc { margin: 0 auto; }
    .content-wrapper { padding: 24px; }
    .page-header h1 { font-size: 2.5rem; }
}