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

:root {
    --bg-primary: #0b0b0f;
    --bg-secondary: #14141a;
    --surface-glass: rgba(255, 255, 255, 0.05);
    
    --accent-red: #ff3b3b;
    --accent-gold: #f5c542;
    --accent-deep-gold: #d4a017;
    --accent-orange: #ff8c42;
    
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow-gold: 0 0 20px rgba(245, 197, 66, 0.15);
    --shadow-glow-red: 0 0 30px rgba(255, 59, 59, 0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 59, 59, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(245, 197, 66, 0.03) 0%, transparent 50%);
}

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

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

ul {
    list-style: none;
}

/* Typography Utilities */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-deep-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 197, 66, 0.1);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-777 {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px rgba(245, 197, 66, 0.5);
}

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

.nav-link:hover {
    color: var(--accent-gold);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #cc2b2b);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
    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.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 59, 0.5);
}

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

.btn-secondary {
    background: rgba(245, 197, 66, 0.05);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    box-shadow: inset 0 0 10px rgba(245, 197, 66, 0.1);
}

.btn-secondary:hover {
    background: rgba(245, 197, 66, 0.15);
    transform: translateY(-2px);
    box-shadow: inset 0 0 15px rgba(245, 197, 66, 0.2), 0 5px 15px rgba(245, 197, 66, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: 
        radial-gradient(circle at center 30%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
        url('images/photo-1596838132731-3301c3fd4317.png') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,11,15,0.9) 0%, rgba(11,11,15,0.7) 50%, rgba(11,11,15,1) 100%);
    z-index: 1;
}

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

.hero-tagline {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Game Container */
.game-section {
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.game-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    border: 1px solid rgba(245, 197, 66, 0.15);
    box-shadow: var(--shadow-glow-gold), var(--shadow-soft);
    position: relative;
    max-width: 1000px;
    margin: -100px auto 0;
    z-index: 10;
    /* Removed backdrop-filter: blur(10px) — it caused iframe content 
       to disappear or flicker in some browsers (Chrome/Safari) when 
       interacting with the game. */
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.game-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--accent-gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
}

.iframe-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #000;
    /* Ensure the iframe container creates a stable stacking context
       so the game remains visible during interaction. */
    isolation: isolate;
    transform: translateZ(0);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Prevent iframe from being affected by parent animations/transforms */
    position: relative;
    z-index: 1;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--surface-glass);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(245, 197, 66, 0.2);
    box-shadow: var(--shadow-glow-gold);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.1), rgba(212, 160, 23, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 197, 66, 0.2);
    color: var(--accent-gold);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interior Pages Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Content Pages */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.content-section h2 {
    color: var(--accent-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

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

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.content-section li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

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

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

.form-group label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.1);
}

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

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 30px;
    margin-top: 50px;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-title {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-link:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.responsible-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    background: rgba(255,255,255,0.02);
}

.age-limit {
    font-weight: bold;
    color: var(--accent-red);
    font-size: 1.1rem;
}

/* Rules Page Specific */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.symbol-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(245, 197, 66, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.symbol-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.symbol-card h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-size: 1rem;
}

.symbol-card p {
    font-size: 0.85rem;
    margin: 0;
}