/* Smart Game Index — Page-specific & game UI styles */

.header-actions { margin-left: 4px; flex-shrink: 0; }
.header-login { gap: 6px; white-space: nowrap; padding: 8px 12px; font-size: 0.8125rem; }

@media (max-width: 1200px) {
    .header-login { padding: 8px 10px; font-size: 0.75rem; }
}

@media (min-width: 769px) and (max-width: 960px) {
    .nav-link { padding: 8px 6px; font-size: 0.6875rem; }
    .header-login { padding: 8px 8px; font-size: 0.6875rem; }
    .logo-name { font-size: 0.8125rem; }
    .logo-mark svg { width: 28px; height: 28px; }
}

/* Hero variants */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%); }
.hero-layout, .hero-grid, .hero-inner, .grid-2 { display: grid; gap: 40px; align-items: center; }
.hero-layout, .hero-grid { grid-template-columns: 1fr 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-kicker { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.hero-tagline { color: var(--text-secondary); font-size: 1.0625rem; margin-bottom: 24px; }
.hero-ctas, .hero-actions, .hero-cta-row, .welcome-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-meta-text, .age-gate-note { font-size: 0.8125rem; color: var(--text-muted); }
.badge-18plus, .badge-18 { display: inline-flex; padding: 4px 10px; font-size: 0.6875rem; font-weight: 700; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(16,185,129,0.25); border-radius: var(--radius); }
.hero-figure, .hero-media-block { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); overflow: hidden; min-height: 220px; }
.hero-figure { margin: 0; }
.hero-img, .site-image { display: block; width: 100%; height: auto; max-width: 100%; vertical-align: middle; }
.hero-media-block .hero-img,
.hero-figure .hero-img { aspect-ratio: 800 / 520; object-fit: cover; object-position: center; background: var(--bg-primary); }
.hero-figure::after,
.hero-media-block::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(11,15,25,0.35) 0%, rgba(5,150,105,0.12) 100%); }
.partner-strip__logo { position: relative; overflow: hidden; border-radius: var(--radius); }
.partner-strip__logo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,15,25,0.5) 100%); pointer-events: none; }
.image-fallback { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 24px; background: var(--bg-surface); border: 1px dashed var(--border-light); border-radius: var(--radius); color: var(--text-muted); font-size: 0.8125rem; text-align: center; }
.partner-strip__logo img, .partner-logo { width: 200px; max-width: 100%; height: auto; min-height: 80px; aspect-ratio: 5 / 2; object-fit: cover; object-position: center; border-radius: var(--radius); border: 1px solid var(--border); display: block; background: var(--bg-primary); }
.hero-figure--flush { border: none; background: transparent; }
.hero-figure--flush .hero-img { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pseudo-logo { padding: 10px 20px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-primary); }
.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); margin-top: 24px; }
.partner-strip__logo { margin: 0; padding: 0; border: none; background: transparent; }
.section-figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); }
.section-figure .hero-img { width: 100%; height: auto; display: block; }

.section-padding { padding: 72px 0; }
.section-padding-tight { padding: 56px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--bg-secondary); }
.card--soft { background: var(--bg-elevated); }
.card--dark { background: var(--bg-surface); }
.card-header { margin-bottom: 20px; }
.card-title { font-size: 1.125rem; margin-bottom: 8px; }
.card-subtitle { font-size: 0.875rem; color: var(--text-secondary); }

.checklist li, .howto-list li, .howto-steps li, .downloads-list li { position: relative; padding: 8px 0 8px 20px; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }
.checklist li::before, .howto-list li::before, .howto-steps li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.howto-list, .howto-steps { counter-reset: step; list-style: none; padding: 0; }
.howto-list li, .howto-steps li { padding-left: 0; border-bottom: 1px solid var(--border); padding: 20px 0; }
.howto-list li::before, .howto-steps li::before { content: none; }
.howto-list h3, .howto-steps h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }

.icon-circle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; font-size: 0.875rem; font-weight: 700; color: var(--accent); background: var(--bg-primary); }
.feature-card h3 { font-size: 1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--text-secondary); }

