/* ============================================================
   鐠嬫粌褰?璺?鐟欏棜顫庣化鑽ょ埠
   濞ｅ崬顧佸锝嗩攳鐎?鑴?娑撯偓閻愬湱鎯€閻濃偓閼硅尙娈戦悘?   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0c0e11;
  --panel: rgba(19, 22, 27, 0.78);
  --panel-solid: #12151a;
  --panel-raised: #171b21;
  --line: rgba(232, 220, 198, 0.09);
  --line-strong: rgba(232, 220, 198, 0.16);
  --text: #ece5d6;
  --text-soft: #c8c1b2;
  --muted: #8c877c;
  --dim: #615d55;
  --amber: #e0b26a;
  --amber-bright: #f4d69f;
  --amber-deep: #a97f3f;
  --clear: #6cc8bd;
  --red: #cf6154;
  --ink: #0a0b0d;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(224, 178, 106, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 220, 198, 0.13);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 220, 198, 0.24);
  background-clip: content-box;
}

a {
  color: var(--amber);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ---------- 濮樻梹鐨肩仦?---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(224, 178, 106, 0.07), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, rgba(108, 200, 189, 0.045), transparent 60%),
    linear-gradient(180deg, #0a0b0e 0%, #08090b 55%, #070809 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s var(--ease) infinite alternate;
}
.glow-a {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(169, 127, 63, 0.22), transparent 65%);
}
.glow-b {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(64, 106, 110, 0.18), transparent 65%);
  animation-delay: -9s;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3vw, 2.5vw, 0) scale(1.08);
  }
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2%, 1%);
  }
  40% {
    transform: translate(1%, -2%);
  }
  60% {
    transform: translate(-1%, 2%);
  }
  80% {
    transform: translate(2%, 1%);
  }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- 閸╄櫣顢呴幒鎺斿 ---------- */

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.view {
  animation: rise 0.45s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.serif {
  font-family: var(--serif);
}

.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.tiny {
  font-size: 13px;
}
.small {
  font-size: 14px;
}
.amber {
  color: var(--amber);
}
.nowrap {
  white-space: nowrap;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 18px 0;
}

/* ---------- 閹稿鎸?---------- */

.btn {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  --btn-fg: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition:
    transform 0.15s var(--ease),
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover:not(:disabled) {
  border-color: rgba(232, 220, 198, 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.995);
}
.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.btn:focus-visible {
  outline: 2px solid rgba(224, 178, 106, 0.55);
  outline-offset: 2px;
}

.btn-primary {
  --btn-bg: linear-gradient(180deg, #e8c07c, #c9974f);
  --btn-border: transparent;
  --btn-fg: #1b1205;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 30px -12px rgba(224, 178, 106, 0.65);
}
.btn-primary:hover:not(:disabled) {
  --btn-fg: #140d03;
  background: linear-gradient(180deg, #f2cf90, #d7a45a);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 38px -12px rgba(224, 178, 106, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  color: var(--text);
}

.btn-danger {
  color: #e3a49c;
  border-color: rgba(207, 97, 84, 0.32);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(207, 97, 84, 0.1);
  border-color: rgba(207, 97, 84, 0.55);
  color: #f3b9b1;
}

.btn-lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}

.btn-icon {
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
}

/* ---------- 鐞涖劌宕?---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .optional {
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
}

.input,
.textarea,
.select {
  width: 100%;
  background: rgba(6, 7, 9, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  outline: none;
}
.input::placeholder,
.textarea::placeholder {
  color: #5c584f;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(224, 178, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 178, 106, 0.1);
  background: rgba(6, 7, 9, 0.75);
}
.textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.7;
}
.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c877c' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.select option {
  background: #14171c;
}

.code-input {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.42em;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 8px 14px 20px;
  background: rgba(6, 7, 9, 0.65);
}

.hintline {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}
.error-line {
  min-height: 18px;
  font-size: 13.5px;
  color: #e09a91;
}

/* 瀵偓閸?*/
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.22s var(--ease);
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8c877c;
  transition: 0.22s var(--ease);
}
.switch[aria-checked="true"] {
  background: rgba(224, 178, 106, 0.22);
  border-color: rgba(224, 178, 106, 0.55);
}
.switch[aria-checked="true"]::after {
  transform: translateX(18px);
  background: var(--amber-bright);
}
.switch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 閸掑棙顔?*/
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: rgba(6, 7, 9, 0.55);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.seg {
  min-width: 44px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  transition: 0.18s;
}
.seg:hover:not(.active) {
  color: var(--text-soft);
}
.seg.active {
  background: rgba(224, 178, 106, 0.16);
  color: var(--amber-bright);
  box-shadow: 0 0 0 1px rgba(224, 178, 106, 0.28) inset;
}
.seg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 閺嶅洨顒?---------- */

.tag {
  --tag: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--tag) 35%, transparent);
  background: color-mix(in srgb, var(--tag) 10%, transparent);
  color: var(--tag);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tag.dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tag.lvl-clear {
  --tag: var(--clear);
}
.tag.lvl-red {
  --tag: var(--red);
}
.tag.lvl-black {
  --tag: #c9b7ae;
}
.tag.warn {
  --tag: #d9a45f;
}
.tag.neutral {
  --tag: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.lvl-clear {
  --lv: var(--clear);
}
.lvl-red {
  --lv: var(--red);
}
.lvl-black {
  --lv: #c9b7ae;
}

/* ============================================================
   婢堆冨泛
   ============================================================ */

.home {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) clamp(20px, 5vw, 56px) 48px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 178, 106, 0.4);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 20px;
  box-shadow:
    0 0 0 4px rgba(224, 178, 106, 0.04),
    0 0 30px rgba(224, 178, 106, 0.1) inset;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.34em;
  color: var(--text);
}
.brand-sub {
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 1px;
}

.home-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: 48px 0 36px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 22px;
}
.home-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.home-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 8.4vw, 104px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-left: -4px;
}
.home-title .lit {
  color: var(--amber-bright);
  text-shadow: 0 0 46px rgba(224, 178, 106, 0.32);
}
.home-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 220, 198, 0.32);
}

.home-lead {
  margin-top: 24px;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}
.home-lead strong {
  color: var(--text-soft);
  font-weight: 500;
}

