:root {
  --bg: #0B0605;
  --bg-soft: #15100E;
  --panel: #1C1411;
  --panel-strong: #281713;
  --text: #F7EAD2;
  --muted: #C8A98A;
  --faint: #BDA18B;
  --gold: #E9BD65;
  --gold-soft: #F7DF9A;
  --red: #9F2722;
  --red-soft: #DC5044;
  --green: #67C58F;
  --danger: #E76C5D;

  --line: rgba(230, 204, 146, 0.2);
  --line-strong: rgba(247, 223, 154, 0.52);
  --line-faint: rgba(230, 204, 146, 0.08);
  --wash: rgba(233, 189, 101, 0.09);
  --stage: rgba(159, 39, 34, 0.3);
  --vault: rgba(233, 189, 101, 0.04);
  --vault-edge: rgba(247, 223, 154, 0.28);
  /* 점수 계조 여덟 단. 1~4단은 어두운 판에 금빛 글자, 5~8단은 밝은 판에
     어두운 글자다. 70점에서 극이 뒤집혀 69와 70이 절대 겹쳐 보이지 않는다. */
  --score-1: #241A12;
  --score-2: #3A2915;
  --score-3: #4F3818;
  --score-4: #67491C;
  --score-5: #AD7F2D;
  --score-6: #C99A3E;
  --score-7: #E4BC63;
  --score-8: #F7DF9A;
  --score-1-ink: #B99C74;
  --score-2-ink: #D3B382;
  --score-3-ink: #E7C78C;
  --score-4-ink: #F5DC98;
  --score-5-ink: #1E1204;
  --score-6-ink: #201304;
  --score-7-ink: #221405;
  --score-8-ink: #231405;

  --font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --serif: "Noto Serif KR", "KoPub Batang", "Batang", "Nanum Myeongjo", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", monospace;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;

  --radius-sm: 8px;
  --radius: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --d1: 160ms;
  --d2: 240ms;
  --d3: 420ms;
  --d4: 720ms;

  --depth-1: inset 0 1px 0 rgba(247, 223, 154, 0.06);
  --depth-2: 0 10px 30px rgba(0, 0, 0, 0.38);
  --depth-3: 0 24px 72px rgba(0, 0, 0, 0.42);

  --bar-h: 58px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--s6)); overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -18% auto;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 60% at 50% 0%, var(--stage) 0%, transparent 70%),
    radial-gradient(38% 44% at 16% 8%, rgba(233, 189, 101, 0.06) 0%, transparent 72%);
  animation: breathe 60s var(--ease) infinite;
}

@keyframes breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
  50% { transform: translate3d(0, 2.4%, 0) scale(1.06); opacity: 1; }
}

/* 백분율 폭은 기기에 따라 화면보다 넓게 잡힌다. 네 변을 0 으로 못박아
   화면 크기를 그대로 따르게 한다. */
.dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 60;
  padding: var(--s3) var(--s4);
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { left: var(--s4); top: var(--s4); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.curtain {
  position: relative;
  z-index: 1;
  min-height: clamp(168px, 22vw, 300px);
  display: grid;
  align-content: end;
  padding: var(--s12) var(--s6) var(--s6);
  overflow: hidden;
  isolation: isolate;
}

.curtain__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.curtain__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
}

.curtain__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 6, 5, 0.72) 0%, rgba(11, 6, 5, 0.52) 42%, rgba(11, 6, 5, 0.84) 88%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 30%, transparent 18%, rgba(11, 6, 5, 0.66) 100%);
}

.curtain__rule {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s1);
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.curtain__rule::after { content: "↗"; font-size: 0.86em; }
.curtain__rule:hover { color: var(--gold); border-color: var(--gold); }

.curtain__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.curtain__kicker {
  margin: 0 0 var(--s2);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.curtain__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.9);
}

.marquee {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line-faint);
}

.marquee__links { display: flex; align-items: center; gap: var(--s6); }

.marquee__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: var(--s6);
}

.pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s3);
  min-width: 0;
}

.pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(233, 189, 101, 0.5);
  animation: beat 2.6s var(--ease) infinite;
  align-self: center;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(233, 189, 101, 0.44); }
  70% { box-shadow: 0 0 0 12px rgba(233, 189, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 189, 101, 0); }
}

.pulse__state {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pulse__sep {
  width: 1px;
  height: 1em;
  background: var(--line);
  align-self: center;
}

.pulse__label {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pulse__clock {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--gold-soft);
}

#sentinel { height: 1px; }

.index {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--bar-h);
  background: rgba(11, 6, 5, 0.9);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-faint);
}

.index__inner {
  width: min(1240px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.index__home {
  flex: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.index__acts {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: var(--s1);
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.index__acts::-webkit-scrollbar { display: none; }

.index__act {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s3);
  color: var(--faint);
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--d1) var(--ease);
}
.index__act:hover { color: var(--text); }
.index__act[aria-selected="true"] { color: var(--gold); }
.index__act[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto var(--s3) -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.index__act[data-locked] { opacity: 0.46; }
.index__act[data-locked][aria-selected="true"] { opacity: 1; }
.index__act[data-act="roundX"] .index__ord {
  min-width: 1.15em;
  color: #c99b76;
  font-weight: 800;
  text-align: center;
}
.index__act[data-act="roundX"][aria-selected="true"] .index__ord { color: var(--gold-soft); }
.index__act[data-act="roundX"][data-locked] .index__ord { color: inherit; }

.index__ord {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.index__name { font-weight: 400; }

.index__clock {
  flex: none;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: var(--s16) var(--s6) var(--s24);
}
.stage:focus { outline: none; }

.alert {
  margin-bottom: var(--s8);
  padding: var(--s4) var(--s6);
  border: 1px solid rgba(231, 108, 93, 0.42);
  border-radius: var(--radius);
  background: rgba(231, 108, 93, 0.08);
  color: var(--danger);
  font-size: 0.92rem;
}

.waiting {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  padding: var(--s24) 0;
}
.waiting span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.3;
  animation: wait 1.2s var(--ease) infinite;
}
.waiting span:nth-child(2) { animation-delay: 0.16s; }
.waiting span:nth-child(3) { animation-delay: 0.32s; }
@keyframes wait {
  0%, 100% { opacity: 0.22; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-5px); }
}

.acts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s24);
}

.act {
  position: relative;
  min-width: 0;
}

.act__head {
  position: relative;
  padding-bottom: var(--s6);
  margin-bottom: var(--s8);
  border-bottom: 1px solid var(--line-faint);
}

.act__ghost {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-56%);
  font-family: var(--serif);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 189, 101, 0.16);
  pointer-events: none;
  user-select: none;
}

.act__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.act[data-state="done"] .act__tag { color: var(--faint); }
.act[data-state="sealed"] .act__tag { color: var(--faint); opacity: 0.72; }

.act__title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.act__sub {
  position: relative;
  margin: var(--s3) 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.act__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  margin-top: var(--s6);
}

.act__when {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* 라운드 머리의 규칙과 공고 단추. 테두리 캡슐은 이 화면의 명조 활자와 겉돌고,
   완전한 원형 모서리는 어디서나 볼 수 있는 기성품처럼 보인다. 페이지 위쪽 띠의
   「전체 룰 ↗」과 같은 어법으로 맞춘다. 글자와 밑줄 하나. 바깥으로 나가는 링크만
   화살표를 달아 눌렀을 때 어디로 가는지 미리 알린다. */
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  margin: 0;
  padding: 0 0 var(--s1);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}

a.pill::after {
  content: "↗";
  font-size: 0.86em;
  opacity: 0.66;
}

.pill:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
  background: none;
}

.pill:hover::after { opacity: 1; }

.pill:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}

.floor > * { min-width: 0; }
@media (min-width: 1080px) {
  .floor { grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: var(--s12); }
  .floor__board { position: sticky; top: calc(var(--bar-h) + var(--s6)); }
}

.board {
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--depth-1);
  overflow: hidden;
}

.board__frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--bg-soft);
  font-size: 0;
}
.board__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.board__cells {
  position: absolute;
  inset: 0;
}

.board__cell {
  position: absolute;
  border: 0;
  border-radius: 3px;
  background: transparent;
  transition: background-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease), transform var(--d1) var(--ease);
}
.board__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color var(--d2) var(--ease);
}
.board[data-mode="sim"] .board__cell:hover { background-color: rgba(233, 189, 101, 0.14); }
.board[data-mode="sim"] .board__cell:active { transform: scale(0.97); }
.board__cell[aria-pressed="true"] {
  background-color: rgba(233, 189, 101, 0.3);
  box-shadow: inset 0 0 0 1px rgba(247, 223, 154, 0.55), var(--depth-2);
}
.board[data-mode="read"] .board__cell { pointer-events: none; }
.board__cell[data-hit] { background-color: rgba(233, 189, 101, 0.42); }
.board__cell[data-hit]::after { border-color: rgba(247, 223, 154, 0.85); }
.board__cell[data-miss] {
  background-color: rgba(11, 6, 5, 0.62);
  box-shadow: inset 0 0 12px 3px rgba(0, 0, 0, 0.62);
}
.board__cell[data-miss]::after { border-color: var(--faint); }
.board__cell[data-miss]::before {
  content: "";
  position: absolute;
  inset: 16%;
  pointer-events: none;
  background:
    linear-gradient(to top left, transparent calc(50% - 2.4px), var(--faint) calc(50% - 2.4px), var(--faint) calc(50% + 2.4px), transparent calc(50% + 2.4px)),
    linear-gradient(to top right, transparent calc(50% - 2.4px), var(--faint) calc(50% - 2.4px), var(--faint) calc(50% + 2.4px), transparent calc(50% + 2.4px));
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95));
}

.board__bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s4) var(--s4) var(--s6);
  border-top: 1px solid var(--line-faint);
  background: var(--panel-strong);
}

.board__stat {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.board__stat + .board__stat { margin-left: var(--s4); }
.board__bingo + .board__stat { margin-left: var(--s4); }

.board__k {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.board__bingo {
  display: flex;
  align-items: center;
  line-height: 1;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.board__v {
  display: flex;
  align-items: center;
  line-height: 1;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--gold-soft);
  transition: transform var(--d2) var(--ease);
}
.board__v[data-bump] { transform: scale(1.18); }

.board__reset {
  margin-left: auto;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  transition: opacity var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.board__reset:hover:not(:disabled) { color: var(--gold-soft); border-color: var(--line-strong); }
.board__reset:disabled { opacity: 0.3; cursor: default; }
.board[data-mode="read"] .board__reset {
  visibility: hidden;
  opacity: 0;
}

.board__who {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 46px;
  flex: none;
  padding: 0 var(--s6);
  border-top: 1px solid var(--line-faint);
  background: linear-gradient(90deg, rgba(233, 189, 101, 0.08), transparent 64%);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
  overflow: hidden;
}

.board__who::before {
  content: "";
  flex: none;
  width: 2px;
  height: 17px;
  border-radius: 999px;
  background: var(--line-faint);
  transition: background-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.board[data-mode="read"] .board__who::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(233, 189, 101, 0.55);
}

.board__who img {
  width: 24px;
  height: 24px;
  flex: none;
  opacity: 0;
  transform: translate3d(-4px, 0, 0);
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.board__who span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-4px, 0, 0);
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.board[data-mode="read"] .board__who img,
.board[data-mode="read"] .board__who span {
  opacity: 1;
  transform: none;
}

.maskbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: filter var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.maskbtn:hover { filter: brightness(1.25) drop-shadow(0 0 6px rgba(233, 189, 101, 0.4)); }
.maskbtn:active { transform: scale(0.94); }
.maskbtn[aria-expanded="true"] { filter: brightness(1.3) drop-shadow(0 0 8px rgba(233, 189, 101, 0.55)); }

.wtip {
  position: fixed;
  z-index: 60;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  box-shadow: var(--depth-3);
}

.wtip__name {
  display: block;
  margin-bottom: var(--s3);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.wtip__rounds { display: grid; gap: var(--s3); }

.wtip__round {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: baseline;
}

.wtip__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--faint);
}

.wtip__works { display: grid; gap: var(--s1); min-width: 0; }

.wtip__work {
  font-size: 0.86rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  overflow-wrap: anywhere;
}
a.wtip__work:hover { color: var(--gold-soft); border-color: var(--line); }

.wtip--cell { max-width: 240px; }

.wtip__cell {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.wtip__owner {
  font-size: 0.84rem;
  color: var(--muted);
}

.wtip__state {
  margin-left: auto;
  padding: 1px var(--s2);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--faint);
}
.wtip__state[data-state="인정"] { border-color: rgba(247, 223, 154, 0.5); color: var(--gold-soft); }
.wtip__state[data-state="무효"] { border-color: var(--faint); color: var(--faint); }

.wtip__empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--faint);
}

.rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3) var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color var(--d2) var(--ease), border-color var(--d2) var(--ease), opacity var(--d3) var(--ease);
}
.row:hover, .row:focus-within {
  background: rgba(233, 189, 101, 0.05);
  border-color: var(--line-faint);
}
.row + .row { border-top: 1px solid var(--line-faint); }
.row[data-tier="lead"] { background-image: linear-gradient(90deg, var(--wash) 0%, transparent 42%); }
.row[data-tier="quiet"] { opacity: 0.42; filter: saturate(0.55); }
.row[data-tier="quiet"]:hover, .row[data-tier="quiet"]:focus-within { opacity: 0.92; filter: none; }

.row[data-tier="champion"] {
  margin: var(--s2) 0;
  padding: var(--s4);
  border-color: var(--line-strong);
  border-radius: var(--radius);
  background-image:
    linear-gradient(90deg, rgba(233, 189, 101, 0.2) 0%, rgba(233, 189, 101, 0.05) 46%, transparent 76%),
    linear-gradient(180deg, rgba(159, 39, 34, 0.16), transparent 70%);
  box-shadow: var(--depth-1), 0 0 0 1px rgba(247, 223, 154, 0.16), 0 14px 40px rgba(0, 0, 0, 0.46);
}
.row[data-tier="champion"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 34px rgba(233, 189, 101, 0.12);
}
.row[data-tier="champion"] .row__rank {
  font-size: 1.9rem;
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(233, 189, 101, 0.42);
}
.row[data-tier="champion"] .row__name { font-size: 1.28rem; color: var(--gold-soft); }
.row[data-tier="champion"] .row__name img { width: 28px; height: 28px; }
.row[data-tier="champion"] .score__n { font-size: 1.4rem; color: var(--gold-soft); }


.stamp {
  flex: none;
  margin-left: var(--s1);
  padding: 2px var(--s2);
  border: 1.5px solid rgba(220, 80, 68, 0.9);
  border-radius: 3px;
  color: #ef8177;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(159, 39, 34, 0.35), inset 0 0 10px rgba(220, 80, 68, 0.18);
}

.row__rank {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  text-align: right;
  letter-spacing: -0.02em;
}
.row[data-tier="lead"] .row__rank { color: var(--gold); font-size: 1.3rem; }

.row__who { min-width: 0; }

.row__name {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.row__name img { width: 22px; height: 22px; flex: none; }
.row[data-tier="lead"] .row__name { font-size: 1.1rem; }

.row__work {
  display: inline-block;
  margin-top: 2px;
  /* 42ch 는 읽기 좋은 상한이지만 칸 너비를 넘으면 안 된다. 둘 중 좁은 쪽을 쓴다. */
  max-width: min(100%, 42ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
a.row__work:hover { color: var(--gold-soft); border-color: var(--line); }
.row__work[data-none] { color: var(--faint); opacity: 0.66; }

.row__works {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: 2px;
}
.row__works a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.row__works a:hover { color: var(--gold-soft); border-color: var(--line); }

.row__end {
  display: flex;
  align-items: center;
  align-self: center;
  gap: var(--s4);
}

.map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 68px;
  flex: none;
  align-self: center;
}
.map__cell {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  border-radius: 1px;
  background: rgba(230, 204, 146, 0.1);
  cursor: pointer;
  transition: transform var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.map__cell[data-on] { background: var(--gold); }
.map__cell[data-bad] { background: var(--red); opacity: 1; }
.map__cell:hover { transform: scale(1.35); box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.7); }
.map__cell[aria-expanded="true"] { transform: scale(1.35); box-shadow: 0 0 0 1px var(--gold-soft); }
.map__cell:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 1px; }

.judges {
  display: grid;
  gap: 2px;
  width: 116px;
  flex: none;
}

.judges__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  width: 100%;
  padding: 1px var(--s2) 1px 0;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  color: inherit;
  font: inherit;
  background: transparent;
  transition: background-color var(--d1) var(--ease);
  text-decoration: none;
  appearance: none;
}

.judges__who {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  height: 1.12rem;
  padding: 0 0.34rem;
  border: 1px solid var(--line-faint);
  border-radius: 2px;
  background: rgba(8, 6, 5, 0.58);
  font-family: var(--serif);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--faint);
  white-space: nowrap;
}

.judges__row[data-judge="genius"] .judges__who {
  border-color: rgba(203, 72, 62, 0.46);
  color: #f0aaa4;
}

.judges__row[data-judge="kassian"] .judges__who {
  border-color: rgba(104, 151, 191, 0.42);
  color: #b7d3ea;
}

.judges__n {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.judges__n[data-none] {
  color: var(--faint);
  font-family: var(--font);
  font-size: 0.7rem;
  font-style: italic;
}

.judges__row[data-primary] .judges__who,
.judges__row[data-primary] .judges__n { color: var(--gold); }

.judges__row[data-review] { padding-left: var(--s2); cursor: pointer; }
.judges__row[data-review]:hover { background: rgba(233, 189, 101, 0.12); }
.judges__row[data-review]:hover .judges__who { color: var(--text); }
.judges__row[data-review]:hover .judges__n { color: var(--gold-soft); }
.judges__row[data-review]:focus-visible {
  outline: 1px solid var(--gold-soft);
  outline-offset: 2px;
}

.score {
  display: grid;
  gap: 0;
  width: 132px;
  flex: none;
}

.score__top {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: 2px;
}

.score__n {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.row[data-tier="lead"] .score__n { color: var(--gold-soft); font-size: 1.18rem; }
.score__n[data-none] { color: var(--faint); opacity: 0.6; font-size: 0.9rem; }

.score__badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.score__track {
  margin-bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(230, 204, 146, 0.1);
  overflow: hidden;
}
.score__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(233, 189, 101, 0.55), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d4) var(--ease) var(--delay, 0ms);
}
[data-shown] .score__fill { transform: scaleX(var(--fill, 0)); }

.score__sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.score__sub--final {
  font-family: var(--font);
  font-size: 0.74rem;
  letter-spacing: 0;
  color: var(--muted);
  opacity: 0.72;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  align-items: end;
  margin-bottom: var(--s12);
}

.plinth {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s6) var(--s3);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong) 0%, var(--panel) 100%);
  box-shadow: var(--depth-1);
  text-align: center;
}
.plinth[data-place="1"] {
  border-color: var(--line-strong);
  background-image: linear-gradient(180deg, rgba(233, 189, 101, 0.14) 0%, var(--panel) 62%);
  box-shadow: var(--depth-1), var(--depth-2);
  padding-top: var(--s12);
}
.plinth[data-place="2"] { order: -1; }

