/* Generated by npm run styles:build. Edit styles/*.css in the order below. */
/* style.css — canonical section */
:root {
  --bg: #f6f6f3;
  --card: #fff;
  --fg: #141414;
  --dim: #7c7c82;
  --line: #e7e7e3;
  --soft: #efefeb;
  --acc: #141414;
  --on-acc: #fff;
  --ok: #1f9d55;
  --warn: #c2700a;
  --bad: #d93636;
  --r: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --card: #161618;
    --fg: #ececec;
    --dim: #8a8a92;
    --line: #25252a;
    --soft: #1f1f23;
    --acc: #ececec;
    --on-acc: #0c0c0d;
    --warn: #f0a03c;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  position: fixed;
  top: var(--app-top, 0px);
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: var(--app-height, 100dvh);
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'HarmonyOS Sans SC',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    var(--app-safe-bottom, env(safe-area-inset-bottom)) env(safe-area-inset-left);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: var(--acc);
  color: var(--on-acc);
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  height: 48px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.12s,
    opacity 0.15s,
    background 0.15s;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.28;
  cursor: default;
  transform: none;
}
button.ghost,
button.secondary {
  background: var(--soft);
  color: var(--fg);
}
button.danger {
  background: var(--soft);
  color: var(--bad);
}
button.link {
  background: none;
  color: var(--dim);
  height: auto;
  padding: 4px 2px;
  border-radius: 6px;
  font-weight: 500;
}
button.link:hover {
  color: var(--fg);
}
button.pill {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--dim);
}
.lab {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.lab small {
  font-size: 12px;
  opacity: 0.75;
}
input,
textarea,
select {
  width: 100%;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 14px;
  height: 46px;
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
textarea {
  height: 96px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.5;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--fg);
  background: var(--card);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--dim);
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
form > button {
  margin-top: 4px;
}
.dim,
.muted {
  color: var(--dim);
}
.rules {
  display: none;
}
.footer-note {
  font-size: 13px;
  color: var(--dim);
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
ul,
ol {
  padding-left: 18px;
}
.bar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.brand {
  background: none;
  color: var(--fg);
  height: auto;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: currentColor;
  transform: rotate(45deg);
}
#connection {
  font-size: 12px;
  color: var(--warn);
}
#who {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
}
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 20px 16px;
  position: relative;
}
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.narrow {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.tabs {
  display: flex;
  background: var(--soft);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.tabs button {
  flex: 1;
  height: 36px;
  background: none;
  color: var(--dim);
  border-radius: 9px;
  font-weight: 500;
}
.tabs button.on {
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0/0.08);
}
.small {
  font-size: 13px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-actions > button {
  flex: 1;
}
.join {
  flex-direction: row;
  gap: 8px;
}
.join input {
  flex: 1;
  min-width: 0;
}
.join button {
  flex: none;
  height: 46px;
}
.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.game {
  height: auto;
  background: var(--card);
  color: var(--fg);
  border-radius: var(--r);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  font-weight: 400;
  box-shadow: 0 0 0 1px var(--line);
}
.game:hover {
  box-shadow: 0 0 0 1px var(--fg);
}
.game .glyph {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  margin-bottom: 6px;
  background: #6d5efc;
}
.game:nth-child(2) .glyph {
  background: #ff7a45;
}
.game:nth-child(3) .glyph {
  background: #12b886;
}
.game:nth-child(4) .glyph {
  background: #f0b400;
}
.game strong {
  font-size: 16px;
  font-weight: 650;
}
.game span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.strip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 14px;
}
.av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  background: var(--soft);
  color: var(--fg);
  position: relative;
}
.av.off {
  opacity: 0.35;
}
.av.ready::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--bg);
}
.av.host {
  background: var(--acc);
  color: var(--on-acc);
}
.strip .meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.3;
}
.strip .tools {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.strip .meta + .tools {
  margin-left: 8px;
}
.strip .av:last-of-type + .tools {
  margin-left: auto;
}
.dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bad);
  border: 2px solid var(--bg);
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--dim);
}
.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.stage::-webkit-scrollbar {
  display: none;
}
.card,
.panel {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.panel + .panel {
  border-top: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
button.row-card {
  height: auto;
  text-align: left;
  color: var(--fg);
  font-weight: 400;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  white-space: normal;
}
.row-card > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
}
.status.ok {
  color: var(--ok);
}
.status.warn {
  color: var(--warn);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
}
.roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.person.off {
  opacity: 0.45;
}
.person small {
  font-size: 11px;
  color: var(--dim);
  margin-left: 4px;
}
.person .tick {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
}
.person .tick.on {
  color: var(--ok);
  font-weight: 600;
}
.dock {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  align-items: stretch;
}
.dock-hint {
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}
.dock .form-actions {
  flex-wrap: nowrap;
}
.dock .link {
  align-self: center;
}
.badge {
  font-size: 12px;
  color: var(--dim);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  width: max-content;
}
.alert {
  color: var(--bad);
  font-size: 14px;
}
.locations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.location {
  height: auto;
  background: var(--soft);
  color: var(--fg);
  border-radius: 14px;
  padding: 14px 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
.location.selected {
  background: var(--acc);
  color: var(--on-acc);
}
.packets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.packet {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px;
}
.packet h3 {
  font-size: 12px;
  color: var(--dim);
  font-weight: 500;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
details summary {
  cursor: pointer;
  color: var(--dim);
  font-size: 13px;
  list-style: none;
}
details[open] summary {
  margin-bottom: 8px;
}
.score {
  font-weight: 650;
  color: var(--fg);
}
.scrim {
  position: fixed;
  inset: 0;
  height: auto;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: rgb(0 0 0/0.32);
  z-index: 30;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  max-height: calc(var(--app-height, 100dvh) * 0.86);
  background: var(--card);
  border-radius: 24px 24px 0 0;
  z-index: 31;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom));
}
.sheet::before {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 8px auto 0;
  flex: none;
}
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet.chat {
  height: calc(var(--app-height, 100dvh) * 0.72);
}
.sheet.chat .sheet-body {
  overflow: hidden;
}
.log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
}
.message small {
  color: var(--dim);
  font-size: 12px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  width: max-content;
  max-width: 100%;
}
.message.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.message.mine p {
  background: var(--acc);
  color: var(--on-acc);
  border-radius: 14px 14px 4px 14px;
}
#chat:not(.party-composer) {
  flex-direction: row;
  gap: 8px;
}
#chat:not(.party-composer) input {
  flex: 1;
  min-width: 0;
}
#chat:not(.party-composer) button {
  flex: none;
}
#toast {
  position: fixed;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  background: var(--acc);
  color: var(--on-acc);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  display: none;
  z-index: 40;
  box-shadow: 0 6px 24px rgb(0 0 0/0.18);
}
@media (max-width: 520px) {
  main {
    padding: 4px 16px 12px;
  }
  .bar {
    padding: 0 16px;
  }
  h1 {
    font-size: 26px;
  }
  .locations {
    grid-template-columns: repeat(3, 1fr);
  }
  .packets {
    grid-template-columns: 1fr;
  }
  .game {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.av {
  overflow: hidden;
}
.av img,
.me img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.av.host {
  box-shadow: 0 0 0 2px var(--acc);
}
.me {
  background: none;
  color: var(--dim);
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}
.me img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
/* Account pages: the supplied warm, illustrated reference; room styles stay scoped above. */
body:is([data-screen='login'], [data-screen='register'], [data-screen='avatar']) {
  --bg: #fbf6ed;
  --card: #fbf6ed;
  --fg: #22231f;
  --dim: #8b867d;
  --soft: #f1ebe2;
  --line: #ece4d8;
  --or: #fa7b24;
  color-scheme: light;
  background: #e7dccb;
  padding: 0;
}
body:is([data-screen='login'], [data-screen='register'], [data-screen='avatar']) > .bar {
  display: none;
}
body:is([data-screen='login'], [data-screen='register'], [data-screen='avatar']) > main {
  max-width: 430px;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--bg);
  box-shadow: 0 0 44px rgb(74 48 23/0.1);
}
.auth {
  --or: #fa7b24;
  --cream: #fbf6ed;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  isolation: isolate;
}
.auth .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.auth .field {
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  border-radius: 15px;
  padding: 0 18px;
  height: 54px;
  border: 1px solid transparent;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth .field:focus-within {
  border-color: #efa560;
  box-shadow: 0 0 0 3px rgb(250 123 36/0.09);
}
.auth .field > svg {
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #31332d;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth .field input {
  background: none;
  border: 0;
  padding: 0;
  height: 100%;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: var(--fg);
}
.auth .field input:focus {
  background: none;
}
.auth .field input::placeholder {
  color: #aaa297;
}
.auth .field .eye {
  flex: none;
  background: none;
  height: 44px;
  width: 36px;
  padding: 9px;
  border-radius: 8px;
}
.auth .field .eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #96918a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth .field .eye.on svg {
  stroke: var(--or);
}
.auth form {
  gap: 14px;
}
.auth button.cta {
  background: var(--or);
  color: #fff;
  height: 54px;
  min-height: 54px;
  border-radius: 17px;
  font-size: 17px;
  font-weight: 650;
  box-shadow: none;
  margin-top: 3px;
}
.auth button.cta:hover {
  background: #ef6f19;
}
.auth button.cta:disabled {
  opacity: 0.55;
}
.auth button.link.accent {
  color: var(--or);
  font-weight: 650;
  padding: 4px;
}
.auth .hint {
  font-size: 12px;
  line-height: 1.45;
  color: #938c81;
  margin-top: -7px;
  padding-left: 4px;
}
.auth .auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  font-size: 13px;
  color: #9a9184;
}
.auth .round {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #f3ece1;
  display: grid;
  place-items: center;
}
.auth .round svg,
.auth .upload svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth .auth-title h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.auth .auth-title p {
  font-size: 14px;
  color: #918a7e;
  margin-top: 13px;
}
.auth .auth-foliage {
  position: absolute;
  bottom: -58px;
  left: -62px;
  width: 168px;
  height: 202px;
  object-fit: contain;
  pointer-events: none;
  z-index: -1;
  opacity: 0.83;
}
.auth-login .auth-hero {
  position: relative;
  flex: none;
  height: clamp(340px, calc(var(--app-height, 100dvh) * 0.61), 620px);
  overflow: hidden;
}
.auth-login .auth-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}
.auth-login .auth-card {
  position: relative;
  flex: 1;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 32px 32px 0 0;
  margin-top: -35px;
  padding: 28px 28px max(30px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 22px;
  isolation: isolate;
  overflow: visible;
  z-index: 2;
}
.auth-login .auth-card form {
  position: relative;
  z-index: 1;
}
.auth-login .auth-card .switch {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 24px;
  padding-bottom: 2px;
}
.auth-login .auth-card .auth-foliage {
  z-index: -1;
}
.auth-login .auth-card h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.auth-login .switch {
  text-align: center;
  font-size: 13px;
  color: #9b9487;
  margin-top: 0;
}
.auth-register .auth-top {
  flex: none;
  margin: calc(28px + env(safe-area-inset-top)) 28px 32px;
}
.auth-register .auth-title {
  flex: none;
  padding: 0 36px;
  margin-bottom: 29px;
}
.auth-register .marked-title {
  position: relative;
  width: max-content;
}
.auth-register .marked-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 46px;
  height: 4px;
  border-radius: 50%;
  background: var(--or);
  transform: rotate(-5deg);
}
.auth-register .title-rays {
  position: absolute;
  right: -21px;
  top: -10px;
  width: 22px;
  height: 25px;
}
.auth-register .title-rays::before,
.auth-register .title-rays::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 14px;
  border-radius: 3px;
  background: var(--or);
  transform: rotate(30deg);
  left: 1px;
  top: 0;
}
.auth-register .title-rays::after {
  height: 12px;
  transform: rotate(65deg);
  left: 13px;
  top: 12px;
}
.auth-register .register-form {
  flex: none;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.auth-register .register-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9082;
  margin-top: 2px;
}
.auth-register .register-note span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--or);
  flex: none;
}
.auth-register .register-note svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-register .register-scene {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  margin-top: 8px;
}
.auth-register .register-scene img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center bottom;
}
.auth-register .register-scene::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 58px;
  background: linear-gradient(var(--cream), transparent);
}
.auth-avatar {
  padding: calc(28px + env(safe-area-inset-top)) 28px
    max(30px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  gap: 0;
  overflow: visible;
  flex: none;
  height: auto;
}
.auth-avatar .auth-top {
  flex: none;
  margin-bottom: 30px;
}
.auth-avatar .step-label {
  font-size: 12px;
  color: #b4a58f;
}
.auth-avatar .auth-title {
  text-align: center;
  flex: none;
  margin-bottom: 27px;
}
.auth-avatar .auth-title h1 {
  font-size: 30px;
}
.auth-avatar .auth-title p {
  margin-top: 10px;
  font-size: 13px;
}
.auth-avatar .avatar-big {
  position: relative;
  flex: none;
  width: 124px;
  height: 124px;
  margin: 0 auto 30px;
}
.auth-avatar .avatar-big > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 5px #fbf6ed,
    0 0 0 7px #e9d4b2;
}
.auth-avatar .upload {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--cream);
}
.auth-avatar .upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.auth-avatar .upload:focus-within {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}
.auth-avatar .nickname-row {
  flex: none;
  margin-bottom: 19px;
}
.auth-avatar .nick-hint {
  margin-top: 7px;
  padding-left: 3px;
  font-size: 11px;
}
.auth-avatar .preset-grid {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.auth-avatar .preset {
  position: relative;
  aspect-ratio: 1;
  height: auto;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 17px;
  overflow: visible;
  background: none;
  cursor: pointer;
}
.auth-avatar .preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.auth-avatar .preset.on {
  border-color: var(--or);
  background: #fff7e9;
}
.auth-avatar .preset.on::after {
  content: '✓';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--cream);
}
.auth-avatar .preset:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
.auth-avatar .avatar-actions {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.auth-avatar .avatar-actions .link {
  align-self: center;
  font-size: 12px;
  color: #a59c8e;
}
.auth-avatar .auth-foliage {
  bottom: 0;
  left: 0;
  width: 112px;
  height: 136px;
}
@media (max-width: 430px) {
  body:is([data-screen='login'], [data-screen='register'], [data-screen='avatar']) {
    background: #fbf6ed;
  }
}
@media (max-height: 740px) {
  .auth-register .auth-top {
    margin-top: 18px;
    margin-bottom: 23px;
  }
  .auth-register .auth-title {
    margin-bottom: 23px;
  }
  .auth-register .register-scene {
    min-height: 180px;
  }
  .auth-avatar {
    padding-top: 18px;
  }
  .auth-avatar .auth-top {
    margin-bottom: 20px;
  }
  .auth-avatar .auth-title {
    margin-bottom: 22px;
  }
  .auth-avatar .avatar-big {
    width: 110px;
    height: 110px;
    margin-bottom: 23px;
  }
  .auth-avatar .avatar-actions {
    margin-top: 22px;
  }
}

.auth-login .switch {
  position: relative;
  z-index: 4;
  display: block;
  visibility: visible;
  opacity: 1;
  padding-bottom: max(8px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
}
.auth-login .auth-foliage {
  z-index: 0;
}
@media (max-height: 820px) {
  .auth-login .auth-hero {
    height: clamp(300px, calc(var(--app-height, 100dvh) * 0.54), 500px);
  }
  .auth-login .auth-card {
    gap: 15px;
    padding-top: 22px;
  }
  .auth-login .auth-card form {
    position: relative;
    z-index: 1;
  }
  .auth-login .auth-card .switch {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 24px;
    padding-bottom: 2px;
  }
  .auth-login .auth-card .auth-foliage {
    z-index: -1;
  }
  .auth-login .auth-card h2 {
    font-size: 26px;
  }
}

.startup-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fcf7ee;
  color: #584857;
}
.startup-mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff943f, #ff7223);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 10px 28px #f5772940;
}
.startup-screen strong {
  font-size: 24px;
}
.startup-screen span {
  font-size: 12px;
  color: #a897a4;
}

/* Login fits one screen: the hero yields height first but never below the point where its painted title/slogan (top ~34% of the art, i.e. ~0.5 x width) stays above the overlapping card. */
body[data-screen='login'] > main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-login {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
@media (max-height: 520px) {
  body[data-screen='login'] > main {
    overflow-y: auto;
  }
  .auth-login {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
}
.auth-login .auth-hero {
  height: auto;
  flex: 0 1 clamp(340px, calc(var(--app-height, 100dvh) * 0.61), 620px);
  min-height: calc(min(100vw, 430px) * 0.53 + 35px);
}
.auth-login .auth-hero > img {
  position: absolute;
  inset: 0;
  object-position: center top;
}
.auth-login .auth-card {
  flex: 1 0 auto;
}
@media (max-height: 820px) {
  .auth-login .auth-hero {
    flex-basis: clamp(300px, calc(var(--app-height, 100dvh) * 0.54), 500px);
  }
}
body[data-screen='boot'] {
  background: #fbf6ed;
  color: #22231f;
  color-scheme: light;
}
body[data-screen='boot'] > .bar {
  display: none;
}
.boot-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: boot-in 0.4s ease-out both;
}
.boot-splash img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgb(74 48 23/0.15);
}
.boot-splash strong {
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #22231f;
}
.boot-text {
  font-size: 13px;
  color: #8b867d;
}
.boot-dots {
  display: flex;
  gap: 6px;
  height: 8px;
}
.boot-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa7b24;
  animation: boot-dot 1s ease-in-out infinite;
}
.boot-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.boot-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes boot-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes boot-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-splash,
  .boot-dots i {
    animation: none;
  }
}