.home-levels {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.level-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.level-row .lv-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-family: var(--serif);
  letter-spacing: 0.16em;
}
.level-row .lv-name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lv);
  box-shadow: 0 0 10px color-mix(in srgb, var(--lv) 60%, transparent);
}
.level-row .lv-note {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* 閸忋儱鑵戦崡?*/
.home-side {
  position: relative;
}
.home-card {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(28, 32, 39, 0.82), rgba(15, 17, 21, 0.9)),
    radial-gradient(120% 80% at 100% 0%, rgba(224, 178, 106, 0.07), transparent 55%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(224, 178, 106, 0.32), transparent 38%, transparent 70%, rgba(224, 178, 106, 0.12));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.card-title {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.card-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.home-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.home-actions .btn {
  flex: 1;
}
.home-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.home-foot .foot-stats {
  display: flex;
  gap: 22px;
}
.home-foot b {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   閸掓稑缂撻幋鍧楁？
   ============================================================ */

.create-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}
.create-card {
  width: min(620px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 27, 33, 0.9), rgba(13, 15, 18, 0.94));
  box-shadow: var(--shadow-lg);
}
.create-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.create-title {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.create-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.option-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.012);
}
.option-row + .option-row {
  border-top: 1px solid var(--line);
}
.option-text {
  min-width: 0;
}
.option-name {
  font-size: 14px;
  color: var(--text-soft);
}
.option-desc {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.5;
}
.create-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.create-actions .btn-primary {
  flex: 1;
}

/* ============================================================
   閹村潡妫?璺?妞よ埖鐖?   ============================================================ */

.room {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  padding: 0 clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 13, 0.82);
  backdrop-filter: blur(16px);
}
.topbar .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-room {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.topbar-room .room-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28vw;
}
.room-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border: 1px dashed rgba(224, 178, 106, 0.32);
  border-radius: 6px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  background: rgba(224, 178, 106, 0.05);
  cursor: pointer;
  transition: 0.18s;
}
.room-code:hover {
  background: rgba(224, 178, 106, 0.11);
  border-color: rgba(224, 178, 106, 0.5);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.conn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.conn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  transition: 0.3s;
}
.conn.online::before {
  background: #7fbf9a;
  box-shadow: 0 0 8px rgba(127, 191, 154, 0.7);
}
.conn.offline::before {
  background: var(--red);
  box-shadow: 0 0 8px rgba(207, 97, 84, 0.6);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.status-pill.playing {
  color: var(--amber);
  border-color: rgba(224, 178, 106, 0.35);
  background: rgba(224, 178, 106, 0.07);
}
.status-pill.finished {
  color: #9fb3c8;
  border-color: rgba(159, 179, 200, 0.28);
}

/* ============================================================
   缁涘绶熸い?   ============================================================ */

.wait {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 28px) 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.wait-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(224, 178, 106, 0.035);
  font-size: 14px;
  color: var(--muted);
}
.wait-banner strong {
  color: var(--amber);
  font-weight: 500;
}
.wait-banner .lock {
  margin-left: auto;
  color: var(--dim);
  font-size: 12.5px;
}

.wait-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-title .count {
  color: var(--dim);
  letter-spacing: 0.05em;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.panel-body {
  padding: 12px;
}
.panel-body.flush {
  padding: 0;
}

/* 閻溾晛顔?*/
.players {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 44vh;
  overflow: auto;
  padding: 8px;
}
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: 0.15s;
  position: relative;
}
.player:hover {
  background: rgba(255, 255, 255, 0.03);
}
.player.offline {
  opacity: 0.42;
}
.player.you {
  border-color: rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.018);
}
.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-soft);
  background: linear-gradient(160deg, #2a2e36, #191c21);
  border: 1px solid var(--line-strong);
}
.avatar.host {
  color: #201505;
  background: linear-gradient(160deg, #f0cd8e, #c4954b);
  border-color: #e8c07c;
}
.player-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-flags {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
}
.crown {
  color: var(--amber);
  font-size: 13px;
  filter: drop-shadow(0 0 5px rgba(224, 178, 106, 0.5));
}
.player-more {
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transition: 0.15s;
}
.player:hover .player-more,
.player-more:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}
.player-menu {
  position: absolute;
  right: 6px;
  top: calc(100% - 2px);
  z-index: 30;
  min-width: 132px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #1a1e24;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  animation: pop 0.14s var(--ease);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-3px) scale(0.98);
  }
}
.menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13.5px;
  text-align: left;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.menu-item.danger {
  color: #dd9b92;
}
.menu-item.danger:hover {
  background: rgba(207, 97, 84, 0.12);
}

