@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --cj-green: #32A866;
    --cj-text: #1A1A1A;
    --cj-text-muted: #646464;
    --cj-border: #E5E7EB;
    --cj-white: #FFFFFF;
    --cj-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.como-jogar-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cj-bg);
    color: var(--cj-text);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 481px) {
    html {
        background: #E5E7EB;
    }

    body.como-jogar-page {
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
    }
}

.cj-main {
    padding: 16px 20px calc(88px + env(safe-area-inset-bottom));
    padding-top: max(16px, env(safe-area-inset-top));
}

.cj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.cj-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.cj-btn-ajuda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--cj-green);
    border-radius: 999px;
    background: var(--cj-white);
    color: var(--cj-green);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.cj-btn-ajuda svg {
    flex-shrink: 0;
}

.cj-tabs {
    position: relative;
    border-bottom: 1px solid var(--cj-border);
    margin: 0 -20px 20px;
    padding: 0 20px;
}

.cj-tabs-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cj-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.cj-tab {
    flex-shrink: 0;
    padding: 12px 16px 14px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--cj-text-muted);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.cj-tab.active {
    color: var(--cj-text);
    font-weight: 600;
}

.cj-tabs-indicator {
    position: absolute;
    bottom: 0;
    left: 20px;
    height: 2px;
    background: var(--cj-text);
    border-radius: 2px 2px 0 0;
    transition: left 0.2s ease, width 0.2s ease;
}

.cj-panel {
    display: none;
}

.cj-panel.active {
    display: block;
}

.cj-block {
    margin-bottom: 24px;
}

.cj-block:last-child {
    margin-bottom: 0;
}

.cj-block-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.cj-block-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--cj-text-muted);
}

.cj-block-text p {
    margin: 0 0 10px;
}

.cj-block-text p:last-child {
    margin-bottom: 0;
}

.cj-score-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cj-score-sport {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cj-text);
}

.cj-score-secao {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cj-score-secao-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cj-text);
}

.cj-score-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.cj-score-label {
    color: var(--cj-text-muted);
}

.cj-score-valor {
    font-weight: 600;
    font-size: 13px;
}

.cj-score-valor.pos {
    color: var(--cj-text);
}

.cj-score-valor.neg {
    color: #DC2626;
}

.cj-score-divider {
    border: none;
    border-top: 1px solid var(--cj-border);
    margin: 4px 0 0;
}

.cj-faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cj-faq-secao {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cj-faq-secao-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cj-text);
}

.cj-faq-secao-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cj-faq-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cj-faq-pergunta {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--cj-text);
}

.cj-faq-resposta,
.cj-faq-textos {
    font-size: 13px;
    line-height: 1.55;
    color: var(--cj-text-muted);
}

.cj-faq-resposta p,
.cj-faq-textos p {
    margin: 0 0 10px;
}

.cj-faq-resposta p:last-child,
.cj-faq-textos p:last-child {
    margin-bottom: 0;
}

.cj-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cj-green);
    text-decoration: none;
}

.cj-faq-divider {
    border: none;
    border-top: 1px solid var(--cj-border);
    margin: 4px 0 0;
}

.cj-faq-contato {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--cj-border);
    border-radius: 12px;
    background: #F9FAFB;
}

.cj-faq-contato svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.cj-faq-contato-textos {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cj-faq-contato-label {
    font-size: 12px;
    line-height: 1.4;
    color: var(--cj-text-muted);
}

.cj-faq-contato-tel {
    font-size: 13px;
    font-weight: 700;
    color: var(--cj-text);
    text-decoration: none;
}
