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

html {
    scroll-behavior: smooth;
}

ol, ul {
    padding-left: 20px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #f5f6fa;
}

/* Layout helpers */

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

.section {
    padding: 4rem 0;
}

.section-light {
    background-color: #ffffff;
}

.section h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: #102a43;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 2rem;
    color: #4b5a6b;
}

/* Header & navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #0b1f36;
    color: #e4ecf5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.9rem;
}

.logo-mark img {
    width: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #9fb3c8;
}

/* Navigation */

.site-nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #d9e2ec;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: rgba(148, 163, 184, 0.18);
    color: #ffffff;
}

.nav-cta {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #e5e7eb;
}

/* Hero */

.hero {
    padding-top: 3.5rem;
    background: radial-gradient(circle at top left, #e0f2fe, #f5f6fa 50%);
}

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

.hero h1 {
    font-size: clamp(2rem, 2.5vw + 1.2rem, 2.6rem);
    margin-bottom: 1rem;
    color: #102a43;
}

.hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #334e68;
}

.hero p {
    margin-bottom: 0.75rem;
}

.hero-list {
    margin: 0.75rem 0 1.25rem;
    list-style: none;
}

.hero-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: #3e4c59;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: #2563eb;
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-note {
    background-color: #0b1f36;
    color: #e4ecf5;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15,23,42,0.25);
}

.hero-note h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.hero-note p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.hero-disclaimer {
    font-size: 0.85rem;
    color: #cbd2e1;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: #f9fafb;
    box-shadow: 0 8px 16px rgba(37,99,235,0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37,99,235,0.35);
}

.btn-secondary {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #f3f4f6;
}

/* Grids */

.grid {
    display: grid;
    gap: 2rem;
}

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

/* Games */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 20px rgba(15,23,42,0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.game-card h3 {
    font-size: 1.25rem;
    color: #102a43;
}

.game-tagline {
    font-size: 0.95rem;
    color: #4b5a6b;
}

.game-block h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: #1f2933;
}

.game-block ul {
    padding-left: 1.1rem;
}

.game-block li {
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.info-note {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 0.92rem;
}

/* Auth CTA section on index */

.section-auth-cta {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.auth-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.auth-cta p {
    max-width: 580px;
    color: #4b5563;
}

.auth-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Forms & account */

.card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(15,23,42,0.06);
    border: 1px solid #e5e7eb;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

label {
    font-size: 0.9rem;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.checkbox input[type="checkbox"] {
    margin-top: 0.15rem;
}

.form-help {
    font-size: 0.82rem;
    color: #6b7280;
}

.form-message {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-message--success {
    color: #059669;
}

.form-message--info {
    color: #2563eb;
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.faq-item {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: #4b5563;
}

/* Responsible play */

.muted {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Footer */

.site-footer {
    background-color: #0b1f36;
    color: #d9e2ec;
    padding: 1.75rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-text p {
    font-size: 0.85rem;
    color: #cbd2e1;
}

.footer-meta {
    font-size: 0.8rem;
    color: #9fb3c8;
}

/* Auth pages */

.auth-body {
    background: radial-gradient(circle at top left, #e0f2fe, #f5f6fa 50%);
}

.auth-main {
    min-height: calc(100vh - 140px);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.auth-intro h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #102a43;
}

.auth-intro p {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.auth-intro ul {
    padding-left: 1.1rem;
    margin-top: 0.25rem;
}

.auth-intro li {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.auth-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.auth-switch {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    color: #4b5563;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
}

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

.logo-game {
    width: 100%;
}
.logo-game img {
    width: 100%;
}
.background {
    background: url(../img/hero.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;
}
.background.bg-2 {
    background-image: url('../img/background-2.jpg');
}
section .container {
    position: relative;
}
section {
    position: relative;
}
.logo-block {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.logo-block a {
    height: 60px;
    background: #fff2;
    border: 2px dashed #fff2;
    padding: 7px;
    border-radius: 5px;
}
.logo-block img {
    height: 100%;
}
.plus18 {
    background: #fff;
    color: #f33;
    font-size: 26px;
    font-weight: 900;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #f33;
    user-select: none;
}
.footer-text p {
    margin: 5px 0;
}
.footer-text a {
    color: #fff
}

/* Responsive */

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

    .hero-panel {
        justify-content: flex-start;
    }

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

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

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

@media (max-width: 768px) {
    .header-inner {
        align-items: center;
        padding: 10px 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #0b1f36;
        box-shadow: 0 8px 16px rgba(15,23,42,0.38);
        display: none;
    }

    .site-nav .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem 1rem;
    }

    .site-nav.nav-open {
        display: block;
    }

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

    .auth-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-inline: 0;
    }

    .logo-subtitle {
        display: none;
    }
}

/* Legal pages */

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

.legal-intro {
    margin-bottom: 1.75rem;
    color: #4b5563;
    font-size: 0.98rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.legal-section p {
    margin-bottom: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-section li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #374151;
}

.legal-callout {
    border-left: 4px solid #2563eb;
    background-color: #eff6ff;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #1f2937;
    margin: 1rem 0 2rem;
}

.legal-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2rem;
}
