:root {
  color-scheme: dark;
  --bg: #0c0f10;
  --panel: rgba(13, 17, 18, 0.72);
  --panel-strong: rgba(18, 24, 24, 0.9);
  --line: rgba(245, 232, 190, 0.16);
  --line-strong: rgba(245, 232, 190, 0.34);
  --text: #f8f2e4;
  --muted: #abb8b1;
  --good: #3ee39f;
  --evil: #ff6074;
  --gold: #f2c35b;
  --teal: #4dc8d3;
  --ink: #0c0f10;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(77, 200, 211, 0.14), transparent 24rem),
    linear-gradient(140deg, #0a0c0d 0%, #101615 48%, #0c0f10 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  background: rgba(23, 31, 31, 0.9);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  border-color: var(--line-strong);
  background: rgba(33, 45, 44, 0.94);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.primary {
  border-color: rgba(242, 195, 91, 0.65);
  background: linear-gradient(180deg, #f7d277, #d99d3c);
  color: #181008;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.9rem;
  background: rgba(6, 8, 9, 0.72);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--gold);
}

.hidden {
  display: none !important;
}

.eyebrow,
.micro-label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-screen {
  min-width: 1120px;
  overflow: hidden;
}

.table-product {
  position: relative;
  height: 100vh;
  padding: 0.9rem;
}

.table-hero {
  position: relative;
  height: 100%;
  min-height: 42rem;
  border: 1px solid rgba(242, 195, 91, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d0d;
  box-shadow: 0 1.4rem 5rem rgba(0, 0, 0, 0.44);
}

.table-bg,
.screen-vignette {
  position: absolute;
  inset: 0;
}

.table-bg {
  background: var(--table-surface-image, url("/public/assets/tabletop-command-surface-v1.png")) center / cover;
  opacity: 0.9;
  transition: background 500ms ease, opacity 500ms ease, filter 500ms ease;
}

.screen-vignette {
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.7) 0%, transparent 24%, transparent 76%, rgba(3, 6, 7, 0.72) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(3, 6, 7, 0.62) 80%);
}

.table-product[data-scene="assassin"] .table-bg {
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.2), rgba(3, 6, 7, 0.2)),
    var(--assassin-stage-image, none) center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.08) contrast(1.04);
}

.table-product[data-scene="assassin"] .screen-vignette {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 96, 116, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(3, 6, 7, 0.78) 0%, transparent 24%, transparent 76%, rgba(3, 6, 7, 0.8) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0 38%, rgba(3, 6, 7, 0.68) 82%);
  animation: assassinAlertPulse 2600ms ease-in-out infinite;
}

.table-product[data-scene="briefing"] .table-bg {
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.12), rgba(3, 6, 7, 0.22)),
    var(--briefing-stage-image, none) center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.08) contrast(1.02);
}

.table-product[data-scene="briefing"] .screen-vignette {
  background:
    radial-gradient(circle at 48% 45%, rgba(77, 200, 211, 0.1), transparent 30%),
    radial-gradient(circle at 20% 18%, rgba(242, 195, 91, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(3, 6, 7, 0.68) 0%, transparent 24%, transparent 74%, rgba(3, 6, 7, 0.7) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(3, 6, 7, 0.58) 84%);
}

.table-product[data-scene="lobby"] .table-bg {
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.08), rgba(3, 6, 7, 0.18)),
    var(--lobby-stage-image, var(--table-surface-image, none)) center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.06) contrast(1.02);
}

.table-product[data-scene="lobby"] .screen-vignette {
  background:
    radial-gradient(circle at 52% 56%, rgba(77, 200, 211, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(3, 6, 7, 0.72) 0%, transparent 28%, transparent 76%, rgba(3, 6, 7, 0.66) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(3, 6, 7, 0.52) 84%);
}

.table-header,
.join-dock,
.mission-board,
.round-table,
.host-console,
.mission-strip,
.log-panel,
.settings-panel {
  position: absolute;
  z-index: 2;
}

.table-header {
  left: 1rem;
  right: 1rem;
  top: 1rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.brand-lockup h1,
.phone-header h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 0.95;
}

.header-meter {
  min-width: 12rem;
  border: 1px solid rgba(242, 195, 91, 0.34);
  border-radius: 999px;
  background: rgba(242, 195, 91, 0.1);
  padding: 0.55rem 1rem;
  text-align: center;
}

.header-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.header-meter strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
}

.icon-button {
  min-width: 4.2rem;
  min-height: 2.9rem;
  padding: 0 0.75rem;
  font-weight: 850;
}

.icon-button.active {
  border-color: var(--gold);
  color: var(--gold);
}

.join-dock {
  left: 1rem;
  top: 7.6rem;
  width: 17rem;
  display: grid;
  gap: 0.7rem;
  max-height: calc(100vh - 8.8rem);
  overflow-y: auto;
  padding-right: 0.12rem;
  scrollbar-color: rgba(242, 195, 91, 0.42) rgba(5, 8, 9, 0.28);
  scrollbar-width: thin;
}

.table-product[data-qr-dock="right"] .join-dock {
  left: auto;
  right: 1rem;
}

.table-product[data-qr-dock="hidden"] .join-dock {
  display: none;
}

.table-product[data-qr-dock="right"] .host-console {
  left: 1rem;
  right: auto;
}

.join-card,
.host-console,
.mission-board,
.mission-strip,
.log-panel,
.settings-panel,
.director-card,
.phone-card,
.role-card,
.live-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28);
}

.join-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.lobby-attract-card {
  position: relative;
  display: grid;
  min-height: 12.2rem;
  align-content: end;
  gap: 0.32rem;
  overflow: hidden;
  border: 1px solid rgba(242, 195, 91, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.06), rgba(5, 8, 9, 0.86) 68%),
    var(--lobby-attract-image, none) var(--lobby-attract-position, 0%) center / 400% 100% no-repeat,
    rgba(8, 11, 12, 0.68);
  background-blend-mode: normal, screen, normal;
  padding: 0.82rem;
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.lobby-attract-card::before,
.lobby-attract-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lobby-attract-card::before {
  background:
    radial-gradient(circle at 48% 22%, rgba(77, 200, 211, 0.12), transparent 30%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 49%, transparent 55% 100%);
  opacity: 0.34;
  animation: cardSheen 5200ms ease-in-out infinite;
}

.lobby-attract-card::after {
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.64), transparent 35%),
    linear-gradient(180deg, transparent 0 42%, rgba(5, 8, 9, 0.84) 78%);
}

.lobby-attract-card[data-step="privacy"] {
  border-color: rgba(77, 200, 211, 0.34);
}

.lobby-attract-card[data-step="ai"] {
  border-color: rgba(242, 195, 91, 0.4);
}

.lobby-attract-card[data-step="deal"] {
  border-color: rgba(62, 227, 159, 0.32);
}

.lobby-attract-card > * {
  position: relative;
  z-index: 1;
}

.lobby-attract-card > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
}

.lobby-attract-card > strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.16;
}

.lobby-attract-card > p {
  margin: 0;
  color: rgba(248, 242, 228, 0.78);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.42;
}

.lobby-attract-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.16rem;
}

.lobby-attract-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.62);
  padding: 0.22rem 0.46rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.qr-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.55rem;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.room-code {
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 0.92;
}

.join-url {
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.host-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.host-actions button {
  min-height: 2.45rem;
  padding: 0.45rem 0.35rem;
  font-size: 0.82rem;
}

.demo-jump-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.32rem;
  border: 1px solid rgba(77, 200, 211, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(77, 200, 211, 0.12), transparent 44%),
    rgba(5, 8, 9, 0.54);
  padding: 0.45rem;
}

.demo-jump-controls span {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
}

.demo-jump-controls button {
  min-height: 2rem;
  margin: 0;
  border-color: rgba(77, 200, 211, 0.18);
  background: rgba(5, 8, 9, 0.62);
  color: rgba(248, 242, 228, 0.78);
  font-size: 0.72rem;
}

.demo-jump-controls button.active {
  border-color: rgba(242, 195, 91, 0.58);
  background: rgba(242, 195, 91, 0.14);
  color: var(--text);
  box-shadow: 0 0 1rem rgba(242, 195, 91, 0.12);
}

.opening-director {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 0.46rem;
  border: 1px solid rgba(242, 195, 91, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.86), rgba(5, 8, 9, 0.58)),
    var(--opening-director-panels-image, none) var(--opening-director-position, 0%) center / 300% 100% no-repeat,
    radial-gradient(circle at 12% 18%, rgba(242, 195, 91, 0.14), transparent 42%),
    rgba(8, 11, 12, 0.62);
  overflow: hidden;
  padding: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.opening-director button {
  position: relative;
  z-index: 1;
  min-height: 2.75rem;
  font-size: 0.92rem;
}

.opening-director button[data-step="briefing"] {
  border-color: rgba(77, 200, 211, 0.48);
}

.opening-director button[data-step="ai"] {
  border-color: rgba(242, 195, 91, 0.7);
}

.opening-director button[data-step="deal"] {
  border-color: rgba(62, 227, 159, 0.58);
}

.opening-readiness {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.36rem;
  overflow: hidden;
  min-height: 6.3rem;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.06), rgba(5, 8, 9, 0.78)),
    var(--opening-readiness-image, none) var(--opening-readiness-position, 0%) center / 400% 100% no-repeat,
    rgba(5, 8, 9, 0.58);
  background-blend-mode: normal, screen, normal;
  padding: 0.62rem;
}

.opening-readiness::before,
.opening-readiness::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.opening-readiness::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 195, 91, 0.13), transparent 30%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.28;
}

.opening-readiness::after {
  background: linear-gradient(180deg, transparent 0 44%, rgba(5, 8, 9, 0.82) 86%);
}

.opening-readiness[data-readiness-state="briefing"] {
  border-color: rgba(77, 200, 211, 0.28);
}

.opening-readiness[data-readiness-state="ai"] {
  border-color: rgba(242, 195, 91, 0.36);
}

.opening-readiness[data-readiness-state="ready"] {
  border-color: rgba(62, 227, 159, 0.34);
}

.opening-readiness > * {
  position: relative;
  z-index: 1;
}

.opening-readiness > span {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
}

.opening-readiness > strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.16;
}

.opening-readiness-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.opening-readiness-meter span {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.62);
  padding: 0.28rem 0.34rem;
}

.opening-readiness-meter b,
.opening-readiness-meter em {
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-readiness-meter b {
  color: rgba(248, 242, 228, 0.68);
  font-size: 0.62rem;
  font-weight: 900;
}

.opening-readiness-meter em {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 820;
}

.opening-readiness-meter span.active {
  border-color: rgba(242, 195, 91, 0.4);
  background: rgba(242, 195, 91, 0.12);
}

.opening-readiness-meter span.done {
  border-color: rgba(62, 227, 159, 0.28);
  background: rgba(62, 227, 159, 0.08);
}

.opening-readiness-meter span.done em {
  color: var(--good);
}

.opening-director small {
  position: relative;
  z-index: 1;
  color: rgba(248, 242, 228, 0.72);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.28;
}

.opening-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.opening-step {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.56);
  padding: 0.32rem 0.22rem;
}

.opening-step i {
  width: 1.7rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.48) opacity(0.72) drop-shadow(0 0.28rem 0.5rem rgba(0, 0, 0, 0.42));
}

.opening-step b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.68);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-step.active {
  border-color: rgba(242, 195, 91, 0.48);
  background: rgba(242, 195, 91, 0.12);
}

.opening-step.active i {
  filter: brightness(1.12) saturate(1.14) drop-shadow(0 0 0.72rem rgba(242, 195, 91, 0.28));
}

.opening-step.done {
  border-color: rgba(62, 227, 159, 0.3);
}

.opening-step.done b {
  color: var(--good);
}

.opening-conductor {
  position: absolute;
  left: 20rem;
  right: 25rem;
  top: 6.7rem;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 6.7rem;
  border: 1px solid rgba(242, 195, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.12) 0 45%, rgba(5, 8, 9, 0.62) 68%, rgba(5, 8, 9, 0.92) 100%),
    var(--opening-conductor-image, none) center var(--opening-conductor-position, 0%) / 100% 400% no-repeat,
    rgba(8, 11, 12, 0.78);
  box-shadow: 0 0.85rem 2.4rem rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  padding: 0.8rem 0.95rem;
}

.opening-conductor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(77, 200, 211, 0.12), transparent 34%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.22;
  pointer-events: none;
}

.opening-conductor > * {
  position: relative;
  z-index: 1;
}

.opening-conductor-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding-left: min(16rem, 36%);
}

.opening-conductor-copy span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.opening-conductor-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-conductor-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opening-conductor-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
}

.opening-conductor-steps span {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.64);
  padding: 0.36rem 0.22rem;
}

.opening-conductor-steps i {
  width: 1.72rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.36) opacity(0.78) drop-shadow(0 0.26rem 0.44rem rgba(0, 0, 0, 0.38));
}

.opening-conductor-steps b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.7);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-conductor-steps span.active {
  border-color: rgba(242, 195, 91, 0.52);
  background: rgba(242, 195, 91, 0.12);
  box-shadow: 0 0 0.95rem rgba(242, 195, 91, 0.08);
}

.opening-conductor-steps span.active i {
  filter: brightness(1.12) saturate(1.16) drop-shadow(0 0 0.74rem rgba(242, 195, 91, 0.28));
}

.opening-conductor-steps span.done {
  border-color: rgba(62, 227, 159, 0.3);
  background: rgba(62, 227, 159, 0.08);
}

.opening-conductor-steps span.done b {
  color: var(--good);
}

.opening-conductor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.34rem;
}

.opening-conductor-meta span {
  max-width: 9rem;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.7);
  padding: 0.27rem 0.62rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-conductor[data-step="briefing"] {
  border-color: rgba(77, 200, 211, 0.3);
}

.opening-conductor[data-step="ai"] {
  border-color: rgba(242, 195, 91, 0.34);
}

.opening-conductor[data-step="deal"] {
  border-color: rgba(62, 227, 159, 0.3);
}

.next-round-handoff {
  position: absolute;
  left: 50%;
  top: 8.5rem;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
  width: min(42rem, 72%);
  min-height: 12rem;
  transform: translateX(-50%);
  border: 1px solid rgba(77, 200, 211, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(77, 200, 211, 0.18), transparent 38%),
    linear-gradient(120deg, rgba(5, 8, 9, 0.9), rgba(5, 8, 9, 0.7));
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4), 0 0 1.6rem rgba(77, 200, 211, 0.1);
  padding: 0.8rem;
  overflow: hidden;
}

.next-round-handoff.hidden {
  display: none;
}

.next-round-handoff::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 232, 190, 0.08), transparent);
  opacity: 0.55;
  pointer-events: none;
  animation: recapDirectorSweep 5200ms ease-in-out infinite;
}

.next-round-handoff > * {
  position: relative;
  z-index: 1;
}

.next-round-visual {
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 50%, rgba(3, 6, 7, 0.52)),
    var(--next-round-handoff-image, none) var(--next-round-handoff-position, 0%) center / 400% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.8rem 1.7rem rgba(0, 0, 0, 0.28);
}

.next-round-copy {
  display: grid;
  align-content: center;
  gap: 0.32rem;
  min-width: 0;
}

.next-round-copy span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
}

.next-round-copy strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.next-round-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.next-round-steps,
.next-round-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.next-round-steps span {
  display: inline-grid;
  grid-template-columns: 1.45rem auto;
  gap: 0.34rem;
  align-items: center;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.52);
  padding: 0.28rem 0.58rem 0.28rem 0.32rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.next-round-steps i {
  display: block;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
}

.next-round-steps span.active {
  border-color: rgba(77, 200, 211, 0.38);
  color: var(--text);
}

.next-round-steps span.done {
  color: var(--good);
}

.next-round-meta {
  justify-content: flex-end;
}

.next-round-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.54);
  padding: 0.34rem 0.56rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.discussion-conductor {
  position: absolute;
  left: 20rem;
  right: 25rem;
  top: 12.35rem;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(15rem, 0.92fr) auto;
  align-items: end;
  gap: 0.7rem;
  min-height: 7.4rem;
  border: 1px solid rgba(77, 200, 211, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.12), rgba(5, 8, 9, 0.56) 48%, rgba(5, 8, 9, 0.92) 100%),
    var(--discussion-conductor-image, none) var(--discussion-conductor-position, 0%) center / 400% 100% no-repeat,
    rgba(8, 11, 12, 0.78);
  box-shadow: 0 0.85rem 2.4rem rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  padding: 0.82rem 0.95rem;
}

.discussion-conductor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(77, 200, 211, 0.14), transparent 34%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.22;
  pointer-events: none;
}

.discussion-conductor > * {
  position: relative;
  z-index: 1;
}

.discussion-conductor-copy {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.discussion-conductor-copy span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.discussion-conductor-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.08rem, 1.62vw, 1.45rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-conductor-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discussion-conductor-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
}

.discussion-conductor-steps span {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.66);
  padding: 0.36rem 0.22rem;
}

.discussion-conductor-steps i {
  width: 1.72rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.36) opacity(0.78) drop-shadow(0 0.26rem 0.44rem rgba(0, 0, 0, 0.38));
}

.discussion-conductor-steps b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.7);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-conductor-steps span.active {
  border-color: rgba(242, 195, 91, 0.52);
  background: rgba(242, 195, 91, 0.12);
  box-shadow: 0 0 0.95rem rgba(242, 195, 91, 0.08);
}

.discussion-conductor-steps span.active i {
  filter: brightness(1.12) saturate(1.16) drop-shadow(0 0 0.74rem rgba(242, 195, 91, 0.28));
}

.discussion-conductor-steps span.done {
  border-color: rgba(62, 227, 159, 0.3);
  background: rgba(62, 227, 159, 0.08);
}

.discussion-conductor-steps span.done b {
  color: var(--good);
}

.discussion-conductor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.34rem;
}

.discussion-conductor-meta span {
  max-width: 9rem;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.72);
  padding: 0.27rem 0.62rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-conductor[data-state="speaking"],
.discussion-conductor[data-state="leader"] {
  border-color: rgba(242, 195, 91, 0.36);
}

.discussion-conductor[data-state="vote"] {
  border-color: rgba(77, 200, 211, 0.38);
}

.mission-outcome-director {
  position: absolute;
  left: 20rem;
  right: 25rem;
  top: 12.35rem;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(15rem, 0.92fr) auto;
  align-items: end;
  gap: 0.7rem;
  min-height: 7.4rem;
  border: 1px solid rgba(77, 200, 211, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.12), rgba(5, 8, 9, 0.58) 48%, rgba(5, 8, 9, 0.92) 100%),
    var(--mission-outcome-director-image, none) var(--mission-outcome-position, 0%) center / 400% 100% no-repeat,
    rgba(8, 11, 12, 0.78);
  box-shadow: 0 0.85rem 2.4rem rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  padding: 0.82rem 0.95rem;
}

.mission-outcome-director::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(77, 200, 211, 0.14), transparent 34%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.22;
  pointer-events: none;
}

.mission-outcome-director > * {
  position: relative;
  z-index: 1;
}

.mission-outcome-copy {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.mission-outcome-copy span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.mission-outcome-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.08rem, 1.62vw, 1.45rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-outcome-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mission-outcome-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
}

.mission-outcome-steps span {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.66);
  padding: 0.36rem 0.22rem;
}

.mission-outcome-steps i {
  width: 1.72rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.36) opacity(0.78) drop-shadow(0 0.26rem 0.44rem rgba(0, 0, 0, 0.38));
}

.mission-outcome-steps b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.7);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-outcome-steps span.active {
  border-color: rgba(242, 195, 91, 0.52);
  background: rgba(242, 195, 91, 0.12);
  box-shadow: 0 0 0.95rem rgba(242, 195, 91, 0.08);
}