.game .game-choice-art {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 6px;
  display: block;
}
/* color-ui.css — canonical section */
/* 首页、房间与猎人共用暖色材质；AI 胜利结算单独切换夜色。 */
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) {
  --bg: #fcf7ee;
  --card: #fffdf9;
  --fg: #29252b;
  --dim: #8b8592;
  --soft: #f3eee7;
  --line: #eee5d8;
  --acc: #f57729;
  --on-acc: #fff;
  --ok: #23a568;
  --warn: #e17820;
  --bad: #df3b3b;
  --orange: #f67727;
  color-scheme: light;
  background: #efe6d9;
  padding: 0;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) > .bar {
  display: none;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) > main {
  padding: 0;
  max-width: 560px;
  background: var(--bg);
  box-shadow: 0 0 50px #5035190b;
  overflow: hidden;
}
.ui-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ui-avatar {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee2d3;
}
.ui-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) button.orange {
  color: #fff;
  background: linear-gradient(110deg, #ff943f, #ff7223);
  border: 1px solid #ff7d29;
  box-shadow: 0 4px 10px #ef79241a;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) button.pale {
  background: #fffdfb;
  color: #50475d;
  border: 1px solid #eee7df;
  box-shadow: 0 2px 7px #76573607;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) button:disabled {
  opacity: 0.42;
}
body:is([data-screen='lobby'], [data-screen='room'], [data-screen='hunter']) button.orange,
.pale,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.icon-button {
  width: 36px;
  height: 38px;
  min-width: 36px;
  padding: 7px;
  background: none;
  color: var(--fg);
  display: grid;
  place-items: center;
}
.icon-button .ui-icon {
  width: 22px;
  height: 22px;
}
.paper {
  background: #fffdfbdc;
  border-radius: 23px;
  padding: 16px;
  box-shadow: 0 4px 15px #78553204;
  border: 1px solid #fff9f0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 21px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.section-title > p,
.section-title > span {
  font-size: 11px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-title > p .ui-icon {
  width: 14px;
  height: 14px;
}
.lobby-screen,
.room-screen,
.hunter-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.lobby-screen {
  background: radial-gradient(ellipse at 89% 0, #ffe3c0 0, transparent 46%), #fcf5eb;
}
.lobby-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: #ecdcc6 transparent;
}
.lobby-hero {
  position: relative;
  min-height: 178px;
  padding: calc(23px + env(safe-area-inset-top)) 10px 12px;
  display: flex;
  align-items: center;
}
.lobby-brand {
  position: relative;
  z-index: 1;
}
.lobby-brand h1 {
  font-size: 47px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.08em;
  color: #3a3030;
  width: max-content;
  position: relative;
  margin-bottom: 12px;
}
.lobby-brand h1 span {
  position: absolute;
  right: -15px;
  top: -3px;
  width: 10px;
  height: 13px;
  border-radius: 4px 8px 5px 4px;
  background: #ff8b3c;
  transform: rotate(26deg);
}
.lobby-brand h1 span::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 17px;
  background: #ff8b3c;
  border-radius: 7px;
  left: 10px;
  top: 12px;
  transform: rotate(20deg);
}
.lobby-brand p {
  font-size: 14px;
  color: #908982;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.lobby-brand small {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #857d75;
}
.lobby-brand small i,
.room-status i,
.hunter-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16c09b;
  display: inline-block;
  flex: none;
}
.lobby-dice {
  width: 205px;
  height: 152px;
  position: absolute;
  right: -22px;
  bottom: -8px;
  pointer-events: none;
}
.lobby-primary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
  z-index: 1;
}
.lobby-primary button {
  height: 57px;
  padding: 0 11px;
  font-size: 17px;
  font-weight: 750;
  border-radius: 18px;
  gap: 7px;
}
.lobby-primary .orange > .ui-icon:first-child {
  background: #fff;
  border-radius: 50%;
  color: #fb7624;
  width: 27px;
  height: 27px;
  padding: 5px;
  stroke-width: 3;
}
.lobby-primary .pale > .ui-icon:first-child {
  background: #9960ef;
  border-radius: 9px;
  color: #fff;
  width: 27px;
  height: 27px;
  padding: 5px;
  stroke-width: 2.7;
}
.lobby-primary .tail {
  width: 15px;
  height: 15px;
  margin-left: auto;
  opacity: 0.65;
}
.lobby-primary .pale .tail {
  color: #8d8794;
}
.current-panel {
  margin-bottom: 12px;
  padding: 12px;
}
.current-panel > .section-title {
  margin-bottom: 8px;
}
.current-panel > .lobby-empty {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  text-align: left;
  padding: 10px 2px 12px;
}
.current-panel > .lobby-empty > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
}
.current-panel > .lobby-empty h3 {
  font-size: 13px;
  align-self: end;
  margin: 0;
  overflow-wrap: anywhere;
}
.current-panel > .lobby-empty p {
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.current-panel > .lobby-empty button {
  grid-column: 2;
  justify-self: start;
  margin-top: 5px;
}
.current-room {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 17px;
  padding: 6px;
}
.game-art {
  width: 68px;
  height: 76px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.game-art-hunter {
  background: linear-gradient(150deg, #ffeebc, #ffd6b6);
  color: #bd6b30;
}
.game-art-guess {
  background: linear-gradient(145deg, #e4d6ff, #b09be9);
  color: #6542b3;
}
.game-art > .ui-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}
.current-art {
  width: 80px;
  height: 112px;
  object-position: center;
}
.current-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.current-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.current-title h3 {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.current-title .host-tag {
  flex: none;
}
.host-tag {
  font-size: 10px;
  font-weight: 650;
  color: #ed7728;
  background: #fff0e1;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 99px;
  padding: 2px 6px;
}
.host-tag .ui-icon {
  width: 12px;
  height: 12px;
  fill: #ff8c31;
  stroke: #ff8c31;
}
.room-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.room-tags > span {
  border-radius: 99px;
  background: #f6f5f7;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #827d88;
  font-size: 10px;
  white-space: nowrap;
}
.room-tags .ui-icon {
  width: 12px;
  height: 12px;
}
.game-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  width: max-content;
  line-height: 1.5;
}
.game-tag.hunter,
.game-tag.guess {
  background: #ece4ff;
  color: #7545ce;
}
.room-status i {
  width: 6px;
  height: 6px;
}
.room-status.playing i {
  background: #975cec;
}
.room-code {
  font-size: 10px;
  color: #a09aa3;
  letter-spacing: 0.025em;
}
.avatar-stack {
  display: flex;
  padding-left: 1px;
}
.avatar-stack .ui-avatar {
  width: 26px;
  height: 26px;
  margin-left: -1px;
  border: 2px solid #fff;
}
.current-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.current-actions button {
  height: 32px;
  flex: 1;
  min-width: 0;
  padding: 0 5px;
  border-radius: 11px;
  font-size: 12px;
  gap: 3px;
}
.current-actions .ui-icon {
  width: 16px;
  height: 16px;
}
.lobby-empty {
  padding: 14px 8px 17px;
  text-align: center;
  color: #8c8290;
}
.lobby-empty > span,
.chat-empty > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #fff0df;
  border-radius: 16px;
  color: #ee8a42;
  margin: 0 auto 9px;
}
.lobby-empty h3 {
  font-size: 14px;
  color: #655568;
  margin-bottom: 5px;
}
.lobby-empty p {
  font-size: 12px;
  line-height: 1.7;
}
.lobby-empty button {
  margin-top: 10px;
  height: 36px;
}
.games-panel {
  padding: 14px;
  margin-bottom: 12px;
}
.public-rooms-panel {
  padding: 14px;
}
.public-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  background: none;
  color: #9c939b;
  font-size: 11px;
  white-space: nowrap;
}
.public-refresh .ui-icon {
  width: 15px;
  height: 15px;
}
.public-room-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 12px;
  padding: 2px 0;
  min-width: 0;
}
.public-room-filters::-webkit-scrollbar {
  display: none;
}
.public-room-filters > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.public-room-filters > div + div {
  border-top: 1px solid #eee5dc;
  padding-top: 8px;
}
.public-room-filters button {
  height: 29px;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  background: #f3f1f4;
  color: #665e6d;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.public-room-filters button.on {
  background: linear-gradient(110deg, #ff943f, #ff7223);
  color: #fff;
}
.public-room-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.public-room-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 96px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
}
.public-room-row .game-art {
  width: 66px;
  height: 78px;
  border-radius: 12px;
}
.public-room-copy {
  flex: 1;
  min-width: 0;
}
.public-room-copy h3 {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.public-room-copy .room-tags {
  gap: 3px;
}
.public-room-copy .room-tags > span {
  font-size: 9px;
  padding: 2px 5px;
}
.public-room-copy .avatar-stack {
  margin-top: 7px;
}
.public-room-copy .ui-avatar {
  width: 23px;
  height: 23px;
  margin-left: -3px;
}
.public-room-row .small-cta {
  padding: 0 10px;
  min-width: 46px;
  font-size: 11px;
}
.public-loading p {
  text-align: center;
  font-size: 11px;
  color: #9e909e;
  margin: 10px 0;
}
.public-room-skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px;
  background: #fff;
  margin-bottom: 9px;
  min-height: 96px;
}
.public-room-skeleton i,
.public-room-skeleton span,
.public-room-skeleton b {
  display: block;
  background: #f4eee7;
  border-radius: 10px;
}
.public-room-skeleton i {
  width: 66px;
  height: 78px;
  flex: none;
}
.public-room-skeleton span {
  height: 46px;
  flex: 1;
}
.public-room-skeleton b {
  width: 46px;
  height: 32px;
}
#create-room-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
#room-info {
  padding: 12px;
  border-radius: 15px;
  background: #fff8f0;
  border: 1px solid #f2e7d8;
}
#room-info button {
  width: 100%;
}
.lobby-game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lobby-game-row {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px;
  min-height: 97px;
}
.lobby-game-copy {
  flex: 1;
  min-width: 0;
}
.lobby-game-copy h3 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 3px;
}
.lobby-game-copy p {
  font-size: 11px;
  color: #958c99;
  line-height: 1.45;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-people {
  font-size: 10px;
  color: #a69da9;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}
.game-people .ui-icon {
  width: 12px;
  height: 12px;
}
button.small-cta {
  height: 34px;
  font-size: 12px;
  padding: 0 11px;
  border-radius: 11px;
  flex: none;
}
.lobby-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}
.lobby-invite > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #a08ac9;
  background: #f1eaf9;
  border-radius: 11px;
  flex: none;
}
.lobby-invite h3 {
  font-size: 13px;
  color: #6d5c78;
  margin-bottom: 3px;
}
.lobby-invite p {
  font-size: 10px;
  line-height: 1.5;
  color: #a49aa8;
}
.lobby-invite button {
  width: 28px;
  height: 32px;
  padding: 4px;
  flex: none;
}
.lobby-nav {
  flex: none;
  height: calc(67px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
  padding: 9px 0 max(9px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  display: flex;
  border-radius: 25px 25px 0 0;
  background: #fffffff2;
  box-shadow: 0 -2px 15px #66432404;
}
.lobby-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  height: auto;
  background: none;
  padding: 0;
  color: #aaa7ac;
  font-size: 12px;
  font-weight: 500;
}
.lobby-nav button.on {
  color: #fb7b25;
}
.lobby-nav .ui-icon {
  width: 27px;
  height: 27px;
  stroke-width: 2.5;
}
.lobby-nav button.on .ui-icon {
  fill: #fb7b2517;
}
.lobby-sheet .sheet-body > h2 {
  font-size: 23px;
  color: #3c3041;
}
.lobby-sheet .sheet-body > p {
  font-size: 13px;
  color: #958894;
}
.lobby-sheet .sheet-body > button {
  flex: none;
}
.lobby-sheet .lobby-game-row {
  border: 1px solid #eee5da;
}
.profile-header {
  padding: calc(36px + env(safe-area-inset-top)) 12px 24px;
}
.profile-header p {
  font-size: 12px;
  color: #ac927d;
}
.profile-header h1 {
  font-size: 35px;
  margin-top: 4px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  gap: 9px;
}
.profile-card .ui-avatar {
  width: 90px;
  height: 90px;
  box-shadow:
    0 0 0 4px #fff1dd,
    0 0 0 6px #f1d6b6;
  margin-bottom: 9px;
}
.profile-card h2 {
  font-size: 23px;
}
.profile-card p {
  font-size: 12px;
  color: #a397a1;
  margin-bottom: 9px;
}
.profile-card button {
  width: 100%;
  font-size: 15px;
}
.profile-actions {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-actions button {
  background: none;
  color: #746675;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  padding: 0 3px;
}
.profile-actions button .ui-icon:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #c8bbc4;
}
/* 房间固定框架。聊天正文只在抽屉里可操作。 */
.room-screen {
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 4%, #ffe6bd 0, transparent 55%), #f8efde;
}
.room-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: calc(19px + env(safe-area-inset-top)) 14px 17px;
}
.room-back {
  background: #fffaf4;
  width: 39px;
  height: 43px;
  border-radius: 50%;
}
.room-brand {
  flex: 1;
  min-width: 0;
}
.room-brand h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  white-space: nowrap;
}
.room-brand h1 span {
  color: #ffb34a;
  font-size: 23px;
}
.room-brand p {
  font-size: 10px;
  color: #958996;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  white-space: nowrap;
}
.room-brand p b {
  font-weight: 500;
}
.room-brand p button {
  min-width: 18px;
  width: 18px;
  height: 20px;
  padding: 2px;
  color: #958996;
}
.room-brand p .ui-icon {
  width: 14px;
  height: 14px;
}
.room-tools {
  display: flex;
  gap: 6px;
}
.room-tools button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  color: #6e5b4d;
  padding: 0;
  height: auto;
  width: 32px;
}
.room-tools button > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff9ec;
  display: grid;
  place-items: center;
}
.room-tools button:first-child {
  color: #f88a25;
}
.room-tools .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.room-tools small {
  font-size: 10px;
}
.room-self {
  padding: 2px;
  background: none;
  width: 35px;
  height: 35px;
  flex: none;
}
.room-self .ui-avatar {
  width: 31px;
  height: 31px;
  border: 2px solid #ffc57d;
}
.room-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 13px 10px;
  scrollbar-width: thin;
  scrollbar-color: #ead9c2 transparent;
}
.room-game-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 23px;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  flex: none;
}
.room-art {
  width: 94px;
  height: 136px;
  min-height: 0;
  max-height: 100%;
  align-self: center;
  border-radius: 15px;
  object-position: center;
}
.room-game-copy {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
}
.room-game-copy > .section-title {
  margin: 0;
  flex-wrap: nowrap;
  flex: none;
}
.room-game-copy h2 {
  font-size: 21px;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
button.setting-button {
  height: 28px;
  padding: 0 8px;
  font-size: 10px;
  border-radius: 99px;
  background: #f8eada !important;
  border: 0 !important;
}
.setting-button .ui-icon {
  width: 13px;
  height: 13px;
}
.room-config-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: none;
}
.room-config-chips span {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #faf0e1;
  color: #77614f;
  font-weight: 550;
  font-size: 10px;
  line-height: 1.3;
  padding: 3px 5px;
  border-radius: 9px;
}
.room-config-chips .ui-icon {
  width: 12px;
  height: 12px;
  color: #fc9825;
  stroke-width: 2.5;
}
.room-game-copy > p {
  flex: none;
  font-size: 11px;
  color: #8c8295;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-model {
  background: none;
  color: #bc8c5e;
  height: 18px;
  min-height: 18px;
  flex: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  min-width: 0;
}
.room-model-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-mode-name {
  font-weight: 650;
  color: #7954b1;
}
.room-model .ui-icon {
  width: 14px;
  height: 14px;
  color: #f8a024;
}
.room-model.configured {
  color: #729481;
}
.room-setting-label {
  font-size: 11px;
  color: #b09ba9;
}
.room-members-card {
  padding: 10px 10px 12px;
  flex: none;
}
.room-members-card > .section-title {
  gap: 5px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.room-members-card .section-title h2 {
  font-size: 18px;
}
.room-members-card .section-title h2 .ui-icon {
  color: #765345;
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}
.room-members-card .section-title p {
  font-size: 11px;
}
.room-members-card .section-title p b {
  color: #f08730;
}
button.invite-people {
  margin-left: auto;
  height: 29px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 10px;
  gap: 4px;
}
.invite-people .ui-icon {
  width: 14px;
  height: 14px;
}
.room-member-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding-top: 4px;
}
.room-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.room-member-avatar {
  position: relative;
  margin-bottom: 2px;
}
.room-member .ui-avatar {
  width: 40px;
  height: 40px;
  box-shadow:
    0 0 0 2px #fffcf8,
    0 0 0 3px #e8e0d7;
}
.room-member.owner .ui-avatar {
  box-shadow:
    0 0 0 2px #fffcf8,
    0 0 0 3px #f6b765;
}
.member-crown {
  position: absolute;
  top: -6px;
  left: -5px;
  display: block;
  transform: rotate(-20deg);
  color: #ffad32;
  background: #fffaf3;
  border-radius: 50%;
  width: 17px;
  height: 17px;
}
.member-crown .ui-icon {
  width: 17px;
  height: 17px;
  fill: #ffc153;
  stroke: #ffad32;
}
.room-member > strong {
  font-size: 11px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.member-role {
  font-size: 9px;
  color: #b1a2b1;
  padding: 1px 8px;
  border-radius: 99px;
  background: #f6f0f4;
}
.owner .member-role {
  background: #ffd892;
  color: #a46323;
}
.member-ready {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #f0ebed;
  border-radius: 99px;
  color: #a297a2;
  font-size: 9px;
  padding: 2px 3px;
  margin-top: 2px;
  max-width: 100%;
  white-space: nowrap;
}
.member-ready i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #b9b1b9;
}
.member-ready.on {
  color: #36a879;
  background: #e9f7ed;
}
.member-ready.on i {
  background: #36b87b;
}
.room-member.offline .ui-avatar {
  opacity: 0.65;
}
.empty-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px dashed #d9cfd3;
  background: #f5f1ee;
  display: grid;
  place-items: center;
  color: #c3bec4;
  margin-bottom: 3px;
}
.empty-avatar .ui-icon {
  width: 22px;
  height: 22px;
  fill: #c3bec415;
}
.room-member.empty > span:last-child {
  font-size: 9px;
  color: #aea3b0;
}
.room-chat-card {
  padding: 14px 14px 18px;
  min-height: 0;
  flex: 1 1 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-chat-title {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0;
  background: none;
  color: #3e333c;
  margin-bottom: 0;
  justify-content: space-between;
}
.room-chat-title h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
}
.room-chat-title h2 .ui-icon {
  color: #815e4a;
  width: 21px;
  height: 21px;
}
.room-chat-title > span {
  font-size: 10px;
  color: #ac99a6;
  display: flex;
  align-items: center;
  gap: 3px;
}
.room-chat-title > span .ui-icon {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}
.room-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  flex: 1 1 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.room-chat-preview > div {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.room-chat-preview .ui-avatar {
  width: 31px;
  height: 31px;
}
.room-chat-preview article {
  flex: 1;
  min-width: 0;
}
.room-chat-preview small {
  font-size: 10px;
  color: #a595a8;
  display: block;
  margin-bottom: 3px;
}
.room-chat-preview article p {
  background: #f1edf0;
  color: #8a7b8b;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 0 12px 12px 12px;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-chat-welcome > span {
  width: 33px;
  height: 33px;
  background: #e4e9f7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #8063b3;
}
.room-chat-welcome p {
  font-size: 12px;
  color: #918094;
  line-height: 1.7;
}
.room-chat-welcome small {
  margin-top: 5px;
  color: #baaabd;
}
.room-dock {
  flex: none;
  padding: 0 16px max(13px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
}
.room-dock .dock {
  padding-top: 0;
  gap: 8px;
}
.room-dock .dock-hint {
  font-size: 11px;
  color: #a28d77;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.room-dock .dock-hint::before,
.room-dock .dock-hint::after {
  content: '';
  width: 25%;
  height: 1px;
  background: #eddac0;
}
.room-dock .form-actions {
  gap: 10px;
}
.room-dock button[data-action='ready'] {
  background: linear-gradient(120deg, #604a43, #332627);
  color: white;
  border: 1px solid #694c44;
  box-shadow: 0 3px 8px #4f2b1520;
  height: 51px;
  font-size: 17px;
  border-radius: 17px;
}
.room-dock button[data-action='start'] {
  background: linear-gradient(120deg, #ffa052, #ff7625);
  color: white;
  height: 51px;
  font-size: 17px;
  border-radius: 17px;
}
.room-dock .dock > .link {
  font-size: 10px;
  color: #b09da5;
  padding: 0;
}
/* 抽屉与配置选项共用房间的奶油色表面。 */
body[data-screen='room'] .sheet.chat {
  height: min(620px, calc(var(--app-height, 100dvh) * 0.79));
  background: #fffaf5;
}
body[data-screen='room'] .sheet.chat .sheet-head h2 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-screen='room'] .sheet.chat .sheet-head h2::before {
  content: '';
  width: 28px;
  height: 28px;
  background: #a77ae9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #9b6bee;
}
.chat-presence {
  color: #ac9cac;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.chat-presence b {
  color: #f88550;
  font-weight: 500;
}
.room-drawer-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  max-width: 100%;
  padding: 2px 0;
}
.room-drawer-message .ui-avatar {
  width: 30px;
  height: 30px;
  margin-top: 2px;
}
.room-drawer-message > div {
  min-width: 0;
  max-width: 74%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.room-drawer-message small {
  font-size: 10px;
  color: #9e90a7;
  display: flex;
  align-items: center;
  gap: 5px;
}
.room-drawer-message small b {
  font-size: 8px;
  color: #e68f42;
  background: #fff0d7;
  border-radius: 99px;
  padding: 0 5px;
}
.room-drawer-message p {
  padding: 8px 11px;
  background: #f1ecea;
  border-radius: 4px 14px 14px 14px;
  color: #665a6d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.room-drawer-message > time {
  font-size: 9px;
  color: #bfb2c7;
  align-self: flex-end;
  margin-bottom: 4px;
}
.room-drawer-message.mine {
  flex-direction: row-reverse;
}
.room-drawer-message.mine > div {
  align-items: flex-end;
}
.room-drawer-message.mine p {
  background: #e8eeff;
  color: #5f6592;
  border-radius: 14px 4px 14px 14px;
}
body[data-screen='room'] .sheet.chat #chat {
  background: #fffaf4;
  padding-top: 5px;
}
body[data-screen='room'] .sheet.chat #chat input {
  border-radius: 99px;
  background: #fff;
  border: 1px solid #f0e8e2;
}
body[data-screen='room'] .sheet.chat #chat button {
  border-radius: 50%;
  background: linear-gradient(120deg, #ffae64, #ff7627);
}
.settings-game-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.settings-game-picker button {
  height: 40px;
  font-size: 13px;
  background: #f6efe7;
  color: #8b798a;
  border: 1px solid #eee1d3;
}
.settings-game-picker button.on {
  background: #fff0db;
  color: #da7425;
  border-color: #f5b376;
  box-shadow: 0 0 0 2px #fca9530b;
}
.settings-note {
  font-size: 11px;
  color: #a897a4;
  line-height: 1.45;
}
.profile-model {
  margin-top: 13px;
  padding: 0;
  overflow: hidden;
}
.profile-model-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px;
  background: transparent;
  color: #665667;
  text-align: left;
}
.profile-model-link > .ui-icon:first-child {
  width: 22px;
  height: 22px;
  color: #f59036;
  flex: none;
}
.profile-model-link > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.profile-model-link b {
  font-size: 14px;
  font-weight: 700;
}
.profile-model-link small {
  font-size: 11px;
  color: #a897a4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-model-link > .ui-icon:last-child {
  width: 17px;
  height: 17px;
  color: #c8bbc4;
  flex: none;
}
.profile-model-link:disabled {
  opacity: 0.6;
  cursor: wait;
}
.model-retry {
  display: block;
  margin: -5px 14px 12px;
  font-size: 11px;
}
.account-model-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 85% 4%, #ffe6bd 0, transparent 55%), #f8efde;
}
.account-model-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: calc(19px + env(safe-area-inset-top)) 14px 17px;
  flex: none;
}
.account-model-header .round {
  width: 39px;
  height: 43px;
  background: #fffaf4;
  border-radius: 50%;
}
.account-model-header h1 {
  text-align: center;
  font-size: 22px;
  color: #584857;
}
.account-model-scroll {
  flex: 1;
  overflow: auto;
  padding: 6px 14px calc(72px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
  overscroll-behavior: contain;
}
.account-model-scroll > section {
  max-width: 620px;
  margin: 0 auto;
}
.account-model-scroll h2 {
  font-size: 21px;
  color: #584857;
  margin: 2px 2px;
}
.account-model-scroll > section > .settings-note {
  margin: 0 2px 3px;
  line-height: 1.4;
  max-width: 100%;
}
.account-model-scroll form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 13px 14px 14px;
  border: 1px solid #eaded1;
  border-radius: 18px;
  background: #fffaf3;
  box-shadow: 0 8px 20px #9d744d0d;
}
.account-model-scroll form > p.settings-note {
  order: -1;
  margin: 0 0 1px;
  line-height: 1.4;
  max-width: 100%;
}
.account-model-scroll form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #806d7d;
  font-size: 12px;
}
.account-model-scroll form input {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.account-model-scroll .model-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 9px;
  padding: 9px 14px calc(9px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
  background: #fffaf4ee;
  border-top: 1px solid #eaded1;
  box-shadow: 0 -8px 20px #9d744d14;
}
.account-model-scroll .model-actions button {
  min-height: 42px;
  font-size: 13px;
}
.account-model-scroll .model-test-result {
  margin: 0 0 38px;
  line-height: 1.4;
}
.account-model-scroll .model-clear {
  align-self: flex-start;
  margin: 0 0 38px;
  font-size: 11px;
}
.profile-model > h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  color: #584857;
}
.profile-model > h2 .ui-icon {
  width: 22px;
  height: 22px;
  color: #f59036;
}
.profile-model > .settings-note {
  margin-top: 5px;
}
.model-settings {
  margin-top: 14px;
  border: 1px solid #eaded1;
  border-radius: 14px;
  background: #fffaf3;
  overflow: hidden;
}
.model-settings > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  list-style: none;
  color: #796575;
  font-size: 13px;
  min-height: 46px;
}
.model-settings > summary::-webkit-details-marker {
  display: none;
}
.model-settings > summary > span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-weight: 650;
}
.model-settings > summary .ui-icon {
  width: 17px;
  height: 17px;
  color: #f3943e;
  flex: none;
}
.model-settings > summary > b {
  min-width: 0;
  flex: 1;
  font-size: 10px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9d8a98;
}
.model-settings > summary > .ui-icon {
  color: #b7a3ae;
  transition: transform 0.15s;
}
.model-settings[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid #efe4d9;
}
.model-settings[open] > summary > .ui-icon {
  transform: rotate(90deg);
}
.model-settings-body {
  padding: 12px;
}
.model-settings-body form,
.sheet.model form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.model-settings-body form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #8e7988;
}
.model-settings-body input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.model-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.model-actions button {
  min-width: 0;
  font-size: 12px;
  min-height: 39px;
}
.model-actions button:first-child {
  background: #f1e7db;
  color: #91674c;
}
.model-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.model-test-result {
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  min-height: 0;
  color: #9c8795;
}
.model-test-result:empty {
  display: none;
}
.model-test-result.success {
  color: #4a967c;
}
.model-test-result.error {
  color: #c85f5e;
}
.model-clear {
  text-align: left;
  font-size: 11px;
  color: #b08785;
}
.model-source-settings {
  border-radius: 20px;
}
.model-source-settings > summary {
  padding: 17px 18px;
  font-size: 16px;
}
.model-source-settings > summary > span {
  font-weight: 500;
}
.model-source-settings .model-settings-body {
  padding: 18px;
}
.model-settings-body .model-source-form,
.sheet.model .model-source-form {
  gap: 14px;
}
.model-source-form [hidden] {
  display: none;
}
.model-source-form .model-source-picker {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.model-source-title {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #897585;
}
.model-source-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #f0e8df;
}
.model-source-form .model-source-switch button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #897585;
  font-size: 14px;
  font-weight: 500;
}
.model-source-form .model-source-switch button[aria-pressed='true'] {
  background: #fffdf9;
  color: #c65312;
}
.model-source-form .model-source-switch button:disabled {
  background: transparent;
  color: #9a8c96;
  opacity: 1;
  cursor: default;
}
.model-source-form .model-source-switch button[aria-pressed='true']:disabled {
  background: #f7f1eb;
}
.model-source-unavailable {
  margin: 8px 0 0;
  color: #897585;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.model-custom-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.model-source-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #897585;
  font-size: 12px;
}
.model-source-form input:not([type='hidden']) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f3eee7;
  color: #584858;
  font-size: 16px;
}
.model-source-form .settings-note {
  margin: 0;
  font-size: 12px;
  color: #897585;
}
.model-official-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 2px 0 14px;
}
.model-official-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: #fff0e3;
  color: #c65312;
}
.model-official-row > div {
  min-width: 0;
}
.model-official-row strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.model-official-row small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #897585;
}
.model-official-status {
  flex: none;
  margin-left: auto;
  font-size: 12px;
  color: #51784e;
}
.model-official-status.unavailable {
  color: #897585;
}
.model-official > p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #eaded2;
  font-size: 12px;
  color: #897585;
  line-height: 1.5;
}
.model-source-form .model-actions {
  grid-template-columns: 1fr 1.3fr;
  gap: 9px;
  margin-top: 5px;
}
.model-source-form .model-actions[data-official] {
  grid-template-columns: 1fr;
}
.model-source-form .model-actions button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 500;
}
.model-source-form .model-actions button[type='submit'] {
  background: #c65312;
  color: #fff;
}
.model-scope-note {
  margin: 0;
  text-align: center;
  color: #897585;
  font-size: 11px;
}
body[data-screen='room'] .sheet .config-grid {
  gap: 11px;
}
body[data-screen='room'] .sheet form > button {
  flex: none;
  background: linear-gradient(120deg, #ff9742, #fb7322);
  color: white;
  font-size: 14px;
}
/* AI 猎人进行中 */
.hunter-screen {
  background: radial-gradient(ellipse at 100% 30%, #fff1dd 0, transparent 50%), #fdf8ee;
}
.hunter-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  min-height: 59px;
}
.hunter-bar h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hunter-bar h1 > .ui-icon {
  color: #856349;
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}
.hunter-help {
  color: #beb8b2;
  padding: 8px;
  width: 30px;
  min-width: 30px;
  height: 30px;
}
.hunter-help .ui-icon {
  width: 16px;
  height: 16px;
}
.hunter-status {
  font-size: 10px;
  color: #f47627;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 99px;
  background: #fff0e0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  white-space: nowrap;
}
.hunter-status i {
  width: 5px;
  height: 5px;
  background: #ff7026;
}
.hunter-bar > button:last-child {
  margin-left: 3px;
}
.hunt-phase {
  margin: 0 15px 8px;
  padding: 10px 12px 11px;
  background: #ffffffba;
  border-radius: 15px;
  box-shadow: 0 4px 10px #90642105;
  flex: none;
}
.hunt-phase > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.hunt-round {
  font-size: 12px;
  color: #4c4049;
  white-space: nowrap;
  font-weight: 650;
}
.hunt-round b {
  font-size: 20px;
  color: #ff7225;
  line-height: 1;
}
.phase-chip {
  background: #f2eaff;
  border-radius: 99px;
  color: #7752bc;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.phase-chip .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
}
.hunt-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ff7426;
  font-size: 21px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.hunt-clock .ui-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
.hunt-phase progress {
  width: 100%;
  height: 6px;
  display: block;
  border: 0;
  appearance: none;
  border-radius: 99px;
  overflow: hidden;
  background: #e8e2dd;
  color: #ff7928;
}
.hunt-phase progress::-webkit-progress-bar {
  background: #e8e2dd;
  border-radius: 99px;
}
.hunt-phase progress::-webkit-progress-value {
  background: #ff7a27;
  border-radius: 99px;
  transition: width 1s linear;
}
.hunt-phase progress::-moz-progress-bar {
  background: #ff7a27;
  border-radius: 99px;
}
.hunt-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
  scrollbar-color: #ebddcf transparent;
}
.hunt-paper {
  background: #fffdfbf2;
  border-radius: 17px;
  padding: 12px;
  border: 1px solid #f7ecdf;
  box-shadow: 0 3px 10px #7c543604;
  flex: none;
}
.hunt-paper h2 {
  font-size: 15px;
  font-weight: 750;
  color: #3f3443;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.hunt-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 13px;
}
.hunt-card-heading > div {
  flex: 1;
  min-width: 0;
}
.hunt-card-heading p {
  font-size: 10px;
  color: #a295a3;
  line-height: 1.6;
  margin-top: 4px;
}
.hunt-card-heading p b {
  color: #ff802b;
}
.heading-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #fff3e3;
  color: #ee8743;
  border-radius: 50%;
  flex: none;
}
.heading-icon .ui-icon {
  width: 23px;
  height: 23px;
}
.hunter-hunt_discussion .hunt-body {
  overflow: hidden;
  padding-bottom: 0;
}
.hunt-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fffdfbdb;
  border: 1px solid #f5ece0;
  border-radius: 17px;
  padding: 11px 10px 7px;
}
.hunt-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
  scrollbar-color: #efdfd1 transparent;
  padding: 1px 3px 8px;
}
.hunt-message {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.hunt-message > .ui-avatar {
  width: 31px;
  height: 31px;
  border: 1px solid #e6daf0;
}
.hunt-message.mine > .ui-avatar {
  border: 1px solid #ffb67c;
}
.hunt-message > div {
  min-width: 0;
  max-width: 87%;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: #a396a6;
  margin: 0 0 3px 3px;
}
.message-meta time {
  color: #b9b0b9;
  font-size: 9px;
}
.hunt-bubble {
  padding: 8px 10px;
  background: #f0eafa;
  border-radius: 3px 13px 13px 13px;
  font-size: 12px;
  color: #635674;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.hunt-message.mine .hunt-bubble,
.hunt-message:nth-child(3n) .hunt-bubble {
  background: #ffede4;
  color: #75605b;
}
.chat-empty {
  padding: 20px 12px;
  color: #b0a3b0;
  text-align: center;
  margin: auto;
}
.chat-empty h3 {
  font-size: 13px;
  color: #8e7c95;
  margin-bottom: 4px;
}
.chat-empty p {
  font-size: 11px;
  line-height: 1.7;
}
.chat-footnote {
  font-size: 10px;
  color: #b0a4ae;
  text-align: center;
  padding-top: 4px;
}
.hunt-dock {
  flex: none;
  padding: 8px 16px max(13px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.locations-overview {
  background: #fffdfbbf;
  border-radius: 13px;
  padding: 7px 7px 5px;
}
.locations-overview h2 {
  font-size: 11px;
  font-weight: 550;
  color: #857580;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.locations-overview h2 .ui-icon {
  width: 13px;
  height: 13px;
  color: #c3885f;
}
.locations-overview > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.location-mini {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fffaf3;
}
.location-mini > img {
  width: 100%;
  height: 47px;
  object-fit: cover;
  border-radius: 8px;
}
.location-mini > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #62515e;
  font-size: 9px;
  padding: 3px 1px;
  white-space: nowrap;
}
.locations-overview .location-mini .ui-icon {
  display: none;
}
.location-mini b {
  font-weight: 650;
}
.hunt-composer {
  background: none;
}
.hunt-composer > span {
  color: #b3a4ae;
  flex: none;
  display: flex;
}
.hunt-composer > span .ui-icon {
  width: 23px;
  height: 23px;
}
.hunt-composer input {
  flex: 1;
  border-radius: 99px;
  background: #f3ede7;
}
.hunt-composer button {
  border-radius: 50%;
  margin: 0;
  flex: none;
}
.hunt-composer button .ui-icon {
  width: 19px;
  height: 19px;
  stroke-width: 3;
}
@media (max-height: 650px) {
  .hunter-hunt_discussion:has(.hunt-composer input:focus) .locations-overview,
  .hunter-hunt_discussion:has(.hunt-composer input:focus) .hunt-phase {
    padding: 7px 10px;
    margin-bottom: 6px;
  }
  .hunter-hunt_discussion:has(.hunt-composer input:focus) .chat-footnote {
    display: none;
  }
}
.message-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-meta time {
  flex: none;
}
.hunt-locations {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.hunt-location {
  grid-column: span 2;
  position: relative;
  height: auto;
  padding: 5px 5px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 13px;
  background: #fffaf4;
  color: #62515b;
  border: 1.5px solid #f1e7dc;
  box-shadow: 0 2px 5px #6a523905;
  white-space: normal;
}
.hunt-location:nth-child(n + 4) {
  grid-column: span 3;
}
.hunt-location > img {
  width: 100%;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
}
.hunt-location > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  font-size: 11px;
}
.hunt-location b {
  font-weight: 650;
}
.hunt-location > span > .ui-icon {
  width: 15px;
  height: 15px;
  color: #ba8967;
}
.choice-check {
  display: block;
  margin-left: auto;
  width: 17px;
  height: 17px;
  border: 1.5px solid #c6bbb3;
  border-radius: 50%;
}
.choice-check .ui-icon {
  width: 17px;
  height: 17px;
  margin: -1.5px;
  color: #ff812a;
  fill: #ff812a;
  stroke: white;
  stroke-width: 2.7;
}
.hunt-location.selected {
  border-color: #ff942f;
  box-shadow: 0 0 0 2px #ff8c3411;
  background: #fff9ee;
}
.hunt-location.selected .choice-check {
  border-color: #ff8b2e;
}
.hunt-location:disabled {
  opacity: 0.75 !important;
}
.hunt-location.selected:disabled {
  opacity: 1 !important;
}
.selection-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff5e9;
  border: 1px solid #ffe1c0;
  border-radius: 13px;
  padding: 10px;
}
.selection-summary > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #ffeace;
  color: #eb8842;
  border-radius: 50%;
  flex: none;
}
.selection-summary > span .ui-icon {
  width: 21px;
  height: 21px;
}
.selection-summary > div {
  min-width: 0;
}
.selection-summary strong {
  font-size: 12px;
  color: #745445;
  line-height: 1.4;
}
.selection-summary strong b {
  color: #fa792b;
  margin-left: 4px;
}
.selection-summary p {
  font-size: 10px;
  color: #ae978d;
  line-height: 1.5;
  margin-top: 3px;
}
.hunt-notice {
  font-size: 11px;
  line-height: 1.6;
  color: #c28c57;
  background: #fff0dc;
  border-radius: 11px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.hunt-notice .ui-icon {
  width: 17px;
  height: 17px;
  color: #f48536;
  flex: none;
}
.choose-actions {
  display: flex;
  gap: 8px;
}
.choose-actions > button {
  font-size: 16px;
  border-radius: 15px;
  height: 48px;
  flex: 1;
  padding: 0 9px;
}
.choose-actions > button:first-child {
  flex: 1.6;
}
.choose-actions .ui-icon {
  width: 20px;
  height: 20px;
}
.hunt-wait {
  text-align: center;
  padding: 29px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wait-bot {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 23px;
  background: #f3e7ff;
  color: #8c69c8;
}
.wait-bot .ui-icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}
.hunt-wait h2 {
  font-size: 20px;
}
.hunt-wait > p {
  font-size: 12px;
  color: #a38d9e;
  line-height: 1.8;
}
.hunt-wait .privacy-note {
  color: #9380b2;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.privacy-note .ui-icon {
  width: 13px;
  height: 13px;
}
.hunt-wait .selection-summary {
  width: 100%;
  text-align: left;
  margin-top: 4px;
}
.thinking-dots {
  display: flex;
  gap: 6px;
  padding: 3px 0 10px;
}
.thinking-dots i {
  width: 6px;
  height: 6px;
  background: #d3b7e8;
  border-radius: 50%;
  animation: think 1s infinite alternate;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes think {
  to {
    opacity: 0.35;
    transform: translateY(-3px);
  }
}
.hunt-locked {
  font-size: 11px;
  color: #b49daf;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  padding: 8px 0;
}
.hunt-locked .ui-icon {
  width: 13px;
  height: 13px;
}
.hunt-wait > button {
  font-size: 14px;
}
.searched-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.searched-locations[data-count='1'] {
  grid-template-columns: 1fr;
}
.searched-locations[data-count='3'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.searched-locations .location-mini {
  border: 1px solid #eee4d9;
  box-shadow: 0 3px 7px #684b2506;
  border-radius: 10px;
}
.searched-locations .location-mini img {
  height: 64px;
  border-radius: 9px 9px 0 0;
}
.searched-locations .location-mini > span {
  font-size: 12px;
  padding: 4px;
}
.searched-locations .location-mini .ui-icon {
  width: 16px;
  height: 16px;
  color: #c78a5e;
}
.inline-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.inline-heading .ui-icon {
  width: 19px;
  height: 19px;
  color: #c58b65;
  stroke-width: 2.3;
}
.round-players {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.round-player {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.round-player > .ui-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #f1d4b7;
}
.round-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 65px;
  min-width: 0;
  flex-shrink: 1;
  gap: 2px;
}
.round-name > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.self-label {
  background: #ff8d33;
  color: #fff;
  border-radius: 99px;
  line-height: 13px;
  padding: 0 5px;
  font-size: 8px;
}
.reveal-location {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f3ec;
  color: #796873;
  padding: 5px 7px;
  border-radius: 99px;
  margin-left: auto;
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.reveal-location .ui-icon {
  width: 16px;
  height: 16px;
  color: #c0875d;
}
.catch-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 99px;
  font-weight: 650;
  font-size: 11px;
}
.catch-tag .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
}
.catch-tag.caught {
  background: #ffe0db;
  color: #da413f;
}
.catch-tag.safe {
  background: #e7f6e7;
  color: #33a36e;
}
.catch-summary {
  margin-top: 12px;
  display: flex;
  border: 1px solid #ffe1bf;
  background: #fff7eb;
  border-radius: 12px;
  padding: 10px 9px;
  gap: 8px;
}
.catch-summary > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.5;
  flex: 1;
  color: #79564e;
}
.catch-summary > div + div {
  border-left: 1px solid #f0dac0;
  padding-left: 8px;
  flex: 1.3;
}
.catch-summary .ui-icon {
  width: 23px;
  height: 23px;
  color: #f1873f;
}
.catch-summary b {
  font-size: 18px;
  color: #f47b31;
  margin: 0 2px;
}
.catch-summary small {
  font-size: 8px;
  display: block;
  text-align: right;
  color: #b1978e;
}
.round-record {
  font-size: 11px;
  color: #a792a2;
  line-height: 1.8;
}
.round-record .inline-heading {
  margin-bottom: 5px;
}
.round-record > p {
  padding-left: 24px;
}
.next-hint {
  font-size: 10px;
  color: #b49da8;
  text-align: center;
}
.next-round {
  width: 100%;
  border-radius: 15px;
  font-size: 17px;
  height: 47px;
}
/* 两种结算：插画作背景，所有文字、数据和按钮都由真实局面生成。 */
.hunter-ended .hunter-bar h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
}
.hunter-ended .hunter-bar h1 > .ui-icon,
.hunter-ended .hunter-help,
.hunter-ended .hunter-status {
  display: none;
}
.hunter-ended .hunter-bar > button:last-child {
  margin-left: auto;
}
.hunter-ended .hunt-body {
  gap: 10px;
  padding: 0 14px 4px;
}
.hunter-victory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  flex: none;
  border-radius: 16px;
  border: 1px solid #ffe3bc;
  background: #fff1d7;
  box-shadow: 0 2px 8px #b5863306;
  padding: 18px 8px 9px;
}
.victory-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% center;
  z-index: -2;
}
.hunter-victory::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 24%, #fff3df3b 40%, #fff3dfb5 56%, #fff3df7d);
  z-index: -1;
}
.victory-copy {
  min-height: 116px;
  margin-left: 43%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 3px 9px;
}
.victory-copy h2 {
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.1;
  color: #ff7b26;
  white-space: nowrap;
  text-shadow: 0 2px #fff8ee;
}
.victory-copy > strong {
  font-size: 12px;
  color: #776087;
  font-weight: 700;
  line-height: 1.5;
}
.victory-copy p {
  font-size: 10px;
  color: #a0828c;
  line-height: 1.6;
}
.victory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fffffff0;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 2px 8px #86623105;
  border: 1px solid #fff7e9;
}
.victory-metrics > div {
  text-align: center;
  position: relative;
  padding: 0 2px;
  min-width: 0;
}
.victory-metrics > div + div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 5px;
  width: 1px;
  background: #f5e4d4;
}
.victory-metrics dt {
  font-size: 10px;
  color: #998ba8;
  margin-bottom: 4px;
}
.victory-metrics dd {
  font-size: 20px;
  color: #705482;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.victory-metrics .ui-icon {
  width: 15px;
  height: 15px;
  color: #fa9462;
  stroke-width: 2.7;
}
.victory-metrics > div:last-child .ui-icon {
  color: #baa6c8;
}
.final-performance,
.final-history {
  padding: 10px;
}
.final-performance > .inline-heading,
.final-history > .inline-heading {
  font-size: 16px;
  margin-bottom: 8px;
}
.hunter-round-record {
  border-top: 1px solid #c7a58d40;
  padding: 9px 0;
}
.hunter-round-record h3,
.hunter-round-record summary {
  font-size: 12px;
  line-height: 1.6;
  color: inherit;
}
.hunter-round-record summary {
  cursor: pointer;
}
.hunter-round-record .round-record {
  padding: 6px 3px 0;
}
.hunter-round-record .round-record > p {
  padding: 0;
  overflow-wrap: anywhere;
}
.final-performance > .inline-heading .ui-icon,
.final-history > .inline-heading .ui-icon {
  color: #ff9444;
}
.final-performance table,
.final-history table {
  width: 100%;
  font-size: 11px;
  border-collapse: separate;
  border-spacing: 0 4px;
  table-layout: fixed;
  color: #83658f;
}
.final-performance thead th,
.final-history thead th {
  font-size: 9px;
  font-weight: 500;
  color: #a08bac;
  padding: 0 2px 3px;
}
.final-performance thead th:first-child {
  width: 37%;
  text-align: left;
}
.final-performance thead th:nth-child(2),
.final-performance thead th:nth-child(3) {
  width: 16%;
}
.final-performance thead th:last-child {
  width: 31%;
}
.final-performance tbody th,
.final-performance tbody td,
.final-history tbody th,
.final-history tbody td {
  background: #fff;
  border-top: 1px solid #f8eee7;
  border-bottom: 1px solid #f8eee7;
  padding: 5px 3px;
  text-align: center;
}
.final-performance tbody th:first-child,
.final-history tbody th:first-child {
  border-left: 1px solid #f8eee7;
  border-radius: 10px 0 0 10px;
}
.final-performance tbody td:last-child,
.final-history tbody td:last-child {
  border-right: 1px solid #f8eee7;
  border-radius: 0 10px 10px 0;
}
.final-performance th[scope='row'] > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #67506c;
  min-width: 0;
  padding-left: 2px;
  text-align: left;
}
.final-performance th[scope='row'] b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.final-performance .ui-avatar {
  width: 28px;
  height: 28px;
}
.final-performance tbody td {
  font-size: 14px;
  font-weight: 700;
}
.award {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 650;
  padding: 4px 5px;
  border-radius: 99px;
  white-space: nowrap;
}
.award .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.3;
}
.award.stable {
  background: #fff0bc;
  color: #ca8a35;
}
.award.target {
  background: #efe2ff;
  color: #9460d0;
}
.award-empty {
  font-size: 12px;
  color: #c1b1ca;
}
.award-note {
  font-size: 8px;
  color: #c3afbd;
  text-align: right;
  margin-top: 4px;
}
.final-history table thead th:first-child {
  width: 23%;
}
.final-history table thead th:last-child {
  width: 20%;
}
.final-history th[scope='row'] {
  font-size: 9px;
  font-weight: 550;
}
.final-history th[scope='row'] > span {
  border-radius: 99px;
  background: #f9f5f6;
  display: inline-block;
  padding: 2px 6px;
  color: #a28ca8;
  white-space: nowrap;
}
.final-history tbody td {
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 650;
}
.final-history tbody td:nth-child(2) {
  text-align: left;
  font-weight: 500;
  font-size: 9px;
}
.record-location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 3px;
  white-space: nowrap;
}
.record-location .ui-icon {
  width: 11px;
  height: 11px;
  color: #cb8b7d;
  stroke-width: 2;
}
.hunt-result-actions {
  display: flex;
  gap: 9px;
}
.hunt-result-actions > button {
  flex: 1;
  height: 44px;
  font-size: 15px;
  padding: 0 8px;
  border-radius: 99px;
}
button.outline {
  color: #9980b4;
  background: transparent;
  border: 1px solid #a891c5;
}
body[data-screen='hunter'][data-ui-theme='ai-win'] {
  --bg: #111b2e;
  --card: #172238;
  --fg: #ecedff;
  --dim: #8f99b9;
  --soft: #202c47;
  --line: #2b3b62;
  --acc: #ff7c2b;
  --on-acc: #fff;
  color-scheme: dark;
  background: #09101f;
}
body[data-ui-theme='ai-win'] .hunter-screen {
  background: radial-gradient(ellipse at 75% 28%, #203149 0, transparent 72%), #101a2c;
}
body[data-ui-theme='ai-win'] .hunt-paper {
  background: #132036dc;
  border: 1px solid #283b64;
  box-shadow: none;
}
body[data-ui-theme='ai-win'] .hunt-paper h2 {
  color: #e0dffe;
}
body[data-ui-theme='ai-win'] .hunter-victory {
  background: #07152e;
  border: 1px solid #324da7;
  box-shadow: 0 0 16px #153bcc15;
}
body[data-ui-theme='ai-win'] .hunter-victory::before {
  background: linear-gradient(90deg, transparent 20%, #05153730 35%, #051537a8 55%, #07142c40);
}
body[data-ui-theme='ai-win'] .victory-copy h2 {
  color: #dff7ff;
  text-shadow:
    0 0 5px #72b9ff,
    0 0 19px #3484ff;
  letter-spacing: -0.03em;
}
body[data-ui-theme='ai-win'] .victory-copy > strong {
  color: #c9d4ff;
}
body[data-ui-theme='ai-win'] .victory-copy p {
  color: #8a9cc6;
}
body[data-ui-theme='ai-win'] .victory-metrics {
  background: #172341e8;
  border-color: #405990;
  box-shadow: inset 0 0 13px #4169de12;
}
body[data-ui-theme='ai-win'] .victory-metrics > div + div::before {
  background: #35446a;
}
body[data-ui-theme='ai-win'] .victory-metrics dt {
  color: #a0a4d7;
}
body[data-ui-theme='ai-win'] .victory-metrics dd {
  color: #e5dfff;
}
body[data-ui-theme='ai-win'] .final-performance tbody th,
body[data-ui-theme='ai-win'] .final-performance tbody td,
body[data-ui-theme='ai-win'] .final-history tbody th,
body[data-ui-theme='ai-win'] .final-history tbody td {
  background: #1a2941;
  border-color: #2b3d67;
  color: #c9bdff;
}
body[data-ui-theme='ai-win'] .final-performance th[scope='row'] > span {
  color: #e9e4ff;
}
body[data-ui-theme='ai-win'] .final-performance thead th,
body[data-ui-theme='ai-win'] .final-history thead th {
  color: #9b9bce;
}
body[data-ui-theme='ai-win'] .award.stable {
  background: #544122;
  color: #ffc075;
  box-shadow: inset 0 0 0 1px #9d7240;
}
body[data-ui-theme='ai-win'] .award.target {
  background: #35266c;
  color: #c3a1ff;
  box-shadow: inset 0 0 0 1px #6049aa;
}
body[data-ui-theme='ai-win'] .award-note {
  color: #68779c;
}
body[data-ui-theme='ai-win'] .final-history th[scope='row'] > span {
  background: #202e4b;
  color: #9a9aca;
}
body[data-ui-theme='ai-win'] button.outline {
  color: #babdff;
  border-color: #6883e8;
}
body[data-ui-theme='ai-win'] button.pale {
  background: #1a2941 !important;
  border-color: #354976 !important;
  color: #c0b9f0 !important;
}
/* 窄屏与矮屏保持真实可滚动内容，操作区一直可达。 */
@media (min-width: 460px) {
  .lobby-hero {
    min-height: 201px;
    padding-left: 17px;
  }
  .lobby-dice {
    right: -5px;
    width: 255px;
    height: 185px;
  }
  .lobby-brand h1 {
    font-size: 58px;
  }
  .lobby-brand p {
    font-size: 17px;
  }
  .lobby-primary button {
    height: 64px;
    font-size: 20px;
  }
  .lobby-scroll {
    padding-left: 18px;
    padding-right: 18px;
  }
  .current-art {
    width: 92px;
    height: 118px;
  }
  .current-copy {
    gap: 5px;
  }
  .current-title h3 {
    font-size: 18px;
  }
  .current-actions button {
    height: 34px;
    font-size: 12px;
  }
  .room-art {
    width: 104px;
    height: 138px;
  }
  .room-game-copy h2 {
    font-size: 23px;
  }
  .room-tools {
    gap: 10px;
  }
  .room-member .ui-avatar,
  .empty-avatar {
    width: 48px;
    height: 48px;
  }
  .room-game-copy > p {
    font-size: 11px;
  }
  .hunt-location > img {
    height: 106px;
  }
  .hunt-location > span {
    font-size: 13px;
  }
  .hunt-location:nth-child(n + 4) > img {
    height: 97px;
  }
  .hunt-bubble {
    font-size: 14px;
  }
  .hunt-card-heading h2 {
    font-size: 17px;
  }
  .hunt-card-heading p {
    font-size: 12px;
  }
  .victory-copy {
    min-height: 135px;
  }
  .victory-copy h2 {
    font-size: 45px;
  }
  .victory-copy > strong {
    font-size: 15px;
  }
  .victory-copy p {
    font-size: 12px;
  }
  .hunter-victory {
    min-height: 235px;
  }
  .victory-metrics dd {
    font-size: 25px;
  }
  .final-performance table {
    font-size: 13px;
  }
  .final-performance th[scope='row'] b {
    font-size: 13px;
  }
  .final-performance .ui-avatar {
    width: 33px;
    height: 33px;
  }
  .award {
    font-size: 11px;
  }
  .final-history tbody td:nth-child(2) {
    font-size: 11px;
  }
  .record-location .ui-icon {
    width: 13px;
    height: 13px;
  }
}
@media (max-width: 360px) {
  .lobby-hero {
    min-height: 159px;
    padding-left: 5px;
  }
  .lobby-brand h1 {
    font-size: 42px;
  }
  .lobby-brand p {
    font-size: 12px;
  }
  .lobby-brand small {
    font-size: 10px;
  }
  .lobby-dice {
    width: 173px;
    height: 130px;
    right: -24px;
  }
  .lobby-primary button {
    padding: 0 8px;
    font-size: 14px;
    gap: 5px;
  }
  .lobby-primary .tail {
    display: none;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .section-title > p {
    font-size: 9px;
  }
  .current-room {
    gap: 8px;
    padding: 3px;
  }
  .current-art {
    width: 66px;
    height: 112px;
  }
  .current-title h3 {
    font-size: 15px;
  }
  .current-title .host-tag {
    font-size: 9px;
    padding: 2px 4px;
  }
  .current-actions button {
    font-size: 11px;
  }
  .current-actions .ui-icon {
    display: none;
  }
  .game-art {
    width: 56px;
    height: 69px;
  }
  .lobby-game-row {
    gap: 8px;
    padding: 6px;
  }
  .lobby-game-copy h3 {
    font-size: 15px;
  }
  .lobby-game-copy p {
    font-size: 10px;
  }
  .game-tag {
    font-size: 10px;
  }
  .small-cta {
    padding: 0 8px !important;
  }
  .room-bar {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .room-brand h1 {
    font-size: 21px;
  }
  .room-brand p {
    font-size: 9px;
  }
  .room-self {
    display: none;
  }
  .room-art {
    width: 80px;
    height: 138px;
  }
  .room-game-card {
    gap: 8px;
  }
  .room-game-copy h2 {
    font-size: 20px;
  }
  .room-game-copy > p {
    font-size: 11px;
  }
  .room-members-card > .section-title h2 {
    font-size: 17px;
  }
  .room-members-card > .section-title h2 .ui-icon {
    width: 18px;
    height: 18px;
  }
  .invite-people {
    font-size: 9px !important;
    padding: 0 7px !important;
  }
  .invite-people .ui-icon {
    display: none;
  }
  .room-member .ui-avatar,
  .empty-avatar {
    width: 34px;
    height: 34px;
  }
  .room-member > strong {
    font-size: 10px;
  }
  .room-member-grid {
    gap: 4px;
  }
  .hunt-round {
    font-size: 10px;
  }
  .hunt-round b {
    font-size: 18px;
  }
  .phase-chip {
    font-size: 10px;
    padding: 4px 6px;
  }
  .hunt-clock {
    font-size: 18px;
  }
  .hunt-clock .ui-icon {
    width: 14px;
    height: 14px;
  }
  .hunt-phase {
    padding: 10px;
    margin-left: 12px;
    margin-right: 12px;
  }
  .hunt-location > img {
    height: 64px;
  }
  .hunt-location > span {
    font-size: 10px;
    gap: 3px;
  }
  .hunt-location > span > .ui-icon {
    width: 12px;
    height: 12px;
  }
  .choice-check {
    width: 14px;
    height: 14px;
  }
  .choice-check .ui-icon {
    width: 14px;
    height: 14px;
  }
  .choose-actions > button {
    font-size: 14px;
  }
  .hunt-notice {
    font-size: 10px;
  }
  .victory-copy {
    margin-left: 40%;
  }
  .victory-copy h2 {
    font-size: 27px;
  }
  .victory-copy > strong {
    font-size: 11px;
  }
  .victory-metrics dd {
    font-size: 16px;
    gap: 2px;
  }
  .victory-metrics .ui-icon {
    width: 12px;
    height: 12px;
  }
  .award {
    font-size: 8px;
    padding: 3px 4px;
  }
  .award .ui-icon {
    width: 10px;
    height: 10px;
  }
  .final-performance th[scope='row'] b {
    font-size: 10px;
  }
  .final-performance .ui-avatar {
    width: 23px;
    height: 23px;
  }
  .final-performance th[scope='row'] > span {
    gap: 3px;
  }
}
@media (max-height: 650px) {
  .hunter-bar {
    min-height: 48px;
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }
  .hunt-phase {
    margin-bottom: 3px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .hunt-location > img {
    height: 64px;
  }
  .hunt-dock {
    padding-top: 6px;
    gap: 6px;
  }
  .locations-overview .location-mini img {
    height: 37px;
  }
  .room-bar {
    padding-top: calc(11px + env(safe-area-inset-top));
    padding-bottom: 11px;
  }
  .room-scroll {
    gap: 10px;
  }
  .room-members-card {
    padding-bottom: 10px;
  }
  .room-chat-card {
    padding: 10px;
    gap: 8px;
  }
  .hunter-victory {
    min-height: 194px;
  }
  .victory-copy {
    min-height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking-dots i {
    animation: none;
  }
  .hunt-phase progress::-webkit-progress-value {
    transition: none;
  }
}

.scrim:active {
  transform: none;
}
[data-ui-leaving] {
  pointer-events: none !important;
  user-select: none;
}
.room-bar,
.hunter-bar {
  position: relative;
}
.room-network {
  position: absolute;
  bottom: 0;
  right: 18px;
  color: #dd8d3d;
  font-size: 9px;
  line-height: 1.2;
  z-index: 1;
}
.room-network:empty {
  display: none;
}

/* 玩法卡固定 160px，切换玩法/模式不改变占位；大字时正文可内部滚动，设置与模型入口仍可访问。 */
.room-game-copy > .section-title {
  align-items: center;
  gap: 6px;
}
.room-game-copy .setting-button {
  flex: none;
}
.room-scroll {
  overflow-x: hidden;
}
.lobby-scroll::-webkit-scrollbar,
.room-scroll::-webkit-scrollbar {
  width: 5px;
}
.lobby-scroll::-webkit-scrollbar-thumb,
.room-scroll::-webkit-scrollbar-thumb {
  background: #e4d3bb;
  border-radius: 99px;
}
@media (max-width: 360px) {
  .setting-button {
    font-size: 9px !important;
    padding: 0 6px !important;
  }
  .room-game-copy {
    gap: 5px;
  }
}

.join-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
  flex: none;
}
.join-preview-card .room-art {
  width: 130px;
  height: 155px;
  min-height: 155px;
}
.join-preview-card h2 {
  font-size: 25px;
}
.join-preview-card p {
  font-size: 13px;
  color: #aa96a7;
  line-height: 1.8;
}
.join-preview-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 0;
}
.join-preview-members > span {
  justify-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 70px;
  font-size: 12px;
  color: #937b92;
}
.join-preview-members b {
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.join-privacy-note {
  font-size: 11px;
  color: #b6a4b5;
  text-align: center;
  padding: 5px;
}

/* 五/六人猎人阵容使用等宽列，防止旧固定间距挤出屏幕。 */
#config [hidden] {
  display: none;
}
/* Inline room chat shares one draft with its expanded drawer. */
.room-chat-composer {
  flex: none;
}
.room-chat-composer input {
  flex: 1;
  background: #fffaf5;
  border: 1px solid #eee2d8;
  border-radius: 13px;
}
.room-chat-composer button {
  flex: none;
  margin: 0;
  border-radius: 13px;
  background: linear-gradient(120deg, #ffae64, #ff7627);
}
.room-chat-composer button .ui-icon {
  width: 21px;
  height: 21px;
}
.room-chat-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #a08b99;
  font-size: 11px;
  flex: none;
}
/* Expanded details must not shrink inside the scrolling settings sheet. */
.sheet.config .sheet-body > * {
  flex-shrink: 0;
}
.model-settings,
.profile-model {
  flex-shrink: 0;
}
.model-settings-body input {
  font-size: 16px;
}

/* The entire public-room heading/filter group sticks within the lobby scroller. */
.public-rooms-panel {
  position: relative;
  overflow: visible;
}
.public-rooms-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fffdfb;
  padding: 12px 0 1px;
  margin-top: -12px;
  box-shadow: 0 7px 10px #fffdfbe8;
}
.public-rooms-header .public-room-filters {
  margin-bottom: 10px;
}
.room-member button.room-member-avatar {
  padding: 0;
  min-height: 0;
  height: auto;
  width: auto;
  background: none;
  color: inherit;
  border: 0;
  box-shadow: none;
  position: relative;
}
.room-member button.room-member-avatar:disabled {
  opacity: 1;
  cursor: default;
}
.room-member button.room-member-avatar:focus-visible {
  outline: 2px solid #ff7929;
  outline-offset: 3px;
  border-radius: 50%;
}
.recent-tag {
  color: #8b8592;
  font-size: 10px;
  white-space: nowrap;
}

.member-manage-avatar {
  padding: 0;
  width: 40px;
  height: 40px;
  min-height: 0;
  background: none;
  border-radius: 50%;
  overflow: hidden;
}
.member-manage-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-model-alert {
  background: #fdecea;
  color: #c4493c;
  border: 1px solid #f3c4bd;
  border-radius: 10px;
  min-height: 30px;
  height: auto;
  padding: 5px 10px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  width: 100%;
}
.room-model-alert .ui-icon {
  width: 15px;
  height: 15px;
  color: #c4493c;
  flex: none;
}

/* Keep the shared room frame stationary; only chat history and open sheets scroll. */
.room-join .room-scroll {
  overflow-y: auto;
}
.room-chat-title {
  flex: none;
}
@media (max-height: 650px) {
  .room-bar {
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .room-scroll {
    gap: 8px;
    padding-bottom: 8px;
  }
  .room-members-card {
    padding: 8px;
  }
  .room-members-card > .section-title {
    margin-bottom: 4px;
  }
  .room-members-card .section-title h2 {
    font-size: 16px;
  }
  button.invite-people {
    height: 24px;
  }
  .room-member-grid {
    gap: 4px;
    padding-top: 2px;
  }
  .room-member .ui-avatar,
  .empty-avatar {
    width: 34px;
    height: 34px;
  }
  .room-member > strong {
    font-size: 10px;
  }
  .member-ready {
    padding: 1px 3px;
    margin-top: 1px;
  }
  .room-chat-title h2 {
    font-size: 17px;
  }
  .room-dock {
    padding: 0 13px max(8px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  }
  .room-dock .dock {
    gap: 6px;
  }
  .room-dock .form-actions > button {
    height: 42px;
  }
}
@media (max-height: 500px) {
  .room-screen:has(.room-chat-composer input:focus) .room-game-card,
  .room-screen:has(.room-chat-composer input:focus) .room-members-card {
    display: none;
  }
}

.room-game-copy:has(.room-model-alert) > p,
.room-game-copy:has(.room-model-alert) > .room-model {
  display: none;
}
.room-game-copy .room-model-alert {
  flex: none;
  min-height: 18px;
  line-height: 1.3;
  padding: 0;
  margin: 0;
  font-size: 10px;
  border: 0;
  background: none;
}

/* visualViewport can shrink without changing CSS media query dimensions. */
body[data-screen='room'].room-chat-focused-short .room-game-card,
body[data-screen='room'].room-chat-focused-short .room-members-card {
  display: none;
}
/* word-ui.css — canonical section */
#word-game {
  --cream: #fcf7ee;
  --paper: #fffdf9;
  --ink: #332c32;
  --muted: #928790;
  --line: #eee4d8;
  --orange: #f78132;
  --orange-soft: #fff0df;
  --blue: #5793cf;
  --blue-soft: #eaf2fd;
  --red: #de746a;
  --red-soft: #fff0ec;
  --green: #419d79;
  --green-soft: #e9f7ef;
  --purple: #9c70c7;
  --purple-soft: #f1e8fb;
  --phase: #de746a;
  --phase-soft: #fff0ec;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}
#word-game :is(h1, h2, h3, p) {
  margin: 0;
}
#word-game button {
  border: 0;
  font: inherit;
}
#word-game input,
#word-game textarea,
#word-game select {
  color: var(--ink);
}
#word-game .ui-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
#word-game .icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: none;
  color: #8f7e80;
  border-radius: 50%;
}
#word-game .avatar {
  display: inline-block;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1e5d5;
}
#word-game .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#word-game .primary {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(115deg, #ff994d, #f47b2d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 8px #e7832b14;
}
#word-game .primary.danger {
  background: linear-gradient(115deg, #eb8d7b, #dc6d64);
  box-shadow: 0 4px 8px #bd4c3910;
}
#word-game .primary:disabled {
  background: #e9d9cf;
  box-shadow: none;
  color: #fffdf9;
}
#word-game .secondary {
  min-height: 42px;
  border: 1px solid #eee4d8;
  border-radius: 12px;
  color: #8c7c89;
  padding: 9px 13px;
  background: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