.plinth__place {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.plinth[data-place="1"] .plinth__place { color: var(--gold); }

.plinth__mask {
  width: clamp(48px, 9vw, 76px);
  height: clamp(48px, 9vw, 76px);
}
.plinth[data-place="1"] .plinth__mask { width: clamp(60px, 11vw, 96px); height: clamp(60px, 11vw, 96px); }

.plinth__name {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plinth__score {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-faint);
}

.ranking {
  margin-bottom: var(--s8);
  padding: var(--s6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(233, 189, 101, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(159, 39, 34, 0.14), transparent 40%),
    var(--panel);
  box-shadow: var(--depth-1), var(--depth-2);
}

.ranking__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s6);
}

.ranking__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}

.ranking__note {
  font-size: 0.8rem;
  color: var(--faint);
}

.ranking__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  align-items: end;
}

.ranking__place {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s3);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  text-align: center;
}
.ranking__place[data-place="1"] {
  padding-top: var(--s8);
  border-color: var(--line-strong);
  background-image: linear-gradient(180deg, rgba(233, 189, 101, 0.18), transparent 60%);
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.16), var(--depth-2);
}
.ranking__place[data-place="2"] { order: -1; }

.ranking__label {
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.ranking__place[data-place="1"] .ranking__label { color: var(--gold); }

.ranking__mask { width: clamp(44px, 8vw, 68px); height: clamp(44px, 8vw, 68px); }
.ranking__mask img { width: 100%; height: 100%; }
.ranking__place[data-place="1"] .ranking__mask { width: clamp(56px, 10vw, 84px); height: clamp(56px, 10vw, 84px); }

.ranking__name {
  font-family: var(--serif);
  font-size: clamp(0.94rem, 1.9vw, 1.16rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ranking__score {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

.judges-panel {
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 1px solid var(--line-faint);
}

.judges-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.jcol {
  min-width: 0;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--depth-1);
  overflow: hidden;
}
.jcol[data-judge="genius"] { background-image: linear-gradient(180deg, rgba(159, 39, 34, 0.14), transparent 120px); }
.jcol[data-judge="kassian"] { background-image: linear-gradient(180deg, rgba(233, 189, 101, 0.09), transparent 120px); }

.jcol__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s3);
  border-bottom: 1px solid var(--line-faint);
}

.jcol__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.jcol__count {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
}

.jcol__list { padding: var(--s2); }

.jcol__pick {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  transition: background-color var(--d1) var(--ease);
}
.jcol__pick + .jcol__pick { border-top: 1px solid var(--line-faint); }
.jcol__pick:hover { background: rgba(233, 189, 101, 0.05); }

.jcol__rank {
  width: 1.2rem;
  flex: none;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  text-align: right;
}

.jcol__player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.jcol__score {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.subs {
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 1px solid var(--line-faint);
}

.subs__title {
  margin: 0 0 var(--s4);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.subs__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.subs__sort {
  padding: var(--s2) var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}
.subs__sort:focus-visible { border-color: var(--line-strong); }


.subs__list {
  display: grid;
  gap: var(--s1);
  max-height: 60vh;
  padding: var(--s2);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--depth-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.subs__list::-webkit-scrollbar { width: 10px; }
.subs__list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
  background-color: rgba(233, 189, 101, 0.28);
}

.subs__row {
  padding: var(--s3);
  border-radius: var(--radius-sm);
  transition: background-color var(--d1) var(--ease);
}
.subs__row + .subs__row { border-top: 1px solid var(--line-faint); }
.subs__row:hover { background: rgba(233, 189, 101, 0.05); }
.subs__row[data-accepted] { background-image: linear-gradient(90deg, var(--wash) 0%, transparent 38%); }
.subs__row[data-out] { opacity: 0.5; }

.subs__head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: 2px;
}

.subs__name {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subs__code {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--faint);
}

.subs__flag {
  padding: 1px var(--s2);
  border: 1px solid rgba(220, 80, 68, 0.7);
  border-radius: 3px;
  color: #ef8177;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.subs__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.subs__works {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
}

.subs__work {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
a.subs__work:hover { color: var(--gold-soft); border-color: var(--line); }

.sealed {
  display: grid;
  gap: var(--s4);
  padding: var(--s12) var(--s8);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(230, 204, 146, 0.024) 0 10px, transparent 10px 22px),
    var(--panel);
  color: var(--muted);
}
.sealed p { margin: 0; max-width: 54ch; }

.archive__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.find {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex: 1 1 240px;
  max-width: 380px;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color var(--d1) var(--ease);
}
.find:focus-within { border-color: var(--line-strong); }
.find input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.find input::placeholder { color: var(--faint); opacity: 0.7; }

.count {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  margin-left: auto;
}

.grid {
  min-width: 0;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: auto;
  max-height: 72vh;
  box-shadow: var(--depth-1);
}

table.works {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.works thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: var(--s3) var(--s3);
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line-faint);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  white-space: nowrap;
}
table.works thead th button {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
table.works thead th[colspan] { text-align: center; letter-spacing: 0.14em; color: var(--muted); }
table.works thead th button:hover { color: var(--gold); }
table.works thead th[aria-sort] button { color: var(--gold); }
table.works thead th[aria-sort="descending"] button::after { content: "▾"; }
table.works thead th[aria-sort="ascending"] button::after { content: "▴"; }

table.works td {
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--line-faint);
  vertical-align: middle;
}
table.works tbody tr { transition: background-color var(--d1) var(--ease); }
table.works tbody tr:hover { background: rgba(233, 189, 101, 0.05); }

.works__title {
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.works__title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.works__title a:hover { color: var(--gold-soft); border-color: var(--line); }

.works__who {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--muted);
  white-space: nowrap;
}
.works__who img { width: 18px; height: 18px; }
.works__who[data-out] { color: var(--danger); text-decoration: line-through; }

.works__n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.works__n[data-strong] { color: var(--gold-soft); font-weight: 700; }
.works__n[data-dim] { color: var(--faint); }

.works__when {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  white-space: nowrap;
}

.empty {
  padding: var(--s16) var(--s6);
  text-align: center;
  color: var(--faint);
}

.colophon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: var(--s8) var(--s6) var(--s16);
  border-top: 1px solid var(--line-faint);
  color: var(--faint);
  font-size: 0.82rem;
}
.colophon a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
}
.colophon a:hover { color: var(--gold-soft); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: var(--s6);
  overflow: hidden;
}
.sheet[hidden] { display: none; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(159, 39, 34, 0.22), transparent 62%),
    rgba(6, 3, 3, 0.78);
  backdrop-filter: blur(6px) saturate(0.9);
  animation: fade var(--d2) var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(233, 189, 101, 0.07), transparent 240px),
    var(--bg-soft);
  box-shadow: var(--depth-3), 0 0 0 1px rgba(247, 223, 154, 0.08);
  animation: rise var(--d3) var(--ease);
}
.sheet__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 223, 154, 0.55), transparent);
}
@keyframes rise { from { transform: translate3d(0, 14px, 0) scale(0.985); opacity: 0; } }
.sheet__panel:focus { outline: none; }

.sheet__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--s4);
  padding: var(--s6) var(--s8);
  border-bottom: 1px solid var(--line-faint);
}

.sheet__title {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid rgba(233, 189, 101, 0.76);
}

.sheet__round {
  min-width: 0;
  color: #fff0cf;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.sheet__word {
  flex: none;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.sheet__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.sheet__close::before { content: "✕"; font-size: 0.9rem; }
.sheet__close:hover { color: var(--gold-soft); border-color: var(--line-strong); }

.sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--s6) var(--s8) calc(var(--s12) + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
}
.sheet__body::-webkit-scrollbar { width: 10px; }
.sheet__body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
  background-color: rgba(233, 189, 101, 0.28);
}

.facts {
  display: grid;
  gap: var(--s2);
  margin: 0 0 var(--s8);
  padding: var(--s4) var(--s6);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 0.88rem;
}
.facts dt { color: var(--faint); margin: 0; }
.facts dd { margin: 0; color: var(--text); text-align: right; }

.sheet h3 {
  margin: var(--s12) 0 var(--s4);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.sheet h4 {
  margin: var(--s6) 0 var(--s2);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.sheet p {
  margin: 0 0 var(--s3);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
}
.sheet ul {
  margin: 0 0 var(--s4);
  padding-left: 1.1em;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
}
.sheet li { margin-bottom: var(--s1); }

.tally {
  display: grid;
  gap: var(--s1);
  margin: 0 0 var(--s4);
}
.tally div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  background: rgba(230, 204, 146, 0.04);
  font-size: 0.88rem;
  color: var(--muted);
}
.tally b {
  font-family: var(--mono);
  color: var(--gold-soft);
}

[data-reveal] { will-change: transform, opacity; }
html[data-ready] [data-reveal]:not([data-shown]) {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
[data-reveal][data-shown] {
  transition:
    opacity var(--d3) var(--ease) var(--delay, 0ms),
    transform var(--d3) var(--ease) var(--delay, 0ms);
}

@media (max-width: 1079px) {
  .floor__board { margin-bottom: var(--s4); }
}

@media (max-width: 719px) {
  :root { --bar-h: 52px; }
  .curtain { padding: var(--s8) var(--s4) var(--s4); }
  .marquee__inner { padding: var(--s4); gap: var(--s3); }
  .index__inner { gap: var(--s3); padding: 0 var(--s4); }
  .index__home { display: none; }
  .index__name { display: none; }
  .index__act { padding: 0 var(--s2); font-size: 0.9rem; }
  .index__act[aria-selected="true"]::after { inset: auto var(--s2) -1px; }
  .stage { padding: var(--s12) var(--s4) var(--s20); }
  .acts { gap: var(--s20); }
  .act__ghost { font-size: 6rem; opacity: 0.7; }
  .row {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    padding: var(--s3) var(--s2);
  }
  .row__end {
    display: grid;
    grid-column: 2;
    grid-template-columns: 58px minmax(72px, 86px) minmax(80px, 1fr);
    gap: var(--s2);
    width: 100%;
    align-items: center;
  }
  .row { align-items: center; }
  .map { width: 58px; }
  .score { width: 100%; max-width: 176px; }
  .judges { width: 100%; min-width: 0; }
  .judges__row { gap: 0.2rem; padding-right: 0; }
  .judges__who { min-width: 0; width: 100%; height: 1rem; padding: 0 0.2rem; font-size: 0.54rem; }
  .judges__n { font-size: 0.72rem; }
  .podium { gap: var(--s2); }
  .plinth { padding: var(--s4) var(--s2); }
  .plinth[data-place="1"] { padding-top: var(--s8); }
  .ranking { padding: var(--s4); }
  .ranking__grid { gap: var(--s2); }
  .judges-panel__grid { grid-template-columns: minmax(0, 1fr); }
  .sealed { padding: var(--s8) var(--s4); }
  .sheet { padding: var(--s3); }
  .sheet__head { padding: var(--s4); }
  .sheet__body { padding: var(--s4) var(--s4) calc(var(--s8) + env(safe-area-inset-bottom, 0px)); }
  .grid { max-height: 66vh; }
  table.works { font-size: 0.8rem; }
  table.works td, table.works thead th { padding: var(--s2) var(--s3); }
  .works__title { max-width: 18ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .dust { display: none; }
  .pulse__dot { animation: none; }
  .curtain__art img { transform: none; }
  .waiting span { animation: none; opacity: 0.5; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .score__fill { transition: none; transform: scaleX(var(--fill, 0)); }
  .sheet__panel, .sheet__scrim { animation: none; }
  .sheet__panel { transform: none; }
}

.sheet__body .round-rules {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  max-width: none;
}
.sheet__body .round-rules__inner {
  padding: 0;
  max-width: none;
}
.sheet__body .round-rules__heading { display: none; }
.sheet__body .round-rules__sections { max-width: none; }

/* ===== 2R 빙고 해부 ===== */
.lab {
  margin-top: var(--s16);
  padding-top: var(--s12);
  border-top: 1px solid var(--line-faint);
}

.lab__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s3) var(--s4);
  margin-bottom: var(--s8);
}

.lab__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}

.lab__count {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
}

.lab__modes {
  display: flex;
  gap: var(--s1);
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: var(--panel);
}

.lab__mode {
  padding: var(--s2) var(--s4);
  border: 0;
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color var(--d1) var(--ease), background-color var(--d2) var(--ease);
}
.lab__mode:hover { color: var(--text); }
.lab__mode[aria-selected="true"] {
  color: #1a1008;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 2px 10px rgba(233, 189, 101, 0.28);
}

.lab__board {
  position: relative;
  margin-bottom: var(--s8);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(159, 39, 34, 0.14), transparent 62%),
    var(--panel);
  box-shadow: var(--depth-1), var(--depth-2);
  overflow: hidden;
}

.lab__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.lab__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
}

.lab__cell {
  --v: 0;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: clamp(74px, 9vw, 108px);
  padding: var(--s2);
  border: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg,
      hsla(var(--hue, 40), 74%, 60%, calc(var(--v) * 0.15)),
      hsla(var(--hue, 40), 74%, 48%, calc(var(--v) * 0.07))),
    rgba(9, 5, 4, 0.58);
  box-shadow: inset 0 0 0 1px hsla(var(--hue, 40), 70%, 66%, calc(var(--v) * 0.34));
  text-align: center;
  transition: background var(--d3) var(--ease), box-shadow var(--d3) var(--ease), transform var(--d1) var(--ease);
}
.lab__cell:hover, .lab__cell:focus-visible {
  transform: translate3d(0, -2px, 0);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.lab__cell[data-lit] {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lab__cell[data-dim] { opacity: 0.4; }

.lab__cell[data-peak]::after,
.lab__cell[data-floor]::after {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.lab__cell[data-peak]::after {
  content: "MAX";
  color: #1a1008;
  background: var(--gold-soft);
}
.lab__cell[data-floor]::after {
  content: "MIN";
  color: var(--faint);
  background: rgba(255, 255, 255, 0.08);
}

.lab__kind {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.lab__cell[data-kind="소재"] .lab__kind { color: #d98b7f; }
.lab__cell[data-kind="서술"] .lab__kind { color: #8fb2cf; }
.lab__cell[data-kind="포맷"] .lab__kind { color: #e2c274; }
.lab__cell[data-kind="분위기"] .lab__kind { color: #b79ad2; }
.lab__cell[data-kind="기믹"] .lab__kind { color: #7fc8a9; }
.lab__cell[data-kind="자유"] .lab__kind { color: var(--text); }

.lab__label {
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: keep-all;
  opacity: calc(0.62 + var(--v) * 0.38);
  transition: opacity var(--d3) var(--ease);
}

.lab__value {
  font-family: var(--mono);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  line-height: 1.1;
  opacity: calc(0.5 + var(--v) * 0.5);
  text-shadow: 0 0 calc(var(--v) * 16px) hsla(var(--hue, 40), 80%, 62%, calc(var(--v) * 0.8));
  transition: opacity var(--d3) var(--ease), text-shadow var(--d3) var(--ease);
}

.lab__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s8);
}

.lab__card {
  display: grid;
  gap: 2px;
  padding: var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1);
  transition: border-color var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.lab__card:hover {
  border-color: var(--line-strong);
  transform: translate3d(0, -3px, 0);
}

.lab__card-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.lab__card-value {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.lab__card-kind {
  font-size: 0.7rem;
  color: var(--muted);
}

.lab__card-num {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.lab__split {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}

.lab__lines { display: grid; gap: 3px; }

.lab__line {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 2.8rem;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background-color var(--d1) var(--ease);
}
.lab__line:hover, .lab__line:focus-visible { background: rgba(233, 189, 101, 0.07); }

.lab__line-label {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

.lab__line-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(230, 204, 146, 0.1);
  overflow: hidden;
}

.lab__line-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(233, 189, 101, 0.5), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d4) var(--ease) var(--delay, 0ms);
}
[data-shown] .lab__line-fill { transform: scaleX(var(--fill, 0)); }

.lab__line-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  text-align: right;
}

.lab__line[data-top] .lab__line-label,
.lab__line[data-top] .lab__line-count { color: var(--gold-soft); }
.lab__line[data-zero] .lab__line-label,
.lab__line[data-zero] .lab__line-count { color: var(--faint); opacity: 0.6; }
.lab__line[data-zero] .lab__line-track { background: repeating-linear-gradient(90deg, rgba(230,204,146,.12) 0 3px, transparent 3px 7px); }

.lab__note { display: grid; gap: var(--s3); }
.lab__note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}
.lab__note p:first-child { color: var(--text); }

.lab [data-reveal] { opacity: 0; transform: translate3d(0, 14px, 0); }
.lab [data-reveal][data-shown] {
  opacity: 1;
  transform: none;
  transition: opacity var(--d3) var(--ease) var(--delay, 0ms), transform var(--d3) var(--ease) var(--delay, 0ms);
}

@media (max-width: 900px) {
  .lab__split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 719px) {
  .lab__modes { margin-left: 0; width: 100%; justify-content: space-between; }
  .lab__mode { flex: 1 1 auto; padding: var(--s2); font-size: 0.74rem; }
  .lab__cell { min-height: 68px; padding: 15px 4px var(--s2); }
  .lab__label { font-size: 0.7rem; }
  .lab__value { font-size: 0.92rem; }
  .lab__kind { font-size: 0.54rem; }
  .lab__cell[data-peak]::after,
  .lab__cell[data-floor]::after {
    top: 3px;
    right: 3px;
    padding: 1px 3px;
    font-size: 0.45rem;
    letter-spacing: 0.04em;
  }
  .lab__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .lab__card { padding: var(--s3); }
  .lab__card-title { font-size: 0.62rem; letter-spacing: 0.06em; }
  .lab__card-value { font-size: 1rem; }
  .lab__card-num { font-size: 0.94rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lab [data-reveal] { opacity: 1; transform: none; }
  .lab__line-fill { transition: none; transform: scaleX(var(--fill, 0)); }
}
/* ===== 3R 데스매치 결투장 ===== */
.arena__matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--s6);
}

.arena__match {
  --split: 0.5;
  position: relative;
  display: grid;
  gap: var(--s3);
  padding: var(--s6) var(--s6) var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at calc(var(--split) * 100%) 46%,
      rgba(233, 189, 101, 0.14), transparent 68%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1), var(--depth-2);
  overflow: hidden;
  transition: border-color var(--d3) var(--ease);
}
.arena__match::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 100% at calc(var(--split) * 100%) 50%,
    rgba(247, 223, 154, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.arena__match[data-decided]::before { opacity: 1; }
.arena__match[data-decided] { border-color: rgba(233, 189, 101, 0.34); }

.arena__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.arena__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.arena__state {
  padding: 4px var(--s3);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.arena__state[data-phase="active"] {
  color: var(--gold-soft);
  border-color: rgba(233, 189, 101, 0.34);
}
.arena__state[data-phase="judging"],
.arena__state[data-phase="judged"] {
  color: #1a1008;
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
/* 심사가 끝나고 발표만 남은 상태. 같은 금색이되 테두리를 둘러 한 단계 진행됐음을 알린다. */
.arena__state[data-phase="judged"] {
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 12px rgba(233, 189, 101, 0.28);
}
.arena__state[data-phase="complete"] {
  color: var(--gold-soft);
  border-color: var(--line-strong);
  background: rgba(233, 189, 101, 0.12);
}

.arena__mission {
  margin: 0;
  min-height: 3.1em;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text);
  word-break: keep-all;
}
.arena__mission--sealed {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: 0.94rem;
  color: var(--faint);
}
.arena__lock {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line-faint);
  border-radius: 6px;
  background: rgba(159, 39, 34, 0.22);
  font-size: 0.78rem;
  color: var(--muted);
}

.arena__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}

.arena__duel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--s3);
  margin-top: var(--s1);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-faint);
}

