/* Ecrã de fim de nível — concluído ou falhado. */

#resultBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.resultHead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.resultMedal {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.resultStars {
    display: flex;
    gap: 6px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1;
    color: var(--gold);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.resultStars i { font-style: normal; }
.resultStars i.off { color: rgba(238, 242, 255, 0.18); filter: none; }

.bannerText {
    font-family: var(--font-display);
    font-size: clamp(21px, 6vw, 28px);
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(100deg, #ffffff 20%, var(--accent) 70%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Falhar não usa o mesmo gradiente do sucesso: a cor é que dá a notícia. */
.bannerText.failed {
    background: linear-gradient(100deg, #ffffff 20%, var(--accent-3) 80%);
    -webkit-background-clip: text;
    background-clip: text;
}

.unlockNote {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #d6ffc4;
    border: 1px solid rgba(157, 255, 106, 0.4);
    border-radius: var(--radius);
    background: rgba(157, 255, 106, 0.12);
}

table.statTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

table.statTable td {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--muted);
    background: var(--glass-bg-soft);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

table.statTable td:first-child {
    border-left: 1px solid var(--glass-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    text-align: left;
}

table.statTable td:last-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.statValue {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

.resultHint {
    max-width: 40ch;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--faint);
}

.resultActions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
