:root {
  --fog: #dfe8ea;
  --fog-light: #edf3f3;
  --paper: #f7f7f2;
  --ink: #182d36;
  --ink-soft: #52656b;
  --line: #b9c9cb;
  --water: #2f6f73;
  --water-deep: #174c52;
  --coral: #e76e5b;
  --brass: #c9984a;
  --shadow: 0 24px 60px rgba(31, 61, 67, 0.12);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--fog);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.75), transparent 26rem),
    linear-gradient(130deg, #dce8e9 0%, #d8e2e4 50%, #e7ecea 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
}

button,
a,
input,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--coral);
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-screen {
  --landing-deep: #123f46;
  --landing-water: #2f6f73;
  --landing-mist: #e8f0ef;
  --landing-paper: #f8faf6;
  --landing-ink: #183039;
  --landing-muted: #607479;
  position: relative;
  min-height: 100svh;
  padding: 0 clamp(22px, 4vw, 72px) 30px;
  overflow: hidden;
  color: var(--landing-ink);
  background:
    radial-gradient(circle at 83% 37%, rgba(255, 255, 255, 0.82), transparent 28rem),
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.78), transparent 24rem),
    linear-gradient(132deg, #d9e6e6 0%, #e8eeeb 54%, #dce8e5 100%);
  isolation: isolate;
}

.landing-screen::before,
.landing-screen::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.landing-screen::before {
  top: -24vw;
  right: -18vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 111, 115, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(255, 255, 255, 0.08),
    0 0 0 16vw rgba(47, 111, 115, 0.035);
}