.arena__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 46%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(247, 223, 154, 0.16), transparent);
}
.arena__match[data-fired][data-win="left"] .arena__sweep { animation: arena-sweep-left 1100ms var(--ease) 160ms both; }
.arena__match[data-fired][data-win="right"] .arena__sweep { animation: arena-sweep-right 1100ms var(--ease) 160ms both; }
@keyframes arena-sweep-left {
  0% { opacity: 0; transform: translateX(-50%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-160%); }
}
@keyframes arena-sweep-right {
  0% { opacity: 0; transform: translateX(-50%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%); }
}

.arena__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  padding: var(--s2) var(--s1);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: opacity var(--d3) var(--ease), filter var(--d3) var(--ease);
}
/* 이름과 작품 줄 수가 달라도 총점 행이 두 열에서 같은 높이에 놓이도록 바닥으로 민다. */
.arena__side .arena__num { margin-top: auto; }
.arena__side[data-role="idle"] { opacity: 0.58; }
.arena__side[data-role="lose"] {
  opacity: 0.55;
  filter: saturate(0.45);
}

.arena__who {
  display: grid;
  gap: var(--s2);
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.arena__crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}
.arena__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-faint);
  background: radial-gradient(circle at 50% 40%, rgba(233, 189, 101, 0.14), transparent 70%);
  transition: border-color var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.arena__side[data-role="idle"] .arena__ring {
  border-style: dashed;
  background: none;
}
.arena__side[data-role="win"] .arena__ring {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.18), 0 0 34px rgba(233, 189, 101, 0.34);
}
.arena__icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--d2) var(--ease);
}
.arena__icon:hover { transform: scale(1.08); }
.arena__side[data-role="idle"] .arena__icon { opacity: 0.4; }
.arena__side[data-role="win"] .arena__icon { transform: scale(1.06); }
.arena__icon--empty {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--faint);
  cursor: default;
}

.arena__ident {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.arena__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin: 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.arena__side[data-role="win"] .arena__name-text { color: var(--gold-soft); }

.arena__seal {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1008;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(233, 189, 101, 0.4);
  animation: arena-seal var(--d4) var(--ease) both;
}
/* 탈락과 실격은 금색 승자 인장과 다른 무게로 찍는다. */
.arena__seal[data-outcome="eliminated"],
.arena__seal[data-outcome="disqualified"] {
  width: auto;
  padding: 0 6px;
  background: linear-gradient(180deg, rgba(220, 80, 68, 0.85), rgba(159, 39, 34, 0.9));
  color: #ffe3de;
  font-size: 0.7rem;
  box-shadow: none;
}
.arena__seal[data-outcome="disqualified"] {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(220, 80, 68, 0.5);
  color: var(--red-soft);
}

@keyframes arena-seal {
  from { opacity: 0; transform: scale(0.4) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}

.arena__work {
  display: block;
  max-width: 100%;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  word-break: keep-all;
}
a.arena__work {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 189, 101, 0.28);
}
a.arena__work:hover { border-bottom-color: var(--gold-soft); }
.arena__work--none {
  font-style: italic;
  color: var(--faint);
  opacity: 0.82;
}

.arena__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0;
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--gold-soft);
}
.arena__num-unit { font-size: 0.82rem; color: var(--faint); }
.arena__side[data-role="win"] .arena__num { text-shadow: 0 0 26px rgba(233, 189, 101, 0.5); }
.arena__num--empty {
  font-size: 1.7rem;
  color: var(--faint);
  opacity: 0.45;
}
.arena__num--wait {
  align-items: center;
  gap: var(--s2);
  font-family: var(--font);
  font-size: 0.82rem;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.arena__num--judged {
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 0.82rem;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e9a05a;
}
.arena__judged-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #e58a3a;
  box-shadow: 0 0 0 1px rgba(229, 138, 58, 0.28), 0 0 10px rgba(229, 138, 58, 0.28);
}
.arena__wax {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, var(--red-soft), var(--red) 70%);
  box-shadow: 0 0 0 1px rgba(220, 80, 68, 0.28);
  animation: arena-wax 2.4s ease-in-out infinite;
}
@keyframes arena-wax {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* 총점 아래 세부 평가. 라벨, 채움 막대, 점수와 만점 세 칸 그리드. */
.arena__detail {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 208px;
  margin-top: var(--s1);
  padding-top: var(--s2);
  border-top: 1px solid var(--line-faint);
}
.arena__detail-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
}
.arena__detail-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  white-space: nowrap;
}
.arena__detail-track {
  position: relative;
  height: 3px;
  min-width: 34px;
  border-radius: 999px;
  background: rgba(247, 223, 154, 0.1);
  overflow: hidden;
}
.arena__detail-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease) calc(260ms + var(--stagger, 0ms));
}
.arena__detail-row[data-kind="general"] .arena__detail-fill {
  background: linear-gradient(90deg, rgba(233, 189, 101, 0.55), var(--gold-soft));
  box-shadow: 0 0 8px rgba(233, 189, 101, 0.35);
}
.arena__detail-row[data-kind="special"] .arena__detail-fill {
  background: linear-gradient(90deg, rgba(229, 138, 58, 0.5), #e9a05a);
  box-shadow: 0 0 8px rgba(229, 138, 58, 0.3);
}
.arena__match[data-fired] .arena__detail-fill {
  transform: scaleX(var(--fill, 0));
}
.arena__detail-value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.arena__detail-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.arena__detail-row[data-kind="special"] .arena__detail-num { color: #e9a05a; }
.arena__detail-max {
  font-size: 0.66rem;
  color: var(--faint);
  opacity: 0.8;
}
.arena__side[data-role="win"] .arena__detail-track { background: rgba(247, 223, 154, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .arena__detail-fill { transition: none; }
}
/* 좁은 화면에서는 한 줄에 다 안 들어간다. 라벨과 점수를 위에, 막대를 아래에 눕힌다. */
@media (max-width: 560px) {
  .arena__detail { max-width: 100%; }
  .arena__detail-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label value"
      "track track";
    row-gap: 4px;
  }
  .arena__detail-label { grid-area: label; justify-self: start; }
  .arena__detail-value { grid-area: value; justify-self: end; }
  .arena__detail-track { grid-area: track; width: 100%; }
}

.arena__pivot {
  display: grid;
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: center;
  gap: var(--s2);
}
.arena__pivot-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.arena__vs {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-faint);
  border-radius: 50%;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
  transition: color var(--d3) var(--ease), border-color var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.arena__match[data-decided] .arena__vs {
  color: var(--gold-soft);
  border-color: var(--line-strong);
  box-shadow: 0 0 22px rgba(233, 189, 101, 0.28);
}

.arena__scale {
  display: grid;
  gap: 6px;
  padding-top: var(--s2);
}
.arena__scale-track {
  --lead: 0;
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(230, 204, 146, 0.14),
    rgba(230, 204, 146, 0.05) 49%,
    rgba(230, 204, 146, 0.05) 51%,
    rgba(230, 204, 146, 0.14));
}
.arena__scale-notch {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 12px;
  background: rgba(247, 223, 154, 0.62);
  box-shadow: 0 0 6px rgba(233, 189, 101, 0.35);
}
.arena__scale-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(var(--lead) * 50%);
  transform: scaleX(0);
  transition: transform var(--d4) var(--ease) 260ms;
}
.arena__scale-head {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px rgba(233, 189, 101, 0.6);
  opacity: 0;
  transition: opacity var(--d3) var(--ease) 760ms;
}
[data-shown] .arena__scale-fill { transform: scaleX(1); }
[data-shown] .arena__scale-head { opacity: 1; }
.arena__scale[data-dir="left"] .arena__scale-fill {
  right: 50%;
  transform-origin: right center;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(270deg, rgba(233, 189, 101, 0.25), var(--gold-soft));
}
.arena__scale[data-dir="right"] .arena__scale-fill {
  left: 50%;
  transform-origin: left center;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, rgba(233, 189, 101, 0.25), var(--gold-soft));
}
.arena__scale[data-dir="left"] .arena__scale-head {
  left: calc(50% - var(--lead) * 50%);
  transform: translate(-50%, -50%);
}
.arena__scale[data-dir="right"] .arena__scale-head {
  left: calc(50% + var(--lead) * 50%);
  transform: translate(-50%, -50%);
}
/* 세부 평가 라벨(일반 평가)과 같은 서체 규격을 쓴다. */
.arena__scale-text {
  justify-self: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  white-space: nowrap;
}

.arena__foot {
  margin: 0;
  padding-top: var(--s1);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--faint);
  text-align: center;
  word-break: keep-all;
}

.arena .round-judge-scores { justify-content: center; }

.arena__match[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.arena__match[data-reveal][data-shown] {
  opacity: 1;
  transform: none;
  transition: opacity var(--d4) var(--ease) var(--delay, 0ms), transform var(--d4) var(--ease) var(--delay, 0ms);
}

@media (max-width: 900px) {
  .arena__matches { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .arena__match { padding: var(--s4) var(--s4) var(--s3); }
  .arena__duel { gap: var(--s2); }
  .arena__crest { width: 58px; height: 58px; }
  .arena__icon { width: 42px; height: 42px; }
  .arena__name { font-size: 0.92rem; }
  .arena__num { font-size: 1.6rem; }
  .arena__num--empty { font-size: 1.4rem; }
  .arena__num--wait { font-size: 0.78rem; }
  .arena__work { font-size: 0.78rem; }
  .arena__vs { width: 2rem; height: 2rem; font-size: 0.62rem; }
  .arena__pivot { padding-top: var(--s4); }
  .arena__pivot-line { height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .arena__match[data-reveal] { opacity: 1; transform: none; }
  .arena__seal { animation: none; }
  .arena__sweep { animation: none !important; opacity: 0; }
  .arena__wax { animation: none; }
  .arena__scale-fill { transition: none; transform: scaleX(1); }
  .arena__scale-head { transition: none; opacity: 1; }
}


.finale {
  display: grid;
  gap: var(--s6);
}

.finale__theme {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s6) var(--s4) var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(159, 39, 34, 0.14), transparent 70%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1), var(--depth-2);
  text-align: center;
}
.finale__theme-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.finale__theme-word {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 0 34px rgba(233, 189, 101, 0.3);
  word-break: keep-all;
}
.finale__theme-word--sealed {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 1.1rem;
  color: var(--faint);
  text-shadow: none;
}
.finale__theme-lock {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(220, 80, 68, 0.4);
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--red-soft);
  transform: rotate(-8deg);
}
.finale__theme-rule {
  width: min(220px, 52%);
  height: 1px;
  margin-top: var(--s2);
  background: linear-gradient(90deg, transparent, rgba(233, 189, 101, 0.5), transparent);
}

.finale__descent {
  position: relative;
  display: grid;
  gap: var(--s4);
}
.finale__descent::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 26px;
  left: 17px;
  width: 1px;
  background: linear-gradient(180deg, rgba(233, 189, 101, 0.4), rgba(159, 39, 34, 0.45));
}
.finale__step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--s3);
}
.finale__spine-cell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--s4);
}
.finale__spine-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--faint);
}
.finale__spine-node[data-phase="active"] {
  border-color: rgba(220, 80, 68, 0.55);
  color: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(220, 80, 68, 0.12), 0 0 14px rgba(220, 80, 68, 0.3);
  animation: finale-node 2.6s ease-in-out infinite;
}
.finale__spine-node[data-phase="complete"] {
  border-color: rgba(233, 189, 101, 0.5);
  background: linear-gradient(180deg, rgba(233, 189, 101, 0.24), rgba(233, 189, 101, 0.08));
  color: var(--gold-soft);
}
@keyframes finale-node {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 80, 68, 0.1), 0 0 10px rgba(220, 80, 68, 0.22); }
  50% { box-shadow: 0 0 0 4px rgba(220, 80, 68, 0.16), 0 0 18px rgba(220, 80, 68, 0.4); }
}

.finale__set {
  padding: var(--s4) var(--s4) var(--s3);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1), var(--depth-2);
  transition: border-color var(--d3) var(--ease);
}
.finale__set[data-phase="active"] {
  border-color: rgba(220, 80, 68, 0.3);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(159, 39, 34, 0.1), transparent 62%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
}
.finale__set[data-phase="complete"] { border-color: rgba(233, 189, 101, 0.26); }
.finale__set[data-phase="scheduled"] { opacity: 0.72; }

.finale__set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-faint);
}
.finale__set-title {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.finale__set-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.finale__set-state {
  padding: 3px var(--s3);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.finale__set-state[data-phase="active"] {
  border-color: transparent;
  background: linear-gradient(180deg, var(--red-soft), var(--red));
  color: #ffe9dc;
}
.finale__set-state[data-phase="complete"] {
  color: var(--gold-soft);
  background: rgba(233, 189, 101, 0.12);
  border-color: var(--line-strong);
}
.finale__deadline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}

.finale__rows {
  display: grid;
}
.finale__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s1);
  border-bottom: 1px solid var(--line-faint);
  transition: opacity var(--d3) var(--ease), filter var(--d3) var(--ease);
}
.finale__row:last-child { border-bottom: 0; }
.finale__row[data-state="out"] {
  opacity: 0.42;
  filter: saturate(0.35);
}
.finale__crest {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
.finale__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.finale__row[data-state="live"] .finale__icon {
  filter: drop-shadow(0 0 9px rgba(233, 189, 101, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.finale__icon--empty {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--faint);
}
.finale__who {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.finale__name {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  min-width: 0;
}
.finale__name-text {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finale__row[data-state="live"] .finale__name-text { color: var(--gold-soft); }
.finale__seal {
  flex: 0 0 auto;
  padding: 2px var(--s2);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.finale__seal--live {
  color: #1a1008;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.finale__seal--out {
  color: #ffd9d3;
  background: linear-gradient(180deg, rgba(220, 80, 68, 0.8), rgba(159, 39, 34, 0.85));
}
.finale__work {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finale__work--none {
  font-style: italic;
  color: var(--faint);
  opacity: 0.7;
}
.finale__score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--gold-soft);
  white-space: nowrap;
}
.finale__score-unit { font-size: 0.72rem; color: var(--faint); }
.finale__score--empty { font-size: 1.05rem; color: var(--faint); opacity: 0.45; }
.finale__score--wait,
.finale__score--judged {
  align-items: center;
  gap: var(--s2);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.finale__score--judged { color: #e9a05a; }
.finale__judged-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e58a3a;
  box-shadow: 0 0 0 1px rgba(229, 138, 58, 0.28), 0 0 9px rgba(229, 138, 58, 0.28);
}
.finale__wax {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, var(--red-soft), var(--red) 70%);
  box-shadow: 0 0 0 1px rgba(220, 80, 68, 0.28);
  animation: arena-wax 2.4s ease-in-out infinite;
}
.finale__hollow {
  margin: var(--s3) 0 0;
  font-size: 0.82rem;
  color: var(--faint);
  text-align: center;
}

.finale__podium {
  padding: var(--s6) var(--s4);
  border: 1px solid rgba(233, 189, 101, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 110% at 50% 0%, rgba(233, 189, 101, 0.14), transparent 66%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1), var(--depth-2);
}
.finale__podium-eyebrow {
  margin: 0 0 var(--s4);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--gold-soft);
}
.finale__podium-seats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: var(--s3);
  max-width: 560px;
  margin: 0 auto;
}
.finale__plinth {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s2);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}
.finale__plinth[data-place="1"] {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  border-color: rgba(233, 189, 101, 0.4);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(233, 189, 101, 0.16), transparent 70%),
    rgba(0, 0, 0, 0.22);
}
.finale__plinth-rank {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.finale__plinth[data-place="1"] .finale__plinth-rank { color: var(--gold-soft); }
.finale__plinth-crest img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}
.finale__plinth[data-place="1"] .finale__plinth-crest img {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 18px rgba(233, 189, 101, 0.45)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}
.finale__plinth-hollow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--faint);
}
.finale__plinth-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.finale__plinth[data-place="1"] .finale__plinth-name {
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.finale [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--d4) var(--ease) var(--delay, 0ms), transform var(--d4) var(--ease) var(--delay, 0ms);
}
.finale [data-fired] {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .finale__descent::before { left: 12px; top: 26px; }
  .finale__step { grid-template-columns: 24px minmax(0, 1fr); gap: var(--s2); }
  .finale__spine-node { width: 22px; height: 22px; font-size: 0.62rem; }
  .finale__set { padding: var(--s3); }
  .finale__set-head { flex-wrap: wrap; }
  .finale__row { grid-template-columns: auto minmax(0, 1fr); }
  .finale__row .finale__score { grid-column: 2; justify-self: end; }
  .finale__podium-seats { gap: var(--s2); }
  .finale__plinth-name { font-size: 0.85rem; }
  .finale__plinth[data-place="1"] .finale__plinth-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .finale [data-reveal] { opacity: 1; transform: none; transition: none; }
  .finale__spine-node[data-phase="active"] { animation: none; }
  .finale__wax { animation: none; }
}

.act--x .act__ghost {
  -webkit-text-stroke-color: rgba(199, 127, 82, 0.2);
}
/* 3R 심사평 진입점.
   아이콘을 빼고 이름만 남긴다. 두 심사위원을 한 알약 안에 담아 가는 선으로 나누고,
   구분은 배경이 아니라 글자 색으로 준다. 눌러야 하는 것으로만 보이면 충분하다. */
.arena__reviews {
  display: inline-flex;
  align-self: center;
  margin-top: var(--s2);
  padding: 2px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: rgba(9, 5, 4, 0.42);
}

.arena__review {
  padding: 0.24rem 0.66rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  transition: color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.arena__review + .arena__review {
  box-shadow: inset 1px 0 0 var(--line-faint);
}
.arena__review[data-judge="genius"]:hover,
.arena__review[data-judge="genius"]:focus-visible {
  color: #f0a79c;
  background: rgba(198, 89, 86, 0.16);
}
.arena__review[data-judge="kassian"]:hover,
.arena__review[data-judge="kassian"]:focus-visible {
  color: #a8d3f2;
  background: rgba(105, 157, 197, 0.16);
}
.arena__review:focus-visible {
  outline: 1px solid rgba(239, 207, 142, 0.8);
  outline-offset: 2px;
}
.arena__review[aria-expanded="true"] {
  color: var(--gold-soft);
  background: rgba(233, 189, 101, 0.14);
}

.arena__side[data-role="lose"] .arena__reviews { opacity: 0.72; }
.arena__side[data-role="lose"] .arena__reviews:hover { opacity: 1; }

@media (max-width: 560px) {
  .arena__review { padding: 0.2rem 0.5rem; font-size: 0.62rem; }
}

.round-x {
  display: grid;
  gap: var(--s12);
}

.x-relic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--s8);
  padding: var(--s8);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--vault), transparent 52%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--depth-1), var(--depth-2);
}

.x-relic__niche {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 18vw, 168px);
  padding: var(--s6);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(72% 56% at 50% 30%, var(--wash), transparent 72%),
    rgba(0, 0, 0, 0.28);
}
.x-relic__corner {
  position: absolute;
  width: var(--s3);
  height: var(--s3);
  pointer-events: none;
}
.x-relic__corner[data-at="tl"] { top: var(--s2); left: var(--s2); border-top: 1px solid var(--vault-edge); border-left: 1px solid var(--vault-edge); }
.x-relic__corner[data-at="tr"] { top: var(--s2); right: var(--s2); border-top: 1px solid var(--vault-edge); border-right: 1px solid var(--vault-edge); }
.x-relic__corner[data-at="bl"] { bottom: var(--s2); left: var(--s2); border-bottom: 1px solid var(--vault-edge); border-left: 1px solid var(--vault-edge); }
.x-relic__corner[data-at="br"] { bottom: var(--s2); right: var(--s2); border-bottom: 1px solid var(--vault-edge); border-right: 1px solid var(--vault-edge); }

