/* CICS Fest 2026 — public scoreboard
   Night-stadium maroon, gold for first place, each event in its own color. */

:root {
  --maroon: #7A1020;
  --night: #2B050D;
  --night-2: #3A0914;
  --night-3: #4C0F1D;
  --line: rgba(255, 236, 226, 0.13);
  --text: #FFF4EE;
  --muted: #D9B9B5;
  --faint: #A9817E;
  --gold: #F2B630;
  --silver: #C9CED6;
  --bronze: #D08A55;
  --accent: #7A1020;
  --accent-ink: #fff;
  --accent-deep: #44080F;
  --accent-soft: #E8C4C9;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--night);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold); color: var(--night); font-family: var(--display); font-weight: 900; font-size: 18px;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1.2; }
.toplinks { display: flex; gap: 6px; flex-wrap: wrap; }
.toplinks a {
  text-decoration: none; font-size: 14px; color: var(--muted); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.toplinks a:hover { color: var(--text); border-color: rgba(255,236,226,.35); }

/* ---------- hero ---------- */
.hero { padding: 36px 0 28px; position: relative; }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 168px); line-height: .82; letter-spacing: -.01em; margin: 0;
}
.hero h1 .yr { color: var(--gold); display: block; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-meta strong { color: var(--text); font-weight: 600; }
.progress-line { margin-top: 26px; height: 6px; background: var(--night-3); border-radius: 99px; overflow: hidden; max-width: 420px; }
.progress-line span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.progress-note { font-size: 13px; color: var(--faint); margin-top: 8px; }

/* ---------- section headings ---------- */
.sec { padding: 28px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(30px, 5vw, 44px); line-height: 1; margin: 0;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 14px; }
.live-stamp { font-size: 13px; color: var(--faint); display: inline-flex; align-items: center; gap: 7px; }
.live-stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61,214,140,.18); }

