:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-hover: #21262d;
    --primary: #e63946;
    --primary-hover: #d62828;
    --text: #c9d1d9;
    --title: #ffffff;
    --border: #30363d;
    --radius: 12px;
    --transition: 0.3s ease;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-main); background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.alt-bg { background-color: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.center-text { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.center-cta { display: flex; justify-content: center; }

h1, h2, h3, h4 { color: var(--title); line-height: 1.2; margin-bottom: 15px; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin-bottom: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3); }
.btn-outline { background-color: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--title); }
.logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.desktop-nav { display: flex; gap: 20px; }
.desktop-nav a { font-weight: 500; font-size: 0.95rem; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.auth-buttons { display: flex; gap: 10px; }

/* Burger */
.burger-menu { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.burger-menu span { display: block; width: 25px; height: 3px; background-color: var(--title); border-radius: 2px; transition: var(--transition); }
.burger-menu.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { display: none; background-color: var(--surface); position: absolute; top: 70px; left: 0; width: 100%; padding: 20px; border-bottom: 1px solid var(--border); flex-direction: column; gap: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 1.1rem; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* Banner */
.banner-top img { width: 100%; height: auto; max-height: 120px; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--border); display: block; transition: opacity var(--transition); }
.banner-top a:hover img { opacity: 0.9; }

/* TOC */
.toc { margin-top: 40px; padding: 20px; background-color: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.toc-title { font-weight: 700; color: var(--title); margin-bottom: 10px; }
.toc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.toc-links a { background: var(--bg); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--border); }
.toc-links a:hover { border-color: var(--primary); color: var(--primary); }

/* Two Col Layout */
.two-col, .two-col-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: 40px; }
.hero-actions { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.hero-image img { box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 1px solid var(--border); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card { background: var(--bg); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.stat-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 5px; }
.stat-card p { color: var(--title); font-weight: 700; font-size: 1.2rem; margin: 0; }
.rating-card { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(230,57,70,0.1), transparent); border-color: var(--primary); }
.rating-score { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stars { color: #ffd700; font-size: 1.5rem; letter-spacing: 2px; }

/* Features list */
.feature-list li { margin-bottom: 15px; font-weight: 500; color: var(--title); display: flex; align-items: flex-start; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.step-card { background: var(--surface); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); position: relative; }
.step-number { position: absolute; top: -15px; left: 30px; width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; }
.step-card h3 { margin-top: 10px; }

/* Bonus Cards */
.bonus-cards { display: grid; gap: 20px; margin: 20px 0; }
.bonus-card { background: var(--bg); padding: 20px; border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; }
.bonus-card h4 { color: var(--primary); margin-bottom: 5px; }

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition); }
.game-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.game-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.game-card h3, .game-card p { padding: 0 20px; }
.game-card h3 { margin-top: 20px; }
.game-card p { margin-bottom: 20px; font-size: 0.95rem; }

/* Tables */
.table-responsive { overflow-x: auto; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); font-weight: 700; color: var(--title); }
tr:hover { background: var(--surface-hover); }
.table-note { font-size: 0.85rem; color: var(--text); opacity: 0.8; }

/* FAQ */
.faq-accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 15px; padding: 5px 20px; }
.faq-accordion summary { font-size: 1.1rem; font-weight: 600; color: var(--title); padding: 15px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; color: var(--primary); font-size: 1.5rem; }
.faq-accordion details[open] summary::after { content: '−'; }
.faq-accordion details p { padding-bottom: 15px; margin: 0; border-top: 1px solid var(--border); padding-top: 15px; }

/* CTA */
.cta { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('img/banner1.avif') center/cover; text-align: center; padding: 100px 20px; }
.cta h2 { font-size: 3rem; }
.cta p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; color: #fff; }

/* Footer */
.site-footer { background: var(--surface); padding: 60px 0 20px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 15px; font-size: 0.9rem; max-width: 300px; }
.footer-links h4 { color: var(--title); margin-bottom: 20px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 0.95rem; color: var(--text); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.85rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .burger-menu { display: flex; }
    .hero, .two-col, .two-col-inner { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .image-content { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .auth-buttons { margin-right: 15px; }
    .auth-buttons .btn { padding: 8px 16px; font-size: 0.9rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .header-inner { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 480px) {
    .auth-buttons { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--surface); padding: 15px; border-top: 1px solid var(--border); z-index: 1000; justify-content: stretch; box-shadow: 0 -5px 15px rgba(0,0,0,0.5); }
    .auth-buttons .btn { flex: 1; }
    body { padding-bottom: 70px; } /* Space for bottom sticky buttons */
    .burger-menu { margin-left: auto; }
}