/* Responsividade do template sem alterar a identidade ou os espaçamentos existentes. */
html,
body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-width: 0;
    max-width: 450px;
    margin-inline: auto;
    overflow-x: hidden;
}

/* O modal mantém os espaços internos, mas nunca ultrapassa a tela. */
.popup-container[data-v-a111f140] {
    width: calc(100vw - 24px);
    max-width: 360px;
    height: min(60vh, 560px);
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
}

.popup-container[data-v-a111f140] .overflow-y-auto {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 360px) {
    .popup-container[data-v-a111f140] {
        width: calc(100vw - 16px);
    }
}

@media (max-height: 600px) {
    .popup-container[data-v-a111f140] {
        height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
        margin-top: 16px;
    }
}

/* Ajustes de layout da página de missões.
   As regras usam os componentes exclusivos desta tela para não interferir
   nos demais templates nem mudar a identidade visual. */
.page {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.hero {
    min-height: 152px;
    box-sizing: border-box;
}

.hero .top {
    min-width: 0;
}

.hero .top__title {
    min-width: 0;
    line-height: 1.2;
}

.reset {
    flex-shrink: 0;
    white-space: nowrap;
}

.stat {
    margin: -52px 16px 0;
    padding: 18px 17px 17px;
    border-radius: 24px;
    box-sizing: border-box;
}

.stat__k {
    line-height: 1.3;
}

.stat__v {
    margin-top: 7px;
    font-size: 28px;
    line-height: 1;
}

.stat__bar {
    height: 10px;
    margin-top: 14px;
}

.stat__hint {
    margin-top: 10px;
    line-height: 1.45;
}

.wrap {
    padding-inline: 16px;
}

.shead {
    gap: 11px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.shead__t {
    min-width: 0;
    line-height: 1.25;
}

.note {
    line-height: 1.55;
}

.tier {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    margin-bottom: 10px;
    padding: 13px 14px;
    border-radius: 20px;
    box-sizing: border-box;
}

.tier__ic {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.tier__mid {
    min-width: 0;
}

.tier__t,
.tier__s {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tier__t {
    font-size: 13.5px;
    line-height: 1.3;
}

.tier__s {
    font-size: 11px;
    line-height: 1.35;
}

.tier__r {
    min-width: 74px;
    gap: 6px;
}

.tier__amt {
    font-size: 15.5px;
}

.badge {
    padding: 4px 8px;
    font-size: 10px;
    white-space: nowrap;
}

/* Missões bloqueadas continuam suaves, mas permanecem legíveis. */
.tier.locked .tier__t {
    color: var(--ink-soft);
}

.tier.locked .tier__amt {
    color: var(--brand-deep);
}

.tier.locked .tier__s {
    color: var(--muted);
}

.tier.locked .tier__ic {
    color: var(--brand-deep);
    background: linear-gradient(180deg, #ecf3ff 0%, #d4e4ff 100%);
    box-shadow: var(--clay-in);
}

.tips {
    margin-top: 18px;
}

.footer {
    padding-top: 7px;
}

@media (max-width: 380px) {
    .wrap {
        padding-inline: 12px;
    }

    .stat {
        margin-inline: 12px;
        padding-inline: 14px;
    }

    .tier {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 9px;
        padding-inline: 11px;
    }

    .tier__ic {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .tier__t {
        font-size: 12.5px;
    }

    .tier__s {
        font-size: 10.5px;
    }

    .tier__r {
        min-width: 68px;
    }

    .tier__amt {
        font-size: 14px;
    }

    .badge {
        padding-inline: 7px;
        font-size: 9.5px;
    }
}

@media (min-width: 481px) {
    body {
        background: #eaf2ff;
    }

    .page {
        box-shadow: 0 0 40px rgba(0, 60, 150, .12);
    }
}