/* ---------- overall race lanes (the signature element) ---------- */
.lanes { display: grid; gap: 10px; }
.lane {
  --team: #888;
  position: relative; display: grid; align-items: center;
  grid-template-columns: 92px 1fr auto; gap: 18px;
  padding: 14px 22px 14px 0; min-height: 104px;
  background: var(--night-2); border-radius: 16px; overflow: hidden; isolation: isolate;
}
.lane-fill {
  position: absolute; inset: 0 auto 0 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--team) 55%, transparent), color-mix(in srgb, var(--team) 22%, transparent));
  border-right: 3px solid var(--team);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.lane-num {
  font-family: var(--display); font-weight: 900; font-size: 104px; line-height: .8; text-align: center;
  color: var(--team); text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.lane-team { min-width: 0; }
.lane-team h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.15; }
.lane-team .medals { margin-top: 6px; display: flex; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.medal { display: inline-flex; align-items: center; gap: 5px; }
.medal i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.medal.g i { background: var(--gold); } .medal.s i { background: var(--silver); } .medal.b i { background: var(--bronze); }
.lane-pts { text-align: right; }
.lane-pts b { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; display: block; font-variant-numeric: tabular-nums; }
.lane-pts span { font-size: 12px; color: var(--muted); }
.lane.leader { box-shadow: inset 0 0 0 2px var(--gold); }
.lane .rank-tag {
  position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 700; color: var(--night);
  background: var(--gold); padding: 2px 9px; border-radius: 99px; display: none;
}
.lane.leader .rank-tag { display: none; }
.empty-note { color: var(--muted); padding: 22px; background: var(--night-2); border-radius: 16px; }

/* ---------- schedule / events ---------- */
.day-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.day-tabs button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.day-tabs button[aria-selected="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
.day-title { font-size: 14px; color: var(--muted); margin: 18px 0 8px; }

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center;
  text-decoration: none; padding: 14px 18px 14px 26px; background: var(--night-2); border-radius: 12px;
  border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.ev::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-radius: 12px 0 0 12px;
  background: var(--accent);
}
.ev:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--night-3); }
.ev-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.ev-sub { font-size: 13px; color: var(--muted); }
.ev-right { text-align: right; display: grid; justify-items: end; gap: 4px; }
.ev-win { font-size: 13px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.ev-win i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.upcoming { background: rgba(255,244,238,.08); color: var(--muted); }
.pill.live { background: #3DD68C; color: #0B2A1A; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0B2A1A; animation: blink 1.4s infinite; }
.pill.finished { background: rgba(242,182,48,.16); color: var(--gold); }
@keyframes blink { 50% { opacity: .2; } }

.group-chip { font-size: 12px; color: var(--muted); }

/* ---------- event page ---------- */
body.themed { background: var(--accent-deep); }
.ev-hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 60%, white 0%) 0%, transparent 60%),
    var(--accent);
  color: var(--accent-ink);
  padding-bottom: 34px;
}
.ev-hero .toplinks a { color: inherit; border-color: color-mix(in srgb, var(--accent-ink) 25%, transparent); }
.ev-hero .brand small { color: inherit; opacity: .75; }
.ev-hero .brand-mark { background: var(--accent-ink); color: var(--accent); }
.crumbs { font-size: 14px; margin-top: 24px; opacity: .85; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.ev-hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 10vw, 120px); line-height: .86; margin: 10px 0 0; max-width: 14ch; overflow-wrap: anywhere; hyphens: auto;
}
.ev-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; font-size: 15px; }
.ev-facts span { opacity: .8; margin-right: 6px; }
.ev-hero .pill.upcoming { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: inherit; }
.ev-hero .pill.finished { background: var(--accent-ink); color: var(--accent); }
.siblings { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.siblings a {
  font-size: 13px; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent);
}
.siblings a[aria-current="page"] { background: var(--accent-ink); color: var(--accent); border-color: transparent; font-weight: 700; }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; margin-top: 8px; }
.step { text-align: center; }
.step .who { padding: 0 6px 12px; }
.step .who b { display: block; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.step .who small { color: var(--accent-soft); font-size: 13px; }
.step .block {
  border-radius: 14px 14px 4px 4px; display: grid; place-items: center; padding: 14px 6px;
  font-family: var(--display); font-weight: 900; color: var(--night);
}
.step .block em { font-style: normal; font-size: 64px; line-height: .9; }
.step .block span { font-family: var(--body); font-size: 13px; font-weight: 700; opacity: .75; }
.step.p1 .block { background: var(--gold); min-height: 190px; }
.step.p2 .block { background: var(--silver); min-height: 140px; }
.step.p3 .block { background: var(--bronze); min-height: 108px; }
.step.vacant .block { background: rgba(255,255,255,.06); color: var(--muted); }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.panel { background: color-mix(in srgb, var(--accent-deep) 70%, black 30%); border-radius: 16px; padding: 4px 0; }
body:not(.themed) .panel { background: var(--night-2); }

.ranks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranks th, .ranks td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranks th { font-size: 12px; font-weight: 600; color: var(--muted); }
.ranks tr:last-child td { border-bottom: 0; }
.ranks .num { text-align: right; }
.ranks .rk { font-family: var(--display); font-weight: 900; font-size: 28px; width: 64px; }
.ranks .rk.r1 { color: var(--gold); } .ranks .rk.r2 { color: var(--silver); } .ranks .rk.r3 { color: var(--bronze); }
.ranks .total { font-family: var(--display); font-weight: 800; font-size: 26px; }
.ranks .sub { display: block; font-size: 12px; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.matches { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent-deep) 70%, black 30%); }
.match .side { font-weight: 600; }
.match .side.b { text-align: right; }
.match .side.won { color: var(--gold); }
.match .score { font-family: var(--display); font-weight: 900; font-size: 30px; text-align: center; min-width: 92px; }
.match .rnd { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }

.note { color: var(--muted); font-size: 14px; }
.waiting {
  padding: 40px 24px; text-align: center; border-radius: 16px;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.waiting b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; }

footer.site { padding: 40px 0 50px; color: var(--faint); font-size: 13px; }
footer.site a { color: var(--muted); }

