:root {
    --primary-background: #111329;
    --secondary-background: #252044;
    --surface-card: rgba(37, 32, 68, 0.75);
    --surface-card-border: rgba(166, 166, 197, 0.18);
    --primary-accent: #C9FF45;
    --primary-accent-hover: #b2e632;
    --secondary-accent: #FF7048;
    --text-primary: #F0F2FF;
    --text-secondary: #A6A6C5;
    --text-on-accent: #111329;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--primary-background);
    color: var(--text-primary);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--primary-background);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
}

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

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

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(17, 19, 41, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-modal-card {
    background: var(--secondary-background);
    border: 1px solid var(--surface-card-border);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 36rem;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-consent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(201, 255, 69, 0.1);
    color: var(--primary-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cookie-consent-title {
    color: var(--text-primary);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.cookie-consent-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-link {
    color: var(--primary-accent);
    text-decoration: underline;
}

.cookie-consent-preferences {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background-color: var(--primary-background);
    border: 1px solid var(--surface-card-border);
    border-radius: 0.875rem;
    padding: 1rem;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-card-border);
}

.cookie-consent-option:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-consent-option-info {
    display: flex;
    flex-direction: column;
}

.cookie-consent-option-title {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.cookie-consent-option-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.cookie-consent-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-accent);
    cursor: pointer;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.cookie-consent-btn-primary {
    background-color: var(--primary-accent);
    color: var(--text-on-accent);
}

.cookie-consent-btn-primary:hover {
    background-color: var(--primary-accent-hover);
}

.cookie-consent-btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-card-border);
}

.cookie-consent-btn-secondary:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.cookie-consent-btn-save {
    background-color: rgba(201, 255, 69, 0.15);
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    margin-top: 0.5rem;
}

.cookie-consent-btn-save:hover {
    background-color: var(--primary-accent);
    color: var(--text-on-accent);
}

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

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    a[href^="mailto:"],
    a[href^="tel:"],
    .break-long-words {
        word-break: break-all;
        font-size: 0.9375rem;
    }

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

    .cookie-consent-btn {
        width: 100%;
    }
}

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

.js-mobile-overlay.open {
    display: flex;
}

/* ===== hero_showcase ===== */
#inicio {
    overflow: hidden;
}

#inicio h1,
#inicio h2,
#inicio h3 {
    hyphens: auto;
}

.js-genre-pill.is-active {
    background-color: #252044;
    border-color: #C9FF45;
    color: #C9FF45;
}

/* ===== categories_section ===== */
#generos {
    hyphens: auto;
}

#generos .js-category-card.is-active {
    border-color: #C9FF45;
    box-shadow: 0 0 24px rgba(201, 255, 69, 0.28);
    transform: translateY(-4px);
}

/* ===== catalog_section ===== */
#catalogo {
    overflow: hidden;
    hyphens: auto;
}

#catalogo input::placeholder,
#catalogo textarea::placeholder {
    color: #A6A6C5;
}

#catalogo select option {
    background-color: #111329;
    color: #F0F2FF;
}

/* ===== spotlight_section ===== */
#destaques input::placeholder {
    color: #A6A6C5;
}

#destaques {
    overflow: hidden;
}

#destaques input[type="email"] {
    background-color: #111329;
    color: #F0F2FF;
}

/* ===== quiz_section ===== */
#quiz-gamer {
    overflow: hidden;
}

#quiz-gamer .js-quiz-btn {
    cursor: pointer;
    outline: none;
}

#quiz-gamer .js-quiz-btn.active {
    border-color: #C9FF45;
    background-color: rgba(37, 32, 68, 0.95);
    box-shadow: 0 0 20px rgba(201, 255, 69, 0.15);
}

#quiz-gamer .js-quiz-btn:focus-visible {
    outline: 2px solid #C9FF45;
}

#quiz-gamer .js-quiz-card {
    min-height: 260px;
}

#quiz-gamer .js-buy-cta:hover {
    background-color: #b2e632;
}

/* ===== gallery_section ===== */
#galeria {
    overflow: hidden;
}

#galeria img {
    border-radius: 0.5rem;
}

/* ===== reviews_section ===== */
#avaliacoes {
    overflow: hidden;
}

#avaliacoes input::placeholder,
#avaliacoes textarea::placeholder {
    color: #A6A6C5;
    opacity: 0.7;
}

#avaliacoes input,
#avaliacoes select,
#avaliacoes textarea {
    background-color: #111329;
    color: #F0F2FF;
}

#avaliacoes select option {
    background-color: #111329;
    color: #F0F2FF;
}

/* ===== info_faq_section ===== */
#suporte {
    overflow: hidden;
}

#suporte .js-tab-btn.active {
    background-color: var(--primary-accent);
    color: var(--text-on-accent);
    border-color: var(--primary-accent);
}

#suporte .js-tab-btn.active i {
    color: var(--text-on-accent);
}

#suporte .js-faq-icon.open {
    transform: rotate(180deg);
}

/* ===== about_contact_section ===== */
#contato {
    overflow: hidden;
}

#contato input::placeholder,
#contato textarea::placeholder {
    color: rgba(166, 166, 197, 0.6);
}

#contato select option {
    background-color: #111329;
    color: #F0F2FF;
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
    width: 100%;
    hyphens: auto;
}

#footer a {
    outline: none;
}