/* Core layout */
:root {
    --bg-gradient-start: #020617;
    --bg-gradient-end: #0f172a;
    --accent-primary: #f97316;
    --accent-secondary: #22c55e;
    --accent-amber: #facc15;
    --accent-soft: rgba(148, 163, 184, 0.4);
    --card-bg: rgba(15, 23, 42, 0.85);
    --border-soft: rgb(1 255 212 / 35%);
    --text-muted-soft: #94a3b8;
}

html, body {
    background: radial-gradient(circle at top, var(--bg-gradient-start), var(--bg-gradient-end));
    color: #e5e7eb;
    font-family: "Tiktok Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-body {
    background: radial-gradient(circle at top, var(--bg-gradient-start), var(--bg-gradient-end));
}

/* Glass nav */
.glass-nav {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.navbar-brand {
    color: #e5e7eb;
}

.navbar-brand:hover {
    color: #ffffff;
}

.nav-link {
    color: #cbd5f5 !important;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
}

.nav-underline .nav-link {
    position: relative;
}

.btn.btn-outline-light {
    display: flex;
    align-items: center;
}

.nav-underline .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.25s ease;
}

.nav-underline .nav-link:hover::after,
.nav-underline .nav-link:focus::after {
    width: 100%;
}

/* Brand mark */
.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    position: relative;
    display: flex;
}
.brand-mark img {
    width: 100%;
}

/* Hero */
.hero-section {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 3rem;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.2), transparent 60%),
        radial-gradient(circle at bottom, rgba(94, 234, 212, 0.25), transparent 60%);
    opacity: 0.7;
    z-index: -2;
}

.floating-balls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ball {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #e5e7eb, #cbd5f5);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(148, 163, 184, 0.7);
    animation: float 14s ease-in-out infinite;
}

.btn.register-button {
    background: rgba(255, 255, 0, 0.1);
    border-color: #ff0;
}
.register-button:hover {
    background: rgba(255, 255, 0, 1);
    border-color: #ff0;
}

.form-control:focus {
    color: #fff
}
.form-control::placeholder {
    color: #888
}

.ball-lg { width: 90px; height: 90px; top: 18%; left: 70%; animation-delay: -2s; font-size: 36px }
.ball-md { width: 64px; height: 64px; top: 40%; left: 80%; animation-delay: -6s; font-size: 28px }
.ball-sm { width: 46px; height: 46px; top: 65%; left: 68%; animation-delay: -9s; }
.ball-alt {
    background: radial-gradient(circle at 30% 20%, #ffffff, #fee2e2, #fecaca);
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-12px, 10px, 0); }
    50% { transform: translate3d(8px, 18px, 0); }
    75% { transform: translate3d(-6px, -6px, 0); }
}

/* Utility spacing */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

/* Cards */
.glass-card {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.76));
    border-radius: 1.5rem;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 18px 45px rgb(1 255 212 / 5%),
        0 0 0 1px rgb(1 255 212 / 5%), 0 18px 45px rgb(1 255 212 / 5%) inset,
        0 0 0 1px rgb(1 255 212 / 5%) inset;
    backdrop-filter: blur(20px);
}

.hero-card {
    border-radius: 1.75rem;
}

.hero-panel {
    border-radius: 1.75rem;
}

.section-title {
    font-weight: 600;
    color: #f9fafb;
}