.landing-screen::after {
  inset: 0;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.landing-nav {
  display: flex;
  width: min(1320px, 100%);
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid rgba(44, 92, 97, 0.18);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.landing-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.landing-brand strong {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.08em;
}

.landing-brand small {
  color: var(--landing-muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.landing-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
}

.landing-brand-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--landing-deep);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.landing-brand-mark span:nth-child(1) { width: 36px; height: 36px; }
.landing-brand-mark span:nth-child(2) { width: 22px; height: 22px; }
.landing-brand-mark span:nth-child(3) { width: 7px; height: 7px; border: 0; background: var(--coral); }

.landing-account {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 7px;
  color: var(--landing-deep);
  border: 1px solid rgba(47, 111, 115, 0.28);
  border-radius: 999px;
  background: rgba(248, 250, 246, 0.52);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.landing-account:hover { background: rgba(248, 250, 246, 0.9); transform: translateY(-1px); }

.landing-account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--landing-water);
  font-family: var(--display);
}

.landing-account-avatar svg { width: 14px; height: 14px; }

.landing-main {
  display: grid;
  width: min(1320px, 100%);
  min-height: min(690px, calc(100svh - 210px));
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(34px, 7vw, 108px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(46px, 7vh, 82px) 0 clamp(38px, 5vh, 64px);
}

.landing-copy { position: relative; z-index: 2; }

.landing-kicker {
  margin: 0 0 16px;
  color: var(--landing-water);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.landing-copy h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.landing-copy h1 span { display: block; color: var(--landing-water); }

.landing-lead {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.9;
}

.landing-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.landing-choice {
  position: relative;
  display: grid;
  min-height: 196px;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 1fr auto;
  gap: 18px 15px;
  padding: 24px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(35, 81, 86, 0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.landing-choice::after {
  position: absolute;
  right: -44px;
  bottom: -58px;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.1;
  box-shadow: 0 0 0 18px currentColor, 0 0 0 36px currentColor;
}

.landing-choice:hover {
  z-index: 1;
  border-color: rgba(23, 76, 82, 0.48);
  box-shadow: 0 18px 34px rgba(31, 66, 70, 0.13);
  transform: translateY(-4px);
}

.landing-choice:active { transform: translateY(-1px) scale(0.985); }

.landing-choice-join {
  color: #f3faf7;
  border-color: var(--landing-deep);
  background: var(--landing-deep);
}

.landing-choice-create {
  color: var(--landing-ink);
  background: rgba(248, 250, 246, 0.78);
  backdrop-filter: blur(12px);
}

.landing-choice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.13);
}

.landing-choice-create .landing-choice-icon { color: var(--landing-water); background: #dce9e6; }
.landing-choice-icon svg { width: 21px; height: 21px; }

.landing-choice-copy { display: grid; align-content: start; gap: 5px; }
.landing-choice-copy small { color: inherit; font-family: var(--utility); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.66; }
.landing-choice-copy strong { font-family: var(--display); font-size: 20px; }
.landing-choice-copy > span { max-width: 250px; color: inherit; font-size: 11px; line-height: 1.65; opacity: 0.7; }

.landing-choice-arrow {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.74;
}

.landing-choice:hover .landing-choice-arrow svg { transform: translateX(4px); }
.landing-choice-arrow svg { transition: transform 180ms ease; }

.landing-resume {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  color: var(--landing-water);
  border: 0;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.landing-resume svg { width: 14px; height: 14px; }

.landing-scene {
  position: relative;
  display: grid;
  width: min(100%, 530px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
}

.landing-ripple {
  position: absolute;
  border: 1px solid rgba(47, 111, 115, 0.28);
  border-radius: 50%;
  animation: landing-breathe 5s ease-in-out infinite;
}

.landing-ripple-one { width: 96%; height: 58%; }
.landing-ripple-two { width: 76%; height: 46%; animation-delay: -1.4s; }
.landing-ripple-three { width: 57%; height: 34%; animation-delay: -2.8s; }

.landing-bowl {
  position: relative;
  z-index: 2;
  width: 72%;
  filter: drop-shadow(0 26px 24px rgba(25, 68, 73, 0.18));
}

.landing-bowl-rim {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 48px 62px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(10, 49, 55, 0.44);
  border-radius: 48% 48% 46% 46% / 34% 34% 66% 66%;
  background: var(--landing-deep);
}

.landing-bowl-rim::after {
  position: absolute;
  inset: 16px 20px auto;
  height: 44px;
  content: "";
  border: 1px solid rgba(232, 245, 241, 0.18);
  border-radius: 50%;
}

.landing-bowl-rim span { color: #8ebbb7; font-family: var(--utility); font-size: 9px; letter-spacing: 0.16em; }
.landing-bowl-rim strong { margin-top: 12px; color: #eff8f4; font-family: var(--display); font-size: clamp(17px, 2vw, 22px); line-height: 1.8; }

.landing-bowl-foot {
  width: 42%;
  height: 16px;
  margin: -3px auto 0;
  border-radius: 0 0 50% 50%;
  background: #0d353b;
}

.landing-steam {
  position: absolute;
  z-index: 3;
  top: -38px;
  width: 22px;
  height: 80px;
  border-left: 2px solid rgba(47, 111, 115, 0.34);
  border-radius: 50%;
  animation: steam 4s ease-in-out infinite;
}

.landing-steam-one { left: 42%; }
.landing-steam-two { left: 58%; animation-delay: -1.8s; }

.landing-answer {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 54px;
  height: 38px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--landing-paper);
  box-shadow: 0 10px 24px rgba(27, 70, 74, 0.13);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.landing-answer-yes { top: 18%; left: 5%; color: var(--landing-water); transform: rotate(-7deg); }
.landing-answer-no { top: 12%; right: 9%; color: #a24a40; transform: rotate(7deg); }
.landing-answer-irrelevant { right: 1%; bottom: 25%; color: #6d7780; transform: rotate(-4deg); }

.landing-scene > p {
  position: absolute;
  bottom: 2%;
  margin: 0;
  color: var(--landing-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.landing-guide {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 92, 97, 0.18);
}

.landing-guide ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-guide li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.landing-guide li > span {
  grid-row: 1 / 3;
  color: var(--coral);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
}

.landing-guide strong { font-size: 11px; }
.landing-guide small { margin-top: 3px; color: var(--landing-muted); font-size: 9px; }

@keyframes landing-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.92; transform: scale(1.02); }
}

.app-shell {
  position: relative;
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 28px 28px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  border-bottom: 1px solid rgba(61, 91, 96, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  margin-right: 12px;
}

.brand-mark span {
  position: absolute;
  left: 50%;
  border: 1px solid var(--water-deep);
  border-radius: 50%;
  transform: translateX(-50%);
}

.brand-mark span:nth-child(1) { inset: 4px 4px auto; width: 30px; height: 30px; }
.brand-mark span:nth-child(2) { inset: 10px 10px auto; width: 18px; height: 18px; }
.brand-mark span:nth-child(3) { inset: 16px 16px auto; width: 6px; height: 6px; background: var(--coral); border: 0; }

.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-tagline {
  margin-left: 16px;
  padding-left: 16px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.room-meta,
.header-actions,
.meta-item {
  display: flex;
  align-items: center;
}

.room-meta {
  gap: 18px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 12px;
}

.room-id {
  padding: 7px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.meta-item { gap: 6px; }

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.account-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--water-deep);
  border: 1px solid rgba(47, 111, 115, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.26);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover { background: rgba(255, 255, 255, 0.5); }
.theme-toggle svg { width: 15px; height: 15px; }

.account-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--water);
  font-family: var(--display);
  font-size: 11px;
}

.account-avatar svg { width: 14px; height: 14px; }

.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.button-primary {
  color: white;
  background: var(--water-deep);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: transparent;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.84fr) minmax(520px, 1.32fr) minmax(280px, 0.7fr);
  gap: 14px;
  min-height: calc(100vh - 114px);
  padding-top: 14px;
}

.case-panel,
.conversation-panel,
.players-panel {
  min-width: 0;
  border: 1px solid rgba(106, 137, 142, 0.25);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.case-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  background: rgba(244, 248, 247, 0.58);
}

.panel-heading,
.conversation-header,
.players-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--water);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 5px 1px 0;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(231, 110, 91, 0.15);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--display);
}

h1 {
  font-size: clamp(27px, 2.2vw, 38px);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.difficulty {
  padding-top: 18px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 11px;
}

.soup-stage {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 410px;
  place-items: center;
  margin: 18px -4px 10px;
  isolation: isolate;
}

.soup-stage::before {
  position: absolute;
  z-index: -3;
  width: min(92%, 520px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.72), rgba(218,231,231,0.3) 54%, transparent 55%);
}

.ripple {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(47, 111, 115, 0.22);
  border-radius: 50%;
  animation: breathe 5s ease-in-out infinite;
}

.ripple-one { width: 70%; aspect-ratio: 1.5; }
.ripple-two { width: 88%; aspect-ratio: 1.58; animation-delay: -1.2s; }
.ripple-three { width: 106%; aspect-ratio: 1.7; animation-delay: -2.5s; }

.soup-bowl {
  position: relative;
  width: min(82%, 420px);
  filter: drop-shadow(0 28px 28px rgba(28, 70, 76, 0.16));
}

.bowl-rim {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 58px 50px;
  overflow: hidden;
  text-align: center;
  border: 10px solid #f5f7f2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 29%, rgba(255,255,255,0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 63%, rgba(255,255,255,0.23) 0 2px, transparent 3px),
    radial-gradient(ellipse at center, #528d8d, var(--water-deep) 76%);
  box-shadow: 0 0 0 1px #bccdcc, 0 9px 0 #cdd9d7, 0 12px 0 #9db3b2;
}

.bowl-rim::after {
  position: absolute;
  inset: 12px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(230, 247, 242, 0.3);
  border-radius: 50%;
}

.bowl-rim p {
  position: relative;
  margin-bottom: 16px;
  color: #b8dad4;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.bowl-rim blockquote {
  position: relative;
  margin: 0;
  color: #f7faf6;
  font-family: var(--display);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.9;
  text-shadow: 0 1px 2px rgba(7, 42, 47, 0.3);
}

.bowl-foot {
  width: 56%;
  height: 25px;
  margin: 8px auto 0;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(#b5c8c6, #f4f6f0 50%, #bbc9c8);
}

.steam {
  position: absolute;
  top: -64px;
  left: 38%;
  width: 40px;
  height: 80px;
  border-left: 2px solid rgba(68, 104, 105, 0.16);
  border-radius: 50%;
  transform: rotate(12deg);
  animation: steam 4.5s ease-in-out infinite;
}

.steam-two {
  top: -54px;
  left: 60%;
  height: 65px;
  animation-delay: -2s;
}

.clue-tag {
  position: absolute;
  padding: 6px 10px;
  color: var(--water-deep);
  border: 1px solid rgba(47, 111, 115, 0.28);
  border-radius: 999px;
  background: rgba(242, 247, 246, 0.83);
  box-shadow: 0 8px 20px rgba(38, 79, 84, 0.07);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.clue-a { top: 19%; left: 3%; transform: rotate(-7deg); }
.clue-b { top: 24%; right: 0; transform: rotate(6deg); }
.clue-c { bottom: 19%; left: 4%; transform: rotate(4deg); }

.case-footer {
  padding: 16px 3px 8px;
  border-top: 1px solid var(--line);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
}

.progress-copy strong {
  color: var(--water-deep);
  font-family: var(--utility);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #c5d3d3;
}

.progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 500ms ease;
}

.case-footer p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.answer-reveal {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 152, 74, 0.45);
  border-radius: 12px;
  background: #faf4e5;
}

.answer-reveal span {
  color: #8a642a;
  font-size: 10px;
  font-weight: 700;
}

.answer-reveal p {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
}

.guess-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  color: white;
  text-align: left;
  border: 0;
  border-radius: 16px;
  background: var(--water-deep);
  box-shadow: 0 14px 30px rgba(23, 76, 82, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guess-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(23, 76, 82, 0.24);
}

.guess-button > svg { width: 24px; height: 24px; color: #f2c879; }
.guess-button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.guess-button strong { font-size: 14px; }
.guess-button small { color: rgba(255,255,255,0.62); font-size: 10px; }
.guess-arrow { color: #b8d8d3; font-family: var(--utility); font-size: 20px; }

.conversation-panel {
  display: grid;
  height: clamp(620px, calc(100dvh - 114px), 900px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-self: start;
  overflow: hidden;
  background: rgba(248, 249, 245, 0.86);
}

.conversation-header {
  align-items: center;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(115, 141, 144, 0.22);
}

.conversation-content {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.conversation-content .message-list { height: 100%; }

.legend {
  display: flex;
  gap: 5px;
}

.answer-chip {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 4px 8px;
  text-align: center;
  border-radius: 6px;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
}

.answer-chip.yes { color: #276054; background: #d7ece6; }
.answer-chip.no { color: #9b4137; background: #f5ddd8; }
.answer-chip.irrelevant { color: #657072; background: #e5e8e5; }
.answer-chip.pending { color: #8a642a; background: #f4e8ce; }

.message-list {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 22px 18px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b9c9c7 transparent;
}

.hint-rail {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(71, 108, 111, 0.18);
  border-radius: 16px;
  background: rgba(242, 245, 241, 0.96);
}

.hint-rail-header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 14px 11px;
}

.hint-rail-header div { min-width: 0; }

.hint-rail-header strong {
  display: block;
  color: var(--water-deep);
  font-family: var(--display);
  font-size: 15px;
}

.hint-rail-header span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.hint-rail-header small {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 8px;
}

.notebook-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(71, 108, 111, 0.12);
}

.notebook-filters button {
  min-height: 32px;
  padding: 0 6px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.notebook-filters button:hover { background: rgba(255, 255, 255, 0.64); }

.notebook-filters button.is-active {
  color: var(--water-deep);
  border-color: rgba(47, 111, 115, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(31, 70, 74, 0.06);
}

.message-list:focus-visible {
  outline: 2px solid rgba(47, 111, 115, 0.55);
  outline-offset: -3px;
}

.conversation-dock {
  position: relative;
  z-index: 4;
  min-width: 0;
  background: rgba(239, 244, 241, 0.96);
  box-shadow: 0 -10px 24px rgba(31, 70, 74, 0.05);
}

.message {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid rgba(123, 144, 146, 0.18);
  animation: message-in 300ms ease both;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #f8faf7;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(63, 92, 95, 0.18);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.avatar-lin { background: #af6c59; }
.avatar-moon { background: #637c9b; }
.avatar-seven { background: #3b837b; }
.avatar-me { background: #755b8a; }
.avatar-echo { background: #8b806a; }
.avatar-host { width: 40px; height: 40px; background: var(--coral); }
.avatar-host-chat { background: var(--water-deep); }

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.message-meta strong { font-size: 12px; }
.message-meta time { color: #899799; font-family: var(--utility); font-size: 9px; }
.message-body p { margin: 0; font-size: 13px; line-height: 1.65; }

.chat-message {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}

.chat-message-body {
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 115, 0.16);
  border-radius: 5px 14px 14px 14px;
  background: rgba(255, 255, 255, 0.62);
}

.host-chat-message {
  margin: 8px -6px;
  padding: 13px 8px;
  border: 1px solid rgba(47, 111, 115, 0.2);
  border-left: 3px solid var(--water-deep);
  border-radius: 12px;
  background: rgba(221, 236, 232, 0.58);
}

.host-chat-message .chat-message-body {
  border-color: rgba(47, 111, 115, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.chat-message-label {
  color: var(--water-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.key-question {
  margin: 13px -10px;
  padding: 23px 12px 14px;
  border: 1px solid rgba(201, 152, 74, 0.32);
  border-radius: 13px;
  background: #faf4e5;
}

.key-label {
  position: absolute;
  top: -1px;
  left: 56px;
  padding: 3px 8px 4px;
  color: #76501b;
  border-radius: 0 0 6px 6px;
  background: #efd7a4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.question-resolution {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.answer-edit-toggle {
  min-height: 40px;
  padding: 0 8px;
  color: var(--water-deep);
  border: 1px solid rgba(47, 111, 115, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.answer-edit-toggle:hover,
.answer-edit-toggle[aria-expanded="true"] {
  border-color: var(--water);
  background: #eef5f2;
}

.important-toggle {
  display: inline-flex;
  min-height: 40px;
  gap: 5px;
  align-items: center;
  padding: 0 7px;
  color: #7a643f;
  border: 1px solid rgba(169, 120, 40, 0.24);
  border-radius: 8px;
  background: rgba(251, 244, 228, 0.72);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.important-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.important-toggle:hover,
.important-toggle.is-active {
  color: #805717;
  border-color: rgba(169, 120, 40, 0.5);
  background: #f6e7c5;
}

.important-toggle.is-active svg { fill: currentColor; }
.important-toggle:disabled { cursor: wait; opacity: 0.55; }

.host-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--coral);
  background: #eef2ef;
}

.host-note span { color: var(--coral); font-size: 10px; font-weight: 700; }
.host-note p { margin: 4px 0 0; font-family: var(--display); font-size: 13px; line-height: 1.65; }

.hint-history {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(231, 110, 91, 0.2);
  border-radius: 14px;
  background: rgba(238, 242, 239, 0.9);
}

.hint-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(91, 123, 125, 0.12);
}

.hint-history-heading strong {
  color: var(--coral);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hint-history-count {
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 9px;
}

.hint-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 108, 111, 0.28) transparent;
}

.hint-history-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(71, 108, 111, 0.13);
  border-left-width: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hint-history-list .hint-empty {
  display: block;
  padding: 22px 14px;
  color: var(--ink-soft);
  border: 1px dashed rgba(71, 108, 111, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.65;
}

.notebook-entry-important {
  border-color: rgba(169, 120, 40, 0.28) !important;
  border-left-color: #a97828 !important;
  background: #fbf4e4 !important;
}

.notebook-entry-hint {
  border-color: rgba(185, 79, 67, 0.24) !important;
  border-left-color: #b94f43 !important;
  background: #fff1ec !important;
}

.notebook-entry.is-latest { box-shadow: 0 6px 16px rgba(31, 70, 74, 0.08); }

.notebook-entry-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
}

.notebook-entry-marker svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notebook-entry-important .notebook-entry-marker { color: #8a5e19; background: rgba(169, 120, 40, 0.12); }
.notebook-entry-hint .notebook-entry-marker { color: #9f4036; background: rgba(185, 79, 67, 0.11); }

.hint-history-index {
  padding-top: 2px;
  color: rgba(71, 108, 111, 0.62);
  font-family: var(--utility);
  font-size: 9px;
}

.hint-history-content { min-width: 0; }

.notebook-entry-heading {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.notebook-entry-type {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.notebook-entry-important .notebook-entry-type { color: #815717; }
.notebook-entry-hint .notebook-entry-type { color: #963b32; }
.notebook-entry-heading time { color: var(--ink-soft); font-family: var(--utility); font-size: 8px; }

.hint-history-latest {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  color: #9b4338;
  border-radius: 999px;
  background: rgba(231, 110, 91, 0.13);
  font-size: 8px;
  font-weight: 700;
}

.hint-history-content p {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.65;
}

.notebook-entry-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 8px;
}

.notebook-entry-meta .answer-chip { min-width: 28px; padding: 3px 6px; }

.sticker-message {
  grid-template-columns: 34px 1fr;
  align-items: start;
}

.sticker-message-label {
  color: var(--coral);
  font-family: var(--display);
  font-size: 9px;
}

.sticker-message-body img {
  display: block;
  width: min(144px, 100%);
  height: 144px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid rgba(71, 108, 111, 0.14);
  border-radius: 18px 18px 18px 5px;
  background: rgba(255, 255, 255, 0.52);
}

.sticker-composer {
  position: relative;
  z-index: 4;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  background: rgba(239, 244, 241, 0.94);
}

.sticker-toggle {
  display: grid;
  min-height: 44px;
  grid-template-columns: 28px auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  color: var(--water-deep);
  text-align: left;
  border: 1px solid rgba(47, 111, 115, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.sticker-toggle:hover,
.sticker-toggle[aria-expanded="true"] {
  border-color: var(--water);
  background: rgba(255, 255, 255, 0.86);
}

.sticker-toggle svg { width: 21px; height: 21px; }
.sticker-toggle span { font-size: 11px; font-weight: 700; }
.sticker-toggle small { justify-self: end; color: var(--ink-soft); font-size: 9px; }

.sticker-panel {
  position: absolute;
  right: 18px;
  bottom: calc(100% + 8px);
  left: 18px;
  z-index: 20;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 115, 0.26);
  border-radius: 18px;
  background: #f7f8f3;
  box-shadow: 0 22px 50px rgba(22, 57, 61, 0.24);
  animation: sticker-panel-in 180ms ease-out both;
}

.sticker-panel-header,
.sticker-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.sticker-panel-header {
  border-bottom: 1px solid rgba(115, 141, 144, 0.2);
}

.sticker-panel-header > div { display: flex; flex-direction: column; gap: 2px; }
.sticker-panel-header span { font-family: var(--display); font-size: 14px; font-weight: 700; }
.sticker-panel-header small,
.sticker-panel-footer small { color: var(--ink-soft); font-size: 9px; }

.sticker-panel-header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.sticker-panel-scroll {
  max-height: min(390px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sticker-section + .sticker-section {
  border-top: 1px solid rgba(115, 141, 144, 0.2);
}

.sticker-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 0;
}

.sticker-section-title span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.sticker-section-title small {
  color: var(--ink-soft);
  font-size: 8px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 8px;
  padding: 10px 14px 14px;
}

.emoji-tile {
  position: relative;
  display: flex;
  min-width: 44px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 115, 0.16);
  border-radius: 50% 50% 14px 14px;
  background:
    radial-gradient(circle at center 41%, rgba(255, 255, 255, 0.86) 0 23px, transparent 24px),
    #eaf1ee;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.emoji-tile::after {
  position: absolute;
  inset: 5px 5px 18px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(47, 111, 115, 0.09);
  border-radius: 50%;
}

.emoji-tile:hover {
  border-color: var(--coral);
  background-color: #fff7ed;
  box-shadow: 0 8px 18px rgba(46, 86, 89, 0.11);
}

.emoji-tile:focus-visible {
  border-color: var(--coral);
  background-color: #fff7ed;
}

.emoji-glyph {
  position: relative;
  z-index: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.emoji-tile small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 7px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-grid {
  display: grid;
  max-height: 212px;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding: 10px 14px 14px;
}

.sticker-tile {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(71, 108, 111, 0.17);
  border-radius: 13px;
  background: #edf2ef;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.sticker-tile:hover { border-color: var(--coral); background: #fffaf3; }
.sticker-tile img { width: 100%; height: 100%; object-fit: contain; }

.sticker-empty {
  display: flex;
  grid-column: 1 / -1;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
  text-align: center;
}

.sticker-empty strong { color: var(--ink); font-family: var(--display); font-size: 13px; }
.sticker-empty span { max-width: 240px; font-size: 10px; line-height: 1.6; }

.sticker-panel-footer {
  border-top: 1px solid rgba(115, 141, 144, 0.2);
}

.sticker-upload {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: white;
  border: 0;
  border-radius: 11px;
  background: var(--water-deep);
  cursor: pointer;
}

.sticker-upload svg { width: 17px; height: 17px; }
.sticker-upload span { font-size: 10px; font-weight: 700; }
.sticker-upload:disabled { cursor: wait; opacity: 0.58; }

.sticker-status {
  min-height: 16px;
  margin: -5px 14px 9px;
  color: var(--coral);
  font-size: 9px;
}

.emoji-message-bubble {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(47, 111, 115, 0.16);
  border-radius: 50% 50% 22px 22px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 31px, transparent 32px),
    #e8f0ed;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.24);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 45px;
  line-height: 1;
}

.question-composer {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(239, 244, 241, 0.94);
}

.host-toolbar {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(239, 244, 241, 0.94);
}

.hint-rail .host-toolbar {
  padding: 12px 10px;
  border-top-color: rgba(231, 110, 91, 0.2);
  background: rgba(248, 244, 239, 0.96);
}

.hint-rail .host-toolbar-row {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hint-rail .host-toolbar-row input { grid-column: 1 / -1; }

.hint-rail .host-toolbar-row .button {
  min-height: 36px;
  padding: 0 5px;
  font-size: 9px;
}

.host-chat-composer {
  border-top-color: rgba(47, 111, 115, 0.24);
  background: rgba(231, 240, 237, 0.97);
}

.host-chat-composer > label { color: var(--water-deep); }

.host-toolbar > label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.host-toolbar-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.host-toolbar-row input,
.form-grid input,
.form-grid textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid #b9c9c9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.host-toolbar-row input {
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
}

.host-answer-actions {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.host-answer-actions button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f4f7f5;
  font-size: 9px;
  cursor: pointer;
}

.host-answer-actions button:hover {
  border-color: var(--water);
}

.answer-edit-actions {
  padding-top: 6px;
  border-top: 1px dashed rgba(71, 108, 111, 0.2);
}

.answer-edit-actions button.is-current {
  color: var(--water-deep);
  border-color: rgba(47, 111, 115, 0.38);
  background: #dcece7;
}

.guess-queue {
  max-height: 210px;
  overflow-y: auto;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fbf3e5;
}

.guess-queue h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 15px;
}

.guess-card {
  padding: 10px 0;
  border-top: 1px solid rgba(165, 132, 79, 0.22);
}

.guess-card p {
  margin: 3px 0 8px;
  font-size: 11px;
  line-height: 1.6;
}

.guess-card strong {
  font-size: 10px;
}

.question-composer > label,
.modal-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.composer-row textarea,
.modal-card textarea {
  width: 100%;
  resize: none;
  color: var(--ink);
  border: 1px solid #b9c9c9;
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}

.composer-row textarea {
  height: 48px;
  padding: 12px 14px;
  font-size: 12px;
}

textarea::placeholder { color: #8d9b9b; }

.composer-row button {
  display: grid;
  width: 42px;
  height: 42px;
  align-self: end;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 12px;
  background: var(--water-deep);
  cursor: pointer;
}

.composer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #879496;
  font-family: var(--utility);
  font-size: 8px;
}

kbd {
  padding: 1px 3px;
  border: 1px solid #c4cecd;
  border-radius: 3px;
  background: #f4f7f5;
  font: inherit;
}

.players-panel {
  display: grid;
  height: clamp(620px, calc(100dvh - 114px), 900px);
  min-height: 0;
  grid-template-rows: auto auto minmax(70px, auto) minmax(230px, 1fr) auto;
  gap: 12px;
  align-self: start;
  padding: 24px 20px;
  overflow: hidden;
  background: rgba(226, 235, 235, 0.6);
}

.players-header {
  align-items: center;
  padding: 0 3px 18px;
}

.players-header > span {
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 10px;
}

.host-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(88, 119, 122, 0.2);
  border-radius: 16px;
  background: rgba(248, 249, 245, 0.73);
}

.host-card div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.host-card div:nth-child(2) span { color: var(--coral); font-size: 9px; font-weight: 700; }
.host-card div:nth-child(2) strong { font-size: 13px; }
.host-status { color: var(--water); font-size: 9px; }
.host-status::before { display: inline-block; width: 5px; height: 5px; margin-right: 4px; content: ""; border-radius: 50%; background: #4da38e; }

.player-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.player-list li {
  display: grid;
  grid-template-columns: 17px 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px 7px;
  border-bottom: 1px solid rgba(104, 133, 136, 0.15);
}

.player-list .current-player {
  margin: 3px 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}

.rank { color: #829092; font-family: var(--utility); font-size: 9px; }
.player-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.player-copy strong { font-size: 12px; }
.player-copy span { overflow: hidden; color: #758487; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.score { color: var(--water-deep); font-family: var(--utility); font-size: 10px; font-weight: 700; }

.room-rules {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.room-rules > p { margin-bottom: 12px; font-family: var(--display); font-size: 13px; font-weight: 800; }
.room-rules ul { margin: 0; padding: 0; list-style: none; }
.room-rules li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 10px; }
.room-rules li span { color: var(--ink-soft); }
.room-rules li strong { font-weight: 600; }

.modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 0;
  border-radius: 22px;
  background: transparent;
}

.modal::backdrop {
  background: rgba(16, 42, 47, 0.54);
  backdrop-filter: blur(8px);
}

.modal[open] { animation: modal-in 220ms ease both; }

.modal-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  background: var(--fog-light);
  box-shadow: var(--shadow);
}

.modal-card h2 { margin-bottom: 9px; font-size: 28px; }
.modal-intro { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.modal-card textarea { min-height: 150px; padding: 14px; }
.modal-card textarea[aria-invalid="true"] {
  border-color: #b84f44;
  box-shadow: 0 0 0 3px rgba(184, 79, 68, 0.12);
}

.guess-input-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 7px;
  color: #71858a;
  font-size: 10px;
  line-height: 1.5;
}

#guess-count {
  flex: 0 0 auto;
  font-family: var(--utility);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#guess-count.is-ready { color: var(--water-deep); font-weight: 700; }

.guess-error {
  min-height: 0;
  margin-top: 9px;
  padding: 9px 11px;
  color: #873c34;
  border-left: 3px solid #b84f44;
  border-radius: 0 8px 8px 0;
  background: rgba(231, 110, 91, 0.1);
  font-weight: 650;
  line-height: 1.5;
}

.guess-error[hidden] { display: none; }
.modal-close { position: absolute; top: 18px; right: 18px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.modal-close[hidden] { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.modal-back {
  min-height: 34px;
  margin: -5px 0 16px;
  padding: 0;
  color: var(--water);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.entry-modal,
.create-modal {
  width: min(560px, calc(100% - 28px));
}

.entry-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(82, 141, 141, 0.18), transparent 15rem),
    var(--fog-light);
}

.entry-card h2,
.create-card h2 {
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 12px;
  align-items: center;
  margin-top: 18px;
}

.form-grid label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.form-grid input,
.form-grid textarea {
  min-height: 42px;
  padding: 10px 12px;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #87989b;
}

.form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.create-card {
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
}

.create-grid {
  align-items: start;
}

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #a3483f;
  font-size: 11px;
}

.form-helper {
  margin: 10px 0 0 112px;
  color: #71858a;
  font-size: 9px;
}

.entry-actions {
  justify-content: stretch;
}

.entry-actions .button { width: 100%; min-height: 48px; }
.button:disabled { cursor: wait; opacity: 0.66; transform: none; }

.entry-auth-prompt {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--ink-soft);
  text-align: left;
  border: 1px dashed rgba(47, 111, 115, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  cursor: pointer;
}

.entry-auth-prompt[hidden] {
  display: none;
}

.entry-auth-prompt strong { color: var(--water-deep); }

.auth-modal {
  width: min(790px, calc(100% - 28px));
}

.auth-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--fog-light);
  box-shadow: var(--shadow);
}

.identity-watermark {
  position: relative;
  display: flex;
  min-height: 550px;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 32px;
  overflow: hidden;
  color: #e8f4f1;
  background: var(--water-deep);
}

.identity-watermark::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,0.15) 32px);
}

.identity-rings {
  position: relative;
  z-index: 1;
  width: 220px;
  aspect-ratio: 1;
  margin: 28px auto 0;
}

.identity-rings span {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(210, 237, 232, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.identity-rings span:nth-child(1) { width: 100%; height: 100%; }
.identity-rings span:nth-child(2) { width: 70%; height: 70%; }
.identity-rings span:nth-child(3) { width: 40%; height: 40%; }

.identity-rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--water-deep);
  border-radius: 50%;
  background: var(--coral);
  font-family: var(--display);
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.identity-copy { position: relative; z-index: 1; }
.identity-copy p { margin-bottom: 5px; color: #8fbcb6; font-family: var(--utility); font-size: 9px; letter-spacing: 0.18em; }
.identity-copy strong { display: block; font-family: var(--utility); font-size: 17px; letter-spacing: 0.08em; }
.identity-copy span { display: block; margin-top: 10px; color: rgba(232,244,241,0.65); font-family: var(--display); font-size: 12px; }

.auth-form {
  position: relative;
  padding: 42px 46px 34px;
}

.auth-form h2 { margin-bottom: 8px; font-size: 30px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 22px;
  padding: 4px;
  border-radius: 12px;
  background: #dfe8e7;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--water-deep);
  background: #f7faf7;
  box-shadow: 0 3px 12px rgba(38, 74, 78, 0.08);
  font-weight: 700;
}

.auth-fields { display: grid; gap: 14px; }
.auth-fields > div { display: grid; gap: 7px; }
.auth-fields > div[hidden] { display: none; }
.auth-fields label { font-size: 11px; font-weight: 700; }
.auth-fields input {
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #b9c9c9;
  border-radius: 11px;
  background: rgba(255,255,255,0.74);
}

.auth-submit { width: 100%; margin-top: 2px; }
.auth-footnote { margin: 13px 0 0; color: #7d8d8f; text-align: center; font-size: 9px; }

.profile-modal {
  width: min(860px, calc(100% - 28px));
}

.profile-card {
  position: relative;
  max-height: min(800px, calc(100vh - 32px));
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  background: var(--fog-light);
  box-shadow: var(--shadow);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 42px;
}

.profile-identity { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  border: 5px solid #d6e2df;
  border-radius: 50%;
  background: var(--water);
  box-shadow: 0 0 0 1px var(--water);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.profile-identity h2 { font-size: 28px; }
.profile-identity > div > span { color: var(--ink-soft); font-family: var(--utility); font-size: 10px; }
.profile-logout { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); border: 0; background: transparent; font-size: 10px; cursor: pointer; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
}

.profile-stats div { padding: 18px 20px; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border-right: 0; }
.profile-stats span { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 10px; }
.profile-stats strong { font-family: var(--utility); font-size: 24px; }

.trail-heading { display: flex; align-items: end; justify-content: space-between; }
.trail-heading h3 { margin: 0; font-family: var(--display); font-size: 21px; }
.trail-filters { display: flex; gap: 5px; }
.trail-filters button {
  padding: 6px 10px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}
.trail-filters button.active { color: var(--water-deep); border-color: var(--line); background: white; font-weight: 700; }

.activity-trail {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-left: 24px;
}

.activity-trail::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1px;
  content: "";
  background: var(--line);
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px 14px 12px;
  border-bottom: 1px solid rgba(108,135,138,0.16);
}

.activity-item::before {
  position: absolute;
  left: -21px;
  width: 10px;
  height: 10px;
  content: "";
  border: 3px solid var(--fog-light);
  border-radius: 50%;
  background: var(--water);
  box-shadow: 0 0 0 1px var(--water);
}

.activity-item.created::before { background: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.activity-seal { padding: 7px 8px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.5); font-family: var(--utility); font-size: 9px; }
.activity-copy strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 14px; }
.activity-copy span { color: var(--ink-soft); font-size: 9px; }
.activity-meta { text-align: right; }
.activity-meta strong { display: block; color: var(--water); font-family: var(--utility); font-size: 10px; }
.activity-meta time { color: #8b999b; font-family: var(--utility); font-size: 8px; }
.activity-empty { padding: 40px 20px; color: var(--ink-soft); text-align: center; border: 1px dashed var(--line); border-radius: 14px; font-family: var(--display); font-size: 13px; }

.toast {
  position: fixed;
  z-index: 10;
  right: 26px;
  bottom: 26px;
  padding: 12px 16px;
  color: white;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.97); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes steam {
  0%, 100% { opacity: 0; transform: translateY(8px) rotate(12deg) scaleX(0.8); }
  45% { opacity: 1; }
  80% { opacity: 0; transform: translateY(-12px) rotate(-8deg) scaleX(1.2); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes sticker-panel-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}

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

@media (max-width: 1180px) {
  .landing-main { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr); gap: 34px; }
  .landing-choice { padding: 20px; }
  .game-layout { grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr); }
  .players-panel {
    height: auto;
    min-height: 520px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
    grid-template-rows: auto auto minmax(100px, 1fr) auto;
    gap: 18px;
    align-items: start;
  }
  .players-header { grid-column: 1 / -1; padding-bottom: 0; }
  .host-card { grid-column: 1; grid-row: 2; }
  .player-list { grid-column: 1; grid-row: 3; margin: 0; }
  .notebook-rail { grid-column: 2; grid-row: 2 / 5; min-height: 390px; align-self: stretch; }
  .player-list li { border-bottom: 0; }
  .room-rules { grid-column: 1; grid-row: 4; border-top: 0; }
}

@media (max-width: 820px) {
  .landing-screen { padding-inline: 22px; }
  .landing-nav { min-height: 76px; }
  .landing-main { min-height: auto; grid-template-columns: 1fr; padding: 58px 0 34px; }
  .landing-copy h1 { max-width: 640px; }
  .landing-lead { max-width: 620px; }
  .landing-scene { width: min(100%, 470px); margin-top: 6px; }
  .landing-guide ol { gap: 18px; }
  .app-shell { padding: 0 12px 16px; }
  .topbar { grid-template-columns: 1fr auto; height: 72px; }
  .room-meta { display: none; }
  .brand-tagline { display: none; }
  .theme-toggle { width: 42px; padding: 0; justify-content: center; }
  .theme-toggle span { display: none; }
  .game-layout { grid-template-columns: 1fr; min-height: auto; }
  .case-panel, .conversation-panel, .players-panel { border-radius: 20px; }
  .conversation-panel {
    height: min(760px, calc(100dvh - 24px));
    min-height: 520px;
  }
  .players-panel {
    min-height: 0;
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .players-header { grid-column: auto; }
  .host-card, .player-list, .notebook-rail, .room-rules { grid-column: auto; grid-row: auto; }
  .notebook-rail { min-height: 360px; }
  .player-list { grid-template-columns: 1fr; }
  .soup-stage { min-height: 420px; }
}

@media (max-width: 520px) {
  .landing-screen { padding: 0 16px 24px; }
  .landing-nav { min-height: 68px; }
  .landing-brand strong { font-size: 20px; }
  .landing-brand small { display: none; }
  .landing-brand-mark { width: 34px; height: 34px; }
  .landing-brand-mark span:nth-child(1) { width: 32px; height: 32px; }
  .landing-account { width: 42px; padding: 0; justify-content: center; }
  .landing-account > span:last-child { display: none; }
  .landing-main { gap: 16px; padding: 42px 0 24px; }
  .landing-kicker { margin-bottom: 12px; font-size: 9px; }
  .landing-copy h1 { font-size: clamp(38px, 12vw, 50px); line-height: 1.16; }
  .landing-lead { margin-top: 17px; font-size: 13px; line-height: 1.75; }
  .landing-choices { grid-template-columns: 1fr; gap: 11px; margin-top: 26px; }
  .landing-choice { min-height: 146px; grid-template-columns: 44px 1fr; padding: 19px; border-radius: 17px; }
  .landing-choice-icon { width: 44px; height: 44px; border-radius: 13px; }
  .landing-choice-copy strong { font-size: 18px; }
  .landing-choice-copy > span { max-width: none; }
  .landing-scene { width: min(100%, 370px); }
  .landing-bowl { width: 76%; }
  .landing-bowl-rim { min-height: 205px; padding: 46px 34px 52px; }
  .landing-answer { min-width: 48px; height: 34px; font-size: 12px; }
  .landing-scene > p { bottom: 0; width: 100%; text-align: center; }
  .landing-guide { padding-top: 18px; }
  .landing-guide ol { grid-template-columns: 1fr; gap: 14px; }
  .landing-guide li { padding-bottom: 12px; border-bottom: 1px solid rgba(44, 92, 97, 0.12); }
  .header-actions .button { width: 42px; padding: 0; font-size: 0; }
  .brand-name { font-size: 21px; }
  .case-panel { padding: 20px 16px; }
  .difficulty { font-size: 9px; }
  .soup-stage { min-height: 360px; margin-top: 8px; }
  .soup-bowl { width: 94%; }
  .bowl-rim { min-height: 220px; padding: 34px 38px 44px; }
  .bowl-rim blockquote { font-size: 15px; }
  .clue-tag { display: none; }
  .conversation-header { align-items: flex-start; padding: 20px 16px 16px; }
  .conversation-content {
    display: block;
  }
  .conversation-panel.is-host {
    min-height: 660px;
  }
  .hint-rail-header { padding: 10px 14px 6px; }
  .notebook-filters { padding: 0 14px 7px; }
  .notebook-filters button { min-height: 30px; }
  .hint-history-list {
    padding: 8px 12px;
    overflow-y: auto;
  }
  .hint-history-list li {
    width: auto;
  }
  .hint-history-list .hint-empty { width: 100%; }
  .hint-rail .host-toolbar { padding: 8px 12px 10px; }
  .hint-rail .host-toolbar > label { margin-bottom: 5px; }
  .hint-rail .host-toolbar-row { grid-template-columns: 1fr auto auto; }
  .hint-rail .host-toolbar-row input { grid-column: auto; min-width: 0; }
  .hint-rail .host-toolbar-row .button { padding-inline: 8px; }
  .legend { margin-top: 3px; }
  .message-list { padding-inline: 14px; }
  .message { grid-template-columns: 32px 1fr; }
  .message > .answer-chip { grid-column: 2; justify-self: start; }
  .question-resolution { grid-column: 2; flex-direction: row; align-items: center; justify-self: start; }
  .message .avatar { width: 32px; height: 32px; }
  .sticker-composer { padding-inline: 14px; }
  .sticker-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    max-height: calc(100dvh - 24px);
  }
  .sticker-panel-scroll { max-height: calc(100dvh - 168px); }
  .emoji-grid { grid-template-columns: repeat(5, minmax(44px, 1fr)); }
  .sticker-grid { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  .sticker-panel-footer { align-items: flex-start; flex-direction: column; }
  .question-composer { padding: 14px; }
  .composer-meta span:first-child { display: none; }
  .modal-card { padding: 26px 20px 20px; }
  .guess-input-meta { gap: 6px; flex-direction: column; }
  .modal-back { margin-top: -2px; }
  .form-helper { margin-left: 0; }
  .host-toolbar-row { grid-template-columns: 1fr 1fr; }
  .host-toolbar-row input { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; gap: 6px; }
  .form-grid input, .form-grid textarea { margin-bottom: 6px; }
  .account-button { width: 42px; padding: 0; justify-content: center; }
  .account-button > span:last-child { display: none; }
  .auth-card { grid-template-columns: 1fr; }
  .identity-watermark { display: none; }
  .auth-form { padding: 32px 20px 22px; }
  .profile-card { padding: 24px 18px; }
  .profile-header { align-items: flex-start; }
  .profile-logout { font-size: 0; }
  .profile-stats div { padding: 14px 10px; }
  .profile-stats strong { font-size: 20px; }
  .trail-heading { align-items: flex-start; gap: 14px; flex-direction: column; }
  .activity-item { grid-template-columns: 70px 1fr; }
  .activity-meta { grid-column: 2; text-align: left; }
}

@media (max-height: 520px) and (max-width: 900px) {
  .sticker-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    max-height: calc(100dvh - 24px);
  }

  .sticker-panel-scroll { max-height: calc(100dvh - 168px); }
}

@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;
  }
}

/* Low-profile project workspace theme */
html[data-theme="workbench"] {
  --fog: #f3f4f6;
  --fog-light: #ffffff;
  --paper: #ffffff;
  --ink: #20242a;
  --ink-soft: #646b75;
  --line: #d8dce2;
  --water: #426a96;
  --water-deep: #315b88;
  --coral: #3b78b4;
  --brass: #7b8794;
  --shadow: 0 10px 28px rgba(37, 47, 61, 0.08);
  --display: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", monospace;
  background: #f3f4f6;
}

html[data-theme="workbench"] body {
  background: #f3f4f6;
  font-size: 13px;
}

html[data-theme="workbench"] body::before { display: none; }
html[data-theme="workbench"] .app-shell { width: min(1500px, 100%); padding: 0 20px 20px; }

html[data-theme="workbench"] .topbar {
  height: 64px;
  border-bottom-color: #d7dbe1;
  background: rgba(243, 244, 246, 0.96);
}

html[data-theme="workbench"] .brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  place-items: center;
  color: #ffffff;
  border-radius: 5px;
  background: #315b88;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
}

html[data-theme="workbench"] .brand-mark::before { content: "Q2"; }
html[data-theme="workbench"] .brand-mark span { display: none; }
html[data-theme="workbench"] .brand-name { font-size: 16px; letter-spacing: 0; }
html[data-theme="workbench"] .brand-tagline { margin-left: 12px; padding-left: 12px; font-size: 11px; letter-spacing: 0; }

html[data-theme="workbench"] .room-meta { gap: 14px; font-size: 11px; }
html[data-theme="workbench"] .room-id { border-radius: 4px; background: #ffffff; }

html[data-theme="workbench"] .theme-toggle,
html[data-theme="workbench"] .account-button,
html[data-theme="workbench"] .button-ghost {
  border-color: #d5d9df;
  border-radius: 5px;
  background: #ffffff;
}

html[data-theme="workbench"] .theme-toggle {
  color: #315b88;
  border-color: #9db5cc;
  background: #edf4fa;
}

html[data-theme="workbench"] .account-avatar { border-radius: 4px; background: #5f6f82; }
html[data-theme="workbench"] .icon-button { border-radius: 5px; }

html[data-theme="workbench"] .game-layout {
  grid-template-columns: minmax(330px, 0.84fr) minmax(580px, 1.44fr) minmax(230px, 0.54fr);
  gap: 12px;
  min-height: calc(100vh - 80px);
  padding-top: 12px;
}

html[data-theme="workbench"] .case-panel,
html[data-theme="workbench"] .conversation-panel,
html[data-theme="workbench"] .players-panel {
  border-color: #d9dde3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(28, 37, 48, 0.04);
}

html[data-theme="workbench"] .case-panel { padding: 20px; }
html[data-theme="workbench"] .panel-heading { padding-bottom: 15px; border-bottom: 1px solid #e1e4e8; }
html[data-theme="workbench"] .eyebrow { margin-bottom: 5px; color: #687687; font-size: 9px; letter-spacing: 0.08em; }
html[data-theme="workbench"] .live-dot { background: #4f8a64; box-shadow: none; }
html[data-theme="workbench"] h1 { font-size: clamp(21px, 1.7vw, 28px); letter-spacing: 0; }
html[data-theme="workbench"] h2 { font-size: 17px; letter-spacing: 0; }
html[data-theme="workbench"] .difficulty { padding-top: 7px; font-size: 9px; }

html[data-theme="workbench"] .soup-stage {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  margin: 18px 0 16px;
}

html[data-theme="workbench"] .soup-stage::before,
html[data-theme="workbench"] .ripple,
html[data-theme="workbench"] .steam,
html[data-theme="workbench"] .clue-tag,
html[data-theme="workbench"] .bowl-foot { display: none; }

html[data-theme="workbench"] .soup-bowl { width: 100%; filter: none; }

html[data-theme="workbench"] .bowl-rim {
  min-height: 250px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 50px 28px 28px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #dce1e6;
  border-radius: 5px;
  background:
    linear-gradient(#f6f8fa 39px, #dce1e6 40px, #ffffff 41px),
    repeating-linear-gradient(#ffffff 0 31px, #eef1f4 32px);
  box-shadow: none;
}

html[data-theme="workbench"] .bowl-rim::before {
  position: absolute;
  top: 13px;
  right: 16px;
  content: "INTERNAL / SUMMARY";
  color: #8a929c;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.06em;
}

html[data-theme="workbench"] .bowl-rim::after {
  inset: 40px auto 0 0;
  width: 3px;
  border: 0;
  border-radius: 0;
  background: #3b78b4;
}

html[data-theme="workbench"] .bowl-rim p {
  margin-bottom: 14px;
  color: #697481;
  font-size: 9px;
  letter-spacing: 0.12em;
}

html[data-theme="workbench"] .bowl-rim blockquote {
  color: #2c3239;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 2.2;
  text-shadow: none;
}

html[data-theme="workbench"] .case-footer { padding-top: 14px; }
html[data-theme="workbench"] .progress-track { height: 4px; border-radius: 1px; background: #e4e7eb; }
html[data-theme="workbench"] .progress-track span { border-radius: 1px; background: #3b78b4; }
html[data-theme="workbench"] .answer-reveal { border-color: #cfd8e3; border-radius: 4px; background: #f5f8fb; }
html[data-theme="workbench"] .answer-reveal span { color: #315b88; }
html[data-theme="workbench"] .answer-reveal p { font-family: var(--body); }

html[data-theme="workbench"] .guess-button {
  margin-top: 12px;
  color: #294e74;
  border: 1px solid #a9bfd4;
  border-radius: 5px;
  background: #edf4fa;
  box-shadow: none;
}

html[data-theme="workbench"] .guess-button:hover { box-shadow: none; }
html[data-theme="workbench"] .guess-button > svg { color: #3b78b4; }
html[data-theme="workbench"] .guess-button small { color: #6a7887; }
html[data-theme="workbench"] .guess-arrow { color: #5279a0; }

html[data-theme="workbench"] .conversation-header,
html[data-theme="workbench"] .players-header { border-color: #e1e4e8; }
html[data-theme="workbench"] .conversation-header { padding: 18px 20px 15px; }
html[data-theme="workbench"] .message-list { padding: 6px 18px 16px; }
html[data-theme="workbench"] .message { padding: 14px 2px; animation: none; }
html[data-theme="workbench"] .host-chat-message { border-radius: 4px; background: #edf4fa; }
html[data-theme="workbench"] .chat-message-body { border-radius: 4px; background: #ffffff; }
html[data-theme="workbench"] .hint-rail { border-left-color: #d8dce2; background: #f5f7f9; }
html[data-theme="workbench"] .hint-rail-header { border-bottom-color: #d8dce2; }
html[data-theme="workbench"] .hint-rail-header strong,
html[data-theme="workbench"] .hint-rail-header small { color: #315b88; }
html[data-theme="workbench"] .notebook-filters button.is-active { color: #315b88; border-color: #cfd8e3; }
html[data-theme="workbench"] .notebook-entry-important { border-color: #d9c9a6 !important; background: #fbf7ee !important; }
html[data-theme="workbench"] .notebook-entry-hint { border-color: #cfd8e3 !important; border-left-color: #3b78b4 !important; background: #f2f6fa !important; }
html[data-theme="workbench"] .notebook-entry-hint .notebook-entry-marker,
html[data-theme="workbench"] .notebook-entry-hint .notebook-entry-type { color: #315b88; }
html[data-theme="workbench"] .avatar { border: 0; border-radius: 4px; box-shadow: none; filter: saturate(0.45); }
html[data-theme="workbench"] .key-question { margin-inline: -6px; border-radius: 4px; background: #f2f6fa; }
html[data-theme="workbench"] .key-label { color: #315b88; background: #dbe8f3; }
html[data-theme="workbench"] .host-note { border-left-color: #3b78b4; background: #f5f7f9; }
html[data-theme="workbench"] .host-note span { color: #315b88; }
html[data-theme="workbench"] .host-note p { font-family: var(--body); }
html[data-theme="workbench"] .hint-history { border-color: #dce1e6; border-radius: 4px; background: #f5f7f9; }
html[data-theme="workbench"] .hint-history-heading { border-bottom-color: #dce1e6; }
html[data-theme="workbench"] .hint-history-heading strong { color: #315b88; }
html[data-theme="workbench"] .hint-history-list li { border-bottom-color: #e1e4e8; }
html[data-theme="workbench"] .hint-history-list li.is-latest { background: #ffffff; }
html[data-theme="workbench"] .hint-history-latest { color: #315b88; background: #dbe8f3; border-radius: 3px; }
html[data-theme="workbench"] .hint-history-content p { font-family: var(--body); }
html[data-theme="workbench"] .guess-error { color: #8c3f36; border-radius: 0 3px 3px 0; background: #fff2f0; }

html[data-theme="workbench"] .question-composer,
html[data-theme="workbench"] .host-toolbar,
html[data-theme="workbench"] .sticker-composer,
html[data-theme="workbench"] .conversation-dock { background: #f6f7f9; }
html[data-theme="workbench"] .conversation-dock { box-shadow: 0 -1px 0 #e1e4e8; }
html[data-theme="workbench"] .sticker-toggle,
html[data-theme="workbench"] .sticker-panel { border-radius: 4px; background: #ffffff; }
html[data-theme="workbench"] .emoji-tile {
  border-radius: 4px;
  background: #f2f4f6;
}
html[data-theme="workbench"] .emoji-tile::after { display: none; }
html[data-theme="workbench"] .sticker-tile { border-radius: 4px; background: #f2f4f6; }
html[data-theme="workbench"] .sticker-upload { border-radius: 4px; background: #315b88; }
html[data-theme="workbench"] .sticker-message-body img { border-radius: 4px; background: #f6f7f9; }
html[data-theme="workbench"] .emoji-message-bubble { border-radius: 4px; background: #f2f4f6; box-shadow: none; }
html[data-theme="workbench"] .composer-row textarea,
html[data-theme="workbench"] .host-toolbar-row input,
html[data-theme="workbench"] .form-grid input,
html[data-theme="workbench"] .form-grid textarea { border-radius: 4px; background: #ffffff; }
html[data-theme="workbench"] .composer-row button,
html[data-theme="workbench"] .button-primary { border-radius: 4px; background: #315b88; }

html[data-theme="workbench"] .players-panel { padding: 19px 17px; }
html[data-theme="workbench"] .host-card { border-radius: 5px; background: #f6f7f9; }
html[data-theme="workbench"] .player-list .current-player { border-radius: 4px; background: #edf4fa; }
html[data-theme="workbench"] .room-rules > p { font-family: var(--body); }

html[data-theme="workbench"] .modal { border-radius: 6px; }
html[data-theme="workbench"] .modal::backdrop { background: rgba(35, 40, 47, 0.38); backdrop-filter: blur(2px); }
html[data-theme="workbench"] .modal-card,
html[data-theme="workbench"] .auth-card,
html[data-theme="workbench"] .profile-card {
  border-color: #d7dbe1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(28, 36, 46, 0.16);
}
html[data-theme="workbench"] .modal-card h2 { font-size: 23px; }
html[data-theme="workbench"] .modal-close { border-radius: 4px; background: #f1f3f5; }
html[data-theme="workbench"] .entry-card { background: #ffffff; }
html[data-theme="workbench"] .auth-card { grid-template-columns: 1fr; }
html[data-theme="workbench"] .identity-watermark { display: none; }
html[data-theme="workbench"] .auth-form { padding: 34px; }
html[data-theme="workbench"] .profile-avatar,
html[data-theme="workbench"] .activity-seal { border-radius: 4px; }
html[data-theme="workbench"] .activity-item::before { background: #3b78b4; }
html[data-theme="workbench"] .toast { border-radius: 4px; background: #28323e; font-family: var(--body); }

@media (max-width: 1180px) {
  html[data-theme="workbench"] .game-layout { grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr); }
}

@media (max-width: 820px) {
  html[data-theme="workbench"] .app-shell { padding-inline: 12px; }
  html[data-theme="workbench"] .topbar { height: 64px; }
  html[data-theme="workbench"] .game-layout { grid-template-columns: 1fr; }
  html[data-theme="workbench"] .case-panel,
  html[data-theme="workbench"] .conversation-panel,
  html[data-theme="workbench"] .players-panel { border-radius: 5px; }
}

@media (max-width: 520px) {
  html[data-theme="workbench"] .case-panel { padding: 16px; }
  html[data-theme="workbench"] .soup-stage { min-height: 0; }
  html[data-theme="workbench"] .soup-bowl { width: 100%; }
  html[data-theme="workbench"] .bowl-rim { min-height: 220px; padding: 48px 20px 22px; }
  html[data-theme="workbench"] .bowl-rim blockquote { font-size: 13px; }
}