#word-game .text-button {
  background: none;
  padding: 3px 0;
  color: #9f87b5;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#word-game .text-button .ui-icon {
  width: 13px;
  height: 13px;
}
#word-game .app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 65px;
  flex: none;
  padding: 14px 15px 10px;
  background: linear-gradient(110deg, #fcf7ee, #fff0df);
}
#word-game .game-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #bd8246;
  background: #ffe6c6;
}
#word-game .game-mark .ui-icon {
  width: 20px;
  height: 20px;
}
#word-game .app-heading {
  flex: 1;
}
#word-game .app-heading h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
#word-game .app-heading p {
  font-size: 10px;
  color: #ad948d;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
#word-game .app-heading .mini-dot {
  font-size: 10px;
  color: #c8a99a;
}
#word-game .header-score {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 11px;
  background: #fffdf6;
  padding: 6px 9px;
  color: #9c8493;
  font-size: 10px;
  white-space: nowrap;
}
#word-game .header-score b {
  font-size: 16px;
  color: #705a67;
  font-variant-numeric: tabular-nums;
}
#word-game .header-score strong {
  font-size: 16px;
  color: var(--purple);
  font-weight: 700;
}
#word-game .phase-panel {
  margin: 1px 12px 0;
  padding: 11px 13px 9px;
  background: #fffdf9;
  border-radius: 18px;
  border: 1px solid #fffaf0;
  box-shadow: 0 3px 12px #5c362c04;
  flex: none;
}
#word-game .phase-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
#word-game .round {
  font-size: 12px;
  font-weight: 600;
  color: #9f8393;
  white-space: nowrap;
}
#word-game .round b {
  font-size: 17px;
  color: #57464f;
  font-weight: 750;
}
#word-game .phase-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--phase-soft);
  color: var(--phase);
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
#word-game .phase-chip .ui-icon {
  width: 12px;
  height: 12px;
}
#word-game .timer {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--phase);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
#word-game .timer small {
  font-size: 11px;
  letter-spacing: 0;
  color: #9b86a9;
  font-weight: 500;
}
#word-game .phase-progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: #f3ebe4;
  overflow: hidden;
  margin-top: 9px;
  appearance: none;
}
#word-game .phase-progress::-webkit-progress-bar {
  background: #f3ebe4;
  border-radius: 99px;
}
#word-game .phase-progress::-webkit-progress-value {
  background: var(--phase);
  border-radius: 99px;
}
#word-game .phase-progress::-moz-progress-bar {
  background: var(--phase);
  border-radius: 99px;
}
#word-game .phase-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #aa939e;
  margin-top: 7px;
  flex-wrap: wrap;
}
#word-game .segments {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
#word-game .segments i {
  display: block;
  width: 17px;
  height: 5px;
  border-radius: 99px;
  background: #efe6df;
}
#word-game .segments i.done {
  background: #b6a0ac;
}
#word-game .segments i.current {
  background: var(--phase);
}
#word-game .mode-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  color: #9771b8;
  background: #f2eafb;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
