/* Reset & Variables */
:root {
--primary: #8b5cf6;
--primary-glow: rgba(139, 92, 246, 0.5);
--secondary: #7c3aed;
--accent: #c4b5fd;
--accent-glow: rgba(196, 181, 253, 0.3);
--bg-start: #0d0221;
--bg-mid: #1e0a3a;
--bg-end: #080114;
--card-bg: rgba(30, 10, 58, 0.7);
--card-border: rgba(139, 92, 246, 0.25);
--text-light: #ffffff;
--text-muted: #c4b5fd;
--radius: 14px;
--transition: 0.2s ease-in-out;
}

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

body {
font-family: 'Nunito', system-ui, sans-serif;
font-weight: 400;
background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
background-attachment: fixed;
color: var(--text-light);
line-height: 1.6;
position: relative;
overflow-x: hidden;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: 
linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
pointer-events: none;
z-index: 0;
}

body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
font-family: 'Poppins', system-ui, sans-serif;
font-weight: 600;
line-height: 1.2;
}

a {color: inherit; text-decoration: none;}
img {max-width: 100%; display: block;}
button {cursor: pointer; border: none; font-family: inherit;}

.age-badge {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #dc2626, #b91c1c);
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Age Modal */
.age-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
display: none;
align-items: center;
justify-content: center;
z-index: 10000;
}

.age-modal-overlay.active {display: flex;}

.age-modal-box {
background: var(--card-bg);
border: 2px solid var(--card-border);
border-radius: var(--radius);
padding: 40px;
max-width: 500px;
text-align: center;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
position: relative;
}

.age-modal-icon {
font-size: 80px;
margin-bottom: 20px;
}

.age-modal-box h2 {
font-size: 28px;
margin-bottom: 16px;
color: var(--primary);
}

.age-modal-box p {
margin-bottom: 30px;
color: var(--text-muted);
font-size: 16px;
}

.age-modal-buttons {
display: flex;
gap: 16px;
justify-content: center;
}

.age-modal-buttons button {
padding: 14px 32px;
border-radius: var(--radius);
font-weight: 600;
font-size: 16px;
transition: var(--transition);
}

.age-modal-buttons .confirm {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
}

.age-modal-buttons .confirm:hover {
transform: scale(1.01);
box-shadow: 0 8px 24px var(--primary-glow);
}

.age-modal-buttons .exit {
background: rgba(255, 255, 255, 0.1);
color: white;
}

.age-modal-buttons .exit:hover {
background: rgba(255, 255, 255, 0.15);
}

/* Header */
.header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(13, 2, 33, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--card-border);
}

.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo-link {
display: flex;
align-items: center;
gap: 12px;
font-size: 24px;
font-weight: 600;
font-family: 'Poppins', sans-serif;
color: var(--primary);
}

.logo-icon {
font-size: 32px;
}

.nav-desktop {
display: none;
}

.nav-desktop ul {
display: flex;
gap: 32px;
list-style: none;
align-items: center;
}

.nav-desktop a {
transition: var(--transition);
font-weight: 500;
}

.nav-desktop a:hover {
color: var(--accent);
}

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

.mobile-menu-btn {
display: flex;
flex-direction: column;
gap: 5px;
background: transparent;
padding: 8px;
}

.mobile-menu-btn span {
width: 25px;
height: 3px;
background: var(--primary);
border-radius: 2px;
transition: var(--transition);
}

.mobile-menu {
position: fixed;
top: 0;
right: -100%;
width: 280px;
height: 100vh;
background: rgba(13, 2, 33, 0.98);
backdrop-filter: blur(12px);
padding: 80px 24px 24px;
transition: right 0.3s ease-in-out;
z-index: 999;
border-left: 1px solid var(--card-border);
}

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

.mobile-menu ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 24px;
}

.mobile-menu a {
font-size: 18px;
font-weight: 500;
transition: var(--transition);
display: block;
}

.mobile-menu a:hover {
color: var(--accent);
transform: translateX(4px);
}

.mobile-menu-close {
position: absolute;
top: 20px;
right: 20px;
background: transparent;
color: var(--primary);
font-size: 32px;
line-height: 1;
}

/* Hero */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 80px 24px;
background-size: cover;
background-position: center;
background-attachment: fixed;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(13, 2, 33, 0.9) 0%, rgba(30, 10, 58, 0.85) 100%);
}

.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
}

.hero-badge {
margin-bottom: 24px;
}