.mission-outcome-steps span.active i {
  filter: brightness(1.12) saturate(1.16) drop-shadow(0 0 0.74rem rgba(242, 195, 91, 0.28));
}

.mission-outcome-steps span.done {
  border-color: rgba(62, 227, 159, 0.3);
  background: rgba(62, 227, 159, 0.08);
}

.mission-outcome-steps span.done b {
  color: var(--good);
}

.mission-outcome-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.34rem;
}

.mission-outcome-meta span {
  max-width: 9rem;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.72);
  padding: 0.27rem 0.62rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-outcome-director[data-state="failNext"],
.mission-outcome-director[data-state="evilWin"] {
  border-color: rgba(255, 96, 116, 0.38);
}

.mission-outcome-director[data-state="assassin"] {
  border-color: rgba(242, 195, 91, 0.42);
}

.mission-board {
  left: 20rem;
  right: 25rem;
  top: 6.8rem;
  display: grid;
  grid-template-columns: 6.2rem 1fr 6.2rem;
  gap: 0.65rem;
  padding: 0.65rem;
}

.table-product[data-scene="lobby"] .mission-board,
.table-product[data-scene="briefing"] .mission-board {
  opacity: 0;
  pointer-events: none;
}

.score-block {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.58);
  padding: 0.55rem 0.7rem;
}

.score-block span,
.mission-strip span,
.setting-group > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.score-block strong {
  display: block;
  font-size: 2.15rem;
  line-height: 1;
}

.score-block.good strong {
  color: var(--good);
}

.score-block.evil strong {
  color: var(--evil);
}

.quest-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.84), rgba(3, 5, 6, 0.36), rgba(3, 5, 6, 0.84)),
    var(--mission-medallions-image, none) center / cover no-repeat;
  padding: 0.18rem;
}

.quest-node {
  --token-position: 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 15, 0.66);
  padding: 0.45rem;
  text-align: center;
}

.quest-node::before {
  content: "";
  display: block;
  width: clamp(1.55rem, 2.35vw, 2.15rem);
  aspect-ratio: 1;
  margin: 0 auto 0.18rem;
  background: var(--mission-result-tokens-image, none) var(--token-position) center / 400% 100% no-repeat;
  filter: drop-shadow(0 0.35rem 0.55rem rgba(0, 0, 0, 0.42));
}

.quest-node strong {
  font-size: 1.05rem;
  line-height: 1;
}

.quest-node span,
.quest-node small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-node span {
  font-size: 0.76rem;
}

.quest-node small {
  color: var(--muted);
  font-size: 0.68rem;
}

.quest-node.current {
  --token-position: 33.3333%;
  border-color: rgba(242, 195, 91, 0.72);
  box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.25);
  animation: missionPulse 1800ms ease-in-out infinite;
}

.quest-node.good {
  --token-position: 66.6667%;
  background: rgba(62, 227, 159, 0.14);
  border-color: rgba(62, 227, 159, 0.5);
}

.quest-node.evil {
  --token-position: 100%;
  background: rgba(255, 96, 116, 0.14);
  border-color: rgba(255, 96, 116, 0.5);
}

.round-table {
  left: 18.8rem;
  right: 23.8rem;
  top: 12.1rem;
  bottom: 7.2rem;
  min-height: 26rem;
}

.table-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  width: 23rem;
  min-height: 10rem;
  transform: translate(-50%, -50%);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(242, 195, 91, 0.18), transparent 58%),
    rgba(6, 8, 9, 0.64);
  text-align: center;
  padding: 1.2rem;
}

.table-core::before,
.table-core::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.table-core::before {
  background: var(--table-center-phase-image, none) var(--table-center-phase-position, 0%) center / 700% 100% no-repeat;
  opacity: 0.76;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.04);
}

.table-core::after {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(4, 7, 8, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.04), rgba(5, 8, 9, 0.54) 66%, rgba(5, 8, 9, 0.7));
}

.table-core > * {
  position: relative;
  z-index: 1;
}

.table-core[data-center-stage="identity"],
.table-core[data-center-stage="vote"],
.table-core[data-center-stage="ended"] {
  border-color: rgba(242, 195, 91, 0.42);
  box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.13), 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
}

.table-core[data-center-stage="team"],
.table-core[data-center-stage="quest"] {
  border-color: rgba(77, 200, 211, 0.42);
  box-shadow: inset 0 0 0 1px rgba(77, 200, 211, 0.13), 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
}

.table-core[data-center-stage="assassin"] {
  border-color: rgba(255, 96, 116, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 96, 116, 0.18), 0 0 2rem rgba(255, 96, 116, 0.14);
}

.table-core[data-center-stage="assassin"]::before {
  opacity: 0.88;
  filter: saturate(1.24) contrast(1.08);
}

.table-product[data-layout="banquet"] .table-core {
  width: 31rem;
  min-height: 8.4rem;
  border-radius: 24px;
}

.table-product[data-layout="lounge"] .table-core {
  width: 19rem;
  min-height: 14.5rem;
  border-radius: 38% 62% 42% 58%;
}

.table-product[data-scene="assassin"] .table-core {
  border-color: rgba(255, 96, 116, 0.4);
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 96, 116, 0.16), transparent 58%),
    rgba(6, 8, 9, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 96, 116, 0.12), 0 0 2rem rgba(255, 96, 116, 0.08);
}

.table-product[data-scene="briefing"] .table-core {
  border-color: rgba(77, 200, 211, 0.4);
  background:
    radial-gradient(ellipse at 50% 24%, rgba(77, 200, 211, 0.18), transparent 58%),
    rgba(6, 8, 9, 0.66);
  box-shadow: inset 0 0 0 1px rgba(77, 200, 211, 0.12), 0 0 2rem rgba(77, 200, 211, 0.08);
}

.table-product[data-scene="lobby"] .table-core {
  border-color: rgba(242, 195, 91, 0.42);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(77, 200, 211, 0.16), transparent 60%),
    rgba(6, 8, 9, 0.58);
  box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.12), 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
}

.table-core p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 850;
}

.table-core strong {
  font-size: 1.85rem;
  line-height: 1.08;
}

.assassin-climax {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  width: min(36rem, 78%);
  min-height: min(24rem, 78%);
  transform: translate(-50%, -50%) scale(0.96);
  border: 1px solid rgba(255, 96, 116, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 5, 6, 0.08) 0 56%, rgba(3, 5, 6, 0.82) 74%, rgba(3, 5, 6, 0.96)),
    var(--assassin-countdown-image, none) var(--assassin-countdown-position, 0%) center / 300% 100% no-repeat,
    rgba(5, 8, 9, 0.88);
  box-shadow: 0 1.2rem 4.4rem rgba(0, 0, 0, 0.45), 0 0 2.4rem rgba(255, 96, 116, 0.12);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(0.16rem);
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.assassin-climax::before,
.assassin-climax::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.assassin-climax::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 96, 116, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(3, 5, 6, 0.44), transparent 18% 82%, rgba(3, 5, 6, 0.44));
  opacity: 0.76;
}

.assassin-climax::after {
  left: 50%;
  top: 40%;
  width: 16.2rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--assassin-countdown-rotation, 0deg));
  border: 1px solid rgba(255, 96, 116, 0.22);
  border-radius: 999px;
  background:
    conic-gradient(from -90deg, rgba(255, 96, 116, 0.64) 0 var(--assassin-countdown-progress, 0%), rgba(245, 232, 190, 0.1) var(--assassin-countdown-progress, 0%) 100%),
    radial-gradient(circle, transparent 0 56%, rgba(5, 8, 9, 0.58) 58% 100%);
  mix-blend-mode: screen;
  opacity: 0.56;
}

.assassin-climax.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
}

.assassin-climax[data-assassin-countdown-state="statements"] {
  border-color: rgba(77, 200, 211, 0.36);
  box-shadow: 0 1.2rem 4.4rem rgba(0, 0, 0, 0.45), 0 0 2.1rem rgba(77, 200, 211, 0.12);
}

.assassin-climax[data-assassin-countdown-state="final"] {
  border-color: rgba(255, 96, 116, 0.58);
  box-shadow: 0 1.2rem 4.4rem rgba(0, 0, 0, 0.45), 0 0 2.8rem rgba(255, 96, 116, 0.18);
}

.assassin-climax > * {
  position: relative;
  z-index: 1;
}

.assassin-countdown-orbit {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 8.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 232, 190, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 8, 9, 0.82) 0 46%, rgba(255, 96, 116, 0.15) 58%, transparent 70%),
    rgba(5, 8, 9, 0.42);
  box-shadow: inset 0 0 1.4rem rgba(255, 96, 116, 0.12), 0 0.9rem 2rem rgba(0, 0, 0, 0.36);
  text-align: center;
}

.assassin-countdown-orbit strong {
  color: var(--gold);
  font-size: 3.2rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 1.4rem rgba(255, 96, 116, 0.34);
}

.assassin-countdown-orbit span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.assassin-climax-copy {
  display: grid;
  justify-items: center;
  gap: 0.24rem;
  padding: 0 1.35rem;
  text-align: center;
}

.assassin-climax-copy span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.assassin-climax-copy strong {
  color: var(--text);
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.assassin-climax-copy small {
  max-width: 28rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.assassin-climax-meter {
  width: calc(100% - 3rem);
  height: 0.38rem;
  justify-self: center;
  margin-top: 0.7rem;
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: 999px;
  background: rgba(4, 7, 8, 0.74);
  overflow: hidden;
}

.assassin-climax-meter i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 200, 211, 0.72), rgba(242, 195, 91, 0.86), rgba(255, 96, 116, 0.88));
  box-shadow: 0 0 1rem rgba(255, 96, 116, 0.26);
  transition: width 320ms ease;
}

.assassin-climax-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.72rem 1.25rem 1.15rem;
}

.assassin-climax-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 7, 8, 0.72);
  padding: 0.28rem 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.table-guide {
  display: grid;
  width: min(100%, 18.8rem);
  gap: 0.34rem;
  margin-top: 0.85rem;
}

.guide-step {
  display: grid;
  grid-template-columns: 2.05rem minmax(3.8rem, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.56);
  padding: 0.34rem 0.48rem;
  text-align: left;
}

.guide-step span {
  display: grid;
  place-items: center;
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background: rgba(245, 232, 190, 0.08);
  overflow: hidden;
}

.guide-step span i {
  position: absolute;
  inset: 0.12rem;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 85.7143%) center / 800% 100% no-repeat;
  filter: saturate(1.04) drop-shadow(0 0.24rem 0.38rem rgba(0, 0, 0, 0.34));
}

.guide-step span b {
  position: absolute;
  right: 0.04rem;
  bottom: 0.02rem;
  display: grid;
  place-items: center;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.78);
  color: var(--gold);
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
}

.guide-step p,
.guide-step strong {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-step p {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.guide-step strong {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.2;
}

.guide-step.active {
  border-color: rgba(242, 195, 91, 0.55);
  background: rgba(242, 195, 91, 0.12);
  box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.1);
}

.guide-step.active span {
  border-color: rgba(242, 195, 91, 0.68);
  background: rgba(242, 195, 91, 0.18);
  box-shadow: 0 0 0.8rem rgba(242, 195, 91, 0.15);
}

.guide-step.active span i {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0.24rem 0.5rem rgba(242, 195, 91, 0.32));
}

.stage-transition {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  width: min(31rem, 74%);
  min-height: 13rem;
  transform: translate(-50%, -50%) scale(0.96);
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.12), rgba(5, 8, 9, 0.72)),
    var(--stage-transition-image, none) var(--stage-transition-position, 0%) center / 700% 100% no-repeat,
    rgba(5, 8, 9, 0.78);
  background-blend-mode: normal, screen, normal;
  padding: 6.25rem 1.3rem 1.1rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(0.22rem) saturate(1.08);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.36);
}

.stage-transition::before,
.stage-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-transition::before {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.12) 47%, transparent 54% 100%);
  opacity: 0;
  transform: translateX(-34%);
}

.stage-transition::after {
  background: linear-gradient(180deg, transparent 0 45%, rgba(5, 8, 9, 0.72));
}

.stage-transition > * {
  position: relative;
  z-index: 1;
}

.stage-transition.active {
  animation: stageDirectorIn 2400ms ease-in-out both;
}

.stage-transition.active::before {
  animation: stageDirectorSweep 2400ms ease-in-out both;
}

.stage-transition[data-stage="assassin"] {
  border-color: rgba(255, 96, 116, 0.52);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.42), 0 0 2.2rem rgba(255, 96, 116, 0.16);
}

.stage-transition[data-stage="team"],
.stage-transition[data-stage="quest"] {
  border-color: rgba(77, 200, 211, 0.46);
}

.stage-transition[data-stage="identity"],
.stage-transition[data-stage="vote"],
.stage-transition[data-stage="ended"] {
  border-color: rgba(242, 195, 91, 0.48);
}

.stage-transition span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.stage-transition strong {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.stage-transition[data-stage="team"] strong,
.stage-transition[data-stage="quest"] strong {
  color: var(--teal);
}

.stage-transition[data-stage="assassin"] strong {
  color: var(--evil);
}

.stage-transition small {
  max-width: 24rem;
  color: var(--text);
  line-height: 1.42;
}

.deal-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  width: min(28rem, 72%);
  transform: translate(-50%, -50%) scale(0.92);
  border: 1px solid rgba(242, 195, 91, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 195, 91, 0.24), transparent 46%),
    rgba(5, 8, 9, 0.82);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  filter: blur(0.25rem);
  overflow: hidden;
}

.deal-burst::before,
.deal-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deal-burst::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.38), rgba(5, 8, 9, 0.74)),
    var(--identity-deal-image, none) center / cover no-repeat;
  opacity: 0.72;
  transform: scale(1.08);
}

.deal-burst::after {
  inset: -46%;
  z-index: 0;
  background: conic-gradient(from 120deg, transparent, rgba(242, 195, 91, 0.14), transparent, rgba(77, 200, 211, 0.16), transparent);
  opacity: 0;
}

.deal-burst > * {
  position: relative;
  z-index: 1;
}

.deal-burst.active {
  animation: dealCeremony 3400ms ease-in-out both;
}

.deal-burst.active::before {
  animation: dealCeremonyArt 3400ms ease-in-out both;
}

.deal-burst.active::after {
  animation: dealCeremonyHalo 3400ms ease-in-out both;
}

.deal-card-fan {
  position: relative;
  width: 18rem;
  height: 5.6rem;
}

.deal-card {
  position: absolute;
  left: 50%;
  top: 0.15rem;
  width: 3.15rem;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%) translateY(1.4rem) rotate(0deg) scale(0.64);
  transform-origin: 50% 120%;
  border: 1px solid rgba(245, 232, 190, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.12), rgba(3, 6, 7, 0.44)),
    var(--phone-role-card-image, none) center / cover no-repeat;
  box-shadow: 0 0.55rem 1.1rem rgba(0, 0, 0, 0.36);
  animation: dealCardFan 1300ms cubic-bezier(0.2, 0.86, 0.28, 1.2) both;
  animation-delay: var(--deal-delay, 0ms);
}

.deal-burst strong {
  color: var(--gold);
  font-size: 1.22rem;
  line-height: 1.1;
}

.deal-burst span:not(.deal-card) {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.team-reveal,
.vote-reveal,
.mission-reveal,
.assassin-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  width: min(24rem, 66%);
  transform: translate(-50%, -50%) scale(0.94);
  border: 1px solid rgba(242, 195, 91, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 195, 91, 0.2), transparent 42%),
    rgba(5, 8, 9, 0.86);
  padding: 1.1rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  filter: blur(0.2rem);
  overflow: hidden;
}

.vote-reveal {
  width: min(38rem, 82%);
}

.team-reveal {
  width: min(27rem, 70%);
  border-color: rgba(77, 200, 211, 0.48);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.42), 0 0 2rem rgba(77, 200, 211, 0.14);
}

.assassin-reveal {
  width: min(28rem, 72%);
}

.team-reveal::before,
.team-reveal::after,
.vote-reveal::before,
.vote-reveal::after,
.mission-reveal::before,
.mission-reveal::after,
.assassin-reveal::before,
.assassin-reveal::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.team-reveal::before,
.vote-reveal::before,
.mission-reveal::before,
.assassin-reveal::before {
  inset: -1rem;
  z-index: 0;
  opacity: 0.82;
  transform: scale(1.06);
}

.team-reveal::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.34), rgba(5, 8, 9, 0.76)),
    var(--team-lock-image, none) center / cover no-repeat;
}

.vote-reveal::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.42), rgba(5, 8, 9, 0.72)),
    var(--vote-reveal-bursts-image, none) var(--vote-reveal-burst-position, 0%) center / 200% 100% no-repeat;
}

.mission-reveal::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.42), rgba(5, 8, 9, 0.72)),
    var(--mission-reveal-bursts-image, none) var(--mission-reveal-burst-position, 0%) center / 200% 100% no-repeat;
}

.assassin-reveal::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.36), rgba(5, 8, 9, 0.74)),
    var(--assassin-reveal-bursts-image, none) var(--assassin-reveal-burst-position, 0%) center / 200% 100% no-repeat;
}

.team-reveal::after,
.vote-reveal::after,
.mission-reveal::after,
.assassin-reveal::after {
  inset: -40%;
  z-index: 0;
  background:
    conic-gradient(from 90deg, transparent, rgba(245, 232, 190, 0.12), transparent, rgba(77, 200, 211, 0.12), transparent);
  opacity: 0;
}

.team-reveal > *,
.vote-reveal > *,
.mission-reveal > *,
.assassin-reveal > * {
  position: relative;
  z-index: 1;
}

.team-reveal.active,
.vote-reveal.active,
.mission-reveal.active,
.assassin-reveal.active {
  animation: missionReveal 3400ms ease-in-out both;
}

.team-reveal.active::before,
.vote-reveal.active::before,
.mission-reveal.active::before,
.assassin-reveal.active::before {
  animation: missionRevealArt 3400ms ease-in-out both;
}

.team-reveal.active::after,
.vote-reveal.active::after,
.mission-reveal.active::after,
.assassin-reveal.active::after {
  animation: missionRevealHalo 3400ms ease-in-out both;
}

.team-reveal.active > i::before {
  animation:
    teamLockSprite 2600ms steps(3, end) both,
    teamLockFxPulse 2600ms ease-in-out both;
}

.vote-reveal.active > i::before {
  animation: voteResultFxPulse 2600ms ease-in-out both;
}

.mission-reveal.active > i::before {
  animation: missionResultFxPulse 2800ms ease-in-out both;
}

.assassin-reveal.active > i::before {
  animation: assassinResultFxPulse 3200ms ease-in-out both;
}

.vote-reveal[data-result="approved"],
.mission-reveal[data-result="good"],
.assassin-reveal[data-result="good"] {
  border-color: rgba(62, 227, 159, 0.48);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.42), 0 0 2rem rgba(62, 227, 159, 0.16);
}

.vote-reveal[data-result="rejected"],
.mission-reveal[data-result="evil"],
.assassin-reveal[data-result="evil"] {
  border-color: rgba(255, 96, 116, 0.54);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.42), 0 0 2rem rgba(255, 96, 116, 0.18);
}

.team-reveal > i,
.vote-reveal > i,
.mission-reveal > i,
.assassin-reveal > i {
  display: block;
  width: 6rem;
  aspect-ratio: 1;
  filter: drop-shadow(0 0.85rem 1.35rem rgba(0, 0, 0, 0.44));
  animation: missionTokenPop 1200ms cubic-bezier(0.2, 0.86, 0.28, 1.24) both;
}

.team-reveal > i {
  position: relative;
  border: 1px solid rgba(77, 200, 211, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(77, 200, 211, 0.2), transparent 50%),
    var(--team-lock-image, none) center / cover no-repeat;
  overflow: visible;
}

