:root {
    --main-background: #000000;
    --main-text: #f8fafc;
    --accent-orange: #FF8C00;
    --accent-purple: #6A0DAD;
    --secondary-background: #1a1a1a;
    --secondary-text: #94a3b8;
    --font-family: 'Montserrat', sans-serif;
    --base-size: 16px;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--main-background);
    color: var(--main-text);
    font-family: var(--font-family);
    font-size: var(--base-size);
    line-height: 1.6;
    overflow-x: hidden;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.age-verification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-verification-modal {
    background-color: var(--secondary-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-purple);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.age-verification-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.age-verification-buttons button {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 120px;
}

.js-age-yes {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-orange));
    color: #fff;
}

.js-age-no {
    background-color: transparent;
    border: 1px solid var(--secondary-text);
    color: var(--secondary-text);
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-background);
    border-top: 2px solid var(--accent-orange);
    padding: 20px;
    z-index: 9998;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.cookie-consent-actions button {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.js-cookie-accept {
    background-color: var(--accent-orange);
    color: #000;
}

.js-cookie-reject {
    background-color: transparent;
    border: 1px solid var(--secondary-text);
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    body {
        font-size: 14px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-actions button {
        width: 100%;
    }

    .age-verification-buttons {
        flex-direction: column;
    }
}

/* ===== site_header ===== */
#header {
    position: relative;
    z-index: 9999;
}

.site-brand {
    gap: 12px;
    min-width: 0;
    color: var(--main-text);
}

.site-brand-logo {
    width: 60px;
    max-width: 60px;
    height: auto;
    flex: 0 0 auto;
}

.site-brand-name {
    color: var(--main-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.section-logo {
    display: block;
    width: 70px;
    max-width: 70px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.section-logo-sm {
    width: 60px;
    max-width: 60px;
}

.js-nav-link:hover {
    color: var(--accent-orange) !important;
}

.js-mobile-menu.is-open {
    max-height: 400px !important;
}

.btn:active {
    transform: scale(0.96);
}

@media (max-width: 767px) {
    .site-brand {
        gap: 9px;
    }

    .site-brand-logo {
        width: 48px;
        max-width: 48px;
    }

    .site-brand-name {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 380px) {
    .site-brand-name {
        white-space: normal;
        max-width: 120px;
    }
}

/* ===== game_hub ===== */
#games-hub h2 {
    font-size: 1.5rem
}

#games-hub h3 {
    font-size: 1.1rem
}

#games-hub .js-game-card {
    transition: transform .3s ease, box-shadow .3s ease
}

#games-hub .js-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(106, 13, 173, 0.3)
}

#games-hub .js-play-btn:hover {
    background-color: #e67e00 !important;
    transform: scale(1.02)
}

@media(max-width:767px) {
    #games-hub h2 {
        font-size: 1rem
    }

    #games-hub h3 {
        font-size: .875rem
    }

    #games-hub .row.g-4 {
        border-width: 1px;
        padding: 15px 5px
    }
}

/* ===== hero_section ===== */
.hero-section {
    min-height: 720px;
    overflow: hidden;
    padding: 96px 0 76px;
    background-color: #09030f;
}

.hero-overlay {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(22, 5, 35, 0.76) 45%, rgba(0, 0, 0, 0.62) 100%);
    top: 0;
    left: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-stat {
    height: 100%;
    min-height: 104px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0.78);
    border: 1px solid var(--accent-orange);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-stat-purple {
    border-color: var(--accent-purple);
}

.mobile-h1 {
    font-size: 4rem;
    line-height: 1.2;
    hyphens: auto;
}

.mobile-h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    hyphens: auto;
}

.mobile-h3 {
    font-size: 1.1rem;
    line-height: 1.2;
    hyphens: auto;
}

.js-scroll-link:hover {
    transform: scale(1.05);
    background-color: #e67e00 !important;
    color: #000 !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 70px 0 54px;
        background-position: 48% center !important;
    }

    .hero-copy {
        font-size: 0.95rem;
    }

    .hero-stat {
        min-height: 96px;
        padding: 15px 10px;
    }

    .mobile-h1 {
        font-size: 2.25rem !important;
    }

    .mobile-h2 {
        font-size: 1rem !important;
    }

    .mobile-h3 {
        font-size: 0.875rem !important;
    }
}