.hero h1 {
font-size: 48px;
margin-bottom: 20px;
background: linear-gradient(135deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero p {
font-size: 20px;
color: var(--text-muted);
margin-bottom: 32px;
}

.hero-buttons {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 20px;
}

.btn {
padding: 14px 32px;
border-radius: var(--radius);
font-weight: 600;
font-size: 16px;
transition: var(--transition);
display: inline-block;
}

.btn-primary {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
transform: scale(1.01);
box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid var(--card-border);
}

.btn-secondary:hover {
background: rgba(255, 255, 255, 0.15);
transform: scale(1.01);
}

.hero-disclaimer {
font-size: 14px;
color: var(--text-muted);
opacity: 0.8;
}

/* Section Base */
.section {
padding: 70px 24px;
position: relative;
}

.section-container {
max-width: 1200px;
margin: 0 auto;
}

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

.section-header h2 {
font-size: 36px;
margin-bottom: 16px;
display: inline-flex;
align-items: center;
gap: 12px;
}

.section-header p {
color: var(--text-muted);
font-size: 18px;
}

/* Games Grid */
.games-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 24px;
}

[data-game-card] {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
overflow: hidden;
transition: var(--transition);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
}

[data-game-card]:hover {
transform: scale(1.01);
box-shadow: 0 8px 32px var(--primary-glow);
border-color: var(--primary);
}

[data-game-image-wrap] {
position: relative;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
background: linear-gradient(135deg, var(--bg-mid), var(--bg-end));
}

[data-game-image] {
width: 100%;
height: 100%;
object-fit: cover;
}

[data-game-image-fallback] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
font-weight: 600;
padding: 16px;
text-align: center;
font-size: 18px;
}

[data-game-meta] {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.3);
}

[data-game-category] {
font-size: 12px;
text-transform: uppercase;
color: var(--accent);
font-weight: 600;
}

[data-game-title] {
padding: 16px;
font-size: 18px;
font-weight: 600;
color: var(--text-light);
}

[data-play-demo] {
margin: 0 16px 16px;
width: calc(100% - 32px);
padding: 12px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border-radius: var(--radius);
font-weight: 600;
transition: var(--transition);
}

[data-play-demo]:hover {
transform: scale(1.01);
box-shadow: 0 4px 16px var(--primary-glow);
}

/* Game Modal */
.game-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
z-index: 9999;
align-items: center;
justify-content: center;
padding: 20px;
}

.game-modal.active {
display: flex;
}

.modal-content {
background: var(--bg-start);
border: 2px solid var(--card-border);
border-radius: var(--radius);
width: 100%;
max-width: 1200px;
height: 90vh;
display: flex;
flex-direction: column;
}

.modal-header {
display: flex;
align-items: center;
gap: 16px;
padding: 20px;
border-bottom: 1px solid var(--card-border);
}

.modal-header h2 {
flex: 1;
font-size: 20px;
}

.close-btn {
background: transparent;
color: var(--primary);
font-size: 32px;
line-height: 1;
padding: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

.close-btn:hover {
color: var(--accent);
transform: scale(1.1);
}

#game-iframe {
flex: 1;
width: 100%;
border: none;
}

.demo-unavailable {
flex: 1;
display: none;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--text-muted);
}

/* CTA Band */
.cta-band {
background: linear-gradient(135deg, var(--primary), var(--secondary));
text-align: center;
padding: 50px 24px;
position: relative;
overflow: hidden;
}

.cta-band::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 0.3; }
50% { transform: scale(1.1); opacity: 0.6; }
}

.cta-band-content {
position: relative;
z-index: 1;
max-width: 700px;
margin: 0 auto;
}

.cta-band h2 {
font-size: 32px;
margin-bottom: 16px;
}

.cta-band p {
font-size: 18px;
margin-bottom: 24px;
opacity: 0.9;
}

/* How It Works */
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
}

.step-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 32px;
text-align: center;
transition: var(--transition);
backdrop-filter: blur(8px);
}

.step-card:hover {
transform: scale(1.01);
border-color: var(--primary);
}

.step-icon {
font-size: 48px;
margin-bottom: 16px;
}

.step-card h3 {
font-size: 20px;
margin-bottom: 12px;
color: var(--primary);
}

.step-card p {
color: var(--text-muted);
font-size: 15px;
}

/* Why Choose Us - Bento Grid */
.bento-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}

.feature-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 32px;
transition: var(--transition);
backdrop-filter: blur(8px);
}

.feature-card:hover {
transform: scale(1.01);
border-color: var(--primary);
box-shadow: 0 8px 32px var(--primary-glow);
}

.feature-icon {
font-size: 40px;
margin-bottom: 16px;
}

.feature-card h3 {
font-size: 20px;
margin-bottom: 12px;
color: var(--accent);
}

.feature-card p {
color: var(--text-muted);
font-size: 15px;
}