.team-reveal > i::before {
  content: "";
  position: absolute;
  inset: -32%;
  background: var(--team-lock-fx-image, none) var(--team-lock-fx-position, 0%) center / 400% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.7rem 1.2rem rgba(0, 0, 0, 0.36));
}

.vote-reveal > i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 232, 190, 0.2), transparent 48%),
    var(--vote-reveal-bursts-image, none) var(--vote-reveal-burst-position, 0%) center / 200% 100% no-repeat;
  overflow: visible;
}

.vote-reveal > i::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: var(--vote-result-fx-image, none) var(--vote-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
}

.mission-reveal > i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background: var(--mission-result-tokens-image, none) var(--mission-reveal-token-position, 66.6667%) center / 400% 100% no-repeat;
  overflow: visible;
}

.mission-reveal > i::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: var(--mission-result-fx-image, none) var(--mission-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
}

.mission-card-reveal {
  display: block;
  width: min(18rem, 92%);
  aspect-ratio: 1;
  margin: -0.2rem 0 0.08rem;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.04), rgba(5, 8, 9, 0.56)),
    var(--mission-card-reveal-image, none) 0% center / 400% 100% no-repeat;
  box-shadow:
    0 0.85rem 1.8rem rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(77, 200, 211, 0.08);
  opacity: 0;
  transform: translateY(0.4rem) scale(0.94);
  pointer-events: none;
}

.mission-reveal.active .mission-card-reveal {
  animation:
    missionCardRevealFrames 2500ms steps(3, end) 160ms both,
    missionCardRevealLift 2500ms ease-in-out 160ms both;
}

.mission-submission-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.56rem);
  width: min(21rem, 94%);
  min-height: 5.3rem;
  margin: -3.9rem 0 0.12rem;
  padding: 0 0.3rem;
  pointer-events: none;
}

.mission-submission-card {
  display: block;
  width: clamp(2.4rem, 5.2vw, 3.85rem);
  aspect-ratio: 0.64;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.03), rgba(5, 8, 9, 0.22)),
    var(--mission-submission-cards-image, none) 0% center / 400% 100% no-repeat;
  box-shadow:
    0 0.72rem 1.25rem rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(245, 232, 190, 0.08);
  opacity: 0;
  transform: translateY(0.9rem) rotate(-5deg) scale(0.88);
}

.mission-submission-card:nth-child(2n) {
  transform: translateY(0.9rem) rotate(4deg) scale(0.88);
}

.mission-reveal.active .mission-submission-card {
  animation:
    missionSubmissionCardReveal 1800ms ease-in-out calc(600ms + var(--submission-card-delay, 0ms)) both,
    missionSubmissionCardFlip 1800ms steps(1, end) calc(600ms + var(--submission-card-delay, 0ms)) both;
}

.mission-submission-card[data-card-result="success"] {
  border-color: rgba(62, 227, 159, 0.3);
}

.mission-submission-card[data-card-result="fail"] {
  border-color: rgba(255, 96, 116, 0.36);
}

.assassin-reveal > i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 232, 190, 0.18), transparent 48%),
    var(--assassin-reveal-bursts-image, none) var(--assassin-reveal-burst-position, 0%) center / 200% 100% no-repeat;
  overflow: visible;
}

.assassin-reveal > i::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: var(--assassin-result-fx-image, none) var(--assassin-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
}

.team-reveal span,
.vote-reveal span,
.mission-reveal span,
.assassin-reveal span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.team-reveal strong,
.vote-reveal strong,
.mission-reveal strong,
.assassin-reveal strong {
  color: var(--gold);
  font-size: 2.25rem;
  line-height: 1;
}

.team-reveal strong {
  color: var(--teal);
}

.vote-reveal[data-result="approved"] strong,
.mission-reveal[data-result="good"] strong,
.assassin-reveal[data-result="good"] strong {
  color: var(--good);
}

.vote-reveal[data-result="rejected"] strong,
.mission-reveal[data-result="evil"] strong,
.assassin-reveal[data-result="evil"] strong {
  color: var(--evil);
}

.team-reveal small,
.vote-reveal small,
.mission-reveal small,
.assassin-reveal small {
  color: var(--text);
  line-height: 1.4;
}

.assassin-reveal {
  align-content: end;
  justify-items: start;
  gap: clamp(0.42rem, 0.8vw, 0.7rem);
  width: min(62rem, 94%);
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 2.4vw, 2.2rem);
  border-color: rgba(245, 232, 190, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.9), rgba(3, 6, 7, 0.42) 48%, rgba(3, 6, 7, 0.72)),
    rgba(5, 8, 9, 0.92);
  text-align: left;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58), 0 0 3rem rgba(245, 232, 190, 0.08);
}

.assassin-reveal::before {
  inset: 0;
  opacity: 0.92;
  transform: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.04), rgba(3, 6, 7, 0.18) 42%, rgba(3, 6, 7, 0.78) 100%),
    linear-gradient(90deg, rgba(3, 6, 7, 0.78), transparent 34%, rgba(3, 6, 7, 0.62) 100%),
    var(--table-assassin-result-image, none) var(--table-assassin-result-position, 0%) center / 200% auto no-repeat;
}

.assassin-reveal::after {
  inset: -32%;
  background:
    radial-gradient(circle at 20% 22%, rgba(245, 232, 190, 0.18), transparent 28%),
    conic-gradient(from 90deg, transparent, rgba(245, 232, 190, 0.16), transparent, rgba(77, 200, 211, 0.14), transparent);
  mix-blend-mode: screen;
}

.assassin-reveal.active {
  animation: assassinFinalReveal 4400ms ease-in-out both;
}

.assassin-reveal.active::before {
  animation: assassinFinalRevealArt 4400ms ease-in-out both;
}

.assassin-reveal.active::after {
  animation: assassinFinalRevealHalo 4400ms ease-in-out both;
}

.assassin-reveal > i {
  position: absolute;
  left: clamp(1.2rem, 3.1vw, 2.6rem);
  bottom: clamp(1.45rem, 3vw, 2.5rem);
  width: clamp(6.5rem, 11vw, 9.5rem);
}

.assassin-reveal-copy,
.assassin-reveal-meta,
.assassin-reveal-next {
  margin-left: clamp(8.1rem, 14vw, 12.2rem);
  max-width: min(42rem, calc(100% - clamp(8.1rem, 14vw, 12.2rem)));
}

.assassin-reveal-copy {
  display: grid;
  gap: 0.22rem;
}

.assassin-reveal span {
  color: rgba(245, 232, 190, 0.72);
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  letter-spacing: 0;
}

.assassin-reveal strong {
  font-size: clamp(2.5rem, 6.1vw, 5.35rem);
  line-height: 0.92;
  text-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.52);
}

.assassin-reveal small {
  font-size: clamp(1rem, 1.7vw, 1.42rem);
  font-weight: 850;
}

.assassin-reveal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.assassin-reveal-meta span {
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.52);
  padding: 0.42rem 0.72rem;
  color: var(--text);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
}

.assassin-reveal-next {
  margin-block: 0;
  color: var(--muted);
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 800;
  line-height: 1.4;
}

.assassin-reveal[data-result="good"] {
  border-color: rgba(62, 227, 159, 0.54);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58), 0 0 3rem rgba(62, 227, 159, 0.2);
}

.assassin-reveal[data-result="evil"] {
  border-color: rgba(255, 96, 116, 0.58);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58), 0 0 3rem rgba(255, 96, 116, 0.22);
}

.vote-reveal-ballots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.7rem, 1fr));
  gap: clamp(0.32rem, 0.9vw, 0.54rem);
  align-items: start;
  width: min(33rem, 100%);
  min-height: 6.7rem;
  margin: 0.02rem 0 0.06rem;
  padding: 0.16rem;
  pointer-events: none;
}

.vote-reveal .vote-ballot-card {
  --vote-ballot-card-position: 0%;
  --vote-ballot-delay: 0ms;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 0.11rem;
  padding: 0.18rem 0.16rem 0.36rem;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 232, 190, 0.07), rgba(5, 8, 9, 0.28)),
    radial-gradient(circle at 50% 0%, hsl(var(--vote-ballot-hue, 42) 82% 58% / 0.18), transparent 58%),
    rgba(5, 8, 9, 0.48);
  box-shadow:
    0 0.85rem 1.4rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(0.8rem) rotate(-4deg) scale(0.86);
}

.vote-reveal .vote-ballot-card:nth-child(2n) {
  transform: translateY(0.8rem) rotate(4deg) scale(0.86);
}

.vote-reveal.active .vote-ballot-card {
  animation: voteBallotCardDeal 1900ms cubic-bezier(0.2, 0.86, 0.22, 1) var(--vote-ballot-delay) both;
}

.vote-reveal .vote-ballot-card i {
  position: relative;
  display: block;
  width: clamp(2.8rem, 5vw, 3.72rem);
  aspect-ratio: 0.68;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.02), rgba(5, 8, 9, 0.22)),
    var(--vote-ballot-cards-image, none) var(--vote-ballot-card-position, 0%) center / 400% 100% no-repeat;
  box-shadow:
    0 0.58rem 0.92rem rgba(0, 0, 0, 0.36),
    0 0 1rem hsl(var(--vote-ballot-hue, 42) 82% 58% / 0.12);
  overflow: hidden;
}

.vote-reveal .vote-ballot-card i::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.02), rgba(5, 8, 9, 0.18)),
    var(--vote-ballot-cards-image, none) 33.3333% center / 400% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}

.vote-reveal.active .vote-ballot-card i::before {
  animation: voteBallotCardScan 980ms ease-out calc(var(--vote-ballot-delay) + 160ms) both;
}

.vote-reveal .vote-ballot-card b,
.vote-reveal .vote-ballot-card em,
.vote-reveal .vote-ballot-card small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-reveal .vote-ballot-card b {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
}

.vote-reveal .vote-ballot-card em {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.vote-reveal .vote-ballot-card small {
  color: rgba(245, 232, 190, 0.72);
  font-size: 0.58rem;
  line-height: 1.1;
}

.vote-reveal .vote-ballot-card.approve {
  border-color: rgba(62, 227, 159, 0.3);
}

.vote-reveal .vote-ballot-card.approve em {
  color: var(--good);
}

.vote-reveal .vote-ballot-card.reject {
  border-color: rgba(255, 96, 116, 0.34);
}

.vote-reveal .vote-ballot-card.reject em {
  color: var(--evil);
}

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

.team-route-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, filter 280ms ease;
}

.team-route-layer::before {
  content: "";
  position: absolute;
  inset: -2%;
  background: var(--team-route-aura-image, none) var(--team-route-aura-position, 0%) center / 400% 100% no-repeat;
  opacity: 0.34;
  filter: saturate(1.15) contrast(1.08);
  mix-blend-mode: screen;
}

.team-route-layer[data-active="true"] {
  opacity: 1;
}

.team-route-layer[data-route-state="selecting"]::before {
  opacity: 0.28;
}

.team-route-layer[data-route-state="locked"]::before,
.team-route-layer[data-route-state="mission"]::before {
  opacity: 0.46;
}

.team-route-layer svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.team-route-path {
  fill: none;
  stroke: rgba(77, 200, 211, 0.78);
  stroke-width: 0.52;
  stroke-linecap: round;
  stroke-dasharray: 2.8 2.1;
  filter: drop-shadow(0 0 0.42rem rgba(77, 200, 211, 0.7));
  animation: teamRouteFlow 2200ms linear infinite;
}

.team-route-path:nth-child(2n) {
  animation-duration: 2600ms;
}

.team-route-layer[data-route-state="locked"] .team-route-path {
  stroke: rgba(242, 195, 91, 0.86);
  filter: drop-shadow(0 0 0.5rem rgba(242, 195, 91, 0.72));
}

.team-route-layer[data-route-state="mission"] .team-route-path {
  stroke: rgba(126, 178, 255, 0.9);
  stroke-width: 0.64;
  filter: drop-shadow(0 0 0.62rem rgba(126, 178, 255, 0.8));
}

.team-route-node {
  position: absolute;
  left: calc(var(--route-x) * 1%);
  top: calc(var(--route-y) * 1%);
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 232, 190, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(248, 242, 228, 0.96) 0 18%, rgba(77, 200, 211, 0.64) 19% 46%, rgba(5, 8, 9, 0.02) 47%);
  box-shadow: 0 0 0.9rem rgba(77, 200, 211, 0.72), inset 0 0 0.5rem rgba(248, 242, 228, 0.42);
  animation: teamRouteNodePulse 1800ms ease-in-out infinite;
}

.team-route-layer[data-route-state="locked"] .team-route-node {
  background:
    radial-gradient(circle, rgba(248, 242, 228, 0.96) 0 18%, rgba(242, 195, 91, 0.72) 19% 46%, rgba(5, 8, 9, 0.02) 47%);
  box-shadow: 0 0 1rem rgba(242, 195, 91, 0.72), inset 0 0 0.5rem rgba(248, 242, 228, 0.42);
}

.team-route-layer[data-route-state="mission"] .team-route-node {
  background:
    radial-gradient(circle, rgba(248, 242, 228, 0.98) 0 17%, rgba(126, 178, 255, 0.78) 18% 48%, rgba(5, 8, 9, 0.02) 49%);
  box-shadow: 0 0 1.1rem rgba(126, 178, 255, 0.78), inset 0 0 0.5rem rgba(248, 242, 228, 0.44);
}

.team-route-count {
  position: absolute;
  left: 50%;
  top: calc(50% + 6.4rem);
  z-index: 2;
  transform: translateX(-50%);
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.74);
  padding: 0.32rem 0.72rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.28);
}

.mission-execution {
  position: absolute;
  left: 50%;
  bottom: 4.2rem;
  z-index: 4;
  display: grid;
  width: min(44rem, 68%);
  min-height: 12.6rem;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(77, 200, 211, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 7, 8, 0.06), rgba(4, 7, 8, 0.86) 62%, rgba(4, 7, 8, 0.96)),
    var(--quest-execution-conductor-image, var(--quest-execution-image, none)) var(--quest-execution-position, 0%) center / 400% 100% no-repeat,
    rgba(6, 9, 10, 0.88);
  box-shadow:
    0 1.4rem 3.4rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(77, 200, 211, 0.12);
  isolation: isolate;
}

.mission-execution::before,
.mission-execution::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mission-execution::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(77, 200, 211, 0.17), transparent 34%),
    linear-gradient(90deg, rgba(3, 6, 7, 0.55), transparent 20% 80%, rgba(3, 6, 7, 0.55));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.mission-execution::after {
  z-index: 1;
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.07) 48%, transparent 54% 100%);
  animation: cardSheen 4200ms ease-in-out infinite;
}

.mission-execution > * {
  position: relative;
  z-index: 2;
}

.mission-execution-copy {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 4.8rem 1.4rem 0;
  text-align: center;
}

.mission-execution-copy span {
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.68);
  padding: 0.26rem 0.72rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.mission-execution-copy strong {
  color: var(--text);
  font-size: clamp(1.42rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  text-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.5);
}

.mission-execution-copy small {
  width: min(33rem, 92%);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.mission-execution-progress {
  width: min(33rem, calc(100% - 3rem));
  height: 0.62rem;
  margin: 0.75rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(77, 200, 211, 0.32);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.72);
}

.mission-execution-progress i {
  display: block;
  width: var(--quest-execution-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(77, 200, 211, 0.74), rgba(242, 195, 91, 0.92)),
    rgba(77, 200, 211, 0.6);
  box-shadow: 0 0 1rem rgba(77, 200, 211, 0.46);
  transition: width 380ms ease;
}

.mission-execution-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(33rem, calc(100% - 3rem));
  margin: 0.72rem auto 0;
}

.mission-execution-steps span {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.66);
  padding: 0.35rem 0.16rem;
}

.mission-execution-steps i {
  width: 1.55rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.28) opacity(0.82) drop-shadow(0 0.24rem 0.42rem rgba(0, 0, 0, 0.42));
}

.mission-execution-steps b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.72);
  font-size: 0.64rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-execution-steps span.active {
  border-color: rgba(242, 195, 91, 0.46);
  background: rgba(242, 195, 91, 0.12);
}

.mission-execution-steps span.active i {
  filter: brightness(1.1) saturate(1.14) drop-shadow(0 0 0.64rem rgba(242, 195, 91, 0.28));
}

.mission-execution-steps span.done {
  border-color: rgba(62, 227, 159, 0.28);
  background: rgba(62, 227, 159, 0.08);
}

.mission-execution-steps span.done b {
  color: var(--good);
}

.mission-execution-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem 1.1rem;
}

.mission-execution-team span {
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.72);
  padding: 0.28rem 0.7rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.mission-execution[data-execution-state="collecting"] {
  border-color: rgba(242, 195, 91, 0.42);
}

.mission-execution[data-conductor-state="action"] {
  border-color: rgba(242, 195, 91, 0.38);
}

.mission-execution[data-execution-state="complete"] {
  border-color: rgba(62, 227, 159, 0.42);
  box-shadow:
    0 1.4rem 3.4rem rgba(0, 0, 0, 0.34),
    0 0 1.8rem rgba(62, 227, 159, 0.12),
    inset 0 0 0 1px rgba(62, 227, 159, 0.13);
}

.seat {
  position: absolute;
  left: calc(var(--seat-x) * 1%);
  top: calc(var(--seat-y) * 1%);
  width: 11.3rem;
  min-height: 5.8rem;
  transform: translate(-50%, -50%) rotate(calc(var(--seat-r) * 1deg));
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 15, 0.7);
  padding: 0.65rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
}

.table-product[data-density="calm"] .seat {
  width: 12.3rem;
}

.table-product[data-density="dense"] .seat {
  width: 9.8rem;
  min-height: 5.2rem;
  padding: 0.55rem;
}

.seat.empty {
  opacity: 0.38;
}

.seat.in-team {
  border-color: rgba(77, 200, 211, 0.78);
  box-shadow:
    0 0.8rem 2rem rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(77, 200, 211, 0.35);
  animation: seatGlow 1700ms ease-in-out infinite;
}

.seat.leader {
  border-color: rgba(242, 195, 91, 0.78);
}

.seat-index {
  position: absolute;
  right: 0.45rem;
  top: 0.35rem;
  color: rgba(248, 242, 228, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
}

.seat-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding-right: 1rem;
  font-weight: 850;
}

.seat-avatar-stack,
.live-avatar-stack {
  display: grid;
  justify-items: center;
  gap: 0.16rem;
  min-width: 0;
}

.avatar,
.mini-avatar {
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    var(--seat-state-tokens-image, none) var(--seat-token-position, 25%) center / 500% 100% no-repeat,
    hsl(var(--hue), 64%, 48%);
  box-shadow:
    inset 0 0 0 1px rgba(248, 242, 228, 0.22),
    0 0.28rem 0.75rem rgba(0, 0, 0, 0.34);
}

.avatar {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(245, 232, 190, 0.45);
}

.seat-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-faction {
  max-width: 4.8rem;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.7);
  padding: 0.09rem 0.34rem 0.11rem;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0.28rem 0.62rem rgba(0, 0, 0, 0.24);
}

.avatar-faction.good {
  border-color: rgba(62, 227, 159, 0.34);
  color: var(--good);
}

.avatar-faction.evil {
  border-color: rgba(255, 96, 116, 0.38);
  color: var(--evil);
}

