/* Two independent rank columns share the same global ordering. */
.booth-score-columns{min-width:0}.booth-second-column,.booth-announcement{display:none}
.leaderboard-active .booth-score-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(18px,1.6vw,32px);flex:1;min-height:0}
.leaderboard-active .booth-score-columns.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.leaderboard-active .booth-score-columns>.board-table-wrap{height:100%;min-height:0;min-width:0;overflow:hidden}
.leaderboard-active .booth-score-columns .board-table{height:100%;row-gap:8px}
.leaderboard-active .booth-score-columns .board-table tbody{grid-template-rows:repeat(var(--booth-rows,10),minmax(0,1fr))}
.leaderboard-active .booth-score-columns .board-table tbody tr{display:grid}
.leaderboard-active .booth-score-columns .board-table th,.leaderboard-active .booth-score-columns .board-table td{padding-left:8px;padding-right:8px;line-height:1.15}
.leaderboard-active .booth-score-columns.two-columns .board-table.has-tiers tr{grid-template-columns:7% minmax(0,1fr) 17% 14% 23%}
.leaderboard-active .booth-score-columns.two-columns .board-table th,.leaderboard-active .booth-score-columns.two-columns .board-table td{padding-left:12px;padding-right:12px}
.leaderboard-active .booth-score-columns.two-columns .board-table th:nth-child(4),.leaderboard-active .booth-score-columns.two-columns .board-table td:nth-child(4){text-align:center;justify-content:center}
.leaderboard-active .booth-score-columns.two-columns .board-table th:last-child,.leaderboard-active .booth-score-columns.two-columns .board-table td:last-child{text-align:right;justify-content:flex-end;padding-right:18px}
.leaderboard-active .booth-score-columns.two-columns .board-table td{font-size:clamp(18px,2.4vh,26px)}
.leaderboard-active .booth-score-columns.two-columns .board-table td:last-child{font-size:clamp(16px,1.95vh,22px);letter-spacing:-.4px}
.leaderboard-active .booth-score-columns.two-columns .board-table th{font-size:clamp(9px,1.05vh,12px);letter-spacing:.6px}
/* Explicit icon boxes avoid inline-image baselines making badges taller than rows. */
.leaderboard-active .booth-score-columns .tier-badge{height:clamp(28px,3.2vh,36px);box-sizing:border-box;padding:0 8px;gap:5px;border-radius:8px;line-height:1;flex:none;align-self:center}
.leaderboard-active .booth-score-columns .tier-badge>span:first-child{display:flex;align-items:center;justify-content:center;flex:none;width:20px;height:24px;font-size:0;line-height:0}
.leaderboard-active .booth-score-columns .tier-badge img{display:block;width:20px;height:24px;object-fit:contain}
.leaderboard-active .booth-score-columns .tier-name{font-size:clamp(10px,1.15vh,13px);line-height:1}
.leaderboard-active .booth-score-columns .board-table tbody tr:first-child{background:transparent}
.leaderboard-active .booth-score-columns .board-table tbody tr:first-child td:first-child{color:var(--muted);font-weight:500}
.leaderboard-active #board-table tbody tr:first-child{background:#eaf5ee}
.leaderboard-active #board-table tbody tr:first-child td:first-child{color:var(--green);font-weight:800}
.leaderboard-active .booth-score-columns.two-columns .booth-second-column{display:block}
/* Reserve one compact line: announcements never cover a name or shift rows. */
.leaderboard-active .booth-announcement{display:flex;align-items:center;gap:15px;flex:0 0 auto;height:clamp(48px,5.5vh,60px);min-width:0;margin-top:10px;padding:0 18px;border:1px solid transparent;border-radius:12px;opacity:0;transform:translateY(5px);transition:opacity .18s,transform .18s;pointer-events:none;overflow:hidden}
.leaderboard-active .booth-announcement.is-visible{opacity:1;transform:none;background:#edf7f5;border-color:#c5e1d8;box-shadow:0 4px 18px #14467a08}
.booth-announcement-label{font-size:clamp(11px,1.3vh,14px);font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--teal);white-space:nowrap;flex:none}
.booth-announcement-items{display:flex;gap:22px;min-width:0;flex:1}
.booth-score-item{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:clamp(16px,2.1vh,23px);white-space:nowrap;line-height:1.3}
.booth-score-item strong{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--blue)}
.booth-score-item b{font-weight:700;flex:none;color:var(--teal);font-variant-numeric:tabular-nums}
.notice-time{flex:none;color:var(--muted);font-size:.85em;font-variant-numeric:tabular-nums}
@media(max-height:750px){.leaderboard-active .booth-announcement{margin-top:6px;height:44px}}
@media(prefers-reduced-motion:reduce){.leaderboard-active .booth-announcement{transition:none;transform:none}}
.no-grid .leaderboard-active .booth-score-columns{display:flex}.no-grid .leaderboard-active .booth-score-columns>.board-table-wrap{flex:1}