/* 濮广倕绨?*/
.soup-browser {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.soup-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(6, 7, 9, 0.4);
  border: 1px solid var(--line);
}
.chip {
  height: 27px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  transition: 0.16s;
  white-space: nowrap;
}
.chip:hover {
  color: var(--text-soft);
}
.chip.active {
  background: rgba(224, 178, 106, 0.15);
  color: var(--amber-bright);
}
.soup-toolbar .select {
  width: auto;
  min-width: 104px;
  height: 34px;
  padding: 0 30px 0 10px;
  font-size: 13.5px;
  border-radius: 8px;
}
.soup-toolbar .spacer {
  flex: 1;
}
.soup-scroll {
  flex: 1;
  overflow: auto;
  padding: 14px;
  max-height: calc(100vh - 250px);
}
.soup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 11px;
}
.soup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 148px;
  padding: 15px 15px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease),
    background 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.soup-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--lv, var(--muted));
  opacity: 0.5;
}
.soup-card:hover {
  border-color: rgba(232, 220, 198, 0.22);
  transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9);
}
.soup-card.selected {
  border-color: rgba(224, 178, 106, 0.55);
  box-shadow:
    0 0 0 1px rgba(224, 178, 106, 0.22) inset,
    0 18px 40px -24px rgba(224, 178, 106, 0.35);
  background: linear-gradient(165deg, rgba(224, 178, 106, 0.07), rgba(255, 255, 255, 0.008));
}
.soup-card.selected::after {
  content: "已选";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid rgba(224, 178, 106, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
}
.soup-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 8px;
}
.soup-card-title {
  font-family: var(--serif);
  font-size: 16.5px;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.soup-card-surface {
  padding-left: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.soup-card-foot {
  margin-top: auto;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
}
.soup-card-foot .dotsep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  line-height: 2;
}
.empty .empty-mark {
  font-family: var(--serif);
  font-size: 30px;
  color: rgba(224, 178, 106, 0.28);
  display: block;
  margin-bottom: 6px;
}

/* 鐠佸墽鐤?*/
.settings {
  display: flex;
  flex-direction: column;
}
.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-of-type {
  border-bottom: 0;
}
.setting-name {
  font-size: 13.5px;
  color: var(--text-soft);
}
.setting-desc {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
  margin-top: 2px;
}
.settings-foot {
  padding: 12px 15px 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.host-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin: 10px 12px 0;
  border-radius: 8px;
  background: rgba(224, 178, 106, 0.06);
  border: 1px solid rgba(224, 178, 106, 0.14);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.start-dock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(224, 178, 106, 0.06), transparent 40%),
    var(--panel);
}
.start-dock .picked {
  min-width: 0;
  flex: 1;
}
.start-dock .picked-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.start-dock .picked-title {
  font-family: var(--serif);
  font-size: 17px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.start-dock .picked-title.empty-pick {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 14px;
}

/* ============================================================
   鐎电懓鐪い?   ============================================================ */

.play {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(14px, 2.6vw, 26px) 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.surface {
  position: relative;
  padding: 18px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(224, 178, 106, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(26, 29, 35, 0.9), rgba(14, 16, 20, 0.92));
  overflow: hidden;
}
.surface::after {
  content: "汤";
  position: absolute;
  right: 18px;
  top: -18px;
  font-family: var(--serif);
  font-size: 110px;
  color: rgba(224, 178, 106, 0.045);
  pointer-events: none;
}
.surface-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.surface-title {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
}
.surface-text {
  position: relative;
  max-width: 920px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-soft);
}
.surface-warn {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(207, 97, 84, 0.24);
  background: rgba(207, 97, 84, 0.07);
  color: #d8a29a;
  font-size: 13px;
  line-height: 1.6;
}
.surface-warn b {
  color: #eab6ae;
  font-weight: 500;
  white-space: nowrap;
}

.play-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}
.play-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.play-side .panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.clue-panel {
  flex: 1;
  min-height: 160px;
}
.clues {
  flex: 1;
  overflow: auto;
  padding: 6px 8px 10px;
  max-height: calc(100vh - 500px);
}
.clue-item {
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  animation: rise 0.3s var(--ease) both;
}
.clue-item + .clue-item {
  border-top: 1px dashed rgba(232, 220, 198, 0.07);
}
.clue-index {
  flex: 0 0 auto;
  width: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber-deep);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.clue-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.chat-head .panel-title {
  color: var(--muted);
}
.chat-head .auto-note {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(224, 178, 106, 0.8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  min-height: 240px;
}

.msg {
  display: flex;
  gap: 9px;
  max-width: 86%;
  animation: rise 0.28s var(--ease) both;
}
.msg .avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
  margin-top: 2px;
}
.msg-body {
  min-width: 0;
}
.msg-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.msg-author .name {
  color: var(--muted);
}
.bubble {
  padding: 8px 12px;
  border-radius: 3px 10px 10px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(232, 220, 198, 0.07);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
  word-break: break-word;
  white-space: pre-wrap;
}
.msg.question {
  margin-left: auto;
  flex-direction: row-reverse;
}
.msg.question .msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.msg.question .msg-author {
  flex-direction: row-reverse;
}
.msg.question .bubble {
  background: rgba(224, 178, 106, 0.09);
  border-color: rgba(224, 178, 106, 0.2);
  border-radius: 10px 3px 10px 10px;
  color: #efe5d3;
}
.msg.guess .bubble {
  background: rgba(108, 200, 189, 0.07);
  border-color: rgba(108, 200, 189, 0.22);
  border-radius: 10px 3px 10px 10px;
}
.msg.answer .bubble {
  background: rgba(18, 21, 26, 0.9);
  border-color: var(--line-strong);
  color: var(--text);
  white-space: normal;
}
.msg.answer .avatar {
  background: linear-gradient(160deg, #3a3327, #221e17);
  border-color: rgba(224, 178, 106, 0.28);
  color: var(--amber);
}
.answer-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.verdict {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.verdict.yes {
  color: #8fd0a9;
}
.verdict.no {
  color: #d98a80;
}
.verdict.both {
  color: #e0b26a;
}
.verdict.irrelevant {
  color: var(--dim);
}
.verdict.success {
  color: var(--amber-bright);
  text-shadow: 0 0 22px rgba(224, 178, 106, 0.35);
}
.msg-tools {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  transition: 0.15s;
}
.icon-btn:hover {
  color: var(--amber);
  background: rgba(255, 255, 255, 0.05);
}

.msg.system {
  max-width: 100%;
  justify-content: center;
  padding: 2px 0;
}
.msg.system .bubble {
  background: transparent;
  border: 0;
  padding: 0 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.msg.system.success .bubble {
  color: var(--amber);
}
.msg.hint .bubble {
  background: rgba(224, 178, 106, 0.05);
  border-style: dashed;
  border-color: rgba(224, 178, 106, 0.25);
  color: #dfcfb2;
}

.thinking {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 86%;
  animation: rise 0.25s var(--ease) both;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 3px 12px 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.4;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* 鏉堟挸鍙嗛崠?*/
.composer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.55);
  padding: 10px 14px 12px;
}
.composer-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 22px;
}
.composer-top .tiny {
  color: var(--dim);
}
.composer-top .spacer {
  flex: 1;
}
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.composer-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer-input:focus {
  border-color: rgba(224, 178, 106, 0.45);
  box-shadow: 0 0 0 3px rgba(224, 178, 106, 0.07);
}
.composer-input::placeholder {
  color: #5c584f;
}

.mic-btn {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.mic-btn:hover {
  color: var(--text);
  border-color: rgba(232, 220, 198, 0.28);
}
.mic-btn.recording {
  color: #f0b8b0;
  border-color: rgba(207, 97, 84, 0.6);
  background: rgba(207, 97, 84, 0.12);
  animation: recGlow 1.6s ease-in-out infinite;
}
@keyframes recGlow {
  50% {
    box-shadow: 0 0 0 6px rgba(207, 97, 84, 0.06);
  }
}
.mic-btn.recording::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 1px solid rgba(207, 97, 84, 0.28);
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring {
  from {
    transform: scale(0.94);
    opacity: 1;
  }
  to {
    transform: scale(1.18);
    opacity: 0;
  }
}

.mic-live {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  color: #d98a80;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.wave i {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  animation: wave 0.9s ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: 0.1s;
}
.wave i:nth-child(3) {
  animation-delay: 0.2s;
}
.wave i:nth-child(4) {
  animation-delay: 0.3s;
}
.wave i:nth-child(5) {
  animation-delay: 0.15s;
}
@keyframes wave {
  50% {
    height: 13px;
  }
}

.hint-btn {
  position: relative;
}
.hint-btn .left {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  border-left: 1px solid var(--line);
  padding-left: 7px;
  margin-left: 1px;
}

/* ============================================================
   缂佹挻顢嶆い?   ============================================================ */

.result {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}
.result-hero {
  text-align: center;
  margin-bottom: 26px;
}
.result-eyebrow {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.result-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.08em;
  margin-top: 10px;
  color: var(--text);
}
.result-title em {
  font-style: normal;
  color: var(--amber-bright);
  text-shadow: 0 0 40px rgba(224, 178, 106, 0.3);
}
.result-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}
.champion-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(224, 178, 106, 0.25);
  background: rgba(224, 178, 106, 0.06);
  color: var(--amber);
  font-size: 13.5px;
}