.x-relic__mask {
  width: 100%;
  height: auto;
  opacity: 0.34;
  filter: grayscale(1) brightness(0.42) contrast(1.15);
  transition: opacity var(--d4) var(--ease), filter var(--d4) var(--ease);
}

.x-relic__plate {
  display: grid;
  align-content: center;
  gap: var(--s2);
  min-width: 0;
  padding-left: var(--s8);
  border-left: 1px solid var(--line-faint);
}
.x-relic__ord {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.7;
}
.x-relic__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  word-break: keep-all;
}
.x-relic__work {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin: var(--s2) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-faint);
}
.x-relic__work-value {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--faint);
  opacity: 0.72;
  word-break: keep-all;
}

.round-x .round-ranking--revival {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.round-x .round-ranking--revival .round1-top3__header,
.round-x .round-ranking--revival .round1-top3__heading,
.round-x .round-ranking--revival .round1-top3__heading h3 {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
/* 머리글은 1~3라운드 최종 결과와 같은 글자로, 같은 자리에 선다.
   여기만 몰드체 소문자였고 판도 위아래로 부풀어 있었다. */
.round-x .round-ranking--revival .round1-top3__header {
  padding: 0;
  margin-bottom: 0.55rem;
  align-items: baseline;
}
.round-x .round-ranking--revival .round1-top3__heading h3 {
  padding: 0;
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(233, 189, 101, 0.32);
}
.round-x .x-relic__corner { z-index: 2; }

.round-x .x-submissions {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.round1-submissions__inner {
  display: grid;
  gap: var(--s6);
}
.round1-submissions__stats {
  display: flex;
  justify-content: flex-end;
  gap: var(--s8);
  width: 100%;
  margin: 0;
  padding: 0 0 var(--s3);
  border: 0;
  border-bottom: 1px solid var(--line-faint);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.round1-submissions__stat,
.round1-submissions__stat + .round1-submissions__stat,
.round1-submissions__stat:last-child {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}
.round1-submissions__stat:last-child dt,
.round1-submissions__stat:last-child dd,
.round1-submissions__stat:last-child span { color: inherit; }
.round1-submissions__stat dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.round1-submissions__stat dd {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}
.round1-submissions__stat dd strong { font-size: 1.1rem; font-weight: 700; }
.round1-submissions__stat dd span { font-size: 0.72rem; color: var(--faint); }

.round1-submissions__carousel,
.round1-submissions__page {
  border: 0;
  background: none;
  box-shadow: none;
}
.round1-submissions__track { align-items: start; }
.round1-submissions__page,
.round1-submissions__page .round1-submissions__list {
  height: auto;
  align-self: start;
}
.round1-submissions__list {
  display: grid;
  align-content: start;
  gap: 0;
  border-top: 1px solid var(--line-faint);
}
.round-x .x-submission {
  /* 기반 규칙은 세 열(가면, 작품, 편수)이다. 편수를 가면 위로 옮겼으므로
     두 열로 줄인다. 그대로 두면 오른쪽에 빈 열이 남는다.
     가면 열은 고정 폭이다. 닉네임 길이에 따라 가면이 좌우로 흔들리면 안 된다. */
  /* 작품 칸은 고정 폭이다. 내용 폭에 맡기면 엔트리마다 너비가 달라져
     점수 뱃지가 한 열에 서지 않고, 남는 폭도 제각각으로 갈린다. */
  grid-template-columns: var(--s16) minmax(0, 26rem);
  justify-content: center;
  align-content: center;
  padding: var(--s3) var(--s2);
  border: 0;
  border-bottom: 1px solid var(--line-faint);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: background-color var(--d1) var(--ease);
}
.round-x .x-submission:hover {
  background: var(--wash);
}
.round-x .x-submission__work-count {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--faint);
}

.round1-submissions__state {
  padding: var(--s16) var(--s4);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 560px) {
  .round-x { gap: var(--s8); }
  .x-relic {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
    padding: var(--s4);
  }
  .x-relic__niche {
    width: 100%;
    padding: var(--s4);
  }
  .x-relic__mask { width: clamp(96px, 34vw, 132px); }
  .x-relic__plate {
    padding-left: 0;
    padding-top: var(--s4);
    border-left: 0;
    border-top: 1px solid var(--line-faint);
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .x-relic__mask { transition: none; }
}

.round1-submissions__list {
  /* 격자로 두면 한 행의 높이를 두 칸이 나눠 쓴다. 한 편짜리 엔트리가 옆의
     여러 편짜리 높이까지 끌려 올라가 빈 공간이 생긴다. 다단으로 흘려
     각 단이 제 높이대로 쌓이게 한다. */
  display: block;
  columns: 2;
  column-gap: 0;
  column-fill: balance;
}
.round1-submissions__list .x-submission {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
/* 두 단을 가르는 세로 괘선. 왼쪽 칸은 어느 행에나 있으므로 끊기지 않는다.
   가로줄과 같은 농도로 두면 두 단이 한 표처럼 이어져 보이므로 한 단계 올린다. */
/* 단 사이 괘선은 브라우저가 그려 준다. 엔트리마다 오른쪽 선을 넣으면
   다단에서는 오른쪽 단에도 선이 붙어 표 밖으로 삐져나온다. */
.round1-submissions__list {
  column-rule: 1px solid var(--line);
}
.round1-submissions__list .round1-submission__works {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s2);
  /* 기반 규칙의 오른쪽 안쪽 여백은 뱃지를 안으로 밀어 좌우 여백을 어긋나게 한다. */
  padding-right: 0;
}
/* 점수는 고정 폭 작품 칸의 오른쪽 끝에 선다. 칸이 고정이므로 제목 길이가
   달라도 뱃지는 한 열에 머문다. 화면이 좁으면 칸 전체가 함께 줄어든다. */
.round-x .x-submission__work {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) var(--s12);
  justify-content: stretch;
  align-items: center;
  column-gap: var(--s3);
  min-width: 0;
}
.round-x .x-submission__work .round1-submission__work-link {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 출품 편수는 가면 위에 작고 옅게. */
.round-x .round1-submission__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* 편수, 가면, 닉네임이 한 중심선 위에 선다. 칸 폭이 고정이므로
     닉네임이 길어져도 가면은 움직이지 않는다. */
  justify-items: center;
  justify-content: start;
  gap: 3px;
  align-content: center;
  min-width: 0;
}
.round-x .round1-submission__identity .round1-submission__nickname {
  /* 좁은 화면 기반 규칙은 닉네임을 가면 위로 올린다. 여기서는 편수만 올린다. */
  order: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.round-x .x-submission__work-count {
  order: -1;
  justify-self: stretch;
  width: 100%;
  text-align: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
  opacity: 0.5;
}

/* 패자부활전 출품작 목록.
   테두리도 판도 두지 않는다. 참가자를 상자에 넣으면 화면이 서른두 토막으로 잘려
   목록이 아니라 표가 된다. 가르는 일은 여백과 가면이 맡고, 선은 제목과 점수를
   잇는 데만 쓴다. 두 흐름 사이도 괘선 없이 넓은 여백으로만 나눈다. */
.round1-submissions__list {
  display: block;
  columns: 2;
  column-gap: var(--s16);
  column-fill: balance;
  column-rule: 1px solid var(--line-faint);
  border-top: 0;
}

/* 기반 규칙은 목록 전체를 테두리와 둥근 모서리와 바탕판으로 감싼다. 그 상자 하나가
   화면 한가운데 커다란 사각형을 그려 놓아, 안을 아무리 비워도 목록이 상자로 읽혔다.
   통계 줄 아래 괘선도 같은 이유로 걷는다. */
.round1-submissions__list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.round1-submissions__stats {
  border-bottom: 0;
}

.round1-submissions__list .x-entry {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: grid;
  gap: var(--s1);
  margin: 0 0 var(--s6);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.round1-submissions__list .x-entry__head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  padding: 0 0 var(--s1);
  border: 0;
}

.round1-submissions__list .x-entry__mask {
  display: grid;
  place-items: center;
  width: var(--s6);
  height: var(--s6);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
}

.round1-submissions__list .x-entry:hover .x-entry__mask { opacity: 1; }
.round1-submissions__list .x-entry__mask:hover { transform: scale(1.1); }
.round1-submissions__list .x-entry__mask:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }

.round1-submissions__list .x-entry__mask-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.round1-submissions__list .x-entry__name {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round1-submissions__list .x-entry__count {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  opacity: 0.62;
}

.round1-submissions__list .x-entry__works {
  display: grid;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 제목은 제 폭만 쓰고 남는 자리는 점선이 받는다. 제목이 길면 점선이 0 으로 줄고
   제목이 말줄임으로 잘린다. 점수는 어느 줄에서나 같은 오른쪽 끝에 선다. */
.round1-submissions__list .x-entry__work {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--s2);
  min-width: 0;
  padding: 3px 0;
}

.round1-submissions__list .x-entry__title {
  overflow: hidden;
  min-width: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--d1) var(--ease);
}

.round1-submissions__list a.x-entry__title:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

.round1-submissions__list .x-entry__leader {
  align-self: center;
  height: 0;
  min-width: 0;
  border-bottom: 1px dotted rgba(230, 204, 146, 0.16);
}

/* 점수판은 계조를 그대로 쓰되 몸집을 줄인다. 예순 개가 한 화면에 늘어서므로
   원래 크기로는 판이 글보다 커진다. 아직 점수가 없는 줄은 판 없이 흐린 줄표만. */
.round1-submissions__list .x-entry .x-score {
  min-width: var(--s8);
  height: 20px;
  padding-inline: 7px;
  font-size: 0.78rem;
  box-shadow: none;
}

.round1-submissions__list .x-entry .x-score[data-tier="8"] {
  box-shadow: 0 0 12px rgba(233, 189, 101, 0.24);
}

.round1-submissions__list .x-entry .x-score--none {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0.24;
}

.round1-submissions__list .x-entry .x-score--invalid {
  background: none;
  border: 1px solid rgba(230, 204, 146, 0.16);
  box-shadow: none;
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .round1-submissions__list { columns: 1; }
  .round1-submissions__list .x-entry { margin-bottom: var(--s4); }
  .round1-submissions__list .x-entry__title { font-size: 0.86rem; }
}

.x-score {
  min-width: var(--s12);
  padding-inline: var(--s2);
}

@media (max-width: 760px) {
  .round1-submissions__list { columns: 1; }
  .round1-submissions__list .x-entry { padding: var(--s3); }
  .round1-submissions__list .x-entry__title { font-size: 0.86rem; }
  .x-score { font-size: 0.84rem; }
}
.x-score {
  justify-self: stretch;
  display: grid;
  place-items: center;
  height: var(--s6);
  border-radius: var(--radius-sm);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--score-1);
  color: var(--score-1-ink);
  box-shadow: inset 0 1px 0 rgba(247, 223, 154, 0.14);
  transition: background-color var(--d3) var(--ease), color var(--d3) var(--ease);
}
.x-score[data-tier="2"] { background: var(--score-2); color: var(--score-2-ink); }
.x-score[data-tier="3"] { background: var(--score-3); color: var(--score-3-ink); }
.x-score[data-tier="4"] { background: var(--score-4); color: var(--score-4-ink); }
/* 70점부터 판이 밝아지고 글자가 어두워진다. 윗면 하이라이트도 함께 바뀐다. */
.x-score[data-tier="5"] {
  background: var(--score-5);
  color: var(--score-5-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.x-score[data-tier="6"] {
  background: var(--score-6);
  color: var(--score-6-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.x-score[data-tier="7"] {
  background: var(--score-7);
  color: var(--score-7-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
/* 만점만 빛을 두른다. */
.x-score[data-tier="8"] {
  background: var(--score-8);
  color: var(--score-8-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 14px rgba(233, 189, 101, 0.26);
}
.x-score--none {
  background: none;
  border: 1px dashed var(--line-faint);
  color: var(--faint);
  opacity: 0.36;
  box-shadow: none;
}

.x-score--invalid {
  color: rgba(230, 218, 202, 0.82);
  border: 1px solid rgba(230, 204, 146, 0.16);
  background: #070606;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 2px 7px rgba(0, 0, 0, 0.32);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}


@media (prefers-reduced-motion: reduce) {
  .x-score { transition: none; }
}



.vigil {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--s6);
  align-content: start;
  min-height: clamp(420px, 58vh, 620px);
  padding: var(--s8) var(--s4) var(--s12);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: radial-gradient(128% 82% at 50% -6%, #17100C 0%, #0C0705 58%, #060302 100%);
}
.vigil__sky {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.vigil[data-sky="on"] .vigil__sky { opacity: 1; }
.vigil__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(74% 46% at 50% 4%, rgba(233, 189, 101, 0.10), transparent 72%),
    linear-gradient(to bottom, rgba(6, 3, 2, 0.52) 0%, transparent 26%, transparent 58%, rgba(6, 3, 2, 0.78) 100%);
}
.vigil > *:not(.vigil__sky):not(.vigil__veil):not(.vigil__plates) { position: relative; z-index: 2; }

.vigil__head {
  display: grid;
  justify-items: center;
  gap: var(--s2);
}
.vigil__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  color: var(--faint);
  opacity: 0.72;
}
.vigil__tally {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}
.vigil__tally strong {
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  line-height: 1;
  color: var(--gold-soft);
  text-shadow: 0 0 26px rgba(233, 189, 101, 0.32);
}
.vigil__tally-slash { color: var(--line-strong); font-size: 1.1rem; }
.vigil__tally span:last-child { font-size: 1.15rem; color: var(--faint); }

.vigil__hall {
  perspective: 1500px;
  perspective-origin: 50% 46%;
  padding-block: var(--s6) var(--s4);
}
.vigil__rig {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  will-change: transform;
}
.vigil__dais {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: min(96%, 1000px);
  height: 300px;
  transform: translateX(-50%) rotateX(76deg);
  transform-origin: 50% 0%;
  pointer-events: none;
  opacity: 0.65;
  background:
    radial-gradient(58% 66% at 50% 0%, rgba(233, 189, 101, 0.15), transparent 74%),
    repeating-linear-gradient(90deg, rgba(247, 223, 154, 0.045) 0 1px, transparent 1px 68px);
}

.vigil__seats {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
}
.vigil__seat {
  position: relative;
  flex: 0 0 auto;
  width: clamp(92px, 11.5vw, 148px);
  display: grid;
  justify-items: center;
  gap: var(--s3);
  transform-style: preserve-3d;
  transform: translate3d(0, var(--drop, 0px), var(--push, 0px)) rotateY(var(--turn, 0deg));
  opacity: 0;
  animation: vigil-rise var(--d4) var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes vigil-rise {
  from {
    opacity: 0;
    transform: translate3d(0, calc(var(--drop, 0px) + 40px), calc(var(--push, 0px) - 140px)) rotateY(var(--turn, 0deg));
  }
  to {
    opacity: 1;
    transform: translate3d(0, var(--drop, 0px), var(--push, 0px)) rotateY(var(--turn, 0deg));
  }
}

.vigil__niche {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border: 1px solid var(--line-faint);
  border-radius: 50% 50% var(--s1) var(--s1) / 40% 40% var(--s1) var(--s1);
  background: linear-gradient(to bottom, rgba(5, 3, 2, 0.92), rgba(14, 9, 6, 0.66));
  box-shadow: inset 0 18px 44px rgba(0, 0, 0, 0.82), var(--depth-2);
  transition: border-color var(--d3) var(--ease), box-shadow var(--d3) var(--ease), transform var(--d3) var(--ease);
}
.vigil__beam {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 66%;
  height: 120%;
  transform: translateX(-50%);
  clip-path: polygon(37% 0%, 63% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(to bottom, rgba(247, 223, 154, 0.34), rgba(233, 189, 101, 0.09) 48%, transparent 82%);
  filter: blur(7px);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.vigil__pool {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 78%;
  height: 15%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 223, 154, 0.32), transparent 78%);
  filter: blur(4px);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.vigil__mask {
  position: relative;
  width: 62%;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.66));
  transition: transform var(--d3) var(--ease), filter var(--d3) var(--ease);
}
.vigil__void {
  display: grid;
  place-items: center;
  width: 54%;
  aspect-ratio: 1;
  border: 1px dashed rgba(230, 204, 146, 0.16);
  border-radius: 50%;
}
.vigil__void-glyph {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: rgba(230, 204, 146, 0.26);
}

.vigil__plate {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  text-align: center;
}
.vigil__origin {
  font-family: var(--mono);
  word-break: keep-all;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.88;
}

.vigil__name {
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.8vw, 1.62rem);
  line-height: 1.22;
  color: var(--text);
}
.vigil__contenders {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  opacity: 0.46;
}

.vigil__seat[data-state="lit"] .vigil__niche {
  border-color: var(--vault-edge);
  box-shadow: inset 0 16px 40px rgba(0, 0, 0, 0.72), 0 0 34px rgba(233, 189, 101, 0.16), var(--depth-2);
}
.vigil__seat[data-state="lit"] .vigil__beam { opacity: 1; animation: vigil-flicker 6.5s var(--ease) infinite; }
.vigil__seat[data-state="lit"] .vigil__pool { opacity: 1; }
.vigil__seat[data-state="lit"] .vigil__name { text-shadow: 0 0 18px rgba(233, 189, 101, 0.28); }
@keyframes vigil-flicker {
  0%, 100% { opacity: 1; }
  42% { opacity: 0.82; }
  68% { opacity: 1; }
  74% { opacity: 0.9; }
}

.vigil__seat[data-state="dark"] .vigil__name { color: var(--faint); opacity: 0.66; }
.vigil__seat[data-state="dark"] .vigil__niche { background: linear-gradient(to bottom, rgba(4, 2, 2, 0.94), rgba(9, 6, 5, 0.78)); }
.vigil__seat[data-state="dark"] .vigil__void { animation: vigil-wait 4.2s var(--ease) infinite; }
@keyframes vigil-wait {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.vigil__seat[data-origin="roundX"] .vigil__niche { border-color: rgba(220, 80, 68, 0.3); }
.vigil__seat[data-origin="roundX"] .vigil__void { border-color: rgba(220, 80, 68, 0.28); }
.vigil__seat[data-origin="roundX"] .vigil__void-glyph { color: rgba(220, 80, 68, 0.48); }
.vigil__seat[data-origin="roundX"] .vigil__sigil { color: var(--red-soft); opacity: 0.7; }
.vigil__seat[data-origin="roundX"][data-state="dark"] .vigil__name { color: var(--red-soft); opacity: 0.78; }

.vigil__seat:hover .vigil__niche,
.vigil__seat:focus-within .vigil__niche {
  transform: translateZ(26px);
  border-color: var(--line-strong);
}
.vigil__seat:hover .vigil__mask { transform: scale(1.06); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7)); }

@media (max-width: 720px) {
  .vigil { padding: var(--s6) var(--s3) var(--s8); }
  .vigil__hall { perspective: 900px; }
  .vigil__seats { flex-wrap: wrap; gap: var(--s3) var(--s2); }
  .vigil__seat {
    width: calc(33.333% - var(--s2));
    transform: translate3d(0, 0, 0) rotateY(0deg);
  }
  .vigil__dais { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vigil__seat { animation: none; opacity: 1; }
  .vigil__seat[data-state="lit"] .vigil__beam { animation: none; }
  .vigil__seat[data-state="dark"] .vigil__void { animation: none; opacity: 0.75; }
  .vigil__sky { transition: none; }
}

.vigil--hall {
  padding: 0;
  min-height: clamp(460px, 64vh, 720px);
  background: #060302;
}
.vigil--hall .vigil__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.vigil--hall .vigil__veil {
  background:
    linear-gradient(to bottom, rgba(6, 3, 2, 0.72) 0%, transparent 22%),
    radial-gradient(120% 68% at 50% 108%, rgba(6, 3, 2, 0.62), transparent 62%);
}
.vigil--hall .vigil__head {
  padding: var(--s6) var(--s4) 0;
}
.vigil--hall .vigil__eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.vigil--hall .vigil__tally strong { text-shadow: 0 0 30px rgba(233, 189, 101, 0.4), 0 2px 10px rgba(0, 0, 0, 0.8); }

.vigil .vigil__plates {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.vigil--hall .vigil__plate {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 176px;
  margin: 0;
  padding: 7px 6px 8px;
  text-align: center;
  opacity: 0;
  transform-origin: 50% 0%;
  pointer-events: auto;
  transition: opacity var(--d3) var(--ease);
}
.vigil--hall .vigil__plate[role="button"] { cursor: pointer; }
.vigil--hall .vigil__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-faint);
  background: linear-gradient(to bottom, rgba(10, 6, 4, 0.62), rgba(6, 3, 2, 0.86));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}
.vigil--hall .vigil__plate[data-state="lit"]::before {
  border-color: var(--vault-edge);
  box-shadow: 0 0 26px rgba(233, 189, 101, 0.18), 0 10px 26px rgba(0, 0, 0, 0.62);
}
.vigil--hall .vigil__plate[data-origin="roundX"]::before { border-color: rgba(220, 80, 68, 0.34); }
.vigil--hall .vigil__plate[data-state="lit"] .vigil__name { text-shadow: 0 0 16px rgba(233, 189, 101, 0.34); }
.vigil--hall .vigil__plate[data-state="dark"] .vigil__name { color: var(--faint); opacity: 0.72; }
.vigil--hall .vigil__plate[data-origin="roundX"][data-state="dark"] .vigil__name { color: var(--red-soft); opacity: 0.86; }

.vigil--hall .vigil__plate:hover::before,
.vigil--hall .vigil__plate:focus-visible::before { border-color: var(--line-strong); }

@media (max-width: 720px) {
  .vigil--hall .vigil__plate { width: 104px; padding: 6px 6px 8px; gap: 2px; }
  .vigil--hall .vigil__plate .vigil__origin { font-size: 0.62rem; letter-spacing: 0; line-height: 1.2; }
  .vigil--hall .vigil__plate .vigil__name { font-size: 1.0rem; }
  .vigil--hall .vigil__plate[data-seat="1"],
  .vigil--hall .vigil__plate[data-seat="3"] { margin-top: 58px; }
}

.theme-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(210px, 28vh, 320px);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, #150E0A 0%, #0A0605 62%, #060302 100%);
}
.theme-stage__sky {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.theme-stage[data-sky="on"] .theme-stage__sky { opacity: 1; }
.theme-stage__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 52%, rgba(6, 3, 2, 0.62), transparent 74%),
    linear-gradient(to bottom, rgba(6, 3, 2, 0.5) 0%, transparent 28%, transparent 66%, rgba(6, 3, 2, 0.64) 100%);
}
.theme-stage__body {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: var(--s3);
  padding: var(--s6) var(--s4);
  text-align: center;
}
.theme-stage__eyebrow {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--faint);
  opacity: 0.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.theme-stage__word {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 42px rgba(233, 189, 101, 0.34), 0 4px 22px rgba(0, 0, 0, 0.86);
}
.theme-stage[data-state="revealed"] .theme-stage__word {
  animation: theme-surface 1.5s var(--ease) both;
}
@keyframes theme-surface {
  from { opacity: 0; letter-spacing: 0.36em; filter: blur(14px); }
  to { opacity: 1; letter-spacing: 0.06em; filter: blur(0); }
}
.theme-stage__word--sealed {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  color: var(--faint);
}
.theme-stage__lock {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border: 1px solid rgba(220, 80, 68, 0.42);
  border-radius: 50%;
  font-size: 0.72em;
  color: var(--red-soft);
  text-shadow: 0 0 18px rgba(220, 80, 68, 0.42);
}
.theme-stage__caption {
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  color: var(--muted);
  opacity: 0.86;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .theme-stage[data-state="revealed"] .theme-stage__word { animation: none; }
  .theme-stage__sky { transition: none; }
}

.finale__well {
  perspective: 1600px;
  perspective-origin: 50% 22%;
}
.finale__descent { transform-style: preserve-3d; }

.finale__set {
  transform-style: preserve-3d;
  transform: translate3d(0, 26px, -180px) rotateX(9deg);
  opacity: 0;
  transition:
    transform 900ms var(--ease) var(--delay, 0ms),
    opacity 700ms var(--ease) var(--delay, 0ms);
}
.finale__set[data-fired] {
  transform: translate3d(0, 0, 0) rotateX(0deg);
  opacity: 1;
}

.finale__niche {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s16);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-faint);
  border-radius: 50% 50% var(--s1) var(--s1) / 38% 38% var(--s1) var(--s1);
  background: linear-gradient(to bottom, rgba(5, 3, 2, 0.92), rgba(14, 9, 6, 0.62));
  box-shadow: inset 0 10px 26px rgba(0, 0, 0, 0.8);
  transition: border-color var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.finale__niche-beam {
  position: absolute;
  left: 50%;
  top: -12%;
  width: 64%;
  height: 122%;
  transform: translateX(-50%);
  clip-path: polygon(36% 0%, 64% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(to bottom, rgba(247, 223, 154, 0.30), rgba(233, 189, 101, 0.08) 50%, transparent 84%);
  filter: blur(5px);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.finale__niche-ring {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(233, 189, 101, 0.22);
  box-shadow: inset 0 0 0 3px rgba(233, 189, 101, 0.07);
  opacity: 0;
  transition: opacity var(--d4) var(--ease);
}
.finale__row[data-state="live"] .finale__niche-beam,
.finale__row[data-state="idle"] .finale__niche-beam { opacity: 1; }
.finale__row[data-state="live"] .finale__niche-ring { opacity: 1; animation: finale-turn 26s linear infinite; }
.finale__row[data-state="live"] .finale__niche {
  border-color: var(--vault-edge);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(233, 189, 101, 0.16);
}
@keyframes finale-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.finale__row[data-state="out"] .finale__niche { border-color: rgba(230, 204, 146, 0.06); }
.finale__row[data-state="out"] .finale__icon { filter: grayscale(0.85) brightness(0.34); }
.finale__row[data-state="out"] .finale__name-text { color: var(--faint); opacity: 0.6; }

.finale__row {
  animation: finale-step-in 620ms var(--ease) both;
  animation-delay: var(--row-delay, 0ms);
}
@keyframes finale-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .finale__set { transform: none; opacity: 1; transition: none; }
  .finale__row { animation: none; }
  .finale__row[data-state="live"] .finale__niche-ring { animation: none; }
}

.act--vigil .theme-stage {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.act--vigil .act__head {
  position: relative;
  z-index: 3;
  padding: 0 0 var(--s6);
  margin-bottom: 0;
  border-bottom: 0;
}
.act--vigil .act__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--s12));
  height: var(--s12);
  pointer-events: none;
  background: linear-gradient(to bottom, #060302, rgba(6, 3, 2, 0));
}
.act--vigil .round-content { gap: 0; padding: 0; }

.vigil--hall {
  border: 0;
  border-radius: 0;
  min-height: clamp(380px, 58vh, 680px);
  background: #060302;
}
.vigil--hall .vigil__sky {
  inset: 0 0 auto 0;
  height: 117%;
}
.vigil--hall .vigil__veil {
  background:
    linear-gradient(to bottom, rgba(6, 3, 2, 0.94) 0%, rgba(6, 3, 2, 0.28) 12%, transparent 26%),
    linear-gradient(to bottom, transparent 78%, rgba(6, 3, 2, 0.86) 100%);
}
.theme-stage {
  border: 0;
  border-radius: 0;
  margin-top: 0;
  background: linear-gradient(to bottom, #060302 0%, #0A0605 40%, #060302 100%);
}
.theme-stage__veil {
  background:
    radial-gradient(56% 44% at 50% 44%, rgba(6, 3, 2, 0.78), transparent 74%),
    linear-gradient(to bottom, rgba(6, 3, 2, 0.96) 0%, rgba(6, 3, 2, 0.2) 16%, transparent 30%, transparent 70%, rgba(6, 3, 2, 0.94) 100%);
}
.theme-stage__eyebrow {
  font-size: clamp(0.82rem, 1.9vw, 1.12rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--muted);
  opacity: 0.92;
}
.theme-stage__word--sealed {
  display: block;
  font-size: clamp(1.25rem, 3.4vw, 1.95rem);
  letter-spacing: 0.14em;
  color: var(--faint);
  opacity: 0.86;
}

.finale .finale__well { padding-inline: var(--s6); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .finale .finale__well { padding-inline: var(--s3); }
  .vigil--hall { min-height: clamp(330px, 46vh, 460px); }
  .vigil--hall .vigil__sky { height: 106%; }
}


.vigil .vigil__hits {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.vigil__hit {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.vigil__hit--empty { pointer-events: none; }
.vigil__hit:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 2px; }

.vigil .vigil__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.vigil__aura {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}
.vigil__aura[data-state="lit"] {
  background: radial-gradient(closest-side, rgba(247, 223, 154, 0.30), rgba(233, 189, 101, 0.10) 55%, transparent 76%);
  animation: vigil-breathe 5.2s var(--ease) infinite;
  animation-delay: var(--phase, 0s);
}
.vigil__aura[data-state="revival"] {
  background: radial-gradient(closest-side, rgba(220, 80, 68, 0.26), rgba(159, 39, 34, 0.10) 55%, transparent 76%);
  animation: vigil-breathe 6.8s var(--ease) infinite;
  animation-delay: var(--phase, 0s);
}
@keyframes vigil-breathe {
  0%, 100% { opacity: 0.42; transform: scale(0.94); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.vigil__ember {
  position: absolute;
  left: var(--x, 50%);
  bottom: -8px;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 110, 0.95), rgba(255, 120, 40, 0.5) 45%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: vigil-rise-ember var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes vigil-rise-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  10% { opacity: 0.95; }
  72% { opacity: 0.68; }
  100% { opacity: 0; transform: translate3d(var(--drift, 0px), calc(-1 * var(--rise, 420px)), 0) scale(1.15); }
}

.vigil__mist {
  position: absolute;
  left: -25%;
  bottom: 4%;
  width: 150%;
  height: 34%;
  background:
    radial-gradient(60% 100% at 20% 100%, rgba(120, 82, 58, 0.20), transparent 70%),
    radial-gradient(50% 100% at 62% 100%, rgba(140, 96, 64, 0.16), transparent 72%),
    radial-gradient(46% 100% at 88% 100%, rgba(110, 74, 52, 0.14), transparent 74%);
  filter: blur(14px);
  will-change: transform;
  animation: vigil-drift 46s linear infinite;
}
@keyframes vigil-drift {
  from { transform: translate3d(-6%, 0, 0); }
  50% { transform: translate3d(6%, -2%, 0); }
  to { transform: translate3d(-6%, 0, 0); }
}

.theme-stage__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.theme-stage__mote {
  position: absolute;
  left: var(--x, 50%);
  bottom: -6px;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 158, 0.9), transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: vigil-rise-ember var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .vigil__aura,
  .vigil__ember,
  .vigil__mist,
  .theme-stage__mote { animation: none; }
  .vigil__aura { opacity: 0.6; }
  .vigil__ember,
  .theme-stage__mote { opacity: 0; }
}

.vigil__ring {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.vigil__ring-outer,
.vigil__ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
}
.vigil__ring-outer {
  border: 1.5px dashed rgba(247, 223, 154, 0.42);
  animation: vigil-spin 26s linear infinite;
  animation-delay: var(--phase, 0s);
}
.vigil__ring-inner {
  inset: 13%;
  border: 1px dotted rgba(233, 189, 101, 0.34);
  animation: vigil-spin-back 17s linear infinite;
  animation-delay: var(--phase, 0s);
}
.vigil__ring[data-state="revival"] .vigil__ring-outer { border-color: rgba(220, 80, 68, 0.44); }
.vigil__ring[data-state="revival"] .vigil__ring-inner { border-color: rgba(220, 80, 68, 0.30); }
.vigil__ring[data-state="dark"] .vigil__ring-outer { border-color: rgba(230, 204, 146, 0.16); }
.vigil__ring[data-state="dark"] .vigil__ring-inner { border-color: rgba(230, 204, 146, 0.12); }
@keyframes vigil-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes vigil-spin-back { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

:root[data-round4-scene="on"] body { background: #060302; }
:root[data-round4-scene="on"] .stage { padding-bottom: 0; }
:root[data-round4-scene="on"] .colophon {
  width: 100%;
  max-width: none;
  border-top: 0;
  padding-top: var(--s12);
  padding-bottom: var(--s12);
  background: #060302;
  justify-content: center;
}
:root[data-round4-scene="on"] .act--vigil .theme-stage {
  min-height: max(clamp(280px, 38vh, 460px), 54vh);
  margin-bottom: calc(-1 * var(--s8));
  padding-bottom: var(--s8);
}
:root[data-round4-scene="on"] .act--vigil .theme-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 3, 2, 0) 0%, #060302 78%);
}

@media (prefers-reduced-motion: reduce) {
  .vigil__ring-outer,
  .vigil__ring-inner { animation: none; }
}

.vigil--shrine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: 0;
  padding: clamp(var(--s8), 5vw, var(--s16)) var(--s4) clamp(var(--s6), 4vw, var(--s12));
  background: #060302;
}
.act--vigil .vigil--shrine {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.vigil__vault {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 78%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 74% at 50% 4%, rgba(233, 189, 101, 0.14), transparent 68%),
    radial-gradient(120% 100% at 50% -18%, rgba(120, 72, 40, 0.20), transparent 62%);
}
.vigil__colonnade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0 calc(50% - 2px),
      rgba(0, 0, 0, 0.55) calc(50% - 2px) calc(50% + 2px),
      rgba(0, 0, 0, 0) calc(50% + 2px) 100%) 0 0 / clamp(180px, 17vw, 320px) 100%,
    linear-gradient(to bottom, rgba(46, 30, 20, 0.55), transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 88%);
}
.vigil__floor {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(233, 189, 101, 0.12), transparent 72%),
    linear-gradient(to bottom, rgba(28, 18, 12, 0.85), #060302 78%);
}
.vigil--shrine > *:not(.vigil__vault):not(.vigil__colonnade):not(.vigil__floor):not(.vigil__fx) {
  position: relative;
  z-index: 2;
}

.shrines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 1.1vw, 22px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: min(1560px, 100%);
}
.shrine {
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  display: grid;
  justify-items: center;
  gap: clamp(6px, 0.9vw, 14px);
  transform: scale(calc(1 - var(--away, 0) * 0.055)) translateY(calc(var(--away, 0) * 6px));
  transform-origin: 50% 100%;
  opacity: 0;
  animation: shrine-rise 900ms var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes shrine-rise {
  from { opacity: 0; transform: scale(calc(0.92 - var(--away, 0) * 0.055)) translateY(calc(var(--away, 0) * 6px + 26px)); }
  to { opacity: 1; transform: scale(calc(1 - var(--away, 0) * 0.055)) translateY(calc(var(--away, 0) * 6px)); }
}

.shrine__stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 200 / 400;
}
.shrine__art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.66));
}

