:root {
  --ink: #121411;
  --ink-soft: #1b1e1a;
  --charcoal: #252923;
  --paper: #f3eee4;
  --paper-muted: #c7c0b4;
  --gold: #c5a47e;
  --gold-bright: #e3c79f;
  --mucosa: #9d4647;
  --mucosa-bright: #c7726d;
  --teal: #0e5c57;
  --sage: #aab79f;
  --line: rgba(243, 238, 228, 0.16);
  --line-bright: rgba(197, 164, 126, 0.44);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 70% 8%, rgba(157, 70, 71, 0.13), transparent 29rem),
    radial-gradient(circle at 14% 38%, rgba(14, 92, 87, 0.14), transparent 28rem),
    var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(243, 238, 228, 0.1);
  background: rgba(18, 20, 17, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: -2px;
}

.brand-mark span:last-child {
  margin-left: -3px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.site-nav a,
.nav-text-button {
  padding: 8px 0;
  color: rgba(243, 238, 228, 0.68);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.site-nav a:hover,
.nav-text-button:hover {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--paper-muted);
  background: transparent;
  border-radius: 50%;
}

.icon-button:hover {
  color: var(--gold-bright);
  background: rgba(243, 238, 228, 0.05);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.icon-button svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.sound-off {
  display: none;
}

.sound-button[aria-pressed="false"] .sound-on {
  display: none;
}

.sound-button[aria-pressed="false"] .sound-off {
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  color: var(--gold);
  border: 1px solid rgba(197, 164, 126, 0.48);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease;
}

.back-link:hover {
  color: var(--ink);
  background: var(--gold);
}

.back-link svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(54px, 8vh, 100px)) clamp(20px, 6vw, 96px) 30px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 5.5%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(197, 164, 126, 0.22), transparent);
  content: "";
}

.hero::after {
  position: absolute;
  top: 18%;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 126, 0.22), transparent);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  width: min(1480px, 100%);
  margin: auto;
  gap: clamp(20px, 4vw, 72px);
}

.hero-copy {
  max-width: 730px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 45px;
  height: 1px;
  background: var(--gold);
}

h1 {
  margin: 0;
}

.title-cn {
  display: block;
  font-family: var(--serif);
  font-size: clamp(84px, 10.8vw, 166px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 80px rgba(0, 0, 0, 0.5);
}

.title-cn span {
  position: relative;
  color: var(--gold);
}

.title-cn span::after {
  position: absolute;
  right: 0.02em;
  bottom: -0.08em;
  width: 92%;
  height: 0.06em;
  background: linear-gradient(90deg, transparent, var(--mucosa-bright), transparent);
  content: "";
  opacity: 0.65;
}

.title-en {
  display: block;
  margin: 20px 0 0 clamp(4px, 1vw, 16px);
  color: transparent;
  font-family: var(--mono);
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1.35;
  letter-spacing: 0.42em;
  -webkit-text-stroke: 1px rgba(243, 238, 228, 0.42);
}

.hero-lede {
  margin: clamp(32px, 5vh, 58px) 0 16px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: rgba(243, 238, 228, 0.57);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.primary-cta {
  gap: 26px;
  padding: 0 20px 0 25px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 14px 45px rgba(197, 164, 126, 0.12);
  transition: background 200ms ease, transform 200ms ease;
}

.primary-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.primary-cta svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.secondary-cta {
  padding: 0 25px;
  color: var(--paper-muted);
  background: transparent;
  border: 1px solid var(--line);
  transition: border-color 180ms ease, color 180ms ease;
}

.secondary-cta:hover {
  color: var(--paper);
  border-color: var(--line-bright);
}

.hero-visual {
  position: relative;
  min-height: min(660px, 68vh);
}

.hero-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(197, 164, 126, 0.28);
  border-radius: 50%;
  background: rgba(14, 16, 13, 0.42);
  box-shadow:
    inset 0 0 100px rgba(157, 70, 71, 0.09),
    0 0 160px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.hero-disc::before,
.hero-disc::after {
  position: absolute;
  z-index: 1;
  inset: -13%;
  border: 1px solid rgba(243, 238, 228, 0.07);
  border-radius: inherit;
  content: "";
}

.hero-disc::after {
  inset: 8%;
  border-color: rgba(197, 164, 126, 0.18);
}

.disc-ring {
  position: absolute;
  border: 1px solid rgba(243, 238, 228, 0.12);
  border-radius: 50%;
}

.disc-ring::before,
.disc-ring::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.disc-ring::before {
  top: 50%;
  left: -4px;
}

.disc-ring::after {
  top: 50%;
  right: -4px;
}

.disc-ring-one {
  inset: 8%;
  transform: rotate(22deg);
}

.disc-ring-two {
  inset: 19%;
  border-color: rgba(157, 70, 71, 0.35);
  transform: rotate(-38deg);
}

.disc-ring-three {
  inset: 31%;
  transform: rotate(80deg);
}

.mucosa-shape {
  position: absolute;
  inset: 22%;
  overflow: hidden;
  border: 1px solid rgba(197, 164, 126, 0.3);
  border-radius: 48% 52% 59% 41% / 43% 39% 61% 57%;
  background:
    radial-gradient(circle at 38% 35%, rgba(220, 177, 154, 0.86) 0 2%, transparent 3%),
    radial-gradient(circle at 54% 41%, rgba(157, 70, 71, 0.7) 0 8%, transparent 8.6%),
    radial-gradient(circle at 66% 59%, rgba(197, 164, 126, 0.25) 0 3%, transparent 3.8%),
    radial-gradient(circle at 44% 66%, rgba(197, 164, 126, 0.22) 0 2%, transparent 2.8%),
    radial-gradient(ellipse at 42% 46%, #b76c67, #824144 38%, #4a292b 65%, #1f211d 100%);
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(157, 70, 71, 0.2);
  animation: mucosa-breathe 7s ease-in-out infinite;
}

.mucosa-shape::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 40% 60% 44% 56% / 56% 34% 66% 44%;
  content: "";
}

.mucosa-core {
  position: absolute;
  top: 49%;
  left: 53%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(35, 24, 24, 0.74);
  box-shadow: 0 0 0 8px rgba(243, 238, 228, 0.07), 0 0 28px rgba(0, 0, 0, 0.65);
}

.mucosa-vein {
  position: absolute;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 238, 228, 0.45), transparent);
  transform-origin: right;
}

.vein-one {
  top: 36%;
  left: 8%;
  transform: rotate(-19deg);
}

.vein-two {
  top: 71%;
  left: 23%;
  transform: rotate(-52deg);
}

.vein-three {
  top: 30%;
  right: 1%;
  transform: rotate(50deg);
}

.disc-index {
  position: absolute;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--gold);
  border: 1px solid rgba(197, 164, 126, 0.4);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
}

.index-one {
  top: 2%;
  left: 50%;
}

.index-two {
  top: 50%;
  right: 2%;
}

.index-three {
  bottom: 2%;
  left: 50%;
}

.index-four {
  top: 50%;
  left: 2%;
}