/* ---------- projector display ---------- */
body.display { overflow: hidden; height: 100vh; }
.dsp { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 3vh 3vw; gap: 2.5vh; }
.dsp-head { display: flex; justify-content: space-between; align-items: end; gap: 2vw; }
.dsp-head h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 7vh; line-height: .9; }
.dsp-head h1 .yr { color: var(--gold); }
.dsp-head .sub { font-size: 2.2vh; color: var(--muted); }
.dsp-clock { font-family: var(--display); font-weight: 800; font-size: 6vh; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.dsp-clock small { display: block; font-family: var(--body); font-weight: 500; font-size: 1.8vh; color: var(--muted); }
.dsp .lanes { gap: 1.6vh; align-content: center; }
.dsp .lane { min-height: 0; height: 15vh; grid-template-columns: 14vh 1fr auto; padding-right: 3vw; border-radius: 2vh; }
.dsp .lane-num { font-size: 14vh; }
.dsp .lane-team h3 { font-size: 4.2vh; }
.dsp .lane-team .medals { font-size: 2.2vh; }
.dsp .medal i { width: 1.6vh; height: 1.6vh; }
.dsp .lane-pts b { font-size: 10vh; }
.dsp .lane-pts span { font-size: 2vh; }
.dsp-foot { display: flex; gap: 1vw; align-items: center; font-size: 2.2vh; color: var(--muted); flex-wrap: wrap; }
.dsp-foot .pill { font-size: 2vh; padding: .4vh 1.2vh; }
.dsp-foot .live-ev { display: inline-flex; align-items: center; gap: .8vh; padding: .6vh 1.4vh; border-radius: 99px; background: var(--night-2); color: var(--text); }
.dsp-foot .live-ev i { width: 1.4vh; height: 1.4vh; border-radius: 50%; background: var(--accent); }

.dsp-ev { height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.dsp-ev-head { background: var(--accent); color: var(--accent-ink); padding: 3vh 3vw; display: flex; justify-content: space-between; align-items: end; gap: 2vw; }
.dsp-ev-head h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 9vh; line-height: .88; }
.dsp-ev-head .sub { font-size: 2.2vh; opacity: .85; }
.dsp-ev-body { padding: 3vh 3vw; display: grid; align-content: center; gap: 1.4vh; }
.dsp-row { display: grid; grid-template-columns: 12vh 1fr auto; gap: 2vw; align-items: center; background: color-mix(in srgb, var(--accent-deep) 70%, black 30%); border-radius: 1.6vh; padding: 1.4vh 3vw 1.4vh 0; }
.dsp-row .rk { font-family: var(--display); font-weight: 900; font-size: 8vh; text-align: center; line-height: 1; color: var(--muted); }
.dsp-row.r1 .rk { color: var(--gold); } .dsp-row.r2 .rk { color: var(--silver); } .dsp-row.r3 .rk { color: var(--bronze); }
.dsp-row .nm { font-size: 3.8vh; font-weight: 700; line-height: 1.15; }
.dsp-row .nm small { display: block; font-size: 2vh; color: var(--muted); font-weight: 500; }
.dsp-row .val { font-family: var(--display); font-weight: 900; font-size: 7vh; font-variant-numeric: tabular-nums; }
.dsp-ev .waiting b { font-size: 6vh; }
.dsp-ev .waiting { font-size: 2.4vh; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .lane { grid-template-columns: 62px 1fr auto; gap: 12px; padding-right: 16px; min-height: 86px; }
  .lane-num { font-size: 72px; }
  .lane-team h3 { font-size: 18px; }
  .lane-pts b { font-size: 44px; }
  .ev { grid-template-columns: 1fr; padding: 14px 16px 14px 24px; }
  .ev-right { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 10px; }
  .podium { gap: 6px; }
  .step .who b { font-size: 15px; }
  .step .block em { font-size: 44px; }
  .step.p1 .block { min-height: 150px; } .step.p2 .block { min-height: 112px; } .step.p3 .block { min-height: 86px; }
  .ranks th, .ranks td { padding: 10px 12px; }
  .match { grid-template-columns: 1fr; text-align: center; }
  .match .side.b { text-align: center; }
  .toplinks a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- pageant: photos, awards, candidates ---------- */
.podium-photo { width: 92px; height: 115px; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto 8px; border: 3px solid rgba(255,255,255,.85); }
.step.p1 .podium-photo { width: 120px; height: 150px; border-color: var(--gold); }
.awards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.awards li { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent-deep) 70%, black 30%); border-left: 4px solid var(--gold); }
.awards span { display: block; font-size: 13px; color: var(--muted); }
.awards b { font-size: 17px; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery li { text-align: center; }
.gallery b { display: block; margin-top: 8px; line-height: 1.2; }
.gallery small { color: var(--muted); font-size: 13px; }
.g-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--accent) 35%, var(--accent-deep)); display: grid; place-items: center; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; }
.g-photo > span { font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--accent-soft); }
.g-no { position: absolute; left: 8px; top: 8px; font-style: normal; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; background: var(--accent); color: var(--accent-ink); padding: 4px 8px; border-radius: 8px; }
.gallery li.is-finalist .g-photo { box-shadow: 0 0 0 3px var(--gold); }