/* ===== about_us ===== */
#about {
    position: relative;
    width: 100%;
}

#about h2 {
    line-height: 1.2;
}

#about h3 {
    line-height: 1.3;
}

#about p {
    line-height: 1.6;
}

#about .rounded-4 {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#about .rounded-4:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange) !important;
}

@media (max-width: 767px) {
    #about h2 {
        font-size: 1.125rem !important;
        line-height: 1.1;
    }

    #about h3 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #about .lead {
        font-size: 0.875rem !important;
    }

    #about p.small {
        font-size: 0.75rem !important;
    }

    #about .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ===== process_steps ===== */
#guide {
    background-color: var(--main-background);
    color: var(--main-text);
}

.step-card {
    background-color: var(--secondary-background);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange) !important;
}

.logo-img {
    max-width: 70px;
    height: auto;
}

@media (max-width: 767px) {
    #guide h2 {
        font-size: 1.125rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    #guide h3 {
        font-size: 1rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    #guide p {
        font-size: 0.875rem;
    }

    .step-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
    }

    .step-icon-wrapper svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ===== ranking_table ===== */
#leaderboard .leaderboard-container {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--secondary-background);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

#leaderboard .leaderboard-table-wrap {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: auto;
    background-color: var(--secondary-background);
}

#leaderboard .leaderboard-table {
    min-width: 540px;
    --bs-table-bg: transparent;
    --bs-table-color: var(--main-text);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: var(--main-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

#leaderboard .leaderboard-table thead {
    background: linear-gradient(90deg, rgba(106, 13, 173, 0.65), rgba(255, 140, 0, 0.16));
    position: sticky;
    top: 0;
    z-index: 5;
}

#leaderboard .leaderboard-table th,
#leaderboard .leaderboard-table td {
    color: var(--main-text) !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

#leaderboard .leaderboard-table th {
    color: #d8c8e8 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

#leaderboard .leaderboard-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#leaderboard .player-cell span {
    color: var(--main-text);
    font-weight: 600;
}

#leaderboard .points-cell {
    color: var(--accent-orange) !important;
    white-space: nowrap;
}

#leaderboard .js-user-row {
    background: linear-gradient(90deg, var(--accent-purple), #4d087d) !important;
    color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.32);
}

#leaderboard .js-leaderboard-scroll::-webkit-scrollbar {
    width: 6px;
}

#leaderboard .js-leaderboard-scroll::-webkit-scrollbar-track {
    background: var(--secondary-background);
}

#leaderboard .js-leaderboard-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 10px;
}

#leaderboard .js-rank-row {
    transition: background-color 0.3s ease;
}

#leaderboard .js-rank-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    #leaderboard h2 {
        font-size: 1rem !important;
    }

    #leaderboard td,
    #leaderboard th {
        font-size: 0.8125rem !important;
    }

    #leaderboard .leaderboard-table {
        min-width: 500px;
    }
}

/* ===== badges_list ===== */
#badges {
    background-color: var(--main-background);
    overflow: hidden;
}

.badge-card {
    background: var(--secondary-background);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    text-align: center;
}

.badge-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.badge-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.05);
}

.badge-title {
    color: var(--main-text);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    hyphens: auto;
    line-height: 1.2;
}

.badge-desc {
    color: var(--secondary-text);
    font-size: 0.875rem;
    margin-bottom: 0;
    hyphens: auto;
    line-height: 1.4;
}

@media (max-width: 767px) {
    h2 {
        font-size: 1rem !important;
    }

    .badge-title {
        font-size: 0.875rem !important;
    }

    .badge-desc {
        font-size: 0.75rem !important;
    }

    .badge-card {
        padding: 1.5rem 0.75rem;
    }

    .badge-icon-wrapper {
        width: 48px;
        height: 48px;
    }
}

/* ===== challenges ===== */
#tasks {
    position: relative;
}

.form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.js-task-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-task-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 767px) {
    #tasks h2 {
        font-size: 1rem !important;
    }

    #tasks h3 {
        font-size: 0.875rem !important;
    }

    #tasks p {
        font-size: 0.875rem !important;
    }
}