.result-warn {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(207, 97, 84, 0.3);
  background: rgba(207, 97, 84, 0.08);
  color: #dcaea7;
  font-size: 13.5px;
  line-height: 1.7;
}
.result-warn .mark {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 18px;
  color: #e0b26a;
}

.ending-card {
  position: relative;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(224, 178, 106, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(24, 27, 33, 0.92), rgba(12, 14, 17, 0.95));
  box-shadow: var(--shadow-lg);
}
.ending-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.ending-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.06em;
  margin: 6px 0 16px;
}
.ending-text {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-soft);
  white-space: pre-wrap;
}
.ending-facts {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.facts-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fact {
  display: flex;
  gap: 9px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding: 3px 0;
}
.fact::before {
  content: "·";
  color: var(--amber-deep);
}

.review {
  margin-top: 22px;
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.tab {
  position: relative;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.tab:hover {
  color: var(--text-soft);
}
.tab.active {
  color: var(--amber-bright);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1.5px;
  background: var(--amber);
}
.tab .count {
  color: var(--dim);
  font-size: 12px;
  margin-left: 4px;
}
.review-body {
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
}
.review-msg {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(232, 220, 198, 0.06);
  font-size: 14px;
  line-height: 1.7;
}
.review-msg .who {
  flex: 0 0 74px;
  color: var(--dim);
  font-size: 12.5px;
  padding-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-msg .what {
  color: var(--text-soft);
  min-width: 0;
}
.review-msg.answer .what {
  color: var(--amber);
}
.review-msg.system .what {
  color: var(--dim);
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============================================================
   閸氬骸褰?   ============================================================ */

.admin {
  min-height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px clamp(16px, 3vw, 32px) 60px;
}
.admin-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.admin-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
}
.admin-sub {
  font-size: 13px;
  color: var(--dim);
}
.admin-head .spacer {
  flex: 1;
}
.admin-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-forms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.form-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.form-card .sub {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.6;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.checkline input {
  accent-color: var(--amber);
  width: 14px;
  height: 14px;
}
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.list-toolbar .select {
  width: auto;
  height: 32px;
  padding: 0 28px 0 9px;
  font-size: 13px;
}
.list-toolbar .input {
  width: 180px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.list-toolbar .spacer {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: #12151a;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.admin-table td.title {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 14px;
  max-width: 180px;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}
.admin-table .cell-actions {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.admin-table .surface-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 閻ц缍嶉梻?*/
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card {
  width: min(400px, 100%);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 27, 33, 0.9), rgba(13, 15, 18, 0.95));
  box-shadow: var(--shadow-lg);
}
.gate-card .brand {
  margin-bottom: 20px;
}

/* ============================================================
   瀵懓鐪?/ Toast
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.18s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal {
  width: min(480px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #1a1e24, #101317);
  box-shadow: 0 40px 100px -30px #000;
  animation: modalIn 0.24s var(--ease) both;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
.modal.wide {
  width: min(620px, 100%);
}
.modal-title {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
}
.modal-desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.7;
}
.modal-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.modal-actions .btn {
  min-width: 86px;
}

.toasts {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(480px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 25, 31, 0.96);
  color: var(--text-soft);
  font-size: 14px;
  box-shadow: 0 20px 50px -20px #000;
  animation: toastIn 0.25s var(--ease) both;
}
.toast::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 auto;
}
.toast.error {
  border-color: rgba(207, 97, 84, 0.35);
  color: #ecb6ae;
}
.toast.error::before {
  background: var(--red);
}
.toast.success {
  border-color: rgba(127, 191, 154, 0.3);
  color: #b7dcc5;
}
.toast.success::before {
  background: #7fbf9a;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.toast.out {
  animation: toastOut 0.2s ease both;
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* 閸旂姾娴?*/
.loader {
  display: grid;
  place-items: center;
  min-height: 50vh;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.loader::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid rgba(224, 178, 106, 0.25);
  border-top-color: var(--amber);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 閺傤厾鍤庨柆顔惧兊 */
.offline-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 9, 0.62);
  backdrop-filter: blur(3px);
}
.offline-box {
  text-align: center;
  padding: 24px 30px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #15181e;
  font-size: 14px;
  color: var(--muted);
}
.offline-box b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 400;
}

/* ============================================================
   閸濆秴绨插?   ============================================================ */

@media (max-width: 1180px) {
  .wait-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .wait-grid > .settings-panel {
    grid-column: 1 / -1;
  }
  .soup-scroll {
    max-height: none;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .home-main {
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 34px;
  }
  .home-title {
    font-size: clamp(52px, 14vw, 80px);
  }
  .home-levels {
    margin-top: 28px;
  }
  .wait-grid {
    display: flex;
    flex-direction: column;
  }
  .wait-grid > * {
    width: 100%;
  }
  .players {
    max-height: 240px;
  }
  .play-grid {
    grid-template-columns: 1fr;
  }
  .play-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    order: 2;
  }
  .chat-panel {
    order: 1;
    min-height: 56vh;
  }
  .play-side .clue-panel {
    min-height: 180px;
  }
  .clues {
    max-height: 220px;
  }
  .topbar-room .room-name {
    max-width: 36vw;
  }
  .conn span {
    display: none;
  }
}

@media (max-width: 620px) {
  .home {
    padding-top: 22px;
  }
  .home-title {
    letter-spacing: 0;
  }
  .home-lead {
    font-size: 14px;
  }
  .level-row {
    grid-template-columns: 76px 1fr;
    gap: 8px;
  }
  .level-row .lv-note {
    grid-column: 2;
  }
  .home-foot {
    justify-content: center;
    text-align: center;
  }
  .topbar {
    height: 56px;
    gap: 8px;
    padding: 0 10px;
  }
  .topbar .brand {
    display: none;
  }
  .topbar-room .room-name {
    max-width: 30vw;
  }
  .play-side {
    grid-template-columns: 1fr;
  }
  .msg {
    max-width: 94%;
  }
  .soup-grid {
    grid-template-columns: 1fr;
  }
  .surface {
    padding: 14px 15px 16px;
  }
  .surface-title {
    font-size: 18px;
  }
  .composer {
    padding: 8px 9px 10px;
  }
  .composer-row {
    gap: 6px;
  }
  .composer-row .btn .label-full {
    display: none;
  }
  .result {
    padding-top: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .admin {
    padding-top: 16px;
  }
}

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

/* ============================================================
   閹村潡妫跨悰銉ュ帠
   ============================================================ */

.msg.guess {
  margin-left: auto;
  flex-direction: row-reverse;
}
.msg.guess .msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.msg.guess .msg-author {
  flex-direction: row-reverse;
}

.msg.no-anim,
.clue-item.no-anim {
  animation: none;
}

.answer-detail {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
}

.players.compact {
  max-height: 190px;
}

.players-panel .settings-foot {
  padding: 11px 15px 13px;
  border-top: 1px solid var(--line);
}

.modal .surface-text {
  max-height: 40vh;
  overflow: auto;
}

.soup-browser .loader {
  min-height: 220px;
}

@media (hover: none) {
  .player-more {
    opacity: 1;
  }
}

/* ============================================================
   閸氬骸褰寸悰銉ュ帠閿涙gent 閻樿埖鈧?/ 濮广倖銆傚鍫ヮ暕鐟?/ 缂傛牞绶?   ============================================================ */

.agent-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--dim);
}
.agent-line:last-child {
  border-bottom: 0;
}
.agent-line b {
  color: var(--text-soft);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}
.preview-section {
  margin-top: 15px;
}
.preview-section:first-of-type {
  margin-top: 0;
}
.preview-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}
.preview-text {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-soft);
  white-space: pre-wrap;
  margin: 0;
}
.preview-fact {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  padding: 3px 0 3px 12px;
  border-left: 1px solid var(--line-strong);
  margin-top: 5px;
}
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edit-form .field {
  min-width: 0;
}
.edit-form .textarea {
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- 閺堫剚婧€妤癸箑鍘犳?/ 閺堟顕伴惃鍕磻閸忓磭濮搁幀?---------- */

.local-toggle {
  position: relative;
}
.local-toggle.is-off {
  color: var(--dim);
  border-color: transparent;
  opacity: 0.72;
}
.local-toggle.is-off:hover {
  color: var(--text-soft);
  border-color: var(--line);
  opacity: 1;
}
.mic-btn.is-off {
  color: var(--dim);
  border-style: dashed;
  border-color: rgba(232, 220, 198, 0.2);
}
.mic-btn.is-off:hover {
  color: var(--text-soft);
  border-color: rgba(232, 220, 198, 0.34);
}

/* ---------- 婢堆冨泛 璺?娴犲﹤顧佸Ч銈呭礋娑撳氦浠堢純鎴濆絿濮?---------- */

.home-shelf {
  margin-top: clamp(36px, 6vh, 72px);
  padding-top: clamp(26px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.shelf-title {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.1em;
  margin-top: 7px;
}
.shelf-count {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-left: 8px;
}
.shelf-desc {
  max-width: 640px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.brew-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-color: rgba(224, 178, 106, 0.42);
  color: var(--amber);
}
.brew-btn:hover {
  border-color: rgba(224, 178, 106, 0.66);
  background: rgba(224, 178, 106, 0.06);
}
.brew-icon {
  font-size: 15px;
  line-height: 1;
}
.brew-btn.is-loading .brew-icon {
  animation: brewPulse 1.1s ease-in-out infinite;
}
@keyframes brewPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(45deg);
  }
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.shelf-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 18px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(28, 32, 39, 0.5), rgba(15, 17, 21, 0.58));
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.shelf-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(31, 35, 43, 0.66), rgba(16, 18, 23, 0.7));
}
.shelf-card.lvl-black {
  border-color: rgba(201, 183, 174, 0.2);
}
.shelf-card.is-new {
  animation: shelfIn 1.4s ease-out;
}
@keyframes shelfIn {
  0% {
    border-color: rgba(224, 178, 106, 0.9);
    box-shadow: 0 0 0 1px rgba(224, 178, 106, 0.35), 0 0 34px rgba(224, 178, 106, 0.18);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 rgba(224, 178, 106, 0);
  }
}
.shelf-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shelf-card-title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.05em;
  margin-top: 13px;
  color: var(--text);
}
.shelf-card-surface {
  flex: 1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf-card-warn {
  margin-top: 9px;
  padding-left: 9px;
  border-left: 1px solid rgba(207, 97, 84, 0.55);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.shelf-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 38px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--dim);
  font-size: 14px;
}

