* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top, #2a475e 0%, #1b2838 60%);
    color: #c7d5e0;
    padding: 40px 20px;
    text-align: center;
    min-height: 100vh;
    margin: 0;
}

.card {
    background: #171a21;
    padding: 0;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    min-width: 440px;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid #2a475e;
    position: relative;
    text-align: left;
}

.section {
    padding: 40px 34px;
    text-align: center;
}

.section-left {
    padding: 40px 34px;
    text-align: left;
}

h1, h2, h3 {
    color: #ffffff;
    margin-top: 0;
}

h1 {
    font-size: 2.1em;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.7em;
    margin-bottom: 14px;
}

p {
    line-height: 1.55;
}

.lead {
    font-size: 1.1em;
    color: #d7e7f2;
    max-width: 720px;
    margin: 0 auto 22px auto;
}

.muted {
    color: #8f98a0;
    font-size: 0.95em;
}

.page-note {
    max-width: 640px;
    margin: 26px auto 0 auto;
}

.btn-steam,
.btn-primary,
.btn-secondary {
    padding: 15px 26px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-top: 18px;
    cursor: pointer;
}

.btn-primary {
    background: #66c0f4;
    color: #101822;
    border: 1px solid #66c0f4;
}

.btn-primary:hover {
    background: #8ed0f8;
}

.btn-secondary {
    background: transparent;
    color: #c7d5e0;
    border: 1px solid #3d6584;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #2a475e;
}

.btn-steam {
    background: #101822;
    color: #66c0f4;
    border: 1px solid #66c0f4;
}

.btn-steam:hover {
    background: #66c0f4;
    color: #101822;
}

.hero {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    padding: 54px 36px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    border: 1px solid #66c0f4;
    color: #66c0f4;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.feature-box {
    background: #0f1620;
    border: 1px solid #2a475e;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.feature-box h3 {
    color: #66c0f4;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.feature-box p {
    color: #c7d5e0;
    font-size: 0.92em;
    margin-bottom: 0;
}

.privacy-box {
    background: #0f1620;
    border: 1px solid #2a475e;
    border-radius: 12px;
    padding: 22px;
    margin-top: 22px;
}

.privacy-box strong {
    color: #66c0f4;
}

.ad-placeholder {
    margin: 24px 34px;
    padding: 20px;
    border: 1px dashed #3d6584;
    color: #6d7780;
    text-align: center;
    border-radius: 10px;
    font-size: 0.85em;
    background: rgba(15, 22, 32, 0.45);
}

.highlight-note {
    margin-top: 24px;
    padding: 16px 18px;
    background: rgba(102, 192, 244, 0.08);
    border: 1px solid rgba(102, 192, 244, 0.45);
    border-radius: 10px;
    color: #d7e7f2;
    font-weight: 700;
}

/* Header */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: #0f1620;
    border-bottom: 1px solid #2a475e;
}

.brand {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.nav-links label {
    color: #8f98a0;
    text-decoration: none;
    margin-left: 18px;
    font-size: 0.9em;
    cursor: pointer;
}

.nav-links label:hover {
    color: #66c0f4;
}

/* Modais da página inicial */

.modal-toggle {
    display: none;
}

.modal {
    display: none;
}

#modal-o-que-e:checked ~ .modal,
#modal-privacidade:checked ~ .privacy-modal {
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 10;
    cursor: pointer;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 32px));
    max-height: 82vh;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    background: #171a21;
    border: 1px solid #2a475e;
    border-radius: 16px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.75);
    padding: 34px;
    z-index: 11;
    text-align: left;
}

.modal-box-large {
    width: min(820px, calc(100vw - 32px));
}

.modal-box h2 {
    color: #ffffff;
}

.modal-box h3 {
    color: #66c0f4;
    margin-top: 24px;
    font-size: 1.05em;
}

.modal-box p,
.modal-box li {
    color: #c7d5e0;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a475e;
    color: #c7d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #3d6584;
}

/* Resultado */

.result-card {
    background: #171a21;
}

