:root {
  color-scheme: light;
  --body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --latin: "Segoe UI", Arial, var(--body);
  --ink: #14294f;
  --score-track: #f2f6fa;
  --score-bar: linear-gradient(96deg, #cbdff4, #b3e6ed);
  --score-edge: #4d9db978;
  --ease: cubic-bezier(.2, .72, .22, 1);
  font-family: var(--body);
  color: var(--ink);
  background: #edf3fc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.stage {
  width: min(100%, 177.7778dvh);
  aspect-ratio: 16 / 9;
  margin: auto;
  container-type: inline-size;
  --screen: #101e3e;
  --screen-ink: #f6faff;
  --muted: #c1d1ec;
  --accent: #63e4f3;
  --panel: #192d54;
  --rank-panel: #17284a;
  --rank-line: #32496c;
  --rank-ink: #f4f8ff;
  --rank-accent: #8ce8f3;
  --footer: #142747;
  color: var(--screen-ink);
}
body:has(.stage:not([hidden])) { min-height: 100dvh; display: grid; place-items: center; background: #fff; }
body:has(.stage[data-design="b"]:not([hidden])) { background: #00499a; }
.board-page {
  height: 56.25cqw;
  display: grid;
  grid-template-rows: 3.5cqw 11.8cqw minmax(0, 1fr) 3.9cqw;
  padding: 2.3cqw 3.85cqw 1.8cqw;
  background: var(--screen);
  overflow: hidden;
}
.masthead, .mast-tools, .panel-heading, .board-footer, .recent, .board-meta { display: flex; align-items: center; }
.masthead { justify-content: space-between; align-self: start; z-index: 2; }
.brand-plate { width: max-content; background: #fff; border-radius: .42cqw; padding: .36cqw .55cqw; }
.brand { display: block; width: 11.3cqw; height: auto; }
.mast-tools { gap: .75cqw; }
.design-picker { display: flex; gap: .17cqw; padding: .18cqw; border: 1px solid #ffffff47; border-radius: .48cqw; }
.feed {
  display: inline-flex; align-items: center; gap: .45cqw; white-space: nowrap;
  padding: .48cqw .68cqw; border: 1px solid #ffffff45; border-radius: 99px;
  color: var(--screen-ink); font-size: .93cqw; font-weight: 610;
}
.feed-dot { width: .42cqw; height: .42cqw; border-radius: 50%; background: var(--accent); }
.feed[data-health="stale"] .feed-dot { background: #ffd372; }
.icon-button {
  display: grid; place-items: center; appearance: none; width: 2.36cqw; height: 2.36cqw;
  border: 1px solid #ffffff47; border-radius: .4cqw; background: transparent; color: var(--screen-ink);
}
.icon-button:hover { background: #ffffff23; }
.expand-icon {
  width: .99cqw; height: .87cqw; border: 2px solid currentColor; border-radius: 2px;
  clip-path: polygon(0 0, 35% 0, 35% 25%, 65% 25%, 65% 0, 100% 0, 100% 36%, 75% 36%, 75% 64%, 100% 64%, 100% 100%, 65% 100%, 65% 75%, 35% 75%, 35% 100%, 0 100%, 0 64%, 25% 64%, 25% 36%, 0 36%);
}
:fullscreen .design-picker, :fullscreen .staff-link { display: none; }

.title-area { position: relative; isolation: isolate; display: grid; align-content: center; padding-bottom: .61cqw; }
.event-label { font-size: 1.21cqw; font-weight: 680; letter-spacing: .14em; color: var(--accent); margin-bottom: .5cqw; }
.title-area h1 { font: 650 4.29cqw/.99 var(--latin); letter-spacing: -.052em; text-wrap: nowrap; }
.title-area h1 strong { display: block; font-weight: 750; color: #a2f2ff; }
.panels { display: grid; grid-template-columns: 1.19fr 1fr; gap: 1.45cqw; min-height: 0; }
.panel { min-width: 0; border-radius: 1.05cqw; }
.leaders, .ranks { position: relative; overflow: hidden; display: grid; min-height: 0; }
.leaders {
  padding: 1.38cqw 1.49cqw 1.5cqw; grid-template-rows: auto minmax(0, 1fr);
  background: var(--panel); border: 1px solid #ffffff14;
}
.ranks {
  padding: 1.38cqw 1.49cqw .92cqw; grid-template-rows: auto auto minmax(0, 1fr) auto;
  color: var(--rank-ink); background: var(--rank-panel); border: 1px solid #ffffff17;
}
.panel-heading { justify-content: space-between; gap: .5cqw; min-width: 0; }
.panel-heading h2 { font-weight: 730; font-size: 1.87cqw; line-height: 1.15; letter-spacing: -.045em; }
.panel-kicker { color: var(--accent); font: 720 .95cqw var(--latin); letter-spacing: .14em; }
.podium {
  display: grid; grid-template-rows: 1.34fr 1fr 1fr;
  gap: .63cqw; margin-top: .97cqw;
}
.podium-card, .rank-row { min-width: 0; position: relative; isolation: isolate; }
.podium-card {
  display: grid; align-content: center; align-items: end;
  grid-template-columns: minmax(0, 1fr) auto; gap: .36cqw .55cqw;
  padding: .83cqw 1.19cqw; border: 1px solid var(--rank-line);
  border-radius: .68cqw; color: #11274e;
}
.podium-card[data-place="1"] { padding-inline: 1.34cqw; }

.podium-top { display: flex; align-items: center; gap: .49cqw; min-width: 0; white-space: nowrap; }
.place-type { color: inherit; font-size: 1.04cqw; font-weight: 680; }
.place-number {
  display: inline-grid; place-items: center; width: 1.74cqw; height: 1.39cqw; border-radius: .23cqw;
  color: #11274e; background: #ffffffa8; font: 760 .85cqw var(--latin); letter-spacing: -.035em;
}
.podium-card[data-place="1"] .place-number { background: #b5f5ff; }
.podium-name {
  grid-row: 2; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 1.77cqw; line-height: 1.2; font-weight: 730; letter-spacing: -.04em;
}
.podium-card[data-place="1"] .podium-name { font-size: 2.76cqw; }
.podium-result { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: end; display: flex; align-items: baseline; gap: .26cqw; white-space: nowrap; }
.podium-score { font: 770 2.9cqw/.94 var(--latin); letter-spacing: -.058em; font-variant-numeric: tabular-nums; }
.podium-card[data-place="1"] .podium-score { font-size: 5.64cqw; letter-spacing: -.07em; }
.podium-score.long-score { font-size: 1.66cqw; }
.podium-card[data-place="1"] .podium-score.long-score { font-size: 3.32cqw; }
.score-unit { opacity: .88; font-size: 1cqw; }
.podium-card[data-place="1"] .score-unit { font-size: 1.18cqw; }
.podium-empty { opacity: .82; }
.score-meter {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden; border-radius: inherit; background: var(--score-track);
}
.score-meter-fill {
  display: block; width: var(--score-fill, 0%); height: 100%;
  background: var(--score-bar); box-shadow: inset -2px 0 var(--score-edge);
  transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
  .score-meter-fill { animation: score-rise .42s cubic-bezier(.2, .75, .25, 1) both; }
}
@keyframes score-rise {
  from { transform: scaleX(.84); }
  to { transform: scaleX(1); }
}


.rank-range { color: var(--rank-accent); font-size: 1.01cqw; font-weight: 680; white-space: nowrap; border: 1px solid var(--rank-line); border-radius: 99px; padding: .28cqw .6cqw; }
.rank-head, .rank-row { display: grid; grid-template-columns: 3.43cqw minmax(0, 1fr) minmax(4.5cqw, auto); align-items: center; gap: .55cqw; }
.rank-head { color: var(--muted); font-size: .91cqw; font-weight: 600; margin-top: .72cqw; padding: 0 .69cqw .47cqw; }
.rank-head > :nth-child(3), .row-score { text-align: right; }
.rank-list {
  display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); min-height: 0;
  gap: .42cqw; padding-top: .2cqw;
}
.rank-row { padding: 0 .64cqw; border: 1px solid var(--rank-line); border-radius: .45cqw; }

.row-place { color: var(--rank-accent); font: 680 1.45cqw var(--latin); font-variant-numeric: tabular-nums; }
.row-name { font-size: 1.48cqw; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-score { font: 735 1.84cqw var(--latin); font-variant-numeric: tabular-nums; }
.empty-ranks { grid-row: 1 / -1; grid-column: 1 / -1; color: var(--muted); display: grid; place-items: center; text-align: center; font-size: 1.14cqw; }
.rank-controls { display: flex; align-items: center; justify-content: space-between; gap: .45cqw; padding-top: .57cqw; }
.page-buttons { display: flex; gap: .24cqw; align-items: center; flex-wrap: nowrap; }
.page-button, .cycle-button {
  display: inline-flex; align-items: center; justify-content: center; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: .3cqw; font-size: .87cqw; line-height: 1;
}
.page-button { min-width: 1.49cqw; height: 1.5cqw; padding: 0 .23cqw; font-family: var(--latin); font-weight: 660; }
.page-button:hover, .cycle-button:hover, .page-button[aria-current="page"] { background: color-mix(in srgb, var(--rank-accent) 14%, transparent); border-color: var(--rank-line); }
.page-button[aria-current="page"] { color: var(--rank-accent); }
.page-ellipsis { font-size: .82cqw; color: var(--muted); }
.cycle-button { padding: .33cqw .39cqw; gap: .38cqw; color: var(--rank-accent); font-weight: 650; flex-shrink: 0; }
.cycle-button:disabled { opacity: .54; cursor: default; }
.play-icon { width: .43cqw; height: .58cqw; border-inline: .10cqw solid currentColor; }
.cycle-button[aria-pressed="true"] .play-icon { background: currentColor; border: none; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cycle-track { position: absolute; bottom: 0; left: 0; width: 100%; height: .14cqw; background: var(--rank-line); }
.cycle-track > div { width: 100%; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--rank-accent); }
.board-footer {
  justify-content: space-between; gap: .85cqw; align-self: end; min-width: 0; min-height: 2.88cqw;
  border-radius: .56cqw; background: var(--footer); padding: .34cqw .88cqw;
}
.recent, .board-meta { gap: .62cqw; min-width: 0; }
.board-meta { margin-left: auto; }
.recent-label, .recent-place, .board-meta { font-size: .98cqw; white-space: nowrap; }
.recent-label { color: var(--accent); font-weight: 700; border-right: 1px solid #ffffff45; padding-right: .54cqw; }
.recent strong { font-size: 1.06cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-points { color: var(--accent); font: 720 1.12cqw var(--latin); white-space: nowrap; }
.recent-place, .board-meta { color: #e0e9f9; }
.staff-link { border-left: 1px solid #ffffff45; padding-left: .57cqw; }
.staff-link:hover, .staff-back:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Teal and cobalt, with a vertical podium and a wider list. */
.stage[data-design="b"] {
  --screen: #00499a;
  --screen-ink: #fff;
  --muted: #31586b;
  --accent: #bcfaff;
  --panel: #e1f3fe;
  --rank-panel: #e2fbf5;
  --rank-line: #aeddd4;
  --rank-ink: #103940;
  --rank-accent: #075e58;
  --score-track: #eaf8f5;
  --score-bar: linear-gradient(96deg, #b1e2ec, #94dccd);
  --score-edge: #398f8b80;
  --footer: #003d81;
}
[data-design="b"] .board-page { background: linear-gradient(104deg, #06418e 6%, #006598 59%, #007e86 100%); }
[data-design="b"] .title-area h1 strong { display: inline; margin-left: .18em; color: #c8fbfc; }
[data-design="b"] .title-area h1 { font-size: 4.25cqw; letter-spacing: -.061em; }
[data-design="b"] .panels { grid-template-columns: .78fr 1fr; gap: 1.22cqw; }
[data-design="b"] .leaders { color: #063b79; }
[data-design="b"] .panel-kicker { color: #125f8e; }
[data-design="b"] .rank-head, [data-design="b"] .rank-row { grid-template-columns: 4.1cqw minmax(0, 1fr) auto; }
[data-design="b"] .row-name { font-size: 1.67cqw; }
[data-design="b"] .row-score { font-size: 2.02cqw; }
[data-design="b"] .rank-range { background: #cff3e9; }
[data-design="b"] .podium-card[data-place="1"] {
  --score-track: #e6f4fc;
  --score-bar: linear-gradient(102deg, #a5cdee, #87ddda);
  --score-edge: #338f9f;
}


/* White, widescreen presentation: the event and the leading scores share one column. */
[data-design="a"] {
  --screen: #fff;
  --screen-ink: #102b48;
  --muted: #4c637a;
  --accent: #005cab;
  --panel: #fff;
  --rank-panel: #fff;
  --rank-line: #dce6ee;
  --rank-ink: #102b48;
  --rank-accent: #085a95;
  --cabinet-gradient: linear-gradient(90deg, #c63562 0%, #015eaa 51%, #00a1c4 100%);
  --score-track: #f8fafc;
  --score-bar: linear-gradient(96deg, #f1f6fa, #eaf4f9 69%, #d8edf4);
  --score-edge: #5799b86e;
}
[data-design="a"] .board-page {
  grid-template-columns: .79fr 1fr;
  grid-template-rows: 3.75cqw 10.75cqw minmax(0, 1fr) 3.55cqw;
  column-gap: 3.15cqw;
  padding: 2.14cqw 4.02cqw 1.7cqw;
}
[data-design="a"] .masthead { grid-area: 1 / 1 / 2 / -1; }
[data-design="a"] .brand-plate { padding-left: 0; }
[data-design="a"] .design-picker, [data-design="a"] .feed, [data-design="a"] .icon-button { border-color: #dce7ef; }
[data-design="a"] .icon-button:hover { background: #e9f2f9; color: #005cab; }
[data-design="a"] .feed { color: #425c72; }
[data-design="a"] .feed-dot { background: #00a1c4; }
[data-design="a"] .feed[data-health="stale"] .feed-dot { background: #bd6a11; }

[data-design="a"] .title-area { grid-area: 2 / 1; align-content: center; padding: .1cqw 0 .72cqw; }
[data-design="a"] .event-label {
  display: flex; align-items: center; gap: .56cqw; margin-bottom: .62cqw;
  color: #365675; font-size: 1.09cqw; font-weight: 650; letter-spacing: .1em;
}
[data-design="a"] .event-label::before {
  content: ""; width: 1.4cqw; height: .12cqw; background: var(--cabinet-gradient);
}
[data-design="a"] .title-area h1 {
  font: 400 3.55cqw/1.025 Arial, var(--latin);
  letter-spacing: .009em; text-transform: uppercase; color: #015eaa;
}
[data-design="a"] .title-area h1 > span { display: block; width: fit-content; }
[data-design="a"] .title-area h1 strong { display: inline; color: inherit; font-weight: inherit; }
@supports (background-clip: text) {
  [data-design="a"] .title-area h1 > span { background: var(--cabinet-gradient); background-clip: text; color: transparent; }
}

[data-design="a"] .panels { display: contents; }
[data-design="a"] .leaders, [data-design="a"] .ranks { border: 0; border-radius: 0; }
[data-design="a"] .leaders { grid-area: 3 / 1; padding: .46cqw 0 0; border-top: 1px solid #e0e8ef; }
[data-design="a"] .ranks { grid-area: 2 / 2 / 4 / 3; padding: .57cqw 0 0 2.05cqw; border-left: 1px solid #dce6ee; padding-bottom: .42cqw; }
[data-design="a"] .panel-heading h2 { font-weight: 690; letter-spacing: -.036em; }
[data-design="a"] .leaders .panel-heading h2 { font-size: 1.61cqw; }
[data-design="a"] .ranks .panel-heading h2 { font-size: 2.22cqw; }
[data-design="a"] .panel-kicker { display: none; }
[data-design="a"] .podium { margin-top: .72cqw; grid-template-rows: 1.58fr 1fr 1fr; gap: .52cqw; }
[data-design="a"] .podium-card {
  border: 0; border-radius: .54cqw; padding: .68cqw 1.13cqw;
  --score-bar: linear-gradient(96deg, #edf3fa, #dfedf8);
}
[data-design="a"] .podium-card[data-place="1"] {
  --score-track: #edf3fa;
  --score-bar: linear-gradient(111deg, #eae3f0 0%, #d6e6f7 52%, #bae5ef 100%);
  --score-edge: #8ba9c366;
  padding-inline: 1.22cqw;
}
[data-design="a"] .podium-card[data-place="3"] { --score-bar: linear-gradient(96deg, #f1eff7, #e7ebf7); }
[data-design="a"] .podium-card[data-place="1"] .score-meter-fill { position: relative; overflow: hidden; }
[data-design="a"] .podium-card[data-place="1"] .score-meter-fill::after {
  content: ""; position: absolute; top: -2.9cqw; right: -1.8cqw; width: 13.8cqw; height: 13.8cqw;
  border: 1px solid #ffffffa0; border-radius: 50%;
  box-shadow: 0 0 0 .82cqw #ffffff28, 0 0 0 1.85cqw #ffffff26;
}
[data-design="a"] .podium-card:not([data-place="1"]) .score-meter {
  inset: 50% 0 auto; height: 4.65cqw; transform: translateY(-50%); border-radius: .33cqw;
}

[data-design="a"] .place-number { display: none; }
[data-design="a"] .place-type { color: #4f6177; font-size: .91cqw; }
[data-design="a"] .podium-card[data-place="1"] .place-type { color: #215886; font-size: 1.06cqw; }
[data-design="a"] .podium-name { font-size: 1.68cqw; font-weight: 660; letter-spacing: -.016em; }
[data-design="a"] .podium-card[data-place="1"] .podium-name { font-size: 2.52cqw; }
[data-design="a"] .podium-score { font-size: 2.74cqw; font-weight: 670; }
[data-design="a"] .podium-score.long-score { font-size: 1.68cqw; }
[data-design="a"] .podium-card[data-place="1"] .podium-score { color: #004c84; font-weight: 660; font-size: 5.48cqw; }
[data-design="a"] .podium-card[data-place="1"] .podium-score.long-score { font-size: 3.27cqw; }
[data-design="a"] .score-unit { color: #345a78; }

[data-design="a"] .rank-range { padding: .26cqw .54cqw; background: #f4f8fb; border-color: #e3ecf4; }
[data-design="a"] .rank-head {
  margin-top: .98cqw; padding: 0 .78cqw .55cqw;
  border-bottom: 1px solid var(--rank-line); color: #4d6379;
}
[data-design="a"] .rank-list { gap: 0; padding-top: 0; }
[data-design="a"] .rank-row { padding: 0 .78cqw; border: 0; border-bottom: 1px solid #e3ebf1; border-radius: 0; }
[data-design="a"] .rank-row .score-meter { inset: 50% 0 auto; height: 3.51cqw; transform: translateY(-50%); border-radius: .29cqw; }
[data-design="a"] .row-place { color: #395a77; font-size: 1.46cqw; font-weight: 640; }
[data-design="a"] .row-name { font-size: 1.77cqw; font-weight: 650; }
[data-design="a"] .row-score { font-size: 2.2cqw; font-weight: 680; letter-spacing: -.03em; }
[data-design="a"] .rank-controls { padding-top: .56cqw; }
[data-design="a"] .cycle-track { height: .11cqw; left: 2.05cqw; width: calc(100% - 2.05cqw); }
[data-design="a"] .cycle-track > div { background: var(--cabinet-gradient); }

[data-design="a"] .board-footer {
  grid-area: 4 / 1 / 5 / -1; min-height: 2.41cqw; border-radius: 0;
  border-top: 1px solid #dce6ee; background: #fff; padding-inline: 0;
}
[data-design="a"] .recent-place, [data-design="a"] .board-meta { color: #425b73; }
[data-design="a"] .recent-label, [data-design="a"] .staff-link { border-color: #cddce6; }


.staff-page { min-height: 100dvh; background: #edf3fc; }
.staff-shell { width: min(100% - 2.7rem, 66rem); margin-inline: auto; }
.staff-banner { padding: 1.55rem 0 3.75rem; overflow: hidden; background: linear-gradient(116deg, #141f46, #18366d 67%, #0d5c7a); color: #fff; }
.staff-banner .staff-shell { position: relative; isolation: isolate; }
.staff-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.staff-header .brand-plate { border-radius: .37rem; padding: .24rem .35rem; }
.staff-header .brand { width: clamp(8rem, 33vw, 10.75rem); }
.staff-back { color: #e1f4ff; font-size: .92rem; font-weight: 650; }
.staff-title .eyebrow { color: #a5e9fa; font: 700 .86rem/1.25 var(--latin); letter-spacing: .11em; }
.staff-title h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1.16; margin: .26rem 0 .55rem; letter-spacing: -.055em; }
.staff-title > p:last-child { max-width: 28rem; color: #e3eefc; line-height: 1.6; font-size: .92rem; }
.staff-grid { position: relative; margin-top: -2rem; padding-bottom: 2.6rem; display: grid; grid-template-columns: 4fr 5fr; gap: 1.15rem; align-items: start; }
.staff-card, .share-dialog { padding: clamp(.95rem, 2.7vw, 1.65rem); border: 1px solid #d9e5f4; border-radius: .95rem; background: #fff; color: var(--ink); box-shadow: 0 13px 45px #1034570d; }
.staff-card-heading, .share-heading { display: flex; align-items: center; gap: .55rem; justify-content: space-between; }
.staff-card h2, .share-dialog h2 { color: #142f5e; font-size: 1.16rem; font-weight: 740; }
.staff-card-heading, .staff-records h2 { margin-bottom: .92rem; }
.staff-card label, .share-url { display: grid; gap: .4rem; font-weight: 650; margin-bottom: .95rem; }
.staff-card input, .share-url input { width: 100%; min-width: 0; color: var(--ink); background: #f3f7fe; border: 1px solid #b6c9e0; border-radius: .49rem; padding: .7rem .71rem; }
.staff-card input:focus-visible, .share-url input:focus-visible { outline: 2px solid #005cab; outline-offset: 2px; }
.form-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.form-buttons button, .secondary-button, .edit-record {
  border: 1px solid #b9ccda; border-radius: .44rem; background: #f0f6ff;
  color: #124b85; padding: .51rem .7rem; font-size: .9rem; font-weight: 680;
}
.form-buttons #save { font-size: 1rem; padding: .65rem 1rem; background: #005cab; border-color: #005cab; color: #fff; }
.form-buttons #save:hover { background: #074b88; }
.form-buttons #delete-score { color: #a32d25; }
.secondary-button:hover, .edit-record:hover { background: #e0edf9; }
.form-buttons button:disabled { opacity: .52; cursor: default; }
.form-status { color: #08487b; font-size: .91rem; margin-top: .69rem; }
.form-status:empty { display: none; }
.form-status[data-error="true"] { color: #a32d25; }
.staff-records li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; padding: .47rem 0; border-top: 1px solid #e2eaf4; }
.staff-records li > strong { overflow-wrap: anywhere; }
.staff-records li > span, .staff-records p { color: #436079; }
.edit-record { padding: .33rem .58rem; }
.share-dialog { width: min(calc(100% - 2rem), 28rem); }
.share-dialog::backdrop { background: #0b1c41ad; }
.share-dialog p { margin: .8rem 0; line-height: 1.55; color: #36526d; font-size: .95rem; }
.share-dialog #staff-qr { display: block; width: min(100%, 15rem); height: auto; margin: .55rem auto; image-rendering: pixelated; }
.share-dialog .share-url { margin-top: 1rem; }
#qr-download { display: inline-block; }

@media (max-width: 740px) and (orientation: portrait) and (pointer: coarse) {
  body:has(.stage:not([hidden])) { display: block; }
  .stage { width: 100%; aspect-ratio: auto; }
  .board-page { height: auto; display: block; padding: 4.6cqw; overflow: hidden; }
  .brand-plate { padding: .23rem .32rem; border-radius: .32rem; }
  .brand { width: clamp(6.9rem, 27cqw, 11rem); }
  .mast-tools { gap: .36rem; }
  .design-picker { padding: .12rem; gap: .1rem; border-radius: .35rem; }
  .feed { font-size: .72rem; gap: .27rem; padding: .27rem .44rem; }
  .feed-dot { width: .31rem; height: .31rem; }
  .icon-button { width: 1.65rem; height: 1.65rem; border-radius: .3rem; }
  .expand-icon { width: .7rem; height: .6rem; }
  .title-area { padding: 1.35rem 0 1.15rem; }
  .event-label { font-size: .82rem; margin-bottom: .34rem; }
  .stage .title-area h1 { font-size: clamp(1.65rem, 7.1cqw, 3rem); line-height: .99; }
  .stage .title-area h1 strong { display: block; margin: 0; }

  .stage .panels { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: .7rem; }
  .stage .leaders, .stage .ranks { border-radius: .7rem; padding: .75rem; }
  .panel-heading h2 { font-size: 1.19rem; }
  .panel-kicker, .rank-range { font-size: .78rem; }
  .rank-range { padding: .2rem .45rem; }
  .stage .podium { grid-template-rows: auto; gap: .34rem; margin-top: .55rem; }
  .stage .podium-card, .stage .podium-card[data-place="1"] { padding: .54rem .62rem; border-radius: .43rem; gap: .2rem .3rem; min-height: 3rem; }
  .podium-top { gap: .25rem; }
  .place-type { font-size: .69rem; }
  .place-number { width: 1.04rem; height: .96rem; font-size: .59rem; border-radius: .15rem; }
  .podium-name { font-size: clamp(.87rem, 3.8cqw, 1.31rem); }
  .stage .podium-card[data-place="1"] .podium-name { font-size: clamp(1.18rem, 5cqw, 1.85rem); }
  .podium-result { gap: .22rem; }
  .podium-score { font-size: clamp(1.24rem, 5.2cqw, 1.9rem); }
  .stage .podium-card[data-place="1"] .podium-score { font-size: clamp(2rem, 8.8cqw, 3rem); }
  .stage .podium-card[data-place="1"] .podium-score.long-score { font-size: clamp(1.17rem, 5.2cqw, 2.15rem); }
  .podium-score.long-score { font-size: clamp(.81rem, 3.5cqw, 1.31rem); }
  .score-unit, .podium-card[data-place="1"] .score-unit { font-size: .69rem; }
  .stage .rank-head, .stage .rank-row { gap: .42rem; grid-template-columns: 2.48rem minmax(0, 1fr) auto; padding-inline: .25rem; }
  .stage .rank-row { border-radius: .36rem; }

  .rank-head { margin-top: .52rem; padding-bottom: .29rem; font-size: .8rem; }
  .stage .rank-list { gap: .24rem; padding-top: .12rem; min-height: 11.45rem; }
  .stage .row-name, .stage .row-place { font-size: 1rem; }
  .stage .row-score { font-size: 1.12rem; }
  .empty-ranks { font-size: .89rem; }
  .rank-controls { padding-top: .34rem; }
  .page-buttons { gap: .08rem; }
  .page-button, .cycle-button, .page-ellipsis { font-size: .73rem; }
  .page-button { min-width: 1.19rem; height: 1.38rem; padding-inline: .17rem; }
  .cycle-button { gap: .25rem; padding: .34rem .2rem; }
  .play-icon { width: .38rem; height: .48rem; border-width: 2px; }
  .cycle-track { height: 2px; }
  .board-footer { margin-top: .71rem; padding: .56rem; border-radius: .54rem; align-items: stretch; flex-direction: column; gap: .41rem; }
  .recent, .board-meta { gap: .45rem; }
  .board-meta { justify-content: space-between; margin-left: 0; }
  .recent-label, .recent strong, .recent-points, .recent-place, .board-meta { font-size: .78rem; }
  .stage[data-design="a"] .board-page { padding: 4.6cqw; }
  .stage[data-design="a"] .title-area { padding: 1.22rem 0 1.04rem; }
  .stage[data-design="a"] .event-label { gap: .36rem; font-size: .82rem; margin-bottom: .42rem; }
  .stage[data-design="a"] .event-label::before { width: .81rem; height: 2px; }
  .stage[data-design="a"] .title-area h1 { font-size: clamp(1.4rem, 7.21cqw, 2.8rem); }
  .stage[data-design="a"] .title-area h1 strong { display: inline; }
  .stage[data-design="a"] .panels { display: grid; grid-template-columns: 1fr; }
  .stage[data-design="a"] .leaders, .stage[data-design="a"] .ranks {
    grid-area: auto; padding: .68rem 0 0; border: 0; border-top: 1px solid #dce6ee; border-radius: 0;
  }
  .stage[data-design="a"] .panel-heading h2 { font-size: 1.22rem; }
  .stage[data-design="a"] .podium { grid-template-rows: auto; gap: .36rem; margin-top: .55rem; }
  .stage[data-design="a"] .podium-card { padding: .55rem .63rem; border-radius: .38rem; }
  .stage[data-design="a"] .podium-card:not([data-place="1"]) .score-meter { height: 100%; }
  .stage[data-design="a"] .place-type { font-size: .69rem; }
  .stage[data-design="a"] .podium-name { font-size: 1.02rem; }
  .stage[data-design="a"] .podium-card[data-place="1"] .podium-name { font-size: 1.23rem; }
  .stage[data-design="a"] .podium-score { font-size: 1.43rem; }
  .stage[data-design="a"] .podium-score.long-score { font-size: 1.14rem; }
  .stage[data-design="a"] .podium-card[data-place="1"] .podium-score { font-size: clamp(1.8rem, 8.5cqw, 2.8rem); }
  .stage[data-design="a"] .podium-card[data-place="1"] .podium-score.long-score { font-size: clamp(1.08rem, 5.35cqw, 2.05rem); }
  .stage[data-design="a"] .rank-head { margin-top: .54rem; padding: 0 .3rem .27rem; }
  .stage[data-design="a"] .rank-list { min-height: 12.75rem; gap: 0; padding-top: 0; }
  .stage[data-design="a"] .rank-row { padding-inline: .3rem; border-radius: 0; }
  .stage[data-design="a"] .rank-row .score-meter { height: 1.83rem; border-radius: .24rem; }
  .stage[data-design="a"] .row-name, .stage[data-design="a"] .row-place { font-size: 1rem; }
  .stage[data-design="a"] .row-score { font-size: 1.12rem; }
  .stage[data-design="a"] .rank-controls { padding-block: .35rem; }
  .stage[data-design="a"] .cycle-track { left: 0; width: 100%; height: 2px; }
  .stage[data-design="a"] .board-footer { padding: .56rem 0; }

}
@media (max-width: 740px) {
  .staff-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .staff-shell { width: calc(100% - 2rem); }
  .staff-header { margin-bottom: 1.55rem; }
  .staff-banner { padding: 1.02rem 0 3.05rem; }
  .staff-title .eyebrow { font-size: .75rem; }
  .staff-title > p:last-child { font-size: .87rem; }
}
@media (max-width: 345px) and (orientation: portrait) and (pointer: coarse) {
  .masthead .brand { width: 6.2rem; }
  .mast-tools { gap: .23rem; }
  .feed { padding-inline: .34rem; }
}