#word-game .phase-counter {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #a48498;
}
#word-game .role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px 8px;
  flex: none;
}
#word-game .role-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9b8394;
}
#word-game .role-label .ui-icon {
  width: 13px;
  height: 13px;
  color: #bc916e;
}
#word-game .role-label strong {
  font-size: 11px;
  font-weight: 650;
  color: #785b6c;
}
#word-game .mini-players {
  display: flex;
  padding-left: 4px;
}
#word-game .mini-players .avatar {
  width: 25px;
  height: 25px;
  margin-left: -4px;
  border: 2px solid #fcf7ee;
}
#word-game .mini-players .avatar.self {
  border-color: #faac68;
}
#word-game .play-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #e9dccc transparent;
  overscroll-behavior: contain;
}
#word-game .paper {
  background: var(--paper);
  border: 1px solid #fffaf0;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 3px 12px #7a4e2c03;
  flex: none;
}
#word-game .card-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}
#word-game .card-heading > span {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #fff0df;
  color: #bc8a60;
  display: grid;
  place-items: center;
}
#word-game .card-heading > span.purple {
  background: #f0e7fa;
  color: #a078c4;
}
#word-game .card-heading > span.blue {
  background: #eaf1fc;
  color: #7b9fc9;
}
#word-game .card-heading .ui-icon {
  width: 16px;
  height: 16px;
}
#word-game .card-heading h2 {
  font-size: 14px;
  letter-spacing: -0.015em;
  font-weight: 750;
  color: #654d5e;
}
#word-game .card-heading small {
  margin-left: auto;
  color: #b29aa6;
  font-size: 10px;
}
#word-game .label {
  font-size: 10px;
  color: #ae95a4;
  letter-spacing: 0.035em;
  margin-bottom: 5px;
}
#word-game .muted {
  color: #a68d9d;
  font-size: 11px;
  line-height: 1.7;
}
#word-game .hint-word {
  font-size: 23px !important;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #695a70 !important;
}
#word-game .status-banner {
  border-radius: 13px;
  padding: 10px 13px;
  background: #e9f6ee;
  color: #6e9d87;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
#word-game .status-banner .ui-icon {
  width: 16px;
  height: 16px;
}
#word-game .status-banner.red {
  background: #fff0eb;
  color: #ce8d80;
}
#word-game .status-banner.purple {
  background: #f1e9fa;
  color: #a07cba;
}
#word-game .status-banner strong {
  font-weight: 650;
}
#word-game .private-note {
  background: #f1e8fa;
  color: #9b75b7;
  border-color: #ebe0f5;
}
#word-game .private-note .label {
  color: #aa89c0;
}
#word-game .private-note p {
  font-size: 12px;
  line-height: 1.8;
}
#word-game .private-note .ui-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
#word-game .chat-card {
  padding-bottom: 12px;
  min-height: 125px;
}
#word-game .chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#word-game .message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#word-game .message .avatar {
  width: 30px;
  height: 30px;
}
#word-game .message-content {
  max-width: 82%;
  min-width: 0;
}
#word-game .message small {
  font-size: 9px;
  color: #b59eac;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0 4px;
}
#word-game .bubble {
  padding: 7px 10px;
  background: #f3eff1;
  border-radius: 4px 12px 12px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #8b778b;
  overflow-wrap: anywhere;
}
#word-game .message.mine {
  flex-direction: row-reverse;
}
#word-game .message.mine small {
  justify-content: flex-end;
}
#word-game .message.mine .bubble {
  background: #eee7f8;
  border-radius: 12px 4px 12px 12px;
  color: #9a7db0;
}
#word-game .empty-chat {
  color: #b9a3ae;
  font-size: 12px;
  line-height: 1.85;
  padding: 8px 1px;
}
#word-game .wait-card {
  text-align: center;
  padding: 25px 20px;
  background: #faf5fe;
  border-color: #f0e7f9;
}
#word-game .bot-mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #ece2f9;
  color: #a184be;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
#word-game .bot-mark .ui-icon {
  width: 33px;
  height: 33px;
  stroke-width: 1.5;
}
#word-game .wait-card h2 {
  font-size: 18px;
  color: #8b64a3;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}
#word-game .wait-card p {
  font-size: 11px;
  color: #b396c2;
  line-height: 1.8;
}
#word-game .wait-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 14px;
}
#word-game .wait-dots i {
  width: 5px;
  height: 5px;
  background: #c5abd9;
  border-radius: 50%;
  animation: thought 1.2s infinite alternate;
}
#word-game .wait-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
#word-game .wait-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
#word-game .play-dock {
  flex: none;
  z-index: 2;
  background: #fffdf9;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid #f7eadd;
  padding: 12px 15px max(14px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
  box-shadow: 0 -3px 17px #80523904;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 43%;
  overflow-y: auto;
}
#word-game .dock-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #ae93a2;
  font-size: 10px;
  line-height: 1.65;
}
#word-game .dock-hint .once {
  background: #fff0ed;
  color: #d88377;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 650;
  white-space: nowrap;
}
#word-game .dock-lock {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #f9f2eb;
  border-radius: 12px;
  color: #b295a2;
  font-size: 11px;
  line-height: 1.6;
}
#word-game .dock-lock .ui-icon {
  width: 15px;
  height: 15px;
  color: #c3a79d;
}
#word-game .dock-lock.success {
  background: #edf7ef;
  color: #89a690;
}
#word-game .dock-lock.success .ui-icon {
  color: #80a88b;
}
#word-game .dock-lock span {
  flex: 1;
}
#word-game .dock-lock button {
  background: none;
  color: #a17cc0;
  white-space: nowrap;
  font-size: 11px;
  padding: 0;
}
#word-game .composer {
  margin: 0;
}
#word-game .composer label {
  flex: 1;
}
#word-game .composer input,
#word-game .composer textarea {
  border: 1px solid #eadfd5;
  border-radius: 13px;
  background: #fffdf9;
  outline-offset: 1px;
}
#word-game .composer input::placeholder,
#word-game .composer textarea::placeholder {
  color: #c5acb9;
}
#word-game .composer .primary {
  flex: none;
}
#word-game .composer.guess input {
  border-color: #efc6bc;
}
#word-game .field-count {
  font-size: 9px;
  color: #b59aa8;
  text-align: right;
  margin-top: -4px;
  font-variant-numeric: tabular-nums;
}
#word-game .input-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 3px;
  background: #faf4ee;
}
#word-game .input-tabs button {
  flex: 1;
  height: 27px;
  color: #b39cac;
  background: none;
  border-radius: 8px;
  font-size: 11px;
}
#word-game .input-tabs button.on {
  color: #c38065;
  background: #fffdfa;
  box-shadow: 0 1px 5px #9a7b6408;
  font-weight: 650;
}
#word-game .picks {
  display: grid;
  gap: 7px;
}
#word-game .word-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7ec;
  border: 1px solid #f1dfc7 !important;
  border-radius: 14px;
  min-height: 51px;
  padding: 10px 14px;
  color: #ae794b;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
#word-game .word-pick .ui-icon {
  color: #d9ad7e;
  width: 16px;
  height: 16px;
}
#word-game .topic-pick {
  min-height: 52px;
  font-size: 13px;
  letter-spacing: 0;
  text-align: left;
  font-weight: 600;
  line-height: 1.6;
}
#word-game .refresh-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #baa1a9;
  font-size: 10px;
}
#word-game .refresh-line button {
  background: none;
  color: #b798ad;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
}
#word-game .refresh-line .ui-icon {
  width: 13px;
  height: 13px;
}
#word-game .prompt-card {
  background: linear-gradient(130deg, #fffaf1, #fff1e0);
  border-color: #fff7e8;
  padding: 17px 18px;
}
#word-game .prompt-card .label {
  color: #c69e7f;
}
#word-game .prompt {
  font-size: 20px;
  font-weight: 750;
  color: #8e695c;
  line-height: 1.7;
  letter-spacing: -0.02em;
}
#word-game .submission-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
#word-game .submission-progress span {
  font-size: 11px;
  color: #aa8d9f;
}
#word-game .anonymous-slots {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
#word-game .anonymous-slots i {
  height: 7px;
  width: 21px;
  border-radius: 99px;
  background: #eee4ee;
}
#word-game .anonymous-slots i.done {
  background: #c3a8db;
}
#word-game .entry-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#word-game .entry {
  width: 100%;
  display: block;
  position: relative;
  padding: 13px 14px;
  background: #fffdfa;
  border: 1px solid #eee3d7 !important;
  border-radius: 17px;
  text-align: left;
  box-shadow: 0 2px 8px #79513903;
  color: #8c7789;
  flex: none;
}
#word-game .entry.mine {
  border-style: dashed !important;
  border-color: #d6bfde !important;
  background: #fbf6fe;
}
#word-game .entry.blank {
  background: #faf4f0;
  color: #c0aaba;
  border-color: #eee3d8 !important;
  box-shadow: none;
}
#word-game .entry.selected {
  border-color: #df9687 !important;
  background: #fff3ed;
  box-shadow: 0 0 0 1px #e2a09130;
}
#word-game .entry.ai-entry {
  border-color: #c2a2d9 !important;
  background: #f6effd;
}
#word-game .entry.for-me {
  border-style: dashed !important;
  border-color: #ba99d2 !important;
  background: #f7f1fc;
}
#word-game .entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
#word-game .entry-number {
  font-size: 11px;
  color: #b48e9f;
  font-weight: 700;
  letter-spacing: 0.01em;
}
#word-game .entry.selected .entry-number {
  color: #c47764;
}
#word-game .entry.ai-entry .entry-number {
  color: #a278bf;
}
#word-game .entry-badge {
  font-size: 9px;
  background: #f3eafb;
  border-radius: 5px;
  padding: 1px 5px;
  color: #b093c1;
  font-weight: 600;
}
#word-game .entry-badge.selected {
  background: #ffe7dd;
  color: #d2947f;
}
#word-game .entry-text {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#word-game .entry-target-note {
  font-size: 10px;
  color: #c4aabc;
  margin-top: 6px;
}
#word-game .author-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f0e6ee;
  margin-top: 10px;
  padding-top: 9px;
}
#word-game .author-choice > label {
  color: #b698b0;
  font-size: 10px;
}
#word-game .author-choice select {
  flex: 1;
  min-width: 0;
  border: 1px solid #e7d9eb;
  padding: 6px 9px;
  background: #fffafe;
  color: #af8cbc;
  border-radius: 9px;
  font-size: 11px;
  min-height: 33px;
}
#word-game .judge-choice {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-top: 10px;
}
#word-game .judge-choice button {
  border: 1px solid #e8d9e9;
  padding: 5px 12px;
  background: #fdf7fb;
  color: #bda0b9;
  font-size: 11px;
  border-radius: 8px 0 0 8px;
}
#word-game .judge-choice button + button {
  border-radius: 0 8px 8px 0;
  margin-left: -1px;
}
#word-game .judge-choice button.on {
  background: #f1e5f8;
  border-color: #cfb1df;
  z-index: 1;
  color: #a073b8;
  font-weight: 700;
}
#word-game .entry-readonly-mark {
  display: flex;
  justify-content: flex-end;
  color: #b088c5;
  font-size: 10px;
  margin-top: 7px;
}
#word-game .dock-actions {
  display: flex;
  gap: 8px;
}
#word-game .dock-actions > * {
  flex: 1;
}
#word-game .dock-actions .primary {
  flex: 2;
}
#word-game .reveal-answer {
  text-align: center;
  background: linear-gradient(135deg, #fffaf1, #fff1df);
  padding: 19px 15px;
}
#word-game .reveal-answer strong {
  font-size: 34px;
  letter-spacing: 0.13em;
  color: #94684f;
  font-weight: 800;
  display: block;
}
#word-game .reveal-answer .status-banner {
  justify-content: center;
  margin-top: 12px;
  text-align: center;
  line-height: 1.7;
}
#word-game .result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #a3889e;
  table-layout: fixed;
}
#word-game .result-table th {
  font-size: 10px;
  color: #bd9faf;
  font-weight: 500;
  text-align: left;
  padding: 0 5px 8px;
}
#word-game .result-table td {
  vertical-align: top;
  border-top: 1px solid #f3e8e0;
  padding: 9px 5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#word-game .result-table small {
  display: block;
  color: #c1a6b4;
  font-size: 9px;
}
#word-game .result-table .hit {
  color: #80a28a;
  font-weight: 650;
}
#word-game .stats-table {
  text-align: center;
}
#word-game .stats-table th {
  text-align: center;
}
#word-game .stats-table th:first-child,
#word-game .stats-table td:first-child {
  text-align: left;
}
#word-game .score-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 7px 0 10px;
}
#word-game .score-card > div {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 3px;
}
#word-game .score-card small {
  color: #b494a6;
  font-size: 10px;
}
#word-game .score-card strong {
  font-size: 29px;
  color: #bb836d;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#word-game .score-card > div.ai strong {
  color: #a080be;
}
#word-game .score-card > span {
  font-size: 18px;
  color: #d2b9c4;
}
#word-game .deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 11px;
  color: #b08aa4;
  line-height: 1.9;
}
#word-game .final-hero {
  text-align: center;
  padding: 14px 16px;
  background: linear-gradient(140deg, #fff3df, #ffe4c8);
}
#word-game .final-hero.ai {
  background: linear-gradient(140deg, #f7eafa, #ece2fa);
}
#word-game .final-medal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #bc8958;
  background: #fff7e9;
  border: 1px solid #f5d9b4;
  border-radius: 15px;
  margin: auto auto 6px;
  transform: rotate(-7deg);
}
#word-game .final-medal .ui-icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.5;
}
#word-game .final-hero.ai .final-medal {
  color: #b495cf;
  border-color: #e1c9ed;
  background: #fdf7ff;
}
#word-game .final-hero h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
  color: #a67150;
  font-weight: 800;
}
#word-game .final-hero.ai h2 {
  color: #a079b7;
}
#word-game .final-hero p {
  font-size: 11px;
  color: #c29783;
  margin-top: 6px;
}
#word-game .final-hero.ai p {
  color: #bea0cf;
}
#word-game .ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#word-game .rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf4ef;
  border-radius: 12px;
  padding: 8px 10px;
  color: #ad889f;
  font-size: 12px;
}
#word-game .rank-row > span:first-child {
  width: 17px;
  text-align: center;
  font-size: 11px;
  color: #c2a1ad;
}
#word-game .rank-row .avatar {
  width: 28px;
  height: 28px;
}
#word-game .rank-row b {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}
#word-game .rank-row strong {
  font-size: 17px;
  color: #bc8bb0;
  font-variant-numeric: tabular-nums;
}
#word-game .question-record {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 9px 0;
  color: #ae8b9f;
  border-top: 1px solid #f3e6dc;
}
#word-game .question-record:first-of-type {
  border-top: 0;
}
#word-game .question-record span:first-child {
  color: #cbb0b9;
  font-size: 10px;
}
#word-game .question-record strong {
  flex: 1;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #a77e8b;
}
#word-game .question-record em {
  font-style: normal;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10px;
  background: #f1e7fa;
  color: #b396c4;
}
#word-game .question-record em.human {
  background: #eef6ec;
  color: #90ab95;
}
#word-game .overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  background: #47333b38;
  backdrop-filter: blur(2px);
}
#word-game .dialog {
  width: 100%;
  border-radius: 23px 23px 0 0;
  padding: 22px 20px 24px;
  background: #fffaf3;
  box-shadow: 0 -7px 25px #56403315;
}
#word-game .dialog h2 {
  font-size: 20px;
  color: #957389;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