.seat-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.flag {
  border-radius: 999px;
  padding: 0.2rem 0.44rem;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.flag.good {
  color: var(--good);
}

.flag.evil {
  color: var(--evil);
}

.host-console {
  right: 1rem;
  top: 7.6rem;
  width: 22.5rem;
  position: relative;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.85rem;
  border-color: rgba(242, 195, 91, 0.24);
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.42), rgba(5, 8, 9, 0.74)),
    var(--table-host-broadcast-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    var(--host-cue-panels-image, none) var(--host-cue-panel-position, 0%) center / 700% 100% no-repeat,
    var(--panel);
  background-blend-mode: normal, screen, screen, normal;
  overflow: hidden;
  padding: 0.9rem;
}

.host-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 195, 91, 0.12), transparent 28%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.28;
  transform: translateX(-35%);
  pointer-events: none;
}

.host-console > * {
  position: relative;
  z-index: 1;
}

.host-console[data-cue-stage="team"],
.host-console[data-cue-stage="quest"] {
  border-color: rgba(77, 200, 211, 0.34);
}

.host-console[data-cue-stage="vote"],
.host-console[data-cue-stage="identity"],
.host-console[data-cue-stage="ended"] {
  border-color: rgba(242, 195, 91, 0.36);
}

.host-console[data-cue-stage="assassin"] {
  border-color: rgba(255, 96, 116, 0.4);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.8rem rgba(255, 96, 116, 0.08);
}

.host-console[data-signal="speaking"] {
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.55rem rgba(242, 195, 91, 0.1);
}

.host-console[data-cue-stage="identity"]::before,
.host-console[data-cue-stage="team"]::before,
.host-console[data-cue-stage="vote"]::before,
.host-console[data-cue-stage="quest"]::before,
.host-console[data-cue-stage="assassin"]::before {
  animation: cardSheen 4200ms ease-in-out infinite;
}

.talk-console {
  position: absolute;
  right: 1rem;
  top: 24.6rem;
  z-index: 2;
  width: 22.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.18), rgba(5, 8, 9, 0.76)),
    var(--talk-turn-panels-image, none) var(--talk-panel-position, 0%) center / 400% 100% no-repeat,
    var(--panel);
  background-blend-mode: normal, screen, normal;
  backdrop-filter: blur(16px);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 0.85rem;
}

.talk-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.28;
  transform: translateX(-36%);
  pointer-events: none;
}

.talk-console > * {
  position: relative;
  z-index: 1;
}

.talk-console[data-talk-state="speaking"] {
  border-color: rgba(242, 195, 91, 0.58);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.4rem rgba(242, 195, 91, 0.1);
}

.talk-console[data-talk-state="overtime"] {
  border-color: rgba(255, 96, 116, 0.58);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.4rem rgba(255, 96, 116, 0.13);
}

.talk-console[data-talk-state="speaking"]::before,
.talk-console[data-talk-state="overtime"]::before {
  animation: cardSheen 2600ms ease-in-out infinite;
}

.talk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.talk-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.talk-head strong {
  color: var(--gold);
  font-size: 1.7rem;
}

.talk-console p {
  margin: 0.3rem 0 0.7rem;
  line-height: 1.35;
}

.talk-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.talk-queue span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: hsl(var(--hue), 55%, 34%);
  color: #fff9e9;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.55;
}

.talk-queue span.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(242, 195, 91, 0.15);
  opacity: 1;
}

.talk-queue span.done {
  opacity: 0.28;
}

.talk-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.talk-actions button {
  min-height: 2.35rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.82rem;
}

.host-portrait {
  position: relative;
  width: 5.2rem;
  height: 7.3rem;
  border: 1px solid rgba(77, 200, 211, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(77, 200, 211, 0.1);
}

.host-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.04), rgba(3, 6, 7, 0.2)),
    var(--host-expression-image, none) var(--host-expression-position, 0%) center / 400% 100% no-repeat;
  filter: saturate(1.05) contrast(1.04);
}

.host-portrait::after {
  content: "";
  position: absolute;
  inset: 0.15rem;
  z-index: 3;
  background:
    var(--director-frame-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    var(--host-signal-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat;
  background-blend-mode: screen, screen;
  mix-blend-mode: screen;
  opacity: 0.68;
  pointer-events: none;
  animation: signalBreathe 2400ms ease-in-out infinite;
}

.host-portrait[data-signal="speaking"]::after {
  opacity: 0.84;
  animation-duration: 980ms;
}

.host-portrait[data-signal="alert"]::after {
  opacity: 0.92;
  animation-duration: 720ms;
}

.host-portrait img,
.director-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-portrait img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
}

.director-video img {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  filter: saturate(1.08) contrast(1.04);
}

.host-copy span,
.host-copy p {
  color: var(--muted);
}

.host-copy span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.host-copy strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.08rem;
  line-height: 1.32;
}

.host-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}

.host-broadcast-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: 0.48rem;
}

.host-broadcast-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.62);
  padding: 0.22rem 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 920;
  line-height: 1;
}

.host-broadcast-strip span[data-tone="live"] {
  border-color: rgba(62, 227, 159, 0.34);
  color: var(--good);
}

.host-broadcast-strip span[data-tone="alert"] {
  border-color: rgba(255, 96, 116, 0.36);
  color: var(--evil);
}

.host-speech-card {
  position: relative;
  display: grid;
  gap: 0.22rem;
  margin-top: 0.58rem;
  border: 1px solid rgba(77, 200, 211, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.86), rgba(5, 8, 9, 0.62)),
    var(--host-caption-waveforms-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: 0.5rem 0.62rem 0.62rem;
}

.host-speech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.28;
  pointer-events: none;
  animation: cardSheen 5600ms ease-in-out infinite;
}

.host-speech-card span,
.host-speech-card p,
.host-speech-card i {
  position: relative;
  z-index: 1;
}

.host-speech-card span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.host-speech-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.38;
}

.host-speech-card i {
  display: block;
  width: min(12rem, 100%);
  height: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(77, 200, 211, 0.7), rgba(242, 195, 91, 0.72), transparent);
  opacity: 0.52;
  transform-origin: left center;
}

.host-speech-card[data-signal="speaking"] i,
.host-speech-card[data-signal="alert"] i {
  animation: waveformTalk 900ms ease-in-out infinite;
}

.host-speech-card[data-signal="alert"] {
  border-color: rgba(255, 96, 116, 0.4);
}

.host-brief {
  margin-top: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.45);
  padding: 0.5rem 0.6rem;
}

.host-brief span {
  color: var(--gold);
  font-size: 0.7rem;
}

.host-brief p {
  margin-top: 0.2rem;
}

.host-checklist {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.host-checklist span {
  display: grid;
  place-items: center;
  gap: 0.18rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.28rem 0.12rem;
  color: var(--muted);
  text-align: center;
}

.host-checklist i {
  display: block;
  width: 1.58rem;
  aspect-ratio: 1;
  background: var(--host-stage-emblems-image, none) var(--stage-emblem-position, 0%) center / 700% 100% no-repeat;
  filter: grayscale(0.55) opacity(0.72) drop-shadow(0 0.22rem 0.38rem rgba(0, 0, 0, 0.36));
}

.host-checklist b {
  width: 100%;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-checklist span.done {
  border-color: rgba(62, 227, 159, 0.42);
  color: var(--good);
}

.host-checklist span.done i {
  filter: saturate(1.08) drop-shadow(0 0.22rem 0.42rem rgba(62, 227, 159, 0.18));
}

.host-checklist span.active {
  border-color: rgba(242, 195, 91, 0.58);
  background: rgba(242, 195, 91, 0.1);
  color: var(--gold);
}

.host-checklist span.active i {
  filter: saturate(1.18) drop-shadow(0 0.28rem 0.58rem rgba(242, 195, 91, 0.28));
}

.briefing-panel {
  margin-top: 0.72rem;
  border: 1px solid rgba(77, 200, 211, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 200, 211, 0.16), transparent 38%),
    rgba(8, 11, 12, 0.58);
  padding: 0.62rem 0.7rem;
}

.briefing-visual {
  position: relative;
  min-height: 6.4rem;
  margin-bottom: 0.62rem;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.04), rgba(5, 8, 9, 0.54)),
    var(--briefing-lesson-panels-image, none) var(--briefing-lesson-position, 0%) center / 500% 100% no-repeat,
    rgba(5, 8, 9, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.briefing-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(77, 200, 211, 0.18), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(3, 6, 7, 0.78));
  pointer-events: none;
}

.briefing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.briefing-head span {
  color: var(--gold);
  font-size: 0.7rem;
}

.briefing-head strong {
  margin: 0;
  color: var(--aqua);
  font-size: 0.82rem;
}

.briefing-panel h3 {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.briefing-panel p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.38;
}

.briefing-dots {
  display: flex;
  gap: 0.32rem;
  margin-top: 0.55rem;
}

.briefing-dots span {
  width: 100%;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(245, 232, 190, 0.14);
}

.briefing-dots span.done {
  background: rgba(62, 227, 159, 0.5);
}

.briefing-dots span.active {
  background: linear-gradient(90deg, var(--gold), var(--aqua));
  box-shadow: 0 0 0.75rem rgba(77, 200, 211, 0.2);
}

.mission-strip {
  left: 20rem;
  right: 25rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.65rem;
}

.mission-strip > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.54);
  padding: 0.62rem 0.75rem;
}

.mission-strip strong {
  display: block;
  overflow: hidden;
  margin-top: 0.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-panel {
  right: 1rem;
  bottom: 1rem;
  width: 22.5rem;
  max-height: 19rem;
  padding: 0.85rem;
}

.recap-panel {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 17rem;
  max-height: 22rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28);
  padding: 0.85rem;
  overflow: auto;
}

.recap-director {
  position: absolute;
  left: 50%;
  bottom: 7.1rem;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(11rem, 0.85fr) minmax(0, 1fr);
  gap: clamp(0.72rem, 1vw, 1rem);
  align-items: stretch;
  width: min(39rem, 72%);
  min-height: 12.8rem;
  transform: translateX(-50%);
  border: 1px solid rgba(77, 200, 211, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 200, 211, 0.18), transparent 36%),
    linear-gradient(110deg, rgba(5, 8, 9, 0.88), rgba(5, 8, 9, 0.68)),
    rgba(5, 8, 9, 0.9);
  box-shadow: 0 1.15rem 3.4rem rgba(0, 0, 0, 0.42), 0 0 1.8rem rgba(77, 200, 211, 0.1);
  padding: clamp(0.72rem, 1.2vw, 1rem);
  opacity: 1;
  overflow: hidden;
}

.recap-director.hidden {
  display: none;
}

.recap-director::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(245, 232, 190, 0.09), transparent);
  opacity: 0.62;
  pointer-events: none;
  animation: recapDirectorSweep 4600ms ease-in-out infinite;
}

.recap-director > * {
  position: relative;
  z-index: 1;
}

.recap-director-visual {
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.03), rgba(5, 8, 9, 0.48)),
    var(--recap-director-image, none) var(--recap-director-position, 0% 0%) / 200% 200% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0.8rem 1.6rem rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.recap-director-copy {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.recap-director-copy span {
  color: var(--gold);
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 950;
}

.recap-director-copy strong {
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  line-height: 1.05;
}

.recap-director-copy small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  line-height: 1.38;
}

.recap-director-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-self: end;
}

.recap-director-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.5);
  padding: 0.36rem 0.58rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.recap-director-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
  align-self: end;
}

.recap-director-controls button {
  min-width: 0;
  border-color: rgba(245, 232, 190, 0.18);
  background: rgba(3, 6, 7, 0.58);
  padding: 0.42rem 0.5rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
}

.recap-director-controls button.active,
.recap-director-controls[data-mode="auto"] button[data-recap-control="auto"] {
  border-color: rgba(77, 200, 211, 0.42);
  background: linear-gradient(135deg, rgba(77, 200, 211, 0.22), rgba(242, 195, 91, 0.12));
  color: var(--gold);
}

.recap-director-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1.7rem, 1fr));
  gap: 0.32rem;
}

.recap-director-progress i {
  display: block;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(245, 232, 190, 0.16);
}

.recap-director-progress i.done {
  background: rgba(62, 227, 159, 0.44);
}

.recap-director-progress i.active {
  background: linear-gradient(90deg, var(--gold), var(--aqua));
  box-shadow: 0 0 0.72rem rgba(77, 200, 211, 0.25);
}

.recap-panel::before,
.phone-recap-card::before {
  content: "";
  display: block;
  aspect-ratio: 2.75 / 1;
  margin-bottom: 0.72rem;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 58%, rgba(3, 6, 7, 0.56)),
    var(--victory-banners-image, none) var(--victory-banner-position, 0%) center / 200% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.8rem 1.6rem rgba(0, 0, 0, 0.28);
}

.recap-panel[data-winner="good"],
.phone-recap-card[data-winner="good"] {
  border-color: rgba(62, 227, 159, 0.4);
}

.recap-panel[data-winner="evil"],
.phone-recap-card[data-winner="evil"] {
  border-color: rgba(255, 96, 116, 0.46);
}

.recap-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.recap-panel > strong {
  display: block;
  line-height: 1.35;
  color: var(--gold);
}

.recap-timeline,
.phone-recap-timeline {
  position: relative;
  display: grid;
  gap: 0.42rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.34), rgba(5, 8, 9, 0.78)),
    var(--recap-timeline-image, none) center / cover no-repeat;
  padding: 0.55rem;
  overflow: hidden;
}

.phone-recap-timeline {
  margin-top: 0.8rem;
  padding: 0.62rem;
}

.timeline-event {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  border: 1px solid rgba(245, 232, 190, 0.14);
  border-radius: 8px;
  background: rgba(7, 10, 11, 0.72);
  padding: 0.5rem;
  box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.22);
}

.timeline-event.active {
  transform: translateX(0.08rem);
  border-color: rgba(242, 195, 91, 0.58);
  box-shadow: 0 0.55rem 1.24rem rgba(0, 0, 0, 0.28), 0 0 1rem rgba(242, 195, 91, 0.14);
}

.timeline-event > span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 195, 91, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.timeline-event div {
  min-width: 0;
}

.timeline-event em,
.timeline-event strong,
.timeline-event p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-event em {
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.timeline-event strong {
  margin-top: 0.08rem;
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.2;
}

.timeline-event p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.timeline-event.teal > span,
.timeline-event.teal {
  border-color: rgba(77, 200, 211, 0.34);
}

.timeline-event.teal strong {
  color: var(--teal);
}

.timeline-event.good > span,
.timeline-event.good {
  border-color: rgba(62, 227, 159, 0.34);
}

.timeline-event.good strong {
  color: var(--good);
}

.timeline-event.evil > span,
.timeline-event.evil {
  border-color: rgba(255, 96, 116, 0.4);
}

.timeline-event.evil strong {
  color: var(--evil);
}

.recap-quests,
.recap-prompts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.recap-reveals {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.8rem;
}

.reveal-row,
.phone-reveal-item {
  display: grid;
  grid-template-columns: 4.45rem minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.62);
  padding: 0.48rem 0.58rem;
}

.reveal-badge {
  display: grid;
  justify-items: center;
  gap: 0.14rem;
  min-width: 0;
}

.reveal-emblem {
  position: relative;
  display: block;
  width: 3rem;
  aspect-ratio: 0.74;
  border: 1px solid rgba(245, 232, 190, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 48%, rgba(5, 8, 9, 0.62)),
    radial-gradient(circle at 50% 32%, hsla(var(--hue), 74%, 56%, 0.18), transparent 72%),
    var(--role-portraits-image, none) var(--role-portrait-position, 50%) 18% / 700% auto no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0.32rem 0.9rem rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.reveal-emblem::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  bottom: 0.18rem;
  z-index: 1;
  width: 1.22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background:
    rgba(5, 8, 9, 0.52)
    var(--faction-badges-image, none) var(--faction-badge-position, 0%) center / 200% 100% no-repeat;
  box-shadow: 0 0.28rem 0.62rem rgba(0, 0, 0, 0.34);
}

.reveal-emblem::after {
  content: "";
  position: absolute;
  right: 0.18rem;
  bottom: 0.18rem;
  width: 1.22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background:
    rgba(5, 8, 9, 0.52)
    var(--role-emblems-image, none) var(--role-emblem-position, 50%) center / 700% 100% no-repeat;
  box-shadow: 0 0.28rem 0.62rem rgba(0, 0, 0, 0.34);
}

.reveal-badge em {
  max-width: 100%;
  overflow: hidden;
  color: rgba(245, 232, 190, 0.62);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-badge b {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-row.good .reveal-badge b,
.phone-reveal-item.good .reveal-badge b {
  color: var(--good);
}

.reveal-row.evil .reveal-badge b,
.phone-reveal-item.evil .reveal-badge b {
  color: var(--evil);
}

.reveal-copy {
  display: grid;
  min-width: 0;
  gap: 0.14rem;
}

.reveal-copy strong,
.reveal-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-copy strong {
  font-size: 0.82rem;
}

.reveal-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.recap-quests > div,
.recap-prompts > p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.52);
  padding: 0.55rem;
}

.recap-quests span,
.recap-quests small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.recap-quests strong {
  display: block;
}

.recap-quests .good strong {
  color: var(--good);
}

.recap-quests .evil strong {
  color: var(--evil);
}

.log-panel h2,
.phone-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.log-list {
  display: grid;
  gap: 0.5rem;
  max-height: 14.5rem;
  overflow: auto;
}

.log-item {
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.62rem;
}

.log-time {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.settings-panel {
  right: 1rem;
  top: 5.4rem;
  z-index: 8;
  width: 24rem;
  max-height: calc(100vh - 6.4rem);
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem;
  overflow: auto;
  transform: translateX(calc(100% + 1.5rem));
  transition: transform 180ms ease;
}

.settings-panel.open {
  transform: translateX(0);
}

.settings-panel h2 {
  margin: 0;
  font-size: 1.18rem;
}

.setting-group {
  display: grid;
  gap: 0.5rem;
}

.layout-preview {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(242, 195, 91, 0.22);
  border-radius: 8px;
  background: rgba(6, 8, 9, 0.5);
  padding: 0.65rem;
}

.layout-preview-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.68), transparent 28%, transparent 72%, rgba(3, 6, 7, 0.68)),
    var(--preview-surface-image, url("/public/assets/tabletop-command-surface-v1.png")) center / cover;
}

.layout-preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0 38%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

.preview-safe {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(245, 232, 190, 0.28);
  border-radius: 6px;
  background: rgba(5, 8, 9, 0.45);
  color: rgba(248, 242, 228, 0.72);
  font-size: 0.62rem;
  font-weight: 850;
}

.preview-safe.top {
  left: 29%;
  right: 29%;
  top: 9%;
  height: 13%;
}

.preview-safe.left {
  left: 4%;
  top: 27%;
  width: 18%;
  height: 28%;
}

.preview-safe.right {
  right: 4%;
  top: 27%;
  width: 18%;
  height: 28%;
}

.preview-table-core {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 2;
  width: 40%;
  height: 28%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 195, 91, 0.42);
  border-radius: 999px;
  background: rgba(242, 195, 91, 0.14);
  box-shadow: 0 0 1rem rgba(242, 195, 91, 0.12);
}

.preview-table-core[data-layout-shape="long"] {
  width: 55%;
  height: 18%;
  border-radius: 12px;
}

.preview-table-core[data-layout-shape="lounge"] {
  width: 34%;
  height: 36%;
  border-radius: 38% 62% 42% 58%;
}