/* Dots & badges */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.dot-green { background: #22c55e; }
.dot-amber { background: #fbbf24; }
.dot-red { background: #f97316; }

.bg-soft-primary {
    background: rgba(59, 130, 246, 0.14) !important;
}

/* Mini grid */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mini-tile {
    border-radius: 1rem;
    padding: 0.6rem 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.mini-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.mini-value {
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* Background layer */
.bg-layer {
    position: relative;
}

.bg-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
    opacity: 0.9;
    z-index: -1;
}

/* Steps */
.step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.step-card {
    padding: 1.25rem;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Game cards */
.game-card {
    position: relative;
    padding: 1.5rem;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(248, 250, 252, 0.04);
    pointer-events: none;
}

.game-tag {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.game-tag-green {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
}

.game-tag-amber {
    background: rgba(251, 191, 36, 0.12);
    color: #fef3c7;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pill {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.75rem;
    color: #e5e7eb;
}

/* Detail cards */
.detail-card {
    border-radius: 1.5rem;
}

/* Accordion */
.accordion-item {
    background: transparent;
}

.accordion-button {
    background: transparent;
    color: #e5e7eb;
}

.accordion-button:not(.collapsed) {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(0.9);
}

.accordion-body {
    color: var(--text-muted-soft);
}

/* Footer */
.footer {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
}

.border-white-10 {
    border-color: rgba(248, 250, 252, 0.08) !important;
}

/* Auth pages */
.bg-auth {
    position: relative;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 60%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.3), transparent 60%);
    opacity: 0.9;
    z-index: -1;
}

.auth-card {
    border-radius: 1.75rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #fb923c);
    border: none;
    box-shadow: 0 12px 24px rgba(248, 113, 113, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #fb923c, var(--accent-primary));
}

.btn-outline-light {
    border-color: rgba(248, 250, 252, 0.7);
}

/* Forms */
.form-control,
.form-check-input {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.5);
}

.form-check-input:checked {
    background-color: #f97316;
    border-color: #f97316;
}

.age-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: "Tiktok Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.age-popup__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.age-popup__dialog {
    position: relative;
    max-width: 420px;
    width: 92%;
    padding: 2.25rem 2rem 2rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
    box-shadow:
            0 30px 80px rgba(15, 23, 42, 0.9),
            0 0 0 1px rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    text-align: center;
    overflow: hidden;
}

.age-popup__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #f97316, #fb923c, #22c55e);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.age-popup__badge {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fee2e2, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    color: #111827;
    box-shadow:
            0 20px 35px rgba(127, 29, 29, 0.75),
            0 0 0 6px rgba(15, 23, 42, 0.95);
}

.age-popup__title {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.age-popup__text {
    font-size: 0.95rem;
    color: #cbd5f5;
    margin-bottom: 0.75rem;
}

.age-popup__text--small {
    font-size: 0.8rem;
    color: #9ca3af;
}

.age-popup__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.age-btn {
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.age-btn--primary {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #111827;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.4);
}

.age-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(248, 113, 113, 0.5);
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.age-btn--ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.65);
}

.age-btn--ghost:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

body.age-locked {
    overflow: hidden;
}
footer .title {
    margin-bottom: 10px;
}
footer .nav-block a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 5px 0;
}
footer a:hover {
    color: #fff;
}
.help-logo {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0;
}
.help-logo a {
    height: 54px;
    background: radial-gradient(circle at top, #193033, #202d3b);
    padding: 7px;
    border: 1px solid #fff1;
    border-radius: 10px;
}
.help-logo img {
    height: 100%;
}
.age-warn {
    background: radial-gradient(circle at top, #193033, #202d3b);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #800;
    user-select: none;
}
.legal-shell {
    max-width: 1100px;
    margin: 100px auto 60px;
    padding: 32px 28px 36px;
    border-radius: 24px;
    background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
    color: #e5e7eb;
    box-shadow:
            0 30px 80px rgba(15, 23, 42, 0.85),
            0 0 0 1px rgba(15, 23, 42, 0.9);
    font-family: "Tiktok Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid #fff3;
}

@media (max-width: 768px) {
    .legal-shell {
        padding: 22px 18px 26px;
        margin: 80px auto 40px;
        border-radius: 18px;
    }
}

.legal-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}

.legal-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 4px;
}

.legal-subtitle {
    font-size: 0.95rem;
    color: #cbd5f5;
    margin-bottom: 14px;
}

.legal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 26px;
}

.legal-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 32px;
}

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

.legal-toc {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    padding: 16px 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.legal-toc-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: #cbd5f5;
}

.legal-toc a {
    color: inherit;
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
    color: #f9fafb;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.legal-content h2 {
    font-size: 1.1rem;
    margin: 1.4rem 0 0.4rem;
    font-weight: 600;
    color: #f9fafb;
}

.legal-content h3 {
    font-size: 0.98rem;
    margin: 1rem 0 0.35rem;
    font-weight: 600;
    color: #e5e7eb;
}

.legal-content p {
    margin-bottom: 0.75rem;
}

.legal-content ul {
    margin: 0 0 0.9rem 1.2rem;
    padding: 0;
}

.legal-content li {
    margin-bottom: 0.3rem;
}

.legal-section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 1.6rem;
    margin-bottom: 0.3rem;
}

.legal-section-heading span {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.9rem;
}

.legal-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.legal-shell .text-muted,
.legal-shell .small,
.legal-shell small {
    color: #cbd5f5 !important;
}



@media (max-width: 480px) {
    .age-popup__dialog {
        padding: 1.9rem 1.4rem 1.6rem;
    }
    .age-popup__badge {
        width: 80px;
        height: 80px;
        top: -26px;
        right: -26px;
        font-size: 1.2rem;
    }
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .floating-balls {
        opacity: 0.35;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero-card,
    .hero-panel {
        padding: 1.5rem !important;
    }

    .glass-card {
        border-radius: 1.25rem;
    }
}


/* === Readability & navbar alignment fixes === */

/* Make all base text lighter on the dark background */
body, p, li {
    color: #e5e7eb;
}

/* So that "muted" text is still clearly readable */
.text-muted {
    color: #cbd5f5 !important;
}

/* Small text also should be light */
.small, small {
    color: #e5e7eb;
}

/* Form labels and checkbox text on dark cards */
.form-label,
.form-check-label {
    color: #e5e7eb;
}

/* FAQ body text */
.accordion-body {
    color: #e5e7eb;
}

/* Navbar alignment for the Sign in button */
.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.badge {
    color: #619aef!important;
}

.game-logo {
    margin-bottom: 15px;
    filter: drop-shadow(0 0 1px #fff);
    max-height: 200px;
    object-fit: contain;
}

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

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: flex-start;
    }
}