/* Game panel */
.game-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); overflow: hidden; }
.game-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.game-panel-title { font-size: 1rem; font-weight: 600; }
.game-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.game-widget-layout { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1px; background: var(--border); }
.game-widget-layout > section { padding: 20px; background: var(--bg-elevated); }
.game-widget-heading { font-size: 0.8125rem; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.game-widget-text { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; }
.game-profile-stats div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.game-profile-stats dt { color: var(--text-muted); }
.game-profile-stats dd { font-weight: 600; color: var(--accent); }

.spinner-display { text-align: center; padding: 20px 0; }
.spinner-number { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.spinner-caption, .spinner-hint { font-size: 0.8125rem; color: var(--text-muted); margin-top: 12px; }
.spinner-button { margin-top: 12px; }
.live-feed { list-style: none; font-size: 0.75rem; color: var(--text-secondary); max-height: 120px; overflow-y: auto; }
.live-feed li { padding: 6px 0; border-bottom: 1px solid var(--border); }

.game-layout { display: grid; grid-template-columns: 220px 1fr 260px; gap: 16px; margin-top: 24px; }
.game-grid { display: contents; }
.game-sidebar h4, .game-core h4 { font-size: 0.875rem; margin-bottom: 12px; }
.profile-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-primary); }
.profile-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.avatar-circle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent-dark); color: #fff; font-weight: 700; font-size: 0.75rem; border-radius: var(--radius); }
.profile-name { font-weight: 600; font-size: 0.875rem; }
.profile-meta { font-size: 0.75rem; color: var(--text-muted); }
.profile-stats { font-size: 0.8125rem; }
.profile-stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.profile-stat-row dt { color: var(--text-muted); }
.profile-stat-row dd { font-weight: 600; color: var(--accent); }

.number-grid-title { font-size: 0.875rem; margin-bottom: 8px; }
.number-grid-help { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; }
.number-buttons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.number-btn { padding: 10px 4px; font-family: var(--font); font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.number-btn:hover { border-color: var(--accent); color: var(--accent); }
.number-btn--selected { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.spinner-panel { padding: 20px; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.spinner-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.spinner-numbers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.spinner-slot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--accent); }
.spinner-multiplier { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.spinner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.spinner-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

.results-list { list-style: none; max-height: 320px; overflow-y: auto; }
.results-empty { font-size: 0.8125rem; color: var(--text-muted); padding: 12px 0; }
.result-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.result-header { display: flex; justify-content: space-between; color: var(--text-muted); margin-bottom: 8px; }
.result-numbers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.result-number { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--accent-glow); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-sm); font-weight: 600; font-size: 0.75rem; color: var(--accent); }
.result-footer { display: flex; gap: 16px; color: var(--text-secondary); }
.results-link, .btn-profile-link, .btn-feed-link, .btn-more-link, .download-link { font-size: 0.8125rem; font-weight: 600; color: var(--accent); display: inline-block; margin-top: 12px; }


.downloads-list { list-style: none; padding: 0; }
.downloads-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.downloads-list li::before { content: none; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.9375rem; color: var(--text-secondary); }

/* Footer extended */
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-nav a:hover { color: var(--accent); }
.footer-responsible { padding: 40px 0; border-bottom: 1px solid var(--border); }
.footer-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.footer-subheading { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; max-width: 560px; }

/* Cookie & Age gate */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 20px 0; transform: translateY(100%); transition: transform 250ms ease; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner:not([hidden]) { display: block; }
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-title { font-size: 1rem; margin-bottom: 8px; }
.cookie-text { font-size: 0.8125rem; color: var(--text-secondary); max-width: 640px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.age-gate-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: all 250ms ease; }
.age-gate-overlay.show, .age-gate-overlay.is-visible, .age-gate-overlay.age-modal { opacity: 1; visibility: visible; }
.age-gate-modal { width: 100%; max-width: 440px; padding: 40px 32px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.age-gate-icon { font-size: 2.5rem; margin-bottom: 16px; }
.age-gate-title { font-size: 1.5rem; margin-bottom: 12px; }
.age-gate-text { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.age-gate-warning { font-size: 0.8125rem; color: var(--warning); margin-bottom: 24px; padding: 10px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--radius); }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.age-gate-legal { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* Results page */
.live-results-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 24px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.input, .form-select { width: 100%; padding: 10px 12px; font-family: var(--font); font-size: 0.875rem; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.results-table th, .results-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.results-table th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); background: var(--bg-surface); }

/* Legal sidebar */
.privacy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.privacy-toc a { display: block; padding: 8px 0; font-size: 0.8125rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.privacy-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.privacy-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.privacy-section p, .privacy-section li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.privacy-section ul { padding-left: 20px; list-style: disc; }

.status-dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.game-status { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; }

@media (max-width: 1024px) {
    .hero-layout, .hero-grid, .grid-2, .grid-3, .game-widget-layout, .game-layout, .footer-top, .footer-help-grid, .privacy-layout, .live-results-layout { grid-template-columns: 1fr; }
    .number-buttons { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .header-actions { display: none; }
    .main-nav.is-open .header-actions { display: block; margin-top: 12px; }
}