#word-game .dialog > p {
  font-size: 12px;
  color: #b49aa7;
  line-height: 1.9;
  margin-bottom: 18px;
}
#word-game .dialog .dock-actions {
  margin-top: 15px;
}
#word-game .toast {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  max-width: 88%;
  background: #5f4b5b;
  color: #fff6ed;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 3px 12px #68465b18;
  pointer-events: none;
}
#word-game .room-preview-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 4px;
}
#word-game .room-preview-member {
  text-align: center;
  font-size: 11px;
  color: #a5899b;
}
#word-game .room-preview-member .avatar {
  width: 49px;
  height: 49px;
  border: 3px solid #ffe3c4;
  margin-bottom: 6px;
}
#word-game .room-preview-member small {
  display: block;
  color: #c2a8b5;
  margin-top: 3px;
  font-size: 9px;
}
#word-game .play-dock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#word-game .play-dock > .primary {
  width: 100%;
  flex: none;
}
#word-game .result-table span {
  display: inline-block;
}
#word-game .dock-hint {
  flex-wrap: wrap;
}
#word-game .dialog {
  max-height: 85%;
}
#word-game .entry-text,
#word-game .bubble {
  color: #756276;
}
#word-game .entry.blank .entry-text {
  color: #b3a0ae;
}
#word-game .private-note p {
  color: #8c69a6;
}
@keyframes thought {
  to {
    opacity: 0.3;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #word-game .wait-dots i {
    animation: none;
  }
}
@container (max-width:365px) {
  #word-game .app-header {
    padding: 12px 11px 9px;
    gap: 6px;
  }
  #word-game .app-heading h1 {
    font-size: 18px;
  }
  #word-game .header-score {
    padding: 5px 7px;
  }
  #word-game .phase-panel {
    margin-left: 9px;
    margin-right: 9px;
    padding: 10px 11px;
  }
  #word-game .round {
    font-size: 10px;
  }
  #word-game .phase-chip {
    font-size: 10px;
    padding: 3px 6px;
  }
  #word-game .timer {
    font-size: 18px;
  }
  #word-game .play-body {
    padding-left: 9px;
    padding-right: 9px;
  }
  #word-game .paper {
    padding: 12px;
  }
  #word-game .role-row {
    padding: 9px 15px 7px;
  }
  #word-game .mini-players .avatar {
    width: 23px;
    height: 23px;
  }
  #word-game .play-dock {
    padding-left: 12px;
    padding-right: 12px;
  }
  #word-game .entry {
    padding: 12px;
  }
  #word-game .prompt {
    font-size: 18px;
  }
  #word-game .phase-meta {
    font-size: 9px;
  }
  #word-game .segments i {
    width: 13px;
  }
  #word-game .app-heading p {
    font-size: 9px;
  }
  #word-game .app-header .icon-button {
    width: 25px;
    height: 27px;
  }
}

#word-game.guess-reading .play-body {
  overflow-y: auto;
  overflow-x: hidden;
  gap: 8px;
  padding-bottom: 10px;
}
#word-game .guess-mini-notice {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: none;
  padding: 2px 5px 3px;
  font-size: 10px;
  color: #9b8395;
  line-height: 1.5;
}
#word-game .guess-mini-notice .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--phase);
}
#word-game .guess-mini-notice.purple {
  color: #9d7cb5;
}
#word-game .guess-mini-notice.green {
  color: #6d9a86;
}
#word-game .answer-deck {
  min-height: 360px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#word-game .answer-card {
  min-height: 310px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #fffdfa;
  border: 1px solid #eddfd1;
  border-radius: 23px;
  box-shadow: 0 5px 18px #79513906;
}
#word-game .answer-card.mine {
  border-style: dashed;
  border-color: #cdb7dd;
  background: #fffaff;
}
#word-game .answer-card.selected {
  border-color: #e8a17e;
  box-shadow:
    0 0 0 1px #f6d9c5,
    0 5px 18px #79513906;
}
#word-game .answer-card.for-me {
  border-style: dashed;
  border-color: #ba9bcf;
  background: #fcf7ff;
}
#word-game .answer-card.ai-entry {
  border-color: #c1a2d8;
  background: #fbf6ff;
}
#word-game .answer-card.blank {
  background: #faf5ef;
  border-color: #e6d9cf;
}
#word-game .answer-question {
  flex: none;
  padding: 14px 17px 11px;
  background: #fff6e8;
  border-bottom: 1px solid #f2e6d8;
}
#word-game .answer-question > span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #bb997c;
  margin-bottom: 3px;
}
#word-game .answer-question > p {
  font-size: 12px;
  line-height: 1.7;
  color: #a07964;
  font-weight: 550;
  overflow-wrap: anywhere;
}
#word-game .answer-card.ai-entry .answer-question {
  background: #f4ebfb;
  border-bottom-color: #eadcf3;
}
#word-game .answer-card.ai-entry .answer-question > p {
  color: #9875ad;
}
#word-game .answer-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 14px 17px 7px;
  min-height: 43px;
}
#word-game .answer-identity {
  font-size: 11px;
  color: #a48597;
  white-space: nowrap;
}
#word-game .answer-identity b {
  font-size: 18px;
  color: #806276;
  font-weight: 750;
  margin-left: 2px;
}
#word-game .answer-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f7eee6;
  font-size: 9px;
  color: #b193a0;
  line-height: 1.5;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#word-game .answer-card.mine .answer-badge,
#word-game .answer-card.for-me .answer-badge {
  background: #f0e5f8;
  color: #a887bb;
}
#word-game .answer-card.ai-entry .answer-badge {
  background: #ecdff8;
  color: #9870b2;
}
#word-game .answer-page {
  font-size: 10px;
  color: #bea3b0;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  white-space: nowrap;
}
#word-game .answer-scroll {
  flex: 1 0 auto;
  min-height: 128px;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 18px 17px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ddcbbd transparent;
  touch-action: pan-y;
  outline-offset: -4px;
}
#word-game .answer-prose {
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #695266;
  letter-spacing: 0.01em;
}
#word-game .answer-card.blank .answer-prose {
  color: #b5a0ad;
}
#word-game .answer-empty-note {
  font-size: 12px;
  line-height: 1.9;
  color: #bda6b1;
  margin-top: 14px !important;
}
#word-game .answer-card-footer {
  flex: none;
  padding: 10px 16px 12px;
  border-top: 1px solid #f0e5dd;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#word-game .answer-card.ai-entry .answer-card-footer {
  background: #fcf8ff;
  border-color: #eee0f5;
}
#word-game .answer-card-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #ad91a3;
  line-height: 1.6;
}
#word-game .answer-card-note small {
  white-space: nowrap;
  color: #c0a6b2;
  font-size: 9px;
}
#word-game .choose-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  min-height: 37px;
  background: #fff1e5;
  color: #c58b6d;
  font-size: 12px;
  font-weight: 650;
  width: 100%;
}
#word-game .choose-answer .ui-icon {
  width: 14px;
  height: 14px;
}
#word-game .choose-answer.on {
  background: #f9dfcc;
  color: #b97851;
}
#word-game .answer-card-footer .author-choice {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 10px;
}
#word-game .answer-card-footer .author-choice > label {
  font-size: 11px;
  color: #a98ba4;
}
#word-game .answer-card-footer .author-choice select {
  min-height: 36px;
  font-size: 12px;
}
#word-game .answer-card-footer .judge-choice {
  margin: 0;
  justify-content: stretch;
}
#word-game .answer-card-footer .judge-choice button {
  flex: 1;
  min-height: 36px;
  font-size: 12px;
}
#word-game .answer-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f3edf7;
  color: #a184b5;
  border-radius: 9px;
  min-height: 34px;
  font-size: 11px;
}
#word-game .answer-locked .ui-icon {
  width: 14px;
  height: 14px;
}
#word-game .answer-revealed-author {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #94749f;
}
#word-game .answer-revealed-author .avatar {
  width: 23px;
  height: 23px;
}
#word-game .answer-revealed-author .ui-icon {
  width: 21px;
  height: 21px;
}
#word-game .answer-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: none;
  min-height: 37px;
  padding: 1px 0;
}
#word-game .card-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffaf3;
  color: #b994a6;
  border: 1px solid #eddfd3;
  font-size: 12px;
  flex: none;
}
#word-game .card-arrow .ui-icon {
  width: 14px;
  height: 14px;
}
#word-game .card-arrow.next .ui-icon {
  transform: rotate(180deg);
}
#word-game .card-arrow:disabled {
  opacity: 0.35;
}
#word-game .answer-numbers {
  display: flex;
  gap: 6px;
  justify-content: center;
}
#word-game .answer-numbers button {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #ecdfd4;
  color: #bca0af;
  background: #fffaf3;
  font-size: 11px;
  font-weight: 650;
  position: relative;
}
#word-game .answer-numbers button.on {
  background: #fff0df;
  border-color: #ebb78f;
  color: #ba7f4e;
}
#word-game .answer-numbers button.chosen {
  box-shadow: 0 0 0 1px #e7a282;
  border-color: #e7a282;
}
#word-game .answer-numbers button.marked::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  background: #ac8dc1;
  border-radius: 50%;
}
#word-game .answer-stage-card {
  flex: 1;
}
#word-game .answer-stage-message {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 23px 25px;
  overflow-y: auto;
}
#word-game .answer-stage-message h2 {
  font-size: 18px;
  color: #987997;
  letter-spacing: -0.02em;
}
#word-game .answer-stage-message p {
  color: #af95ab;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 8px;
}
#word-game .answer-write-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
#word-game .answer-editor {
  flex: 1;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  background: none;
  outline-offset: -5px;
  padding: 20px 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #695266;
  overflow-y: auto;
  border-radius: 0;
}
#word-game .answer-editor::placeholder {
  color: #c9b1c0;
}
#word-game .answer-write-footer {
  flex: none;
  border-top: 1px solid #f0e5dd;
  padding: 12px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}
#word-game .answer-write-footer > span {
  font-size: 10px;
  color: #bca2af;
  font-variant-numeric: tabular-nums;
}
#word-game .answer-write-footer .primary {
  margin-left: auto;
  min-height: 40px;
  font-size: 13px;
  min-width: 137px;
  padding: 9px 13px;
}
#word-game .answer-static-footer {
  flex: none;
  padding: 12px 18px;
  border-top: 1px solid #f0e5dd;
  font-size: 11px;
  color: #aa8bb0;
}
#word-game .guess-dock {
  padding-top: 10px;
  gap: 8px;
}
#word-game .guess-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}
#word-game .guess-tools {
  justify-content: flex-end;
  min-height: 22px;
}
#word-game .inline-chat {
  height: 150px;
  max-height: none;
  flex: none;
  min-height: 125px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px 9px;
  background: #fffdfa;
  border: 1px solid #efe4d8;
  border-radius: 18px;
  overflow: hidden;
}
#word-game .inline-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  line-height: 1.5;
}
#word-game .inline-chat-heading > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  color: #8d7086;
}
#word-game .inline-chat-heading .ui-icon {
  width: 14px;
  height: 14px;
  color: #bb957e;
}
#word-game .inline-chat-heading small {
  font-size: 9px;
  color: #b59eac;
}
#word-game .inline-chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e4d4cb transparent;
}
#word-game .inline-chat .chat-list {
  gap: 7px;
}
#word-game .inline-chat .message {
  gap: 6px;
}
#word-game .inline-chat .message .avatar {
  width: 25px;
  height: 25px;
}
#word-game .inline-chat .message small {
  font-size: 8px;
  margin: 0 0 2px;
}
#word-game .inline-chat .bubble {
  font-size: 11px;
  padding: 5px 8px;
  line-height: 1.6;
}
#word-game .inline-chat-composer {
  flex: none;
}
#word-game .inline-chat-composer input {
  border-radius: 10px;
}
#word-game .inline-chat-composer .primary {
  border-radius: 10px;
}
#word-game .inline-chat-composer .primary .ui-icon {
  width: 13px;
  height: 13px;
}
#word-game .guess-summary-button {
  background: none;
  color: #b391a5;
  padding: 6px 0;
  font-size: 11px;
}
#word-game .guess-read-tip {
  font-size: 9px;
  color: #bca3b0;
  text-align: right;
}
#word-game .judgment-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#word-game .judgment-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  border-radius: 12px;
  padding: 9px 11px;
  background: #f8f0f8;
  text-align: left;
  color: #a78caf;
  width: 100%;
  font-size: 11px;
}
#word-game .judgment-summary-row b {
  font-size: 13px;
  white-space: nowrap;
}
#word-game .judgment-summary-row span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b5a0b1;
  font-size: 10px;
}
#word-game .judgment-summary-row strong {
  font-weight: 600;
  white-space: nowrap;
}
#word-game .judgment-summary-row .ui-icon {
  width: 12px;
  height: 12px;
  color: #c3aabb;
}
#word-game .guess-result-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@container (max-width:365px) {
  #word-game .answer-question {
    padding: 11px 14px 9px;
  }
  #word-game .answer-card-heading {
    padding: 12px 14px 6px;
    gap: 6px;
  }
  #word-game .answer-scroll {
    padding: 3px 14px 14px;
  }
  #word-game .answer-prose {
    font-size: 15px;
    line-height: 1.9;
  }
  #word-game .answer-card-footer {
    padding: 9px 13px 10px;
  }
  #word-game .answer-navigation {
    gap: 10px;
  }
  #word-game .answer-numbers {
    gap: 5px;
  }
  #word-game .answer-numbers button {
    width: 26px;
    height: 26px;
  }
  #word-game .answer-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  #word-game .answer-page {
    font-size: 9px;
  }
  #word-game .answer-card-note {
    font-size: 9px;
  }
  #word-game .guess-mini-notice {
    font-size: 9px;
    gap: 4px;
  }
  #word-game .answer-editor {
    font-size: 15px;
    padding: 16px 14px;
  }
  #word-game .guess-read-tip {
    font-size: 8px;
  }
  #word-game .inline-chat {
    height: 150px;
    min-height: 123px;
  }
}

/* Production word-game shell; scoped to avoid altering room/auth/hunter. */
body[data-screen='word'] {
  --bg: #fcf7ee;
  --card: #fffdf9;
  --fg: #332c32;
  --dim: #928790;
  --soft: #f3eee7;
  --line: #eee4d8;
  color-scheme: light;
  background: #efe6d9;
  padding: 0;
}
body[data-screen='word'] > .bar {
  display: none;
}
body[data-screen='word'] > #app {
  padding: 0;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}
#word-game {
  flex: 1;
  min-height: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom));
}
#word-game button {
  height: auto;
  white-space: normal;
}
#word-game form {
  gap: 0;
  margin: 0;
}
#word-game form > button {
  margin: 0;
}
#word-game input,
#word-game select {
  height: auto;
}
#word-game .overlay {
  position: fixed;
  inset: 0;
  max-width: 560px;
  margin: auto;
}
#word-game :focus-visible {
  outline: 3px solid #aa78df;
  outline-offset: 2px;
}
#word-game .app-heading {
  min-width: 0;
}
#word-game .app-heading p {
  max-width: 170px;
}
#word-game .inline-chat-thread {
  overflow-anchor: none;
}

#word-game .word-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: 11px;
  color: #a76428;
  background: #fff1df;
}
#word-game .word-network:empty {
  display: none;
}

/* Short viewports keep the card usable and place chat in the same scroll area. */
@media (max-height: 700px) {
  #word-game.guess-reading .play-body {
    overflow-y: auto;
  }
  #word-game .answer-deck {
    flex: none;
    min-height: 360px;
  }
  #word-game .answer-deck .answer-card {
    min-height: 310px;
  }
  #word-game .answer-stage-card {
    flex: none;
    min-height: 305px;
  }
  #word-game .inline-chat {
    height: 140px;
    max-height: none;
    min-height: 125px;
  }
}

/* CSP-safe phase themes and result column sizing (no inline style attributes). */
#word-game.phase-orange {
  --phase: var(--orange);
  --phase-soft: var(--orange-soft);
}
#word-game.phase-blue {
  --phase: var(--blue);
  --phase-soft: var(--blue-soft);
}
#word-game.phase-red {
  --phase: var(--red);
  --phase-soft: var(--red-soft);
}
#word-game.phase-green {
  --phase: var(--green);
  --phase-soft: var(--green-soft);
}
#word-game.phase-purple {
  --phase: var(--purple);
  --phase-soft: var(--purple-soft);
}
#word-game .result-table .column-slot {
  width: 18%;
}
#word-game .result-table .column-quarter {
  width: 25%;
}
#word-game .result-note {
  margin-top: 9px;
}

/* Layout review: preserve readable content, let short screens scroll naturally. */
#word-game.guess-reading .app-header {
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 8px;
}
#word-game.guess-reading .phase-panel {
  padding-top: 8px;
  padding-bottom: 7px;
}
#word-game.guess-reading .role-row {
  padding: 7px 16px;
}
#word-game .role-label {
  flex: 1;
  min-width: 0;
}
#word-game .role-label > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#word-game .role-label strong,
#word-game .mini-players {
  flex: none;
}
#word-game .app-heading p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#word-game .rank-row b {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#word-game .room-preview-member > div {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#word-game .answer-revealed-author {
  min-width: 0;
  overflow-wrap: anywhere;
}
#word-game .answer-editor {
  min-height: 128px;
}
#word-game .answer-stage-card {
  min-height: 310px;
  flex: 1 0 auto;
}
#word-game .answer-write-form {
  flex: 1 0 auto;
}
#word-game.is-final .phase-panel,
#word-game.is-final .role-row {
  display: none;
}
#word-game .dialog {
  max-height: 90%;
  overflow-y: auto;
}

#word-game .overlay .dialog {
  padding-bottom: calc(24px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
}

.ai-retry-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}
.ai-retry-row:empty {
  display: none;
}
.ai-retry-row > button {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  white-space: nowrap;
}
/* focus-ui.css — canonical section */
/* Design candidate only. Content, support and action have distinct emphasis. */
#word-game.focus-layout {
  --focus: #8064b0;
  --focus-soft: #f5f0fb;
  --focus-line: #e7dff0;
  --muted: #807681;
  background: #faf6f0;
  padding: 0 env(safe-area-inset-right) var(--app-safe-bottom, env(safe-area-inset-bottom))
    env(safe-area-inset-left);
}
#word-game.focus-layout .focus-header {
  min-height: calc(50px + env(safe-area-inset-top));
  max-height: none;
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  gap: 7px;
  background: none;
}
#word-game.focus-layout .focus-header .icon-button {
  width: 36px;
  height: 36px;
}
#word-game.focus-layout .focus-header .game-mark {
  width: 27px;
  height: 27px;
  background: var(--focus-soft);
  color: var(--focus);
  border-radius: 9px;
}
#word-game.focus-layout .focus-header .app-heading h1 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
#word-game.focus-layout .focus-header .header-score {
  background: none;
  padding: 0 2px;
  gap: 4px;
  font-size: 10px;
  color: #867b84;
}
#word-game.focus-layout .focus-header .header-score b,
#word-game.focus-layout .focus-header .header-score strong {
  font-size: 14px;
}
#word-game.focus-layout .focus-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 9px;
  flex: none;
  min-height: 34px;
}
#word-game.focus-layout .focus-round {
  font-size: 11px;
  color: #8c7a85;
  white-space: nowrap;
}
#word-game.focus-layout .focus-status .phase-chip {
  margin-left: 0;
  padding: 3px 7px;
  font-size: 11px;
}
#word-game.focus-layout .focus-role {
  font-size: 10px;
  color: #8c7a85;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#word-game.focus-layout .focus-status .timer {
  margin-left: auto;
  flex: none;
  font-size: 17px;
  color: #655965;
}
#word-game.focus-layout .timer[data-urgent='true'] {
  color: #c75d4e;
}
#word-game.focus-layout:not(.is-final) .play-body {
  overflow: hidden;
  gap: 9px;
  padding: 0 12px 9px;
  min-height: 0;
}
#word-game.focus-layout .focus-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--focus-line);
  border-top: 3px solid var(--focus);
  border-radius: 20px;
  background: #fffefa;
  box-shadow: 0 6px 20px #71563e05;
  overflow: hidden;
}
#word-game.focus-layout .focus-main-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex: none;
  margin-bottom: 12px;
}
#word-game.focus-layout .focus-eyebrow {
  display: none;
}
#word-game.focus-layout .focus-main-heading h2 {
  font-size: 20px;
  color: #483c47;
  font-weight: 750;
  letter-spacing: -0.025em;
}
#word-game.focus-layout .focus-main-heading > span {
  max-width: 53%;
  font-size: 10px;
  color: #927e86;
  text-align: right;
}
#word-game.focus-layout .focus-main-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e8ded4 transparent;
}
#word-game.focus-layout .focus-main-scroll > .paper {
  margin-bottom: 10px;
}
#word-game.focus-layout .focus-private {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6f1e9;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 10px;
}
#word-game.focus-layout .focus-private > .ui-icon {
  color: var(--focus);
  width: 17px;
  height: 17px;
}
#word-game.focus-layout .focus-private > div {
  flex: none;
}
#word-game.focus-layout .focus-private small {
  display: block;
  font-size: 10px;
  color: #99888a;
}
#word-game.focus-layout .focus-private strong {
  display: block;
  font-size: 25px;
  color: #59454f;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
#word-game.focus-layout .focus-private p {
  font-size: 11px;
  color: #8d7d87;
  line-height: 1.6;
  margin-left: auto;
  max-width: 50%;
}
#word-game.focus-layout .focus-ai-note {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #847289;
  font-size: 11px;
  margin-bottom: 11px;
}
#word-game.focus-layout .focus-ai-note .ui-icon {
  width: 15px;
  height: 15px;
}
#word-game.focus-layout .focus-record {
  margin: 9px 0;
  font-size: 11px;
  color: #9a838f;
}
#word-game.focus-layout .focus-record summary {
  padding: 5px 0;
  cursor: pointer;
}
#word-game.focus-layout .focus-record .paper {
  padding: 9px 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#word-game.focus-layout .focus-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-height: 150px;
  height: 100%;
  padding: 12px;
}
#word-game.focus-layout .focus-empty > span {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  background: var(--focus-soft);
  color: var(--focus);
  border-radius: 18px;
}
#word-game.focus-layout .focus-empty > span .ui-icon {
  width: 29px;
  height: 29px;
}
#word-game.focus-layout .focus-empty h2 {
  font-size: 20px;
  color: #615060;
}
#word-game.focus-layout .focus-empty p {
  font-size: 12px;
  line-height: 1.75;
  color: #96828f;
}
#word-game.focus-layout .wait-card {
  background: var(--focus-soft);
  padding: 19px 14px;
  margin-bottom: 10px;
  border: 0;
}
#word-game.focus-layout .wait-card .bot-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 9px;
}
#word-game.focus-layout .wait-card .bot-mark .ui-icon {
  width: 25px;
  height: 25px;
}
#word-game.focus-layout .inline-chat {
  height: clamp(110px, calc(var(--app-height, 100dvh) * 0.21), 150px);
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  border: 1px solid #ebe3da;
  border-radius: 16px;
  padding: 8px 10px;
  background: #fcfaf7;
  gap: 5px;
  overflow: hidden;
}
#word-game.focus-layout .inline-chat-heading > span {
  font-size: 12px;
  color: #796672;
}
#word-game.focus-layout .inline-chat-heading small {
  font-size: 10px;
  color: #a09098;
}
#word-game.focus-layout .inline-chat .message small {
  font-size: 10px;
  color: #a08b97;
}
#word-game.focus-layout .inline-chat .bubble {
  font-size: 12px;
  line-height: 1.5;
  color: #715e70;
  background: #f0eaf0;
}
#word-game.focus-layout .inline-chat .message.mine .bubble {
  background: #ede6f5;
  color: #816696;
}
#word-game.focus-layout .inline-chat-composer .composer input {
  background: #fffefb;
  border: 1px solid #e9dfd6;
  border-radius: 11px;
}
#word-game.focus-layout .inline-chat-composer .primary {
  border-radius: 11px;
  box-shadow: none;
}
#word-game.focus-layout .focus-chat-locked {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 5px 2px;
  color: #a08c95;
}
#word-game.focus-layout .focus-chat-locked .ui-icon {
  width: 13px;
  height: 13px;
}
#word-game.focus-layout .play-dock {
  padding: 9px 13px 10px;
  gap: 5px;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  background: #fffdfa;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid #ece1d5;
}
#word-game.focus-layout .play-dock > .primary,
#word-game.focus-layout .dock-actions .primary {
  height: 43px;
  min-height: 43px;
}
#word-game.focus-layout .dock-lock {
  padding: 8px 10px;
  font-size: 11px;
}
#word-game.focus-layout .field-count {
  margin-top: 0;
  font-size: 10px;
}
#word-game.focus-layout .guess-mini-notice {
  font-size: 11px;
  padding: 0 3px;
  flex: none;
}
#word-game.focus-layout .answer-deck {
  flex: 1;
  min-height: 0;
  gap: 5px;
}
#word-game.focus-layout .answer-card,
#word-game.focus-layout .answer-stage-card {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--focus-line);
  border-top: 3px solid var(--focus);
  border-radius: 20px;
  background: #fffefa;
}
#word-game.focus-layout .answer-question {
  padding: 9px 14px 8px;
  background: var(--focus-soft);
  border-bottom: 1px solid var(--focus-line);
}
#word-game.focus-layout .answer-question > span {
  font-size: 10px;
  color: #a18ba6;
  margin-bottom: 2px;
}
#word-game.focus-layout .answer-question > p {
  font-size: 12px;
  line-height: 1.55;
  color: #8b719b;
  font-weight: 500;
}
#word-game.focus-layout .answer-card-heading {
  min-height: 34px;
  padding: 7px 14px 3px;
  gap: 6px;
}
#word-game.focus-layout .answer-identity {
  font-size: 11px;
  color: #9b829a;
}
#word-game.focus-layout .answer-identity b {
  font-size: 18px;
  color: #705677;
}
#word-game.focus-layout .answer-scroll {
  min-height: 0;
  max-height: none;
  flex: 1;
  overflow-y: auto;
  padding: 5px 15px 10px;
}
#word-game.focus-layout .answer-prose {
  font-size: 18px;
  line-height: 1.75;
  color: #544455;
  letter-spacing: 0;
}
#word-game.focus-layout .answer-card-footer {
  padding: 7px 12px 8px;
  gap: 4px;
  background: #fffefa;
}
#word-game.focus-layout .answer-card-note {
  font-size: 10px;
  line-height: 1.4;
}
#word-game.focus-layout .choose-answer {
  height: 37px;
  min-height: 37px;
  background: var(--focus-soft);
  color: var(--focus);
}
#word-game.focus-layout .choose-answer.on {
  background: #eadef3;
  color: #795491;
}
#word-game.focus-layout .answer-navigation {
  min-height: 32px;
  padding: 0;
  gap: 10px;
}
#word-game.focus-layout .answer-numbers {
  gap: 5px;
}
#word-game.focus-layout .answer-numbers button {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}
#word-game.focus-layout .answer-numbers button.on {
  background: #efe5f8;
  border-color: #c5a7dd;
  color: #78508e;
}
#word-game.focus-layout .answer-write-form {
  min-height: 0;
  flex: 1;
}
#word-game.focus-layout .answer-editor {
  min-height: 0;
  flex: 1;
  padding: 11px 15px;
  font-size: 18px;
  line-height: 1.75;
}
#word-game.focus-layout .answer-write-footer {
  padding: 8px 12px;
  gap: 8px;
}
#word-game.focus-layout .answer-write-footer .primary {
  min-height: 38px;
  height: 38px;
  font-size: 12px;
}
#word-game.focus-layout .answer-stage-message {
  padding: 12px 15px;
  min-height: 0;
  overflow-y: auto;
  justify-content: safe center;
}
#word-game.focus-layout .answer-stage-message h2 {
  font-size: 20px;
  color: #775581;
}
#word-game.focus-layout .answer-stage-message .bot-mark {
  width: 47px;
  height: 47px;
  border-radius: 16px;
  margin-bottom: 10px;
}
#word-game.focus-layout .focus-pick {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}
#word-game.focus-layout .word-pick {
  min-height: 45px;
  height: auto;
  padding: 9px 12px;
}
#word-game.focus-layout .picks {
  gap: 7px;
  margin: 9px 0;
}
#word-game.focus-layout .refresh-line {
  margin-top: 8px;
  font-size: 10px;
}
#word-game.focus-layout .is-final .play-body,
#word-game.focus-layout.is-final .play-body {
  overflow-y: auto;
}
#word-game.focus-layout .overlay .dialog {
  max-height: 92%;
  overflow-y: auto;
}

