/* Opaque heat introduction; portraits are refreshed by public-bracket.js. */
#bracketHeatModal { --heat-navy: #0c2138; --heat-muted: #b6c9dc; }
#bracketHeatModal .modal-content { border: 1px solid #ffffff35; border-radius: 18px; overflow: hidden; background: var(--heat-navy); box-shadow: 0 24px 80px #07132155; }
#bracketHeatModal .modal-header { position: relative; z-index: 3; padding: 0; border: 0; height: 0; min-height: 0; }
#bracketHeatModal .modal-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#bracketHeatModal .modal-header .btn-close { position: absolute; top: 16px; right: 18px; margin: 0; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; opacity: 1; background: #10273e; color: #fff; }
#bracketHeatModal .modal-header .btn-close::before, #bracketHeatModal .modal-header .btn-close::after { content: ''; position: absolute; top: 17px; left: 10px; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
#bracketHeatModal .modal-header .btn-close::after { transform: rotate(-45deg); }
#bracketHeatModal .btn-close:focus-visible { outline: 3px solid #73d9e3; outline-offset: 3px; }
#bracketHeatModal .modal-body { padding: 0 0 18px; background: var(--heat-navy); }
#bracketHeatModal [data-heat-detail-status]:empty { display: none; }
#bracketHeatModal [data-heat-detail-status] { margin: 24px 70px 20px 24px; color: #fff; }
#bracketHeatModal [data-heat-detail-retry] { margin: 16px 24px; }
.heat-presentation { color: #fff; background: #0c2138; padding: 28px 20px 18px; }
.heat-presentation-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 10px 22px; padding-right: 16px; }
.heat-presentation-eyebrow { margin: 0 0 10px; padding-right: 30px; font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #73d9e3; }
.heat-presentation h3 { margin: 0 0 6px; color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 800; }
.heat-presentation-subtitle { margin: 0; font-size: 16px; line-height: 1.45; color: #c6d4e4; }
.heat-presentation-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; border: 1px solid #8a9cb0; border-radius: 30px; padding: 8px 16px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: #eef4fb; }
.heat-presentation-status > span { width: 8px; height: 8px; border-radius: 50%; background: #b7c7da; }
.heat-presentation-status--active > span { background: #6cdefa; }
.heat-presentation-status--finished > span { background: #7ce6b2; }
.heat-presentation-status--paused > span { background: #ffda76; }
.heat-presentation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.heat-presentation-grid[data-athlete-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 680px; margin: 0 auto; }
.heat-presentation-grid[data-athlete-count="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.heat-presentation-grid[data-athlete-count="1"] { grid-template-columns: minmax(0, 320px); justify-content: center; }
.heat-presentation-athlete { --lane: #080d13; min-width: 0; overflow: hidden; border: 1px solid #ffffff30; border-top: 6px solid var(--lane); border-radius: 10px; background: #142d45; display: flex; flex-direction: column; }
.heat-presentation-athlete--vermelho { --lane: #ef3047; }
.heat-presentation-athlete--azul { --lane: #126be6; }
.heat-presentation-athlete--verde { --lane: #16803d; }
.heat-presentation-athlete--amarelo { --lane: #ffd329; }
.heat-presentation-lane { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: #fff; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.heat-presentation-lane > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.heat-presentation-lane > span:first-child::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--lane); border: 1px solid #ffffff60; }
.heat-presentation-portrait { position: relative; display: flex; align-items: flex-end; justify-content: center; height: clamp(210px, 24vw, 290px); overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #24445f 0%, #142d45 75%); }
.heat-presentation-portrait img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.heat-presentation-portrait img.heat-presentation-locked { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: auto; max-width: none; height: 160%; object-fit: contain; object-position: center top; }
.heat-presentation-question { position: absolute; top: 48%; left: 50%; transform: translate(-50%,-50%); color: #edfaff; font: 800 clamp(54px,6vw,90px)/1 "Arial",sans-serif; text-shadow: 0 3px 20px #041523; }
.heat-presentation-athlete--eliminated .heat-presentation-portrait { background: radial-gradient(ellipse at 50% 55%, #456781 0%, #2a465e 75%); }
.heat-presentation-athlete--eliminated .heat-presentation-portrait img[data-live-photo] { filter: brightness(1.12); }
.heat-presentation-athlete--eliminated .heat-presentation-identity { background: #233d52; }
.heat-presentation-athlete--eliminated .heat-presentation-identity p { color: #d3e1eb; }
.heat-presentation-identity .heat-presentation-outcome { margin: 0 0 5px; color: #dcebf5; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.heat-presentation-photo-note { position: absolute; bottom: 16px; padding: 5px 10px; border: 1px solid #ffffff30; border-radius: 6px; background: #0c2138e6; color: #e4edf5; font-size: 11px; }
.heat-presentation-identity { flex: 1; position: relative; min-height: 78px; padding: 13px 14px 15px; border-top: 1px solid #ffffff12; background: #0a1c2d; }
.heat-presentation-identity h4 { margin: 0; color: #fff; font-size: 17px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.heat-presentation-identity p { margin: 5px 0 0; color: #b6c9dc; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.heat-presentation-note { margin: 0 24px 2px; color: #b6c9dc; font-size: 13px; }
.heat-presentation-waiting { margin: 0; color: #c6d4e4; }
#bracketHeatModal .heat-presentation-results { margin: 0 20px; padding: 20px; background: #fff; border: 1px solid #d8e1ed; border-radius: 12px; color: #0c2138; }
#bracketHeatModal .heat-presentation-results > h3 { color: #0c2138; font-size: 22px; font-weight: 800; margin-bottom: 12px; }
#bracketHeatModal .heat-presentation-results > article { border-bottom: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
#bracketHeatModal .heat-presentation-results article > h5 { display: none; }
#bracketHeatModal .heat-presentation-results th { background: #f1f5f9; color: #39516c; text-transform: none; font-size: 12px; }
#bracketHeatModal .heat-presentation-results td { vertical-align: middle; font-size: 13px; }
#bracketHeatModal .heat-presentation-results .history-average { font-size: 17px; }
#bracketHeatModal .heat-presentation-results td:nth-last-child(2) { font-weight: 800; font-size: 17px; color: #0c2138; }
@media (max-width: 600px) {
    #bracketHeatModal .modal-dialog.modal-dialog-scrollable { margin: 10px auto; padding: 0 8px; max-height: calc(100% - 20px); }
    #bracketHeatModal .modal-header .btn-close { top: 12px; right: 12px; }
    #bracketHeatModal .modal-content { border-radius: 12px; }
    #bracketHeatModal .heat-presentation-results { margin: 0 12px; padding: 16px 12px; }
    #bracketHeatModal .heat-presentation-results > h3 { font-size: 20px; }
    .heat-presentation { padding: 24px 12px 16px; }
    .heat-presentation-header { display: block; margin: 0 0 16px; padding-right: 0; }
    .heat-presentation-eyebrow { font-size: 10px; padding-right: 45px; }
    .heat-presentation h3 { padding-right: 32px; }
    .heat-presentation-subtitle { font-size: 13px; }
    .heat-presentation-status { margin: 12px 0 0; padding: 5px 10px; font-size: 11px; }
    .heat-presentation-grid, .heat-presentation-grid[data-athlete-count="3"] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .heat-presentation-portrait { height: clamp(150px, 44vw, 230px); }
    .heat-presentation-lane { padding: 9px 8px; font-size: 10px; }
    .heat-presentation-lane > span:first-child { gap: 5px; }
    .heat-presentation-lane > span:first-child::before { width: 11px; height: 11px; }
    .heat-presentation-identity { min-height: 82px; padding: 11px 10px; }
    .heat-presentation-identity h4 { font-size: 14px; }
    .heat-presentation-identity p { font-size: 11px; }
    .heat-presentation-photo-note { font-size: 10px; padding: 4px 6px; }
    .heat-presentation-note { margin: 0 12px; font-size: 12px; }
}
#bracketHeatModal .heat-presentation-results .table.kp-table thead th { background: #f1f5f9; }
#bracketHeatModal .heat-presentation-results .table.kp-table tbody td { color: #435970; }
#bracketHeatModal .heat-presentation-results .table.kp-table tbody td:nth-last-child(2) { color: #0c2138; }
#bracketHeatModal .heat-presentation-results .text-muted { color: #60748c !important; }
#bracketHeatModal .heat-presentation-results .history-average.dropped { color: #77889d; }

.heat-presentation-athlete--branco{--lane:#fff}
