:root {
    --bg: #0e1117;
    --surface: #161b22;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #7cb342;
    --accent-dim: #5a8f2a;
    --card: #1a1f26;
    --border: #30363d;
    --danger: #f85149;
    font-family: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.site-header {
    padding: 1rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.site-header .brand {
    display: inline-block;
    margin: 0;
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
}

.site-header .tagline {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem);
}

.hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.hero-games-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.hero-game-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto 1.25rem;
    padding: 0.65rem 1.1rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hero-game-badge:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 44px rgba(124, 179, 66, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-game-icon {
    display: block;
    width: clamp(4.25rem, 16vw, 7rem);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero-game-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-seo h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-lead {
    color: var(--muted);
    max-width: 40rem;
    margin: 0 auto 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.hero h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.hero p {
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto;
}

.content-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.content-section h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
}

.section-kicker,
.section-body {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 40rem;
    margin: 0 0 1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.cta-row-hero {
    margin-top: 1.25rem;
}

.cta-row-tight {
    justify-content: flex-start;
    margin-top: 0.75rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
}

.cta-btn:hover {
    background: var(--card);
    color: #fff;
    text-decoration: none;
    border-color: var(--accent);
}

.cta-btn.cta-primary {
    background: var(--accent);
    color: #0d1117;
    border-color: var(--accent);
}

.cta-btn.cta-primary:hover {
    background: var(--accent-dim);
    color: #fff;
}

.cta-link {
    font-size: 0.8rem;
    font-weight: 600;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.category-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.muted {
    color: var(--muted);
}

.badge-muted {
    background: rgba(139, 148, 158, 0.2) !important;
    color: var(--muted) !important;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.game-card-art {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.game-card-art img {
    width: 2.85rem;
    height: auto;
    display: block;
}

.game-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.game-card p,
.game-card .game-desc {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    flex: 1;
    margin: 0 0 0.75rem;
}

.game-card .play-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #0d1117;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
}
.game-card .play-btn:hover {
    background: var(--accent-dim);
    color: #fff;
    text-decoration: none;
}

.game-card.coming-soon {
    opacity: 0.65;
    border-style: dashed;
}

.game-card.coming-soon .play-btn,
.play-btn-disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(124, 179, 66, 0.2);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.feedback-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.feedback-section h2 {
    margin-top: 0;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-form button[type="submit"] {
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: #0d1117;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.feedback-form button[type="submit"]:hover {
    background: var(--accent-dim);
    color: #fff;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

/* Honeypot for FormSubmit spam bots — leave empty */
.feedback-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem clamp(1rem, 4vw, 2rem);
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer h3 {
    color: var(--text);
    font-size: 0.95rem;
    margin: 1.25rem 0 0.5rem;
}

.site-footer h3:first-child {
    margin-top: 0;
}

.site-footer ul {
    margin: 0;
    padding-left: 1.2rem;
}

.disclaimer-fiction {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    background: rgba(139, 148, 158, 0.08);
    border-left: 3px solid var(--border);
    border-radius: 0 8px 8px 0;
    max-width: 42rem;
}

.legal-box {
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.25);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-top: 1rem;
    color: var(--text);
}
