:root {
--primary: #a855f7;
--primary-glow: rgba(168, 85, 247, 0.4);
--secondary: #6366f1;
--accent: #f472b6;
--accent-glow: rgba(244, 114, 182, 0.3);
--bg-from: #1e1b4b;
--bg-via: #312e81;
--bg-to: #0f0a1a;
--card-bg: rgba(30, 27, 75, 0.6);
--card-border: rgba(168, 85, 247, 0.2);
--text-light: #f3f4f6;
--text-muted: #d1d5db;
}

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

body {
font-family: 'Nunito', system-ui, sans-serif;
background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
background-attachment: fixed;
color: var(--text-light);
line-height: 1.6;
overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

.id4h-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.id4h-age-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;
}

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

.id4h-age-content {
background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
padding: 48px 32px;
border-radius: 20px;
border: 2px solid var(--card-border);
box-shadow: 0 0 60px var(--primary-glow);
text-align: center;
max-width: 500px;
animation: id4h-modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes id4h-modalSlide {
from { opacity: 0; transform: translateY(-30px); }
to { opacity: 1; transform: translateY(0); }
}

.id4h-age-icon {
font-size: 80px;
margin-bottom: 24px;
}

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

.id4h-age-content p {
font-size: 18px;
margin-bottom: 32px;
color: var(--text-muted);
}

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

.id4h-btn {
padding: 14px 32px;
border: none;
border-radius: 16px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
font-family: 'Poppins', sans-serif;
}

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

.id4h-btn-primary:hover {
transform: scale(1.02);
box-shadow: 0 6px 30px var(--primary-glow);
}

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

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

.id4h-header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(30, 27, 75, 0.8);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--card-border);
}

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

.id4h-logo {
font-size: 24px;
font-weight: 700;
color: var(--primary);
display: flex;
align-items: center;
gap: 8px;
}

.id4h-nav-links {
display: flex;
gap: 32px;
align-items: center;
}

.id4h-nav-links a {
font-size: 16px;
color: var(--text-light);
transition: color 0.3s;
}

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

.id4h-age-badge {
background: linear-gradient(135deg, #dc2626, #b91c1c);
color: white;
padding: 6px 12px;
border-radius: 8px;
font-size: 14px;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 4px;
}

.id4h-hamburger {
display: none;
flex-direction: column;
gap: 4px;
cursor: pointer;
padding: 8px;
}

.id4h-hamburger span {
width: 24px;
height: 3px;
background: var(--primary);
border-radius: 2px;
transition: all 0.3s;
}

.id4h-mobile-menu {
display: none;
position: fixed;
top: 0;
right: -100%;
width: 280px;
height: 100vh;
background: rgba(30, 27, 75, 0.98);
backdrop-filter: blur(20px);
padding: 80px 24px 24px;
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 999;
border-left: 1px solid var(--card-border);
}

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

.id4h-mobile-menu a {
display: block;
padding: 16px;
font-size: 18px;
color: var(--text-light);
border-bottom: 1px solid var(--card-border);
}

.id4h-hero {
min-height: 100vh;
display: flex;
align-items: center;
padding: 100px 20px 80px;
position: relative;
overflow: hidden;
}

.id4h-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(168,85,247,0.1)"/></svg>');
background-size: 50px 50px;
opacity: 0.3;
}

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

.id4h-hero-badge {
display: inline-block;
margin-bottom: 24px;
}

.id4h-hero h1 {
font-size: clamp(36px, 6vw, 72px);
margin-bottom: 24px;
background: linear-gradient(135deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.id4h-hero p {
font-size: clamp(18px, 2.5vw, 24px);
margin-bottom: 40px;
color: var(--text-muted);
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

.id4h-hero-cta {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 24px;
}

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

.id4h-section {
padding: 100px 20px;
position: relative;
}

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

.id4h-section-header h2 {
font-size: clamp(32px, 4vw, 48px);
margin-bottom: 16px;
color: var(--primary);
}

.id4h-section-header p {
font-size: 18px;
color: var(--text-muted);
max-width: 600px;
margin: 0 auto;
}

.id4h-games-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 32px;
max-width: 1200px;
margin: 0 auto;
}

.id4h-game-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 0;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}

.id4h-game-card:hover {
transform: scale(1.02);
box-shadow: 0 8px 40px var(--primary-glow);
border-color: var(--primary);
}

.id4h-game-image-wrap {
width: 100%;
height: 200px;
overflow: hidden;
position: relative;
background: linear-gradient(135deg, var(--bg-via), var(--bg-to));
}

.id4h-game-image-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}

.id4h-game-card:hover .id4h-game-image-wrap img {
transform: scale(1.1);
}

.id4h-game-fallback {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--primary), var(--secondary));
font-size: 24px;
font-weight: 700;
color: white;
text-align: center;
padding: 20px;
}

.id4h-game-meta {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px 8px;
}

.id4h-game-category {
background: rgba(168, 85, 247, 0.2);
color: var(--primary);
padding: 4px 12px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
}

.id4h-game-card h3 {
padding: 0 20px 16px;
font-size: 20px;
color: var(--text-light);
}

.id4h-game-card button {
width: calc(100% - 40px);
margin: 0 20px 20px;
padding: 12px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}

.id4h-game-card button:hover {
box-shadow: 0 4px 20px var(--primary-glow);
}

.id4h-features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
max-width: 1200px;
margin: 0 auto;
}

.id4h-feature-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 32px;
text-align: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.id4h-feature-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 40px var(--primary-glow);
border-color: var(--primary);
}

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

.id4h-feature-card h3 {
font-size: 24px;
margin-bottom: 12px;
color: var(--primary);
}

