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

:root {
    --color-bg: #020617;
    --color-bg-alt: #02091f;
    --color-surface: #020617;
    --color-card: #020818;
    --color-border: #1f2937;
    --color-accent: #22c55e;
    --color-accent-soft: rgba(34, 197, 94, 0.12);
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-heading: #f9fafb;
    --color-danger: #f97373;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 999px;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000000 100%);
    scroll-behavior: smooth;
}

body.page {
    margin: 0;
    min-height: 100vh;
    background: transparent;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.05), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.05), transparent 55%);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.section-intro {
    max-width: 620px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 1.5rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-heading);
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-heading);
    outline: none;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-small {
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
    border-color: rgba(34, 197, 94, 0.85);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 16px 45px rgba(22, 163, 74, 0.5);
}

.btn-ghost {
    color: var(--color-text);
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.6);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.9);
}

.btn-full {
    width: 100%;
}

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 3vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.hero-text p {
    color: var(--color-text-muted);
    margin: 0.5rem 0;
}

.hero-text .highlight {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--color-text);
    font-size: 0.95rem;
}

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.4rem;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(145deg, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-soft);
}

.hero-panel img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.hero-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.hero-list li {
    margin-bottom: 0.4rem;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.grid-two article {
    background: rgba(15, 23, 42, 0.75);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
}

.grid-two h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--color-heading);
}

.grid-two p,
.grid-two ul,
.grid-two ol {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.grid-two ul,
.grid-two ol {
    padding-left: 1.25rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

.game-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: var(--shadow-soft);
}

.game-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    color: var(--color-heading);
}

.game-tagline {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.game-card h4 {
    margin-bottom: 0.35rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.game-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.game-card ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.game-card ul li {
    margin-bottom: 0.2rem;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-list details {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.85rem 1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--color-heading);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list details[open] {
    border-color: rgba(34, 197, 94, 0.6);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 55%),
    rgba(15, 23, 42, 0.95);
}

.faq-list p {
    margin-top: 0.5rem;
    font-size: 0.93rem;
    color: var(--color-text-muted);
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-left: 3px solid rgba(148, 163, 184, 0.7);
    padding-left: 0.75rem;
}

.site-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.98));
}

.footer-inner {
    padding: 1.8rem 1.5rem 2.2rem;
    text-align: center;
}

.footer-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.page-auth {
    background: radial-gradient(circle at top, #020617 0, #000000 60%);
}

.auth-main {
    padding: 3.2rem 0 3.8rem;
}

.auth-container {
    max-width: 520px;
}

.form-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 22px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: var(--shadow-soft);
}

.form-card h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-heading);
}

.auth-intro {
    margin-top: 0;
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.form-row label {
    flex: 1 1 0;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.95);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.auth-form input:focus-visible {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
    background: rgba(15, 23, 42, 1);
}

.checkbox-label {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.checkbox-label input {
    margin-top: 0.25rem;
}

.register-message {
    min-height: 1.3rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0.2rem 0 0.6rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.register-message--visible {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-accent);
}

.auth-meta {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin: 0.4rem 0 0.7rem;
}

.auth-switch {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    margin: 0;
}

.auth-switch a {
    color: var(--color-accent);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.game-logo {
    width: 100%;
    height: 100%;
    max-height: 240px;
    display: flex;
    margin-bottom: 15px;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.background {
    background: url(../img/background.jpg);
    position: absolute;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.bg-2 {
    background-image: url(../img/background-2.jpg);
}

section {
    position: relative;
}

section .container {
    position: relative;
}

.logo-help {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.plus18 {
    background: #fff;
    color: #c00;
    font-size: 24px;
    font-weight: 900;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #c00;
    user-select: none;
}

.logo-help a {
    height: 60px;
    background: #fff1;
    border: 1px solid #fff1;
    padding: 8px;
    border-radius: 5px;
}

.logo-help img {
    height: 100%;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        order: -1;
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        padding-inline: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 3rem;
    }

    .grid-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-card {
        padding-inline: 1.3rem;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.mobile-toggle {
    display: none;
}

@media (max-width: 720px) {
    .main-nav {
        display: none;
        flex-direction: column;
        background: #0f172a;
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    .header-inner {
        gap: 15px;
        justify-content: center;
    }
}

.legal-page {
    max-width: 860px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 2.5rem;
}

.legal-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--color-accent, #22c55e);
    margin-bottom: 0.4rem;
}

.legal-header h1 {
    margin: 0;
    font-size: 2.1rem;
    color: var(--color-heading, #f9fafb);
}

.legal-intro {
    margin-top: 0.9rem;
    color: var(--color-text-muted, #9ca3af);
    max-width: 720px;
    font-size: 0.98rem;
}

.legal-section {
    margin-bottom: 2.2rem;
    padding: 1.5rem 1.4rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.legal-section h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-heading, #f9fafb);
}

.legal-section h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.45rem;
    color: var(--color-heading, #f9fafb);
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--color-text-muted, #9ca3af);
    margin: 0.4rem 0;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin: 0.35rem 0;
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.95rem;
}

.legal-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--color-text-muted, #9ca3af);
    border-left: 3px solid rgba(148, 163, 184, 0.7);
    padding-left: 0.75rem;
}

/* Cards & grids inside legal pages */

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0.7rem 0 0.3rem;
}

.legal-grid--resources {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 1rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
}

.legal-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted, #9ca3af);
}

.resource-list {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0.35rem 0;
}

.resource-list li {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.resource-list a {
    color: var(--color-accent, #22c55e);
    text-decoration: none;
    word-break: break-all;
}

.resource-list a:hover {
    text-decoration: underline;
}

.legal-back {
    margin-top: 1rem;
}

/* Mobile layout for legal grids */

@media (max-width: 720px) {
    .legal-grid,
    .legal-grid--resources {
        grid-template-columns: minmax(0, 1fr);
    }
}