.disc-center {
  position: absolute;
  z-index: 2;
  bottom: 15%;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  color: var(--paper-muted);
  border: 1px solid rgba(197, 164, 126, 0.4);
  border-radius: 100px;
  background: rgba(18, 20, 17, 0.82);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.disc-center strong {
  color: var(--gold-bright);
  font-size: 10px;
}

.floating-card {
  position: absolute;
  z-index: 4;
  min-width: 162px;
  padding: 17px 18px;
  border: 1px solid rgba(197, 164, 126, 0.38);
  background: rgba(24, 27, 23, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.floating-card span,
.floating-card small {
  display: block;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.floating-card strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.floating-card-one {
  top: 15%;
  left: -1%;
  transform: rotate(-4deg);
}

.floating-card-two {
  right: -2%;
  bottom: 14%;
  transform: rotate(3deg);
}

.floating-card-two strong {
  margin: 7px 0;
}

.waveform {
  display: flex;
  align-items: center;
  height: 18px;
  gap: 3px;
}

.waveform i {
  width: 2px;
  height: 30%;
  background: var(--mucosa-bright);
  animation: wave 1.6s ease-in-out infinite;
}

.waveform i:nth-child(2),
.waveform i:nth-child(6) {
  animation-delay: -0.4s;
}

.waveform i:nth-child(3),
.waveform i:nth-child(5) {
  animation-delay: -0.8s;
}

.waveform i:nth-child(4) {
  animation-delay: -1.2s;
}

.hero-ambient {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.membrane-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.45;
}

.orb-one {
  top: 2%;
  right: -8%;
  width: 34vw;
  aspect-ratio: 1;
  background: radial-gradient(circle at 38% 42%, transparent 0 32%, rgba(157, 70, 71, 0.16) 33% 36%, transparent 52%);
}

.orb-two {
  bottom: -22%;
  left: -12%;
  width: 44vw;
  aspect-ratio: 1;
  background: radial-gradient(circle at 48% 46%, rgba(14, 92, 87, 0.16), transparent 66%);
}

.orbit-line {
  position: absolute;
  border: 1px solid rgba(197, 164, 126, 0.1);
  border-radius: 50%;
}

.orbit-one {
  top: 10%;
  right: -16%;
  width: 52vw;
  aspect-ratio: 1;
}

.orbit-two {
  right: 1%;
  bottom: -32%;
  width: 40vw;
  aspect-ratio: 1;
}

.specimen-label {
  position: absolute;
  color: rgba(197, 164, 126, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.label-one {
  top: 22%;
  right: 2.5%;
}

.label-two {
  top: 36%;
  left: 2.4%;
}

.label-three {
  right: 5.5%;
  bottom: 17%;
}

.hero-foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1480px, 100%);
  margin: 30px auto 0;
  color: rgba(243, 238, 228, 0.37);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.hero-foot i {
  width: 64px;
  height: 1px;
  background: var(--line);
}

.hero-coordinate {
  margin-left: auto;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.22fr 1fr 0.72fr;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 150px) clamp(20px, 6vw, 96px);
  gap: clamp(22px, 4vw, 70px);
  border-bottom: 1px solid var(--line);
}

.section-index {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.manifesto-statement p {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.48;
}

.manifesto-statement p + p {
  margin-top: 14px;
  color: rgba(243, 238, 228, 0.36);
  font-size: clamp(20px, 2.25vw, 34px);
}

.manifesto-statement span {
  position: relative;
  color: var(--mucosa-bright);
}

.manifesto-meta {
  align-self: end;
  border-top: 1px solid var(--line);
}

.manifesto-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.manifesto-meta span {
  color: var(--paper-muted);
  font-size: 11px;
}

.manifesto-meta strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.game-shell {
  position: relative;
  width: min(1680px, calc(100% - clamp(24px, 5vw, 80px)));
  margin: clamp(70px, 9vw, 130px) auto;
  scroll-margin-top: calc(var(--header-h) + 14px);
  border: 1px solid rgba(197, 164, 126, 0.28);
  background:
    linear-gradient(rgba(243, 238, 228, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 228, 0.014) 1px, transparent 1px),
    linear-gradient(145deg, rgba(33, 37, 31, 0.98), rgba(18, 20, 17, 0.98));
  background-size: 54px 54px, 54px 54px, auto;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.4);
}

.game-shell::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 50%;
  width: 24%;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
}

.stage-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 18px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 17, 0.54);
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mucosa-bright);
  box-shadow: 0 0 0 5px rgba(199, 114, 109, 0.1);
}

.live-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--mucosa-bright);
  border-radius: inherit;
  content: "";
  animation: live-pulse 2.4s ease-out infinite;
}

.stage-title p,
.board-heading > div > span,
.panel-heading,
.hand-heading span,
.diagnosis-head,
.archive-heading > div > p {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.stage-title h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.case-progress {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--paper-muted);
  font-size: 10px;
}

.progress-label strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
}

.progress-label i {
  color: rgba(243, 238, 228, 0.28);
  font-style: normal;
}

.progress-label strong span:last-child {
  color: rgba(243, 238, 228, 0.4);
}

.progress-track {
  width: min(15vw, 190px);
  height: 2px;
  overflow: hidden;
  background: rgba(243, 238, 228, 0.12);
}

.progress-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--gold);
  transition: width 500ms var(--ease);
}

.reset-button {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  padding: 10px;
  color: rgba(243, 238, 228, 0.48);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reset-button:hover {
  color: var(--gold-bright);
}

.reset-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.7fr) minmax(230px, 0.82fr);
  min-height: 680px;
}

.case-panel,
.team-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 32px);
  background: rgba(18, 20, 17, 0.36);
}

.case-panel {
  border-right: 1px solid var(--line);
}

.team-panel {
  border-left: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span:last-child {
  color: rgba(243, 238, 228, 0.34);
}

.case-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 0;
}

.patient-number {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 70px;
  overflow: hidden;
  color: rgba(243, 238, 228, 0.18);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 35px;
}

.patient-number::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  content: "";
}

.case-identity p {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 18px;
}

.case-identity div span {
  color: var(--paper-muted);
  font-size: 10px;
}

.case-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.case-tabs button {
  position: relative;
  padding: 0 0 11px;
  color: rgba(243, 238, 228, 0.38);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.case-tabs button[aria-selected="true"] {
  color: var(--gold-bright);
}

.case-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
}

.case-tab-content {
  flex: 1;
  padding: 24px 0;
}

.case-tab-content h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 500;
  line-height: 1.45;
}

.case-tab-content blockquote {
  margin: 0 0 21px;
  padding: 4px 0 4px 16px;
  color: rgba(243, 238, 228, 0.8);
  border-left: 1px solid var(--mucosa-bright);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

.case-tab-content p {
  margin: 0;
  color: rgba(243, 238, 228, 0.48);
  font-size: 11px;
  line-height: 1.9;
}

.observation-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.observation-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(243, 238, 228, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.observation-list li span {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
}

.patient-monitor {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-muted);
  font-size: 9px;
}

.monitor-head strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.monitor-bars {
  display: flex;
  align-items: end;
  height: 26px;
  margin: 13px 0 10px;
  gap: 4px;
}

.monitor-bars i {
  flex: 1;
  height: 35%;
  background: rgba(197, 164, 126, 0.24);
  transition: height 450ms var(--ease), background 450ms ease;
}

.monitor-bars i:nth-child(3n) {
  height: 70%;
}

.monitor-bars i:nth-child(4n) {
  height: 48%;
}

.monitor-bars i.is-lit {
  background: var(--mucosa-bright);
}

.patient-monitor p {
  margin: 0;
  color: rgba(243, 238, 228, 0.32);
  font-size: 9px;
}

.board-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 50% 48%, rgba(157, 70, 71, 0.07), transparent 46%),
    rgba(18, 20, 17, 0.16);
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.board-heading h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.board-heading > p {
  margin: 6px 0 0;
  color: rgba(243, 238, 228, 0.36);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.board-heading > p span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 13px;
}

.sampling-board {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 430px;
  margin: 18px 0;
  overflow: hidden;
}

.sampling-board::before,
.sampling-board::after {
  position: absolute;
  background: rgba(243, 238, 228, 0.07);
  content: "";
}