.shrine { --shrine-gold-hi: #F7DF9A; --shrine-gold: #E9BD65; --shrine-gold-lo: #8E6A30; --shrine-jewel: #DC5044; --shrine-inner: #3a2a17; }
.shrine[data-state="dark"] { --shrine-gold-hi: #6E5C3C; --shrine-gold: #57472C; --shrine-gold-lo: #33291A; --shrine-jewel: #4A3322; --shrine-inner: #1a1410; }
.shrine[data-state="revival"] { --shrine-gold-hi: #F0A090; --shrine-gold: #C9584A; --shrine-gold-lo: #6E2A22; --shrine-jewel: #E76C5D; --shrine-inner: #331612; }

.shrine__beam {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 46%;
  height: 74%;
  transform: translateX(-50%);
  clip-path: polygon(34% 0%, 66% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(to bottom, rgba(247, 223, 154, 0.34), rgba(233, 189, 101, 0.09) 52%, transparent 86%);
  filter: blur(7px);
  opacity: 0;
  pointer-events: none;
}
.shrine[data-state="lit"] .shrine__beam { opacity: 1; }
.shrine[data-state="revival"] .shrine__beam {
  opacity: 0.72;
  background: linear-gradient(to bottom, rgba(231, 108, 93, 0.30), rgba(159, 39, 34, 0.08) 52%, transparent 86%);
}

.shrine__halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(247, 223, 154, 0.34), rgba(233, 189, 101, 0.10) 52%, transparent 76%);
  will-change: transform, opacity;
}
.shrine[data-state="lit"] .shrine__halo { animation: shrine-breathe 5.4s var(--ease) infinite; animation-delay: var(--phase, 0s); }
.shrine[data-state="revival"] .shrine__halo {
  background: radial-gradient(closest-side, rgba(231, 108, 93, 0.30), rgba(159, 39, 34, 0.10) 52%, transparent 76%);
  animation: shrine-breathe 7s var(--ease) infinite;
  animation-delay: var(--phase, 0s);
}
@keyframes shrine-breathe {
  0%, 100% { opacity: 0.40; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.06); }
}

.shrine__ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 58%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.shrine__ring-outer,
.shrine__ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
}
.shrine__ring-outer {
  border: 1.5px dashed var(--shrine-gold);
  opacity: 0.5;
  animation: vigil-spin 28s linear infinite;
  animation-delay: var(--phase, 0s);
}
.shrine__ring-inner {
  inset: 14%;
  border: 1px dotted var(--shrine-gold);
  opacity: 0.4;
  animation: vigil-spin-back 19s linear infinite;
  animation-delay: var(--phase, 0s);
}

.shrine__figure {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 54%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.shrine__mask {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 3px 1px rgba(0, 0, 0, 0.55))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.62))
    saturate(1.06) contrast(1.05);
  transition: transform var(--d3) var(--ease), filter var(--d3) var(--ease);
  cursor: pointer;
}
.shrine[data-state="lit"] .shrine__mask {
  filter:
    drop-shadow(0 3px 1px rgba(0, 0, 0, 0.5))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 16px rgba(233, 189, 101, 0.34))
    saturate(1.1) contrast(1.06);
}
.shrine__mask:hover { transform: translateY(-3px) scale(1.04); }
.shrine__sheen {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  will-change: transform, opacity;
}
.shrine[data-state="lit"] .shrine__sheen { animation: shrine-sheen 9s var(--ease) infinite; animation-delay: var(--phase, 0s); }
@keyframes shrine-sheen {
  0%, 62% { opacity: 0; transform: translateX(-46%); }
  72% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(46%); }
}
.shrine__vacant {
  display: block;
  width: 62%;
  aspect-ratio: 1;
  border: 1px dashed rgba(230, 204, 146, 0.16);
  border-radius: 50%;
}
.shrine[data-state="revival"] .shrine__vacant { border-color: rgba(231, 108, 93, 0.34); }