.layout-preview-seats i,
.layout-choice-map i {
  position: absolute;
  left: calc(var(--px) * 1%);
  top: calc(var(--py) * 1%);
  display: block;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.layout-preview-seats i {
  z-index: 3;
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid rgba(248, 242, 228, 0.65);
  background: rgba(248, 242, 228, 0.26);
}

.layout-preview-seats i.filled {
  border-color: rgba(62, 227, 159, 0.8);
  background: var(--good);
  box-shadow: 0 0 0 0.18rem rgba(62, 227, 159, 0.14);
}

.layout-preview-copy {
  display: grid;
  gap: 0.18rem;
}

.layout-preview-copy strong {
  color: var(--text);
}

.layout-preview-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.layout-card-grid,
.surface-card-grid {
  display: grid;
  gap: 0.5rem;
}

.layout-choice,
.surface-choice {
  width: 100%;
  min-height: auto;
  display: grid;
  grid-template-columns: 5.1rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  text-align: left;
}

.layout-choice strong,
.layout-choice small,
.surface-choice strong,
.surface-choice small {
  display: block;
}

.layout-choice small,
.surface-choice small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.layout-choice.active,
.surface-choice.active {
  border-color: rgba(242, 195, 91, 0.68);
  background: rgba(242, 195, 91, 0.12);
}

.layout-choice-map {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 8, 9, 0.62);
}

.layout-choice-map::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  top: 34%;
  bottom: 28%;
  border: 1px solid rgba(242, 195, 91, 0.32);
  border-radius: 999px;
  background: rgba(242, 195, 91, 0.1);
}

.layout-choice-map i {
  width: 0.28rem;
  height: 0.28rem;
  background: rgba(248, 242, 228, 0.72);
}

.surface-swatch {
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.7), transparent 50%, rgba(3, 6, 7, 0.48)),
    var(--surface-preview) center / cover;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.segmented.two {
  grid-template-columns: 1fr 1fr;
}

.segmented button {
  min-height: 2.35rem;
  padding: 0.4rem 0.35rem;
  color: var(--muted);
}

.segmented button.active {
  border-color: rgba(242, 195, 91, 0.68);
  background: rgba(242, 195, 91, 0.14);
  color: var(--gold);
}

.settings-link {
  display: block;
  border: 1px solid rgba(242, 195, 91, 0.38);
  border-radius: 8px;
  background: rgba(242, 195, 91, 0.1);
  color: var(--gold);
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.phone-screen {
  min-width: 0;
  overflow: auto;
}

.asset-screen {
  min-width: 0;
  overflow: auto;
}

.asset-shell {
  width: min(100%, 76rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem;
}

.asset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.asset-header h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.asset-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.asset-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 18, 0.76);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  font-weight: 850;
}

.asset-nav a:hover {
  border-color: var(--line-strong);
}

.asset-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.asset-stats > div,
.asset-tile,
.slot-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.22);
}

.asset-stats > div {
  padding: 0.8rem;
}

.asset-stats span,
.asset-copy span,
.slot-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.asset-stats strong {
  display: block;
  margin-top: 0.24rem;
  color: var(--gold);
  font-size: 1.8rem;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.asset-tile {
  position: relative;
  overflow: hidden;
}

.asset-tile::after {
  content: attr(data-status);
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.72);
  color: var(--muted);
  padding: 0.18rem 0.42rem;
  font-size: 0.64rem;
  font-weight: 900;
}

.asset-tile[data-status="ready"]::after {
  border-color: rgba(62, 227, 159, 0.42);
  color: var(--good);
}

.asset-tile[data-status="missing"]::after {
  border-color: rgba(255, 96, 116, 0.46);
  color: var(--evil);
}

.asset-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  background: rgba(3, 6, 7, 0.56);
  overflow: hidden;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-copy,
.slot-tile {
  padding: 0.78rem;
}

.asset-copy h2,
.slot-tile h2 {
  margin: 0.28rem 0 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.asset-copy p,
.slot-tile p {
  margin: 0.42rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.62rem;
}

.asset-tags span,
.slot-tile strong {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  padding: 0.22rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 850;
}

.slot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.slot-tile strong {
  display: inline-block;
  margin-top: 0.55rem;
}

.phone-shell {
  width: min(100%, 31rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.phone-header h1 {
  font-size: 2rem;
}

.phone-status {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.phone-status span,
.phone-status em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 850;
}

.phone-status strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.director-card {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  background:
    linear-gradient(140deg, rgba(77, 200, 211, 0.16), rgba(242, 195, 91, 0.08)),
    rgba(13, 17, 18, 0.78);
}

body[data-scene="assassin"] .director-card {
  border-color: rgba(255, 96, 116, 0.42);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.64), rgba(3, 6, 7, 0.78)),
    var(--assassin-stage-image, none) center / cover no-repeat;
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.8rem rgba(255, 96, 116, 0.08);
}

body[data-scene="briefing"] .director-card {
  border-color: rgba(77, 200, 211, 0.42);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.62), rgba(3, 6, 7, 0.74)),
    var(--briefing-stage-image, none) center / cover no-repeat;
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.8rem rgba(77, 200, 211, 0.08);
}

body[data-scene="lobby"] .director-card {
  border-color: rgba(242, 195, 91, 0.4);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.66), rgba(3, 6, 7, 0.76)),
    var(--lobby-stage-image, none) 58% center / cover no-repeat;
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.8rem rgba(242, 195, 91, 0.08);
}

.presence-card {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  margin-bottom: 0.8rem;
  padding: 0.75rem;
  border-color: rgba(77, 200, 211, 0.24);
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.54), rgba(4, 7, 8, 0.83) 58%, rgba(4, 7, 8, 0.92)),
    var(--phone-seat-handoff-image, none) var(--phone-seat-handoff-position, 0%) center / 300% 100% no-repeat,
    rgba(13, 17, 18, 0.78);
  background-blend-mode: normal, screen, normal;
  overflow: hidden;
}

.presence-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(77, 200, 211, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%);
  opacity: 0.72;
  pointer-events: none;
}

.presence-card[data-handoff-state="briefing"] {
  border-color: rgba(242, 195, 91, 0.34);
}

.presence-card[data-handoff-state="vault"] {
  border-color: rgba(77, 200, 211, 0.4);
}

.presence-card > * {
  position: relative;
  z-index: 1;
}

.presence-frame {
  position: relative;
  min-height: 10.4rem;
  border-radius: 8px;
  overflow: hidden;
  background:
    var(--phone-video-hud-image, none) var(--presence-frame-position, 0%) center / 400% 100% no-repeat,
    var(--player-presence-frames-image, none) var(--presence-frame-position, 0%) center / 400% 100% no-repeat,
    rgba(3, 6, 7, 0.86);
  background-blend-mode: screen, normal, normal;
  box-shadow:
    inset 0 0 0 1px rgba(245, 232, 190, 0.16),
    0 0.72rem 1.5rem rgba(0, 0, 0, 0.32);
}

.presence-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.035) 8px 9px),
    linear-gradient(180deg, transparent 58%, rgba(3, 6, 7, 0.74));
  pointer-events: none;
}

.presence-frame video,
.presence-avatar {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 19%;
  bottom: 17%;
  z-index: 1;
  border-radius: 8px;
}

.presence-frame video {
  width: 64%;
  height: 64%;
  object-fit: cover;
  opacity: 0;
  transform: scaleX(-1);
}

.presence-frame[data-camera="on"] video {
  opacity: 1;
}

.presence-avatar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(77, 200, 211, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(13, 17, 18, 0.38), rgba(3, 6, 7, 0.86));
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 950;
  text-shadow: 0 0.8rem 1.4rem rgba(0, 0, 0, 0.5);
}

.presence-frame[data-camera="on"] .presence-avatar {
  opacity: 0;
}

.presence-frame[data-state="speaking"] {
  filter: saturate(1.08);
}

.presence-frame[data-state="speaking"]::after {
  animation: signalBreathe 840ms ease-in-out infinite;
}

.presence-frame[data-state="action"] {
  box-shadow:
    inset 0 0 0 1px rgba(77, 200, 211, 0.22),
    0 0.72rem 1.5rem rgba(0, 0, 0, 0.32),
    0 0 1.4rem rgba(77, 200, 211, 0.12);
}

.presence-frame > span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.58rem;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.72);
  padding: 0.22rem 0.45rem;
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.presence-copy span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.presence-copy strong,
.presence-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-copy strong {
  font-size: 1rem;
}

.presence-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.38;
}

.presence-copy button {
  justify-self: start;
  min-height: 2.25rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 850;
}

.identity-ceremony-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.5rem;
  padding-top: 11.9rem;
  border-color: rgba(77, 200, 211, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 200, 211, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.14), rgba(5, 8, 9, 0.82) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.identity-ceremony-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.6rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.88) 100%),
    var(--phone-identity-ceremony-image, none) var(--identity-ceremony-position, 0%) top / 400% auto no-repeat;
}

.identity-ceremony-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(77, 200, 211, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), transparent 18% 82%, rgba(3, 6, 7, 0.38)),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, 0.035) 9px 10px);
  pointer-events: none;
}

.identity-ceremony-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.identity-ceremony-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.identity-ceremony-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.identity-ceremony-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.identity-ceremony-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.identity-ceremony-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.identity-ceremony-card[data-identity-state="deal"],
.identity-ceremony-card[data-identity-state="unlock"] {
  border-color: rgba(242, 195, 91, 0.36);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.15rem rgba(242, 195, 91, 0.1);
}

.identity-ceremony-card[data-identity-state="settled"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.identity-ceremony-card.ceremony-revealing {
  animation: identityCeremonyCardPulse 3400ms ease-in-out both;
}

.identity-ceremony-card.ceremony-revealing .identity-ceremony-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.team-directive-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.5rem;
  padding-top: 11.9rem;
  border-color: rgba(77, 200, 211, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 200, 211, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.82) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.team-directive-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.6rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.88) 100%),
    var(--phone-team-directive-image, none) var(--team-directive-position, 0%) top / 400% auto no-repeat;
}

.team-directive-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(77, 200, 211, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), transparent 18% 82%, rgba(3, 6, 7, 0.38)),
    radial-gradient(circle at 50% 24%, rgba(77, 200, 211, 0.18), transparent 32%);
  pointer-events: none;
}

.team-directive-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.team-directive-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.team-directive-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.team-directive-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.team-directive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.team-directive-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.team-directive-card[data-directive-state="speak"],
.team-directive-card[data-directive-state="leader"] {
  border-color: rgba(242, 195, 91, 0.38);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.15rem rgba(242, 195, 91, 0.1);
}

.team-directive-card[data-directive-state="locked"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.team-directive-card[data-directive-state="speak"] .team-directive-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.vote-handoff-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.5rem;
  padding-top: 11.9rem;
  border-color: rgba(242, 195, 91, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 195, 91, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.82) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.vote-handoff-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.6rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.88) 100%),
    var(--phone-vote-handoff-image, none) var(--vote-handoff-position, 0%) top / 400% auto no-repeat;
}

.vote-handoff-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(242, 195, 91, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), transparent 18% 82%, rgba(3, 6, 7, 0.38)),
    radial-gradient(circle at 50% 24%, rgba(242, 195, 91, 0.16), transparent 32%);
  pointer-events: none;
}

.vote-handoff-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.vote-handoff-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.vote-handoff-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.vote-handoff-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.vote-handoff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.vote-handoff-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.vote-handoff-card[data-vote-state="choice"],
.vote-handoff-card[data-vote-state="result"] {
  border-color: rgba(242, 195, 91, 0.4);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.15rem rgba(242, 195, 91, 0.1);
}

.vote-handoff-card[data-vote-state="waiting"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.vote-handoff-card[data-vote-state="choice"] .vote-handoff-visual::after,
.vote-handoff-card[data-vote-state="result"] .vote-handoff-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.quest-handoff-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.5rem;
  padding-top: 11.9rem;
  border-color: rgba(77, 200, 211, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 200, 211, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.82) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.quest-handoff-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.6rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.88) 100%),
    var(--phone-quest-handoff-image, none) var(--quest-handoff-position, 0%) top / 400% auto no-repeat;
}

.quest-handoff-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(77, 200, 211, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), transparent 18% 82%, rgba(3, 6, 7, 0.38)),
    radial-gradient(circle at 50% 24%, rgba(77, 200, 211, 0.17), transparent 32%);
  pointer-events: none;
}

.quest-handoff-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.quest-handoff-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.quest-handoff-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.quest-handoff-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.quest-handoff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.quest-handoff-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.quest-handoff-card[data-quest-state="action"] {
  border-color: rgba(242, 195, 91, 0.4);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.15rem rgba(242, 195, 91, 0.1);
}

.quest-handoff-card[data-quest-state="waiting"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.quest-handoff-card[data-quest-state="result"] {
  border-color: rgba(62, 227, 159, 0.36);
}

.quest-handoff-card[data-quest-state="action"] .quest-handoff-visual::after,
.quest-handoff-card[data-quest-state="result"] .quest-handoff-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.assassin-directive-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.5rem;
  padding-top: 11.9rem;
  border-color: rgba(255, 96, 116, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 96, 116, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.82) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.assassin-directive-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.6rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.88) 100%),
    var(--phone-assassin-directive-image, none) var(--assassin-directive-position, 0%) top / 400% auto no-repeat;
}

.assassin-directive-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 96, 116, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), transparent 18% 82%, rgba(3, 6, 7, 0.38)),
    radial-gradient(circle at 50% 24%, rgba(255, 96, 116, 0.16), transparent 32%);
  pointer-events: none;
}

.assassin-directive-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.assassin-directive-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.assassin-directive-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.assassin-directive-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.assassin-directive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.assassin-directive-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.assassin-directive-card[data-assassin-state="assassin"],
.assassin-directive-card[data-assassin-state="target"] {
  border-color: rgba(255, 96, 116, 0.48);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.25rem rgba(255, 96, 116, 0.12);
}

.assassin-directive-card[data-assassin-state="result"] {
  border-color: rgba(242, 195, 91, 0.42);
}

.assassin-directive-card[data-assassin-state="assassin"] .assassin-directive-visual::after,
.assassin-directive-card[data-assassin-state="target"] .assassin-directive-visual::after,
.assassin-directive-card[data-assassin-state="result"] .assassin-directive-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.director-video {
  position: relative;
  min-height: 8.8rem;
  border: 1px solid rgba(77, 200, 211, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.04), rgba(3, 6, 7, 0.18)),
    var(--phone-video-hud-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    var(--host-expression-image, none) var(--host-expression-position, 0%) center / 400% 100% no-repeat,
    var(--phone-host-broadcast-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    rgba(3, 6, 7, 0.85);
  background-blend-mode: normal, screen, screen, normal, normal;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.director-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    var(--director-frame-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    var(--host-signal-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat,
    radial-gradient(circle at 50% 22%, rgba(77, 200, 211, 0.24), transparent 36%),
    linear-gradient(180deg, transparent 0 54%, rgba(3, 6, 7, 0.82) 100%);
  background-blend-mode: screen, screen, normal, normal;
  mix-blend-mode: screen;
  opacity: 0.82;
  pointer-events: none;
  animation: signalBreathe 2200ms ease-in-out infinite;
}

.director-card[data-signal="speaking"] .director-video::before {
  opacity: 0.94;
  animation-duration: 860ms;
}

.director-card[data-signal="alert"] .director-video::before {
  opacity: 1;
  animation-duration: 640ms;
}

.director-video::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 3.4rem;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 7, 0.86));
  pointer-events: none;
}

.live-dot {
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  z-index: 3;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 0.25rem rgba(62, 227, 159, 0.18);
}

.video-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.04) 8px 9px);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.video-lower-third {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 4;
  display: grid;
  gap: 0.12rem;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 6px;
  background: rgba(5, 8, 9, 0.74);
  padding: 0.35rem 0.4rem;
}

.video-lower-third span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
}

.video-lower-third strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-caption {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 3.28rem;
  z-index: 4;
  min-height: 2.45rem;
  border: 1px solid rgba(77, 200, 211, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.9), rgba(5, 8, 9, 0.58)),
    var(--host-caption-waveforms-image, none) var(--host-signal-position, 0%) center / 400% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: 0.42rem 0.48rem 0.5rem;
}

.video-caption span {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-caption i {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.18rem;
  z-index: 1;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(77, 200, 211, 0.68), rgba(242, 195, 91, 0.74), transparent);
  opacity: 0.52;
  transform-origin: left center;
}

.video-caption[data-signal="speaking"] i,
.video-caption[data-signal="alert"] i {
  animation: waveformTalk 820ms ease-in-out infinite;
}

.video-caption[data-signal="alert"] {
  border-color: rgba(255, 96, 116, 0.42);
}

.director-card[data-video="speaking"] .director-video {
  border-color: rgba(242, 195, 91, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(242, 195, 91, 0.22),
    0 0 1.6rem rgba(242, 195, 91, 0.14);
  animation: directorSpeakingGlow 1600ms ease-in-out infinite;
}

.director-card[data-video="speaking"] .live-dot {
  background: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(242, 195, 91, 0.2);
  animation: livePulse 1100ms ease-in-out infinite;
}

.director-card[data-signal="alert"] .live-dot {
  background: var(--evil);
  box-shadow: 0 0 0 0.25rem rgba(255, 96, 116, 0.2);
  animation: livePulse 720ms ease-in-out infinite;
}

.phone-stage-card {
  padding: 0.62rem;
}

.phone-stage-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.32rem;
}

.phone-stage-strip span {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.54);
  padding: 0.28rem 0.08rem;
  color: var(--muted);
}

.phone-stage-strip i {
  display: block;
  width: 1.82rem;
  aspect-ratio: 1;
  background: var(--host-stage-emblems-image, none) var(--stage-emblem-position, 0%) center / 700% 100% no-repeat;
  filter: grayscale(0.5) opacity(0.7) drop-shadow(0 0.22rem 0.4rem rgba(0, 0, 0, 0.38));
}

.phone-stage-strip b {
  width: 100%;
  overflow: hidden;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-stage-strip span.done {
  border-color: rgba(62, 227, 159, 0.36);
  color: var(--good);
}

.phone-stage-strip span.done i {
  filter: saturate(1.05) drop-shadow(0 0.2rem 0.4rem rgba(62, 227, 159, 0.18));
}

.phone-stage-strip span.active {
  border-color: rgba(242, 195, 91, 0.62);
  background: rgba(242, 195, 91, 0.11);
  color: var(--gold);
}

.phone-stage-strip span.active i {
  filter: saturate(1.2) drop-shadow(0 0.25rem 0.5rem rgba(242, 195, 91, 0.3));
}

.phone-opening-director-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  border-color: rgba(242, 195, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.74)),
    var(--phone-opening-director-image, none) var(--phone-opening-director-position, 0%) center / 300% 100% no-repeat,
    rgba(8, 11, 12, 0.82);
  background-blend-mode: normal, screen, normal;
  padding-top: 7.3rem;
}

.phone-opening-director-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.1) 48%, transparent 54% 100%),
    radial-gradient(circle at 50% 18%, rgba(242, 195, 91, 0.14), transparent 34%);
  opacity: 0.34;
  pointer-events: none;
}

.phone-opening-director-card[data-step="briefing"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.phone-opening-director-card[data-step="ai"] {
  border-color: rgba(242, 195, 91, 0.44);
}

.phone-opening-director-card[data-step="deal"] {
  border-color: rgba(77, 200, 211, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(77, 200, 211, 0.12),
    0 0.85rem 2rem rgba(0, 0, 0, 0.28);
}

.phone-opening-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 8.7rem;
  background: var(--phone-opening-director-image, none) var(--phone-opening-director-position, 0%) center / 300% 100% no-repeat;
  opacity: 0.86;
  pointer-events: none;
}

.phone-opening-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 46%, rgba(8, 11, 12, 0.88));
}

.phone-opening-copy,
.phone-opening-steps {
  position: relative;
  z-index: 1;
}

.phone-opening-copy {
  display: grid;
  gap: 0.28rem;
}

.phone-opening-copy span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.phone-opening-copy strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.phone-opening-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.phone-opening-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.phone-opening-steps span {
  display: grid;
  place-items: center;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.58);
  padding: 0.48rem 0.28rem;
  color: var(--muted);
}