.hunter-screen.focus-hunter {
  background: #faf6f0;
  padding: 0 env(safe-area-inset-right) var(--app-safe-bottom, env(safe-area-inset-bottom))
    env(safe-area-inset-left);
}
.focus-hunter .hunter-bar {
  min-height: calc(50px + env(safe-area-inset-top));
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  gap: 7px;
  background: none;
}
.focus-hunter .hunter-bar h1 {
  font-size: 18px;
}
.focus-hunter .hunter-bar h1 > .ui-icon {
  width: 24px;
  height: 24px;
}
.focus-hunter .hunter-help,
.focus-hunter .hunter-status {
  display: none;
}
.focus-hunter .hunt-phase {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 14px 9px;
  margin: 0;
  min-height: 34px;
}
.focus-hunter .hunt-phase > div {
  margin: 0;
  justify-content: flex-start;
  gap: 8px;
}
.focus-hunter .hunt-phase progress {
  display: none;
}
.focus-hunter .hunt-round,
.focus-hunter .hunt-round b {
  font-size: 11px;
  font-weight: 550;
  color: #8b7986;
}
.focus-hunter .phase-chip {
  padding: 3px 7px;
  font-size: 11px;
  color: #9b794f;
  background: #fff0dd;
}
.focus-hunter .hunt-clock {
  margin-left: auto;
  font-size: 17px;
  color: #655865;
}
.focus-hunter .hunt-clock .ui-icon {
  display: none;
}
.focus-hunter .hunt-clock:has([data-urgent='true']) {
  color: #c65f4b;
}
.focus-hunter .focus-confirm-progress {
  font-size: 10px;
  color: #9d8795;
  white-space: nowrap;
  height: 29px;
  min-height: 29px;
  padding: 0 3px;
  background: none;
  border-radius: 7px;
  font-weight: 500;
}
.focus-hunter .hunt-body {
  padding: 0 12px 10px;
  gap: 8px;
}
.focus-hunter:not(.hunter-ended):not(.hunter-complete):not(.hunter-choosing) .hunt-body {
  overflow: hidden;
}
.focus-hunter .hunt-chat {
  border-radius: 20px;
  border: 1px solid #ebe0d4;
  background: #fffefa;
  padding: 13px 12px 10px;
  gap: 9px;
}
.focus-hunter .focus-hunt-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
}
.focus-hunter .focus-hunt-chat-heading h2 {
  font-size: 21px;
  color: #4c3c47;
  letter-spacing: -0.03em;
}
.focus-hunter .focus-hunt-chat-heading small {
  font-size: 10px;
  color: #a18c97;
}
.focus-hunter .locations-overview {
  padding: 0;
  background: none;
  border-radius: 0;
  flex: none;
}
.focus-hunter .locations-overview h2 {
  display: none;
}
.focus-hunter .locations-overview .location-mini img {
  height: 41px;
}
.focus-hunter .locations-overview .location-mini > span {
  font-size: 10px;
  color: #87717b;
  background: #faf6ed;
  padding: 2px;
}
.focus-hunter .hunt-feed {
  gap: 10px;
  padding: 4px 1px 5px;
}
.focus-hunter .hunt-bubble {
  font-size: 14px;
  line-height: 1.6;
  background: #f2ecef;
  color: #69566a;
  padding: 9px 11px;
}
.focus-hunter .hunt-message.mine .hunt-bubble {
  background: #fff0e2;
  color: #8a6556;
}
.focus-hunter .hunt-composer {
  border-top: 1px solid #f0e6dd;
  padding-top: 9px;
  flex: none;
}
.focus-hunter .hunt-composer > span {
  display: none;
}
.focus-hunter .hunt-composer input {
  border: 1px solid #e9dfd6;
  border-radius: 12px;
  background: #fffdfa;
}
.focus-hunter .hunt-composer button {
  border-radius: 12px;
}
.focus-hunter .hunt-dock:empty {
  display: none;
}
.focus-hunter .hunt-dock {
  padding: 8px 13px 10px;
  gap: 6px;
  flex: none;
}
.focus-hunter .choose-panel {
  flex: 1 0 auto;
  min-height: min-content;
  display: flex;
  flex-direction: column;
  padding: 13px;
  background: #fffefa;
  border-radius: 20px;
  border-top: 3px solid #ed9a52;
}
.focus-hunter .hunt-card-heading {
  flex: none;
  margin-bottom: 12px;
}
.focus-hunter .hunt-card-heading .heading-icon {
  display: none;
}
.focus-hunter .hunt-card-heading h2 {
  font-size: 21px;
  color: #4c3c47;
}
.focus-hunter .hunt-card-heading p {
  font-size: 11px;
}
.focus-hunter .hunt-locations {
  flex: 1 0 177px;
  min-height: 177px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
  gap: 9px;
}
.focus-hunter .hunt-location {
  min-height: 0;
  height: auto;
  padding: 5px 5px 0;
  overflow: hidden;
  box-shadow: none;
}
.focus-hunter .hunt-location > img {
  min-height: 44px;
  flex: 1 1 44px;
  height: 44px;
  max-height: 170px;
  object-fit: cover;
}
.focus-hunter .hunt-location > span {
  flex: none;
  min-height: 32px;
  font-size: 12px;
}
.focus-hunter .selection-summary {
  flex: none;
  margin-top: 0;
}
.focus-hunter .hunt-wait {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 18px;
}
.focus-hunter .hunt-wait .wait-bot {
  width: 60px;
  height: 60px;
  margin: 0 0 14px;
}
.focus-hunter .hunt-wait h2 {
  font-size: 23px;
}
.focus-hunter .hunt-wait .selection-summary {
  width: 100%;
}
.focus-hunter .round-record {
  font-size: 12px;
}
.focus-hunter .round-record summary {
  cursor: pointer;
  font-size: 13px;
  color: #8b7180;
}

@media (max-height: 600px) {
  #word-game.focus-layout .inline-chat {
    height: 112px;
  }
  #word-game.focus-layout .focus-main {
    padding: 12px;
  }
  #word-game.focus-layout .focus-main-heading {
    margin-bottom: 8px;
  }
  #word-game.focus-layout .focus-main-heading h2 {
    font-size: 18px;
  }
  #word-game.focus-layout .answer-prose,
  #word-game.focus-layout .answer-editor {
    font-size: 16px;
    line-height: 1.65;
  }
  #word-game.focus-layout .answer-question {
    padding: 7px 12px;
  }
  #word-game.focus-layout .answer-card-note > span {
    display: none;
  }
  #word-game.focus-layout .answer-card-note small {
    margin-left: auto;
  }
  #word-game.focus-layout .answer-card-footer .choose-answer {
    min-height: 34px;
    height: 34px;
  }
  #word-game.focus-layout .play-dock {
    padding-top: 7px;
    padding-bottom: 8px;
    gap: 4px;
  }
  .focus-hunter .locations-overview .location-mini img {
    height: 30px;
  }
  .focus-hunter .hunt-card-heading h2 {
    font-size: 19px;
  }
}
@media (max-height: 500px) {
  #word-game.focus-layout .focus-header {
    min-height: calc(42px + env(safe-area-inset-top));
    padding-top: calc(3px + env(safe-area-inset-top));
    padding-bottom: 3px;
  }
  #word-game.focus-layout .focus-status {
    padding-bottom: 5px;
    min-height: 29px;
  }
  #word-game.focus-layout .inline-chat {
    height: 90px;
    padding: 6px 8px;
    gap: 3px;
  }
  #word-game.focus-layout .inline-chat-heading {
    display: none;
  }
  #word-game.focus-layout .answer-question {
    padding: 5px 10px;
    max-height: 58px;
    overflow-y: auto;
  }
  #word-game.focus-layout:has([data-word-draft='chat']:focus) .focus-status,
  #word-game.focus-layout:has([data-word-draft='chat']:focus) .answer-question,
  #word-game.focus-layout:has([data-word-draft='chat']:focus) .answer-card-footer,
  #word-game.focus-layout:has([data-word-draft='chat']:focus) .play-dock {
    display: none;
  }
  #word-game.focus-layout:has([data-word-draft='chat']:focus) .inline-chat {
    height: 48%;
    max-height: 180px;
  }
  .focus-hunter .hunter-bar {
    min-height: calc(42px + env(safe-area-inset-top));
  }
  .focus-hunter:has(.hunt-composer input:focus) .locations-overview {
    display: none;
  }
  .focus-hunter:has(.hunt-composer input:focus) .hunt-phase {
    display: none;
  }
  .focus-hunter .focus-hunt-chat-heading h2 {
    font-size: 18px;
  }
  .focus-hunter .hunt-card-heading p {
    display: none;
  }
}
.focus-room-members {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.focus-room-members > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.focus-room-members img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.focus-room-members span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #6a5667;
  font-size: 14px;
}
.focus-room-members small {
  display: block;
  font-size: 11px;
  color: #a08a98;
}
/* interaction-ui.css — canonical section */
/* Review v3: only text games; approved Hunter styles are unchanged. */
#word-game.interaction-layout:not(.is-final) .play-body {
  display: grid;
  grid-template-rows: minmax(0, 3fr) minmax(0, 7fr);
  gap: 10px;
  overflow: hidden;
  padding: 2px 12px 12px;
}
#word-game.interaction-layout.stable-guess:not(.is-final) .play-body {
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
}
#word-game.interaction-layout .focus-status {
  height: 34px;
  min-height: 34px;
  padding: 0 12px 7px;
  overflow: hidden;
}
#word-game.interaction-layout .focus-role {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
#word-game.interaction-layout .focus-status .timer {
  width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#word-game.interaction-layout .focus-main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#word-game.interaction-layout .focus-main-heading {
  flex: none;
  padding: 9px 12px 7px;
  gap: 5px;
  align-items: flex-start;
  flex-direction: column;
  margin: 0;
}
#word-game.interaction-layout .focus-main-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
#word-game.interaction-layout .focus-main-heading h2 {
  font-size: 14px;
  line-height: 1.3;
}
#word-game.interaction-layout .focus-main-heading > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}
#word-game.interaction-layout .focus-main-scroll {
  padding: 0 12px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#word-game.interaction-layout .focus-private {
  padding: 6px 9px;
  margin-bottom: 5px;
  gap: 7px;
  align-items: center;
}
#word-game.interaction-layout .focus-private > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
#word-game.interaction-layout .focus-private strong {
  font-size: 18px;
  letter-spacing: 0.05em;
}
#word-game.interaction-layout .focus-private p {
  display: none;
}
#word-game.interaction-layout .focus-ai-note {
  padding: 2px 0 4px;
  font-size: 10px;
}
#word-game.interaction-layout .hint-word {
  font-size: 24px !important;
  letter-spacing: 0.05em;
}
#word-game.interaction-layout .wait-card {
  padding: 7px 5px;
  min-height: 0;
  gap: 5px;
}
#word-game.interaction-layout .wait-card .bot-mark {
  width: 29px;
  height: 29px;
  margin: 0;
}
#word-game.interaction-layout .wait-card h2 {
  font-size: 15px;
}
#word-game.interaction-layout .wait-card p {
  font-size: 11px;
  line-height: 1.5;
}
#word-game.interaction-layout .inline-chat {
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: auto;
  padding: 10px 12px;
  gap: 7px;
  border-radius: 18px;
  background: #fffdfa;
  border-color: #eadfd5;
}
#word-game.interaction-layout .inline-chat-heading {
  display: flex;
  flex: none;
  min-height: 19px;
}
#word-game.interaction-layout .inline-chat-heading > span {
  font-size: 13px;
  color: #5e4d57;
  font-weight: 700;
}
#word-game.interaction-layout .inline-chat-thread {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#word-game.interaction-layout .inline-chat .message .avatar {
  width: 29px;
  height: 29px;
  flex: none;
}
#word-game.interaction-layout .inline-chat .message small {
  font-size: 10px;
}
#word-game.interaction-layout .inline-chat .bubble {
  font-size: 13px;
  line-height: 1.6;
  color: #635362;
  padding: 8px 10px;
}
#word-game.interaction-layout .game-message .bubble {
  border: 1px solid var(--focus-line);
  background: var(--focus-soft);
}
#word-game.interaction-layout .game-message .bubble.correct {
  border-color: #bedcca;
  background: #edf7ef;
}
#word-game.interaction-layout .inline-chat-composer {
  flex: none;
  padding-top: 5px;
  border-top: 1px solid #f0e8e0;
  min-width: 0;
}
#word-game.interaction-layout .input-mode-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding: 5px 8px;
  min-height: 26px;
  background: var(--focus-soft);
  border: 1px solid var(--focus-line);
  color: var(--focus);
  font-size: 10px;
  border-radius: 8px;
}
#word-game.interaction-layout .input-mode-switch .ui-icon {
  width: 12px;
  height: 12px;
}
#word-game.interaction-layout .input-mode-switch.on {
  background: #fff0e7;
  color: #b46e50;
  border-color: #ebc3ad;
}
#word-game.interaction-layout .inline-chat-composer .composer input {
  border-radius: 12px;
}
#word-game.interaction-layout .inline-chat-composer .composer textarea {
  border-radius: 12px;
}
#word-game.interaction-layout .focus-chat-locked {
  min-height: 42px;
  padding: 8px 10px;
  line-height: 1.5;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* These slots keep the same size in every phase at a given viewport. */
#word-game.interaction-layout .stable-answer-deck {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 32px;
  gap: 5px;
  min-height: 0;
}
#word-game.interaction-layout .answer-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#word-game.interaction-layout .answer-question {
  height: 48px;
  min-height: 48px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 6px 13px 5px;
  gap: 2px;
  overflow: hidden;
}
#word-game.interaction-layout .answer-question > span {
  font-size: 9px;
  line-height: 12px;
  flex: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#word-game.interaction-layout .answer-question p {
  font-size: 11px;
  line-height: 16px;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  overscroll-behavior: contain;
}
#word-game.interaction-layout .answer-card-heading {
  height: 30px;
  min-height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 4px 12px;
  overflow: hidden;
  gap: 6px;
}
#word-game.interaction-layout .answer-identity {
  white-space: nowrap;
  font-size: 11px;
}
#word-game.interaction-layout .answer-badge {
  font-size: 9px;
  white-space: nowrap;
}
#word-game.interaction-layout .answer-page {
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
}
#word-game.interaction-layout .answer-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 8px 13px;
  overflow-y: auto;
}
#word-game.interaction-layout .answer-prose {
  font-size: 17px;
  line-height: 1.7;
}
#word-game.interaction-layout .stable-write-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#word-game.interaction-layout .answer-editor {
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: none;
  font-size: 17px;
  line-height: 1.7;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  border-radius: 0;
}
#word-game.interaction-layout .answer-stage-message {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 13px;
  gap: 5px;
  justify-content: safe center;
}
#word-game.interaction-layout .answer-stage-message .bot-mark {
  width: 30px;
  height: 30px;
  margin: 0 auto 3px;
}
#word-game.interaction-layout .answer-stage-message h2 {
  font-size: 16px;
}
#word-game.interaction-layout .answer-stage-message p {
  font-size: 11px;
  line-height: 1.5;
}
#word-game.interaction-layout .focus-pick {
  flex: 1;
  min-height: 0;
  padding: 5px 12px;
  overflow-y: auto;
}
#word-game.interaction-layout .focus-pick .word-pick {
  min-height: 37px;
  padding: 6px 9px;
  font-size: 12px;
}
#word-game.interaction-layout .stable-card-actions {
  display: grid;
  grid-template-rows: 32px 38px;
  height: 86px;
  min-height: 86px;
  flex: none;
  padding: 6px 10px 7px;
  gap: 3px;
  background: #fffefa;
  border-top: 1px solid #f1e8ef;
  overflow: hidden;
}
#word-game.interaction-layout .stable-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font-size: 10px;
  color: #96819a;
  overflow: hidden;
}
#word-game.interaction-layout .stable-action-note {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#word-game.interaction-layout .stable-write-count {
  margin-left: auto;
  white-space: nowrap;
}
#word-game.interaction-layout .stable-selection .choose-answer {
  height: 30px;
  min-height: 30px;
  width: 100%;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 9px;
}
#word-game.interaction-layout .stable-selection .author-choice {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
#word-game.interaction-layout .stable-selection .author-choice select {
  height: 30px;
  min-height: 30px;
  font-size: 16px;
  padding: 3px 7px;
}
#word-game.interaction-layout .stable-selection .judge-choice {
  width: 100%;
  margin: 0;
  justify-content: center;
}
#word-game.interaction-layout .stable-selection .judge-choice button {
  height: 30px;
  min-height: 30px;
  font-size: 11px;
  padding: 4px 20px;
}
#word-game.interaction-layout .stable-selection .answer-revealed-author {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}
#word-game.interaction-layout .stable-selection .answer-revealed-author .avatar {
  width: 23px;
  height: 23px;
}
#word-game.interaction-layout .stable-commit {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
#word-game.interaction-layout .stable-commit > .primary {
  flex: 1;
  height: 38px;
  min-height: 38px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
}
#word-game.interaction-layout .stable-commit > .secondary {
  height: 38px;
  min-height: 38px;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 10px;
}
#word-game.interaction-layout .stable-commit > [data-reveal-confirm] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 6px;
  padding: 4px 8px;
}
#word-game.interaction-layout [data-reveal-confirm] .reveal-count {
  flex: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
}
#word-game.interaction-layout [data-reveal-label] {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}
#word-game.interaction-layout .stable-commit > .dock-lock {
  flex: 1;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 5px 8px;
  overflow: hidden;
  font-size: 11px;
}
#word-game.interaction-layout .stable-commit .dock-lock span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#word-game.interaction-layout .stable-wait-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  background: #f8f3f8;
  border-radius: 10px;
  font-size: 11px;
  color: #a08a9e;
}
#word-game.interaction-layout .answer-navigation {
  height: 32px;
  min-height: 32px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  gap: 6px;
}
#word-game.interaction-layout .stage-navigation {
  justify-content: center;
  font-size: 10px;
  color: #a28f9e;
}
#word-game.interaction-layout .answer-numbers {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#word-game.interaction-layout .answer-numbers button {
  width: 25px;
  height: 25px;
  flex: none;
  font-size: 10px;
}
#word-game.interaction-layout .card-arrow {
  width: 27px;
  height: 27px;
  flex: none;
}
@media (max-height: 600px) {
  #word-game.interaction-layout .focus-main-heading {
    padding: 7px 10px 5px;
  }
  #word-game.interaction-layout .inline-chat {
    padding: 7px 9px;
    gap: 5px;
  }
  #word-game.interaction-layout .answer-prose,
  #word-game.interaction-layout .answer-editor {
    font-size: 16px;
    line-height: 1.6;
  }
}
@media (max-height: 500px) {
  #word-game.interaction-layout:not(.is-final) .play-body {
    gap: 6px;
    padding: 0 9px 6px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr);
  }
  #word-game.interaction-layout.stable-guess:not(.is-final) .play-body {
    grid-template-rows: minmax(190px, 3fr) minmax(0, 2fr);
  }
  #word-game.interaction-layout .focus-status {
    height: 29px;
    min-height: 29px;
    padding-bottom: 4px;
  }
  #word-game.interaction-layout .inline-chat-heading {
    display: none;
  }
  #word-game.interaction-layout .answer-question {
    height: 34px;
    min-height: 34px;
    padding: 3px 10px;
  }
  #word-game.interaction-layout .answer-question > span {
    font-size: 8px;
    line-height: 10px;
  }
  #word-game.interaction-layout .answer-card-heading {
    height: 23px;
    min-height: 23px;
    padding: 2px 10px;
  }
  #word-game.interaction-layout .stable-card-actions {
    height: 74px;
    min-height: 74px;
    grid-template-rows: 28px 34px;
    padding: 4px 8px;
    gap: 3px;
  }
  #word-game.interaction-layout .stable-selection .choose-answer,
  #word-game.interaction-layout .stable-selection .judge-choice button {
    height: 27px;
    min-height: 27px;
  }
  #word-game.interaction-layout .stable-commit > .primary,
  #word-game.interaction-layout .stable-commit > .secondary,
  #word-game.interaction-layout .stable-commit > .dock-lock,
  #word-game.interaction-layout .stable-wait-label {
    height: 34px;
    min-height: 34px;
  }
  #word-game.interaction-layout:has([data-word-draft='chat']:focus) .focus-status {
    display: flex;
  }
  #word-game.interaction-layout:has([data-word-draft='chat']:focus) .answer-question {
    display: flex;
  }
  #word-game.interaction-layout:has([data-word-draft='chat']:focus) .answer-card-footer {
    display: grid;
  }
  #word-game.interaction-layout:has([data-word-draft='chat']:focus) .inline-chat {
    height: 100%;
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #word-game.interaction-layout .answer-card {
    animation: none;
  }
}

/* v4: use the card's inner space, keeping the two-area layout. */
#word-game.detail-layout .focus-main {
  padding: 0;
}
#word-game.detail-layout .focus-main-heading {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 10px 12px 8px;
}
#word-game.detail-layout .focus-main-heading > div {
  flex: none;
}
#word-game.detail-layout .focus-main-scroll {
  padding: 0 12px 10px;
}
#word-game.detail-layout .refresh-line {
  height: 25px;
  min-height: 25px;
  font-size: 10px;
  gap: 5px;
}
#word-game.detail-layout .refresh-line button {
  padding: 3px;
  font-size: 10px;
  min-height: 25px;
}
#word-game.detail-layout .focus-empty {
  min-height: 0;
  height: 100%;
  padding: 6px;
  gap: 7px;
}
#word-game.detail-layout .focus-empty > span {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  flex: none;
}
#word-game.detail-layout .focus-empty > span .ui-icon {
  width: 25px;
  height: 25px;
}
#word-game.detail-layout .focus-empty h2 {
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#word-game.detail-layout .focus-empty p {
  font-size: 11px;
  line-height: 1.4;
}
#word-game.detail-layout .reveal-answer .status-banner {
  white-space: nowrap;
  font-size: 11px;
}
#word-game.detail-layout .writing-tip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.5;
  color: #92769e;
}
@container (max-width:365px) {
  #word-game.detail-layout .focus-main-heading {
    padding: 8px 10px 6px;
    gap: 5px;
  }
  #word-game.detail-layout .focus-main-heading h2 {
    font-size: 13px;
  }
  #word-game.detail-layout .focus-main-scroll {
    padding: 0 10px 8px;
  }
}
@media (max-height: 500px) {
  #word-game.detail-layout .focus-main-heading {
    padding: 6px 9px 5px;
  }
  #word-game.detail-layout .focus-main-scroll {
    padding: 0 9px 5px;
  }
  #word-game.detail-layout .focus-empty {
    padding: 3px;
    gap: 4px;
  }
  #word-game.detail-layout .focus-empty > span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }
  #word-game.detail-layout .focus-empty > span .ui-icon {
    width: 18px;
    height: 18px;
  }
  #word-game.detail-layout .focus-empty h2 {
    font-size: 13px;
  }
  #word-game.detail-layout .focus-empty p {
    display: none;
  }
}

/* Guess AI expandable chat: center its width and retain safe-area padding with/without keyboard. */
#word-game .overlay[data-ui-panel='word-chat'] {
  justify-content: center;
}
#word-game.detail-layout.stable-guess .inline-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  gap: 6px;
}
#word-game.detail-layout .inline-chat-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
#word-game.detail-layout .chat-expand,
#word-game.detail-layout .chat-collapse {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  min-height: 30px;
  padding: 3px 6px;
  border-radius: 9px;
  background: var(--focus-soft);
  color: var(--focus);
  font-size: 11px;
  flex: none;
}
#word-game.detail-layout .chat-expand .ui-icon {
  width: 12px;
  height: 12px;
}
#word-game.detail-layout .overlay .dialog.chat-dialog {
  width: min(480px, calc(100% - 24px));
  height: min(620px, calc(var(--app-height, 100dvh) * 0.82));
  max-height: calc(var(--app-height, 100dvh) - 24px);
  min-height: 0;
  padding: 14px 14px calc(14px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
#word-game.detail-layout .expanded-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}
#word-game.detail-layout .expanded-chat-heading h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 18px;
}
#word-game.detail-layout .expanded-chat-heading h2 .ui-icon {
  width: 21px;
  height: 21px;
  color: var(--focus);
}
#word-game.detail-layout .expanded-chat-note {
  flex: none;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
#word-game.detail-layout .expanded-chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#word-game.detail-layout .expanded-chat-composer {
  flex: none;
}
@media (max-height: 500px) {
  #word-game.detail-layout .inline-chat-tools > small {
    display: none;
  }
  #word-game.detail-layout .overlay .dialog.chat-dialog {
    height: calc(var(--app-height, 100dvh) - 20px);
    max-height: calc(var(--app-height, 100dvh) - 20px);
    padding: 10px 10px calc(10px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
    gap: 6px;
  }
}

