@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/pretendard-variable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #060404;
  --ink: #f0e6d4;
  --muted: #b4a288;
  --faint: #7b6d5a;

  --gold: #cfae6c;
  --gold-hi: #f0dbab;
  --gold-deep: #8a6a2f;
  --steel: #7fb6d6;
  --ember: #e4b255;

  --line: rgba(214, 184, 118, .18);
  --line-hi: rgba(214, 184, 118, .38);
  --pane: #0a0908;
  --pane-hi: #100d0b;

  --serif: "Noto Serif KR", "KoPub Batang", "AppleMyungjo", "Batang", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --snap: cubic-bezier(.17, .84, .34, 1);

  --topbar-h: 52px;
  --rail-w: clamp(322px, 25vw, 376px);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, li { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.sr-log,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus-visible {
  z-index: 200;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip-path: none;
  border-radius: 6px;
  background: var(--pane-hi);
  border: 1px solid var(--line-hi);
}

.shell {
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #080605;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 6px;
  border-radius: 7px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .04em;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.topbar__back:hover { color: var(--gold-hi); background: rgba(207, 174, 108, .08); }
.topbar__back span:first-child { font-size: 1rem; line-height: 1; }

.topbar__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.topbar__sound {
  position: relative;
  z-index: 110;
}

.topbar__audio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 58px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(214, 184, 118, .26);
  border-radius: 5px;
  color: rgba(224, 210, 184, .66);
  background: rgba(255, 255, 255, .018);
  font-size: .66rem;
  font-weight: 730;
  line-height: 1;
  letter-spacing: .09em;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.topbar__audio::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}

.topbar__audio:hover,
.topbar__audio:focus-visible,
.topbar__audio[data-state="loading"],
.topbar__audio[data-state="on"] {
  color: var(--gold-hi);
  border-color: rgba(240, 219, 171, .52);
  background: rgba(207, 174, 108, .065);
}

.topbar__audio[data-state="error"] {
  color: #d89a90;
  border-color: rgba(216, 110, 96, .36);
}

.topbar__audio-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 13px;
  height: 12px;
}

.topbar__audio-mark i {
  width: 1px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  opacity: .72;
  transform-origin: 50% 50%;
}

.topbar__audio[data-state="on"] .topbar__audio-mark i,
.topbar__audio[data-state="loading"] .topbar__audio-mark i {
  animation: talkshow-audio-meter 840ms ease-in-out infinite alternate;
}

.topbar__audio[data-state="on"] .topbar__audio-mark i:nth-child(2),
.topbar__audio[data-state="loading"] .topbar__audio-mark i:nth-child(2) { animation-delay: -420ms; }

.topbar__audio[data-state="on"] .topbar__audio-mark i:nth-child(3),
.topbar__audio[data-state="loading"] .topbar__audio-mark i:nth-child(3) { animation-delay: -180ms; }