/* ---------- 閹绘劙妫舵稉濠囨 ---------- */

.question-limit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.question-limit-input,
.setting-number {
  width: 86px;
  height: 38px;
  padding: 7px 10px;
  text-align: center;
  font-size: 13.5px;
}
.composer-quota {
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
}
.composer-quota.is-out {
  color: var(--amber);
}

@media (max-width: 900px) {
  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 620px) {
  .shelf-grid {
    grid-template-columns: 1fr;
  }
  .shelf-card {
    min-height: 0;
  }
  .brew-btn {
    width: 100%;
    justify-content: center;
  }
  .composer-quota {
    display: none;
  }
}

/* ---------- 婢舵潙鍎氭ス锕€鍘犳搴ㄧ叾闁插繒骞?/ 鎼囱傜秴娑撳骸顦跨粩?---------- */

.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.avatar-wrap > .avatar {
  position: relative;
  z-index: 1;
}
.mic-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(108, 200, 189, 0.55);
  box-shadow: 0 0 10px rgba(108, 200, 189, 0.26);
  opacity: 0;
  transform: scale(var(--mic-scale, 1));
  transition:
    opacity 0.12s linear,
    border-color 0.12s linear,
    box-shadow 0.12s linear;
  pointer-events: none;
}
.room.is-recording .avatar-wrap.is-self .mic-halo {
  opacity: var(--mic-level, 0.18);
}
.room.mic-loud .avatar-wrap.is-self .mic-halo {
  opacity: 1;
  border-color: rgba(224, 178, 106, 0.95);
  box-shadow:
    0 0 16px rgba(224, 178, 106, 0.55),
    0 0 30px rgba(224, 178, 106, 0.18);
}
.seat-tag {
  flex: none;
  min-width: 25px;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}