.shrine__pool {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 62%;
  height: 5%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 223, 154, 0.34), transparent 78%);
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}
.shrine[data-state="lit"] .shrine__pool { opacity: 1; }
.shrine[data-state="revival"] .shrine__pool {
  opacity: 0.8;
  background: radial-gradient(closest-side, rgba(231, 108, 93, 0.30), transparent 78%);
}

.shrine__plate {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  padding: clamp(5px, 0.6vw, 9px) clamp(5px, 0.7vw, 10px) clamp(6px, 0.7vw, 10px);
  text-align: center;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom, rgba(10, 6, 4, 0.72), rgba(6, 3, 2, 0.9));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.shrine[data-state="lit"] .shrine__plate {
  border-color: var(--vault-edge);
  box-shadow: 0 0 22px rgba(233, 189, 101, 0.16), 0 10px 24px rgba(0, 0, 0, 0.55);
}
.shrine[data-state="revival"] .shrine__plate { border-color: rgba(220, 80, 68, 0.36); }
.shrine__epithet {
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.78vw, 0.78rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--muted);
  opacity: 0.88;
  word-break: keep-all;
}
.shrine__name {
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.28vw, 1.42rem);
  line-height: 1.2;
  color: var(--text);
  word-break: keep-all;
}
.shrine[data-state="lit"] .shrine__name { text-shadow: 0 0 16px rgba(233, 189, 101, 0.3); }
.shrine[data-state="dark"] .shrine__name { color: var(--faint); opacity: 0.76; }
.shrine[data-state="revival"] .shrine__name { color: var(--red-soft); }

@media (max-width: 720px) {
  .vigil--shrine { padding-inline: var(--s2); }
  .shrines { gap: 3px; }
  .shrine { max-width: none; }
  .shrine__plate { padding: 3px 3px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .shrine { animation: none; opacity: 1; }
  .shrine__halo,
  .shrine__sheen,
  .shrine__ring-outer,
  .shrine__ring-inner { animation: none; }
  .shrine[data-state="lit"] .shrine__halo { opacity: 0.6; }
}
/* ===== 패자부활전 실시간 TOP 5 =====
   카드로 가두지 않고 지면 위에 그대로 얹는다. 칸을 채우는 대신 가는 선으로만 나누고,
   강조는 배경이 아니라 글자 굵기와 색으로 준다. */
.x-top5 {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

.x-top5__head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-faint);
}

.x-top5__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold-soft);
}

.x-top5__list {
  display: grid;
}

.x-top5__row {
  display: grid;
  grid-template-columns: 1.9rem 1.6rem max-content minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 0 var(--s3);
  min-width: 0;
  padding: var(--s3) var(--s1);
  border-radius: var(--radius-sm);
  transition: background-color var(--d2) var(--ease);
}
.x-top5__row + .x-top5__row {
  box-shadow: inset 0 1px 0 var(--line-faint);
}
.x-top5__row:hover {
  background: rgba(233, 189, 101, 0.045);
}
/* 반고닉은 이름 칸이 비어 있으므로 칸 자체를 없앤다. */
.x-top5__row[data-anonymous] {
  grid-template-columns: 1.9rem 1.6rem minmax(0, 1fr) max-content max-content;
}