/* Trust Block */
.trust-block {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 40px;
max-width: 800px;
margin: 0 auto;
backdrop-filter: blur(8px);
}

.trust-block h3 {
font-size: 24px;
margin-bottom: 20px;
color: var(--primary);
text-align: center;
}

.trust-block ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 16px;
}

.trust-block li {
display: flex;
align-items: start;
gap: 12px;
color: var(--text-muted);
}

.trust-block li::before {
content: '✓';
color: var(--primary);
font-size: 20px;
font-weight: bold;
flex-shrink: 0;
}

.trust-disclaimer {
text-align: center;
margin-top: 20px;
font-size: 14px;
color: var(--text-muted);
}

/* Responsible Section */
.responsible {
text-align: center;
background: var(--card-bg);
border: 2px solid var(--card-border);
border-radius: var(--radius);
padding: 50px 24px;
max-width: 900px;
margin: 0 auto;
backdrop-filter: blur(8px);
}

.responsible-icon {
font-size: 80px;
margin-bottom: 20px;
}

.responsible h2 {
font-size: 32px;
margin-bottom: 16px;
color: var(--primary);
}

.responsible p {
font-size: 18px;
color: var(--text-muted);
margin-bottom: 24px;
line-height: 1.8;
}

.responsible-links {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}

.responsible-links a {
color: var(--accent);
text-decoration: underline;
transition: var(--transition);
}

.responsible-links a:hover {
color: var(--primary);
}

/* FAQ */
.faq-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 20px;
}

.faq-item {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 24px;
backdrop-filter: blur(8px);
}

.faq-item h3 {
font-size: 18px;
margin-bottom: 12px;
color: var(--primary);
}

.faq-item p {
color: var(--text-muted);
font-size: 15px;
line-height: 1.7;
}

/* Footer */
.footer {
background: rgba(13, 2, 33, 0.95);
border-top: 2px solid var(--card-border);
padding: 50px 24px 30px;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
}

.footer-top {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}

.footer-brand {
display: flex;
flex-direction: column;
gap: 16px;
}

.footer-logo {
display: flex;
align-items: center;
gap: 12px;
font-size: 24px;
font-weight: 600;
font-family: 'Poppins', sans-serif;
color: var(--primary);
}

.footer-logo-icon {
font-size: 32px;
}

.footer-disclaimer {
background: rgba(220, 38, 38, 0.1);
border: 1px solid rgba(220, 38, 38, 0.3);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 30px;
}

.footer-disclaimer h4 {
color: #dc2626;
margin-bottom: 12px;
font-size: 18px;
display: flex;
align-items: center;
gap: 8px;
}

.footer-disclaimer p {
color: var(--text-muted);
font-size: 14px;
line-height: 1.7;
}

.footer-links h4 {
margin-bottom: 16px;
font-size: 18px;
color: var(--accent);
}

.footer-links ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
}

.footer-links a {
color: var(--text-muted);
transition: var(--transition);
font-size: 15px;
}

.footer-links a:hover {
color: var(--primary);
}

.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid var(--card-border);
color: var(--text-muted);
font-size: 14px;
}

/* Games Page */
.page-header {
text-align: center;
padding: 100px 24px 40px;
}

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

.age-reminder {
background: rgba(220, 38, 38, 0.1);
border: 1px solid rgba(220, 38, 38, 0.3);
border-radius: var(--radius);
padding: 16px;
text-align: center;
max-width: 800px;
margin: 0 auto 40px;
}

.filter-buttons {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 40px;
}

.filter-btn {
padding: 10px 20px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--card-border);
border-radius: 20px;
color: var(--text-light);
font-weight: 500;
transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-color: var(--primary);
}

/* Content Page */
.content-page {
max-width: 900px;
margin: 0 auto;
padding: 100px 24px 60px;
}

.content-page h1 {
font-size: 38px;
margin-bottom: 24px;
color: var(--primary);
}

.content-page h2 {
font-size: 26px;
margin-top: 32px;
margin-bottom: 16px;
color: var(--accent);
}

.content-page p {
margin-bottom: 16px;
color: var(--text-muted);
line-height: 1.8;
}

.content-page ul, .content-page ol {
margin-bottom: 16px;
margin-left: 24px;
color: var(--text-muted);
}

.content-page li {
margin-bottom: 8px;
line-height: 1.7;
}

/* Responsive */
@media (min-width: 768px) {
.nav-desktop { display: block; }
.mobile-menu-btn { display: none; }
.hero h1 { font-size: 64px; }
.faq-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
.hero h1 { font-size: 36px; }
.hero p { font-size: 16px; }
.section-header h2 { font-size: 28px; }
.cta-band h2 { font-size: 26px; }
.faq-grid { grid-template-columns: 1fr; }
}