/* Report UI typography and compact summary scale. */

:root {
    --reports-serif: "Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
    --reports-smallcaps: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
}

.battle-report-quick-summary {
    grid-template-columns: clamp(4rem, 4.8vw, 5.2rem) minmax(6rem, 7.6rem) minmax(14rem, 1fr) auto minmax(14rem, 1fr) minmax(6.8rem, 8rem) auto !important;
    gap: clamp(0.45rem, 0.9vw, 0.85rem) !important;
    min-height: clamp(5.1rem, 5.8vw, 6.4rem) !important;
    padding: 0.55rem clamp(0.75rem, 1.2vw, 1.15rem) !important;
}

.report-quick-seal-frame {
    width: clamp(3.8rem, 4.4vw, 4.9rem) !important;
    min-width: clamp(3.8rem, 4.4vw, 4.9rem) !important;
}

.report-quick-date strong,
.report-quick-points strong {
    font-family: var(--reports-serif) !important;
    font-size: clamp(0.95rem, 1.05vw, 1.12rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.035em !important;
}

.report-quick-points small {
    display: none !important;
}

.report-quick-date small,
.report-quick-label {
    font-family: var(--reports-smallcaps) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
}

.report-quick-side {
    gap: 0.18rem !important;
    padding: 0.48rem clamp(0.65rem, 1vw, 0.95rem) !important;
}

.report-quick-combatant {
    font-family: var(--reports-serif) !important;
}

.report-quick-combatant strong {
    font-family: var(--reports-serif) !important;
    font-size: clamp(0.98rem, 1.25vw, 1.28rem) !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em !important;
}

.report-quick-combatant small {
    font-family: var(--reports-smallcaps) !important;
    font-size: clamp(0.68rem, 0.82vw, 0.78rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.075em !important;
}

.report-quick-score {
    gap: clamp(0.35rem, 0.65vw, 0.55rem) !important;
    font-family: var(--reports-serif) !important;
}

.report-quick-score strong {
    min-width: clamp(2.7rem, 3.2vw, 3.5rem) !important;
    min-height: clamp(2.45rem, 2.9vw, 3.15rem) !important;
    font-family: var(--reports-serif) !important;
    font-size: clamp(1.45rem, 2.1vw, 2.15rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

.report-quick-score span {
    font-family: var(--reports-serif) !important;
    font-size: clamp(0.78rem, 0.95vw, 0.95rem) !important;
    font-weight: 700 !important;
}

.report-quick-chevron {
    font-size: 1.35rem !important;
}

/* Deliberately higher specificity than the expanded report stylesheet. */
.battle-report-expanded .report-full-v2 .report-v2-center .report-v2-seal {
    top: clamp(-6.6rem, -5.6vw, -4.6rem) !important;
    width: clamp(16.2rem, 18.6vw, 20.7rem) !important;
}

.battle-report-expanded .report-full-v2 .report-v2-roster.battle-roster-details:not([open]) {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0.35rem !important;
    padding: 0 !important;
    border-color: rgba(128, 87, 51, 0.45) !important;
    background: rgba(0, 0, 0, 0.14) !important;
}

.battle-report-expanded .report-full-v2 .report-v2-roster.battle-roster-details:not([open]) > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    height: clamp(1.34rem, 1.58vw, 1.7rem) !important;
    padding: 0 0.75rem !important;
    line-height: 1 !important;
    border: 0 !important;
    font-size: clamp(0.62rem, 0.7vw, 0.74rem) !important;
    letter-spacing: 0.16em !important;
}

.battle-report-expanded .report-full-v2 .report-v2-roster.battle-roster-details:not([open]) > summary span {
    line-height: 1 !important;
}

.battle-report-expanded .report-full-v2 .report-v2-roster.battle-roster-details:not([open]) > summary .chevron {
    margin-left: 0.45rem !important;
    transform: scale(0.82) !important;
}

.battle-report-expanded .report-full-v2 .report-v2-motto::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(4.8rem, 5.8vw, 6.8rem);
    height: clamp(3.2rem, 3.8vw, 4.6rem);
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: url("/img/reports-ui/png/lot-1-frame-system/insigne_d_aigle_en_métal_antique_transparent.png") center / contain no-repeat;
    opacity: 0.74;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.76));
    z-index: 1;
}

.battle-report-expanded .report-full-v2 .report-v2-motto span {
    position: relative;
    z-index: 2;
}

/* Emergency cleanup: remove unstable generated frame ornaments from expanded reports. */
.battle-report-expanded .report-full-v2 {
    background:
        url("/img/reports-ui/report-full-background.svg") center / cover,
        #090706 !important;
}

.battle-report-expanded::before,
.battle-report-expanded::after,
.battle-report-expanded .report-full-v2::before,
.battle-report-expanded .report-full-v2::after,
.battle-report-expanded .report-v2-duel::before,
.battle-report-expanded .report-v2-duel::after,
.battle-report-expanded .report-v2-motto::before,
.battle-report-expanded .report-v2-motto::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Cleanup pass: remove remaining stray report linework before modular PNG reintegration. */
.battle-report-expanded .report-full-v2 {
    background: #090706 !important;
}

.battle-report-expanded .report-v2-side {
    background: rgba(0, 0, 0, 0.20) !important;
}

.battle-report-expanded .report-v2-center {
    background: linear-gradient(180deg, #100706, #090504) !important;
}

.battle-report-expanded .report-v2-meta,
.battle-report-expanded .report-v2-roster {
    background-image: none !important;
}

.battle-report-shell::before,
.battle-report-shell::after,
.battle-report-quick-summary::before,
.battle-report-quick-summary::after,
.battle-report-expanded::before,
.battle-report-expanded::after,
.battle-report-expanded .report-full-v2::before,
.battle-report-expanded .report-full-v2::after,
.battle-report-expanded .report-v2-meta::before,
.battle-report-expanded .report-v2-meta::after,
.battle-report-expanded .report-v2-duel::before,
.battle-report-expanded .report-v2-duel::after,
.battle-report-expanded .report-v2-side::before,
.battle-report-expanded .report-v2-side::after,
.battle-report-expanded .report-v2-center::before,
.battle-report-expanded .report-v2-center::after,
.battle-report-expanded .report-v2-roster::before,
.battle-report-expanded .report-v2-roster::after,
.battle-report-expanded .report-v2-motto::before,
.battle-report-expanded .report-v2-motto::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