.phone-opening-steps i {
  display: block;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.5) opacity(0.72) drop-shadow(0 0.24rem 0.42rem rgba(0, 0, 0, 0.38));
}

.phone-opening-steps b {
  width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-opening-steps span.done {
  border-color: rgba(62, 227, 159, 0.36);
  color: var(--good);
}

.phone-opening-steps span.done i {
  filter: saturate(1.08) drop-shadow(0 0.24rem 0.42rem rgba(62, 227, 159, 0.2));
}

.phone-opening-steps span.active {
  border-color: rgba(242, 195, 91, 0.66);
  background: rgba(242, 195, 91, 0.12);
  color: var(--gold);
}

.phone-opening-steps span.active i {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0.24rem 0.5rem rgba(242, 195, 91, 0.34));
}

.phone-opening-follow-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-height: 17.7rem;
  padding-top: 11.95rem;
  border-color: rgba(77, 200, 211, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 200, 211, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.08), rgba(5, 8, 9, 0.84) 64%, rgba(5, 8, 9, 0.96)),
    rgba(13, 17, 18, 0.82);
  overflow: hidden;
}

.phone-opening-follow-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 12.75rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 8, 9, 0.9) 100%),
    var(--phone-opening-follow-image, none) var(--phone-opening-follow-position, 0%) top / 400% auto no-repeat;
}

.phone-opening-follow-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(77, 200, 211, 0.2);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.42), transparent 18% 82%, rgba(3, 6, 7, 0.42)),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, 0.032) 9px 10px);
  pointer-events: none;
}

.phone-opening-follow-copy,
.phone-opening-follow-steps {
  position: relative;
  z-index: 1;
}

.phone-opening-follow-copy {
  display: grid;
  gap: 0.32rem;
}

.phone-opening-follow-copy > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.phone-opening-follow-copy strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.12;
}

.phone-opening-follow-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.phone-opening-follow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.phone-opening-follow-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.64);
  padding: 0.24rem 0.52rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
}

.phone-opening-follow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.phone-opening-follow-steps span {
  display: grid;
  place-items: center;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.58);
  padding: 0.48rem 0.2rem;
  color: var(--muted);
}

.phone-opening-follow-steps i {
  display: block;
  width: 1.82rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.5) opacity(0.72) drop-shadow(0 0.24rem 0.42rem rgba(0, 0, 0, 0.38));
}

.phone-opening-follow-steps b {
  width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-opening-follow-steps span.done {
  border-color: rgba(62, 227, 159, 0.36);
  color: var(--good);
}

.phone-opening-follow-steps span.done i {
  filter: saturate(1.08) drop-shadow(0 0.24rem 0.42rem rgba(62, 227, 159, 0.2));
}

.phone-opening-follow-steps span.active {
  border-color: rgba(242, 195, 91, 0.66);
  background: rgba(242, 195, 91, 0.12);
  color: var(--gold);
}

.phone-opening-follow-steps span.active i {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0.24rem 0.5rem rgba(242, 195, 91, 0.34));
}

.phone-opening-follow-card[data-step="ai"],
.phone-opening-follow-card[data-step="deal"] {
  border-color: rgba(242, 195, 91, 0.38);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.15rem rgba(242, 195, 91, 0.1);
}

.phone-opening-follow-card[data-step="deal"] .phone-opening-follow-visual::after {
  animation: signalBreathe 900ms ease-in-out infinite;
}

.phone-next-round-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.4rem, 0.55fr) minmax(0, 1fr);
  gap: 0.72rem;
  border-color: rgba(77, 200, 211, 0.32);
  background:
    linear-gradient(135deg, rgba(77, 200, 211, 0.12), transparent 50%),
    rgba(8, 12, 13, 0.86);
  overflow: hidden;
}

.phone-next-round-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(245, 232, 190, 0.08), transparent);
  opacity: 0.46;
  pointer-events: none;
  animation: recapDirectorSweep 5200ms ease-in-out infinite;
}

.phone-next-round-card > * {
  position: relative;
  z-index: 1;
}

.phone-next-round-visual {
  min-width: 0;
  aspect-ratio: 0.68 / 1;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 52%, rgba(3, 6, 7, 0.58)),
    var(--next-round-handoff-image, none) var(--next-round-handoff-position, 0%) center / 400% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.7rem 1.4rem rgba(0, 0, 0, 0.24);
}

.phone-next-round-copy {
  display: grid;
  align-content: center;
  gap: 0.34rem;
  min-width: 0;
}

.phone-next-round-copy > span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.phone-next-round-copy strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.16;
}

.phone-next-round-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.42;
}

.phone-next-round-meta,
.phone-next-round-steps {
  grid-column: 1 / -1;
}

.phone-next-round-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.phone-next-round-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.54);
  padding: 0.28rem 0.48rem;
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 850;
}

.phone-next-round-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.36rem;
}

.phone-next-round-steps span {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: 8px;
  background: rgba(3, 6, 7, 0.5);
  padding: 0.38rem 0.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.phone-next-round-steps i {
  display: block;
  width: 1.55rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
}

.phone-next-round-steps span.active {
  border-color: rgba(77, 200, 211, 0.38);
  color: var(--text);
}

.phone-next-round-steps span.done {
  color: var(--good);
}

.phone-guide-card {
  display: grid;
  gap: 0.55rem;
  border-color: rgba(242, 195, 91, 0.26);
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 200, 211, 0.12), transparent 34%),
    rgba(13, 17, 18, 0.78);
}

body[data-scene="assassin"] .phone-guide-card {
  border-color: rgba(255, 96, 116, 0.38);
  background:
    linear-gradient(120deg, rgba(255, 96, 116, 0.12), rgba(13, 17, 18, 0.78)),
    rgba(13, 17, 18, 0.78);
}

body[data-scene="assassin"] .action-card {
  border-color: rgba(255, 96, 116, 0.42);
}

body[data-scene="briefing"] .phone-guide-card,
body[data-scene="briefing"] .phone-briefing-card {
  border-color: rgba(77, 200, 211, 0.38);
  background:
    linear-gradient(120deg, rgba(77, 200, 211, 0.13), rgba(242, 195, 91, 0.08)),
    rgba(13, 17, 18, 0.78);
}

body[data-scene="lobby"] .phone-guide-card {
  border-color: rgba(242, 195, 91, 0.34);
  background:
    linear-gradient(120deg, rgba(3, 6, 7, 0.66), rgba(13, 17, 18, 0.78)),
    var(--lobby-stage-image, none) 55% center / cover no-repeat;
}

.phone-guide-card > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.phone-guide-list {
  display: grid;
  gap: 0.42rem;
}

.phone-guide-list .guide-step {
  grid-template-columns: 2.2rem minmax(4.5rem, 0.55fr) minmax(0, 1fr);
  padding: 0.48rem 0.58rem;
}

.phone-guide-list .guide-step strong {
  white-space: normal;
}

.phone-briefing-card {
  display: grid;
  gap: 0.48rem;
  border-color: rgba(77, 200, 211, 0.32);
  background:
    linear-gradient(135deg, rgba(77, 200, 211, 0.12), rgba(242, 195, 91, 0.08)),
    rgba(13, 17, 18, 0.78);
}

.phone-briefing-visual {
  min-height: 9.3rem;
  margin-bottom: 0.22rem;
}

.phone-briefing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.phone-briefing-head span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.phone-briefing-head strong {
  color: var(--aqua);
  font-size: 0.86rem;
}

.phone-briefing-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.phone-briefing-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.48;
}

.director-copy {
  min-width: 0;
}

.director-copy span,
.director-copy p {
  color: var(--muted);
}

.director-copy span {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
}

.director-copy strong {
  display: block;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.director-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}

.director-copy .director-action {
  border-left: 3px solid var(--gold);
  padding-left: 0.55rem;
  color: var(--text);
}

.director-production-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.48rem;
}

.director-production-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.58);
  padding: 0.2rem 0.48rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.director-production-strip span[data-tone="live"] {
  border-color: rgba(62, 227, 159, 0.32);
  color: var(--good);
}

.director-production-strip span[data-tone="alert"] {
  border-color: rgba(255, 96, 116, 0.34);
  color: var(--evil);
}

.phone-video-director {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
  min-height: 6.2rem;
  border: 1px solid rgba(77, 200, 211, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.38), rgba(3, 6, 7, 0.72) 56%, rgba(3, 6, 7, 0.9)),
    var(--phone-video-director-image, var(--phone-video-discussion-director-image, none)) var(--phone-video-director-position, 0%) center / 400% 100% no-repeat,
    rgba(5, 8, 9, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.85rem 1.8rem rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding: 0.64rem;
}

.phone-video-director.hidden {
  display: none;
}

.phone-video-director-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.phone-video-director-copy span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.phone-video-director-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-video-director-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.phone-video-director-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.phone-video-director-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.66);
  padding: 0.2rem 0.46rem;
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 850;
}

.phone-video-director-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
}

.phone-video-director-steps span {
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  min-width: 0;
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: 7px;
  background: rgba(5, 8, 9, 0.62);
  padding: 0.26rem 0.12rem;
}

.phone-video-director-steps i {
  width: 1.35rem;
  aspect-ratio: 1;
  background: var(--setup-flow-tokens-image, none) var(--setup-token-position, 0%) center / 800% 100% no-repeat;
  filter: grayscale(0.32) opacity(0.82) drop-shadow(0 0.2rem 0.38rem rgba(0, 0, 0, 0.42));
}

.phone-video-director-steps b {
  max-width: 100%;
  overflow: hidden;
  color: rgba(248, 242, 228, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-video-director-steps span.active {
  border-color: rgba(242, 195, 91, 0.46);
  background: rgba(242, 195, 91, 0.12);
}

.phone-video-director-steps span.active i {
  filter: brightness(1.12) saturate(1.16) drop-shadow(0 0 0.58rem rgba(242, 195, 91, 0.28));
}

.phone-video-director-steps span.done {
  border-color: rgba(62, 227, 159, 0.28);
  background: rgba(62, 227, 159, 0.08);
}

.phone-video-director-steps span.done b {
  color: var(--good);
}

.phone-video-director[data-director-state="speaking"],
.phone-video-director[data-director-state="leader"] {
  border-color: rgba(242, 195, 91, 0.36);
}

.phone-video-director[data-director-state="vote"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.phone-video-director[data-director-mode="quest"] {
  border-color: rgba(62, 227, 159, 0.34);
}

.phone-video-director[data-director-mode="mission"] {
  border-color: rgba(242, 195, 91, 0.36);
}

.phone-video-director[data-director-state="missionFail"],
.phone-video-director[data-director-state="missionRecap"] {
  border-color: rgba(255, 96, 116, 0.4);
}

.voice-toggle {
  width: auto;
  min-height: 2.25rem;
  margin-top: 0.6rem;
  padding: 0.4rem 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
}

.voice-assistant-card {
  display: grid;
  gap: 0.7rem;
  border-color: rgba(77, 200, 211, 0.26);
  background:
    linear-gradient(135deg, rgba(77, 200, 211, 0.14), rgba(242, 195, 91, 0.08)),
    rgba(8, 12, 13, 0.82);
}

.voice-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.voice-assistant-head span,
.voice-assistant-head strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.voice-assistant-head span {
  color: var(--gold);
}

.voice-assistant-head strong {
  border: 1px solid rgba(77, 200, 211, 0.24);
  border-radius: 999px;
  background: rgba(77, 200, 211, 0.08);
  color: var(--aqua);
  padding: 0.22rem 0.5rem;
}

.voice-assistant-card p,
.voice-assistant-transcript {
  margin: 0;
  color: var(--muted);
  line-height: 1.46;
}

.voice-assistant-card p {
  color: var(--text);
  font-weight: 850;
}

.voice-assistant-transcript {
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: 8px;
  background: rgba(4, 7, 8, 0.44);
  padding: 0.62rem 0.7rem;
  font-size: 0.78rem;
}

.voice-assistant-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}

.voice-assistant-controls input {
  min-height: 2.55rem;
}

.voice-assistant-controls button {
  width: auto;
  min-height: 2.55rem;
  margin-top: 0;
  padding: 0 0.7rem;
  white-space: nowrap;
}

.phone-card,
.role-card {
  margin-bottom: 0.8rem;
  padding: 1rem;
}

body.phone-screen .director-card,
body.phone-screen .phone-card,
body.phone-screen .role-card,
body.phone-screen .live-strip {
  contain: layout paint style;
  backdrop-filter: blur(10px);
}

@supports (content-visibility: auto) {
  body.phone-screen .phone-card,
  body.phone-screen .role-card,
  body.phone-screen .live-strip {
    content-visibility: auto;
    contain-intrinsic-size: 15rem;
  }

  body.phone-screen .phone-recap-card,
  body.phone-screen .role-card {
    contain-intrinsic-size: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.phone-screen *,
  body.phone-screen *::before,
  body.phone-screen *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.phone-recap-card h2 {
  margin-bottom: 0.45rem;
}

.phone-recap-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.phone-recap-follow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.3rem, 0.58fr) minmax(0, 1fr);
  gap: 0.72rem;
  align-items: stretch;
  margin: 0.88rem 0 0.78rem;
  border-top: 1px solid rgba(245, 232, 190, 0.16);
  border-bottom: 1px solid rgba(77, 200, 211, 0.18);
  background:
    linear-gradient(90deg, rgba(77, 200, 211, 0.08), rgba(245, 232, 190, 0.06), transparent);
  padding: 0.72rem 0;
  overflow: hidden;
}

.phone-recap-follow.hidden {
  display: none;
}

.phone-recap-follow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(245, 232, 190, 0.08), transparent 72%);
  opacity: 0.46;
  pointer-events: none;
  animation: recapDirectorSweep 4600ms ease-in-out infinite;
}

.phone-recap-follow > * {
  position: relative;
  z-index: 1;
}

.phone-recap-follow-visual {
  min-width: 0;
  aspect-ratio: 0.52 / 1;
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 56%, rgba(4, 7, 8, 0.54)),
    var(--phone-recap-follow-image, none) var(--phone-recap-follow-position, 0%) center / 400% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.72rem 1.42rem rgba(0, 0, 0, 0.24);
}

.phone-recap-follow-copy {
  display: grid;
  align-content: center;
  gap: 0.34rem;
  min-width: 0;
}

.phone-recap-follow-copy span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.phone-recap-follow-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.12;
}

.phone-recap-follow-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.phone-recap-follow-meta,
.phone-recap-follow-progress {
  grid-column: 1 / -1;
}

.phone-recap-follow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.phone-recap-follow-meta span {
  border: 1px solid rgba(245, 232, 190, 0.16);
  border-radius: 999px;
  background: rgba(4, 7, 8, 0.52);
  padding: 0.3rem 0.5rem;
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 850;
}

.phone-recap-follow-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1.3rem, 1fr));
  gap: 0.28rem;
}

.phone-recap-follow-progress i {
  display: block;
  height: 0.24rem;
  border-radius: 999px;
  background: rgba(245, 232, 190, 0.16);
}

.phone-recap-follow-progress i.done {
  background: rgba(62, 227, 159, 0.42);
}

.phone-recap-follow-progress i.active {
  background: linear-gradient(90deg, var(--gold), var(--aqua));
  box-shadow: 0 0 0.72rem rgba(77, 200, 211, 0.24);
}

.phone-reveal-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.phone-reveal-list .good .reveal-copy small {
  color: var(--good);
}

.phone-reveal-list .evil .reveal-copy small {
  color: var(--evil);
}

.phone-card label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.phone-card button {
  width: 100%;
  margin-top: 0.7rem;
}

.join-card-mobile {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 23rem;
  padding-top: 14.75rem;
  border-color: rgba(242, 195, 91, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 200, 211, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(4, 7, 8, 0.18) 0%, rgba(4, 7, 8, 0.78) 58%, rgba(4, 7, 8, 0.96) 100%),
    rgba(11, 16, 17, 0.88);
  overflow: hidden;
}

.join-pass-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 15rem;
  background:
    linear-gradient(180deg, transparent 0 62%, rgba(5, 8, 9, 0.86) 100%),
    var(--phone-join-pass-image, none) var(--phone-join-pass-position, 50%) top / 300% auto no-repeat;
}

.join-pass-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(242, 195, 91, 0.2);
  background: linear-gradient(90deg, rgba(4, 7, 8, 0.38), transparent 22% 78%, rgba(4, 7, 8, 0.38));
  pointer-events: none;
}

.join-pass-copy,
.join-pass-form {
  position: relative;
  z-index: 1;
}

.join-pass-copy {
  display: grid;
  gap: 0.28rem;
}

.join-pass-copy span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.join-pass-copy strong {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.15;
}

.join-pass-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.join-pass-form {
  display: grid;
  gap: 0.52rem;
}

.join-card-mobile label {
  margin-bottom: 0;
}

.join-card-mobile input {
  min-height: 2.9rem;
  border-color: rgba(77, 200, 211, 0.34);
  background: rgba(4, 8, 9, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.join-card-mobile button {
  margin-top: 0.05rem;
}

.join-card-mobile .form-error {
  margin-top: 0;
}

.phone-talk-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(77, 200, 211, 0.24);
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.46), rgba(5, 8, 9, 0.76)),
    var(--talk-turn-panels-image, none) var(--talk-panel-position, 0%) center / 400% 100% no-repeat,
    rgba(13, 17, 18, 0.78);
  background-blend-mode: normal, screen, normal;
  overflow: hidden;
}

.phone-talk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.22;
  transform: translateX(-32%);
  pointer-events: none;
}

.phone-talk-card > * {
  position: relative;
  z-index: 1;
}

.phone-talk-card[data-talk-state="speaking"] {
  border-color: rgba(242, 195, 91, 0.52);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.1rem rgba(242, 195, 91, 0.1);
}

.phone-talk-card[data-talk-state="overtime"] {
  border-color: rgba(255, 96, 116, 0.52);
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.2), 0 0 1.1rem rgba(255, 96, 116, 0.12);
}

.phone-talk-card[data-talk-state="speaking"]::before,
.phone-talk-card[data-talk-state="overtime"]::before {
  animation: cardSheen 2800ms ease-in-out infinite;
}

.phone-talk-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.phone-talk-card strong {
  display: block;
  margin-top: 0.18rem;
}

.phone-talk-card em {
  color: var(--gold);
  font-style: normal;
  font-size: 1.65rem;
  font-weight: 900;
}

.phone-team-card,
.phone-vote-card,
.phone-mission-card,
.phone-assassin-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border-color: rgba(242, 195, 91, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 195, 91, 0.13), transparent 34%),
    rgba(13, 17, 18, 0.78);
  overflow: hidden;
}

.phone-team-card::before,
.phone-vote-card::before,
.phone-mission-card::before,
.phone-assassin-card::before {
  content: "";
  position: absolute;
  inset: -0.35rem;
  z-index: 0;
  opacity: 0.42;
  transform: scale(1.04);
  pointer-events: none;
}

.phone-team-card::before {
  background:
    linear-gradient(90deg, rgba(13, 17, 18, 0.38), rgba(13, 17, 18, 0.78)),
    var(--team-lock-image, none) center / cover no-repeat;
}

.phone-vote-card::before {
  background:
    linear-gradient(180deg, rgba(13, 17, 18, 0.04), rgba(13, 17, 18, 0.8) 66%, rgba(13, 17, 18, 0.94)),
    var(--phone-vote-result-image, none) var(--phone-vote-result-position, 0%) top / 400% auto no-repeat;
}

.phone-mission-card::before {
  background:
    linear-gradient(180deg, rgba(13, 17, 18, 0.04), rgba(13, 17, 18, 0.8) 66%, rgba(13, 17, 18, 0.94)),
    var(--phone-mission-result-image, none) var(--phone-mission-result-position, 0%) top / 400% auto no-repeat;
}