body.chat-focused-short #word-game.detail-layout .overlay .dialog.chat-dialog {
  height: calc(var(--app-height, 100dvh) - 20px);
  max-height: calc(var(--app-height, 100dvh) - 20px);
  padding: 10px 10px calc(10px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
  gap: 6px;
}
/* ui-components.css — canonical section */
/* All room/game chat and short action fields opt in; API forms and answer editors do not. */
:root {
  --composer-height: 42px;
  --composer-gap: 6px;
}
.party-composer {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: var(--composer-gap);
  width: 100%;
  min-width: 0;
  margin: 0;
}
.party-composer > label {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}
.party-composer input,
.party-composer textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--composer-height);
  min-height: var(--composer-height);
  max-height: var(--composer-height);
  box-sizing: border-box;
  padding: 9px 10px;
  font-size: 16px;
  line-height: 22px;
}
.party-composer > input,
.party-composer > textarea {
  flex: 1 1 0;
  width: 0;
}
.party-composer textarea {
  resize: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: keep-all;
}
.party-composer > button {
  flex: none;
  margin: 0;
  height: var(--composer-height);
  min-height: var(--composer-height);
  min-width: var(--composer-height);
  padding: 0 10px;
  font-size: 12px;
  line-height: 20px;
}
.party-composer-icon > button {
  width: var(--composer-height);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* visualViewport changes do not reliably trigger max-height media queries. */
body.chat-focused-short .focus-hunter .locations-overview,
body.chat-focused-short .focus-hunter .hunt-phase {
  display: none;
}
body.chat-focused-short #word-game.interaction-layout .focus-status {
  height: 29px;
  min-height: 29px;
}
body.chat-focused-short #word-game.interaction-layout .inline-chat-heading {
  display: none;
}
@media (max-width: 360px) {
  .party-composer > button {
    padding: 0 8px;
    font-size: 11px;
  }
  .party-composer-icon > button {
    padding: 0;
  }
}
/* Keyboard geometry follows the visual viewport, not only CSS media queries. */
body.keyboard-open {
  --app-safe-bottom: 0px;
}
.scrim {
  top: var(--app-top, 0px);
  bottom: var(--app-bottom, 0px);
}
.sheet {
  bottom: var(--app-bottom, 0px);
  max-height: calc(var(--app-height, 100dvh) - 12px);
}
.sheet.chat,
body[data-screen='room'] .sheet.chat {
  height: min(620px, calc(var(--app-height, 100dvh) * 0.79));
}
body.keyboard-open #toast {
  top: calc(var(--app-top, 0px) + 16px);
  bottom: auto;
}
body.chat-focused-short #word-game.interaction-layout:not(.is-final) .play-body {
  grid-template-rows: minmax(0, 1fr) minmax(110px, 2fr);
  gap: 6px;
  padding: 0 9px 6px;
}
body.chat-focused-short #word-game .play-dock {
  display: none;
}
body.chat-focused-tiny #word-game .focus-status {
  display: none;
}
body.word-writing-short #word-game.interaction-layout .play-body {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
body.word-writing-short #word-game .inline-chat,
body.word-writing-short #word-game .focus-status {
  display: none;
}
body.word-writing-short #word-game .stable-card-actions {
  height: 60px;
  min-height: 60px;
  grid-template-rows: 20px 32px;
  padding: 3px 8px;
  gap: 2px;
}
body.word-writing-short #word-game .stable-commit > button {
  height: 32px;
  min-height: 32px;
}
body.input-focused-short .auth-login .auth-hero {
  display: none;
}
body.input-focused-short .auth-register .register-scene {
  display: none;
}
#word-game .overlay {
  top: var(--app-top, 0px);
  bottom: var(--app-bottom, 0px);
}
.account-model-scroll .model-actions {
  bottom: var(--app-bottom, 0px);
}
body.word-writing-short #word-game.interaction-layout.stable-guess:not(.is-final) .play-body {
  grid-template-rows: minmax(0, 1fr);
}
body.word-writing-short #word-game.interaction-layout .answer-stage-card {
  min-height: 0;
}
body.word-writing-short #word-game .answer-question {
  height: 34px;
  min-height: 34px;
  padding: 3px 10px;
}
body.word-writing-short #word-game .answer-card-heading {
  height: 23px;
  min-height: 23px;
  padding: 2px 10px;
}

.inline-recap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-recap-head .card-heading {
  flex: 1 1 auto;
  min-width: 0;
}
.inline-recap-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  flex-wrap: wrap;
}
.inline-recap-actions button {
  appearance: none;
  border: 1px solid #e8d8ef;
  background: #fffaf4;
  color: #7b5b8c;
  border-radius: 10px;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.inline-recap-actions button[data-export-recap] {
  color: #b05a25;
  border-color: #efd5c2;
  background: #fff7ef;
}
.inline-recap-details {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}
.inline-recap-details[hidden] {
  display: none !important;
}
.inline-recap-empty {
  margin: 4px 0;
  color: #96859d;
  font-size: 12px;
}
.inline-round {
  border: 1px solid #efe1f2;
  border-radius: 15px;
  background: #fffdfb;
  overflow: hidden;
}
.inline-round summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  cursor: pointer;
  min-height: 44px;
}
.inline-round summary::-webkit-details-marker {
  display: none;
}
.inline-round-index {
  flex: none;
  border-radius: 999px;
  background: #f7ecff;
  color: #7c5aa0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
}
.inline-round-prompt {
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inline-round-result {
  margin-left: auto;
  flex: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  background: #f7ecff;
  color: #7c5aa0;
}
.inline-round-result.humans {
  background: #eaf7ef;
  color: #3f7d5a;
}
.inline-round-result.ai {
  background: #f7ecff;
  color: #7c5aa0;
}
.inline-round-chevron {
  color: #b8a4c1;
  transition: transform 0.18s;
}
.inline-round[open] .inline-round-chevron {
  transform: rotate(180deg);
}
.inline-round-body {
  padding: 0 11px 12px;
}
.inline-ai-badge {
  border-radius: 999px;
  background: #f1e7fc;
  color: #7657b8;
  font-weight: 800;
  padding: 1px 6px;
}
.recap-carousel {
  position: relative;
  margin-top: 4px;
}
.recap-slides {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.recap-slides::-webkit-scrollbar {
  display: none;
}
.recap-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  border: 1px solid #eddfd1;
  border-radius: 17px;
  overflow: hidden;
  box-sizing: border-box;
}
.recap-slide.ai {
  background: #fbf6ff;
  border-color: #c9aede;
}
.recap-slide.blank {
  background: #faf5ef;
}
.recap-answer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px 4px;
}
.recap-answer-id {
  font-size: 11px;
  color: #a48597;
  font-weight: 650;
  white-space: nowrap;
}
.recap-revealed {
  font-size: 9px;
  font-weight: 800;
  color: #b08c6c;
  background: #fff3e2;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.recap-slide.ai .recap-revealed {
  background: #efe3fb;
  color: #8a63a8;
}
.recap-answer-head .inline-ai-badge {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 9px;
}
.recap-answer-text {
  margin: 0;
  padding: 8px 14px 16px;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #695266;
  letter-spacing: 0.01em;
  min-height: 92px;
  max-height: 230px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddcbbd transparent;
}
.recap-slide.blank .recap-answer-text {
  color: #b5a0ad;
}
.recap-answer-author {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-top: 1px solid #f0e5dd;
  background: #fffdf8;
  font-size: 10px;
  color: #94749f;
  margin-top: auto;
}
.recap-slide.ai .recap-answer-author {
  background: #fcf8ff;
  border-color: #eee0f5;
}
.recap-answer-author b {
  font-size: 11px;
  color: #806276;
  font-weight: 700;
}
.recap-answer-author small {
  font-size: 9px;
  color: #b296a6;
}
.recap-avatar,
.recap-avatar-fallback {
  width: 24px;
  height: 24px;
  flex: none;
}
.recap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.recap-avatar-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e7f8;
  color: #8a6a9c;
  font-size: 10px;
  font-weight: 800;
}
.recap-avatar-fallback.ai {
  background: #e8d9f8;
  color: #7657b8;
  font-size: 8px;
}
.recap-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  min-height: 44px;
}
.recap-carousel-controls span {
  font-size: 11px;
  color: #9c7f90;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
}
#word-game .recap-avatar {
  width: 24px;
  height: 24px;
}
#word-game .recap-carousel-controls button,
.recap-carousel-controls button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e3cfbf;
  border-radius: 10px;
  background: #fffdf8;
  color: #7b5b8c;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
#word-game .recap-carousel-controls button:active,
.recap-carousel-controls button:active {
  background: #f7ecff;
  border-color: #d8c2ea;
  color: #7657b8;
}
@media (max-width: 560px) {
  .inline-recap-actions button {
    font-size: 10px;
    padding: 5px 7px;
    min-height: 32px;
  }
  .inline-round summary {
    flex-wrap: wrap;
  }
  .inline-round-prompt {
    flex: 1 1 100%;
    order: 3;
    font-size: 12px;
  }
  .inline-round-result {
    margin-left: auto;
  }
}
.reveal-count {
  font-size: 12px;
  white-space: nowrap;
}