.player.you .seat-tag {
  color: var(--amber);
  border-color: rgba(224, 178, 106, 0.28);
}
.multi-badge {
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(224, 178, 106, 0.3);
  border-radius: 5px;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}


/* ---------- 閻喍姹夋稉缁樺瘮娴滅儤甯堕崚璺哄酱 ---------- */
.host-desk {
  margin: 0 22px 10px;
  padding: 14px 16px;
  border: 1px solid rgba(224, 178, 106, .34);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(224, 178, 106, .09), rgba(224, 178, 106, .03)),
    rgba(22, 20, 18, .82);
}
.host-desk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.host-desk-head b { font-family: var(--serif); font-size: 15px; color: var(--amber); letter-spacing: .04em; }
.host-desk-head .hintline { margin: 0; }
.host-pending { display: grid; gap: 8px; }
.host-ticket {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}
.host-ticket-text { flex: 1; min-width: 180px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.host-ticket-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.host-verdicts { display: flex; gap: 6px; flex-wrap: wrap; }
.host-empty { font-size: 13px; color: var(--muted); padding: 4px 2px 8px; }
.host-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.host-tool { display: flex; gap: 6px; align-items: stretch; }
.host-tool .input { min-width: 0; flex: 1; }
.host-tool-row { display: flex; gap: 8px; align-items: center; }
.host-tool-row .tag { flex: 0 0 auto; }
@media (max-width: 760px) {
  .host-tools { grid-template-columns: 1fr; }
  .host-desk { margin: 0 10px 8px; padding: 12px; }
}

/* 闂婂疇澹婇柅澶嬪娑撳酣鈧氨鏁ょ悰銊ュ礋 */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.field .input, .field .select, .field textarea { width: 100%; }
#voice-select { min-height: 42px; }

/* ---------- 鐎电懓鐪拋鏉跨秿 / 閸ョ偞鏂?---------- */
.records-wrap { max-width: 1000px; margin: 0 auto; padding: 34px 22px 70px; }
.records-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.records-head h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); margin: 0; letter-spacing: .06em; }
.records-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.record-list { display: grid; gap: 10px; }
.record-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.024);
  transition: border-color .2s, transform .2s;
}
.record-card:hover { border-color: rgba(224,178,106,.4); transform: translateY(-1px); }
.record-main { flex: 1; min-width: 220px; }
.record-title { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; }
.record-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.record-champ { color: var(--amber); }
.record-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed rgba(255,255,255,.12); border-radius: 16px; }

.replay-wrap { max-width: 1080px; margin: 0 auto; padding: 30px 22px 80px; }
.replay-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.replay-head h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); margin: 0; }
.replay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.replay-chat { max-height: 62vh; overflow: auto; padding-right: 6px; }
.replay-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.replay-progress { flex: 1; min-width: 120px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.replay-progress i { display: block; height: 100%; background: var(--amber); width: 0; transition: width .2s; }
.replay-facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.replay-facts li { padding: 7px 10px; border-left: 2px solid rgba(224,178,106,.4); background: rgba(255,255,255,.025); font-size: 13px; line-height: 1.6; }
.replay-end { margin-top: 14px; }
.replay-end h3 { font-family: var(--serif); color: var(--amber); margin: 0 0 6px; }
.replay-end p { margin: 0; white-space: pre-wrap; line-height: 1.75; font-size: 14px; }
@media (max-width: 860px) {
  .replay-grid { grid-template-columns: 1fr; }
  .replay-chat { max-height: 52vh; }
}

/* ---------- 婢堆冨泛閿涙碍鏁归挊蹇嬧偓浣圭垼缁涘彞绗岀€电懓鐪崗銉ュ經 ---------- */
.shelf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shelf-actions .select { min-width: 118px; }
.shelf-filter.is-on { border-color: rgba(224,178,106,.6); color: var(--amber); background: rgba(224,178,106,.08); }
.shelf-card { position: relative; }
.shelf-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,11,13,.55); color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: color .18s, border-color .18s, transform .18s;
}
.shelf-fav:hover { transform: scale(1.08); color: var(--amber); border-color: rgba(224,178,106,.5); }
.shelf-fav.is-on { color: #e06b5e; border-color: rgba(224,107,94,.55); }
.shelf-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; }
.shelf-card-tags span { font-size: 11.5px; color: var(--muted); }
.home-records { margin-top: 6px; }
.home-records .shelf-head { align-items: flex-start; }
.home-records .record-list { grid-template-columns: 1fr; }
.record-card { text-decoration: none; color: inherit; }
.record-card .btn { pointer-events: none; }
@media (max-width: 700px) {
  .shelf-actions { justify-content: flex-start; }
  .shelf-actions .brew-btn { width: 100%; justify-content: center; }
}