.phone-assassin-card::before {
  background:
    linear-gradient(180deg, rgba(13, 17, 18, 0.04), rgba(13, 17, 18, 0.8) 66%, rgba(13, 17, 18, 0.94)),
    var(--phone-assassin-result-image, none) var(--phone-assassin-result-position, 0%) top / 400% auto no-repeat;
}

.phone-team-card > *,
.phone-vote-card > *,
.phone-mission-card > *,
.phone-assassin-card > * {
  position: relative;
  z-index: 1;
}

.phone-vote-card,
.phone-mission-card,
.phone-assassin-card {
  grid-template-columns: 3.8rem minmax(0, 1fr);
  min-height: 14.4rem;
  padding-top: 8.9rem;
}

.phone-vote-result-visual,
.phone-mission-result-visual,
.phone-assassin-result-visual {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 9.35rem;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.88) 100%),
    var(--phone-vote-result-image, none) var(--phone-vote-result-position, 0%) top / 400% auto no-repeat;
  pointer-events: none;
}

.phone-mission-result-visual {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.88) 100%),
    var(--phone-mission-result-image, none) var(--phone-mission-result-position, 0%) top / 400% auto no-repeat;
}

.phone-assassin-result-visual {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.88) 100%),
    var(--phone-assassin-result-image, none) var(--phone-assassin-result-position, 0%) top / 400% auto no-repeat;
}

.phone-vote-result-visual::before,
.phone-vote-result-visual::after,
.phone-mission-result-visual::before,
.phone-mission-result-visual::after,
.phone-assassin-result-visual::before,
.phone-assassin-result-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-vote-result-visual::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.4) 100%),
    var(--phone-vote-result-image, none) 33.3333% top / 400% auto no-repeat;
  opacity: 0;
}

.phone-mission-result-visual::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.4) 100%),
    var(--phone-mission-result-image, none) 33.3333% top / 400% auto no-repeat;
  opacity: 0;
}

.phone-assassin-result-visual::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(13, 17, 18, 0.4) 100%),
    var(--phone-assassin-result-image, none) 33.3333% top / 400% auto no-repeat;
  opacity: 0;
}

.phone-vote-result-visual::after,
.phone-mission-result-visual::after,
.phone-assassin-result-visual::after {
  border-bottom: 1px solid rgba(242, 195, 91, 0.18);
  background: linear-gradient(90deg, transparent, rgba(77, 200, 211, 0.24), transparent);
  opacity: 0.3;
  transform: translateX(-42%);
}

.phone-team-card {
  border-color: rgba(77, 200, 211, 0.4);
}

.phone-vote-card[data-result="approved"],
.phone-mission-card[data-result="good"],
.phone-assassin-card[data-result="good"] {
  border-color: rgba(62, 227, 159, 0.38);
}

.phone-vote-card[data-result="rejected"],
.phone-mission-card[data-result="evil"],
.phone-assassin-card[data-result="evil"] {
  border-color: rgba(255, 96, 116, 0.45);
}

.phone-team-card i,
.phone-vote-card i,
.phone-mission-card i,
.phone-assassin-card i {
  display: block;
  width: 3.65rem;
  aspect-ratio: 1;
  filter: drop-shadow(0 0.55rem 0.85rem rgba(0, 0, 0, 0.38));
}

.phone-team-card i {
  position: relative;
  border: 1px solid rgba(77, 200, 211, 0.3);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(77, 200, 211, 0.18), transparent 48%),
    var(--team-lock-image, none) center / cover no-repeat;
  overflow: visible;
}

.phone-team-card i::before {
  content: "";
  position: absolute;
  inset: -28%;
  background: var(--team-lock-fx-image, none) var(--team-lock-fx-position, 0%) center / 400% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.45rem 0.75rem rgba(0, 0, 0, 0.34));
}

.phone-vote-card i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 232, 190, 0.18), transparent 48%),
    var(--vote-reveal-bursts-image, none) var(--vote-reveal-burst-position, 0%) center / 200% 100% no-repeat;
  overflow: visible;
}

.phone-vote-card i::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--vote-result-fx-image, none) var(--vote-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.34));
}

.phone-mission-card i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.2);
  border-radius: 999px;
  background: var(--mission-result-tokens-image, none) var(--mission-reveal-token-position, 66.6667%) center / 400% 100% no-repeat;
  overflow: visible;
}

.phone-mission-card i::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--mission-result-fx-image, none) var(--mission-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.34));
}

.phone-assassin-card i {
  position: relative;
  border: 1px solid rgba(245, 232, 190, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 232, 190, 0.18), transparent 48%),
    var(--assassin-reveal-bursts-image, none) var(--assassin-reveal-burst-position, 0%) center / 200% 100% no-repeat;
  overflow: visible;
}

.phone-assassin-card i::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--assassin-result-fx-image, none) var(--assassin-result-fx-position, 0%) center / 200% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.34));
}

.phone-team-card span,
.phone-vote-card span,
.phone-mission-card span,
.phone-assassin-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.phone-team-card strong,
.phone-vote-card strong,
.phone-mission-card strong,
.phone-assassin-card strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.25rem;
  line-height: 1.12;
}

.phone-team-card strong {
  color: var(--teal);
}

.phone-vote-card[data-result="approved"] strong,
.phone-mission-card[data-result="good"] strong,
.phone-assassin-card[data-result="good"] strong {
  color: var(--good);
}

.phone-vote-card[data-result="rejected"] strong,
.phone-mission-card[data-result="evil"] strong,
.phone-assassin-card[data-result="evil"] strong {
  color: var(--evil);
}

.phone-team-card p,
.phone-vote-card p,
.phone-mission-card p,
.phone-assassin-card p {
  margin: 0.22rem 0 0;
  color: var(--text);
  line-height: 1.4;
}

.phone-vote-meta,
.phone-mission-meta,
.phone-assassin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.55rem;
}

.phone-vote-card .phone-vote-meta span,
.phone-mission-card .phone-mission-meta span,
.phone-assassin-card .phone-assassin-meta span {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(245, 232, 190, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 9, 0.42);
  padding: 0.28rem 0.5rem;
  color: rgba(245, 232, 190, 0.86);
  font-size: 0.68rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-team-card.team-revealing,
.phone-vote-card.vote-revealing,
.phone-mission-card.mission-revealing,
.phone-assassin-card.assassin-revealing {
  animation: phoneMissionReveal 2600ms ease-in-out both;
}

.phone-team-card.team-revealing::before,
.phone-vote-card.vote-revealing::before,
.phone-mission-card.mission-revealing::before,
.phone-assassin-card.assassin-revealing::before {
  animation: phoneMissionRevealArt 2600ms ease-in-out both;
}

.phone-team-card.team-revealing i,
.phone-vote-card.vote-revealing i,
.phone-mission-card.mission-revealing i,
.phone-assassin-card.assassin-revealing i {
  animation: missionTokenPop 1100ms cubic-bezier(0.2, 0.86, 0.28, 1.24) both;
}

.phone-team-card.team-revealing i::before {
  animation:
    teamLockSprite 2300ms steps(3, end) both,
    teamLockFxPulse 2300ms ease-in-out both;
}

.phone-vote-card.vote-revealing i::before {
  animation: voteResultFxPulse 2300ms ease-in-out both;
}

.phone-vote-card.vote-revealing .phone-vote-result-visual {
  animation: phoneVoteResultVisual 2600ms ease-in-out both;
}

.phone-vote-card.vote-revealing .phone-vote-result-visual::before {
  animation: phoneVoteResultScan 1150ms ease-out 120ms both;
}

.phone-vote-card.vote-revealing .phone-vote-result-visual::after {
  animation: phoneVoteResultSweep 1500ms ease-in-out 220ms both;
}

.phone-mission-card.mission-revealing .phone-mission-result-visual {
  animation: phoneVoteResultVisual 2800ms ease-in-out both;
}

.phone-mission-card.mission-revealing .phone-mission-result-visual::before {
  animation: phoneVoteResultScan 1200ms ease-out 120ms both;
}

.phone-mission-card.mission-revealing .phone-mission-result-visual::after {
  animation: phoneVoteResultSweep 1600ms ease-in-out 220ms both;
}

.phone-assassin-card.assassin-revealing .phone-assassin-result-visual {
  animation: phoneVoteResultVisual 3000ms ease-in-out both;
}

.phone-assassin-card.assassin-revealing .phone-assassin-result-visual::before {
  animation: phoneVoteResultScan 1200ms ease-out 120ms both;
}

.phone-assassin-card.assassin-revealing .phone-assassin-result-visual::after {
  animation: phoneVoteResultSweep 1700ms ease-in-out 220ms both;
}

.phone-mission-card.mission-revealing i::before {
  animation: missionResultFxPulse 2500ms ease-in-out both;
}

.phone-assassin-card.assassin-revealing i::before {
  animation: assassinResultFxPulse 2900ms ease-in-out both;
}

.form-error {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: var(--evil);
  font-size: 0.86rem;
}

.role-card {
  min-height: 26.5rem;
  display: flex;
  align-items: stretch;
  position: relative;
  border-color: rgba(245, 232, 190, 0.2);
  background:
    linear-gradient(180deg, rgba(8, 10, 11, 0.05), rgba(8, 10, 11, 0.9)),
    var(--phone-role-card-image, url("/public/assets/mobile-role-card-v1.png")) center / cover;
  overflow: hidden;
}

.role-card-front {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.02) 0 44%, rgba(3, 6, 7, 0.72) 78%, rgba(3, 6, 7, 0.94) 100%),
    var(--role-card-fronts-image, none) var(--role-card-front-position, 50%) center / 700% 100% no-repeat;
  filter: saturate(1.05) contrast(1.04);
  opacity: 0.96;
  pointer-events: none;
}

.role-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 16% 84%, rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.role-card[data-role-known="false"] .role-card-front {
  opacity: 0.18;
  filter: grayscale(1) brightness(0.72);
}

.role-portrait {
  position: absolute;
  left: 50%;
  top: 1rem;
  z-index: 1;
  width: min(12rem, calc(100% - 3.2rem));
  height: 12.9rem;
  transform: translateX(-50%);
  border: 1px solid rgba(245, 232, 190, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 56%, rgba(5, 8, 9, 0.7)),
    radial-gradient(circle at 50% 22%, rgba(242, 195, 91, 0.16), transparent 44%),
    var(--role-portraits-image, none) var(--role-portrait-position, 50%) 18% / 700% auto no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0.95rem 2rem rgba(0, 0, 0, 0.36);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.role-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0) 42%, rgba(5, 8, 9, 0.42) 100%),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.16), transparent 28%);
  pointer-events: none;
}

body[data-faction="good"] .role-portrait {
  border-color: rgba(62, 227, 159, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0.95rem 2rem rgba(0, 0, 0, 0.36),
    0 0 1.5rem rgba(62, 227, 159, 0.12);
}

body[data-faction="evil"] .role-portrait {
  border-color: rgba(255, 96, 116, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0.95rem 2rem rgba(0, 0, 0, 0.36),
    0 0 1.5rem rgba(255, 96, 116, 0.14);
}

.role-card[data-role-known="false"] .role-portrait {
  opacity: 0.22;
  filter: grayscale(1);
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 14%, rgba(242, 195, 91, 0.18), transparent 24%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 48%, transparent 54% 100%);
  opacity: 0;
  transform: translateX(-42%);
  pointer-events: none;
  animation: cardSheen 5200ms ease-in-out infinite;
}

.role-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12rem;
  z-index: 3;
  width: 4rem;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: var(--role-emblems-image, none) var(--role-emblem-position, 50%) center / 700% 100% no-repeat;
  filter: drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
  opacity: 0.96;
  pointer-events: none;
}

.role-card[data-role-known="false"]::after {
  opacity: 0.22;
  filter: grayscale(1) drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
}

.role-emblem-caption {
  position: absolute;
  left: 50%;
  top: 15.3rem;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.13rem;
  min-width: 9rem;
  max-width: calc(100% - 2rem);
  transform: translateX(-50%);
  border: 1px solid rgba(245, 232, 190, 0.3);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.74);
  padding: 0.34rem 0.78rem 0.42rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.role-emblem-caption::before {
  content: "";
  width: 1.85rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 232, 190, 0.24);
  border-radius: 999px;
  background:
    rgba(5, 8, 9, 0.42)
    var(--faction-badges-image, none) var(--faction-badge-position, 0%) center / 200% 100% no-repeat;
  box-shadow: 0 0.55rem 1rem rgba(0, 0, 0, 0.32);
}

.role-emblem-caption em,
.role-emblem-caption b {
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-emblem-caption em {
  color: rgba(245, 232, 190, 0.62);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
}

.role-emblem-caption b {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
}

body[data-faction="good"] .role-emblem-caption {
  border-color: rgba(62, 227, 159, 0.42);
}

body[data-faction="good"] .role-emblem-caption::before {
  box-shadow:
    0 0.55rem 1rem rgba(0, 0, 0, 0.32),
    0 0 1rem rgba(62, 227, 159, 0.18);
}

body[data-faction="good"] .role-emblem-caption b {
  color: var(--good);
}

body[data-faction="evil"] .role-emblem-caption {
  border-color: rgba(255, 96, 116, 0.46);
}

body[data-faction="evil"] .role-emblem-caption::before {
  box-shadow:
    0 0.55rem 1rem rgba(0, 0, 0, 0.32),
    0 0 1rem rgba(255, 96, 116, 0.2);
}

body[data-faction="evil"] .role-emblem-caption b {
  color: var(--evil);
}

.role-card[data-role-known="false"] .role-emblem-caption::before {
  opacity: 0.22;
  filter: grayscale(1);
}

.role-card[data-role-known="false"] .role-emblem-caption b {
  color: var(--muted);
}

.role-reveal-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  background:
    radial-gradient(circle at 50% 34%, rgba(242, 195, 91, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(3, 6, 7, 0.35), rgba(3, 6, 7, 0.92)),
    var(--identity-deal-image, var(--phone-role-card-image, none)) center / cover no-repeat;
  text-align: center;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  overflow: hidden;
}

.role-reveal-layer::before {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  width: 8.2rem;
  aspect-ratio: 1;
  background: var(--role-emblems-image, none) var(--role-emblem-position, 50%) center / 700% 100% no-repeat;
  filter: drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
}

.role-reveal-layer::after {
  content: "";
  position: absolute;
  inset: -44%;
  z-index: 0;
  background: conic-gradient(from 90deg, transparent, rgba(242, 195, 91, 0.18), transparent, rgba(77, 200, 211, 0.16), transparent);
  opacity: 0.78;
  transform: rotate(0deg);
  pointer-events: none;
}

.role-unlock-fx {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 1;
  display: block;
  width: min(18rem, 96%);
  aspect-ratio: 0.62;
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--identity-unlock-fx-image, none) var(--identity-unlock-position, 0%) center / 400% 100% no-repeat;
  filter: drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.45));
  opacity: 0;
  pointer-events: none;
}

.role-reveal-layer span,
.role-reveal-layer strong,
.role-reveal-layer small {
  position: relative;
  z-index: 2;
}

.role-reveal-layer span,
.role-reveal-layer small {
  border: 1px solid rgba(245, 232, 190, 0.24);
  border-radius: 999px;
  background: rgba(8, 11, 12, 0.72);
  color: var(--gold);
  padding: 0.28rem 0.72rem;
  font-weight: 950;
}

.role-reveal-layer span {
  font-size: 0.78rem;
}

.role-reveal-layer strong {
  color: var(--text);
  font-size: 2.65rem;
  line-height: 1;
  text-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
}

.role-reveal-layer small {
  font-size: 0.9rem;
}

.role-card.role-revealing .role-reveal-layer {
  animation: roleUnlock 3400ms ease-in-out both;
}

.role-card.role-revealing .role-reveal-layer::after {
  animation: identityRevealHalo 3400ms ease-in-out both;
}

.role-card.role-revealing .role-unlock-fx {
  animation:
    identityUnlockSprite 3400ms steps(3, end) both,
    identityUnlockFx 3400ms ease-in-out both;
}

.role-card.role-revealing::after {
  animation: roleEmblemReveal 3400ms ease-in-out both;
}

body[data-faction="evil"] .role-card {
  border-color: rgba(255, 96, 116, 0.46);
}

body[data-faction="good"] .role-reveal-layer small {
  border-color: rgba(62, 227, 159, 0.42);
  color: var(--good);
}

body[data-faction="evil"] .role-reveal-layer small {
  border-color: rgba(255, 96, 116, 0.46);
  color: var(--evil);
}

body[data-faction="good"] .role-card {
  border-color: rgba(62, 227, 159, 0.42);
}

.role-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  z-index: 2;
}

.role-card-inner > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.role-card-inner > strong {
  margin-top: 0.2rem;
  font-size: 2.25rem;
}

.role-card-inner > p {
  margin: 0.6rem 0 0;
  color: var(--text);
  line-height: 1.5;
}

.intel-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.intel-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.72);
  padding: 0.75rem;
  color: var(--text);
}

.coach-card {
  position: relative;
  display: grid;
  gap: 0.42rem;
  overflow: hidden;
  border-color: rgba(242, 195, 91, 0.28);
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.06), rgba(5, 8, 9, 0.78)),
    var(--phone-coach-panels-image, none) var(--coach-panel-position, 0%) center / 700% 100% no-repeat,
    rgba(13, 17, 18, 0.78);
  background-blend-mode: normal, screen, normal;
  padding-top: 7.2rem;
}

.coach-card::before,
.coach-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.coach-card::before {
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%),
    radial-gradient(circle at 50% 18%, rgba(242, 195, 91, 0.14), transparent 32%);
  opacity: 0.32;
}

.coach-card::after {
  background: linear-gradient(180deg, transparent 0 42%, rgba(8, 11, 12, 0.9) 72%);
}

.coach-card > * {
  position: relative;
  z-index: 1;
}

.coach-card[data-tone="good"] {
  border-color: rgba(62, 227, 159, 0.36);
}

.coach-card[data-tone="evil"] {
  border-color: rgba(255, 96, 116, 0.42);
}

.coach-card[data-coach-state="speaking"],
.coach-card[data-coach-state="quest"] {
  border-color: rgba(77, 200, 211, 0.44);
}

.coach-card[data-coach-state="assassin"] {
  border-color: rgba(255, 96, 116, 0.52);
}

.coach-card > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.coach-card > strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.coach-list {
  display: grid;
  gap: 0.42rem;
}

.coach-list p {
  margin: 0;
  border-left: 3px solid rgba(242, 195, 91, 0.56);
  border-radius: 4px;
  background: rgba(8, 11, 12, 0.62);
  color: var(--text);
  padding: 0.52rem 0.62rem;
  line-height: 1.42;
}

.coach-card[data-tone="good"] .coach-list p {
  border-left-color: rgba(62, 227, 159, 0.58);
}

.coach-card[data-tone="evil"] .coach-list p {
  border-left-color: rgba(255, 96, 116, 0.62);
}

.decision-director-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  border-color: rgba(242, 195, 91, 0.3);
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.02), rgba(3, 6, 7, 0.72)),
    var(--phone-decision-director-image, none) var(--decision-director-position, 0%) center / 500% 100% no-repeat,
    rgba(13, 17, 18, 0.84);
  background-blend-mode: normal, screen, normal;
  padding-top: 7rem;
}

.decision-director-card::before,
.decision-director-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decision-director-card::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(242, 195, 91, 0.14), transparent 30%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.34;
}

.decision-director-card::after {
  background: linear-gradient(180deg, transparent 0 42%, rgba(8, 11, 12, 0.9) 74%);
}

.decision-director-card > * {
  position: relative;
  z-index: 1;
}

