:root {
    --background-primary: #0B0F19;
    --background-secondary: #111827;
    --background-surface: #1E293B;
    --background-surface-elevated: #334155;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #64748B;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--background-primary);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover,
a:focus {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

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

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

:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        word-break: break-word;
    }

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

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        word-break: break-word;
    }

    h4,
    h5,
    h6 {
        font-size: 1.125rem;
        word-break: break-word;
    }

    a,
    span,
    p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== header ===== */
#header {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero img {
    width: 100%;
}

/* ===== main_news ===== */
#news {
    width: 100%;
    box-sizing: border-box;
}

#news img {
    width: 100%;
}

/* ===== game_rankings ===== */
#rankings {
    hyphens: auto;
}

.js-ranking-card.is-hidden {
    display: none !important;
}

/* ===== tutorials_reviews ===== */
#tutorials {
    overflow: hidden;
}

#tutorials h2,
#tutorials h3 {
    hyphens: auto;
}

#tutorials .js-scroll-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease-in-out;
}

/* ===== practical_guides ===== */
#guides {
    overflow: hidden;
    hyphens: auto;
}

/* ===== editorial_picks ===== */
#recommendations {
    hyphens: auto;
}

#recommendations h2,
#recommendations h3 {
    line-height: 1.25;
}

.js-pick-card {
    will-change: border-color;
}

/* ===== tournaments_events ===== */
#events {
    hyphens: auto
}

#events h2,
#events h3 {
    line-height: 1.2
}

/* ===== game_collections ===== */
#collections {
    overflow: hidden;
}

/* ===== popular_tactics ===== */
#tactics {
    width: 100%;
    box-sizing: border-box;
}

#tactics .js-tab-btn {
    outline: none;
    cursor: pointer;
    user-select: none;
}

#tactics .js-tab-pane {
    transition: opacity 0.2s ease-in-out;
}

/* ===== about_portal ===== */
#about {
    overflow: hidden;
}

#about a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

/* ===== faq_accordion ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-item.active {
    border-color: #8B5CF6;
}

#faq .js-faq-item.active .js-faq-icon {
    background-color: #8B5CF6;
    color: #F9FAFB;
    transform: rotate(45deg);
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
}

#footer a {
    outline: none;
}