/* ===== faq_accordion ===== */
.accordion-button::after {
    display: none;
}

.accordion-button:not(.collapsed) svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.accordion-button svg {
    transition: transform 0.3s ease;
}

@media (max-width: 767px) {
    #faq h2 {
        font-size: 1.125rem !important;
    }

    #faq h3 span {
        font-size: 0.875rem !important;
    }

    #faq .accordion-body {
        font-size: 0.8rem !important;
    }
}

/* ===== user_feedback ===== */
#reviews {
    padding: 80px 0;
}

#reviews h2 {
    font-size: 2.5rem;
}

.js-review-card {
    transition: all 0.3s ease-in-out;
}

.js-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.2);
    border-color: var(--accent-orange) !important;
}

@media (max-width: 767px) {
    #reviews {
        padding: 40px 0;
    }

    #reviews h2 {
        font-size: 1rem !important;
    }

    #reviews h3 {
        font-size: 0.875rem !important;
    }

    .lead {
        font-size: 0.9rem;
    }
}

/* ===== articles ===== */
#blog h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    hyphens: auto;
}

#blog h3 {
    font-size: 1rem;
    line-height: 1.3;
    hyphens: auto;
}

#blog p {
    hyphens: auto;
}

#blog .js-article-card:hover {
    border-color: var(--accent-orange) !important;
    transform: translateY(-8px);
}

#blog .js-article-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

@media (max-width: 767px) {
    #blog h2 {
        font-size: 1.125rem;
    }

    #blog h3 {
        font-size: 0.875rem;
    }

    #blog .card-body {
        padding: 1.5rem !important;
    }

    .modal-body {
        padding: 16px 20px !important;
        font-size: 0.875rem !important;
    }
}

/* ===== legal_disclaimer ===== */
#disclaimer {
    overflow: hidden;
    background-color: var(--main-background);
    padding: 3rem 0
}

#disclaimer .disclaimer-card {
    border: 1px solid var(--accent-orange) !important;
    background-color: var(--secondary-background);
    border-radius: 0.75rem;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto
}

#disclaimer .disclaimer-icon {
    color: var(--accent-orange);
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.25rem;
    display: block
}

#disclaimer .disclaimer-text {
    color: var(--secondary-text);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    hyphens: auto
}

#disclaimer .disclaimer-warning {
    color: var(--main-text);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.25rem;
    display: block;
    line-height: 1.4
}

@media(max-width:767px) {
    #disclaimer {
        padding: 2rem 0
    }

    #disclaimer .disclaimer-card {
        padding: 1.5rem
    }

    #disclaimer .disclaimer-text {
        font-size: 0.75rem;
        line-height: 1.3
    }

    #disclaimer .disclaimer-warning {
        font-size: 0.75rem;
        line-height: 1.2
    }

    #disclaimer .disclaimer-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 1rem
    }
}

/* ===== site_footer ===== */
#footer a {
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--accent-orange) !important;
}

#footer .footer-logo {
    display: block;
}

@media (max-width: 767px) {
    #footer h3.footer-heading {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #footer .site-name {
        font-size: 0.7rem !important;
    }

    #footer p {
        font-size: 0.875rem;
    }
}

/* ===== policy_pages ===== */
.policy-content,
.cookie-policy {
    color: var(--main-text);
}

.policy-content p,
.cookie-policy p,
.cookie-policy li {
    color: var(--main-text) !important;
    opacity: 1 !important;
    line-height: 1.7;
}

.policy-content .last-updated,
.cookie-policy .lead {
    color: var(--secondary-text) !important;
}

.cookie-policy .policy-header {
    text-align: center;
}

.cookie-policy .policy-header h1 {
    color: var(--main-text) !important;
    font-size: 2.5rem;
    line-height: 1.2;
    hyphens: auto;
}

.cookie-policy h2 {
    color: var(--main-text) !important;
    font-size: 1.5rem;
    line-height: 1.25;
}

.cookie-policy ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.cookie-policy a,
.policy-content a {
    color: var(--accent-orange);
}

@media (max-width: 767px) {
    .cookie-policy .policy-header h1 {
        font-size: 2rem;
    }

    .cookie-policy h2 {
        font-size: 1.25rem;
    }
}