.sampling-board::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.sampling-board::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.board-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(31vw, 400px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.board-rings span {
  position: absolute;
  border: 1px solid rgba(243, 238, 228, 0.1);
  border-radius: 50%;
}

.board-rings span:nth-child(1) {
  inset: 0;
  border-style: dashed;
  animation: slow-spin 75s linear infinite;
}

.board-rings span:nth-child(2) {
  inset: 12%;
}

.board-rings span:nth-child(3) {
  inset: 27%;
  border-color: rgba(197, 164, 126, 0.24);
}

.board-rings span:nth-child(4) {
  inset: 41%;
  border-color: rgba(157, 70, 71, 0.32);
}

.board-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(23vw, 290px);
  height: min(23vw, 290px);
  border: 1px solid rgba(197, 164, 126, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.board-crosshair::before,
.board-crosshair::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.board-crosshair::before {
  top: 50%;
  left: -4px;
}

.board-crosshair::after {
  top: 50%;
  right: -4px;
}

.board-membrane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(25vw, 310px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(157, 70, 71, 0.32);
  border-radius: 44% 56% 51% 49% / 55% 44% 56% 45%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(157, 70, 71, 0.2), rgba(157, 70, 71, 0.08) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: mucosa-breathe 8s ease-in-out infinite;
}

.board-membrane::before,
.board-membrane::after {
  position: absolute;
  border: 1px solid rgba(197, 164, 126, 0.1);
  border-radius: 50%;
  content: "";
}

.board-membrane::before {
  inset: 11%;
}

.board-membrane::after {
  inset: 27%;
  border-color: rgba(157, 70, 71, 0.24);
}

.cell {
  position: absolute;
  border: 1px solid rgba(243, 238, 228, 0.18);
  border-radius: 50%;
  background: rgba(197, 164, 126, 0.06);
}

.cell::after {
  position: absolute;
  top: 46%;
  left: 43%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.16);
  content: "";
}

.cell-a {
  top: 19%;
  left: 22%;
  width: 31px;
  height: 25px;
}

.cell-b {
  top: 52%;
  left: 17%;
  width: 18px;
  height: 16px;
}

.cell-c {
  top: 28%;
  right: 17%;
  width: 23px;
  height: 27px;
}

.cell-d {
  right: 23%;
  bottom: 18%;
  width: 38px;
  height: 30px;
}

.cell-e {
  bottom: 23%;
  left: 38%;
  width: 14px;
  height: 13px;
}

.sample-slots {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.sample-slot {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(78px, 7.5vw, 112px);
  height: clamp(92px, 9vw, 132px);
  padding: 10px;
  color: var(--gold);
  border: 1px dashed rgba(197, 164, 126, 0.38);
  border-radius: 4px;
  background: rgba(18, 20, 17, 0.78);
  pointer-events: auto;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.sample-slot:nth-child(1) {
  top: 12%;
  left: 7%;
  transform: rotate(-3deg);
}

.sample-slot:nth-child(2) {
  top: 8%;
  right: 7%;
  transform: rotate(3deg);
}

.sample-slot:nth-child(3) {
  right: 15%;
  bottom: 8%;
  transform: rotate(-2deg);
}

.sample-slot:hover:not(.is-filled) {
  border-color: var(--gold);
  background: rgba(197, 164, 126, 0.08);
}

.sample-slot.is-filled {
  border-style: solid;
  border-color: rgba(197, 164, 126, 0.7);
  background:
    linear-gradient(145deg, rgba(197, 164, 126, 0.12), rgba(157, 70, 71, 0.1)),
    var(--ink-soft);
  animation: card-place 460ms var(--ease);
}

.sample-slot.is-pulsing {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 8px rgba(197, 164, 126, 0.05);
}

.slot-plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(197, 164, 126, 0.62);
  border: 1px solid rgba(197, 164, 126, 0.35);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
}

.slot-data {
  text-align: left;
}

.slot-data small {
  display: block;
  color: rgba(243, 238, 228, 0.34);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.slot-data strong {
  display: block;
  margin-top: 8px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.45;
}

.board-center {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(22vw, 275px);
  padding: 14px;
  text-align: center;
  background: rgba(18, 20, 17, 0.55);
  transform: translate(-50%, -50%);
}

.board-center span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.board-center strong {
  margin: 7px 0 5px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.board-center small {
  color: rgba(243, 238, 228, 0.38);
  font-size: 8px;
}

.board-readout {
  position: absolute;
  display: flex;
  flex-direction: column;
  color: rgba(243, 238, 228, 0.28);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.board-readout strong {
  margin-top: 2px;
  color: rgba(243, 238, 228, 0.54);
  font-size: 8px;
  font-weight: 400;
}

.readout-top {
  top: 2%;
  right: 0;
}

.readout-bottom {
  bottom: 1%;
  left: 0;
}

.diagnosis-drawer {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.diagnosis-head {
  display: flex;
  justify-content: space-between;
}

.diagnosis-head span:last-child {
  color: rgba(243, 238, 228, 0.3);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.diagnosis-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
  gap: 8px;
}

.diagnosis-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  color: rgba(243, 238, 228, 0.3);
  border: 1px solid rgba(243, 238, 228, 0.08);
  background: rgba(18, 20, 17, 0.48);
  font-size: 10px;
  text-align: left;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.diagnosis-option span:last-child {
  color: rgba(197, 164, 126, 0.32);
  font-family: var(--mono);
  font-size: 8px;
}

.diagnosis-options.is-unlocked .diagnosis-option:not(:disabled):hover {
  color: var(--paper);
  border-color: var(--line-bright);
  background: rgba(197, 164, 126, 0.06);
}

.diagnosis-option.is-correct {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.diagnosis-option.is-wrong {
  color: var(--mucosa-bright);
  border-color: var(--mucosa);
  background: rgba(157, 70, 71, 0.12);
}

.team-list {
  display: grid;
  padding: 16px 0;
  gap: 4px;
}

.team-member {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  padding: 7px 8px;
  border: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.team-member.is-active {
  border-color: rgba(197, 164, 126, 0.17);
  background: rgba(197, 164, 126, 0.035);
}

.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  color: var(--paper);
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}

.avatar-a {
  background: rgba(157, 70, 71, 0.5);
}

.avatar-b {
  background: rgba(14, 92, 87, 0.55);
}

.avatar-c {
  background: rgba(151, 136, 99, 0.55);
}

.avatar-d {
  background: rgba(87, 94, 80, 0.55);
}

.member-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.member-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.member-copy small {
  color: rgba(243, 238, 228, 0.33);
  font-size: 8px;
}

.member-state {
  margin-left: auto;
  color: rgba(243, 238, 228, 0.22);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.team-member.is-active .member-state {
  color: var(--gold);
}

.turn-note {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.turn-note span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.turn-note p {
  margin: 9px 0 0;
  color: rgba(243, 238, 228, 0.5);
  font-size: 10px;
  line-height: 1.8;
}

.turn-note p span {
  color: var(--paper);
  font-family: var(--sans);
  font-size: inherit;
  letter-spacing: 0;
}

.murmur-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(157, 70, 71, 0.3);
  background:
    linear-gradient(145deg, rgba(157, 70, 71, 0.1), transparent 64%),
    rgba(18, 20, 17, 0.48);
}

.murmur-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.murmur-head > span {
  color: var(--mucosa-bright);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.mini-wave {
  display: flex;
  align-items: center;
  height: 14px;
  gap: 2px;
}

.mini-wave i {
  width: 1px;
  height: 55%;
  background: var(--mucosa-bright);
  animation: wave 2s ease-in-out infinite;
}

.mini-wave i:nth-child(2),
.mini-wave i:nth-child(4) {
  height: 90%;
  animation-delay: -0.5s;
}

.mini-wave i:nth-child(3) {
  height: 40%;
  animation-delay: -1s;
}

.murmur-card p {
  margin: 17px 0 15px;
  color: rgba(243, 238, 228, 0.84);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.murmur-card small {
  color: rgba(243, 238, 228, 0.3);
  font-size: 8px;
}

.hand-dock {
  padding: clamp(18px, 2.3vw, 28px) clamp(18px, 3vw, 36px) clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  background: rgba(18, 20, 17, 0.58);
}

.hand-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hand-heading h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hand-heading p {
  margin: 0;
  color: rgba(243, 238, 228, 0.34);
  font-size: 9px;
}

.hand-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1.2vw, 16px);
}

.hand-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  min-height: 112px;
  padding: 16px 17px;
  overflow: hidden;
  color: var(--paper);
  border: 1px solid rgba(243, 238, 228, 0.13);
  background:
    linear-gradient(120deg, rgba(243, 238, 228, 0.035), transparent 50%),
    rgba(30, 33, 28, 0.86);
  text-align: left;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.hand-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 1px solid rgba(197, 164, 126, 0.55);
  border-right: 1px solid rgba(197, 164, 126, 0.55);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.hand-card:not(:disabled):hover {
  border-color: rgba(197, 164, 126, 0.55);
  background:
    linear-gradient(120deg, rgba(197, 164, 126, 0.09), transparent 50%),
    rgba(30, 33, 28, 0.92);
  transform: translateY(-4px);
}

.hand-card:not(:disabled):hover::before {
  opacity: 1;
}

.hand-card:disabled {
  opacity: 0.38;
}

.hand-card.is-used {
  opacity: 0.28;
}

.hand-card-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 62px;
  border: 1px solid rgba(197, 164, 126, 0.3);
  border-radius: 2px;
}

.hand-card-glyph::before,
.hand-card-glyph::after {
  position: absolute;
  border: 1px solid rgba(197, 164, 126, 0.45);
  border-radius: 50%;
  content: "";
}

.hand-card-glyph::before {
  width: 19px;
  height: 25px;
  transform: rotate(23deg);
}

.hand-card-glyph::after {
  width: 6px;
  height: 6px;
  background: var(--mucosa);
}

.hand-card-copy {
  min-width: 0;
}

.hand-card-copy small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.hand-card-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hand-card-copy span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(243, 238, 228, 0.4);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hand-card-arrow {
  color: rgba(197, 164, 126, 0.52);
  font-family: var(--mono);
  font-size: 15px;
}

.archive {
  width: min(1480px, calc(100% - clamp(40px, 12vw, 190px)));
  margin: clamp(100px, 13vw, 190px) auto;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.archive-heading {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 45px;
}

.archive-heading h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.7vw, 72px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.archive-heading > p {
  margin: 0;
  color: rgba(243, 238, 228, 0.42);
  font-size: 12px;
  line-height: 1.9;
}

.archive-list {
  border-top: 1px solid var(--line);
}

.archive-case {
  position: relative;
  display: grid;
  grid-template-columns: 80px 120px 1fr 40px;
  align-items: center;
  width: 100%;
  min-height: 150px;
  padding: 15px 8px 15px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 250ms ease, padding 250ms ease;
}

.archive-case:hover,
.archive-case.is-current {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(197, 164, 126, 0.07), transparent 60%);
}

.archive-no {
  align-self: start;
  padding-top: 9px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.archive-glyph {
  position: relative;
  width: 72px;
  height: 96px;
  border: 1px solid rgba(197, 164, 126, 0.28);
  background: var(--ink-soft);
  transition: transform 250ms var(--ease);
}

.archive-case:hover .archive-glyph {
  transform: rotate(-3deg) scale(1.04);
}

.archive-glyph::before,
.archive-glyph::after {
  position: absolute;
  content: "";
}

.glyph-one::before {
  top: 18px;
  left: 18px;
  width: 30px;
  height: 38px;
  border: 1px solid rgba(199, 114, 109, 0.6);
  border-radius: 50%;
  box-shadow: 7px 10px 0 -2px rgba(157, 70, 71, 0.36);
}

.glyph-one::after {
  right: 8px;
  bottom: 10px;
  width: 35px;
  height: 1px;
  background: var(--gold);
  transform: rotate(-34deg);
}

.glyph-two::before {
  inset: 16px 12px;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(197, 164, 126, 0.38) 9px 10px);
}

.glyph-three::before {
  top: 20px;
  left: 22px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(199, 114, 109, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(157, 70, 71, 0.08);
}

.glyph-three::after {
  top: 33px;
  left: 35px;
  width: 2px;
  height: 2px;
  background: var(--paper);
  border-radius: 50%;
}

.archive-copy {
  display: flex;
  flex-direction: column;
  padding: 0 30px;
}

.archive-copy small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.archive-copy strong {
  margin: 7px 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.35vw, 34px);
  font-weight: 500;
  line-height: 1.35;
}

.archive-copy > span {
  color: rgba(243, 238, 228, 0.34);
  font-size: 10px;
}

.archive-arrow {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 20px;
  transition: transform 200ms ease;
}

.archive-case:hover .archive-arrow {
  transform: translate(4px, -4px);
}

.closing-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(100px, 15vw, 210px) 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(157, 70, 71, 0.13), transparent 31rem);
}

.closing-note p {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.closing-note h2 {
  max-width: 870px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 5.8vw, 84px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.closing-note a {
  margin-top: 43px;
  padding-bottom: 7px;
  color: var(--paper-muted);
  border-bottom: 1px solid var(--line-bright);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.closing-note a span {
  display: inline-block;
  margin-left: 15px;
  transition: transform 180ms ease;
}

.closing-note a:hover span {
  transform: translateX(4px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  align-items: end;
  width: min(1480px, calc(100% - clamp(40px, 12vw, 190px)));
  margin: 0 auto;
  padding: 55px 0 65px;
  gap: 35px;
}

.site-footer strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-footer p,
.site-footer span {
  margin: 7px 0 0;
  color: rgba(243, 238, 228, 0.28);
  font-size: 9px;
}

.site-footer > p {
  margin: 0;
}

.site-footer > span {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.modal {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--paper);
  border: 1px solid rgba(197, 164, 126, 0.42);
  background: var(--ink);
  box-shadow: 0 40px 150px rgba(0, 0, 0, 0.75);
}

.modal::backdrop {
  background: rgba(5, 6, 5, 0.78);
  backdrop-filter: blur(12px);
}

.modal[open] {
  animation: modal-in 360ms var(--ease);
}

.modal-shell {
  position: relative;
  padding: clamp(28px, 4vw, 50px);
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 20, 17, 0.82);
}

.modal-close:hover {
  color: var(--paper);
  border-color: var(--line-bright);
}

.modal-close svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.clue-shell {
  padding: 0;
}

.clue-card-large {
  position: relative;
  min-height: 490px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(197, 164, 126, 0.28);
  background:
    linear-gradient(rgba(197, 164, 126, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 164, 126, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #252a23, #151713);
  background-size: 28px 28px, 28px 28px, auto;
}

.clue-card-large::after {
  position: absolute;
  right: -15%;
  bottom: -31%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(197, 164, 126, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(197, 164, 126, 0.025), 0 0 0 52px rgba(197, 164, 126, 0.018);
  content: "";
}

.clue-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.clue-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 45px 0 23px;
  border: 1px solid rgba(197, 164, 126, 0.28);
  border-radius: 50%;
}

.clue-symbol::before {
  width: 59px;
  height: 76px;
  border: 1px solid rgba(199, 114, 109, 0.62);
  border-radius: 48% 52% 55% 45% / 38% 45% 55% 62%;
  box-shadow:
    inset 0 0 20px rgba(157, 70, 71, 0.3),
    0 0 34px rgba(157, 70, 71, 0.18);
  content: "";
  transform: rotate(-16deg);
}

.clue-symbol::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mucosa-bright);
  box-shadow: 18px 12px 0 -2px rgba(243, 238, 228, 0.4), -15px -18px 0 -2px rgba(197, 164, 126, 0.55);
  content: "";
}

.clue-kicker {
  margin: 0 0 8px;
  color: var(--mucosa-bright);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.clue-card-large h2 {
  max-width: 470px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 5vw, 47px);
  font-weight: 500;
  line-height: 1.3;
}

.clue-description {
  max-width: 500px;
  margin: 17px 0 0;
  color: rgba(243, 238, 228, 0.6);
  font-size: 12px;
  line-height: 1.9;
}

.clue-card-large blockquote {
  max-width: 470px;
  margin: 23px 0 65px;
  padding-left: 15px;
  color: var(--gold-bright);
  border-left: 1px solid var(--mucosa-bright);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.clue-foot {
  position: absolute;
  right: 26px;
  bottom: 21px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  color: rgba(243, 238, 228, 0.3);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 10px;
}

.modal-actions .secondary-cta,
.modal-actions .primary-cta {
  min-height: 48px;
}

.rules-modal {
  width: min(770px, calc(100vw - 32px));
}

.rules-shell {
  padding: clamp(32px, 5vw, 62px);
}

.modal-eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.rules-shell h2,
.result-shell h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.rules-lede {
  max-width: 590px;
  margin: 17px 0 0;
  color: rgba(243, 238, 228, 0.55);
  font-size: 12px;
  line-height: 1.9;
}

.rules-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 33px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rules-steps article {
  min-height: 190px;
  padding: 24px 20px 24px 0;
}

.rules-steps article + article {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.rules-steps article > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
}

.rules-steps h3 {
  margin: 19px 0 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.rules-steps p {
  margin: 0;
  color: rgba(243, 238, 228, 0.43);
  font-size: 10px;
  line-height: 1.85;
}

.rules-tip {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 17px;
  border: 1px solid rgba(157, 70, 71, 0.26);
  background: rgba(157, 70, 71, 0.07);
}

.rules-tip span {
  flex: 0 0 auto;
  color: var(--mucosa-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.rules-tip p {
  margin: 0;
  color: rgba(243, 238, 228, 0.56);
  font-size: 10px;
}

.rules-start {
  width: 100%;
}

.result-modal {
  width: min(580px, calc(100vw - 32px));
}

.result-shell {
  padding: clamp(32px, 5vw, 57px);
  text-align: center;
}

.result-shell .modal-eyebrow {
  margin-top: 23px;
}

.result-mark {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}

.result-mark::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(197, 164, 126, 0.28);
  border-radius: 50%;
  content: "";
}

.result-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.result-mark span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.result-mark span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.result-mark.is-miss span:first-child {
  background: var(--mucosa-bright);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.result-mark.is-miss span:last-child {
  background: var(--mucosa-bright);
  transform: translate(-50%, -50%) rotate(45deg);
}

.result-diagnosis {
  margin: 24px 0 10px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(22px, 3.8vw, 31px);
}

.result-summary {
  max-width: 430px;
  margin: 0 auto;
  color: rgba(243, 238, 228, 0.52);
  font-size: 11px;
  line-height: 1.9;
}

.result-note {
  margin: 27px 0 5px;
  padding: 18px;
  border: 1px solid var(--line);
  text-align: left;
}

.result-note span {
  color: var(--mucosa-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.result-note p {
  margin: 8px 0 0;
  color: rgba(243, 238, 228, 0.67);
  font-size: 11px;
  line-height: 1.8;
}

.result-shell .modal-actions {
  justify-content: center;
}

.toast {
  position: fixed;
  z-index: 400;
  right: 20px;
  bottom: 20px;
  max-width: min(370px, calc(100vw - 40px));
  padding: 13px 17px;
  color: var(--paper);
  border: 1px solid var(--line-bright);
  background: rgba(26, 29, 24, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes mucosa-breathe {
  0%,
  100% {
    border-radius: 48% 52% 59% 41% / 43% 39% 61% 57%;
    transform: scale(1) rotate(0deg);
  }
  50% {
    border-radius: 55% 45% 46% 54% / 52% 55% 45% 48%;
    transform: scale(1.018) rotate(1.5deg);
  }
}

@keyframes wave {
  0%,
  100% {
    height: 28%;
  }
  50% {
    height: 100%;
  }
}

@keyframes live-pulse {
  from {
    opacity: 0.8;
    transform: scale(0.65);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-place {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
  }

  .floating-card {
    display: none;
  }

  .manifesto {
    grid-template-columns: 0.12fr 1fr 0.7fr;
  }

  .game-grid {
    grid-template-columns: minmax(210px, 0.72fr) minmax(400px, 1.55fr);
  }

  .team-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .team-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .team-list {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .turn-note {
    border-top: 0;
  }

  .murmur-card {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand-copy small,
  .sound-button,
  .back-link span {
    display: none;
  }

  .back-link {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 70px);
    padding-bottom: 26px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
  }

  .title-cn {
    font-size: clamp(70px, 20vw, 115px);
  }

  .title-en {
    margin-top: 17px;
  }

  .hero-lede {
    max-width: 500px;
    font-size: clamp(21px, 6vw, 29px);
  }

  .hero-description {
    max-width: 480px;
  }

  .hero-visual {
    min-height: 370px;
    margin-top: 10px;
  }

  .hero-disc {
    width: min(84vw, 350px);
  }

  .label-one,
  .label-two {
    display: none;
  }

  .hero-foot {
    margin-top: 0;
  }

  .hero-coordinate {
    display: none;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding-top: 75px;
    padding-bottom: 70px;
  }

  .section-index {
    display: none;
  }

  .manifesto-meta {
    margin-top: 32px;
  }

  .game-shell {
    width: calc(100% - 20px);
    margin: 60px auto;
  }

  .stage-topbar {
    grid-template-columns: 1fr auto;
    padding: 16px;
  }

  .case-progress {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 17px;
  }

  .progress-track {
    flex: 1;
    width: auto;
  }

  .reset-button span {
    display: none;
  }

  .reset-button {
    width: 44px;
    justify-content: center;
  }

  .game-grid {
    display: flex;
    flex-direction: column;
  }

  .case-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-tab-content {
    min-height: 210px;
  }

  .patient-monitor {
    margin-top: 0;
  }

  .board-panel {
    min-height: 620px;
  }

  .sampling-board {
    min-height: 390px;
  }

  .board-rings {
    width: min(73vw, 360px);
  }

  .board-membrane {
    width: min(54vw, 265px);
  }

  .board-crosshair {
    width: min(59vw, 290px);
    height: min(59vw, 290px);
  }

  .sample-slot {
    width: 81px;
    height: 104px;
  }

  .sample-slot:nth-child(1) {
    left: 0;
  }

  .sample-slot:nth-child(2) {
    right: 0;
  }

  .sample-slot:nth-child(3) {
    right: 8%;
    bottom: 3%;
  }

  .board-center {
    width: 200px;
  }

  .team-panel {
    display: flex;
  }

  .team-list {
    width: 100%;
  }

  .turn-note {
    border-top: 1px solid var(--line);
  }

  .hand-cards {
    display: flex;
    padding-bottom: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hand-card {
    flex: 0 0 min(80vw, 360px);
    scroll-snap-align: start;
  }

  .archive {
    width: calc(100% - 40px);
    margin: 100px auto;
  }

  .archive-heading {
    grid-template-columns: 1fr;
  }

  .archive-case {
    grid-template-columns: 42px 76px 1fr 24px;
    min-height: 130px;
  }

  .archive-glyph {
    width: 58px;
    height: 80px;
  }

  .archive-copy {
    padding: 0 14px;
  }

  .archive-copy small {
    font-size: 7px;
  }

  .archive-copy strong {
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    align-items: start;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-cta,
  .hero-actions .secondary-cta {
    width: 100%;
  }

  .hero-visual {
    min-height: 325px;
  }

  .disc-center {
    bottom: 9%;
  }

  .manifesto-statement p {
    font-size: 30px;
  }

  .manifesto-statement p + p {
    font-size: 21px;
  }

  .board-heading > p {
    display: none;
  }

  .board-panel {
    min-height: 590px;
    padding: 20px 14px;
  }

  .sample-slot {
    width: 70px;
    height: 94px;
    padding: 7px;
  }

  .sample-slot:nth-child(1) {
    top: 6%;
  }

  .sample-slot:nth-child(2) {
    top: 4%;
  }

  .slot-data small {
    font-size: 5px;
  }

  .slot-data strong {
    margin-top: 5px;
    font-size: 11px;
  }

  .board-center {
    width: 164px;
  }

  .board-center strong {
    font-size: 18px;
  }

  .diagnosis-head span:last-child {
    display: none;
  }

  .diagnosis-options {
    grid-template-columns: 1fr;
  }

  .hand-heading p {
    display: none;
  }

  .team-list {
    grid-template-columns: 1fr;
  }

  .archive-case {
    grid-template-columns: 31px 1fr 22px;
    padding: 14px 0;
  }

  .archive-glyph {
    display: none;
  }

  .archive-copy {
    padding: 0 10px 0 0;
  }

  .archive-copy > span {
    margin-top: 3px;
  }

  .archive-case:hover,
  .archive-case.is-current {
    padding-left: 7px;
  }

  .rules-steps {
    grid-template-columns: 1fr;
  }

  .rules-steps article {
    min-height: 0;
    padding: 18px 0;
  }

  .rules-steps article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Official game edition */
.title-sub {
  display: block;
  margin-top: 17px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 24px);
  letter-spacing: 0.46em;
}

.hero-specs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1480px, 100%);
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
}

.hero-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px 0 0;
}

.hero-specs span {
  color: rgba(243, 238, 228, 0.35);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-specs strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.quick-flow {
  width: min(1480px, calc(100% - clamp(40px, 10vw, 150px)));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.quick-flow-head {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  align-items: start;
  gap: 30px;
  margin-bottom: 52px;
}

.quick-flow-head > p,
.roles-ribbon > p,
.rules-intro > div > p,
.downloads-heading > p:first-child {
  margin: 5px 0 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.quick-flow-head h2,
.roles-ribbon > h2,
.rules-intro h2,
.downloads-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.quick-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.quick-flow-grid article {
  min-height: 240px;
  padding: 24px 26px 24px 0;
}

.quick-flow-grid article + article {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.quick-flow-grid article > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
}

.quick-flow-grid strong {
  display: block;
  margin: 54px 0 11px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.quick-flow-grid p {
  max-width: 230px;
  margin: 0;
  color: rgba(243, 238, 228, 0.4);
  font-size: 10px;
  line-height: 1.9;
}

.table-status {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
}

.table-status div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(243, 238, 228, 0.34);
  font-size: 9px;
}

.table-status strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.table-status b {
  font-size: 14px;
  font-weight: 400;
}

.table-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
}

.privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  color: rgba(243, 238, 228, 0.48);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 9px;
}

.privacy-toggle:hover,
.privacy-toggle[aria-pressed="true"] {
  color: var(--gold-bright);
  border-color: var(--line-bright);
}

.privacy-toggle svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.empty-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(70px, 10vw, 135px) 24px;
  text-align: center;
}

.empty-table-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}

.empty-table-mark span:last-child {
  margin-left: -16px;
}

.empty-table > p:first-of-type {
  margin: 24px 0 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.empty-table h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.3vw, 42px);
  font-weight: 500;
}

.empty-table > p:not(:first-of-type) {
  max-width: 500px;
  margin: 13px 0 25px;
  color: rgba(243, 238, 228, 0.45);
  font-size: 11px;
  line-height: 1.9;
}

.table-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(460px, 1.7fr) minmax(260px, 0.82fr);
  min-height: 720px;
}

.table-side {
  min-width: 0;
}

.file-stamp {
  margin: 23px 0 13px;
  color: rgba(243, 238, 228, 0.2);
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: 0.11em;
}

.panel-lede {
  margin: 0 0 19px;
  color: rgba(243, 238, 228, 0.38);
  font-size: 9px;
  line-height: 1.8;
}

.patient-list,
.player-list {
  display: grid;
  gap: 7px;
}

.patient-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(243, 238, 228, 0.075);
  background: rgba(18, 20, 17, 0.38);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.patient-row:hover {
  border-color: rgba(197, 164, 126, 0.4);
  background: rgba(197, 164, 126, 0.045);
}

.patient-row-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 39px;
  color: rgba(197, 164, 126, 0.62);
  border: 1px solid rgba(197, 164, 126, 0.25);
  font-family: var(--mono);
  font-size: 8px;
}

.patient-row-copy {
  min-width: 0;
}

.patient-row-copy strong,
.patient-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-row-copy strong {
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
}

.patient-row-copy small {
  margin-top: 4px;
  color: rgba(243, 238, 228, 0.36);
  font-size: 8px;
}

.patient-row-role {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.judge-tools {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.judge-tools span,
.deck-heading span,
.open-cards-head span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.judge-tools p {
  margin: 8px 0 0;
  color: rgba(243, 238, 228, 0.35);
  font-size: 8px;
  line-height: 1.7;
}

.board-heading h2 b {
  color: var(--gold-bright);
  font-weight: 500;
}

.text-action {
  padding: 9px 0;
  color: var(--paper-muted);
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.text-action:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.turn-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) 1.45fr;
  gap: clamp(20px, 3vw, 38px);
  margin: 24px 0 22px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coin-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.coin-button {
  position: relative;
  width: clamp(146px, 13vw, 190px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  perspective: 800px;
  background: transparent;
}

.coin-button::before {
  position: absolute;
  z-index: 2;
  inset: -9px;
  border: 1px solid rgba(197, 164, 126, 0.24);
  border-radius: 50%;
  content: "";
}

.coin-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 164, 126, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 31%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #d3b48b, #a47d4f);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), inset 0 0 0 7px rgba(18, 20, 17, 0.12);
  color: var(--ink);
  backface-visibility: hidden;
  transition: transform 600ms var(--ease);
}

.coin-face small {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.coin-face strong {
  margin: 8px 0 5px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.coin-face > span {
  font-size: 8px;
}

.coin-back {
  color: var(--paper);
  background:
    radial-gradient(circle at 38% 31%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(145deg, #343a31, #141712);
  transform: rotateY(180deg);
}

.coin-button.is-back .coin-front {
  transform: rotateY(180deg);
}

.coin-button.is-back .coin-back {
  transform: rotateY(360deg);
}

.coin-button.is-flipping {
  animation: coin-toss 700ms var(--ease);
}

.coin-caption {
  margin-top: 22px;
  text-align: center;
}

.coin-caption span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.coin-caption p {
  max-width: 190px;
  margin: 7px 0 0;
  color: rgba(243, 238, 228, 0.4);
  font-size: 8px;
  line-height: 1.7;
}

.deck-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
}

.deck-heading p {
  margin: 0;
  color: rgba(243, 238, 228, 0.28);
  font-size: 8px;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.deck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 13px 9px;
  overflow: hidden;
  color: var(--paper);
  border: 1px solid rgba(243, 238, 228, 0.12);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--deck-color) 25%, transparent), transparent 60%),
    rgba(27, 30, 26, 0.86);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.deck-card::before {
  width: 4px;
  height: 4px;
  border: 1px solid var(--deck-color);
  border-radius: 50%;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--deck-color) 10%, transparent);
  content: "";
}

.deck-card:hover:not(:disabled) {
  border-color: var(--deck-color);
  transform: translateY(-3px);
}

.deck-card:disabled {
  opacity: 0.35;
}

.deck-card span {
  color: var(--deck-color);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.09em;
}

.deck-card strong {
  display: block;
  margin-top: auto;
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
}

.deck-card small {
  display: block;
  margin-top: 6px;
  color: rgba(243, 238, 228, 0.33);
  font-family: var(--mono);
  font-size: 7px;
}

.judge-round {
  padding: 19px;
  border: 1px solid rgba(157, 70, 71, 0.27);
  background:
    linear-gradient(145deg, rgba(157, 70, 71, 0.08), transparent 60%),
    rgba(18, 20, 17, 0.42);
}

.judge-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.judge-round-head span {
  color: var(--mucosa-bright);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.judge-round-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.outline-action {
  min-height: 42px;
  padding: 0 16px;
  color: var(--gold-bright);
  border: 1px solid var(--line-bright);
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.outline-action:hover {
  color: var(--ink);
  background: var(--gold);
}

.judge-result {
  display: flex;
  align-items: center;
  min-height: 66px;
  margin-top: 16px;
  padding-top: 14px;
  gap: 14px;
  border-top: 1px solid rgba(243, 238, 228, 0.09);
}

.judge-result-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 19px;
}

.judge-result strong {
  display: block;
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
}

.judge-result p {
  margin: 5px 0 0;
  color: rgba(243, 238, 228, 0.38);
  font-size: 9px;
  line-height: 1.65;
}

.judge-answer-actions {
  display: flex;
  margin-left: auto;
  gap: 7px;
}

.judge-answer-actions button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
}

.judge-answer-actions button:hover {
  color: var(--gold-bright);
  border-color: var(--line-bright);
}

.player-card {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  min-height: 67px;
  padding: 8px;
  gap: 9px;
  border: 1px solid rgba(243, 238, 228, 0.075);
  background: rgba(18, 20, 17, 0.38);
  text-align: left;
}

.player-card.is-active {
  border-color: rgba(197, 164, 126, 0.43);
  background: rgba(197, 164, 126, 0.04);
}

.player-card .member-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.player-card-copy {
  min-width: 0;
}

.player-card-copy strong,
.player-card-copy small {
  display: block;
}

.player-card-copy strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card-copy small {
  margin-top: 3px;
  color: rgba(243, 238, 228, 0.32);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
}

.player-card-meta {
  text-align: right;
}

.player-card-meta b {
  display: block;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.player-card-meta small {
  color: rgba(243, 238, 228, 0.28);
  font-size: 7px;
}

.progress-cells {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  gap: 2px;
}

.progress-cells i {
  width: 5px;
  height: 3px;
  background: rgba(243, 238, 228, 0.12);
}

.progress-cells i.is-lit {
  background: var(--mucosa-bright);
}

.open-cards-block {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.open-cards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.open-cards-head strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
}

.open-cards-block > p {
  margin: 8px 0 0;
  color: rgba(243, 238, 228, 0.33);
  font-size: 8px;
  line-height: 1.75;
}

.open-card-stack {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 5px;
}

.open-card {
  position: relative;
  width: 38px;
  height: 50px;
  border: 1px solid rgba(197, 164, 126, 0.4);
  background:
    radial-gradient(circle at 50% 35%, rgba(197, 164, 126, 0.24) 0 3px, transparent 4px),
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(197, 164, 126, 0.07) 7px 8px),
    #1d211c;
}

.open-card::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 1px;
  background: rgba(197, 164, 126, 0.36);
  content: "";
}

.player-console {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 20px clamp(18px, 3vw, 36px);
  gap: 22px;
  border-top: 1px solid var(--line);
  background: rgba(18, 20, 17, 0.58);
}

.console-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.console-identity > span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 27px;
  padding: 0 8px;
  color: var(--ink);
  border-radius: 100px;
  background: var(--gold);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.console-identity strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.console-identity p {
  margin: 3px 0 0;
  color: rgba(243, 238, 228, 0.34);
  font-size: 8px;
}

.console-identity i {
  margin: 0 6px;
  font-style: normal;
}

.point-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.point-control button {
  width: 30px;
  height: 30px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.point-control button:hover {
  color: var(--gold-bright);
  border-color: var(--line-bright);
}

.point-control span {
  text-align: center;
}

.point-control b,
.point-control small {
  display: block;
}

.point-control b {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.point-control small {
  color: rgba(243, 238, 228, 0.28);
  font-size: 7px;
}

.console-actions {
  display: flex;
  gap: 6px;
}

.console-action {
  min-height: 42px;
  padding: 0 13px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
}

.console-action:hover {
  color: var(--gold-bright);
  border-color: var(--line-bright);
}

.console-action-gold {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.console-action:disabled {
  opacity: 0.3;
}

.roles-ribbon {
  width: min(1480px, calc(100% - clamp(40px, 10vw, 150px)));
  margin: 0 auto;
  padding: clamp(95px, 12vw, 170px) 0;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.roles-ribbon > h2 {
  max-width: 900px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 55px;
  border-top: 1px solid var(--line);
}

.role-grid article {
  min-height: 300px;
  padding: 26px 28px 26px 0;
}

.role-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.role-grid article > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.role-grid h3 {
  margin: 70px 0 13px;
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 500;
}

.role-grid p {
  max-width: 310px;
  margin: 0;
  color: rgba(243, 238, 228, 0.46);
  font-size: 11px;
  line-height: 1.9;
}

.role-grid small {
  display: block;
  margin-top: 25px;
  color: rgba(197, 164, 126, 0.7);
  font-size: 8px;
}

.role-highlight {
  background: linear-gradient(90deg, rgba(157, 70, 71, 0.07), transparent);
}

.rules-section {
  width: min(1480px, calc(100% - clamp(40px, 10vw, 150px)));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.rules-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 50px;
}

.rule-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.rule-badges span {
  padding: 8px 12px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  font-size: 8px;
}

.rules-accordion {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.rules-accordion details {
  border-bottom: 1px solid var(--line);
}

.rules-accordion summary {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  min-height: 82px;
  cursor: pointer;
  list-style: none;
}

.rules-accordion summary::-webkit-details-marker {
  display: none;
}

.rules-accordion summary > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
}

.rules-accordion summary {
  font-family: var(--serif);
  font-size: 18px;
}

.rules-accordion summary small {
  color: rgba(243, 238, 228, 0.28);
  font-family: var(--sans);
  font-size: 8px;
}

.rules-accordion summary::after {
  margin-left: 18px;
  color: var(--gold);
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
}

.rules-accordion details[open] summary::after {
  content: "−";
}

.rules-accordion details > div {
  max-width: 780px;
  padding: 0 0 28px 45px;
}

.rules-accordion details p {
  margin: 0 0 10px;
  color: rgba(243, 238, 228, 0.48);
  font-size: 11px;
  line-height: 1.9;
}

.rules-accordion details b {
  color: var(--gold-bright);
  font-weight: 500;
}

.rules-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 22px 25px;
  border: 1px solid rgba(197, 164, 126, 0.2);
  background: rgba(197, 164, 126, 0.045);
}

.rules-download strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.rules-download p {
  margin: 5px 0 0;
  color: rgba(243, 238, 228, 0.35);
  font-size: 9px;
}

.rules-download a {
  padding-bottom: 4px;
  color: var(--gold);
  border-bottom: 1px solid var(--line-bright);
  font-size: 9px;
}

.archive-heading > .archive-copy {
  padding: 0;
}

.archive-heading .archive-copy > p {
  margin: 0;
  color: rgba(243, 238, 228, 0.42);
  font-size: 11px;
  line-height: 1.9;
}

.archive-stats {
  display: flex;
  margin-top: 18px;
  gap: 22px;
}

.archive-stats span {
  color: rgba(243, 238, 228, 0.35);
  font-size: 8px;
}

.archive-stats b {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.archive-tools {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-search {
  display: flex;
  align-items: center;
  width: min(480px, 100%);
  min-height: 46px;
  padding: 0 16px;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 17, 0.5);
}

.archive-search:focus-within {
  border-color: var(--line-bright);
}

.archive-search svg {
  width: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.archive-search input {
  width: 100%;
  color: var(--paper);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
}

.archive-search input::placeholder {
  color: rgba(243, 238, 228, 0.25);
}

.chapter-chips {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.chapter-chip {
  min-height: 34px;
  padding: 0 11px;
  color: rgba(243, 238, 228, 0.4);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 8px;
}

.chapter-chip:hover,
.chapter-chip.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.disease-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.disease-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 175px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 17, 0.16);
  text-align: left;
  transition: background 180ms ease;
}

.disease-item:hover {
  background: rgba(197, 164, 126, 0.055);
}

.disease-item::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 3px;
  background: var(--chapter-color);
  content: "";
}

.disease-item > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.disease-item h3 {
  margin: auto 0 7px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}

.disease-item p {
  margin: 0;
  overflow: hidden;
  color: rgba(243, 238, 228, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disease-item small {
  margin-top: 12px;
  color: var(--chapter-color);
  font-size: 8px;
}

.archive-empty {
  padding: 50px 0;
  color: rgba(243, 238, 228, 0.36);
  text-align: center;
}

.downloads-section {
  width: min(1480px, calc(100% - clamp(40px, 10vw, 150px)));
  margin: 0 auto;
  padding: clamp(95px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.downloads-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.55fr;
  align-items: end;
  gap: 30px;
}

.downloads-heading > p:last-child {
  margin: 0;
  color: rgba(243, 238, 228, 0.42);
  font-size: 10px;
  line-height: 1.9;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.download-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 23px 23px 23px 0;
  transition: background 180ms ease, padding 180ms ease;
}

.download-grid a + a {
  padding-left: 23px;
  border-left: 1px solid var(--line);
}

.download-grid a:hover {
  background: rgba(197, 164, 126, 0.045);
}

.download-grid a > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.download-grid strong {
  margin: auto 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.download-grid p {
  margin: 0;
  color: rgba(243, 238, 228, 0.36);
  font-size: 9px;
}

.download-grid small {
  margin-top: 28px;
  color: rgba(197, 164, 126, 0.66);
  font-family: var(--mono);
  font-size: 8px;
}

.closing-note button {
  margin-top: 43px;
  padding: 0 0 7px;
  color: var(--paper-muted);
  border-bottom: 1px solid var(--line-bright);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.closing-note button span {
  display: inline-block;
  margin-left: 15px;
  transition: transform 180ms ease;
}

.closing-note button:hover span {
  transform: translateX(4px);
}

.setup-modal {
  width: min(790px, calc(100vw - 32px));
}

.setup-shell h2,
.privacy-modal h2,
.draw-modal h2,
.hand-modal h2,
.action-modal h2,
.choice-modal h2,
.quiz-modal h2,
.disease-modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.5vw, 49px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.setup-lede,
.privacy-lede {
  max-width: 590px;
  margin: 15px 0 28px;
  color: rgba(243, 238, 228, 0.46);
  font-size: 11px;
  line-height: 1.9;
}

.setup-step {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.setup-step > span,
.quiz-label {
  display: block;
  margin-bottom: 13px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.count-options {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.count-options button {
  min-height: 50px;
  color: rgba(243, 238, 228, 0.45);
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
}

.count-options button:hover,
.count-options button.is-selected {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.setup-step > p {
  margin: 11px 0 0;
  color: rgba(243, 238, 228, 0.33);
  font-size: 9px;
}

.setup-chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 245px;
  overflow: auto;
  gap: 6px;
}

.setup-chapter {
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  gap: 11px;
  color: rgba(243, 238, 228, 0.48);
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.setup-chapter::before {
  width: 5px;
  height: 26px;
  background: var(--chapter-color);
  content: "";
}

.setup-chapter span {
  font-size: 9px;
}

.setup-chapter small {
  color: rgba(243, 238, 228, 0.27);
  font-family: var(--mono);
  font-size: 7px;
}

.setup-chapter:hover,
.setup-chapter.is-selected {
  color: var(--paper);
  border-color: var(--line-bright);
}

.setup-chapter:disabled {
  opacity: 0.25;
}

.setup-warning {
  color: var(--mucosa-bright) !important;
}

.setup-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.setup-summary div {
  padding: 16px 0;
}

.setup-summary div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.setup-summary span,
.setup-summary strong {
  display: block;
}

.setup-summary span {
  color: rgba(243, 238, 228, 0.3);
  font-size: 8px;
}

.setup-summary strong {
  margin-top: 4px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.privacy-modal {
  width: min(600px, calc(100vw - 32px));
}

.curtain-card,
.draw-curtain {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
}

.curtain-cover {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(rgba(197, 164, 126, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 164, 126, 0.035) 1px, transparent 1px),
    #1b1e19;
  background-size: 25px 25px, 25px 25px, auto;
  text-align: center;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.curtain-cover > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.curtain-cover > strong {
  margin: 16px 0 24px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.curtain-cover > button {
  min-height: 44px;
  padding: 0 20px;
  color: var(--ink);
  border-radius: 100px;
  background: var(--gold);
  font-size: 9px;
}

.curtain-card:not(.is-covered) .curtain-cover,
.draw-curtain:not(.is-covered) .curtain-cover {
  visibility: hidden;
  opacity: 0;
}

.curtain-content,
.draw-card-content {
  min-height: 340px;
  padding: 32px;
  background:
    radial-gradient(circle at 75% 25%, rgba(157, 70, 71, 0.17), transparent 20rem),
    #191c17;
}

.curtain-content > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.curtain-content h3 {
  margin: 35px 0 24px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.privacy-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-facts div {
  padding: 16px 0;
}

.privacy-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.privacy-facts small,
.privacy-facts strong {
  display: block;
}

.privacy-facts small {
  color: rgba(243, 238, 228, 0.3);
  font-size: 8px;
}

.privacy-facts strong {
  margin-top: 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.curtain-content > p {
  margin: 18px 0 0;
  color: rgba(243, 238, 228, 0.42);
  font-size: 9px;
  line-height: 1.8;
}

.privacy-done {
  width: 100%;
  margin-top: 18px;
}

.draw-modal {
  width: min(600px, calc(100vw - 32px));
}

.draw-curtain {
  min-height: 440px;
}

.draw-card-content {
  min-height: 440px;
}

.draw-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.draw-card-content > p {
  margin: 50px 0 28px;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.draw-card-body {
  color: rgba(243, 238, 228, 0.7);
  font-size: 11px;
  line-height: 1.9;
}

.draw-card-body b {
  color: var(--paper);
  font-weight: 500;
}

.draw-card-content > small {
  display: block;
  margin-top: 34px;
  padding-top: 12px;
  color: rgba(243, 238, 228, 0.24);
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.hand-modal {
  width: min(850px, calc(100vw - 32px));
}

.hand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-height: 500px;
  overflow: auto;
  gap: 8px;
}

.hand-card-item {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(25, 28, 23, 0.7);
}

.hand-card-item-top {
  display: flex;
  justify-content: space-between;
  color: var(--type-color);
  font-family: var(--mono);
  font-size: 7px;
}

.hand-card-item h3 {
  margin: 21px 0 4px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.hand-card-item > p {
  margin: 0 0 12px;
  color: rgba(243, 238, 228, 0.36);
  font-family: var(--mono);
  font-size: 7px;
}

.hand-card-item .draw-card-body {
  max-height: 140px;
  overflow: auto;
  font-size: 9px;
}

.discard-card {
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 7px 10px;
  color: var(--mucosa-bright);
  border: 1px solid rgba(157, 70, 71, 0.35);
  background: transparent;
  font-size: 8px;
}

.discard-card:hover {
  background: rgba(157, 70, 71, 0.09);
}

.action-modal {
  width: min(760px, calc(100vw - 32px));
}

.action-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.action-options button {
  min-height: 230px;
  padding: 20px 18px 20px 0;
  color: var(--paper);
  background: transparent;
  text-align: left;
}

.action-options button + button {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.action-options button:hover {
  background: rgba(197, 164, 126, 0.04);
}

.action-options span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
}

.action-options strong {
  display: block;
  margin: 48px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.action-options small {
  color: rgba(243, 238, 228, 0.37);
  font-size: 9px;
  line-height: 1.75;
}

.action-note,
.choice-note {
  margin: 20px 0 0;
  padding: 12px 14px;
  color: rgba(199, 114, 109, 0.8);
  border: 1px solid rgba(157, 70, 71, 0.25);
  font-size: 9px;
}

.choice-modal {
  width: min(620px, calc(100vw - 32px));
}

.choice-list {
  display: grid;
  margin-top: 26px;
  gap: 7px;
}

.choice-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 0 16px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.choice-list button:hover {
  color: var(--paper);
  border-color: var(--line-bright);
  background: rgba(197, 164, 126, 0.045);
}

.choice-list small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
}

.quiz-modal {
  width: min(680px, calc(100vw - 32px));
}

.quiz-verse {
  margin: 30px 0;
  padding: 26px;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  background: rgba(157, 70, 71, 0.055);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.9;
  text-align: center;
}

.quiz-verse b {
  color: var(--gold-bright);
  font-weight: 500;
}

.quiz-lede {
  margin: 0 0 22px;
  color: rgba(243, 238, 228, 0.42);
  font-size: 10px;
  line-height: 1.8;
}

.quiz-modal select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #1b1e19;
  font-size: 10px;
}

.quiz-options {
  display: grid;
  gap: 7px;
}

.quiz-options button {
  min-height: 48px;
  padding: 0 15px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.quiz-options button:hover {
  color: var(--paper);
  border-color: var(--line-bright);
}

.quiz-pass {
  width: 100%;
  margin-top: 12px;
}

.disease-modal {
  width: min(800px, calc(100vw - 32px));
}

.disease-modal-shell {
  padding-top: 28px;
}

.disease-en {
  margin: 8px 0 24px;
  color: rgba(243, 238, 228, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.disease-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
}

.disease-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  color: rgba(243, 238, 228, 0.36);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
}

.disease-tab:hover,
.disease-tab.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.disease-card-view {
  min-height: 350px;
  margin-top: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(243, 238, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 228, 0.025) 1px, transparent 1px),
    #1a1d18;
  background-size: 24px 24px, 24px 24px, auto;
}

.disease-card-view h3 {
  margin: 0 0 6px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}

.disease-card-view > small {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.disease-card-body {
  color: rgba(243, 238, 228, 0.62);
  font-size: 11px;
  line-height: 1.9;
}

.disease-card-body .sec,
.disease-card-body .item,
.disease-card-body .hint {
  display: flex;
  gap: 12px;
  margin-bottom: 11px;
}

.disease-card-body .lab,
.disease-card-body .dot {
  flex: 0 0 34px;
  color: var(--mucosa-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.disease-card-body .txt {
  flex: 1;
}

.disease-card-body b {
  color: var(--paper);
  font-weight: 500;
}

.disease-card-body .chip {
  margin-right: 6px;
  padding: 1px 5px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  font-size: 7px;
}

.disease-card-body .verse {
  padding: 8px 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
}

.disease-card-body .sq {
  display: block;
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.disease-card-exam {
  margin-top: 20px;
  padding: 14px;
  color: rgba(243, 238, 228, 0.52);
  border: 1px solid rgba(157, 70, 71, 0.24);
  font-size: 9px;
  line-height: 1.8;
}

.disease-card-exam b {
  color: var(--mucosa-bright);
  font-weight: 500;
}

.disease-source-note {
  margin: 14px 0 0;
  color: rgba(243, 238, 228, 0.23);
  font-size: 8px;
}

@keyframes coin-toss {
  0% { transform: translateY(0) rotateY(0deg) scale(1); }
  45% { transform: translateY(-25px) rotateY(540deg) scale(1.04); }
  100% { transform: translateY(0) rotateY(1080deg) scale(1); }
}

@media (max-width: 1180px) {
  .table-grid {
    grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 1.5fr);
  }

  .table-grid .team-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .table-grid .team-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .table-grid .player-list {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .open-cards-block {
    margin-top: 0;
  }

  .player-console {
    grid-template-columns: 1fr auto;
  }

  .console-actions {
    grid-column: 1 / -1;
  }

  .disease-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .stage-topbar {
    grid-template-columns: 1fr auto;
  }

  .table-status {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .quick-flow-head,
  .rules-intro,
  .downloads-heading {
    grid-template-columns: 1fr;
  }

  .rule-badges {
    justify-content: flex-start;
  }

  .quick-flow-grid,
  .role-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-flow-grid article:nth-child(3),
  .role-grid article:nth-child(3),
  .download-grid a:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quick-flow-grid article:nth-child(4),
  .download-grid a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .table-grid {
    display: flex;
    flex-direction: column;
  }

  .case-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .patient-list {
    grid-template-columns: 1fr 1fr;
  }

  .judge-tools {
    margin-top: 18px;
  }

  .board-panel {
    min-height: 0;
  }

  .table-grid .team-panel {
    display: flex;
  }

  .player-list {
    grid-template-columns: 1fr 1fr;
  }

  .disease-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-specs {
    grid-template-columns: 1fr 1fr;
    row-gap: 13px;
  }

  .hero-specs div {
    padding-top: 12px;
  }

  .hero-specs div:nth-child(3),
  .hero-specs div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .title-sub {
    font-size: 13px;
    letter-spacing: 0.3em;
  }

  .quick-flow,
  .roles-ribbon,
  .rules-section,
  .downloads-section,
  .archive {
    width: calc(100% - 32px);
  }

  .quick-flow-grid,
  .role-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .quick-flow-grid article,
  .role-grid article,
  .download-grid a,
  .quick-flow-grid article + article,
  .role-grid article + article,
  .download-grid a + a {
    min-height: 0;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quick-flow-grid strong {
    margin: 24px 0 8px;
  }

  .role-grid h3 {
    margin: 28px 0 10px;
  }

  .download-grid strong {
    margin: 45px 0 8px;
  }

  .download-grid small {
    margin-top: 16px;
  }

  .privacy-toggle span {
    display: none;
  }

  .privacy-toggle {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .table-status {
    gap: 12px;
    overflow-x: auto;
  }

  .table-status div {
    flex: 0 0 auto;
  }

  .turn-layout {
    grid-template-columns: 1fr;
  }

  .coin-button {
    width: 155px;
  }

  .deck-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deck-card:last-child {
    grid-column: 1 / -1;
    min-height: 110px;
  }

  .judge-round-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .judge-answer-actions {
    width: 100%;
    margin-left: 0;
  }

  .judge-answer-actions button {
    flex: 1;
  }

  .patient-list,
  .player-list {
    grid-template-columns: 1fr;
  }

  .player-console {
    grid-template-columns: 1fr auto;
  }

  .console-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .console-action {
    min-height: 44px;
  }

  .rules-accordion summary {
    grid-template-columns: 30px 1fr auto;
    min-height: 74px;
    font-size: 16px;
  }

  .rules-accordion summary small {
    display: none;
  }

  .rules-accordion details > div {
    padding-left: 30px;
  }

  .rules-download {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .archive-heading h2 {
    font-size: 39px;
  }

  .disease-grid {
    grid-template-columns: 1fr 1fr;
  }

  .disease-item {
    min-height: 155px;
    padding: 13px;
  }

  .disease-item h3 {
    font-size: 17px;
  }

  .chapter-chips {
    flex-wrap: nowrap;
    padding-bottom: 7px;
    overflow-x: auto;
  }

  .chapter-chip {
    flex: 0 0 auto;
  }

  .count-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .setup-chapters {
    grid-template-columns: 1fr;
  }

  .setup-summary {
    grid-template-columns: 1fr;
  }

  .setup-summary div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hand-grid,
  .action-options {
    grid-template-columns: 1fr;
  }

  .action-options {
    max-height: 380px;
    overflow: auto;
  }

  .action-options button,
  .action-options button + button {
    min-height: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .action-options strong {
    margin: 17px 0 7px;
  }

  .archive-stats {
    flex-wrap: wrap;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .privacy-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
