

.court {
  --court-ink: var(--publication-ink, #150d2b);
  --court-acc: var(--accent, oklch(0.53 0.205 292));
  --court-muted: var(--muted-foreground, #605b68);
  --court-prose: var(--prose, rgb(23 20 29 / 0.8));
  --court-line: #e8e7ec;
  --court-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  --court-rail: min(1200px, calc(100vw - 80px)); 
  position: relative;
  margin-inline: calc(50% - 50vw);
  overflow-x: clip; 
  color: var(--court-ink);
  font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif);
}
.court *, .court *::before, .court *::after { box-sizing: border-box; }
:where(.court) :where(p) { margin: 0; }


.court-photo { position: relative; }
.court-frame {
  position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9);
  max-height: calc(100vh - var(--nav-h, 81px)); max-height: calc(100svh - var(--nav-h, 81px));
  background: #ebe9ef;
}
.court-img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; transform-origin: 52% 40%;
}
.court-ph {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 96px;
  text-align: center; font-size: 14px; line-height: 1.5; color: var(--court-muted);
}
.court-ph span { max-width: 46ch; }
.court-img + .court-ph { display: none; }
.court.is-missing .court-img { display: none; }
.court.is-missing .court-ph { display: grid; }


.court-card-wrap {
  position: absolute; z-index: 2; left: calc((100vw - var(--court-rail)) / 2); bottom: clamp(28px, 4.4vw, 64px);
  width: min(380px, calc(100vw - 48px));
}
.court-card {
  position: relative; isolation: isolate; padding: 22px 26px 22px; border-radius: 10px; background: #fff;
  transform-origin: 30% 60%;
}

.court-card::before, .court-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
}
.court-card::before { box-shadow: 0 28px 60px rgb(21 13 43 / 0.32); opacity: 0; }
.court-card::after { box-shadow: 0 1px 2px rgb(21 13 43 / 0.10), 0 12px 32px rgb(21 13 43 / 0.16); }

.court-meta {
  display: grid; gap: 3px;
  font: 500 11.5px/1.35 var(--font-mono, "Geist Mono", ui-monospace, monospace); letter-spacing: 0.11em; text-transform: uppercase;
}
.court-place { color: var(--court-ink); font-weight: 600; }
.court-date { color: var(--court-muted); }
.court-rule { display: block; width: 40px; height: 3px; margin: 16px 0 10px; border-radius: 2px; background: var(--court-acc); transform-origin: left center; }

.court-fig {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
  font-variant-numeric: tabular-nums lining-nums;
}
.court-pre { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
.court-num { position: relative; display: inline-block; white-space: nowrap; font-size: clamp(52px, 4.6vw, 68px); font-weight: 750; line-height: 1; letter-spacing: -0.045em; }
.court-live { position: absolute; right: 0; top: 0; opacity: 0; white-space: nowrap; } 
.court-unit { font-size: 19px; font-weight: 500; color: var(--court-prose); }
.court-sub { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--court-line); font-size: 15px; line-height: 1.45; color: var(--court-prose); }


.court-cap {
  width: var(--court-rail); margin: 12px auto 0; max-width: none;
  font-size: 13.5px; line-height: 1.55; color: var(--court-muted);
}
.court-cap-text { color: var(--court-prose); }
.court-src a { color: var(--court-acc); text-decoration: none; }
.court-src a:hover { text-decoration: underline; }
.court-credit { font: 400 11.5px/1.55 var(--font-mono, "Geist Mono", ui-monospace, monospace); color: var(--court-muted); white-space: nowrap; }

@media (max-width: 900px) { .court { --court-rail: calc(100vw - 48px); } }


@media (max-width: 767px) {
  .court-card-wrap { position: relative; left: auto; bottom: auto; width: auto; max-width: 420px; margin: -32px 16px 0; }
  .court-card { padding: 18px 20px 18px; }
  .court-rule { margin: 14px 0 8px; }
  .court-pre { font-size: 22px; }
  .court-num { font-size: 52px; }
  .court-unit { font-size: 17px; }
  .court-sub { margin-top: 14px; padding-top: 10px; }
  .court-cap { width: auto; margin: 14px 16px 0; font-size: 13px; }
  .court-credit { white-space: normal; }
  .court-ph { padding: 36px 20px 48px; font-size: 13px; }
}
@media (max-width: 359px) {
  .court-num { font-size: 46px; }
}


.court.is-live .court-img { will-change: transform; }
.court.is-live .court-card { opacity: 0; transform: scale(1.12) rotate(-2deg); }
.court.is-live .court-card::before { opacity: 1; transition: opacity 0.38s ease 0.08s; }
.court.is-live .court-card::after { opacity: 0; transition: opacity 0.38s ease 0.08s; }
.court.is-live .court-rule { transform: scaleX(0); transition: transform 0.4s var(--court-ease) 0.22s; }
.court.is-live .court-final { opacity: 0; }
.court.is-live .court-live { opacity: 1; }
.court.is-live .court-sub { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.6s var(--court-ease); }

.court.is-live.is-stamped .court-card { animation: court-stamp 0.45s cubic-bezier(0.3, 0.7, 0.25, 1) both; }
.court.is-live.is-stamped .court-card::before { opacity: 0; }
.court.is-live.is-stamped .court-card::after { opacity: 1; }
.court.is-live.is-stamped .court-rule { transform: none; }
.court.is-live.is-counted .court-final { opacity: 1; }
.court.is-live.is-counted .court-live { opacity: 0; }
.court.is-live.is-counted .court-sub { opacity: 1; transform: none; }


@keyframes court-stamp {
  0% { opacity: 0; transform: scale(1.12) rotate(-2deg); }
  45% { opacity: 1; }
  72% { transform: scale(0.992) rotate(0.15deg); }
  100% { opacity: 1; transform: none; }
}