/* Equal-width period segments fill the leaderboard; the booth remains a passive display. */
.board-period-bar{width:100%;margin:0 0 20px;min-width:0}
.board-periods{display:flex;width:100%;box-sizing:border-box;align-items:stretch;gap:4px;padding:4px;border:1px solid #dce7ec;border-radius:12px;background:#f3f7f9}
.board-periods button{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:40px;margin:0;padding:8px 18px;border:0;border-radius:8px;background:transparent;color:#526b7e;font:600 14px/1.25 "Bricolage Grotesque",Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap;box-shadow:none;text-align:center}
.board-periods button[aria-pressed="true"]{background:#14467a;color:#fff;box-shadow:0 2px 5px #14467a14}
.board-periods button:focus-visible{outline:3px solid #008181;outline-offset:2px}
.board-period-caption{display:none}
.leaderboard-active .board-period-bar{flex:none;margin-bottom:14px;gap:8px 18px}
.booth-period-label{display:none}
.leaderboard-active .board-periods{display:none}
.leaderboard-active .booth-period-label{display:inline-flex;align-items:center;margin:0;padding:7px 12px;border:1px solid #cfe4e4;border-radius:8px;background:#edf6f6;color:#008181;font-size:clamp(13px,1.7vh,18px);font-weight:700;line-height:1.35}
@media(max-width:600px){.board-period-bar{display:block}.board-periods{width:100%;box-sizing:border-box}.board-periods button{padding:9px 12px}}
@media(min-width:900px) and (max-height:750px){.leaderboard-active .board-period-bar{margin-bottom:8px}.leaderboard-active .booth-period-label{padding:5px 10px;font-size:13px}}
/* Period context belongs with the event date, not in a second navigation row. */
.board-date-context{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.mobile-leaderboard-active .board-date-context{display:none}
.leaderboard-active .board-period-bar{display:none}
.leaderboard-active .board-date-context .booth-period-label{margin:0;padding:8px 13px;border-radius:999px;background:#fff;border:1px solid #c6dfe0;color:#008181;font-size:clamp(12px,1.6vh,17px);font-weight:700;line-height:1.2;white-space:nowrap}
.booth-highlight{display:none}
.leaderboard-active .booth-highlight{display:flex;align-items:center;gap:16px;flex:0 0 auto;min-height:58px;margin:0 0 16px;padding:11px 16px;border:1px solid #cde2e4;border-radius:15px;background:linear-gradient(100deg,#edf8f6,#f3f6fb);box-shadow:0 3px 14px #14467a04;min-width:0}
.booth-highlight-label{flex:none;padding:6px 10px;border-radius:999px;border:1px solid #b7dcd8;background:#e2f2ef;color:#087a79;font-size:clamp(10px,1.15vh,13px);font-weight:700;letter-spacing:.7px;text-transform:uppercase;line-height:1.25;white-space:nowrap}
#highlight-text{flex:1;min-width:0;margin:0;color:#19394f;font-size:clamp(15px,1.9vh,21px);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.highlight-dots{display:flex;flex:none;gap:5px;align-items:center}
.highlight-dots span{width:6px;height:6px;background:#c2d3de;border-radius:50%}
.highlight-dots span.active{background:#008181}
.booth-highlight-label,#highlight-text{opacity:1;transform:translateY(0);transition:opacity .22s ease,transform .22s ease}
.booth-highlight[data-transition="exit"] .booth-highlight-label,.booth-highlight[data-transition="exit"] #highlight-text{opacity:0;transform:translateY(-4px)}
.booth-highlight[data-transition="enter"] .booth-highlight-label,.booth-highlight[data-transition="enter"] #highlight-text{animation:highlight-arrive .48s cubic-bezier(.2,.65,.3,1) both}
.highlight-dots span{transition:background-color .35s ease}
@keyframes highlight-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.booth-highlight-label,#highlight-text,.highlight-dots span{animation:none!important;transition:none!important;transform:none!important}}
@media(min-width:900px) and (max-height:750px){.leaderboard-active .booth-highlight{min-height:46px;margin-bottom:10px;padding:8px 12px;gap:11px}.booth-highlight-label{font-size:10px;padding:5px 8px}#highlight-text{font-size:15px}.leaderboard-active .board-date-context .booth-period-label{padding:6px 10px;font-size:12px}}
@media(max-width:899px){.leaderboard-active .booth-highlight{gap:10px;flex-wrap:wrap}#highlight-text{flex-basis:65%}.highlight-dots{margin-left:auto}}