.id4h-feature-card p {
color: var(--text-muted);
}

.id4h-cta-band {
background: linear-gradient(135deg, var(--primary), var(--secondary));
padding: 60px 20px;
text-align: center;
border-radius: 20px;
margin: 0 20px;
box-shadow: 0 8px 40px var(--primary-glow);
}

.id4h-cta-band h2 {
font-size: clamp(28px, 4vw, 42px);
margin-bottom: 16px;
color: white;
}

.id4h-cta-band p {
font-size: 18px;
margin-bottom: 32px;
color: rgba(255, 255, 255, 0.9);
}

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

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

.modal-content {
background: var(--bg-from);
border: 2px solid var(--card-border);
border-radius: 20px;
width: 100%;
max-width: 1200px;
height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 0 60px var(--primary-glow);
}

.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid var(--card-border);
background: rgba(30, 27, 75, 0.8);
}

.modal-header h2 {
font-size: 24px;
color: var(--primary);
margin: 0;
}

.close-btn {
background: none;
border: none;
color: var(--text-light);
font-size: 32px;
cursor: pointer;
padding: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
transition: all 0.3s;
}

.close-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--primary);
}

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

.demo-unavailable {
flex: 1;
display: none;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
}

.demo-unavailable p {
font-size: 24px;
color: var(--text-muted);
}

.id4h-trust-block {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 48px;
max-width: 900px;
margin: 0 auto;
text-align: center;
}

.id4h-trust-block h3 {
font-size: 32px;
margin-bottom: 24px;
color: var(--primary);
}

.id4h-trust-block ul {
list-style: none;
text-align: left;
max-width: 600px;
margin: 0 auto 24px;
}

.id4h-trust-block li {
padding: 12px 0;
padding-left: 32px;
position: relative;
color: var(--text-muted);
}

.id4h-trust-block li::before {
content: '✓';
position: absolute;
left: 0;
color: var(--primary);
font-weight: 700;
font-size: 18px;
}

.id4h-steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 24px;
max-width: 1200px;
margin: 0 auto;
}

.id4h-step-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 32px;
text-align: center;
position: relative;
}

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

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

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

.id4h-responsible {
background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 60px 40px;
max-width: 900px;
margin: 0 auto;
text-align: center;
}

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

.id4h-responsible h2 {
font-size: 36px;
margin-bottom: 24px;
color: var(--primary);
}

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

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

.id4h-faq {
max-width: 900px;
margin: 0 auto;
}

.id4h-faq-item {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 24px;
margin-bottom: 16px;
}

.id4h-faq-question {
font-size: 20px;
font-weight: 600;
margin-bottom: 12px;
color: var(--primary);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}

.id4h-faq-answer {
color: var(--text-muted);
line-height: 1.8;
}

.id4h-footer {
background: rgba(30, 27, 75, 0.9);
border-top: 1px solid var(--card-border);
padding: 60px 20px 30px;
margin-top: 100px;
text-align: center;
}

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

.id4h-footer-logo {
font-size: 32px;
font-weight: 700;
color: var(--primary);
margin-bottom: 24px;
}

.id4h-footer-age {
font-size: 64px;
margin: 32px 0;
}

.id4h-footer-disclaimer {
max-width: 700px;
margin: 0 auto 32px;
padding: 24px;
background: rgba(168, 85, 247, 0.1);
border: 1px solid var(--card-border);
border-radius: 16px;
color: var(--text-muted);
line-height: 1.8;
}

.id4h-footer-links {
display: flex;
gap: 24px;
justify-content: center;
margin-bottom: 32px;
flex-wrap: wrap;
}

.id4h-footer-links a {
color: var(--text-light);
transition: color 0.3s;
}

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

.id4h-footer-copy {
color: var(--text-muted);
font-size: 14px;
}

.id4h-page-header {
padding: 120px 20px 60px;
text-align: center;
}

.id4h-page-header h1 {
font-size: clamp(36px, 5vw, 56px);
margin-bottom: 16px;
color: var(--primary);
}

.id4h-page-content {
max-width: 900px;
margin: 0 auto;
padding: 0 20px 80px;
}

.id4h-page-content h2 {
font-size: 32px;
margin: 48px 0 24px;
color: var(--primary);
}

.id4h-page-content h3 {
font-size: 24px;
margin: 32px 0 16px;
color: var(--secondary);
}

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

.id4h-page-content ul {
margin: 16px 0 16px 32px;
color: var(--text-muted);
}

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

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

.id4h-filter-btn {
padding: 10px 24px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 12px;
color: var(--text-light);
cursor: pointer;
transition: all 0.3s;
font-size: 14px;
font-weight: 600;
}

.id4h-filter-btn:hover,
.id4h-filter-btn.id4h-active {
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-color: var(--primary);
box-shadow: 0 4px 20px var(--primary-glow);
}

.id4h-age-notice {
background: linear-gradient(135deg, #dc2626, #b91c1c);
padding: 16px;
text-align: center;
color: white;
font-weight: 600;
}

@media (max-width: 768px) {
.id4h-nav-links { display: none; }
.id4h-hamburger { display: flex; }
.id4h-mobile-menu { display: block; }
.id4h-hero { min-height: auto; padding: 80px 20px 60px; }
.id4h-section { padding: 60px 20px; }
.id4h-games-grid { grid-template-columns: 1fr; }
.id4h-features-grid { grid-template-columns: 1fr; }
.id4h-steps-grid { grid-template-columns: 1fr; }
.id4h-age-buttons { flex-direction: column; }
.modal-content { height: 95vh; }
.id4h-footer-links { flex-direction: column; }
}