.result-hero {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    padding: 34px 44px 32px 44px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: auto 132px auto;
    column-gap: 36px;
    align-items: center;
    border-bottom: 1px solid #2a475e;
}

.result-divider {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 1px;
    height: 100%;
    background: rgba(102, 192, 244, 0.25);
}

.result-label {
    color: #a9bfd0;
    font-size: 0.78em;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
}

.left-label {
    grid-column: 1;
    grid-row: 1;
}

.right-label {
    grid-column: 3;
    grid-row: 1;
}

.avatar-row {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 4px solid #66c0f4;
    box-shadow: 0 0 26px rgba(102, 192, 244, 0.42);
    object-fit: cover;
}

.index-number-row {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #66c0f4;
    font-size: 6.3em;
    font-weight: 850;
    line-height: 1;
    text-shadow: 0 0 30px rgba(102, 192, 244, 0.35);
}

.user-name-row {
    grid-column: 1;
    grid-row: 3;
    color: #ffffff;
    font-size: 1.45em;
    font-weight: 800;
    text-align: center;
    margin-top: 10px;
}

.index-name-row {
    grid-column: 3;
    grid-row: 3;
    color: #ffffff;
    font-size: 1.25em;
    font-weight: 800;
    text-align: center;
    margin-top: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #2a475e;
    border-bottom: 1px solid #2a475e;
    background: #171a21;
    text-align: center;
}

.metric-box {
    padding: 26px 18px;
    border-right: 1px solid #2a475e;
}

.metric-box:last-child {
    border-right: none;
}

.metric-value {
    font-size: 1.9em;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.78em;
    color: #a9bfd0;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-top: 8px;
    line-height: 1.35;
}

.result-footer-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: #111923;
}

.result-footer-brand span:first-child {
    color: #a9bfd0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85em;
}

.result-footer-brand span:last-child {
    color: #66c0f4;
    font-weight: 800;
    font-size: 1em;
}

.result-actions {
    padding: 34px 34px 22px 34px;
    text-align: center;
    border-top: 1px solid #2a475e;
}

.share-btn {
    background: transparent;
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin: 8px 5px 0 5px;
    min-width: 190px;
}

.share-btn:hover {
    background: #66c0f4;
    color: #101822;
}

/* Ajuda da página de resultado */

.help-toggle {
    display: none;
}

.help-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2a475e;
    color: #c7d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    border: 1px solid #3d6584;
    z-index: 2;
    user-select: none;
}

.help-btn:hover {
    background: #3d6584;
}

.help-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 22, 32, 0.97);
    z-index: 3;
    padding: 30px;
    text-align: left;
    overflow-y: auto;
}

.help-toggle:checked ~ .help-modal {
    display: block;
}

.help-modal h3 {
    color: #ffffff;
    margin-top: 0;
}

.help-modal dt {
    color: #66c0f4;
    font-weight: bold;
    margin-top: 14px;
}

.help-modal dd {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: #c7d5e0;
}

.help-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2a475e;
    color: #c7d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #3d6584;
}

.help-close:hover {
    background: #3d6584;
}

/* Responsivo */

@media (max-width: 760px) {
    body {
        padding: 20px 12px;
    }

    .card {
        min-width: 0;
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .btn-secondary {
        margin-left: 0;
        display: block;
    }

    .site-header {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links label {
        margin: 0 8px;
    }

    .result-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        row-gap: 8px;
        padding: 32px 24px;
    }

    .result-divider {
        display: none;
    }

    .left-label,
    .avatar-row,
    .user-name-row,
    .right-label,
    .index-number-row,
    .index-name-row {
        grid-column: 1;
    }

    .left-label { grid-row: 1; }
    .avatar-row { grid-row: 2; }
    .user-name-row { grid-row: 3; margin-bottom: 18px; }
    .right-label { grid-row: 4; }
    .index-number-row { grid-row: 5; font-size: 5.5em; }
    .index-name-row { grid-row: 6; }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-box {
        border-right: none;
        border-bottom: 1px solid #2a475e;
    }

    .metric-box:last-child {
        border-bottom: none;
    }

    .result-footer-brand {
        flex-direction: column;
        gap: 8px;
    }
}