:root {
    --main-background: #0f0f0f;
    --secondary-background: #1a1a1a;
    --accent-background: #ff8c00;
    --text-on-dark: #ffffff;
    --text-on-accent: #000000;
    --muted-text: #a0a0a0;
    --border-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-background);
    color: var(--text-on-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

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

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

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

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    body {
        font-size: 14px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== header_section ===== */
.site-name {
    font-size: 1.25rem;
}

@media (max-width: 1023px) {
    .site-name {
        font-size: 0.7rem;
    }
}

.js-mobile-menu.open {
    display: block !important;
}

a:hover {
    color: var(--accent-background) !important;
}

a.btn[style*="accent-background"]:hover,
a.btn[style*="accent-background"]:focus,
button[style*="accent-background"]:hover,
button[style*="accent-background"]:focus,
#js-cookie-accept:hover,
#js-cookie-accept:focus {
    color: var(--text-on-accent) !important;
}

a.btn[style*="transparent"]:hover,
a.btn[style*="transparent"]:focus,
#js-cookie-reject:hover,
#js-cookie-reject:focus {
    color: var(--text-on-dark) !important;
    background-color: rgba(255, 140, 0, 0.12) !important;
}

.js-modal-close:hover,
.js-modal-close:focus,
.js-nav-toggle:hover,
.js-nav-toggle:focus {
    color: var(--text-on-dark) !important;
}

button:focus {
    outline: none;
    box-shadow: none;
}

/* ===== hero_banner ===== */
#hero h1 {
    hyphens: auto;
    font-size: 3.5rem;
    line-height: 1.1;
}

#hero p {
    line-height: 1.6;
}

.js-dynamic-word {
    display: inline-block;
    min-width: 140px;
    transition: all 0.3s ease;
}

.animated-game-card {
    transition: transform 0.3s ease;
}

.js-float-1 {
    animation: float-1 6s ease-in-out infinite;
}

.js-float-2 {
    animation: float-2 5s ease-in-out infinite;
}

.js-float-3 {
    animation: float-3 7s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-20px) rotate(-12deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-15px) rotate(18deg);
    }
}

@media (max-width: 767.98px) {
    #hero h1 {
        font-size: 1.125rem !important;
        line-height: 1.2;
    }

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

    #hero .btn-lg {
        font-size: 0.875rem;
        padding: 12px 24px;
    }
}

/* ===== game_grid ===== */
#games h2 {
    font-size: 2rem;
    line-height: 1.2
}

#games h3 {
    font-size: 1.25rem;
    line-height: 1.3
}

@media(max-width:767px) {
    #games h2 {
        font-size: 1rem;
        line-height: 1.2
    }

    #games h3 {
        font-size: 0.875rem;
        line-height: 1.2
    }
}

#games .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

#games .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5)
}

#games .btn {
    transition: filter 0.3s ease
}

#games .btn:hover {
    filter: brightness(1.1)
}

#game-modal {
    display: none !important
}

#game-modal.is-active {
    display: flex !important
}

/* ===== rankings_table ===== */
#rankings {
    overflow: hidden;
}

#rankings h2 {
    font-size: 2rem;
    hyphens: auto;
    line-height: 1.2;
}

#rankings h3 {
    font-size: 1.25rem;
    hyphens: auto;
    line-height: 1.3;
}

.js-rank-item {
    transition: background-color 0.3s ease;
}

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

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

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

    #rankings .list-group-item strong {
        font-size: 0.85rem;
    }

    #rankings .list-group-item small {
        font-size: 0.7rem;
    }

    #rankings .list-group-item span:last-child {
        font-size: 0.8rem;
    }
}

/* ===== challenges_timer ===== */
#challenges {
    hyphens: auto;
}

#challenges h2 {
    line-height: 1.2;
}

#challenges h3 {
    line-height: 1.3;
}

#challenges .card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#challenges .card:hover {
    border-color: var(--accent-background) !important;
    transform: translateY(-5px);
}

#challenges .btn:hover {
    filter: brightness(1.1);
}

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

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

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

/* ===== clans_cta ===== */
#clans .js-clans-title {
    font-size: 1rem;
}

@media (min-width: 768px) {
    #clans .js-clans-title {
        font-size: 2.5rem;
    }
}

#clans .btn {
    transition: transform 0.2s ease, filter 0.2s ease;
}

#clans .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#clans .btn:active {
    transform: translateY(0);
}

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

@media (min-width: 768px) {
    #clans p {
        font-size: 1.125rem;
    }
}

/* ===== about_info ===== */
#about {
    hyphens: auto;
}

#about h2 {
    line-height: 1.2;
    font-weight: 800;
}

#about h3 {
    line-height: 1.3;
    font-weight: 700;
}

#about p {
    line-height: 1.5;
}

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

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

#about .js-share-btn:hover {
    filter: brightness(1.1);
    transition: 0.3s ease;
}

.ri-share-forward-line,
.ri-shield-star-line,
.ri-community-line {
    display: inline-block;
    vertical-align: middle;
}

/* ===== user_reviews ===== */
#reviews .card {
    transition: transform .3s ease, box-shadow .3s ease
}

#reviews .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3)
}

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

    #reviews p,
    #reviews .card p {
        font-size: .875rem !important
    }
}

/* ===== support_faq ===== */
#faq h2 {
    font-size: 2.5rem;
    line-height: 1.1
}