/* ---------- coronation screen ---------- */
body.reveal-body { background: radial-gradient(120vh 90vh at 50% 10%, color-mix(in srgb, var(--accent) 45%, #12030a) 0%, color-mix(in srgb, var(--accent-deep) 60%, #12030a) 55%, #0c0206 100%); }
.rv { height: 100vh; overflow: hidden; position: relative; }
.rv-stage { height: 100vh; display: grid; align-content: center; justify-items: center; padding: 4vh 4vw; gap: 3vh; text-align: center; animation: rvIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(3vh) scale(.98); } to { opacity: 1; transform: none; } }
.rv-center { display: grid; justify-items: center; gap: 2vh; }
.rv-kicker { margin: 0; font-size: 2.6vh; letter-spacing: .04em; color: var(--accent-soft); }
.rv-title { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 16vh; line-height: .85; }
.rv-title span { display: block; color: var(--gold); }
.rv-sub { margin: 0; font-size: 3.2vh; color: var(--muted); }
.rv-head { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 8vh; line-height: .9; }
.rv-place { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 11vh; line-height: .9; color: var(--gold); text-shadow: 0 .6vh 3vh rgba(0,0,0,.35); }
.rv-row { display: flex; gap: 4vw; justify-content: center; flex-wrap: wrap; }
.rv-grid { display: flex; gap: 2.4vw; justify-content: center; flex-wrap: wrap; max-width: 92vw; }
.rv-person { margin: 0; display: grid; justify-items: center; gap: 1.4vh; }
.rv-photo { border-radius: 2.4vh; overflow: hidden; background: rgba(255,255,255,.08); display: grid; place-items: center; box-shadow: 0 2vh 5vh rgba(0,0,0,.4); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; }
.rv-photo span { font-family: var(--display); font-weight: 900; color: var(--accent-soft); }
.rv-person figcaption { display: grid; gap: .4vh; }
.rv-person small { font-size: 2vh; color: var(--accent-soft); }
.rv-person b { font-weight: 700; line-height: 1.1; }
.rv-person figcaption > span { color: var(--muted); }
.rv-xl .rv-photo { width: 34vh; height: 42vh; border: .6vh solid var(--gold); }
.rv-xl .rv-photo span { font-size: 20vh; }
.rv-xl b { font-size: 6vh; }
.rv-xl figcaption > span { font-size: 2.6vh; }
.rv-lg .rv-photo { width: 28vh; height: 35vh; border: .4vh solid rgba(255,255,255,.7); }
.rv-lg .rv-photo span { font-size: 16vh; }
.rv-lg b { font-size: 4.6vh; }
.rv-lg figcaption > span { font-size: 2.4vh; }
.rv-md .rv-photo { width: 20vh; height: 25vh; }
.rv-md .rv-photo span { font-size: 11vh; }
.rv-md b { font-size: 3vh; }
.rv-md figcaption > span { font-size: 2vh; }
.rv-sm { grid-template-columns: auto 1fr; text-align: left; align-items: center; justify-items: start; column-gap: 1.6vh; }
.rv-sm .rv-photo { width: 8vh; height: 10vh; border-radius: 1.2vh; }
.rv-sm .rv-photo span { font-size: 5vh; }
.rv-sm b { font-size: 2.6vh; }
.rv-sm small { font-size: 1.6vh; }
.rv-sm figcaption > span { font-size: 1.8vh; }
.rv-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(36vh, 46vh)); justify-content: center; gap: 2vh 2vw; width: min(100%, 160vh); }
.rv-award { background: rgba(0,0,0,.25); border-radius: 2vh; padding: 2vh 2.4vh; text-align: left; border-left: .6vh solid var(--gold); animation: rvIn .8s both; }
.rv-award:nth-child(2) { animation-delay: .25s; } .rv-award:nth-child(3) { animation-delay: .5s; } .rv-award:nth-child(4) { animation-delay: .75s; }
.rv-award:nth-child(5) { animation-delay: 1s; } .rv-award:nth-child(6) { animation-delay: 1.25s; } .rv-award:nth-child(n+7) { animation-delay: 1.5s; }
.rv-award p { margin: 0 0 1.2vh; font-size: 2.2vh; color: var(--gold); font-weight: 700; }
.rv-award-who { display: grid; gap: 1vh; }
.rv-summary { display: flex; gap: 4vw; align-items: flex-end; justify-content: center; }
.rv-sum-col p { margin: 1.4vh 0 0; font-size: 2.6vh; color: var(--gold); font-weight: 700; }
.rv-award-line { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1vh 2.4vw; justify-content: center; font-size: 2.1vh; max-width: 90vw; }
.rv-award-line span { color: var(--gold); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -4vh; left: calc(var(--x) * 1%); width: 1vh; height: 2vh; background: hsl(var(--h) 85% 60%); border-radius: .2vh; animation: fall 4.5s linear var(--d) infinite; opacity: .9; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- logos ---------- */
.brand-logos, .hero-logos, .dsp-logos, .rv-logos { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-logos img { height: 38px; width: auto; max-width: 60px; object-fit: contain; }
.hero-logos { gap: 14px; margin-bottom: 20px; }
.hero-logos img { height: clamp(56px, 9vw, 92px); width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.dsp-title { display: flex; align-items: center; gap: 2vw; }
.dsp-logos { gap: 1vw; }
.dsp-logos img { height: 10vh; width: auto; object-fit: contain; filter: drop-shadow(0 .3vh 1vh rgba(0,0,0,.35)); }
.rv-logos { gap: 3vh; margin-bottom: 1vh; }
.rv-logos img { height: 16vh; width: auto; object-fit: contain; filter: drop-shadow(0 .5vh 2vh rgba(0,0,0,.45)); }
.rv-logos-sm img { height: 8vh; }
@media (max-width: 720px) { .brand-logos img { height: 32px; } }

/* ---------- texture: circuit traces and a turning gear (computing theme, from the CICS seal) ---------- */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(brand/circuit.svg) 0 0 / 220px 220px repeat; opacity: .06;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(130% 90% at 50% 0%, #000 30%, transparent 85%);
}
body.themed::before, body.reveal-body::before { opacity: .05; }
.hero, .ev-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero { overflow: visible; }
.hero::after, .ev-hero::after, .dsp::after, .auth-gear::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url(brand/gear.svg) center / contain no-repeat;
  animation: gearTurn 120s linear infinite;
}
.hero::after { width: min(560px, 70vw); aspect-ratio: 1; right: -8%; top: -60px; opacity: .10; }
.ev-hero::after { width: 520px; aspect-ratio: 1; right: -120px; top: -140px; opacity: .16; filter: brightness(3) saturate(0); }
.dsp { position: relative; isolation: isolate; overflow: hidden; }
.dsp::after { width: 70vh; aspect-ratio: 1; right: -18vh; bottom: -22vh; opacity: .07; }
@keyframes gearTurn { to { transform: rotate(360deg); } }

/* hero: a warm glow behind the title */
.hero::before {
  content: ""; position: absolute; inset: -40px -10% auto -10%; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 25% 40%, rgba(122,16,32,.75), transparent 70%);
}

/* section titles get a short gold rule */
.sec-head h2 { position: relative; padding-bottom: 10px; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); }
body.themed .sec-head h2::after { background: var(--gold); }

/* lanes: fine diagonal stripes on the fill, like a race lane */
.lane-fill { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 10px, transparent 10px 22px), linear-gradient(90deg, color-mix(in srgb, var(--team) 55%, transparent), color-mix(in srgb, var(--team) 22%, transparent)); }
.lane { border: 1px solid rgba(255,236,226,.06); }

/* event rows: a soft glow in the event's color */
.ev { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--night-2)) 0%, var(--night-2) 45%); }

/* footer band */
footer.site { border-top: 1px solid var(--line); margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
footer.site .foot-logos img { height: 34px; width: auto; }
footer.site .foot-logos { display: inline-flex; gap: 6px; }
.foot-org { color: var(--muted); }
.foot-org b { color: var(--text); font-weight: 600; display: block; }

@media (prefers-reduced-motion: reduce) { .hero::after, .ev-hero::after, .dsp::after, .auth-gear::after { animation: none; } }