.topbar__audio-credit {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(10, 8, 7, .98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  font-size: .67rem;
  line-height: 1.45;
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}

.topbar__audio-credit a {
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}

.topbar__audio-credit a:hover,
.topbar__audio-credit a:focus-visible {
  color: var(--gold-hi);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.topbar__sound:hover .topbar__audio-credit,
.topbar__sound:focus-within .topbar__audio-credit {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes talkshow-audio-meter {
  from { height: 3px; opacity: .52; }
  to { height: 11px; opacity: 1; }
}

.topbar__entry {
  padding: 8px 16px;
  border: 1px solid var(--line-hi);
  border-radius: 7px;
  color: var(--gold-hi);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(180deg, rgba(207, 174, 108, .14), rgba(207, 174, 108, .05));
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.topbar__entry:hover {
  border-color: rgba(240, 219, 171, .6);
  background: linear-gradient(180deg, rgba(207, 174, 108, .26), rgba(207, 174, 108, .1));
}

.broadcast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  min-height: 0;
}

.screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #030202;
}

.stage {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  place-self: center;
  width: min(100%, calc((100dvh - var(--topbar-h) - 78px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #030202;
  contain: layout paint style;
}

.stage__plate,
.stage__plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__plate img {
  object-fit: contain;
}

.hud {
  position: absolute;
  top: 2.2cqw;
  left: 2.4cqw;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hud__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(150, 32, 28, .92);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff2ea;
}

.hud__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: beat 2.1s ease-in-out infinite;
}

.hud__live.is-down {
  background: rgba(48, 40, 36, .9);
  color: var(--muted);
}

.hud__live.is-down i { animation: none; background: var(--faint); }

@keyframes beat {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}

.hud__clock {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: rgba(240, 230, 212, .72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

.stage__idle {
  position: absolute;
  right: 0;
  bottom: 5.4cqw;
  left: 0;
  z-index: 40;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(180, 162, 136, .5);
  transition: opacity 300ms var(--ease);
}

.stage.is-live .stage__idle { opacity: 0; }

.ensemble {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.seat[data-actor-id="genius"], .plate[data-actor-id="genius"], .quote[data-actor-id="genius"], .lead[data-actor-id="genius"]    { --actor-x: 13.281250%; --actor-base-y: 67.222222%; --actor-canvas-h: 36.383271%; --actor-anchor-x: -50.024414%; --actor-anchor-y: -81.609078%; --actor-z: 10; --tone: 228, 178, 85; }
.seat[data-actor-id="mindeulle"], .plate[data-actor-id="mindeulle"], .quote[data-actor-id="mindeulle"], .lead[data-actor-id="mindeulle"] { --actor-x: 25.651042%; --actor-base-y: 65.462963%; --actor-canvas-h: 31.376668%; --actor-anchor-x: -50%; --actor-anchor-y: -85.448023%; --actor-z: 20; --tone: 242, 208, 107; }
.seat[data-actor-id="jindallae"], .plate[data-actor-id="jindallae"], .quote[data-actor-id="jindallae"], .lead[data-actor-id="jindallae"] { --actor-x: 37.578125%; --actor-base-y: 63.379630%; --actor-canvas-h: 31.072040%; --actor-anchor-x: -50%; --actor-anchor-y: -85.448023%; --actor-z: 30; --tone: 228, 139, 176; }
.seat[data-actor-id="nepenthes"], .plate[data-actor-id="nepenthes"], .quote[data-actor-id="nepenthes"], .lead[data-actor-id="nepenthes"] { --actor-x: 50.156250%; --actor-base-y: 62.268519%; --actor-canvas-h: 32.290552%; --actor-anchor-x: -50%; --actor-anchor-y: -90.007321%; --actor-z: 40; --tone: 169, 196, 137; }
.seat[data-actor-id="dongbaek"], .plate[data-actor-id="dongbaek"], .quote[data-actor-id="dongbaek"], .lead[data-actor-id="dongbaek"]  { --actor-x: 63.046875%; --actor-base-y: 62.777778%; --actor-canvas-h: 31.072040%; --actor-anchor-x: -49.975586%; --actor-anchor-y: -85.448023%; --actor-z: 31; --tone: 220, 111, 98; }
.seat[data-actor-id="maehwa"], .plate[data-actor-id="maehwa"], .quote[data-actor-id="maehwa"], .lead[data-actor-id="maehwa"]    { --actor-x: 75.000000%; --actor-base-y: 65.462963%; --actor-canvas-h: 26.942079%; --actor-anchor-x: -49.975586%; --actor-anchor-y: -81.652635%; --actor-z: 21; --tone: 239, 216, 222; }
.seat[data-actor-id="kassian"], .plate[data-actor-id="kassian"], .quote[data-actor-id="kassian"], .lead[data-actor-id="kassian"]   { --actor-x: 86.927083%; --actor-base-y: 67.916667%; --actor-canvas-h: 32.431149%; --actor-anchor-x: -50%; --actor-anchor-y: -85.810395%; --actor-z: 11; --tone: 127, 182, 214; }

.seat {
  pointer-events: auto;
  position: absolute;
  top: var(--actor-base-y);
  left: var(--actor-x);
  z-index: var(--actor-z);
  height: var(--actor-canvas-h);
  aspect-ratio: 2048 / 2732;
  transform: translate(var(--actor-anchor-x), var(--actor-anchor-y));

  opacity: 1;
  filter: none;
  transition: filter 300ms var(--ease), opacity 300ms var(--ease);
}

.seat__sprite {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 .55cqw .7cqw rgba(0, 0, 0, .72));
}

@keyframes pose-rise {
  from { transform: translateY(1.3cqw); opacity: .3; }
  to { transform: translateY(0); opacity: 1; }
}

.seat__sprite.is-rising {
  animation: pose-rise 190ms cubic-bezier(.2, .92, .32, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .seat__sprite.is-rising { animation-duration: 110ms; }
}

.seat.is-online {
  opacity: 1;
  filter: none;
}

.seat.is-speaking {
  opacity: 1;
  filter:
    brightness(1.08)
    saturate(1.05)
    drop-shadow(0 0 1.2cqw rgba(var(--tone), .42));
}

.plates {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.plate {
  position: absolute;
  top: var(--actor-base-y);
  left: var(--actor-x);
  display: grid;
  justify-items: center;
  gap: .1cqw;
  padding: .58cqw 1.5cqw .66cqw;
  transform: translate(-50%, 1.7cqw);
  white-space: nowrap;
  background: rgba(4, 4, 5, .52);
  backdrop-filter: blur(9px) saturate(.5);
  -webkit-backdrop-filter: blur(9px) saturate(.5);
  opacity: 1;
  transition: opacity 320ms var(--ease), background-color 320ms var(--ease);
}

.plate::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, .26) 24%,
    rgba(255, 255, 255, .26) 76%,
    transparent);
  transition: background 320ms var(--ease);
}

.plate__epithet {
  font-size: .74cqw;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .2em;
  text-indent: .2em;
  color: rgba(255, 255, 255, .42);
  transition: color 320ms var(--ease);
}

.plate__name {
  font-family: var(--serif);
  font-size: 1.32cqw;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .005em;
  color: rgba(255, 255, 255, .88);
  transition: color 320ms var(--ease);
}

.plate.is-online { opacity: 1; }

.plate.is-speaking {
  opacity: 1;
  background: rgba(4, 4, 5, .74);
}

.plate.is-speaking::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, .72) 20%,
    rgba(255, 255, 255, .72) 80%,
    transparent);
}

.plate.is-speaking .plate__epithet { color: rgba(255, 255, 255, .62); }
.plate.is-speaking .plate__name { color: #fff; }

.ghost--warn { color: #D9897F; }
.ghost--warn:hover { color: #EFA79D; }

.wipe {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.wipe::backdrop { background: rgba(0, 0, 0, .68); }

.wipe__card {
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid rgba(216, 82, 74, .34);
  border-radius: 3px;
  background: #0B0B0D;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .7);
}

.wipe__card h2 {
  margin: 0 0 .45rem;
  color: #F2EEE6;
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.wipe__card p {
  margin: 0 0 .95rem;
  color: rgba(238, 232, 222, .58);
  font-size: .78rem;
  line-height: 1.6;
}

.wipe__acts {
  display: flex;
  gap: .45rem;
}

.wipe__go,
.wipe__off {
  flex: 1;
  padding: .5rem 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  background: transparent;
  color: rgba(238, 232, 222, .72);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.wipe__go {
  border-color: rgba(216, 82, 74, .55);
  color: #E58C84;
}

.wipe__go:hover,
.wipe__go:focus-visible {
  background: rgba(216, 82, 74, .18);
  color: #F3A79F;
}

.wipe__off:hover,
.wipe__off:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: #F2EEE6;
}

.wipe__go[disabled] { opacity: .45; cursor: default; }

.lower {
  position: absolute;
  z-index: 65;
  right: 0;
  bottom: 4.2cqw;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  width: fit-content;
  max-width: 74cqw;
  margin: 0 auto;
  padding: .82cqw 1.9cqw .9cqw;
  background: rgba(3, 3, 4, .78);
  backdrop-filter: blur(14px) saturate(.55);
  -webkit-backdrop-filter: blur(14px) saturate(.55);
  box-shadow: 0 1.2cqw 2.8cqw rgba(0, 0, 0, .58);
  animation: lower-in 460ms cubic-bezier(.16, .84, .24, 1) both;
}

.lower::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg,
    transparent,
    rgba(233, 189, 101, .72) 14%,
    rgba(233, 189, 101, .72) 86%,
    transparent);
}

.lower__label {
  flex: none;
  padding-right: 1.1cqw;
  border-right: 1px solid rgba(255, 255, 255, .16);
  color: rgba(233, 189, 101, .82);
  font-family: var(--sans);
  font-size: .88cqw;
  font-weight: 800;
  letter-spacing: .22em;
}

.lower__text {
  margin: 0;
  color: #F7F4EE;
  font-family: var(--sans);
  font-size: 1.42cqw;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.014em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px .5cqw rgba(0, 0, 0, .95);
}

@keyframes lower-in {
  from { opacity: 0; transform: translateY(1.6cqw); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lower { animation-duration: 180ms; }
}

.data-screen {
  position: absolute;
  inset: 60% 0 0 0;
  z-index: 78;
  display: grid;
  animation: data-screen-in 380ms cubic-bezier(.16, .84, .24, 1) both;
}

.data-screen::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 7%;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 4, .55));
  content: "";
  pointer-events: none;
}

.data-screen__slide {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.data-screen .ts-slide {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.data-screen__page {
  position: absolute;
  z-index: 4;
  top: 1.65cqw;
  right: 2.1cqw;
  color: rgba(244, 239, 229, .42);
  font-size: .61cqw;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: .12em;
  pointer-events: none;
}

.stage.has-data-screen .lower { display: none; }

@keyframes data-screen-in {
  from { opacity: 0; transform: translateY(1.6cqw); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .data-screen { animation-duration: 180ms; }
}

.topicbox {
  margin-bottom: 8px;
  border: 1px solid rgba(233, 189, 101, .2);
  border-radius: 2px;
  background: rgba(233, 189, 101, .045);
}

.topicbox__head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .42rem .55rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.topicbox__head::-webkit-details-marker { display: none; }

.topicbox__head::after {
  margin-left: auto;
  color: rgba(233, 189, 101, .5);
  content: "펼치기";
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.topicbox[open] .topicbox__head::after { content: "접기"; }

.topicbox__label {
  flex: none;
  color: rgba(233, 189, 101, .66);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

/* 주제가 길면 이 칸이 그 길이만큼 늘어나 진행자 판을 통째로 밀어냈다.
   min-width 만으로는 위쪽 칸들이 줄어들지 않으면 소용이 없다. 폭에 천장을 둬서
   위를 보지 않고도 제자리에서 잘리게 한다. */
.topicbox__now {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 13ch;
  overflow: hidden;
  color: rgba(238, 232, 222, .72);
  font-size: .72rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topicbox__row {
  display: flex;
  gap: .3rem;
  padding: 0 .55rem .5rem;
}

.topicbox input {
  flex: 1;
  min-width: 0;
  padding: .38rem .45rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(0, 0, 0, .32);
  color: #F2EEE6;
  font-family: inherit;
  font-size: .76rem;
}

.topicbox input:focus-visible {
  border-color: rgba(233, 189, 101, .5);
  outline: none;
}

.topicbox__set,
.topicbox__clear {
  flex: none;
  padding: .38rem .5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  background: transparent;
  color: rgba(238, 232, 222, .72);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.topicbox__set {
  border-color: rgba(233, 189, 101, .46);
  color: #E9BD65;
}

.topicbox__set:hover,
.topicbox__set:focus-visible {
  background: rgba(233, 189, 101, .14);
  color: #F5D68C;
}

.topicbox__clear:hover,
.topicbox__clear:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: #F2EEE6;
}

.topicbox__set[disabled],
.topicbox__clear[disabled] { opacity: .45; cursor: default; }

.databox {
  margin-bottom: 8px;
  border: 1px solid rgba(112, 166, 223, .24);
  border-radius: 2px;
  background: rgba(74, 112, 158, .055);
}

.databox__head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .42rem .55rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.databox__head::-webkit-details-marker { display: none; }

.databox__head::after {
  margin-left: auto;
  color: rgba(112, 166, 223, .55);
  content: "펼치기";
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.databox[open] .databox__head::after { content: "접기"; }

.databox__label {
  flex: none;
  color: rgba(149, 192, 235, .82);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.databox__now {
  min-width: 0;
  overflow: hidden;
  color: rgba(238, 232, 222, .72);
  font-size: .7rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.databox__now.is-live { color: #ff786e; }

.databox__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px auto auto auto;
  gap: .28rem;
  padding: 0 .55rem .5rem;
}

.databox select,
.databox button,
.databox a {
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  color: rgba(238, 232, 222, .74);
  background: rgba(0, 0, 0, .3);
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
}

.databox select {
  width: 100%;
  padding: .32rem .4rem;
  outline: 0;
}

.databox button,
.databox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .32rem .42rem;
  text-decoration: none;
  cursor: pointer;
}

.databox__show {
  border-color: rgba(112, 166, 223, .48) !important;
  color: #9dc9f5 !important;
}

.databox select:focus-visible,
.databox button:focus-visible,
.databox a:focus-visible,
.databox button:hover,
.databox a:hover {
  border-color: rgba(149, 192, 235, .52);
  outline: 0;
  color: #d7eaff;
}

.databox button:disabled,
.databox select:disabled { opacity: .42; cursor: default; }

.id-tip {
  position: fixed;
  z-index: 420;
  display: grid;
  gap: .44rem;
  min-width: 11rem;
  max-width: min(23rem, calc(100vw - 24px));
  padding: .58rem .68rem .62rem;
  border: 1px solid rgba(233, 189, 101, .24);
  border-radius: 11px;
  color: #E9BD65;
  background: linear-gradient(180deg, rgba(31, 22, 14, .975), rgba(13, 9, 6, .985));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, .07),
    0 22px 46px -18px rgba(0, 0, 0, .82),
    0 3px 12px rgba(0, 0, 0, .42);
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(9px) saturate(1.04);
  -webkit-backdrop-filter: blur(9px) saturate(1.04);
  animation: id-tip-in 140ms cubic-bezier(.22, .76, .32, 1) both;
}

.id-tip,
.id-tip .id-tip__code,
.id-tip .id-tip__work,
.id-tip .id-tip__score {
  font-family: var(--sans);
}

@keyframes id-tip-in {
  from { opacity: 0; transform: translateY(3px) scale(.986); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .id-tip { animation: none; }
}

.id-tip__code {
  color: #F0D089;
  font-size: .84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

.id-tip__works {
  display: grid;
  gap: .34rem;
  padding-top: .46rem;
  background-image: linear-gradient(
    90deg,
    rgba(233, 189, 101, .02),
    rgba(233, 189, 101, .26),
    rgba(233, 189, 101, .02)
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top left;
}

.id-tip__works:first-child { padding-top: 0; background-image: none; }

.id-tip__round {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  column-gap: .46rem;
}

.id-tip__round-label {
  align-self: start;
  margin-top: .1rem;
  padding: .09rem 0;
  border-radius: 4px;
  background: rgba(233, 189, 101, .08);
  color: rgba(240, 208, 137, .74);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
}

.id-tip__round-works {
  display: grid;
  min-width: 0;
  gap: .16rem;
}

.id-tip__entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .46rem;
  min-width: 0;
}

.id-tip__score {
  justify-self: end;
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 1.3rem;
  padding-inline: .34rem;
  border-radius: 5px;
  background: #241A12;
  color: #B99C74;
  box-shadow: inset 0 1px 0 rgba(247, 223, 154, .14);
  font-size: .73rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.id-tip__score[data-tier="2"] { background: #3A2915; color: #D3B382; }
.id-tip__score[data-tier="3"] { background: #4F3818; color: #E7C78C; }
.id-tip__score[data-tier="4"] { background: #67491C; color: #F5DC98; }
.id-tip__score[data-tier="5"] {
  background: #AD7F2D;
  color: #1E1204;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.id-tip__score[data-tier="6"] {
  background: #C99A3E;
  color: #201304;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
}
.id-tip__score[data-tier="7"] {
  background: #E4BC63;
  color: #221405;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36);
}
.id-tip__score[data-tier="8"] {
  background: #F7DF9A;
  color: #231405;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 0 14px rgba(233, 189, 101, .26);
}

.id-tip__score.x-score--invalid {
  min-width: 2.7rem;
  border: 1px solid rgba(230, 204, 146, .16);
  background: #070606;
  color: rgba(230, 218, 202, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 7px rgba(0, 0, 0, .32);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.id-tip__work {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  overflow: hidden;
  color: #E6D3AB;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-tip__work--unaccepted { color: #AA9881; font-style: italic; }
a.id-tip__work:hover { color: #F0D089; text-decoration: underline; }

.seat.is-dossier { cursor: pointer; }
.rail__presence img.is-dossier { cursor: pointer; }

.row--cast .row__mask.is-dossier {
  cursor: pointer;
  transition: filter 140ms ease;
}

.row--cast .row__mask.is-dossier:hover { filter: brightness(1.35); }

.gavel {
  position: fixed;
  z-index: 400;
  top: var(--gavel-y, 50%);
  left: var(--gavel-x, 50%);
  width: 15rem;
  padding: .7rem .8rem .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(10, 10, 12, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, .7);
}

.gavel__who {
  display: block;
  color: #F2EEE6;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.gavel__note {
  margin: .28rem 0 .62rem;
  color: rgba(238, 232, 222, .58);
  font-size: .72rem;
  line-height: 1.5;
}

.gavel__acts {
  display: flex;
  gap: .4rem;
}

.gavel__act,
.gavel__off {
  flex: 1;
  padding: .42rem 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  background: transparent;
  color: rgba(238, 232, 222, .7);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.gavel__act {
  border-color: rgba(216, 82, 74, .5);
  color: #E58C84;
}

.gavel__act:hover,
.gavel__act:focus-visible {
  background: rgba(216, 82, 74, .16);
  color: #F3A79F;
}

.gavel__off:hover,
.gavel__off:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: #F2EEE6;
}

.gavel__act[disabled] {
  opacity: .45;
  cursor: default;
}

.stream.is-bench .row:not(.row--cast) .row__who {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  transition: text-decoration-color 120ms ease;
}

.stream.is-bench .row:not(.row--cast) .row__who:hover,
.row__who.is-held {
  text-decoration-color: currentColor;
}

.quotes {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.leads {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lead {
  position: absolute;
  width: 1px;
  transform: translateX(-.5px);
  background: linear-gradient(180deg,
    var(--quote-name, rgb(var(--tone, 207, 174, 108))),
    transparent);
  opacity: .62;
}

.lead::after {
  position: absolute;
  bottom: -.18cqw;
  left: 50%;
  width: .36cqw;
  height: .36cqw;
  content: "";
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--quote-name, rgb(var(--tone, 207, 174, 108)));
  box-shadow: 0 0 .7cqw rgba(var(--tone, 207, 174, 108), .8);
}

.quote {
  position: absolute;
  z-index: 1;
  left: var(--quote-x, 50%);
  bottom: var(--quote-bottom, 60%);
  width: var(--quote-w, 18cqw);
  padding: .58cqw .92cqw .64cqw;
  transform: translateX(-50%);
  pointer-events: none;
  background: var(--quote-ground, rgba(3, 3, 4, .74));
  backdrop-filter: blur(14px) saturate(.55);
  -webkit-backdrop-filter: blur(14px) saturate(.55);
  box-shadow: 0 1.4cqw 3cqw rgba(0, 0, 0, .55);
  animation: quote-in 400ms cubic-bezier(.16, .84, .24, 1) both;
  transition: left 260ms cubic-bezier(.3, .8, .3, 1), bottom 260ms cubic-bezier(.3, .8, .3, 1);
}

.quote::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg,
    transparent,
    var(--quote-edge, rgba(255, 255, 255, .58)) 18%,
    var(--quote-edge, rgba(255, 255, 255, .58)) 82%,
    transparent);
}

.quote[data-actor-id="genius"], .lead[data-actor-id="genius"] { --quote-name: #E8483F; }
.quote[data-actor-id="mindeulle"], .lead[data-actor-id="mindeulle"] { --quote-name: #E9C463; }
.quote[data-actor-id="jindallae"], .lead[data-actor-id="jindallae"] { --quote-name: #F6F3EE; }
.quote[data-actor-id="nepenthes"], .lead[data-actor-id="nepenthes"] { --quote-name: #FF6353; }
.quote[data-actor-id="dongbaek"], .lead[data-actor-id="dongbaek"] { --quote-name: #5FC97E; }
.quote[data-actor-id="maehwa"], .lead[data-actor-id="maehwa"] { --quote-name: #FF9640; }
.quote[data-actor-id="kassian"], .lead[data-actor-id="kassian"] { --quote-name: #3E7BD6; }

.quote[data-actor-id="genius"] {
  --quote-ground: rgba(28, 8, 9, .78);
  --quote-edge: rgba(233, 137, 120, .66);
}

.quote[data-actor-id="kassian"] {
  --quote-ground: rgba(7, 13, 28, .78);
  --quote-edge: rgba(129, 176, 224, .66);
}

.quote__who {
  display: block;
  margin: 0 0 .18cqw;
  color: var(--quote-name, rgb(var(--tone, 207, 174, 108)));
  font-family: var(--sans);
  font-size: .84cqw;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  text-shadow: 0 1px .4cqw rgba(0, 0, 0, .9);
}

.quote__text {
  margin: 0;
  color: #f6f2ea;
  font-family: var(--sans);
  font-size: .98cqw;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.012em;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-shadow: 0 1px .5cqw rgba(0, 0, 0, .95);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote.is-leaving { animation: quote-out 240ms cubic-bezier(.4, 0, .8, .3) both; }

@keyframes quote-in {
  from { opacity: 0; transform: translateX(-50%) translateY(2.2cqw); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes quote-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(1.2cqw); }
}

@media (prefers-reduced-motion: reduce) {
  .quote { animation-duration: 160ms; }
  .quote.is-leaving { animation-duration: 120ms; }
}

.emotes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 9px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 62%),
    #080706;
  box-shadow:
    inset 0 0 0 1px rgba(214, 184, 118, .15),
    0 1px 0 rgba(0, 0, 0, .5);
}

.emote {
  position: relative;
  padding: 8px 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(180, 162, 136, .74);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.emote + .emote::before {
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(214, 184, 118, .14);
  transition: opacity 150ms var(--ease);
}

.emote:hover {
  color: var(--gold-hi);
  background: rgba(214, 184, 118, .075);
}

.emote:focus-visible {
  outline: 1px solid rgba(214, 184, 118, .55);
  outline-offset: -2px;
}

.emote:active { background: rgba(214, 184, 118, .13); }

.emote:disabled {
  color: rgba(180, 162, 136, .26);
  cursor: default;
}

.emote:disabled:hover {
  color: rgba(180, 162, 136, .26);
  background: transparent;
}

.emote.is-live {
  color: #191207;
  background: linear-gradient(180deg, #e2c283, #b18c45);
}

.emote.is-live:hover {
  color: #191207;
  background: linear-gradient(180deg, #ecce92, #bf9a50);
}

.emote.is-live::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold-hi);
}

.emote.is-live::before,
.emote.is-live + .emote::before { opacity: 0; }

.chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214, 184, 118, .16);
  border-radius: 10px;
  background: #0c0a08;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}

.chip img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: grayscale(1) brightness(.55);
  transition: filter 260ms var(--ease);
}

.chip.is-online {
  border-color: rgba(214, 184, 118, .5);
  background: #14100b;
}

.chip.is-online img { filter: none; }

.chip.is-speaking {
  border-color: var(--gold-hi);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(207, 174, 108, .3);
}

.rail {
  display: grid;
  grid-template-rows: 44px 40px minmax(0, 1fr) auto;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--pane);
}

.rail__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.rail__presence {
  display: flex;
  margin-right: auto;
}

.rail__presence li { margin-right: -6px; }

.rail__presence img {
  display: block;
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid rgba(214, 184, 118, .2);
  border-radius: 50%;
  background: #0d0b09;
  object-fit: contain;
  filter: grayscale(1) brightness(.5);
  opacity: .5;
  transition: opacity 240ms var(--ease), filter 240ms var(--ease), border-color 240ms var(--ease);
}

.rail__presence img.is-online {
  border-color: rgba(214, 184, 118, .62);
  filter: none;
  opacity: 1;
}

.rail__count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.rail__count-mark {
  width: 11px;
  height: 11px;
  fill: currentColor;
  opacity: .72;
}

.rail__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 0 4px;
  color: var(--faint);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color 200ms var(--ease);
}

.tab:hover { color: var(--muted); }
.tab.is-active { color: var(--gold-hi); }

.tab__dot {
  position: absolute;
  top: 11px;
  margin-left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.rail__ink {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: calc(100% / 3);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(0);
  transition: transform 260ms var(--snap);
}

.rail__ink[data-index="1"] { transform: translateX(100%); }
.rail__ink[data-index="2"] { transform: translateX(200%); }

.rail__body {
  position: relative;
  min-height: 0;
}

.stream {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 184, 118, .22) transparent;
  contain: layout paint style;
}

.stream::-webkit-scrollbar { width: 8px; }
.stream::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(214, 184, 118, .22); }

.stream__empty {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: .78rem;
  color: var(--faint);
}

.row {
  display: block;
  padding: 5px 14px;
  font-size: .845rem;
  line-height: 20px;
  overflow-wrap: anywhere;
  animation: row-in 140ms linear both;
}

.row__who {
  display: inline;
  font-weight: 700;
  color: var(--who, #cfc0a4);
}

.row__who::after {
  content: ":";
  margin-right: 4px;
  color: rgba(180, 162, 136, .45);
  font-weight: 400;
}

.row__text {
  display: inline;
  color: #ded3c1;
}

.row.is-mine { background: rgba(207, 174, 108, .07); }

.row--cast {
  position: relative;
  margin: 2px 0;
  padding: 7px 14px 7px 16px;
  border-left: 2px solid rgba(var(--tone, 207, 174, 108), .8);
  background: linear-gradient(90deg, rgba(var(--tone, 207, 174, 108), .085), transparent 62%);
  animation: row-in-cast 220ms var(--ease) both;
}

.row--cast .row__mask {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: -.35em;
  object-fit: contain;
}

.row--cast .row__who {
  color: rgb(var(--tone, 207, 174, 108));
}

.row--cast .row__who::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .8em;
  margin: 0 7px -.05em;
  background: rgba(214, 184, 118, .34);
}

.row--cast .row__text {
  color: #f2e9d7;
}

.row__kill {
  display: none;
  margin-left: 6px;
  padding: 0 4px;
  color: var(--faint);
  font-size: .74rem;
  opacity: 0;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}

.stream.is-bench .row__kill { display: inline; }
.stream.is-bench .row:hover .row__kill { opacity: 1; }
.row__kill:hover { color: #d98a7f; }

@keyframes row-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes row-in-cast {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

body[data-filter="cast"] .row:not(.row--cast),
body[data-filter="audience"] .row--cast { display: none; }

.jump {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(207, 174, 108, .92);
  color: #16110a;
  font-size: .74rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

.dock {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--pane-hi);
}

.field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060504;
  transition: border-color 200ms var(--ease);
}

.field:focus-within { border-color: var(--line-hi); }
.field--tall { align-items: flex-end; padding: 8px 4px 4px 12px; }

.field input,
.field textarea {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: .86rem;
  outline: none;
  resize: none;
}

.field textarea { line-height: 1.5; max-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.send {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #d6b473, #a9843f);
  color: #17110a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: filter 180ms var(--ease);
}

.send:hover { filter: brightness(1.1); }
.send:disabled { filter: grayscale(.7) brightness(.6); cursor: default; }
.send--wide { width: 100%; padding: 11px; }

.field__meter {
  display: block;
  height: 2px;
  margin: 6px 2px 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), transparent);
}

.dock__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dock__who img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.dock__who strong {
  flex: 1;
  font-family: var(--serif);
  font-size: .92rem;
  color: var(--gold-hi);
}

.ghost {
  padding: 4px 7px;
  border: 0;
  border-radius: 3px;
  color: rgba(180, 162, 136, .6);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.ghost:hover { color: var(--gold-hi); background: rgba(214, 184, 118, .09); }
.ghost:focus-visible { outline: 1px solid rgba(214, 184, 118, .5); outline-offset: 0; }
.ghost[aria-pressed="false"] { color: #c98d84; }

.dock[data-mode="cast"] #audience-form { display: none; }

.gate {
  padding: 0;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  background: #0b0908;
  color: var(--ink);
}

.gate::backdrop { background: rgba(3, 2, 2, .82); }

.gate__card {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(340px, 86vw);
  padding: 26px 24px 24px;
}

.gate__close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 8px;
  color: var(--faint);
  font-size: 1.1rem;
}

.gate h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-hi);
}

.gate label {
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.gate input {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060504;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: .3em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.gate input:focus { border-color: var(--line-hi); }

.gate__error {
  color: #dc8d82;
  font-size: .78rem;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 300;
  transform: translateX(-50%);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 10, 8, .96);
  font-size: .82rem;
}

.toast.is-error { border-color: rgba(190, 92, 80, .5); color: #eab4ac; }

@media (max-width: 880px) {
  :root { --topbar-h: 48px; }

  .broadcast {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen { grid-template-rows: auto; }

  .stage { width: 100%; }

  .data-screen {
    inset: 60% 0 0 0;
    max-height: none;
  }

  .data-screen .ts-slide {
    min-height: 0;
    max-height: none;
  }

  .chip { width: 30px; height: 30px; border-radius: 8px; }

  .rail { border-left: 0; border-top: 1px solid var(--line); }

}

@media (max-width: 560px) {
  .topbar { gap: 6px; padding-inline: 8px; }
  .topbar__back { min-width: 0; padding-right: 4px; }
  .topbar__back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__actions { gap: 5px; }
  .topbar__audio { width: 54px; padding-inline: 6px; }
  .topbar__entry { padding-inline: 11px; white-space: nowrap; }
  .chip { width: 26px; height: 26px; }
}

@media (max-width: 360px) {
  .topbar__back span:last-child { display: none; }
}

@media (max-height: 470px) {
  body { overflow: auto; }
  .shell { height: auto; min-height: 100dvh; }
  .rail { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__audio-mark i { animation: none !important; }

  .hud__live i { animation: none; }

  .row,
  .row--cast {
    animation-duration: 200ms;
    animation-name: fade-only;
  }

  .seat { transition-duration: 200ms; }

  @keyframes fade-only {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.row--cast[data-actor="genius"] { --tone: 228, 178, 85; }
.row--cast[data-actor="mindeulle"] { --tone: 242, 208, 107; }
.row--cast[data-actor="jindallae"] { --tone: 228, 139, 176; }
.row--cast[data-actor="nepenthes"] { --tone: 169, 196, 137; }
.row--cast[data-actor="dongbaek"] { --tone: 220, 111, 98; }
.row--cast[data-actor="maehwa"] { --tone: 239, 216, 222; }
.row--cast[data-actor="kassian"] { --tone: 127, 182, 214; }

.row[data-hue="0"] .row__who { --who: #F0A24E; }
.row[data-hue="1"] .row__who { --who: #E8C87A; }
.row[data-hue="2"] .row__who { --who: #C7D08A; }
.row[data-hue="3"] .row__who { --who: #9BD27C; }
.row[data-hue="4"] .row__who { --who: #6FC29A; }
.row[data-hue="5"] .row__who { --who: #5FC2C8; }
.row[data-hue="6"] .row__who { --who: #8FBBD9; }
.row[data-hue="7"] .row__who { --who: #B9C6F0; }
.row[data-hue="8"] .row__who { --who: #C0B2E8; }
.row[data-hue="9"] .row__who { --who: #CFA6DE; }
.row[data-hue="10"] .row__who { --who: #E58FB4; }

.fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.seat[data-actor-id="genius"] { --fx-head: 22%; }
.seat[data-actor-id="mindeulle"] { --fx-head: 19%; }
.seat[data-actor-id="jindallae"] { --fx-head: 23%; }
.seat[data-actor-id="nepenthes"] { --fx-head: 31%; }
.seat[data-actor-id="dongbaek"] { --fx-head: 26%; }
.seat[data-actor-id="maehwa"] { --fx-head: 13%; }
.seat[data-actor-id="kassian"] { --fx-head: 16%; }

.fx__bit {
  position: absolute;
  left: var(--x);
  top: calc(var(--fx-head, 22%) + var(--y, 0%));
  width: var(--w);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-color: rgb(var(--fx-ink, 246 226 178));
  -webkit-mask: var(--art) center / contain no-repeat;
  mask: var(--art) center / contain no-repeat;
  opacity: 0;
  filter:
    drop-shadow(0 0 .1cqw rgba(10, 6, 4, .95))
    drop-shadow(0 0 .22cqw rgba(10, 6, 4, .8))
    drop-shadow(0 0 .9cqw rgba(var(--tone), .55));
  animation: fx-pop 620ms cubic-bezier(.2, .9, .3, 1) var(--d, 0ms) both;
}

.fx__bit[data-art="burst"] { --art: url("/mask/assets/img/talkshow/fx/burst.svg?v=2"); }
.fx__bit[data-art="star"] { --art: url("/mask/assets/img/talkshow/fx/star.svg?v=2"); }
.fx__bit[data-art="sparkle"] { --art: url("/mask/assets/img/talkshow/fx/sparkle.svg?v=2"); }
.fx__bit[data-art="ring"] { --art: url("/mask/assets/img/talkshow/fx/ring.svg?v=2"); }
.fx__bit[data-art="vein"] { --art: url("/mask/assets/img/talkshow/fx/vein.svg?v=2"); }
.fx__bit[data-art="steam"] { --art: url("/mask/assets/img/talkshow/fx/steam.svg?v=2"); }
.fx__bit[data-art="tear"] { --art: url("/mask/assets/img/talkshow/fx/tear.svg?v=2"); }
.fx__bit[data-art="sweat"] { --art: url("/mask/assets/img/talkshow/fx/sweat.svg?v=2"); }
.fx__bit[data-art="gloom"] { --art: url("/mask/assets/img/talkshow/fx/gloom.svg?v=2"); }
.fx__bit[data-art="squiggle"] { --art: url("/mask/assets/img/talkshow/fx/squiggle.svg?v=2"); }
.fx__bit[data-art="question"] { --art: url("/mask/assets/img/talkshow/fx/question.svg?v=2"); }

.fx--laugh, .fx--cheer, .fx--raise-hand { --fx-ink: 255 240 202; }
.fx--angry { --fx-ink: 246 148 122; }
.fx--sad { --fx-ink: 191 214 236; }
.fx--dejected { --fx-ink: 176 174 170; }
.fx--flustered { --fx-ink: 252 229 170; }
.fx--question { --fx-ink: 246 240 224; }

.fx__bit[data-move="rise"] { animation-name: fx-rise; animation-duration: 880ms; }
.fx__bit[data-move="fall"] { animation-name: fx-fall; animation-duration: 860ms; }
.fx__bit[data-move="drift"] { animation-name: fx-drift; animation-duration: 940ms; }
.fx__bit[data-move="shake"] { animation-name: fx-shake; animation-duration: 700ms; }
.fx__bit[data-move="ripple"] { animation-name: fx-ripple; animation-duration: 760ms; }
.fx__bit[data-move="curtain"] { animation-name: fx-curtain; animation-duration: 900ms; transform-origin: 50% 0; }

@keyframes fx-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.34) rotate(-8deg); }
  26% { opacity: 1; transform: translate(-50%, -50%) scale(1.14) rotate(0deg); }
  45% { transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(1.06); }
}

@keyframes fx-rise {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.45); }
  22% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  62% { opacity: 1; transform: translate(-50%, -125%) scale(.95); }
  100% { opacity: 0; transform: translate(-50%, -175%) scale(.85); }
}

@keyframes fx-fall {
  0% { opacity: 0; transform: translate(-50%, -95%) scale(.55); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  66% { opacity: 1; transform: translate(-50%, 22%) scale(.98); }
  100% { opacity: 0; transform: translate(-50%, 78%) scale(.9); }
}

@keyframes fx-drift {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.35); }
  30% { opacity: .85; transform: translate(-62%, -72%) scale(.85); }
  64% { opacity: .7; transform: translate(-74%, -104%) scale(1.1); }
  100% { opacity: 0; transform: translate(-84%, -138%) scale(1.3); }
}

@keyframes fx-shake {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-10deg); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(9deg); }
  45% { transform: translate(-50%, -50%) scale(1) rotate(-7deg); }
  70% { transform: translate(-50%, -50%) scale(1) rotate(5deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96) rotate(0deg); }
}

@keyframes fx-ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.22); }
  20% { opacity: .95; }
  55% { opacity: .7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes fx-curtain {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleY(.15); }
  24% { opacity: .9; transform: translate(-50%, -50%) scaleY(1); }
  70% { opacity: .82; transform: translate(-50%, -50%) scaleY(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fx__bit,
  .fx__bit[data-move] {
    animation-name: fx-blink;
    animation-duration: 420ms;
  }
}

@keyframes fx-blink {
  0% { opacity: 0; }
  30% { opacity: .95; }
  100% { opacity: 0; }
}

.data-screen {
  --frame-x: 0%;
  --frame-y: 60%;
  --frame-w: 100%;
  --frame-h: 40%;
  inset: var(--frame-y) auto auto var(--frame-x);
  width: var(--frame-w);
  height: var(--frame-h);
}

.data-screen__move,
.data-screen__grip,
.data-screen__hint { display: none; }

.data-screen.is-movable .data-screen__move {
  position: absolute;
  z-index: 6;
  inset: 10px;
  display: block;
  cursor: grab;
}

.data-screen.is-movable.is-dragging .data-screen__move { cursor: grabbing; }

.data-screen.is-movable .data-screen__grip {
  position: absolute;
  z-index: 7;
  display: block;
}

.data-screen.is-movable .data-screen__grip--n,
.data-screen.is-movable .data-screen__grip--s { right: 16px; left: 16px; height: 14px; cursor: ns-resize; }
.data-screen.is-movable .data-screen__grip--n { top: -7px; }
.data-screen.is-movable .data-screen__grip--s { bottom: -7px; }

.data-screen.is-movable .data-screen__grip--w,
.data-screen.is-movable .data-screen__grip--e { top: 16px; bottom: 16px; width: 14px; cursor: ew-resize; }
.data-screen.is-movable .data-screen__grip--w { left: -7px; }
.data-screen.is-movable .data-screen__grip--e { right: -7px; }

.data-screen.is-movable .data-screen__grip--nw,
.data-screen.is-movable .data-screen__grip--ne,
.data-screen.is-movable .data-screen__grip--sw,
.data-screen.is-movable .data-screen__grip--se { width: 20px; height: 20px; }

.data-screen.is-movable .data-screen__grip--nw { top: -8px; left: -8px; cursor: nwse-resize; }
.data-screen.is-movable .data-screen__grip--ne { top: -8px; right: -8px; cursor: nesw-resize; }
.data-screen.is-movable .data-screen__grip--sw { bottom: -8px; left: -8px; cursor: nesw-resize; }
.data-screen.is-movable .data-screen__grip--se { bottom: -8px; right: -8px; cursor: nwse-resize; }

.data-screen.is-movable::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px dashed rgba(237, 195, 115, .34);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.data-screen.is-movable:hover::after,
.data-screen.is-movable.is-dragging::after { opacity: 1; }

.data-screen__home {
  position: absolute;
  z-index: 9;
  top: 10px;
  right: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(237, 195, 115, .38);
  border-radius: 999px;
  background: rgba(6, 5, 4, .86);
  color: rgba(240, 205, 132, .92);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.data-screen__home:hover {
  border-color: rgba(247, 223, 154, .86);
  color: #fff0c8;
  background: #2b1b0b;
}

.data-screen__home:focus-visible {
  outline: 2px solid rgba(237, 195, 115, .8);
  outline-offset: 2px;
}

.data-screen__home[hidden] { display: none; }

.data-screen.is-movable:hover .data-screen__hint,
.data-screen.is-movable.is-dragging .data-screen__hint {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 14px;
  display: block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 5, 4, .78);
  color: rgba(237, 195, 115, .84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  pointer-events: none;
}

.data-screen:has(.data-screen__home:not([hidden])).is-movable:hover .data-screen__hint,
.data-screen:has(.data-screen__home:not([hidden])).is-movable.is-dragging .data-screen__hint {
  right: 86px;
}

.data-screen.is-movable.is-dragging .data-screen__hint { content: none; }

.data-screen.is-dragging { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .data-screen.is-movable::after { transition: none; }
}

.row--flower .row__mask {
  cursor: pointer;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: -.3em;
  object-fit: contain;
  opacity: .92;
}

.row--flower .row__who {
  color: #d9c79f;
}