.decision-director-card[data-decision-state="vote"],
.decision-director-card[data-decision-state="voteResult"] {
  border-color: rgba(242, 195, 91, 0.44);
}

.decision-director-card[data-decision-state="quest"] {
  border-color: rgba(77, 200, 211, 0.44);
}

.decision-director-card[data-decision-state="questResult"] {
  border-color: rgba(62, 227, 159, 0.34);
}

.decision-director-card[data-decision-state="vote"]::before,
.decision-director-card[data-decision-state="quest"]::before {
  animation: cardSheen 3600ms ease-in-out infinite;
}

.decision-director-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(3, 6, 7, 0.86) 84%),
    var(--phone-decision-director-image, none) var(--decision-director-position, 0%) center / 500% 100% no-repeat;
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
}

.decision-director-copy {
  display: grid;
  gap: 0.38rem;
}

.decision-director-copy > span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
}

.decision-director-copy > strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.2;
}

.decision-director-copy > p {
  margin: 0;
  color: var(--text);
  line-height: 1.46;
}

.decision-director-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.18rem;
}

.decision-director-meta span {
  border: 1px solid rgba(245, 232, 190, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 12, 0.66);
  padding: 0.24rem 0.52rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.action-card {
  position: relative;
  border-color: rgba(242, 195, 91, 0.3);
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.04), rgba(3, 6, 7, 0.68)),
    var(--phone-action-panels-image, none) var(--action-panel-position, 0%) center / 600% 100% no-repeat,
    rgba(13, 17, 18, 0.82);
  background-blend-mode: normal, screen, normal;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.09) 48%, transparent 54% 100%);
  opacity: 0.34;
  transform: translateX(-34%);
  pointer-events: none;
}

.action-card > * {
  position: relative;
  z-index: 1;
}

.action-card[data-action-panel="team"] {
  border-color: rgba(77, 200, 211, 0.42);
}

.action-card[data-action-panel="vote"],
.action-card[data-action-panel="recap"] {
  border-color: rgba(242, 195, 91, 0.42);
}

.action-card[data-action-panel="quest"] {
  border-color: rgba(77, 200, 211, 0.34);
}

.action-card[data-action-panel="assassin"] {
  border-color: rgba(255, 96, 116, 0.48);
  box-shadow: 0 0.9rem 2.4rem rgba(0, 0, 0, 0.2), 0 0 1.4rem rgba(255, 96, 116, 0.08);
}

.action-card[data-action-panel="team"]::before,
.action-card[data-action-panel="vote"]::before,
.action-card[data-action-panel="quest"]::before,
.action-card[data-action-panel="assassin"]::before {
  animation: cardSheen 3600ms ease-in-out infinite;
}

#actionDetail {
  margin: -0.3rem 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.player-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.select-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.68);
  padding: 0.65rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.select-tile:has(input:checked) {
  border-color: rgba(242, 195, 91, 0.62);
  background: rgba(242, 195, 91, 0.12);
  transform: translateY(-1px);
}

.select-tile input {
  width: 1.1rem;
  min-height: auto;
  accent-color: var(--gold);
}

.mini-avatar {
  width: 1.55rem;
  height: 1.55rem;
}

.select-tile span:last-child {
  overflow-wrap: anywhere;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.action-row.single {
  grid-template-columns: 1fr;
}

.action-row button[data-action-token] {
  position: relative;
  min-height: 5.7rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.28rem;
  padding: 0.55rem 0.5rem;
  overflow: hidden;
}

.action-row button[data-action-token]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.action-row button[data-action-token]:active::after {
  opacity: 1;
}

.action-row button[data-action-token]::before {
  content: "";
  display: block;
  width: 3rem;
  aspect-ratio: 1;
  background: var(--phone-action-tokens-image, none) var(--action-token-position, 0%) center / 600% 100% no-repeat;
  filter: drop-shadow(0 0.4rem 0.72rem rgba(0, 0, 0, 0.45));
}

.action-row button[data-action-token] span {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 900;
  line-height: 1.1;
}

.action-row button[data-action-token]:disabled::before {
  filter: grayscale(0.86) opacity(0.55);
}

.live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  padding: 0.75rem;
}

.live-tile {
  position: relative;
  display: grid;
  gap: 0.32rem;
  justify-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 6, 7, 0.02), rgba(3, 6, 7, 0.48)),
    var(--live-player-chips-image, none) var(--live-chip-position, 20%) center / 600% 100% no-repeat,
    rgba(8, 11, 12, 0.62);
  background-blend-mode: normal, screen, normal;
  padding: 0.72rem 0.45rem 0.7rem;
  text-align: center;
  overflow: hidden;
}

.live-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  opacity: 0.36;
  transform: translateX(-28%);
  pointer-events: none;
}

.live-tile > * {
  position: relative;
  z-index: 1;
}

.live-tile.active {
  border-color: rgba(77, 200, 211, 0.58);
}

.live-tile.speaking {
  border-color: rgba(242, 195, 91, 0.74);
  box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.28);
}

.live-tile.host {
  border-color: rgba(242, 195, 91, 0.38);
}

.live-tile[data-live-state="ai"] {
  border-color: rgba(146, 122, 255, 0.38);
}

.live-tile[data-live-state="leader"] {
  border-color: rgba(242, 195, 91, 0.62);
}

.live-tile[data-live-state="speaking"]::before {
  animation: cardSheen 2200ms ease-in-out infinite;
}

.live-avatar {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background:
    var(--seat-state-tokens-image, none) var(--seat-token-position, 25%) center / 500% 100% no-repeat,
    hsl(var(--hue, 42), 64%, 48%);
  color: #fff9e9;
  font-size: 0.72rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 0.5rem rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(248, 242, 228, 0.2),
    0 0.34rem 0.8rem rgba(0, 0, 0, 0.34);
}

.live-tile.host .live-avatar {
  background: rgba(242, 195, 91, 0.18);
  color: var(--gold);
}

.live-avatar-stack .avatar-faction {
  max-width: 5.2rem;
  font-size: 0.53rem;
}

.live-tile strong,
.live-tile span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-tile strong {
  font-size: 0.84rem;
}

.live-tile span {
  color: var(--muted);
  font-size: 0.72rem;
}

.phone-roster {
  display: grid;
  gap: 0.5rem;
}

.phone-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.62);
  padding: 0.55rem 0.65rem;
}

.phone-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-player small {
  flex: 0 0 auto;
  color: var(--muted);
}

@media (max-width: 1320px) {
  .opening-conductor,
  .discussion-conductor,
  .mission-outcome-director,
  .mission-board,
  .mission-strip {
    left: 18.5rem;
    right: 23.5rem;
  }

  .round-table {
    left: 17.5rem;
    right: 22.5rem;
  }

  .seat {
    width: 9.8rem;
  }
}

@media (max-width: 760px) {
  .phone-shell {
    padding: 0.8rem;
  }

  .phone-header h1 {
    font-size: 1.65rem;
  }

  .role-card {
    min-height: 24.2rem;
  }

  .role-portrait {
    top: 0.9rem;
    width: min(10.2rem, calc(100% - 2.6rem));
    height: 11.4rem;
  }

  .role-card::after {
    top: 10.95rem;
    width: 3.7rem;
  }

  .role-emblem-caption {
    top: 13.45rem;
    min-width: 8.2rem;
  }

  .role-emblem-caption em {
    font-size: 0.58rem;
  }

  .role-emblem-caption b {
    font-size: 0.8rem;
  }

  .director-card {
    grid-template-columns: 6.6rem 1fr;
  }

  .director-video {
    min-height: 8rem;
  }

  .player-select,
  .live-strip {
    grid-template-columns: 1fr 1fr;
  }

  .asset-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-stats,
  .asset-gallery,
  .slot-gallery {
    grid-template-columns: 1fr;
  }
}

.phase-pulse .screen-vignette,
.phone-screen.phase-pulse::before {
  animation: sceneFlash 850ms ease-out;
}

.phone-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 50% 20%, rgba(242, 195, 91, 0.2), transparent 36%);
  pointer-events: none;
}

@keyframes missionPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.25), 0 0 0 rgba(242, 195, 91, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(242, 195, 91, 0.42), 0 0 1.4rem rgba(242, 195, 91, 0.26);
  }
}

@keyframes assassinAlertPulse {
  0%,
  100% {
    opacity: 0.88;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.28);
  }
}

@keyframes seatGlow {
  0%,
  100% {
    border-color: rgba(77, 200, 211, 0.56);
  }
  50% {
    border-color: rgba(77, 200, 211, 0.95);
  }
}

@keyframes teamRouteFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -12;
  }
}

@keyframes teamRouteNodePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.72;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes waveformTalk {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.62);
    filter: brightness(0.92);
  }
  50% {
    opacity: 0.92;
    transform: scaleX(1);
    filter: brightness(1.28);
  }
}

@keyframes directorSpeakingGlow {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.18);
  }
}

@keyframes cardSheen {
  0%,
  28% {
    transform: translateX(-42%);
    opacity: 0;
  }
  42% {
    opacity: 0.45;
  }
  58%,
  100% {
    transform: translateX(42%);
    opacity: 0;
  }
}

@keyframes dealCeremony {
  0% {
    opacity: 0;
    filter: blur(0.24rem);
    transform: translate(-50%, -50%) scale(0.92);
  }
  12%,
  74% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(0.16rem);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes dealCeremonyArt {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(-1deg);
    filter: brightness(1.35) saturate(1.25);
  }
  16%,
  72% {
    opacity: 0.88;
    transform: scale(1.04) rotate(0deg);
    filter: brightness(1.08) saturate(1.1);
  }
  100% {
    opacity: 0.34;
    transform: scale(1.1) rotate(0.8deg);
    filter: brightness(0.9) saturate(0.96);
  }
}

@keyframes dealCeremonyHalo {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.84);
  }
  18%,
  72% {
    opacity: 1;
    transform: rotate(34deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(82deg) scale(1.16);
  }
}

@keyframes dealCardFan {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(1.4rem) rotate(0deg) scale(0.64);
  }
  64%,
  100% {
    opacity: 1;
    transform: translateX(calc(-50% + var(--deal-x, 0rem))) translateY(var(--deal-y, 0rem)) rotate(var(--deal-r, 0deg)) scale(1);
  }
}

@keyframes identityRevealHalo {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
  }
  18%,
  76% {
    opacity: 0.86;
    transform: rotate(36deg) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: rotate(92deg) scale(1.2);
  }
}

@keyframes identityCeremonyCardPulse {
  0% {
    opacity: 0.72;
    transform: translateY(0.45rem) scale(0.98);
    filter: brightness(1.18) saturate(1.16);
  }
  18%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1.05) saturate(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes identityUnlockSprite {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

@keyframes identityUnlockFx {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    filter: brightness(1.3) blur(0.08rem) drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.45));
  }
  16%,
  74% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1.12) blur(0) drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.45));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
    filter: brightness(0.95) blur(0.06rem) drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.45));
  }
}

@keyframes teamLockSprite {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

@keyframes teamLockFxPulse {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(-8deg);
    filter: brightness(1.35) blur(0.06rem) drop-shadow(0 0.7rem 1.2rem rgba(0, 0, 0, 0.36));
  }
  18%,
  78% {
    opacity: 0.96;
    transform: scale(1.08) rotate(0deg);
    filter: brightness(1.12) blur(0) drop-shadow(0 0.7rem 1.2rem rgba(0, 0, 0, 0.36));
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(6deg);
    filter: brightness(0.95) blur(0.04rem) drop-shadow(0 0.7rem 1.2rem rgba(0, 0, 0, 0.36));
  }
}

@keyframes voteResultFxPulse {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-7deg);
    filter: brightness(1.35) blur(0.06rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  18%,
  74% {
    opacity: 1;
    transform: scale(1.08) rotate(0deg);
    filter: brightness(1.12) blur(0) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  100% {
    opacity: 0;
    transform: scale(1.16) rotate(5deg);
    filter: brightness(0.98) blur(0.04rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
}

@keyframes voteBallotCardDeal {
  0% {
    opacity: 0;
    transform: translateY(0.9rem) rotate(-6deg) scale(0.82);
    filter: brightness(0.8) blur(0.04rem);
  }
  32% {
    opacity: 1;
    transform: translateY(-0.18rem) rotate(1deg) scale(1.03);
    filter: brightness(1.28) blur(0);
  }
  74% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1.08) blur(0);
  }
  100% {
    opacity: 0.96;
    transform: translateY(0) rotate(0deg) scale(0.98);
    filter: brightness(0.98) blur(0);
  }
}

@keyframes voteBallotCardScan {
  0% {
    opacity: 0;
    filter: brightness(1.6) saturate(1.3);
  }
  18%,
  56% {
    opacity: 0.95;
    filter: brightness(1.35) saturate(1.18);
  }
  100% {
    opacity: 0;
    filter: brightness(1) saturate(1);
  }
}

@keyframes missionResultFxPulse {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-8deg);
    filter: brightness(1.35) blur(0.06rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  16%,
  76% {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
    filter: brightness(1.14) blur(0) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(6deg);
    filter: brightness(0.96) blur(0.05rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
}

@keyframes assassinResultFxPulse {
  0% {
    opacity: 0;
    transform: scale(0.68) rotate(-9deg);
    filter: brightness(1.42) blur(0.07rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  16%,
  78% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
    filter: brightness(1.18) blur(0) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
  100% {
    opacity: 0;
    transform: scale(1.2) rotate(7deg);
    filter: brightness(0.96) blur(0.05rem) drop-shadow(0 0.72rem 1.25rem rgba(0, 0, 0, 0.38));
  }
}

@keyframes missionReveal {
  0% {
    opacity: 0;
    filter: blur(0.2rem);
    transform: translate(-50%, -50%) scale(0.94);
  }
  12%,
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(0.12rem);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes missionRevealArt {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(-1.2deg);
    filter: saturate(1.35) brightness(1.35);
  }
  16%,
  72% {
    opacity: 0.92;
    transform: scale(1.03) rotate(0deg);
    filter: saturate(1.1) brightness(1.08);
  }
  100% {
    opacity: 0.32;
    transform: scale(1.1) rotate(0.8deg);
    filter: saturate(0.96) brightness(0.9);
  }
}

@keyframes missionRevealHalo {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
  }
  18%,
  68% {
    opacity: 1;
    transform: rotate(28deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(70deg) scale(1.14);
  }
}

@keyframes assassinFinalReveal {
  0% {
    opacity: 0;
    filter: blur(0.22rem) saturate(1.2);
    transform: translate(-50%, -50%) scale(0.92);
  }
  10%,
  82% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(0.12rem) saturate(0.96);
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes assassinFinalRevealArt {
  0% {
    opacity: 0;
    transform: scale(1.08);
    filter: saturate(1.36) brightness(1.26);
  }
  14%,
  78% {
    opacity: 0.98;
    transform: scale(1);
    filter: saturate(1.12) brightness(1.08);
  }
  100% {
    opacity: 0.34;
    transform: scale(1.04);
    filter: saturate(0.92) brightness(0.86);
  }
}

@keyframes assassinFinalRevealHalo {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(0.82);
  }
  16%,
  72% {
    opacity: 0.92;
    transform: rotate(22deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(78deg) scale(1.12);
  }
}

@keyframes missionTokenPop {
  0% {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.62) rotate(-8deg);
  }
  68% {
    opacity: 1;
    transform: translateY(0) scale(1.13) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes missionCardRevealFrames {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

@keyframes missionCardRevealLift {
  0% {
    opacity: 0;
    transform: translateY(0.65rem) scale(0.92);
    filter: saturate(0.8) brightness(0.82);
  }
  18%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1.16) brightness(1.08);
  }
  100% {
    opacity: 0.86;
    transform: translateY(-0.12rem) scale(1.02);
    filter: saturate(1.08) brightness(1);
  }
}

@keyframes missionSubmissionCardReveal {
  0% {
    opacity: 0;
    transform: translateY(0.9rem) rotate(-5deg) scale(0.86);
    filter: brightness(0.72) saturate(0.82);
  }
  18% {
    opacity: 1;
    transform: translateY(0.1rem) rotate(-2deg) scale(0.96);
    filter: brightness(1) saturate(1.02);
  }
  42% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1.04);
    filter: brightness(1.16) saturate(1.12);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1) saturate(1.05);
  }
}

@keyframes missionSubmissionCardFlip {
  0% {
    background-position: 0% center;
  }
  42% {
    background-position: 33.3333% center;
  }
  64%,
  100% {
    background-position: var(--mission-submission-card-position, 66.6667%) center;
  }
}

@keyframes stageDirectorIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.94);
    filter: blur(0.26rem) saturate(1.02);
  }
  16%,
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0) saturate(1.12);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(1.02);
    filter: blur(0.2rem) saturate(1.04);
  }
}

@keyframes stageDirectorSweep {
  0% {
    opacity: 0;
    transform: translateX(-36%);
  }
  22% {
    opacity: 0.8;
  }
  76% {
    opacity: 0.42;
    transform: translateX(36%);
  }
  100% {
    opacity: 0;
    transform: translateX(48%);
  }
}

@keyframes phoneMissionReveal {
  0% {
    opacity: 0.55;
    transform: translateY(0.45rem) scale(0.98);
    filter: brightness(1.45);
  }
  18%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes phoneMissionRevealArt {
  0% {
    opacity: 0.12;
    transform: scale(1.16);
    filter: brightness(1.45) saturate(1.35);
  }
  22%,
  72% {
    opacity: 0.58;
    transform: scale(1.03);
    filter: brightness(1.14) saturate(1.14);
  }
  100% {
    opacity: 0.42;
    transform: scale(1.04);
    filter: brightness(1) saturate(1);
  }
}

@keyframes phoneVoteResultVisual {
  0% {
    opacity: 0.4;
    transform: scale(1.09);
    filter: brightness(1.45) saturate(1.28) blur(0.04rem);
  }
  24%,
  76% {
    opacity: 1;
    transform: scale(1.01);
    filter: brightness(1.14) saturate(1.12) blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) saturate(1) blur(0);
  }
}

@keyframes phoneVoteResultScan {
  0% {
    opacity: 0;
    filter: brightness(1.7) saturate(1.35);
  }
  18%,
  58% {
    opacity: 0.78;
    filter: brightness(1.35) saturate(1.18);
  }
  100% {
    opacity: 0;
    filter: brightness(1) saturate(1);
  }
}

@keyframes phoneVoteResultSweep {
  0% {
    opacity: 0;
    transform: translateX(-45%);
  }
  20%,
  64% {
    opacity: 0.46;
  }
  100% {
    opacity: 0;
    transform: translateX(45%);
  }
}

@keyframes recapDirectorSweep {
  0% {
    transform: translateX(-55%);
  }
  42%,
  60% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(55%);
  }
}

@keyframes roleUnlock {
  0% {
    opacity: 0;
    transform: scale(1.04);
    filter: brightness(1.55) blur(0.12rem);
  }
  12%,
  68% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.08) blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
    filter: brightness(1) blur(0.08rem);
  }
}

@keyframes roleEmblemReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.72) rotate(-10deg);
    filter: brightness(1.8) blur(0.08rem) drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
  }
  28%,
  82% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08) rotate(0deg);
    filter: brightness(1.2) drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
  }
  100% {
    opacity: 0.96;
    transform: translateX(-50%) scale(1) rotate(0deg);
    filter: drop-shadow(0 0.85rem 1.4rem rgba(0, 0, 0, 0.5));
  }
}

@keyframes signalBreathe {
  0%,
  100% {
    filter: brightness(0.86) saturate(1);
    transform: scale(0.985);
  }
  50% {
    filter: brightness(1.28) saturate(1.18);
    transform: scale(1.02);
  }
}

@keyframes sceneFlash {
  0% {
    filter: brightness(1.8) saturate(1.25);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}