.x-top5__rank {
  font-family: var(--mono);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  color: rgba(189, 161, 139, 0.5);
}
.x-top5__row[data-medal] .x-top5__rank { color: var(--muted); }
.x-top5__row[data-medal="1"] .x-top5__rank {
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(233, 189, 101, 0.38);
}
.x-top5__row[data-medal="2"] .x-top5__rank { color: #cec6ce; }
.x-top5__row[data-medal="3"] .x-top5__rank { color: #c98a4e; }

.x-top5__mask {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  background: none;
}
.x-top5__mask img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
}
.x-top5__mask-button {
  cursor: pointer;
  transition: transform var(--d1) var(--ease), filter var(--d1) var(--ease);
}
.x-top5__mask-button:hover,
.x-top5__mask-button:focus-visible {
  transform: scale(1.1);
  filter: brightness(1.16);
}
.x-top5__mask-button:hover img,
.x-top5__mask-button:focus-visible img { opacity: 1; }

/* 닉네임은 출품작 목록과 같은 뱃지를 쓴다. 크기만 이 줄에 맞춘다. */
.x-top5__nickname {
  min-height: 1.32rem;
  padding: 0.04rem 0.3rem;
  font-size: 0.66rem;
}

.x-top5__work {
  min-width: 0;
}
.x-top5__work-link {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.x-top5__row[data-medal="1"] .x-top5__work-link { color: var(--text); }
.x-top5__work-link:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(233, 189, 101, 0.4);
}

.x-top5__score {
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}
.x-top5__row[data-medal] .x-top5__score { color: var(--gold); }
.x-top5__row[data-medal="1"] .x-top5__score { color: var(--gold-soft); }
.x-top5__score--none { color: var(--faint); opacity: 0.5; }

.x-top5__time {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: rgba(189, 161, 139, 0.46);
  text-align: right;
  white-space: nowrap;
}

.x-top5__empty {
  margin: 0;
  padding: var(--s8) 0;
  font-size: 0.86rem;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 719px) {
  .x-top5__row,
  .x-top5__row[data-anonymous] {
    grid-template-columns: 1.5rem 1.4rem minmax(0, 1fr) max-content;
    grid-template-areas:
      "rank mask who   score"
      "rank work work  time";
    row-gap: 3px;
    column-gap: var(--s2);
    padding: var(--s3) 0;
  }
  .x-top5__rank { grid-area: rank; align-self: center; font-size: 1rem; }
  .x-top5__mask { grid-area: mask; width: 1.4rem; height: 1.4rem; }
  .x-top5__nickname { grid-area: who; justify-self: start; }
  .x-top5__nickname { min-height: 1.2rem; font-size: 0.62rem; }
  .x-top5__work { grid-area: work; }
  .x-top5__work-link { font-size: 0.82rem; }
  .x-top5__score { grid-area: score; font-size: 0.86rem; }
  .x-top5__time { grid-area: time; font-size: 0.62rem; }
}

/* 1, 2R 심사위원 행 재설계.
   아이콘을 걷어내고 이름과 점수만 남긴다. 세로 두 줄 배치는 그대로 두되,
   각 줄을 칸으로 채우지 않고 가는 선으로만 나눈다. 색은 올렸을 때만 든다. */
.judges {
  gap: 0;
  padding: 2px;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: rgba(9, 5, 4, 0.42);
}
.judges__row {
  align-items: center;
  padding: 0.2rem 0.42rem;
  border-radius: calc(var(--radius-sm) - 3px);
}
.judges__row + .judges__row {
  box-shadow: inset 0 1px 0 var(--line-faint);
}
.judges__who {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--faint);
  transition: color var(--d1) var(--ease);
}
.judges__row[data-judge="genius"] .judges__who,
.judges__row[data-judge="kassian"] .judges__who {
  border-color: transparent;
  color: var(--faint);
}
.judges__n {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--d1) var(--ease);
}
.judges__row[data-review]:hover,
.judges__row[data-review]:focus-visible {
  background: none;
}
.judges__row[data-review][data-judge="genius"]:hover,
.judges__row[data-review][data-judge="genius"]:focus-visible {
  background: rgba(198, 89, 86, 0.16);
}
.judges__row[data-review][data-judge="kassian"]:hover,
.judges__row[data-review][data-judge="kassian"]:focus-visible {
  background: rgba(105, 157, 197, 0.16);
}
.judges__row[data-review][data-judge="genius"]:hover .judges__who,
.judges__row[data-review][data-judge="genius"]:focus-visible .judges__who { color: #f0a79c; }
.judges__row[data-review][data-judge="kassian"]:hover .judges__who,
.judges__row[data-review][data-judge="kassian"]:focus-visible .judges__who { color: #a8d3f2; }
.judges__row[data-review]:hover .judges__n,
.judges__row[data-review]:focus-visible .judges__n { color: var(--gold-soft); }
.judges__row[aria-expanded="true"] {
  background: rgba(233, 189, 101, 0.14);
}
.judges__row[aria-expanded="true"] .judges__who,
.judges__row[aria-expanded="true"] .judges__n { color: var(--gold-soft); }

/* 1R 순위 패널도 같은 문법으로. 아이콘 칸이 사라졌으므로 격자를 한 칸으로 줄인다. */
.judge-pick__scores .judge-pick__judge-row,
.round-judge-scores .judge-pick__judge-row {
  grid-template-columns: minmax(0, 1fr);
}
.judge-pick__judge-row.has-review {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.judge-pick__review-score-trigger {
  width: 100%;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  transition: background-color var(--d1) var(--ease);
}
.judge-pick__judge-row--genius .judge-pick__review-score-trigger:hover,
.judge-pick__judge-row--genius .judge-pick__review-score-trigger:focus-visible {
  background: rgba(198, 89, 86, 0.16);
}
.judge-pick__judge-row--kassian .judge-pick__review-score-trigger:hover,
.judge-pick__judge-row--kassian .judge-pick__review-score-trigger:focus-visible {
  background: rgba(105, 157, 197, 0.16);
}
/* 순위 패널 뱃지의 상자 제거.
   is-primary 규칙이 테두리와 그림자를 다시 얹으므로 같은 무게로 눌러 준다.
   1위 심사위원 구분은 상자가 아니라 글자 색으로 남긴다. */
.judge-pick__judge-row .judge-pick__judge-badge,
.judge-pick__judge-row.is-primary .judge-pick__judge-badge {
  min-width: 0;
  border-color: transparent;
  background: none;
  box-shadow: none;
  font-family: var(--font);
  font-weight: 700;
}
.judge-pick__judge-row.is-primary .judge-pick__judge-badge { color: var(--gold-soft); }
.judge-pick__judge-row.is-secondary { opacity: 0.62; filter: none; }
.judge-pick__judge-row.is-secondary:hover { opacity: 1; }

/* 1, 2R 최종 결과 섹션 재설계.
   판 위에 상자를 하나 더 얹어 두면 2라운드처럼 내용이 많은 쪽이 그만큼 더 커 보인다.
   테두리와 바닥과 그림자를 걷어내고 가는 선 하나로 구역만 연다. 무게는 조판으로 준다. */
.round-ranking--top3,
.round-ranking--winner {
  padding: 0.85rem 0 0.35rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.round-ranking--top3::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 189, 101, 0.26) 14%, rgba(233, 189, 101, 0.26) 86%, transparent);
  content: '';
}

/* 머리글은 두 섹션이 완전히 같은 조판을 쓴다. 제목 아래 금선도 양쪽 다. */
.round-ranking--top3 .round1-top3__header,
.round-ranking--winner .round1-top3__header {
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.round-ranking--top3 .round1-top3__heading {
  gap: 0.28rem;
}
.round-ranking--top3 .round1-top3__header h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(233, 189, 101, 0.32);
}
/* 부제는 제목과 같은 줄에 붙인다. 아래로 떨어뜨리면 1라운드보다 머리글이 한 줄 길어진다. */
.round-ranking--winner .round1-top3__heading,
.round-ranking--victors .round1-top3__heading {
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 0.75rem;
}
.round-ranking--winner .round1-top3__heading h3,
.round-ranking--victors .round1-top3__heading h3 {
  padding-bottom: 0.55rem;
}
.round-ranking--winner .round1-top3__heading > span,
.round-ranking--victors .round1-top3__heading > span {
  padding-bottom: 0.55rem;
}
.round-ranking--winner .round1-top3__heading h3::after {
  display: block;
}
.round-ranking--top3 .round1-top3__heading h3::after {
  width: min(22rem, 42vw);
}
/* 부제는 상자가 아니라 작은 대문자 표찰로. */
.round-ranking--top3 .round1-top3__heading > span {
  color: #b39a72;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* 2R 승자 카드의 배율을 1R 1위 자리와 같게. 아래 여백만으로 높이를 벌던 것도 없앤다. */
.round-ranking--winner .round1-top3__grid {
  min-height: 0;
}
.round-ranking--winner .round2-winner {
  gap: 0.4rem;
  padding: 0.8rem 1rem 1rem;
}
.round-ranking--winner .round2-winner .top3-place__mask img {
  width: 7.2rem;
  height: 7.2rem;
}
.round-ranking--winner .round2-winner .top3-place__name {
  font-size: 1.3rem;
  text-shadow: 0 0 18px rgba(233, 189, 101, 0.22);
}
.round2-winner__work {
  padding: 0.3rem 0.75rem 0.35rem;
}
.round2-winner__details {
  margin-top: 0.1rem;
  padding: 0.25rem 0.45rem 0;
}
.round2-winner__score {
  padding: 0.5rem 0.55rem;
}
.round2-winner__score dd strong {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* 쪽마다 담긴 작품 수가 달라 높이가 다르다. 넘기는 동안에는 가장 큰 쪽에 맞춰 열어 두고,
   다 넘긴 뒤 제 높이로 접는다. 그 접히는 순간이 뚝 끊기지 않도록 한 번만 이어 준다. */
.x-submissions__carousel {
  transition: height 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .x-submissions__carousel {
    transition: none;
  }
}

/* 3R 최종 결과. 1, 2라운드 섹션의 부품을 그대로 쓴다.
   자리에 얹히는 것만 등수에서 조 번호로 바뀐다. 세 승자는 서로 겨루지 않았으므로
   시상대처럼 층을 두지 않고 나란히 세운다. */
.round-ranking--victors .round1-top3__grid {
  align-items: stretch;
  gap: 0;
}

.round3-victor {
  --top3-glow: 0.13;
  align-content: start;
  gap: 0.28rem;
  padding: 0.9rem 0.9rem 1rem;
}

.round3-victor .top3-medal {
  min-width: 3.2rem;
  padding: 0.34rem 0.7rem 0.3rem;
  color: #f2e0b4;
  font-size: 0.88rem;
}

.round3-victor .top3-medal::before {
  background:
    radial-gradient(90% 120% at 50% -18%, rgba(247, 223, 154, 0.22), transparent 60%),
    linear-gradient(180deg, #2c1e0e, #1a1006);
}

.round3-victor .top3-medal b {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.round3-victor .top3-place__mask img {
  width: 5.6rem;
  height: 5.6rem;
}

.round3-victor .top3-place__name {
  color: #fdf3dc;
  font-size: 1.14rem;
}

.round3-victor__work {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 0.16rem;
  margin-top: 0.12rem;
}

.round3-victor__work > span {
  color: #a68f6c;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.round3-victor__work-link {
  display: inline;
  max-width: 100%;
  color: #eedfba;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a.round3-victor__work-link:hover,
a.round3-victor__work-link:focus-visible {
  color: #fff2cf;
  text-decoration: underline;
}

span.round3-victor__work-link {
  color: var(--faint);
  font-style: italic;
}

/* 점수는 카드 아래쪽에 못 박는다. 작품명이 두 줄로 넘어가도 세 카드의 점수 줄이 어긋나지 않는다. */
.round3-victor__tally {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 0.1rem;
  margin-top: auto;
  padding-top: 0.62rem;
}

.round3-victor__score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14rem;
  margin: 0;
  color: #dcc79d;
  font-family: var(--serif);
}

.round3-victor__score strong {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.round3-victor__score span {
  font-size: 0.68rem;
  font-weight: 700;
}

.round3-victor__rival {
  margin: 0;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.round3-victors__note {
  margin: 0.25rem 0 0;
  color: var(--faint);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 560px) {
  /* 좁은 화면에서는 세 칸이 아니라 세 줄로. 가면을 왼쪽에 두고 글을 오른쪽으로 눕힌다. */
  .round-ranking--top3.round-ranking--victors .round1-top3__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .round3-victor {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    column-gap: 0.8rem;
    padding: 0.75rem 0.2rem 0.8rem;
    text-align: left;
  }

  .round3-victor + .round3-victor {
    box-shadow: inset 0 1px 0 var(--line-faint);
  }

  .round3-victor .top3-place__mask {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .round3-victor .top3-place__mask img {
    width: 4.2rem;
    height: 4.2rem;
  }

  .round3-victor .top3-medal,
  .round3-victor .top3-place__name,
  .round3-victor__work,
  .round3-victor__tally {
    grid-column: 2;
  }

  .round3-victor__work {
    justify-items: start;
  }

  .round3-victor__work-link {
    text-align: left;
  }

  .round3-victor__tally {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    justify-items: start;
    column-gap: 0.6rem;
    margin-top: 0;
    padding-top: 0.3rem;
  }

  .round3-victor__score strong {
    font-size: 1.32rem;
  }
}

/* 1, 2, 3라운드 최종 결과 섹션은 같은 블록을 차지한다.
   담긴 정보량이 달라 자연 높이가 제각각인데, 탭을 옮길 때마다 아래 내용이 밀려 올라갔다
   내려갔다 하면 같은 자리의 같은 구역으로 읽히지 않는다. 높이를 못 박고 짧은 쪽은 가운데로 모은다. */
:root {
  --result-block-h: 29rem;
}

.round-ranking--top3 {
  display: flex;
  min-height: var(--result-block-h);
  flex-direction: column;
}

.round-ranking--top3 .round1-top3__grid {
  flex: 1 1 auto;
  align-content: center;
}

/* 2라운드 카드는 담긴 것이 가장 많다. 군더더기 여백만 걷어 세 섹션의 편차를 줄인다. */
.round-ranking--winner .round2-winner {
  padding: 0.5rem 1rem 0.6rem;
}

.round2-winner__work {
  padding: 0.2rem 0.75rem 0.2rem;
}

.round2-winner__details {
  margin-top: 0;
  padding: 0.1rem 0.45rem 0;
}

.round2-winner__score {
  padding: 0.35rem 0.55rem;
}

/* 폭이 줄면 2라운드 카드의 점수 세 칸이 먼저 무너져 한 칸 더 높아진다. */
@media (max-width: 720px) {
  :root {
    --result-block-h: 30.5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --result-block-h: 39rem;
  }
}

/* 규칙 카드는 담긴 항목 수가 제각각이라 높이가 크게 다르다. 격자에 넣으면 한 행의 높이를
   짧은 카드가 따라가지 못해 그 아래가 그대로 빈다. 패자부활전은 카드가 일곱 장이라 틈이
   200px 가까이 벌어졌다. 다단으로 흘려 각 단이 제 높이대로 쌓이게 한다.
   단을 손으로 짜 둔 2라운드는 그대로 둔다. */
.round-rules__sections:not(.round-rules__sections--staggered) {
  display: block;
  columns: 2;
  column-gap: clamp(1.2rem, 3vw, 2.6rem);
  column-fill: balance;
}

.round-rules__sections:not(.round-rules__sections--staggered) .round-rule {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 0.2rem;
}

@media (max-width: 860px) {
  .round-rules__sections:not(.round-rules__sections--staggered) {
    columns: 1;
  }
}

/* 우승 카드 가로 배치.
   가면과 글과 점수를 왼쪽에서 오른쪽으로 늘어놓는다. 세로로만 쌓으면 판 한가운데에
   150px 짜리 기둥이 서고 좌우 520px 이 그대로 빈다. 발표 화면이 그렇게 좁으면 안 된다. */
.round-ranking--revival .round1-top3__grid {
  min-height: 0;
}

.round-ranking--revival .x-winner {
  display: grid;
  width: min(100%, 62rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(1.4rem, 3.2vw, 3.2rem);
  row-gap: 0;
  margin-inline: auto;
  padding: clamp(0.45rem, 1vw, 0.8rem) clamp(1rem, 3vw, 2.4rem);
  text-align: left;
}

.round-ranking--revival .x-winner__mask-button {
  grid-column: 1;
  align-self: center;
}

.round-ranking--revival .x-winner .top3-place__mask img,
.round-ranking--revival .x-winner__mask-button img {
  width: clamp(6.4rem, 9vw, 9.4rem);
  height: clamp(6.4rem, 9vw, 9.4rem);
}

.x-winner__body {
  display: grid;
  grid-column: 2;
  min-width: 0;
  gap: 0.44rem;
  justify-items: start;
  text-align: left;
}

.x-winner__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.7rem;
}

.round-ranking--revival .x-winner .top3-place__name {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.1;
}

.round-ranking--revival .x-winner__work {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  justify-items: start;
  gap: 0 0.6rem;
  margin: 0;
  padding: 0;
  text-align: left;
}

.round-ranking--revival .x-winner__work > span {
  white-space: nowrap;
}

.round-ranking--revival .x-winner__work-link,
.round-ranking--revival .round2-winner__work-link {
  text-align: left;
  font-size: clamp(1rem, 2.1vw, 1.24rem);
}

/* 점수는 오른쪽 끝을 잡아 준다. 왼쪽 가면과 무게를 맞춰야 띠로 읽힌다. */
.x-winner__score {
  display: grid;
  grid-column: 3;
  align-self: center;
  justify-items: center;
  gap: 0.24rem;
  padding: clamp(0.7rem, 1.6vw, 1.1rem) clamp(0.9rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 176, 82, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(84, 32, 8, 0.66), rgba(28, 10, 4, 0.72));
  box-shadow: 0 0 34px rgba(255, 132, 40, 0.22), inset 0 1px 0 rgba(255, 220, 160, 0.18);
  color: #ffe6b4;
  font-family: var(--serif);
}

.x-winner__score-label {
  color: #d5a874;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.x-winner__score-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14rem;
}

.x-winner__score-value strong {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}

.x-winner__score-value span {
  font-size: 0.82rem;
  font-weight: 700;
}

.x-winner__score.is-pending {
  border-color: var(--line-faint);
  background: none;
  box-shadow: none;
  color: var(--faint);
}

.x-winner__score.is-pending strong {
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
}

.round-ranking--revival .x-winner__reviews {
  margin-top: 0.2rem;
}

/* 가로 띠는 폭이 600px 밑으로 내려가야 무너뜨린다. 그 위에서는 눕히는 편이 훨씬 넓게 쓴다. */
@media (max-width: 600px) {
  .round-ranking--revival .x-winner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 0.7rem;
    padding-inline: 0.35rem;
    text-align: center;
  }

  .x-winner__body {
    width: 100%;
  }

  .x-winner__body::after {
    display: none;
  }

  .round-ranking--revival .x-winner__mask-button,
  .x-winner__body,
  .x-winner__score {
    grid-column: 1;
  }

  .x-winner__body {
    justify-items: center;
    text-align: center;
  }

  .x-winner__who {
    justify-content: center;
  }

  .round-ranking--revival .x-winner__work {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.2rem;
  }

  .round-ranking--revival .x-winner__work-link,
  .round-ranking--revival .round2-winner__work-link {
    text-align: center;
  }
}

/* ── 패자부활전 우승 발표.

   되살아난 사람을 세우는 자리다. 불을 형상으로 그리면 금세 조잡해지므로
   불은 빛으로만 둔다. 바닥의 이음매 한 줄이 달아오르고, 그 위로 광채가 낮게 퍼지고,
   가면 뒤에 빛의 기둥이 선다. 움직이는 것은 금가루뿐이고 그마저 느리다.
   색은 주황을 쓰지 않는다. 호박색과 금색과 아주 깊은 검정만 쓴다. */
.round-ranking--revival {
  --pyre: 0;
  --amber: 224, 169, 90;
  --gilt: 246, 223, 174;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.round-ranking--revival[data-shown] {
  --pyre: 1;
}

.x-pyre {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 가면 뒤에 서는 빛기둥. 왼쪽 3분의 1 자리에 아주 옅게. */
.x-shaft {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18%;
  width: min(30rem, 42%);
  translate: -50% 0;
  background: linear-gradient(180deg, transparent, rgba(var(--amber), 0.14) 44%, rgba(var(--gilt), 0.2));
  filter: blur(46px);
  opacity: 0;
  transform-origin: 50% 100%;
}

.round-ranking--revival[data-shown] .x-shaft {
  animation: x-shaft-open 1600ms cubic-bezier(0.16, 1, 0.3, 1) 520ms 1 both;
}

@keyframes x-shaft-open {
  0% { transform: scaleY(0.12); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* 바닥에서 낮게 퍼지는 광채. 불꽃이 아니라 달아오른 공기다. */
.x-halo {
  position: absolute;
  inset: auto 0 2% 0;
  height: 54%;
  background:
    radial-gradient(64% 100% at 50% 100%, rgba(var(--amber), 0.34), transparent 74%),
    radial-gradient(28% 78% at 24% 100%, rgba(var(--gilt), 0.16), transparent 76%),
    radial-gradient(24% 68% at 78% 100%, rgba(var(--amber), 0.14), transparent 78%);
  filter: blur(28px);
  opacity: 0;
  transform-origin: 50% 100%;
}

.round-ranking--revival[data-shown] .x-halo {
  animation: x-halo-rise 1800ms cubic-bezier(0.16, 1, 0.3, 1) 340ms 1 both,
    x-halo-breathe 7.5s ease-in-out 2140ms infinite;
}

@keyframes x-halo-rise {
  0% { transform: scaleY(0.24); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes x-halo-breathe {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

/* 바닥의 이음매. 주물에서 갓 꺼낸 금처럼 한 줄만 밝다. */
.x-seam {
  position: absolute;
  right: clamp(1rem, 4vw, 3.4rem);
  bottom: 13%;
  left: clamp(1rem, 4vw, 3.4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gilt), 0.95) 18%, #fff6e2 50%, rgba(var(--gilt), 0.95) 82%, transparent);
  box-shadow: 0 0 18px rgba(var(--gilt), 0.6), 0 0 54px rgba(var(--amber), 0.44), 0 -14px 40px rgba(var(--amber), 0.22);
  opacity: 0;
  transform-origin: 50% 50%;
}

.round-ranking--revival[data-shown] .x-seam {
  animation: x-seam-draw 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1 both,
    x-seam-breathe 6.5s ease-in-out 1100ms infinite;
}

@keyframes x-seam-draw {
  0% { transform: scaleX(0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes x-seam-breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

/* 금가루. 스물두 알만, 아주 느리게. */
.x-dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

.round-ranking--revival[data-shown] .x-dust {
  animation: x-dust-in 1600ms ease 1500ms 1 both;
}

@keyframes x-dust-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.x-mote {
  position: absolute;
  bottom: -2%;
  left: var(--x, 50%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff3d6;
  box-shadow: 0 0 6px rgba(var(--gilt), 0.8);
  opacity: 0;
  scale: var(--s, 1);
  animation: x-mote-drift var(--d, 18s) linear var(--t, 0ms) infinite;
}

@keyframes x-mote-drift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.85; }
  55% { transform: translate(var(--sway, 10px), -52vh); opacity: 0.6; }
  100% { transform: translate(calc(var(--sway, 10px) * -0.6), -104vh); opacity: 0; }
}

/* 카드는 빛 위에 놓인다. */
.round-ranking--revival .x-winner {
  position: relative;
  z-index: 1;
}

/* 가면은 밝기를 올리지 않는다. 아래에서 받는 테두리 빛만 세운다. */
.round-ranking--revival[data-shown] .x-winner__mask-button img {
  animation: x-mask-kindle 1800ms cubic-bezier(0.16, 1, 0.3, 1) 640ms 1 both;
}

@keyframes x-mask-kindle {
  0% {
    transform: translateY(6px);
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(var(--amber), 0));
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.72)) drop-shadow(0 6px 26px rgba(var(--amber), 0.5));
  }
}

/* 이름은 자간이 좁혀지며 자리를 잡는다. 밑줄 한 줄이 뒤따라 그어진다. */
.round-ranking--revival .top3-place__name {
  position: relative;
  padding-bottom: 0.34rem;
  color: #fdf3e0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.round-ranking--revival .top3-place__name::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gilt), 0.9), rgba(var(--amber), 0.24) 70%, transparent);
  content: '';
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.round-ranking--revival[data-shown] .top3-place__name {
  animation: x-name-set 1500ms cubic-bezier(0.16, 1, 0.3, 1) 880ms 1 both;
}

.round-ranking--revival[data-shown] .top3-place__name::after {
  animation: x-rule-draw 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1280ms 1 both;
}

@keyframes x-name-set {
  0% { letter-spacing: 0.42em; opacity: 0; }
  100% { letter-spacing: 0; opacity: 1; }
}

@keyframes x-rule-draw {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* 나머지 글은 뒤따라 조용히 올라온다. */
.round-ranking--revival[data-shown] .x-winner__medal,
.round-ranking--revival[data-shown] .x-winner__outcome,
.round-ranking--revival[data-shown] .x-winner__work,
.round-ranking--revival[data-shown] .x-winner__author,
.round-ranking--revival[data-shown] .x-winner__reviews {
  animation: x-rise 1200ms cubic-bezier(0.16, 1, 0.3, 1) 1 both;
}

.round-ranking--revival[data-shown] .x-winner__medal { animation-delay: 760ms; }
.round-ranking--revival[data-shown] .x-winner__outcome { animation-delay: 1120ms; }
.round-ranking--revival[data-shown] .x-winner__work { animation-delay: 1300ms; }
.round-ranking--revival[data-shown] .x-winner__author { animation-delay: 1240ms; }
.round-ranking--revival[data-shown] .x-winner__reviews { animation-delay: 1560ms; }

@keyframes x-rise {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 점수판. 달아오른 금속이 아니라 도금한 판이다. 광택만 아주 느리게 지나간다. */
.round-ranking--revival[data-shown] .x-winner__score {
  animation: x-rise 1400ms cubic-bezier(0.16, 1, 0.3, 1) 1440ms 1 both;
}

/* 글과 숫자 사이를 가르는 세로 괘선. 오른쪽 끝이 허전하지 않게 구획을 나눈다.
   점수판에 붙이면 광택 겹이 판 밖으로 새므로 본문 쪽 끝에 세운다. */
.x-winner__body::after {
  position: absolute;
  top: 8%;
  right: calc(clamp(1.4rem, 3.2vw, 3.2rem) / -2);
  bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--gilt), 0.36), transparent);
  content: '';
  transform: scaleY(0);
  transform-origin: 50% 50%;
}

.x-winner__body {
  position: relative;
}

.round-ranking--revival[data-shown] .x-winner__body::after {
  animation: x-divider-draw 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1500ms 1 both;
}

@keyframes x-divider-draw {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.x-winner__score {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--gilt), 0.34);
  background: linear-gradient(180deg, rgba(38, 22, 10, 0.86), rgba(16, 9, 5, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(var(--gilt), 0.22);
}

.x-winner__score-trigger {
  appearance: none;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}

.x-winner__score-trigger:hover,
.x-winner__score-trigger:focus-visible,
.x-winner__score-trigger[aria-expanded="true"] {
  border-color: rgba(var(--gilt), 0.72);
  background: linear-gradient(180deg, rgba(52, 31, 14, 0.94), rgba(20, 11, 6, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(var(--gilt), 0.16), inset 0 1px 0 rgba(var(--gilt), 0.3);
}

.x-winner__score-trigger:focus-visible {
  outline: 2px solid rgba(239, 207, 142, 0.86);
  outline-offset: 3px;
}

.x-winner__score::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(112deg, transparent 38%, rgba(var(--gilt), 0.16) 48%, transparent 58%);
  content: '';
  transform: translateX(-140%);
  pointer-events: none;
}

.round-ranking--revival[data-shown] .x-winner__score:not(.is-pending)::after {
  animation: x-sheen 7s cubic-bezier(0.4, 0, 0.2, 1) 2600ms infinite;
}

@keyframes x-sheen {
  0% { transform: translateX(-140%); }
  26%, 100% { transform: translateX(140%); }
}

/* 심사평 진입점. 다른 라운드와 같은 알약이되 불빛을 받는다. */
.x-winner__reviews {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 2px;
  border: 1px solid rgba(255, 176, 82, 0.28);
  border-radius: 999px;
  background: rgba(24, 10, 4, 0.6);
}

.x-winner__reviews[hidden] {
  display: none;
}

.x-winner__review-button {
  padding: 0.24rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #e7c79b;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition: color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}

.x-winner__review-button[hidden] {
  display: none;
}

.x-winner__review-button + .x-winner__review-button {
  box-shadow: inset 1px 0 0 rgba(255, 176, 82, 0.24);
}

.x-winner__review-button[data-judge="genius"]:hover,
.x-winner__review-button[data-judge="genius"]:focus-visible {
  color: #ffb3a6;
  background: rgba(198, 89, 86, 0.24);
}

.x-winner__review-button[data-judge="kassian"]:hover,
.x-winner__review-button[data-judge="kassian"]:focus-visible {
  color: #a8d3f2;
  background: rgba(105, 157, 197, 0.24);
}

.x-winner__review-button:focus-visible {
  outline: 1px solid rgba(255, 214, 138, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .round-ranking--revival[data-shown] .x-shaft,
  .round-ranking--revival[data-shown] .x-halo,
  .round-ranking--revival[data-shown] .x-seam,
  .round-ranking--revival[data-shown] .x-dust,
  .round-ranking--revival[data-shown] .x-winner__mask-button img,
  .round-ranking--revival[data-shown] .top3-place__name,
  .round-ranking--revival[data-shown] .top3-place__name::after,
  .round-ranking--revival[data-shown] .x-winner__medal,
  .round-ranking--revival[data-shown] .x-winner__outcome,
  .round-ranking--revival[data-shown] .x-winner__work,
  .round-ranking--revival[data-shown] .x-winner__author,
  .round-ranking--revival[data-shown] .x-winner__reviews,
  .round-ranking--revival[data-shown] .x-winner__score,
  .round-ranking--revival[data-shown] .x-winner__score:not(.is-pending)::after,
  .x-mote {
    animation: none;
  }

  .x-shaft, .x-halo, .x-seam, .x-dust { opacity: 1; }
  .round-ranking--revival .top3-place__name::after { transform: scaleX(1); }
}

/* 기록실 탭의 플로피디스크. 글자 서수와 같은 자리에 같은 크기로 앉는다.
   좁은 화면에서는 다른 탭과 마찬가지로 이름이 숨고 이 아이콘만 남는다. */
.index__ord--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 색과 채움은 아이콘 자체에 속성으로 박혀 있다. 여기서는 크기만 손본다.
   이 파일이 없어도 아이콘은 제 색으로 보여야 한다. */
.index__floppy {
  width: 1.18em;
  height: 1.18em;
  vertical-align: -0.18em;
}

@media (max-width: 720px) {
  .index__floppy {
    width: 1.42em;
    height: 1.42em;
  }
}

.x-entry__mask,
.x-top5__icon {
  position: relative;
}

.x-entry__mask-x {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  pointer-events: none;
}

.maskbtn {
  position: relative;
}

.maskbtn__x {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
}

.judge-pick__mask {
  position: relative;
}

.judge-pick__mask-x {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
}

/* ── 패자부활전 세부 점수 창.
   점수 배지를 누르면 심사 기록이 그 자리에 열린다. 상자 티를 내는 선은 합계 위의
   한 줄뿐이고, 나머지는 전부 간격과 활자 무게로 가른다. 심사위원 색은 글자가 아니라
   점과 게이지에만 스며서, 숫자를 읽기 전에 기울기가 먼저 보인다. */
.x-score--button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: box-shadow var(--d1) var(--ease), transform var(--d1) var(--ease);
}

.x-score--button:hover,
.x-score--button:focus-visible {
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.6), 0 3px 12px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.x-score--button[aria-expanded="true"] {
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.85), 0 0 16px rgba(233, 189, 101, 0.3);
}

/* ── 세부 점수 창. 두 심사위원이 마주 보는 대칭 심사표.
   가운데 평가 항목을 두고 두 사람의 게이지가 중앙에서 바깥으로 자란다.
   숫자는 중앙선 양쪽에 붙어 서로 견주어 읽힌다. */
.xtip {
  position: fixed;
  z-index: 90;
  width: min(24rem, calc(100vw - 20px));
  padding: 1.3rem 1.4rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% -30%, rgba(255, 226, 158, 0.12), transparent 58%) padding-box,
    linear-gradient(172deg, #1a1109, #0a0604 62%) padding-box,
    linear-gradient(168deg, rgba(240, 208, 140, 0.46), rgba(240, 208, 140, 0.12) 30%, rgba(140, 100, 46, 0.18) 62%, rgba(240, 208, 140, 0.38)) border-box;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.76),
    0 6px 22px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 236, 190, 0.12);
  font-family: var(--font);
  animation: xtip-in 260ms cubic-bezier(0.18, 0.9, 0.24, 1.04) both;
}

/* 카드 안쪽의 가는 액자선. 극장 프로그램 카드의 이중 괘선. */
.xtip::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(240, 212, 152, 0.1);
  border-radius: 12px;
  pointer-events: none;
}

/* 배지를 겨누는 화살촉. 자리는 JS 가 --arrow-x 로 잰다. */
.xtip::after {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--arrow-x, 50%);
  width: 13px;
  height: 13px;
  margin-left: -7px;
  transform: rotate(45deg);
  border-top: 1px solid rgba(240, 208, 140, 0.42);
  border-left: 1px solid rgba(240, 208, 140, 0.42);
  background: linear-gradient(135deg, #1e1409, #150e07);
}

.xtip[data-place="above"]::after {
  top: auto;
  bottom: -7px;
  border: 0;
  border-right: 1px solid rgba(240, 208, 140, 0.3);
  border-bottom: 1px solid rgba(240, 208, 140, 0.3);
  background: linear-gradient(315deg, #0c0805, #0a0604);
}

@keyframes xtip-in {
  0% { transform: translateY(8px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 머리. 제목은 왼쪽, 최종 점수는 금박 숫자. 아래는 금빛 헤어라인. */
.xtip__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.85rem;
}

.xtip__head::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 189, 101, 0.4) 18%, rgba(233, 189, 101, 0.4) 82%, transparent);
}

.xtip__work {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #e8d6b2;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.xtip__final {
  display: flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 0.18rem;
}

.xtip__final strong {
  background: linear-gradient(178deg, #fbeec9 12%, #ecc276 52%, #c08c36 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 2px 10px rgba(233, 189, 101, 0.22));
}

.xtip__final span {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
}

/* 표. 가운데 항목 열을 두고 두 심사위원이 좌우로 갈라선다. */
.xtip__table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-auto-flow: row dense;
  column-gap: 0.9rem;
  row-gap: 0.66rem;
  align-items: center;
}

.xtip__corner { grid-column: 2; }

.xtip__judge {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.15rem;
  color: #d9c49c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* 아직 안 매긴 심사위원. 이름은 흐리게 두고 상태를 옆에 붙인다. */
.xtip__judge--wait { color: rgba(217, 196, 156, 0.5); }

.xtip__judge-wait {
  color: rgba(217, 196, 156, 0.62);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.xtip__judge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.xtip__judge--genius {
  grid-column: 1;
  justify-self: start;
}

.xtip__judge--kassian {
  grid-column: 3;
  justify-self: end;
  flex-direction: row-reverse;
}

.xtip__judge--genius::before {
  background: #e0685e;
  box-shadow: 0 0 10px rgba(224, 104, 94, 0.55);
}

.xtip__judge--kassian::before {
  background: #6fb1e0;
  box-shadow: 0 0 10px rgba(111, 177, 224, 0.5);
}

/* 구획 이름. 가운데 글자를 두고 양쪽으로 가는 선이 물러난다. */
.xtip__section {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 0.05rem;
  color: rgba(233, 189, 101, 0.6);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.xtip__section::before,
.xtip__section::after {
  content: "";
  flex: 1;
  height: 1px;
}

.xtip__section::before { background: linear-gradient(90deg, transparent, rgba(233, 189, 101, 0.22)); }
.xtip__section::after { background: linear-gradient(90deg, rgba(233, 189, 101, 0.22), transparent); }

.xtip__label {
  grid-column: 2;
  justify-self: center;
  color: #b7a184;
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.xtip__label--sum {
  color: #d9c49c;
  font-weight: 700;
}

.xtip__label--total {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.xtip__rule {
  grid-column: 1 / -1;
  height: 1px;
  margin: 0.5rem 0 0.15rem;
  background: linear-gradient(90deg, transparent, rgba(233, 189, 101, 0.38) 30%, rgba(233, 189, 101, 0.38) 70%, transparent);
}

/* 점수 한 칸. 숫자는 중앙선 쪽, 게이지는 중앙에서 바깥으로. */
.xtip__value {
  display: grid;
  min-width: 0;
  row-gap: 0.32rem;
  animation: xtip-cell 340ms cubic-bezier(0.22, 0.8, 0.3, 1) var(--wait, 140ms) backwards;
}

@keyframes xtip-cell {
  from { transform: translateY(5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.xtip__value--genius {
  grid-column: 1;
  justify-items: end;
}

.xtip__value--kassian {
  grid-column: 3;
  justify-items: start;
}

.xtip__num {
  display: flex;
  align-items: baseline;
  gap: 0.14rem;
  color: #ead9b6;
  font-family: var(--serif);
}

.xtip__num strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
}

.xtip__num span {
  color: rgba(189, 161, 139, 0.75);
  font-size: 0.62rem;
  font-weight: 600;
}

.xtip__value--sum .xtip__num { color: var(--gold-soft); }

.xtip__value--sum .xtip__num strong { font-size: 1.12rem; }

/* 마지막 두 칸은 합계다. 금박 숫자에 조금 굵은 게이지. */
.xtip__value:nth-last-child(-n+2) .xtip__num strong {
  background: linear-gradient(178deg, #fbeec9 10%, #ecc276 55%, #c08c36 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.34rem;
}

.xtip__value:nth-last-child(-n+2) .xtip__bar {
  height: 5px;
  background: rgba(255, 236, 200, 0.09);
}

.xtip__bar {
  justify-self: stretch;
  overflow: hidden;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 236, 200, 0.07);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

.xtip__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--fill, 0));
  animation: xtip-fill 620ms cubic-bezier(0.22, 0.8, 0.25, 1) var(--wait, 140ms) both;
  opacity: calc(0.34 + var(--fill, 0) * 0.66);
  filter: saturate(calc(0.32 + var(--fill, 0) * 1)) brightness(calc(0.72 + var(--fill, 0) * 0.5));
}

@keyframes xtip-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(var(--fill, 0)); }
}

/* 더지니어스는 중앙에서 왼쪽으로, 밝은 끝이 중앙에 선다. */
.xtip__value--genius .xtip__bar-fill {
  transform-origin: right center;
  background: linear-gradient(90deg, #a83d31, #f08074);
  box-shadow: 0 0 12px rgba(224, 104, 94, 0.32);
}

.xtip__value--kassian .xtip__bar-fill {
  transform-origin: left center;
  background: linear-gradient(90deg, #85c0ea, #2e5f86);
  box-shadow: 0 0 12px rgba(111, 177, 224, 0.3);
}

.xtip__value--none {
  padding: 0.2rem 0;
  color: var(--faint);
  font-size: 0.8rem;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .xtip { padding: 1.1rem 1rem 1.2rem; }
  .xtip__table { column-gap: 0.6rem; }
  .xtip__final strong { font-size: 1.7rem; }
  .xtip__value:nth-last-child(-n+2) .xtip__num strong { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xtip,
  .xtip__value,
  .xtip__bar-fill {
    animation: none;
  }

  .xtip__bar-fill {
    transform: scaleX(var(--fill, 0));
  }
}
/* 실시간 TOP 5 점수 배지의 게이지. 숫자 아래 가늘게 깔리고 같은 농도 규칙을 따른다. */
.x-top5__score--button {
  display: inline-grid;
  gap: 0.24rem;
  justify-items: end;
  padding: 0.14rem 0.1rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  border-radius: 6px;
  transition: box-shadow var(--d1) var(--ease), transform var(--d1) var(--ease);
}

.x-top5__score--button:hover,
.x-top5__score--button:focus-visible {
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.x-top5__score--button[aria-expanded="true"] {
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.8), 0 0 14px rgba(233, 189, 101, 0.28);
}

.x-top5__score-value {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.x-top5__score-gauge {
  position: relative;
  overflow: hidden;
  width: 3.2rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.x-top5__score-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a5a24, #e9bd65 70%, #f7df9a);
  transform: scaleX(var(--fill, 0));
  transform-origin: 0 50%;
  opacity: calc(0.34 + var(--fill, 0) * 0.66);
  filter: saturate(calc(0.32 + var(--fill, 0) * 1)) brightness(calc(0.72 + var(--fill, 0) * 0.5));
}

@media (max-width: 720px) {
  .x-top5__score-gauge {
    width: 2.6rem;
  }
}

.round1-submissions__list .x-entry__title--unaccepted {
  color: #AA9881;
  font-style: italic;
}

button.arena__num,
button.finale__score {
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}

button.arena__num:hover,
button.arena__num:focus-visible,
button.finale__score:hover,
button.finale__score:focus-visible {
  background: rgba(233, 189, 101, 0.1);
}

button.arena__num:focus-visible,
button.finale__score:focus-visible {
  outline: 1px solid rgba(239, 207, 142, 0.8);
  outline-offset: 2px;
}

button.arena__num[aria-expanded="true"],
button.finale__score[aria-expanded="true"] {
  background: rgba(233, 189, 101, 0.16);
}

.score__n--tip {
  padding: 1px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}

.score__n--tip:hover,
.score__n--tip:focus-visible {
  background: rgba(233, 189, 101, 0.12);
}

.score__n--tip:focus-visible {
  outline: 1px solid rgba(239, 207, 142, 0.8);
  outline-offset: 2px;
}

.score__n--tip[aria-expanded="true"] {
  background: rgba(233, 189, 101, 0.18);
}

.round2-winner__score-trigger,
.round3-victor__score-trigger {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14rem;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}

.round2-winner__score-trigger:hover,
.round2-winner__score-trigger:focus-visible,
.round3-victor__score-trigger:hover,
.round3-victor__score-trigger:focus-visible {
  background: rgba(233, 189, 101, 0.12);
}

.round2-winner__score-trigger:focus-visible,
.round3-victor__score-trigger:focus-visible {
  outline: 1px solid rgba(239, 207, 142, 0.8);
  outline-offset: 2px;
}

.round2-winner__score-trigger[aria-expanded="true"],
.round3-victor__score-trigger[aria-expanded="true"] {
  background: rgba(233, 189, 101, 0.18);
}

/* 심사 기록 밖의 특수 평가와 단일 합계. 두 흐름 사이 가운데 한 줄로 선다. */
.xtip__wide {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  animation: xtip-cell 340ms cubic-bezier(0.22, 0.8, 0.3, 1) var(--wait, 140ms) backwards;
}

.xtip__wide-label {
  color: #b7a184;
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.xtip__wide-value {
  color: #ead9b6;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.xtip__wide-value--none {
  color: var(--faint);
  opacity: 0.5;
  font-size: 0.8rem;
}

.xtip__wide-unit {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
}

.xtip__wide--total .xtip__wide-label {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.xtip__wide--total .xtip__wide-value {
  background: linear-gradient(178deg, #fbeec9 10%, #ecc276 55%, #c08c36 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.34rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .xtip__wide { animation: none; }
}

/* ── 작품별 보기.
   참가자 묶음을 풀어 작품 한 편이 한 줄이 된다. 부품은 참가자 행의 것을 그대로 눕혀 쓰고,
   가면은 줄 높이에 맞춰 줄어든다. 같은 사람의 작품이 이어지면 가면도 그만큼 이어 찍힌다. */
.x-list-tools {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

/* 보기 전환. 두 버튼을 따로 세우지 않고 헤어라인 캡슐 하나에 두 칸을 앉힌다.
   켜진 칸은 칠하지 않는다. 얇은 금테와 옅은 금빛 유리, 글자의 잔광으로만 말한다. */
.x-view-switch {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(233, 189, 101, 0.26);
  border-radius: 8px;
  background: rgba(10, 6, 5, 0.72);
}

.x-view-switch .x-view-toggle {
  min-width: 0;
  min-height: calc(2.25rem - 8px);
  flex: none;
  padding: 0.24rem 0.68rem;
  border: 0;
  border-radius: 5px;
  color: var(--faint);
  background: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.x-view-switch .x-view-toggle:hover:not(:disabled),
.x-view-switch .x-view-toggle:focus-visible {
  color: #ead7b0;
  background: rgba(91, 54, 24, 0.2);
}

.x-view-switch .x-view-toggle.is-on {
  color: #f4e2b2;
  background: linear-gradient(180deg, rgba(233, 189, 101, 0.17), rgba(233, 189, 101, 0.06));
  box-shadow: inset 0 0 0 1px rgba(233, 189, 101, 0.38), inset 0 1px 0 rgba(255, 244, 214, 0.1);
  text-shadow: 0 0 14px rgba(233, 189, 101, 0.35);
}

.x-view-switch .x-view-toggle.is-on:hover:not(:disabled),
.x-view-switch .x-view-toggle.is-on:focus-visible {
  color: #fff0c6;
  background: linear-gradient(180deg, rgba(233, 189, 101, 0.2), rgba(233, 189, 101, 0.08));
}

.round1-submissions__list .x-entry--solo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 2px;
  padding: 3px 0;
}

.round1-submissions__list .x-entry--solo .x-entry__mask {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  opacity: 0.85;
}

/* 닉네임 뱃지. TOP 5 와 같은 문법을 쓰고 크기만 목록 줄에 맞춘다.
   반고닉(ㅇㅇ)은 뱃지 자체를 두지 않는다. order 는 좁은 화면에서 기반 규칙이
   뱃지를 가면 앞으로 끌어가는 것을 막는다. 가면이 언제나 먼저다. */
.round1-submissions__list .x-entry__nickname {
  min-height: 1.32rem;
  max-width: 8.5rem;
  flex: none;
  order: 0;
  padding: 0.04rem 0.3rem;
  overflow: hidden;
  font-size: 0.66rem;
  text-overflow: ellipsis;
}

.round1-submissions__list .x-entry--solo .x-entry__title {
  flex: 0 1 auto;
  min-width: 0;
}

.round1-submissions__list .x-entry--solo .x-entry__leader {
  flex: 1 1 auto;
}

.round1-submissions__list .x-entry--solo .x-score {
  flex: none;
}

/* 작품별 목록도 참가자 묶음과 같은 2단 흐름을 그대로 탄다. 별도 그리드를 깔지 않는다.
   그리드의 암시적 auto 트랙은 가장 긴 제목만큼 자라 점수를 화면 밖으로 밀어냈었다.
   multicol 은 단 폭이 고정이라 그 문제가 없고, 제목은 말줄임이 받는다. */

@media (max-width: 720px) {
  .x-list-tools {
    flex-wrap: wrap;
  }

  .round1-submissions__list .x-entry__nickname {
    max-width: 6rem;
  }
}

/* 좁은 화면에서 결과 발표 단추가 판 폭만큼 늘어나 있었다. 1·2라운드는 단추가 서넛이라
   늘어나는 편이 낫지만 여기는 하나뿐이라 통짜 막대가 된다. 글자 폭만 차지하게 되돌리고
   제목과 같은 줄 오른쪽 끝에 세운다. */
@media (max-width: 560px) {
  .round-x .round-ranking--revival .round1-top3__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.18rem 0.6rem;
  }

  .round-x .round-ranking--revival .round1-result-links {
    display: flex;
    width: auto;
    justify-content: flex-end;
  }

  .round-x .round-ranking--revival .round1-result-links__group {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 0.3rem;
  }

  .round-x .round-ranking--revival .round1-result-links__buttons,
  .round-x .round-ranking--revival .round1-result-links__buttons--1 {
    display: flex;
    grid-template-columns: none;
  }

  .round-x .round-ranking--revival .round1-result-link {
    width: auto;
    min-width: max-content;
  }
}

/* 승자 판은 1~3라운드 결과 섹션과 같은 높이감으로 선다. 빛은 판 밖으로 넘치지 않는다. */
.round-x .round-ranking--revival .round1-top3__grid {
  padding: 0;
}

.round-x .round-ranking--revival .x-pyre {
  border-radius: var(--radius);
}

/* 1~3라운드 결과 판은 세 자리를 담느라 높이가 고정돼 있다. 승자는 한 줄이라
   그 높이를 그대로 쓰면 위아래가 통째로 빈다. 이 판만 내용만큼만 선다. */
.round-x .round-ranking--revival { min-height: 0; }

/* 승자 판에서는 모서리 표식을 두지 않는다. 판 자체의 테두리를 이미 걷었으므로
   네 귀퉁이의 ㄴ자만 남아 허공에 떠 보였다. */
.round-x .round-ranking--revival .x-relic__corner { display: none; }

/* 빛의 이음선은 심사평 단추 아래로 내린다. 단추와 겹치면 글자를 가른다. */
.round-x .round-ranking--revival .x-seam { bottom: 2%; }

/* 패자부활전 이력의 X 는 획이 하나라 숫자와 나란히 두면 작아 보인다. 조금 키운다. */
/* 글자 크기를 올리면 줄 상자가 커져 표가 다른 사람보다 내려앉는다.
   자리를 건드리지 않는 확대로 키운다. */
.finale__vigil-leg[data-round="X"] .finale__vigil-leg-round {
  display: inline-block;
  transform: scale(1.16);
  transform-origin: left center;
}

/* 빈 줄은 자리만 차지한다. 부활한 사람의 한 줄을 다른 사람의 2R 자리에 세우기 위한 것이다. */
.finale__vigil-leg--blank { visibility: hidden; }

/* ============================================================
   결승 토크쇼 온에어 버튼. 헤더 제목 옆에 서는 방송 조작반.
   테두리를 도는 빛, 유리 표면, 뛰는 파형으로 생방송을 알린다.
   ============================================================ */

@property --onair-spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.curtain__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(var(--s4), 2.4vw, var(--s8));
}

.curtain__onair[hidden] { display: none; }

.onair {
  --onair-red: #FF4A3D;
  position: relative;
  display: inline-flex;
  padding: 1.4px;
  border-radius: 999px;
  background:
    conic-gradient(from var(--onair-spin),
      transparent 0deg,
      rgba(247, 223, 154, 0.95) 34deg,
      transparent 78deg,
      transparent 188deg,
      rgba(255, 74, 61, 0.9) 222deg,
      transparent 268deg),
    linear-gradient(180deg, rgba(247, 223, 154, 0.42), rgba(247, 223, 154, 0.16));
  text-decoration: none;
  isolation: isolate;
  animation: onair-spin 5.5s linear infinite;
  transition: transform var(--d3) var(--ease), filter var(--d3) var(--ease);
}
@keyframes onair-spin {
  to { --onair-spin: 360deg; }
}

/* 버튼 뒤에 깔리는 숨결. 붉은 방송등이 금빛 헤더 위로 번진다. */
.onair::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(56% 120% at 18% 50%, rgba(255, 74, 61, 0.34), transparent 70%),
    radial-gradient(70% 130% at 72% 50%, rgba(233, 189, 101, 0.24), transparent 72%);
  filter: blur(11px);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity var(--d3) var(--ease);
}

.onair__body {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 15px);
  padding: clamp(11px, 1.15vw, 15px) clamp(17px, 1.7vw, 24px);
  border-radius: inherit;
  background:
    radial-gradient(42% 150% at 6% 50%, rgba(255, 74, 61, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(41, 24, 21, 0.95), rgba(16, 10, 9, 0.975));
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* 유리 윗면에 맺히는 1px 반사. 두께감을 만든다. */
.onair__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.4), transparent);
  pointer-events: none;
}

/* 표면을 훑고 지나가는 빛. 4초에 한 번, 짧고 얇게. */
.onair__sheen {
  position: absolute;
  inset: 1.4px;
  z-index: 1;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.onair__sheen::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -40%;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-120%) rotate(8deg);
  animation: onair-sheen 4.6s var(--ease) infinite;
}
@keyframes onair-sheen {
  0%, 62% { transform: translateX(-120%) rotate(8deg); }
  86%, 100% { transform: translateX(560%) rotate(8deg); }
}

/* LIVE 배지 */
.onair__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.onair__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--onair-red);
  box-shadow: 0 0 10px rgba(255, 74, 61, 0.9);
}
.onair__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255, 74, 61, 0.75);
  border-radius: 50%;
  animation: onair-ping 1.9s var(--ease) infinite;
}
@keyframes onair-ping {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
.onair__live-text {
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.72vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #FFD9D3;
  text-shadow: 0 0 12px rgba(255, 74, 61, 0.5);
}

.onair__rule {
  width: 1px;
  height: 1.35em;
  flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, rgba(247, 223, 154, 0.52), transparent);
}

.onair__label {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

/* 파형. 방송이 흐르고 있다는 신호. */
.onair__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 17px;
  flex: 0 0 auto;
}
.onair__eq i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(233, 189, 101, 0.36));
  transform-origin: bottom center;
  transform: scaleY(0.34);
  animation: onair-eq 1.15s var(--ease) infinite;
  animation-delay: calc(var(--n, 0) * -0.26s);
}
@keyframes onair-eq {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

/* 화살촉. 호버하면 앞으로 나간다. */
.onair__go {
  position: relative;
  width: 12px;
  height: 9px;
  flex: 0 0 auto;
  transition: transform var(--d3) var(--ease);
}
.onair__go::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
  transform: translateY(-50%);
}
.onair__go::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
  transform: translateY(-50%) rotate(45deg);
}

.onair:hover,
.onair:focus-visible {
  transform: translate3d(0, -2px, 0);
  filter: brightness(1.06);
}
.onair:hover::before,
.onair:focus-visible::before { opacity: 1; }
.onair:hover .onair__go,
.onair:focus-visible .onair__go { transform: translate3d(4px, 0, 0); }
.onair:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.onair:active { transform: translate3d(0, 0, 0); }

@media (max-width: 720px) {
  .curtain__headline { gap: var(--s3); }
  .curtain__onair { width: 100%; }
  .onair { display: flex; }
  .onair__body { width: 100%; justify-content: center; padding: 12px var(--s4); }
  .onair__label { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  .onair { animation: none; }
  .onair__sheen::after { animation: none; opacity: 0; }
  .onair__dot::after { animation: none; opacity: 0; }
  .onair__eq i { animation: none; transform: scaleY(0.62); }
  .onair,
  .onair__go { transition: none; }
}