/* Numeric feedback moves only the rendered value, never the surrounding controls. */
b[data-ui-score],
strong[data-ui-score] {
  display: inline-block;
}
/* V12 reference styles, scoped to Moqi. Shared shell, forms, sheets and portraits remain platform-owned. */
body[data-screen='moqi'] {
  background: #fcf7ee;
  color: #493d4b;
}
body[data-screen='moqi'] > .bar {
  display: none;
}
body[data-screen='moqi'] > main {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.moqi-v12 {
  color-scheme: light;
  --bg: #faf6f0;
  --paper: #fffdfa;
  --ink: #493d4b;
  --soft: #7d6c7c;
  --mute: #aa98a6;
  --line: #eee4de;
  --purple: #8064b0;
  --ps: #f4eef9;
  --orange: #ff8738;
  --light: #fbf8f5;
  --green: #6d9b85;
  font:
    14px/1.48 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: var(--ink);
}
#moqi-game {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  height: var(--app-height, 100dvh);
  margin: var(--app-top, 0px) auto 0;
  overflow: hidden;
  background: var(--bg);
}
.moqi-v12 * {
  box-sizing: border-box;
}
.moqi-v12 button,
.moqi-v12 input {
  color: #000;
  font: inherit;
}
.moqi-v12 button {
  border-radius: 0;
  padding: 1px 6px;
  height: auto;
  white-space: normal;
  box-shadow: none;
  letter-spacing: normal;
  cursor: pointer;
  touch-action: manipulation;
}
.moqi-v12 input {
  color: #000;
  height: auto;
  min-height: 0;
  line-height: inherit;
}
.moqi-v12 button:disabled {
  opacity: 0.45;
  cursor: default;
}
.moqi-v12 button:focus-visible,
.moqi-v12 input:focus-visible {
  outline: 2px solid #ab8ac8;
  outline-offset: 2px;
}
.moqi-v12 .card {
  flex-direction: row;
  display: block;
  gap: normal;
}
.moqi-v12 h2,
.moqi-v12 h3 {
  letter-spacing: normal;
  font-weight: 700;
}
.moqi-v12 .section-title {
  gap: normal;
}
.moqi-v12 .section-title > span {
  font: inherit;
  color: inherit;
  display: inline;
}
.moqi-v12 .award {
  white-space: normal;
  justify-content: normal;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
}
.moqi-v12 .topbar {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
}
.moqi-v12 .back {
  border: 0;
  background: none;
  color: #9a8795;
  font-size: 24px;
  padding: 2px 3px;
  line-height: 1;
}
.moqi-v12 .logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.moqi-v12 .top-title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.moqi-v12 .help-btn {
  border: 0;
  background: none;
  color: #9c86a1;
  font-size: 17px;
  padding: 5px;
}
.moqi-v12 .top-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3e8ef;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.moqi-v12 .page {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px 13px 17px;
  scrollbar-width: thin;
  scrollbar-color: #eadfe8 transparent;
}
.moqi-v12 .page.low-pad {
  padding-top: 4px;
}
.moqi-v12 .card {
  background: var(--paper);
  border: 1px solid #ece0d9;
  border-radius: 18px;
  box-shadow: 0 4px 16px #60494008;
}
.moqi-v12 .question-card {
  padding: 16px 15px 15px;
  border-top: 3px solid #aa8cbd;
}
.moqi-v12 .eyebrow {
  font-size: 10px;
  color: #a28aab;
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
}
.moqi-v12 .mini-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  border-radius: 100px;
  padding: 3px 8px;
  background: #f9ecdf;
  color: #b88a61;
}
.moqi-v12 .question-card h2 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  margin: 11px 0 8px;
  color: #51435a;
  font-weight: 800;
}
.moqi-v12 .question-sub {
  color: #9c8b9a;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.moqi-v12 .opt-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0;
}
.moqi-v12 .opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 11px;
  width: 100%;
  min-height: 58px;
  border: 1px solid #ede3e0;
  border-radius: 12px;
  background: #fffefa;
  text-align: left;
  color: #6e606f;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.moqi-v12 .opt:hover:not(:disabled) {
  border-color: #d3bedc;
}
.moqi-v12 .opt.active {
  background: #f7f0fc;
  border-color: #bd9fd5;
  box-shadow: inset 0 0 0 1px #bd9fd522;
}
.moqi-v12 .opt-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f4efee;
  color: #917d8b;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.moqi-v12 .opt.active .opt-letter {
  background: var(--purple);
  color: white;
}
.moqi-v12 .opt-text {
  font-size: 12px;
  line-height: 1.55;
  flex: 1;
}
.moqi-v12 .checkmark {
  color: #926eaf;
  font-size: 17px;
}
.moqi-v12 .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 7px;
}
.moqi-v12 .muted {
  color: #a592a0;
  font-size: 10px;
}
.moqi-v12 .list-people {
  display: flex;
  align-items: center;
  gap: 6px;
}
.moqi-v12 .face {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3e9ef;
  font-size: 14px;
  position: relative;
}
.moqi-v12 .face.done:after {
  content: '✓';
  display: grid;
  place-items: center;
  position: absolute;
  bottom: -4px;
  right: -3px;
  width: 12px;
  height: 12px;
  color: white;
  background: var(--green);
  border: 1.5px solid white;
  border-radius: 50%;
  font-size: 8px;
}
.moqi-v12 .footnote {
  color: #ab97a6;
  font-size: 10px;
  line-height: 1.7;
  padding: 10px 4px;
}
.moqi-v12 .bottom-bar {
  flex: none;
  padding: 9px 13px max(13px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid #eee4dc;
  display: flex;
  gap: 8px;
}
.moqi-v12 .primary {
  height: 45px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  font-size: 13px;
  font-weight: 800;
  color: white;
  box-shadow: 0 3px 11px #ff853013;
}
.moqi-v12 .primary:disabled {
  background: #efc6a9;
  box-shadow: none;
}
.moqi-v12 .secondary {
  height: 45px;
  border-radius: 12px;
  border: 1px solid #e5d7df;
  background: #fffbf7;
  color: #8c758d;
  font-weight: 650;
  padding: 0 13px;
  white-space: nowrap;
  font-size: 11px;
}
.moqi-v12 .notice {
  padding: 10px 11px;
  background: #f6f0f8;
  border-radius: 11px;
  color: #937aa1;
  font-size: 11px;
  line-height: 1.7;
}
.moqi-v12 .waiting {
  padding: 15px;
  border: 1px dashed #dac8e3;
  border-radius: 12px;
  text-align: center;
  color: #99869c;
  font-size: 12px;
  margin-top: 12px;
}
.moqi-v12 .result-detail-link {
  border: 0;
  color: #906db0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 0;
  white-space: nowrap;
}
.moqi-v12 .bottom-bar:empty {
  display: none;
}
.moqi-v12 .question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.moqi-v12 .question-topline .eyebrow {
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.moqi-v12 .result-card .vote-list {
  margin: 10px 0 3px;
}
.moqi-v12 .result-card .vote-row {
  grid-template-columns: 17px minmax(0, 1fr) 34px;
  gap: 8px;
  margin-bottom: 3px;
}
.moqi-v12 .result-card .vote-name {
  font-size: 10.5px;
}
.moqi-v12 .result-card .vote-track {
  width: calc(100% - 59px);
  margin: 0 34px 7px 25px;
  height: 5px;
}
.moqi-v12 .result-card .vote-number {
  font-size: 10px;
}
.moqi-v12 .detail-person {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f1e7eb;
  padding: 12px 0;
}
.moqi-v12 .detail-person .face {
  flex: none;
}
.moqi-v12 .detail-person-name {
  font-weight: 750;
  font-size: 11px;
  color: #806981;
  white-space: nowrap;
}
.moqi-v12 .detail-person-choice {
  font-size: 11px;
  color: #786a78;
  line-height: 1.6;
  margin-top: 3px;
}
.moqi-v12 .detail-person-letter {
  font-size: 10px;
  color: #9b80a8;
  background: #f5eff9;
  padding: 2px 6px;
  border-radius: 7px;
}
.moqi-v12 .discussion-stack {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}
.moqi-v12 .result-card {
  padding: 12px 13px;
  flex: none;
}
.moqi-v12 .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}
.moqi-v12 .section-title small {
  font-size: 10px;
  color: #a58e9d;
  font-weight: 500;
}
.moqi-v12 .vote-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 35px;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}
.moqi-v12 .vote-key {
  font-size: 11px;
  color: #9e83a4;
  font-weight: 800;
}
.moqi-v12 .vote-name {
  font-size: 11px;
  color: #786b77;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moqi-v12 .vote-number {
  font-size: 10px;
  color: #8f7d8a;
  text-align: right;
}
.moqi-v12 .vote-track {
  height: 5px;
  border-radius: 10px;
  background: #f0e8ed;
  margin: 0 35px 7px 25px;
  overflow: hidden;
}
.moqi-v12 .vote-track,
.moqi-v12 .pairtrack {
  appearance: none;
  display: block;
  border: 0;
}
.moqi-v12 .vote-track {
  width: calc(100% - 60px);
  --progress-fill: #b498c6;
}
.moqi-v12 .vote-track.winning {
  --progress-fill: #ffab72;
}
.moqi-v12 progress::-webkit-progress-bar {
  background: transparent;
}
.moqi-v12 progress::-webkit-progress-value {
  border-radius: 10px;
  background: var(--progress-fill);
}
.moqi-v12 progress::-moz-progress-bar {
  border-radius: 10px;
  background: var(--progress-fill);
}
.moqi-v12 .chatbox {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 11px;
}
.moqi-v12 .chathead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 12px;
  padding-bottom: 7px;
  flex: none;
}
.moqi-v12 .chathead small {
  color: #a292a1;
  font-size: 10px;
  font-weight: 400;
}
.moqi-v12 .chatfeed {
  flex: 1;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 1px 8px;
}
.moqi-v12 .chatmsg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.moqi-v12 .chatmsg.mine {
  flex-direction: row-reverse;
}
.moqi-v12 .chatmsg .face {
  width: 26px;
  height: 26px;
  flex: none;
}
.moqi-v12 .chatcontent {
  min-width: 0;
  max-width: 84%;
}
.moqi-v12 .chatcontent b {
  font-weight: 500;
  font-size: 10px;
  color: #aa98a7;
}
.moqi-v12 .bubble {
  padding: 7px 10px;
  background: #f3eef1;
  border-radius: 10px 10px 10px 3px;
  color: #7d6b7a;
  line-height: 1.6;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.moqi-v12 .chatmsg.mine .bubble {
  background: #f0e7f9;
  border-radius: 10px 10px 3px 10px;
}
.moqi-v12 .chatmsg.mine .chatcontent {
  text-align: right;
}
.moqi-v12 .chatmsg.mine .bubble {
  text-align: left;
}
.moqi-v12 .chatcomposer {
  display: flex;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid #f2e9e4;
  flex: none;
}
.moqi-v12 .chatcomposer input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e9dfdc;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fffdfa;
  outline: 0;
  font-size: 12px;
}
.moqi-v12 .chatcomposer button {
  background: var(--orange);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  font-weight: 750;
  font-size: 11px;
}
.moqi-v12 .reading-card {
  padding: 17px 16px 18px;
}
.moqi-v12 .story-cover {
  text-align: center;
  padding: 9px 4px 13px;
  border-bottom: 1px solid #f0e8e4;
}
.moqi-v12 .story-cover .leaf {
  font-size: 24px;
  color: #a78bb8;
  line-height: 1;
}
.moqi-v12 .story-cover h2 {
  font-size: 22px;
  margin: 8px 0 4px;
  font-weight: 800;
  color: #59465d;
}
.moqi-v12 .story-cover p {
  font-size: 10px;
  color: #ae9aa9;
  margin: 0;
}
.moqi-v12 .prose {
  font-size: 12px;
  line-height: 2.07;
  color: #675964;
  letter-spacing: 0.17px;
}
.moqi-v12 .prose p {
  text-indent: 2em;
  margin: 15px 0;
}
.moqi-v12 .sub-link {
  border: 0;
  background: none;
  color: #9272a7;
  font-weight: 700;
  font-size: 11px;
  padding: 8px 0;
}
.moqi-v12 .center {
  text-align: center;
}
.moqi-v12 .result-hero {
  text-align: center;
  padding: 17px 10px 10px;
}
.moqi-v12 .result-hero h2 {
  font-size: 20px;
  margin: 8px 0 2px;
}
.moqi-v12 .big-percent {
  font-size: 39px;
  letter-spacing: -2px;
  font-weight: 850;
  color: #7f60a6;
  line-height: 1.25;
}
.moqi-v12 .metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.moqi-v12 .metric {
  background: #faf6f9;
  border: 1px solid #f1e7ed;
  border-radius: 12px;
  padding: 11px 9px;
}
.moqi-v12 .metric b {
  font-size: 20px;
  color: #6f597b;
}
.moqi-v12 .metric span {
  display: block;
  color: #a18d9b;
  font-size: 10px;
}
.moqi-v12 .ranking {
  padding: 14px 13px;
  margin-top: 10px;
}
.moqi-v12 .ranking h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.moqi-v12 .pair {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.moqi-v12 .pairname {
  font-size: 11px;
  min-width: 104px;
  flex: none;
}
.moqi-v12 .pairtrack {
  min-width: 0;
  --progress-fill: #b493cb;
  background: #f0e8f2;
  height: 7px;
  border-radius: 10px;
  flex: 1;
  overflow: hidden;
}
.moqi-v12 .pairpercent {
  width: 37px;
  font-size: 11px;
  color: #816d89;
  text-align: right;
}
.moqi-v12 .awards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.moqi-v12 .award {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12px;
}
.moqi-v12 .award .awardicon {
  font-size: 21px;
  width: 27px;
}
.moqi-v12 .award b {
  display: block;
  font-size: 12px;
}
.moqi-v12 .award small {
  display: block;
  font-size: 10px;
  color: #9e8b9a;
  margin-top: 2px;
}
.moqi-v12 .round-detail {
  font-size: 11px;
  line-height: 1.65;
  color: #9e8f9d;
  border-top: 1px solid #f2e8ee;
  padding-top: 10px;
  margin-top: 10px;
}
.moqi-v12 .modal-list {
  border-bottom: 1px solid #f0e7ea;
  padding: 10px 0;
  font-size: 12px;
  color: #736374;
}
.moqi-v12 .modal-list b {
  color: #8664a0;
}
@media (max-width: 355px) {
  .moqi-v12 .question-topline .eyebrow {
    gap: 4px;
    font-size: 9px;
  }
  .moqi-v12 .question-card {
    padding: 12px 11px;
  }
  .moqi-v12 .question-card h2 {
    font-size: 17px;
  }
  .moqi-v12 .opt {
    padding: 9px 8px;
    min-height: 53px;
    gap: 7px;
  }
  .moqi-v12 .opt-text {
    font-size: 11px;
  }
  .moqi-v12 .page {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.moqi-v12 .question-topline .eyebrow {
  flex: 1;
}
.moqi-v12 .chathead {
  gap: 6px;
  min-width: 0;
  min-height: 31px;
}
.moqi-v12 .chathead-title {
  white-space: nowrap;
  flex: none;
}
.moqi-v12 .chathead-requests {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.moqi-v12 .skip-voter-avatars {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}
.moqi-v12 .skip-voter-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 50%;
  background: #f5e9f2;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 0 0 1px #ffffff;
}
.moqi-v12 .skip-vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  white-space: nowrap;
  height: 27px;
  min-width: 79px;
  padding: 0 9px;
  border: 1px solid #e1d3e6;
  border-radius: 9px;
  background: #fffcfa;
  color: #8c739b;
  font-size: 11px;
  font-weight: 650;
}
.moqi-v12 .skip-vote-button.is-voted {
  background: #f4edf9;
  color: #8665a6;
  border-color: #cdbbdf;
}
.moqi-v12 .skip-vote-button:active {
  transform: scale(0.98);
}
@media (max-width: 355px) {
  .moqi-v12 .chathead {
    gap: 4px;
  }
  .moqi-v12 .chathead-requests {
    gap: 3px;
  }
  .moqi-v12 .skip-voter-avatars {
    gap: 2px;
  }
  .moqi-v12 .skip-voter-avatar {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .moqi-v12 .skip-vote-button {
    min-width: 72px;
    padding: 0 6px;
    font-size: 10px;
  }
}
.moqi-v12 .story-like {
  border: 1px solid #e9dce7;
  border-radius: 13px;
  background: #faf5fb;
  margin-top: 14px;
  padding: 14px 12px 12px;
}
@media (max-width: 355px) {
  .moqi-v12 .story-like {
    padding: 12px 9px;
  }
  .moqi-v12 .chathead-title {
    font-size: 11px;
  }
}
.moqi-v12 .export-card {
  padding: 13px 13px 15px;
  margin-top: 12px;
}
.moqi-v12 .export-buttons {
  margin-top: 11px;
}
.moqi-v12 .export-buttons button {
  border: 0;
  border-radius: 11px;
  background: #ff8530;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
}
.moqi-v12 .export-buttons button:active {
  background: #e87726;
}
.party-phasebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 34px;
  margin: 0 15px 3px;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.party-phasebar__round {
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 550;
  color: #8b7986;
}
.party-phasebar__phase {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 99px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  background: #fff0dd;
  color: #9b794f;
}
.party-phasebar__meta {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 10px;
  font-weight: 500;
  color: #9d8795;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-phasebar__clock {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  color: #655865;
  font-variant-numeric: tabular-nums;
}
.party-phasebar__clock--urgent {
  color: #c65f4b;
}
.party-phasebar__clock:empty,
.party-phasebar__meta:empty {
  display: none;
}
@media (max-width: 340px) {
  .party-phasebar {
    gap: 6px;
    margin-left: 12px;
    margin-right: 12px;
  }
  .party-phasebar__round,
  .party-phasebar__phase {
    font-size: 10px;
  }
  .party-phasebar__meta {
    font-size: 9px;
  }
  .party-phasebar__clock {
    font-size: 16px;
  }
}

/* Necessary adaptations: real avatars, up to six players, long model text, platform keyboard/sheets. */
.moqi-v12 .question-card {
  margin-bottom: 0;
}
.moqi-v12 .face .ui-avatar,
.moqi-v12 .face img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.moqi-v12 .top-avatar .face {
  width: 30px;
  height: 30px;
}
.moqi-v12 .skip-voter-avatar .face {
  width: 100%;
  height: 100%;
  font-size: inherit;
}
.moqi-v12 .skip-voter-avatars {
  flex-wrap: wrap;
  max-width: 144px;
}
.moqi-v12 .chathead-requests {
  align-items: center;
}
.moqi-v12 .chatfeed .notice {
  font-size: 10px;
}
.moqi-v12 .chatcomposer input {
  width: 0;
}
.moqi-v12 .chatcomposer button {
  min-width: 48px;
  white-space: nowrap;
}
.moqi-v12 .bubble,
.moqi-v12 .prose p {
  white-space: pre-wrap;
}
.moqi-v12 .card,
.moqi-v12 .opt-text {
  overflow-wrap: anywhere;
  min-width: 0;
}
.moqi-v12 .opt-text {
  font-weight: 400;
}
.moqi-v12 .moqi-discussion {
  overflow: hidden;
}
.moqi-v12 .moqi-reveal {
  max-height: 43%;
  overflow: auto;
}
.moqi-v12 .summary-card {
  padding: 14px;
}
.moqi-v12 .celebration {
  font-size: 28px;
}
.moqi-v12 .hero-score {
  margin-top: 12px;
}
.moqi-v12 .pairname {
  min-width: 104px;
  width: auto;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.moqi-v12 .pair-faces {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;
}
.moqi-v12 .pair-faces .face {
  width: 16px;
  height: 16px;
  font-size: 10px;
}
.moqi-v12 .export-note {
  margin: 7px 0 0;
  line-height: 1.7;
}
.moqi-v12 .bottom-bar {
  padding-bottom: max(13px, var(--app-safe-bottom, env(safe-area-inset-bottom)));
}
.moqi-v12 #timer[data-urgent='true'] {
  color: #c65f4b;
}
.moqi-panel p {
  font-size: 12px;
  color: #8f7c8d;
  line-height: 1.8;
}
.moqi-panel .prose p {
  font-size: 13px;
  line-height: 2.05;
  color: #665764;
}
.moqi-panel .story-cover h2 {
  font-size: 18px;
}
.moqi-panel .modal-list {
  border-bottom: 1px solid #f0e7ea;
  padding: 10px 0;
  font-size: 12px;
  color: #736374;
}
.moqi-panel .modal-list b {
  color: #8664a0;
}
body[data-screen='moqi'] .sheet {
  max-width: 560px;
  border-radius: 22px 22px 0 0;
  background: #fffdfa;
}
body[data-screen='moqi'] .sheet.moqi-article {
  height: min(87%, 730px);
  max-height: 87%;
}
body[data-screen='moqi'] .sheet.moqi-article .sheet-body {
  overflow: auto;
  overscroll-behavior: contain;
}
body.chat-focused-short #moqi-game .moqi-reveal {
  display: none;
}
@media (max-width: 355px) {
  .moqi-v12 .skip-voter-avatars {
    max-width: 92px;
  }
  .moqi-v12 .list-people {
    gap: 4px;
  }
  .moqi-v12 .face {
    width: 25px;
    height: 25px;
  }
}

.moqi-v12 input::placeholder {
  color: #757575;
}
.moqi-v12 .center {
  display: block;
  gap: normal;
}
.moqi-v12 .result-hero > p {
  margin: 1em 0;
}

.party-phasebar__meta--end {
  margin-left: auto;
}

.moqi-v12 .moqi-form-card { padding: 20px; }
.moqi-v12 .moqi-form-card h2 { margin: 0 0 14px; font-size: 21px; }
.moqi-v12 .moqi-entry-form { display: grid; gap: 12px; }
.moqi-v12 .moqi-entry-form label { display: grid; gap: 6px; color: #564658; font-weight: 650; }
.moqi-v12 .moqi-entry-form input,
.moqi-v12 .moqi-entry-form textarea,
.moqi-v12 .moqi-entry-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e1d3e3;
  border-radius: 12px;
  background: #fffdf9;
  color: #443648;
  font: inherit;
  font-size: 16px;
}
.moqi-v12 .moqi-entry-form textarea { resize: vertical; }
.moqi-v12 .moqi-style-card {
  padding: 10px 12px 6px;
}
.moqi-v12 .moqi-discussion .moqi-style-card {
  max-height: 48%;
  overflow: auto;
}
.moqi-v12 .moqi-style-card .section-title {
  margin-bottom: 4px;
}
.moqi-v12 .moqi-style-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.moqi-v12 .moqi-style-row {
  padding: 5px 0;
}
.moqi-v12 .moqi-style-row + .moqi-style-row {
  border-top: 1px solid #e8dce8;
}
.moqi-v12 .moqi-style-title,
.moqi-v12 .moqi-style-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
}
.moqi-v12 .moqi-style-title {
  font-size: 12px;
  line-height: 1.4;
}
.moqi-v12 .moqi-style-meta {
  flex-wrap: wrap;
  color: #786578;
  font-size: 10.5px;
  line-height: 1.4;
}
.moqi-v12 .moqi-style-score,
.moqi-v12 .moqi-style-guess {
  margin-left: auto;
  color: #806791;
}
.moqi-v12 .moqi-style-score {
  flex: none;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.moqi-v12 .moqi-style-guess.is-correct {
  color: #52775e;
  font-weight: 750;
}
body[data-screen='bookclub'] {
  color-scheme: light;
  background: #faf6f0;
}
body[data-screen='bookclub'] > .bar {
  display: none;
}
body[data-screen='bookclub'] > main {
  max-width: none;
  padding: 0;
}
#bookclub-game {
  color-scheme: light;
  width: 100%;
  max-width: 390px;
  height: 100%;
  margin: 0 auto;
  flex: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #faf6f0;
  line-height: normal;
}
#bookclub-game > main {
  display: block;
  padding: 0;
}
#bookclub-game button {
  background: none;
  height: auto;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  letter-spacing: normal;
}
#bookclub-game input, #bookclub-game textarea {
  height: auto;
  min-height: 0;
  margin: 0;
}
#bookclub-game h2, #bookclub-game h3 {
  line-height: normal;
}
#bookclub-game {
  --bg: #faf6f0;
  --paper: #fffdfa;
  --ink: #493d4b;
  --muted: #857786;
  --light: #aa98a6;
  --line: #eee4de;
  --purple: #8064b0;
  --purple2: #6d539b;
  --ps: #f4eef9;
  --orange: #ff8738;
  --os: #fff1e5;
  --green: #6d9b85;
  --cream: #f7f0e6;
  --shadow: 0 12px 42px rgba(79,51,89,.08);
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  color: var(--ink);
  font-size: 14px;
}
#bookclub-game * {
  box-sizing: border-box;
}
#bookclub-game button, #bookclub-game input, #bookclub-game textarea, #bookclub-game select {
  font: inherit;
  color: inherit;
}
#bookclub-game button {
  cursor: pointer;
}
#bookclub-game button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
#bookclub-game button:focus-visible, #bookclub-game input:focus-visible, #bookclub-game textarea:focus-visible {
  outline: 3px solid #b9a2db;
  outline-offset: 2px;
}
#bookclub-game h1, #bookclub-game h2, #bookclub-game h3, #bookclub-game p {
  margin: 0;
}
#bookclub-game button {
  border: 0;
}
#bookclub-game svg {
  display: block;
}
#bookclub-game .flowline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
#bookclub-game .app-head {
  padding: 13px 15px 10px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex: none;
}
#bookclub-game .bookclub-help {
  width: 32px;
  height: 32px;
  padding: 0;
  flex: 0 0 32px;
}
#bookclub-game .head-ico {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #e8dfe6;
  border-radius: 11px;
  background: #fffaf7;
  color: #76677b;
  flex: none;
}
#bookclub-game .app-logo {
  object-fit: cover;
}
#bookclub-game .head-txt {
  flex: 1;
  min-width: 0;
}
#bookclub-game .head-txt strong {
  font-size: 16px;
  letter-spacing: -.4px;
}
#bookclub-game .head-txt small {
  display: block;
  color: #a493a2;
  font-size: 10px;
  margin-top: 1px;
}
#bookclub-game .head-pill {
  font-size: 10px;
  color: var(--purple);
  background: var(--ps);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
}
#bookclub-game .app-main {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e7dddf transparent;
}
#bookclub-game .setup-top {
  padding: 10px 20px 0;
}
#bookclub-game .kick {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: .5px;
}
#bookclub-game .setup-top h2 {
  font-size: 26px;
  margin-top: 8px;
  letter-spacing: -.8px;
}
#bookclub-game .subline {
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}
#bookclub-game .players-short {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}
#bookclub-game .av {
  display: grid;
  place-items: center;
  flex: none;
  background: #e8daf8;
  color: #74569a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
  width: 27px;
  height: 27px;
  border: 2px solid var(--bg);
}
#bookclub-game .av[data-p="1"] {
  background: #ffdfcb;
  color: #ab673e;
}
#bookclub-game .av[data-p="2"] {
  background: #dfecfa;
  color: #557ca9;
}
#bookclub-game .av[data-p="3"] {
  background: #e0f1e7;
  color: #5d8d70;
}
#bookclub-game .player-names {
  font-size: 11px;
  color: #958793;
  margin-left: 3px;
}
#bookclub-game .form-stack {
  display: grid;
  gap: 14px;
  padding: 18px 18px 22px;
}
#bookclub-game .paper-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  padding: 17px;
  box-shadow: 0 2px 0 #f3e8db55;
}
#bookclub-game .setup-card-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 13px;
}
#bookclub-game .card-icon {
  flex: none;
  width: 31px;
  height: 31px;
  background: var(--ps);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--purple);
}
#bookclub-game .card-icon.orange {
  background: #fff0e2;
  color: var(--orange);
}
#bookclub-game .card-label {
  font-size: 14px;
  font-weight: 790;
}
#bookclub-game .card-hint {
  font-size: 10px;
  color: #a497a1;
  margin-top: 2px;
}
#bookclub-game .text-input, #bookclub-game .end-input {
  width: 100%;
  border: 1px solid #eee5e1;
  border-radius: 11px;
  background: #fbf8f4;
  padding: 12px 13px;
  outline: none;
  font-size: 13px;
}
#bookclub-game .text-input:focus, #bookclub-game .end-input:focus {
  background: #fff;
  border-color: #ab90cb;
  box-shadow: 0 0 0 3px #f3ecfb;
}
#bookclub-game .end-input {
  height: 82px;
  resize: vertical;
  line-height: 1.65;
}
#bookclub-game .element-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
#bookclub-game .element {
  min-width: 0;
  border: 1px solid #eee5e3;
  border-radius: 10px;
  background: #fffdfb;
  display: flex;
  align-items: center;
  padding: 0 7px 0 10px;
  height: 41px;
  gap: 5px;
  position: relative;
}
#bookclub-game .element .diamond {
  font-size: 9px;
  color: #b79ccf;
}
#bookclub-game .element input {
  width: 100%;
  border: 0;
  min-width: 0;
  background: none;
  outline: 0;
  font-size: 12px;
}
#bookclub-game .element .num {
  color: #c2b3c2;
  font-size: 9px;
}
#bookclub-game .minor-caption {
  font-size: 10px;
  color: #aaa0a6;
  margin-top: 11px;
}
#bookclub-game .error {
  font-size: 11px;
  color: #c65e52;
  margin-top: 8px;
  min-height: 16px;
}
#bookclub-game .sticky-bottom {
  padding: 12px 16px 18px;
  background: linear-gradient(to bottom,rgba(250,246,240,.92),var(--bg) 32%);
  border-top: 1px solid #ece2dc;
  flex: none;
}
#bookclub-game .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--purple);
  border-radius: 12px;
  color: #fff;
  height: 45px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px #8064b029;
}
#bookclub-game .btn-primary:hover {
  background: var(--purple2);
}
#bookclub-game .btn-primary.orange {
  background: var(--orange);
  box-shadow: 0 6px 18px #ff87382d;
}
#bookclub-game .btn-primary.orange:hover {
  background: #f27b29;
}
#bookclub-game .foot-hint {
  text-align: center;
  color: #a494a0;
  font-size: 10px;
  margin-top: 8px;
}
#bookclub-game .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #938798;
  margin-bottom: 8px;
}
#bookclub-game .bottom-row strong {
  color: var(--green);
}
#bookclub-game .game-progress {
  padding: 6px 18px 12px;
  border-bottom: 1px solid #eee3e1;
  flex: none;
}
#bookclub-game .progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #978995;
  font-size: 10px;
}
#bookclub-game .progress-top strong {
  font-weight: 800;
  color: #765e96;
}
#bookclub-game .progress-slots {
  display: flex;
  gap: 7px;
}
#bookclub-game .slot {
  flex: 1;
  background: #f2ebe9;
  border-radius: 7px;
  height: 5px;
  overflow: hidden;
}
#bookclub-game .slot {
  position: relative;
}
#bookclub-game .game-scroll {
  flex: 1;
  overflow: hidden scroll;
  scrollbar-gutter: stable both-edges;
  min-height: 0;
  padding: 16px 17px 12px;
  scrollbar-width: thin;
  scrollbar-color: #e7d7dc transparent;
}
#bookclub-game .theme-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
#bookclub-game .theme-line span {
  font-size: 10px;
  color: #937a9b;
  font-weight: 800;
}
#bookclub-game .theme-line small {
  font-size: 10px;
  color: #a598a0;
}
#bookclub-game .story-paper {
  background: var(--paper);
  border: 1px solid #e9ded7;
  border-radius: 16px;
  padding: 22px 21px 19px;
  box-shadow: 0 4px 0 #f2e9e1a3;
}
#bookclub-game .story-kicker {
  font-size: 10px;
  color: #b39caa;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 750;
}
#bookclub-game .story-title {
  font-size: 24px;
  text-align: center;
  margin-top: 9px;
  margin-bottom: 7px;
  line-height: 1.4;
  font-family: Georgia,"Songti SC","STSong",serif;
  color: #514051;
}
#bookclub-game .story-sub {
  text-align: center;
  color: #a897a5;
  font-size: 10px;
  margin-bottom: 23px;
}
#bookclub-game .flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #d1bcb4;
  margin-bottom: 20px;
}
#bookclub-game .flourish:before, #bookclub-game .flourish:after {
  content: "";
  width: 36px;
  height: 1px;
  background: #ebdcd4;
}
#bookclub-game .paragraph {
  font-family: Georgia,"Songti SC","Noto Serif CJK SC",serif;
  line-height: 2.02;
  font-size: 14px;
  color: #564754;
  text-indent: 2em;
  margin: 0 0 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#bookclub-game .paragraph:last-child {
  margin-bottom: 0;
}
#bookclub-game .ending-paragraph {
  border-top: 1px dashed #e5d7d2;
  padding-top: 15px;
  margin-top: 6px;
}
#bookclub-game .ink-stamp {
  font-size: 10px;
  color: #c68f79;
  margin-top: 12px;
  text-align: right;
}
#bookclub-game .story-activity {
  margin: 15px 3px 0;
  font-size: 11px;
  color: #8d8190;
  display: flex;
  align-items: center;
  gap: 8px;
}
#bookclub-game .story-activity .small-dot {
  height: 6px;
  width: 6px;
  background: #82ad99;
  border-radius: 50%;
}
#bookclub-game .hand-panel {
  background: #fffdfb;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid #e9dfe0;
  box-shadow: 0 -7px 28px #6e57660c;
  padding: 13px 0 13px;
  flex: none;
}
#bookclub-game .hand-title {
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}
#bookclub-game .turn-main {
  display: flex;
  align-items: center;
  gap: 7px;
}
#bookclub-game .turn-main b {
  font-size: 13px;
}
#bookclub-game .turn-main small {
  color: #aaa0a7;
  font-size: 10px;
}
#bookclub-game .timer {
  font-weight: 800;
  font-size: 12px;
  color: #7e66a8;
  padding: 6px 9px;
  background: #f3eef9;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
#bookclub-game .deck {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 17px 11px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#bookclub-game .deck::-webkit-scrollbar {
  display: none;
}
#bookclub-game .deck-card {
  height: 84px;
  min-width: 105px;
  width: 105px;
  flex: none;
  border: 1px solid #e9dcdf;
  border-radius: 12px;
  background: linear-gradient(140deg,#fffcfa,#fbf5f0);
  position: relative;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 2px 3px #4c3d4707;
}
#bookclub-game .deck-card .mini-star {
  font-size: 15px;
  color: #c3b0ce;
}
#bookclub-game .deck-card b {
  font-size: 12px;
  color: #594a5a;
  letter-spacing: .4px;
}
#bookclub-game .deck-card.selected {
  border-color: var(--purple);
  background: #f4eefa;
  box-shadow: 0 0 0 2px #a88ac237;
}
#bookclub-game .deck-card.selected .mini-star {
  color: #8d6db6;
}
#bookclub-game .hand-actions {
  padding: 0 17px;
  display: flex;
  gap: 8px;
}
#bookclub-game .hand-actions .btn-primary {
  flex: 1;
  width: auto;
  height: 41px;
}
#bookclub-game .btn-quiet {
  background: #f6eff5;
  color: #795e97;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
  border-radius: 11px;
  white-space: nowrap;
}
#bookclub-game .game-hint {
  font-size: 10px;
  color: #ab9fa7;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
#bookclub-game .recap-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 11px 17px 22px;
}
#bookclub-game .reveal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
  margin: 5px 0 13px;
}
#bookclub-game .reveal-top:before {
  content: "";
  height: 7px;
  width: 7px;
  background: #77a88d;
  border-radius: 50%;
}
#bookclub-game .book-cover {
  min-height: 151px;
  border-radius: 15px;
  background: #eee3f1;
  position: relative;
  overflow: hidden;
  padding: 25px 24px;
  box-shadow: inset 0 0 0 1px #e5d9e9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#bookclub-game .book-cover:before {
  content: "";
  position: absolute;
  border: 1px solid #bba1cb;
  border-radius: 50%;
  height: 200px;
  width: 200px;
  right: -93px;
  top: -64px;
  opacity: .46;
}
#bookclub-game .book-cover:after {
  content: "✧";
  position: absolute;
  right: 28px;
  bottom: 12px;
  font-size: 68px;
  color: #bc9fc9;
  line-height: 1;
}
#bookclub-game .cover-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9279a1;
  font-weight: 800;
}
#bookclub-game .cover-title {
  font-family: Georgia,"Songti SC","STSong",serif;
  font-size: 25px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: #543d63;
  max-width: 260px;
}
#bookclub-game .cover-footer {
  color: #977ea2;
  font-size: 10px;
  position: relative;
  z-index: 1;
}
#bookclub-game .recap-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}
#bookclub-game .recap-meta .faces {
  display: flex;
  padding-left: 4px;
}
#bookclub-game .recap-meta .av {
  margin-left: -4px;
}
#bookclub-game .recap-meta .desc {
  font-size: 10px;
  color: #a0929d;
}
#bookclub-game .recap-article {
  background: var(--paper);
  border: 1px solid #ece0d9;
  border-radius: 15px;
  padding: 19px 17px;
}
#bookclub-game .recap-article .paragraph {
  font-size: 13px;
  margin-bottom: 12px;
}
#bookclub-game .recap-article h3 {
  font-size: 12px;
  color: #77637b;
  margin-bottom: 14px;
}
#bookclub-game .trace {
  margin-top: 13px;
  border-radius: 14px;
  border: 1px solid #ebe0e0;
  background: #fffdf9;
  overflow: hidden;
}
#bookclub-game .trace summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 750;
  padding: 15px;
  list-style: none;
}
#bookclub-game .trace summary::-webkit-details-marker {
  display: none;
}
#bookclub-game .trace summary small {
  font-size: 10px;
  color: #a093a1;
  font-weight: 400;
}
#bookclub-game .trace-list {
  padding: 0 15px 15px;
}
#bookclub-game .trace-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
#bookclub-game .trace-row .av {
  width: 25px;
  height: 25px;
}
#bookclub-game .trace-name {
  color: #766979;
  font-size: 11px;
  flex: 1;
}
#bookclub-game .trace-chip {
  border: 1px solid #eadfeb;
  border-radius: 9px;
  background: #f7f1f8;
  padding: 5px 9px;
  font-size: 10px;
  color: #785c94;
}
#bookclub-game .btn-secondary {
  height: 45px;
  border: 1px solid #e8dbe9;
  background: #fffafc;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 750;
  color: var(--purple);
}
#bookclub-game .recap-final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#bookclub-game .recap-final-actions .btn-primary, #bookclub-game .recap-final-actions .btn-secondary {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 12px;
  padding: 0 8px;
}
#bookclub-game .recap-final-actions .btn-secondary {
  color: #775a96;
  background: #fffdfa;
  border: 1px solid #d8c5e6;
  box-shadow: none;
}
#bookclub-game .recap-final-actions .btn-secondary:hover {
  background: #f4edf9;
}
#bookclub-game .setup-top {
  padding: 7px 18px 0;
}
#bookclub-game .setup-top h2 {
  margin-top: 5px;
  font-size: 24px;
}
#bookclub-game .players-short {
  margin-top: 10px;
}
#bookclub-game .form-stack {
  gap: 10px;
  padding: 12px 16px 14px;
}
#bookclub-game .paper-card {
  padding: 12px 13px;
  border-radius: 15px;
}
#bookclub-game .setup-card-heading {
  margin-bottom: 9px;
  gap: 8px;
}
#bookclub-game .card-icon {
  height: 28px;
  width: 28px;
  border-radius: 9px;
}
#bookclub-game .card-hint {
  margin-top: 1px;
}
#bookclub-game .text-input {
  padding: 10px 12px;
}
#bookclub-game .element-grid {
  gap: 7px;
}
#bookclub-game .element {
  height: 37px;
}
#bookclub-game .end-input {
  height: 68px;
  padding: 10px 12px;
}
#bookclub-game .minor-caption {
  margin-top: 7px;
}
#bookclub-game .sticky-bottom {
  padding: 9px 14px 10px;
}
#bookclub-game .bottom-row {
  margin-bottom: 6px;
  line-height: 1.3;
}
#bookclub-game .sticky-bottom .btn-primary, #bookclub-game .recap-final-actions .btn-secondary {
  height: 40px;
}
#bookclub-game .recap-final-actions {
  gap: 9px;
}
#bookclub-game .recap-final-actions .btn-primary, #bookclub-game .recap-final-actions .btn-secondary {
  height: 40px;
}
#bookclub-game .foot-hint {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.3;
}
#bookclub-game .error {
  margin-top: 5px;
  min-height: 0;
  line-height: 1.3;
}
#bookclub-game .error:empty {
  display: none;
}
#bookclub-game .style-tag {
  display: inline-block;
  font-style: normal;
  color: #765795;
  background: #f1eaf7;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 5px;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 650;
  vertical-align: middle;
  max-width: 132px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
#bookclub-game .theme-line {
  gap: 8px;
}
#bookclub-game .theme-line span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
#bookclub-game .theme-line small {
  white-space: nowrap;
  flex: none;
}
#bookclub-game .story-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
#bookclub-game .story-origin {
  font-size: 10px;
  color: #b7a6af;
  white-space: nowrap;
}
#bookclub-game .theme-line {
  min-width: 0;
}
#bookclub-game .theme-line span {
  overflow: hidden;
  white-space: nowrap;
}
#bookclub-game .theme-line .style-tag {
  flex: none;
}
#bookclub-game .recap-draw-summary {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #8c7999;
  margin: -6px 0 12px;
}
#bookclub-game .app-head {
  padding-top: max(13px, env(safe-area-inset-top));
}
#bookclub-game .sticky-bottom {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
#bookclub-game .hand-panel {
  padding-bottom: max(13px, env(safe-area-inset-bottom));
}
#bookclub-game .slot {
  width: 0;
  appearance: none;
  border: 0;
}
#bookclub-game .slot::-webkit-progress-bar {
  background: #f2ebe9;
}
#bookclub-game .slot::-webkit-progress-value {
  border-radius: 7px;
  background: #b59acb;
}
#bookclub-game .slot::-moz-progress-bar {
  border-radius: 7px;
  background: #b59acb;
}
#bookclub-game .timer[data-urgent='true'] {
  color: #b95647;
  background: #fff0eb;
}
#bookclub-game .theme-line small {
  max-width: 47%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bookclub-game .story-origin {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bookclub-game .head-pill svg {
  display: inline-block;
  vertical-align: middle;
}
#bookclub-game .finished-panel {
  padding: 9px 17px 12px;
}
#bookclub-game .pending-note {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
#bookclub-game .pending-note + .hand-actions {
  margin-top: 10px;
}
@keyframes bookclub-ink {
  from {
    opacity: .25;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#bookclub-game .moment {
  animation: bookclub-ink .35s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #bookclub-game .moment {
    animation: none;
  }
}
@media (max-width: 675px) {
  #bookclub-game {
    max-width: none;
  }
}