#faq h3 {
    font-size: 1.1rem;
    line-height: 1.3
}

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

    #faq h3 {
        font-size: 1rem !important
    }
}

#faq .js-accordion-item.active {
    border-color: var(--accent-background) !important
}

#faq .js-accordion-item.active i {
    transform: rotate(45deg)
}

#faq .js-report-link:hover {
    transform: scale(1.05)
}

#faq .accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-on-dark) !important
}

#faq .accordion-button::after {
    display: none !important
}

#faq .js-accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    transition: max-height 0.3s ease-in-out
}

/* ===== legal_pages ===== */
.legal-content-wrapper,
.legal-content-wrapper p,
.legal-content-wrapper li,
.legal-content-wrapper .text-body,
.legal-content-wrapper .text-content,
.legal-content-wrapper .text-muted {
    color: var(--text-on-dark) !important;
    opacity: 1 !important
}

.legal-content-wrapper section,
.legal-content-wrapper .legal-page-body,
.legal-content-wrapper .cookie-policy-container,
.legal-content-wrapper .privacy-policy-container,
.legal-content-wrapper .agreement-container {
    background: transparent !important
}

.legal-content-wrapper .container {
    max-width: 100%
}

.legal-content-wrapper h1,
.legal-content-wrapper .policy-main-title,
.cookie-policy-container h1 {
    color: var(--accent-background) !important;
    text-transform: uppercase;
    text-align: center
}

.legal-content-wrapper h2,
.legal-content-wrapper .section-title,
.cookie-policy-container h2 {
    color: var(--text-on-dark) !important;
    border-left: 4px solid var(--accent-background);
    padding-left: 1rem;
    text-transform: uppercase
}

.legal-content-wrapper a,
.legal-content-wrapper .brand-accent {
    color: var(--accent-background) !important
}

.legal-content-wrapper ul {
    list-style: disc;
    padding-left: 1.5rem
}

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

.disclaimer-card {
    background-color: var(--secondary-background);
    border: 2px solid var(--accent-background);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.disclaimer-title {
    color: var(--text-on-dark);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.disclaimer-text {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    hyphens: auto;
}

.disclaimer-age-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-background);
    color: var(--text-on-accent);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 2px solid var(--accent-background);
}

.age-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.age-text {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.js-disclaimer-link {
    color: var(--accent-background);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.js-disclaimer-link:hover {
    color: var(--text-on-dark);
    text-decoration: underline;
}

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

    .disclaimer-card {
        padding: 1.5rem;
        border-width: 1px;
    }

    .disclaimer-title {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

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

    .age-number {
        font-size: 2rem;
    }

    .age-text {
        font-size: 0.75rem;
    }
}

/* ===== footer ===== */
#footer .container {
    text-align: center
}

#footer .row.align-items-center,
#footer .row.g-4 {
    justify-content: center
}

#footer .row.align-items-center>div,
#footer .row.g-4>div {
    flex: 0 0 100%;
    max-width: 900px;
    width: 100%
}

#footer .text-md-start,
#footer .text-lg-start,
#footer .text-lg-end {
    text-align: center !important
}

#footer .justify-content-md-end,
#footer .justify-content-lg-start {
    justify-content: center !important
}

#footer .align-items-lg-end {
    align-items: center !important
}

.footer-org-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: brightness(1) contrast(1);
    transition: transform 0.3s ease;
}

.footer-org-logo:hover {
    transform: scale(1.05);
}

.footer-age-icon {
    width: 48px;
    height: auto;
    object-fit: contain;
}

.footer-legal-link {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--text-on-dark) !important;
}

.js-footer-logo {
    transition: transform 0.3s ease;
}

.js-footer-logo:hover {
    transform: rotate(-5deg);
}

@media (max-width: 767px) {
    .footer-org-logo {
        width: 100px;
    }

    .footer-legal-link {
        font-size: 0.75rem;
    }
}

/* ===== age_gate ===== */
body.age-gate-active {
    overflow: hidden
}

#age-gate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px)
}

.age-gate-panel {
    width: min(100%, 460px);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--accent-background);
    background: var(--secondary-background);
    color: var(--text-on-dark);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55)
}

.age-gate-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--accent-background);
    color: var(--text-on-accent);
    font-size: 1.5rem;
    font-weight: 900
}

.age-gate-panel h2 {
    margin-bottom: 12px;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 0
}

.age-gate-panel p {
    margin-bottom: 24px;
    color: var(--text-on-dark);
    line-height: 1.6
}

.age-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.age-gate-actions button {
    min-height: 48px;
    border-radius: 4px;
    padding: 12px 16px;
    font-weight: 800
}

.age-gate-accept {
    background: var(--accent-background);
    color: var(--text-on-accent)
}

.age-gate-accept:hover,
.age-gate-accept:focus {
    color: var(--text-on-accent);
    filter: brightness(1.08)
}

.age-gate-deny {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid var(--border-color)
}

.age-gate-deny:hover,
.age-gate-deny:focus {
    color: var(--text-on-dark);
    border-color: var(--accent-background);
    background: rgba(255, 140, 0, 0.12)
}

@media (max-width: 520px) {
    .age-gate-panel {
        padding: 24px 18px
    }

    .age-gate-actions {
        grid-template-columns: 1fr
    }
}