/* 閻喍姹夋稉缁樺瘮鐢?*/
.moderator-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(224, 178, 106, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(224, 178, 106, 0.08), transparent 60%),
    rgba(18, 19, 21, 0.62);
}
.moderator-seat.compact { margin: 0 0 12px; padding: 10px 13px; }
.moderator-seat.is-mine { border-color: rgba(108, 200, 189, 0.4); }
.moderator-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.moderator-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  border: 1px solid rgba(224, 178, 106, 0.4);
  color: var(--amber);
  background: rgba(224, 178, 106, 0.08);
}
.moderator-mark svg { width: 17px; height: 17px; }
.moderator-label { font-size: 12px; letter-spacing: 0.16em; color: var(--dim); }
.moderator-name { margin-top: 2px; color: var(--text); }
.moderator-name b { color: var(--text); font-weight: 600; }
.moderator-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mod-badge {
  padding: 1px 6px;
  border: 1px solid rgba(224, 178, 106, 0.45);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.5;
}
.picked-warn { margin-top: 4px; font-size: 12px; color: var(--red-soft, #cf6154); }

/* 瀵偓閸﹀搫绠风敮?*/
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(224, 178, 106, 0.13), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(8, 9, 10, 0.82), #060708 78%);
  animation: intro-veil-in 0.55s ease both;
  backdrop-filter: blur(3px);
}
.intro-veil::before,
.intro-veil::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, #050607, rgba(5, 6, 7, 0.72));
  animation: intro-curtain 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro-veil::before { left: 0; transform-origin: left; }
.intro-veil::after { right: 0; transform-origin: right; background: linear-gradient(270deg, #050607, rgba(5, 6, 7, 0.72)); }
.intro-stage {
  position: relative;
  z-index: 1;
  width: min(720px, 88vw);
  text-align: center;
  animation: intro-stage-in 0.9s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro-kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--amber);
  text-transform: uppercase;
}
.intro-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 0 42px rgba(224, 178, 106, 0.16);
}
.intro-rule {
  height: 1px;
  margin: 22px auto;
  width: min(280px, 52%);
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: intro-rule-in 1s 0.55s ease both;
}
.intro-surface {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(233, 227, 214, 0.86);
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2.05;
  letter-spacing: 0.03em;
  white-space: pre-wrap;
}
.intro-warn {
  margin: 18px auto 0;
  max-width: 560px;
  padding: 8px 12px;
  border-left: 2px solid var(--red);
  background: rgba(207, 97, 84, 0.08);
  color: #d9a29a;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}
.intro-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.intro-line { display: block; width: 120px; height: 1px; background: rgba(224, 178, 106, 0.2); overflow: hidden; }
.intro-line i { display: block; width: 40%; height: 100%; background: var(--amber); animation: intro-line 2.4s ease-in-out infinite; }
.intro-skip { opacity: 0.6; }
.intro-skip:hover { opacity: 1; }

@keyframes intro-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes intro-stage-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-rule-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes intro-line { 0% { transform: translateX(-100%); } 50% { transform: translateX(180%); } 100% { transform: translateX(-100%); } }

@media (max-width: 720px) {
  .moderator-seat { flex-direction: column; align-items: flex-start; }
  .moderator-actions { width: 100%; justify-content: flex-end; }
  .intro-veil { padding: 18px; }
  .intro-title { font-size: clamp(30px, 9vw, 46px); }
  .intro-surface { line-height: 1.9; }
}


.host-truth {
  margin: 10px 0 4px;
  padding: 9px 12px;
  border: 1px dashed rgba(224, 178, 106, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}
.host-truth summary { cursor: pointer; color: var(--amber); font-size: 13px; }
.host-truth p { margin: 8px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.host-truth ul { margin: 8px 0 0 18px; color: var(--text-soft); font-size: 12px; line-height: 1.8; }

.voice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  margin: 2px 0 6px;
  padding-right: 2px;
}
.voice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.voice-option:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.025); }
.voice-option:has(input:checked) {
  border-color: rgba(224, 178, 106, 0.42);
  background: rgba(224, 178, 106, 0.06);
}
.voice-option input { accent-color: var(--amber); flex: 0 0 auto; }
.voice-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.voice-name { font-size: 13px; color: var(--text); line-height: 1.4; }
.voice-meta { font-size: 12px; color: var(--dim); line-height: 1.4; }
.voice-tag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(108, 200, 189, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11.5px;
}

.voice-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.voice-section h4 {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.voice-section h4 span {
  margin-left: 6px;
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
}
.voice-name small {
  margin-left: 4px;
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 400;
}
.voice-option input[type="radio"] {
  width: 15px;
  height: 15px;
  margin: 0;
}
@media (max-width: 720px) {
  .voice-list { max-height: 34vh; }
  .voice-picker { gap: 12px; }
}




/* 麦克风权限提示与实时音量条 */
.mic-live.starting {
  color: #c9b7ae;
}
.mic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0b26a;
  box-shadow: 0 0 0 0 rgba(224, 178, 106, 0.5);
  animation: micDot 1.2s ease-out infinite;
}
@keyframes micDot {
  0% { box-shadow: 0 0 0 0 rgba(224, 178, 106, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(224, 178, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 178, 106, 0); }
}
.mic-meter {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(232, 220, 198, 0.12);
  flex: 0 0 auto;
}
.mic-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6cc8bd, #e0b26a);
  transform: scaleX(var(--mic-level, 0.18));
  transform-origin: left center;
  transition: transform 80ms linear;
}
.room.mic-loud .mic-meter i {
  background: linear-gradient(90deg, #e0b26a, #f2d49b);
}
.mic-hint {
  color: rgba(232, 220, 198, 0.55);
  font-size: 12px;
}
.mic-btn.is-starting {
  border-color: rgba(224, 178, 106, 0.45);
  color: #e0b26a;
}
@media (max-width: 620px) {
  .mic-hint { display: none; }
  .mic-meter { width: 56px; }
}

/* 等待页：开局栏固定在底部，PC 和手机都不用滚到底 */
.wait.has-dock {
  padding-bottom: 118px;
}
.start-dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(1384px, calc(100vw - 32px));
  z-index: 30;
  background:
    linear-gradient(90deg, rgba(224, 178, 106, 0.09), transparent 42%),
    rgba(14, 16, 20, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .start-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 54px;
    padding: 0 8px;
    gap: 6px;
  }
  .topbar .brand-mark {
    display: none;
  }
  .topbar-left {
    gap: 7px;
  }
  .topbar-room {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .topbar-room .room-name {
    max-width: 34vw;
    font-size: 14px;
  }
  .room-code {
    height: 22px;
    padding: 0 6px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }
  .topbar-right {
    gap: 4px;
  }
  .topbar-right .conn {
    display: none;
  }
  .topbar-right .status-pill {
    font-size: 11px;
    padding: 3px 7px;
  }
  .topbar-right .btn-sm {
    padding: 0 8px;
  }
  .topbar-left {
    flex: 1;
    min-width: 0;
  }
  .topbar-room {
    min-width: 0;
  }
  .topbar-room .room-name {
    max-width: 30vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-right {
    flex: none;
  }
  .topbar-right [data-local="mic"] {
    display: none;
  }
  .topbar-right .btn-icon {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .wait {
    padding: 12px 10px 18px;
    gap: 12px;
  }
  .wait.has-dock {
    padding-bottom: 108px;
  }
  .wait-banner {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .wait-banner .lock {
    display: none;
  }
  .moderator-seat {
    margin: 0 0 10px;
    padding: 11px 12px;
  }
  .wait-grid {
    gap: 12px;
  }

  .players {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 7px;
    gap: 6px;
    scrollbar-width: thin;
  }
  .players .player {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 7px 8px;
  }
  .players .player-name {
    max-width: 86px;
  }

  .soup-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .soup-toolbar .chips {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .soup-toolbar .chips .chip {
    flex: 0 0 auto;
  }
  .soup-scroll {
    max-height: none;
  }

  .settings .setting-row {
    padding: 11px 12px;
  }
  .settings-foot {
    padding: 10px 12px 12px;
  }

  .start-dock {
    width: calc(100vw - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 9px 10px;
    gap: 9px;
    border-radius: 12px;
  }
  .start-dock .picked-label {
    display: none;
  }
  .start-dock .picked-title {
    font-size: 14px;
    line-height: 1.3;
  }
  .start-dock .picked-warn {
    font-size: 11px;
    line-height: 1.4;
  }
  .start-dock .btn-lg {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 15px;
    font-size: 14.5px;
    white-space: nowrap;
  }
}

.start-dock .picked {
  min-width: 0;
}

@media (max-width: 620px) {
  .play {
    padding: 10px 10px 16px;
    gap: 10px;
  }
  .surface {
    padding: 13px 14px 15px;
    border-radius: 12px;
  }
  .surface::after {
    display: none;
  }
  .surface-head {
    gap: 6px;
    margin-bottom: 6px;
  }
  .surface-title {
    font-size: 18px;
  }
  .surface-text {
    font-size: 14px;
    line-height: 1.85;
  }
  .surface-warn {
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .play-side {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chat-panel {
    min-height: 58vh;
  }
  .chat-head {
    padding: 9px 11px;
  }
  .chat-scroll {
    padding: 12px 11px 6px;
    gap: 9px;
  }
  .bubble {
    max-width: 88%;
  }
  .composer {
    padding: 8px 10px 10px;
  }
  .composer-row {
    gap: 6px;
  }
  .composer-input {
    min-height: 42px;
  }
  .clues {
    max-height: 180px;
  }
}

/* 按住说话：避免手机长按选中/滚动干扰 */
.mic-btn {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.mic-btn.recording {
  transform: scale(0.96);
}
.mic-live b {
  color: var(--amber);
  font-weight: 500;
}

/* ---------- 玩家语音房 ---------- */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 200, 189, 0.06), rgba(224, 178, 106, 0.04));
}
.voice-bar.is-joined {
  border-color: rgba(108, 200, 189, 0.34);
}
.voice-bar.is-talking {
  border-color: rgba(224, 178, 106, 0.55);
  box-shadow: 0 0 0 1px rgba(224, 178, 106, 0.12), 0 0 22px rgba(224, 178, 106, 0.08);
}
.voice-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(160, 150, 135, 0.06);
}
.voice-bar.is-joined .voice-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(108, 200, 189, 0.12);
  animation: voicePulse 2.2s ease-in-out infinite;
}
.voice-bar.is-talking .voice-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(224, 178, 106, 0.18), 0 0 16px rgba(224, 178, 106, 0.35);
  animation: voicePulse 0.9s ease-in-out infinite;
}
.voice-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.voice-copy b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.voice-copy span {
  font-size: 12px;
  color: var(--muted);
}
.voice-copy em {
  font-size: 12px;
  font-style: normal;
  color: var(--red);
}
.voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  flex: none;
}
.voice-mic {
  min-width: 72px;
  border-color: rgba(108, 200, 189, 0.4);
  color: var(--teal);
  background: rgba(108, 200, 189, 0.08);
}
.voice-mic:hover {
  border-color: var(--teal);
  background: rgba(108, 200, 189, 0.16);
}
.voice-mic.is-live {
  border-color: rgba(207, 97, 84, 0.6);
  color: #f0a197;
  background: rgba(207, 97, 84, 0.14);
  box-shadow: 0 0 16px rgba(207, 97, 84, 0.16);
}
.voice-mic.is-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 1px;
  animation: voicePulse 0.9s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (max-width: 620px) {
  .voice-bar {
    align-items: flex-start;
    padding: 10px 12px;
  }
  .voice-copy span {
    line-height: 1.5;
  }
  .voice-actions .btn {
    padding: 7px 10px;
    white-space: nowrap;
  }
}

/* 对局页固定高度：消息再多也只滚动聊天区，不把整页撑长 */
.room.is-playing {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.room.is-playing .play {
  min-height: 0;
}
.room.is-playing .play-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}
.room.is-playing .play-side,
.room.is-playing .chat-panel {
  height: 100%;
  min-height: 0;
}
.room.is-playing .chat-scroll {
  min-height: 0;
}
.room.is-playing .chat-panel {
  overflow: hidden;
}

@media (max-width: 900px) {
  .room.is-playing .play-grid {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .room.is-playing .chat-panel {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  .room.is-playing .play-side {
    order: 2;
    flex: 0 0 auto;
    height: auto;
    max-height: 34vh;
    overflow: hidden;
  }
  .room.is-playing .play-side .panel {
    min-height: 0;
  }
  .room.is-playing .clues {
    max-height: 24vh;
  }
}
