:root {
  --bg-deep: #0b0f19;
  --bg-mid: #0f1524;
  --card-bg: #151c2c;
  --card-border: #2a3754;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --pink: #f43f5e;
  --purple: #8b5cf6;
  --amber: #facc15;
  --emerald: #34d399;
  --danger: #f43f5e;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, #0b0f19 0%, #0d1322 100%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* 顶部氛围背景：黑胶夜沙龙聚光灯 + 细密暗纹网格 */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(34, 211, 238, 0.08) 45%, transparent 74%);
  filter: blur(36px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}

.conn-banner {
  position: sticky;
  top: 6px;
  z-index: 60;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
  padding: 8px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

/* 首页大厅 */
.lobby-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 10px;
}

.lobby-header {
  text-align: center;
  padding: 4px 4px 18px;
}

.lobby-crest-frame {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(34, 211, 238, 0.14);
  background: #0b0f19;
  animation: crestFloat 5s ease-in-out infinite;
}

.lobby-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: #facc15;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46b889;
  box-shadow: 0 0 8px rgba(70, 184, 137, 0.9);
}

.brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 15%, #22d3ee 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.card {
  background: #151c2c;
  border: 2px solid #283554;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 #05070d;
}

.neon-border-gold,
.neon-border-cyan {
  border-color: #22d3ee;
  box-shadow: 4px 4px 0 #05070d;
}

/* 玩家名片 */
.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-picker {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 2px solid rgba(139, 92, 246, 0.65);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.15));
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.avatar-picker:active {
  transform: scale(0.94);
}

.avatar-edit-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  border: 2px solid #0b0f19;
}

.profile-input-wrap {
  flex: 1;
  min-width: 0;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(11, 15, 25, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 16px;
  padding: 11px 12px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.btn-chip {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-chip:active {
  transform: scale(0.96);
}

/* 按钮体系 */
.btn {
  width: 100%;
  border: 2px solid #05070d;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 3px 3px 0 #05070d;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease, opacity 0.14s ease;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #05070d;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-xl {
  min-height: 54px;
  font-size: 17px;
  padding: 12px 18px;
}

.btn-lg {
  min-height: 48px;
  font-size: 15px;
  padding: 10px 16px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(5, 7, 13, 0.45);
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 48%, #22d3ee 100%);
  border-color: #05070d;
  box-shadow: 4px 4px 0 #05070d;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-vermilion,
.btn-pink {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-color: #05070d;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-amber {
  color: #0b0f19;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  border-color: #05070d;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-purple {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #05070d;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-gold-outline {
  color: #facc15;
  background: #151c2c;
  border: 2px solid #facc15;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-vermilion-outline {
  color: #f43f5e;
  background: #151c2c;
  border: 2px solid #f43f5e;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-span-full {
  grid-column: 1 / -1;
}

.btn-secondary {
  color: #f8fafc;
  background: #1e273d;
  border: 2px solid #334266;
  box-shadow: 3px 3px 0 #05070d;
}

.btn-emerald {
  color: #052e16;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: #05070d;
  box-shadow: 3px 3px 0 #05070d;
}

.invite-banner-title {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 700;
  text-align: center;
}

.invite-room-badge {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 12px;
  letter-spacing: 2px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.join-row {
  display: flex;
  gap: 10px;
}

.room-code-input {
  flex: 1.1;
  text-align: center;
  font-weight: 800;
  letter-spacing: 4px;
}

.join-row .btn {
  flex: 0.9;
}

/* 游戏目录卡片 */
.catalog-section {
  margin-top: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.status-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.catalog-grid {
  display: grid;
  gap: 10px;
}

.game-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #151c2c;
  border: 2px solid #2a3754;
  box-shadow: 4px 4px 0 #05070d;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.14s ease, border-color 0.15s ease;
}

.game-card.is-active:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #05070d;
}

.game-card.is-active {
  border-color: #334366;
  background: #151c2c;
}

.game-card.pop-accent-cyan.is-active {
  border-color: rgba(34, 211, 238, 0.55);
}

.game-card.pop-accent-rose.is-active {
  border-color: rgba(244, 63, 94, 0.55);
}

.game-card.pop-accent-yellow.is-active {
  border-color: rgba(250, 204, 21, 0.55);
}

.game-card.pop-accent-purple.is-active {
  border-color: rgba(139, 92, 246, 0.55);
}

.game-card.pop-accent-mint.is-active {
  border-color: rgba(52, 211, 153, 0.55);
}

.game-card.is-soon {
  opacity: 0.72;
}

.game-card:active {
  transform: translate(2px, 2px) scale(0.99);
  box-shadow: 2px 2px 0 #05070d;
}

.game-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0b0f19;
  border: 2px solid #283554;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.pop-icon-cyan .ui-icon { color: #22d3ee; }
.pop-icon-rose .ui-icon { color: #f43f5e; }
.pop-icon-yellow .ui-icon { color: #facc15; }
.pop-icon-purple .ui-icon { color: #a78bfa; }
.pop-icon-mint .ui-icon { color: #34d399; }

.game-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.pop-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid #05070d;
}

.pop-tag-players {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.pop-tag-cyan { background: rgba(34, 211, 238, 0.2); color: #67e8f9; border-color: rgba(34, 211, 238, 0.5); }
.pop-tag-rose { background: rgba(244, 63, 94, 0.2); color: #fda4af; border-color: rgba(244, 63, 94, 0.5); }
.pop-tag-yellow { background: rgba(250, 204, 21, 0.2); color: #fde047; border-color: rgba(250, 204, 21, 0.5); }
.pop-tag-purple { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.55); }
.pop-tag-mint { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.5); }

.game-info {
  flex: 1;
  min-width: 0;
}

.game-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.game-name {
  font-size: 15px;
  font-weight: 700;
}

.game-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-hot {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.badge-soon {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.game-desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 房间顶栏：精简固定单手友好 */
.room-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  margin: 0 -4px 12px;
  border-radius: 14px;
  background: rgba(21, 28, 44, 0.94);
  border: 2px solid #2a3754;
  box-shadow: 3px 3px 0 #05070d;
  backdrop-filter: blur(10px);
}

.room-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.room-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #0b0f19;
  border: 1.5px solid #2a3754;
  flex-shrink: 0;
}

.room-code-label {
  font-size: 11px;
  color: var(--text-muted);
}

.room-code-pill strong {
  font-size: 14px;
  color: #22d3ee;
  letter-spacing: 1px;
}

.top-ai-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #facc15;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.4);
  white-space: nowrap;
}

.room-top-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.15s ease;
}

.btn-mini:active {
  transform: scale(0.95);
}

.btn-mini-cyan {
  background: rgba(34, 211, 238, 0.14);
  color: #facc15;
  border: 1px solid rgba(34, 211, 238, 0.36);
}

.btn-mini-gold {
  background: rgba(34, 211, 238, 0.16);
  color: #facc15;
  border: 1px solid rgba(34, 211, 238, 0.42);
}

.btn-mini-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-sound-toggle.is-muted {
  opacity: 0.65;
  color: #92909a;
}

/* 玩家列表网格 */
.seats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seat-card {
  position: relative;
  background: rgba(11, 15, 25, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.seat-card.is-self {
  border-color: rgba(34, 211, 238, 0.45);
}

.seat-card.is-ai-preview {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

.seat-card.is-dead {
  opacity: 0.48;
  filter: grayscale(0.6);
}

.seat-card.is-selectable {
  cursor: pointer;
}

.seat-card.is-selectable:active {
  transform: scale(0.95);
}

.seat-card.is-selected {
  border-color: var(--pink);
  background: rgba(244, 63, 94, 0.18);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.3);
}

.seat-avatar {
  font-size: 28px;
  line-height: 1.2;
}

.seat-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-tags {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.tag-host {
  background: rgba(251, 191, 36, 0.2);
  color: var(--amber);
}

.tag-ai {
  background: rgba(139, 92, 246, 0.22);
  color: #8b5cf6;
}

.tag-self {
  background: rgba(34, 211, 238, 0.2);
  color: var(--cyan);
}

.tag-offline {
  background: rgba(251, 113, 133, 0.22);
  color: #f43f5e;
}

.tag-done {
  background: rgba(52, 211, 153, 0.22);
  color: var(--emerald);
}

.tag-dead {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.tag-civilian {
  background: rgba(34, 211, 238, 0.2);
  color: var(--cyan);
}

.tag-undercover {
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

/* 设置面板 */
.setting-group {
  margin-bottom: 14px;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.setting-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.segmented {
  display: flex;
  gap: 8px;
}

.seg-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 15, 25, 0.65);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.seg-btn.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
}

.seg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 游戏顶部秘密词卡 */
.secret-word-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.2));
  border: 1.5px solid rgba(34, 211, 238, 0.45);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.phase-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.phase-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.timer-pill {
  font-size: 13px;
  font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.timer-pill.urgent {
  color: var(--pink);
  animation: pulse 0.8s infinite alternate;
}

.word-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(11, 15, 25, 0.6);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.word-label {
  font-size: 11px;
  color: var(--text-muted);
}

.word-value {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
}

.word-value.masked {
  letter-spacing: 4px;
  color: var(--text-muted);
}

.eye-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.25s linear;
}

/* 发言时间线 */
.timeline-round {
  background: rgba(11, 15, 25, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
}

.timeline-round.is-latest {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.06);
}

.timeline-round-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
}

.clue-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.clue-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.clue-avatar {
  font-size: 20px;
  flex-shrink: 0;
}

.clue-body {
  flex: 1;
  min-width: 0;
}

.clue-author {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.clue-text {
  font-size: 14px;
  color: #ffffff;
  margin-top: 2px;
  word-break: break-word;
}

/* 淘汰揭晓动画卡片 */
.elim-reveal-card {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(244, 63, 94, 0.18), rgba(24, 26, 56, 0.9));
  border: 1.5px solid rgba(244, 63, 94, 0.5);
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.elim-avatar-big {
  font-size: 48px;
  margin-bottom: 6px;
}

.role-stamp {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  animation: stampIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.role-stamp.is-undercover {
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  border: 2px solid var(--pink);
}

.role-stamp.is-civilian {
  background: rgba(34, 211, 238, 0.22);
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.tally-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 15, 25, 0.55);
  margin-bottom: 6px;
  font-size: 13px;
}

.vote-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.vote-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* 战报双词揭晓 */
.words-reveal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.word-reveal-box {
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.word-reveal-box.civ {
  background: rgba(34, 211, 238, 0.14);
  border: 1.5px solid rgba(34, 211, 238, 0.45);
}

.word-reveal-box.und {
  background: rgba(244, 63, 94, 0.16);
  border: 1.5px solid rgba(244, 63, 94, 0.5);
}

.word-reveal-box strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

/* 大类 / 细分领域多选树 */
.cat-quick-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.cat-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-major-card {
  background: rgba(11, 15, 25, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.cat-major-card.has-selected {
  border-color: rgba(34, 211, 238, 0.4);
}

.cat-major-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.cat-major-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.cat-major-toggle:disabled {
  cursor: default;
}

.cat-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.cat-check-box.checked {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07101d;
  font-weight: 900;
}

.cat-check-box.partial {
  background: rgba(34, 211, 238, 0.25);
  border-color: var(--cyan);
  color: var(--cyan);
}

.cat-expand-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cat-sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.cat-sub-chip {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.cat-sub-chip.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
}

.cat-sub-chip:disabled {
  cursor: default;
  opacity: 0.7;
}

/* 票型柱状条与观战提示 */
.vote-record-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.vote-bar-row {
  margin-bottom: 7px;
}

.vote-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.vote-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.spectator-banner {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
}

/* ==================== 《AI 灵魂画师》与全平台画板样式 ==================== */
.app-shell.wide-mode {
  max-width: 700px;
}

body.drawing-lock {
  overscroll-behavior: none;
}

.create-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.room-game-switcher {
  margin-bottom: 12px;
}

.room-game-switcher .segmented {
  flex-wrap: wrap;
}

.room-game-switcher .seg-btn {
  flex: 1 1 82px;
  font-size: 13px;
  padding: 6px 8px;
}

.relay-chain-builder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: rgba(11, 15, 25, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.relay-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.relay-block.is-fixed {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.relay-block.is-draw {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.relay-block.is-guess_ai {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #8b5cf6;
}

.relay-block.is-guess_human {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--emerald);
}

.relay-arrow {
  font-size: 12px;
  color: var(--text-muted);
}

.block-del-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.draw-board-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.draw-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  touch-action: none;
}

.draw-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.draw-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.draw-toolbar {
  margin-top: 10px;
  background: rgba(11, 15, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draw-top-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.draw-mode-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.mode-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.mode-pill.active {
  background: linear-gradient(135deg, #facc15, #8b5cf6);
  color: #07101d;
}

.draw-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draw-size-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brush-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.size-btn {
  padding: 4px 4px;
  justify-content: center;
  font-size: 11px;
}

.stepless-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.size-label-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.size-slider {
  flex: 1;
  accent-color: var(--cyan);
  cursor: pointer;
  height: 6px;
}

.size-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 68px;
  justify-content: flex-end;
  font-size: 12px;
}

.size-preview-circle {
  display: inline-block;
  border-radius: 50%;
  background: var(--cyan);
}

.draw-colors-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.pro-palette-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-palette-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.native-picker-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.native-picker-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.picker-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.recent-colors-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pro-colors-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.color-dot {
  width: 100%;
  aspect-ratio: 1;
  max-width: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.color-dot.small {
  max-width: 26px;
}

.color-dot.tiny {
  width: 20px;
  height: 20px;
  max-width: 20px;
  margin: 0;
}

.color-dot.active {
  transform: scale(1.16);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--cyan);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn {
  min-height: 34px;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tool-btn.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.22);
  color: var(--cyan);
}

.tool-btn.tool-danger {
  color: #f43f5e;
}

.brush-dot {
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.ref-image-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.ref-drawing-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.showcase-step-card {
  background: rgba(11, 15, 25, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  animation: popIn 0.32s ease;
}

.showcase-step-card.is-prompt {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.1);
}

.showcase-step-card.is-ai-guess {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.14);
}

.showcase-step-card.is-human-guess {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.12);
}

.showcase-step-card.is-winner-art {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.18);
}

.showcase-step-card.is-selected-art {
  border-color: var(--pink);
}

/* 长图战报弹窗 */
.long-img-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.long-img-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  background: #0b0f19;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.long-img-scroll {
  overflow-y: auto;
  max-height: 62dvh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.long-img-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

.sticky-footer {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  margin-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 90vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(21, 28, 44, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  text-align: center;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* ==================== 《瞎编百科 / 谎言大作战》样式 ==================== */
.bluff-theme-input {
  margin-top: 8px;
}

.bluff-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.bluff-round-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-category {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
}

.badge-double {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(244, 63, 94, 0.35));
  border-color: rgba(251, 191, 36, 0.7);
  animation: pulse 0.9s infinite alternate;
}

.badge-reveal {
  color: #f43f5e;
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.42);
}

.bluff-question-card {
  background: linear-gradient(160deg, rgba(24, 32, 50, 0.9), rgba(15, 21, 36, 0.92));
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.bluff-question-card.compact {
  padding: 12px 14px;
}

.bluff-intro-focus {
  text-align: center;
  padding: 26px 18px;
}

.bluff-intro-kicker {
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.bluff-intro-sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.bluff-question-label {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
}

.bluff-question-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  color: #f8fafc;
}

.bluff-blank-slot {
  display: inline-block;
  padding: 0 10px;
  margin: 0 4px;
  border-radius: 8px;
  color: #fde047;
  background: rgba(250, 204, 21, 0.16);
  border-bottom: 2px dashed #fbbf24;
}

.bluff-prophet-banner {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.22));
  border: 1px solid rgba(52, 211, 153, 0.65);
  color: #d1fae5;
  font-size: 14px;
  line-height: 1.5;
  animation: popIn 0.25s ease;
}

.bluff-dup-banner {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.55);
  color: #fecdd3;
  font-size: 13px;
  font-weight: 600;
}

.bluff-write-guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}

.bluff-lie-textarea {
  resize: none;
  min-height: 82px;
  font-size: 15px;
  line-height: 1.5;
}

.bluff-write-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 10px;
}

.bluff-write-actions .btn {
  width: auto;
  flex-shrink: 0;
  padding: 10px 18px;
}

.bluff-locked-box {
  text-align: center;
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.bluff-locked-title {
  font-size: 14px;
  font-weight: 800;
  color: #34d399;
}

.bluff-locked-text {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.bluff-locked-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.bluff-progress-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-chip em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
}

.status-chip.is-done {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
}

.status-chip.is-done em {
  color: var(--cyan);
  font-weight: 700;
}

.bluff-vote-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.bluff-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bluff-option-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.bluff-option-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.bluff-option-main:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.1);
}

.bluff-option-row.is-voted .bluff-option-main {
  border-color: #facc15;
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.bluff-option-row.is-mine .bluff-option-main {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
}

.bluff-opt-index {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.bluff-opt-text {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.bluff-mine-tag,
.bluff-picked-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bluff-mine-tag {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.bluff-picked-tag {
  background: rgba(34, 211, 238, 0.25);
  color: #facc15;
}

.bluff-like-btn {
  min-width: 54px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.bluff-like-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bluff-like-btn.is-liked {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
  transform: scale(1.04);
}

.bluff-like-num {
  font-size: 11px;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.1;
}

.bluff-reveal-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.bluff-reveal-card {
  animation: popIn 0.26s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.bluff-reveal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  margin-bottom: 8px;
}

.bluff-reveal-badge.truth {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.bluff-reveal-answer {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.bluff-fooled-headline {
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 6px;
}

.voter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.bluff-author-flip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(21, 28, 44, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.bluff-reveal-card.is-suspense .bluff-flip-pending {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fde047;
  animation: pulse 0.55s infinite alternate;
}

.bluff-reveal-card.is-suspense .bluff-flip-result {
  display: none;
}

.bluff-reveal-card.is-flipped .bluff-flip-pending {
  display: none;
}

.bluff-reveal-card.is-flipped .bluff-flip-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  animation: stampIn 0.28s ease;
}

.bluff-reveal-card.is-flipped .bluff-author-flip.is-human {
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.16);
}

.bluff-reveal-card.is-flipped .bluff-author-flip.is-ai {
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.18);
}

.author-badge {
  font-size: 14px;
  font-weight: 800;
}

.author-badge.human {
  color: #fde68a;
}

.author-badge.ai {
  color: #8b5cf6;
}

.score-delta {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.score-delta.win {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.score-delta.zero {
  background: rgba(244, 63, 94, 0.24);
  color: #f43f5e;
}

.score-delta.funny {
  background: rgba(251, 191, 36, 0.22);
  color: #fde047;
}

.bluff-summary-block + .bluff-summary-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bluff-unfooled-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bluff-unfooled-item,
.bluff-funniest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.bluff-truth-card {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.45), rgba(21, 28, 44, 0.92));
}

.bluff-truth-answer {
  font-size: 22px;
  font-weight: 900;
  color: #6ee7b7;
  margin-bottom: 10px;
}

.bluff-truth-hit-title {
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.bluff-truth-miss {
  font-size: 14px;
  font-weight: 700;
  color: #f43f5e;
}

.bluff-prophet-row {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
}

.bluff-explanation-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.bluff-exp-label {
  font-size: 12px;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 4px;
}

.bluff-exp-text {
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}

.bluff-mini-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-score-pill.is-self {
  border-color: var(--cyan);
}

.bluff-gameover-hero {
  text-align: center;
}

.bluff-gameover-title {
  font-size: 22px;
  font-weight: 900;
  color: #fde68a;
}

.bluff-gameover-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.bluff-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.bluff-award-card {
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.bluff-award-card.bluffer {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(245, 158, 11, 0.12);
}

.bluff-award-card.wiki {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.12);
}

.award-icon {
  font-size: 26px;
}

.award-title {
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}

.award-winner {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 6px;
}

.award-stat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.bluff-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bluff-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bluff-rank-row.is-champ {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.14);
}

.bluff-rank-row.is-self {
  box-shadow: 0 0 0 1px var(--cyan);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-medal {
  font-size: 18px;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
}

.rank-name {
  font-size: 15px;
  font-weight: 800;
}

.rank-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.rank-score {
  font-size: 18px;
  font-weight: 900;
  color: #fde68a;
}

.bluff-gameover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .bluff-awards-grid,
  .bluff-gameover-actions {
    grid-template-columns: 1fr;
  }
}

/* ==================== 《记忆篡改接力 / 离谱故事续写》样式 ==================== */
.story-custom-sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.story-custom-sec-row .text-input {
  width: 110px;
}

.badge-story-book {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.45);
}

.story-hijack-mission {
  background: linear-gradient(145deg, rgba(159, 18, 57, 0.45), rgba(69, 10, 10, 0.72));
  border: 1.5px solid rgba(251, 113, 133, 0.78);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.25);
  animation: popIn 0.28s ease;
}

.story-hijack-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.28);
  color: #fecdd3;
  margin-bottom: 8px;
}

.story-hijack-text {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.5;
}

.story-hijack-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #f43f5e;
}

.story-context-card {
  border: 1px solid rgba(192, 132, 252, 0.38);
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.75), rgba(21, 28, 44, 0.92));
}

.story-ctx-label {
  font-size: 12px;
  font-weight: 800;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.story-opening-box {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #f8fafc;
}

.story-memory-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.75);
  border: 1px dashed rgba(139, 92, 246, 0.45);
}

.story-noise-mask {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(148, 163, 184, 0.16),
    rgba(148, 163, 184, 0.16) 6px,
    rgba(24, 32, 50, 0.45) 6px,
    rgba(24, 32, 50, 0.45) 12px
  );
  color: #64748b;
  font-size: 12px;
  user-select: none;
  margin-bottom: 10px;
}

.story-noise-mask span {
  filter: blur(2px);
  letter-spacing: 1px;
  animation: pulse 1.1s infinite alternate;
}

.story-noise-mask em {
  font-style: normal;
  font-weight: 700;
  color: #cbd5e1;
}

.story-memory-tail {
  font-size: 18px;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.55;
}

.story-ellipsis {
  color: #94a3b8;
  margin-right: 4px;
}

.story-textarea {
  resize: none;
  min-height: 98px;
  font-size: 15px;
  line-height: 1.55;
}

.setting-hint.is-warn {
  color: #f43f5e;
  font-weight: 700;
}

.story-submitted-preview {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #f8fafc;
}

.story-hijack-interlude {
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(circle at center, rgba(159, 18, 57, 0.52), rgba(21, 28, 44, 0.94));
  border: 2px solid rgba(251, 113, 133, 0.8);
  animation: pulse 0.55s infinite alternate;
}

.story-glitch-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.story-glitch-title {
  font-size: 20px;
  font-weight: 900;
  color: #fecdd3;
}

.story-glitch-sub {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fde047;
}

.story-glitch-desc {
  margin-top: 12px;
  font-size: 13px;
  color: #e2e8f0;
}

.story-polish-interlude {
  text-align: center;
  padding: 36px 18px;
  border: 1.5px solid rgba(192, 132, 252, 0.55);
}

.story-polish-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.story-polish-title {
  font-size: 19px;
  font-weight: 800;
  color: #8b5cf6;
}

.story-polish-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.story-novel-cover {
  background: linear-gradient(150deg, rgba(88, 28, 135, 0.45), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(192, 132, 252, 0.55);
}

.story-novel-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #f43f5e;
}

.story-novel-title {
  margin: 6px 0 10px;
  font-size: 21px;
  font-weight: 900;
  color: #fde68a;
  line-height: 1.35;
}

.story-novel-opening {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

.story-segments-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.story-bridge-card {
  background: rgba(136, 19, 55, 0.35);
  border: 1px solid rgba(251, 113, 133, 0.58);
  animation: popIn 0.25s ease;
}

.story-editor-bridge {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  border-left: 3px solid var(--cyan);
  font-size: 13px;
  color: #a5f3fc;
  line-height: 1.5;
}

.story-segment-card {
  animation: popIn 0.25s ease;
}

.story-seg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.story-seg-author {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
}

.story-seg-hint {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.story-hint-blur {
  filter: blur(1.5px);
  color: #64748b;
  margin-right: 3px;
}

.story-seg-body {
  font-size: 15px;
  line-height: 1.65;
  color: #f8fafc;
}

.story-critique-card {
  background: linear-gradient(150deg, rgba(6, 78, 59, 0.42), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  margin-bottom: 12px;
}

.story-critique-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #6ee7b7;
}

.story-absurdity-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(251, 191, 36, 0.22);
  color: #fde047;
}

.story-critique-text {
  margin: 10px 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ==================== 《AI 海龟汤》样式 ==================== */
.soup-pinned-card {
  position: sticky;
  top: 8px;
  z-index: 15;
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.42), rgba(21, 28, 44, 0.96));
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.soup-surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.soup-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-soup-genre {
  align-self: flex-start;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
}

.soup-case-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ecfdf5;
}

.soup-remain-pill {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #facc15;
}

.soup-surface-body {
  font-size: 15px;
  line-height: 1.65;
  color: #f8fafc;
}

.soup-radar-bar {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.soup-radar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #a7f3d0;
}

.soup-stars-group {
  display: inline-flex;
  gap: 4px;
  font-size: 17px;
}

.soup-star {
  color: rgba(148, 163, 184, 0.45);
}

.soup-star.is-lit {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  animation: popIn 0.25s ease;
}

.soup-qa-feed {
  max-height: 310px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.soup-qa-empty {
  text-align: center;
  padding: 24px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.soup-qa-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: popIn 0.2s ease;
}

.soup-qa-item.is-highlight {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.55);
}

.soup-qa-q {
  font-size: 14px;
  line-height: 1.5;
  color: #f8fafc;
}

.soup-qa-seq {
  display: inline-block;
  margin-right: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.soup-qa-a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.soup-verdict-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.soup-verdict-pill.is-yes {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.soup-verdict-pill.is-no {
  background: rgba(244, 63, 94, 0.22);
  color: #f43f5e;
}

.soup-verdict-pill.is-irrelevant {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.soup-verdict-pill.is-split {
  background: rgba(251, 191, 36, 0.22);
  color: #fde047;
}

.soup-verdict-pill.is-pending {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.soup-ai-comment {
  font-size: 12px;
  color: #94a3b8;
}

.soup-clue-hit-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(244, 63, 94, 0.35));
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.65);
}

.soup-ask-dock {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 16;
  background: rgba(21, 28, 44, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.soup-ask-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.soup-ask-row .text-input,
.soup-ask-input {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 54px;
  resize: none;
  font-size: 15px;
  line-height: 1.45;
  color: #f8fafc;
}

.soup-ask-row .btn,
.soup-ask-btn {
  width: auto;
  flex-shrink: 0;
  min-width: 84px;
  padding: 0 16px;
  white-space: nowrap;
}

.soup-early-btn {
  margin-top: 10px;
}

.soup-truth-textarea {
  resize: none;
  min-height: 110px;
  font-size: 15px;
  line-height: 1.55;
}

.soup-guess-btns {
  display: flex;
  gap: 8px;
}

.soup-guess-btns .btn {
  width: auto;
  flex-shrink: 0;
  padding: 10px 14px;
}

.soup-truth-reveal-card {
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.48), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(52, 211, 153, 0.65);
}

.soup-reveal-kicker {
  font-size: 15px;
  font-weight: 900;
  color: #6ee7b7;
  margin-bottom: 10px;
}

.soup-reveal-surface {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.soup-reveal-truth {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  font-size: 15px;
  line-height: 1.65;
  color: #ecfdf5;
}

.soup-truth-label {
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 5px;
}

.soup-clues-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 15, 25, 0.55);
}

.soup-clues-title {
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 4px;
}

.soup-clues-summary ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.6;
}

.soup-yes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.soup-yes-row {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.soup-yes-row.is-key {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.soup-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soup-result-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.soup-result-card.is-king {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.72);
}

.soup-result-card.is-self {
  box-shadow: 0 0 0 1px var(--cyan);
}

.soup-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.soup-king-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1003;
}

.soup-score-num {
  font-size: 20px;
  font-weight: 900;
  color: #6ee7b7;
}

.soup-result-guess {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #f8fafc;
}

.soup-result-comment {
  margin-top: 6px;
  font-size: 13px;
  color: #a7f3d0;
}

/* ==================== 《限时押韵 Battle 模拟器》样式 ==================== */
.badge-rhyme-circle {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.45);
}

.rhyme-beat-on {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #facc15;
}

.rhyme-setup-card {
  text-align: center;
  padding: 28px 18px;
  background: linear-gradient(155deg, rgba(131, 24, 67, 0.35), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(244, 63, 94, 0.55);
}

.rhyme-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 22px;
}

.rhyme-wave-bars span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #facc15, #f43f5e);
  animation: waveBar 0.65s ease-in-out infinite alternate;
}

.rhyme-wave-bars span:nth-child(2n) {
  animation-delay: 0.18s;
}

.rhyme-wave-bars span:nth-child(3n) {
  animation-delay: 0.34s;
}

@keyframes waveBar {
  from {
    height: 6px;
    opacity: 0.55;
  }
  to {
    height: 22px;
    opacity: 1;
  }
}

.rhyme-setup-kicker {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #f43f5e;
}

.rhyme-topic-big {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.45;
}

.rhyme-badge-hero {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(244, 63, 94, 0.32));
  border: 1.5px solid rgba(251, 191, 36, 0.65);
}

.rhyme-hints-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.rhyme-hud-card .rhyme-hints-wrap {
  justify-content: flex-start;
}

.rhyme-hint-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.rhyme-hint-pill.is-clickable {
  cursor: pointer;
  font-family: inherit;
}

.rhyme-hint-pill.is-clickable:hover {
  background: rgba(56, 189, 248, 0.28);
}

.rhyme-hook-preview {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}

.rhyme-hook-preview b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #facc15;
}

.rhyme-hud-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  background: linear-gradient(155deg, rgba(30, 27, 75, 0.88), rgba(21, 28, 44, 0.94));
}

.rhyme-danmaku-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.rhyme-danmaku-pill {
  position: absolute;
  right: -20px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(21, 28, 44, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.7);
  color: #fde047;
  animation: danmakuFly 2.5s linear forwards;
}

.rhyme-danmaku-pill.kind-skr {
  border-color: #fb7185;
  color: #f43f5e;
}

.rhyme-danmaku-pill.kind-respect {
  border-color: #facc15;
  color: #facc15;
}

@keyframes danmakuFly {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-480px);
    opacity: 0;
  }
}

.rhyme-hud-topic {
  font-size: 15px;
  line-height: 1.5;
  color: #f8fafc;
}

.rhyme-hud-rhyme {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
  color: #fde047;
}

.rhyme-prev-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.72);
  border-left: 3px solid #f43f5e;
}

.rhyme-prev-text {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 800;
  color: #facc15;
}

.rhyme-judge-banner {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  animation: popIn 0.25s ease;
}

.rhyme-judge-banner.is-pass {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.5);
}

.rhyme-judge-banner.is-fail {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.55);
}

.rhyme-judge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rhyme-result-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rhyme-result-pill.pass {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.rhyme-result-pill.fail {
  background: rgba(244, 63, 94, 0.26);
  color: #f43f5e;
}

.rhyme-judge-line {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.rhyme-judge-comment {
  margin-top: 4px;
  font-size: 12px;
  color: #fde68a;
}

.rhyme-mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.rhyme-mc-chip {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.rhyme-mc-chip.is-active-mc {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.16);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.28);
}

.rhyme-mc-chip.is-out {
  opacity: 0.55;
}

.rhyme-mc-chip.is-self {
  border-color: var(--cyan);
}

.rhyme-mc-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 6px;
}

.rhyme-mc-sub {
  margin-top: 4px;
  font-size: 12px;
}

.rhyme-out-tag {
  color: #f43f5e;
  font-weight: 700;
}

.rhyme-turn-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #f43f5e;
}

.rhyme-textarea {
  resize: none;
  min-height: 76px;
  font-size: 15px;
  line-height: 1.55;
}

.rhyme-judging-box,
.rhyme-watch-box {
  text-align: center;
  padding: 8px 4px;
}

.rhyme-watch-title {
  font-size: 15px;
}

.rhyme-reaction-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rhyme-react-btn {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  font-size: 13px;
}

.rhyme-awards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rhyme-punch-card {
  background: rgba(244, 63, 94, 0.14);
  border: 1.5px solid rgba(244, 63, 94, 0.6);
  text-align: center;
  margin: 0;
}

.rhyme-punch-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #f43f5e;
}

.rhyme-punch-line {
  margin: 6px 0;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.rhyme-punch-meta {
  font-size: 12px;
  color: #fbcfe8;
}

.rhyme-choke-bar {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #cbd5e1;
}

.rhyme-cypher-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rhyme-cypher-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rhyme-cypher-row.is-fail {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
}

.rhyme-cypher-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.rhyme-cypher-text {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.rhyme-cypher-comment {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 房间 AI 裁判引擎切换器 ==================== */
.room-ai-switcher {
  margin-bottom: 10px;
}

.ai-switcher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(21, 28, 44, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.ai-switcher-label {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
  white-space: nowrap;
}

.ai-switcher-select {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.ai-switcher-badge {
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
}

/* ==================== 3 个新纯文字多人玩法样式（毒舌法庭 / 危机甩锅 / 灵魂拍卖） ==================== */
.court-rules-banner {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}

.badge-court-phase {
  color: #facc15;
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.45);
}

.badge-crisis-hot {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
}

.badge-auction-lot {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
}

.badge-coins {
  color: #fef08a;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.48);
}

.badge-auction-leader {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
}

.court-versus-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(244, 63, 94, 0.14));
}

.court-side {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.court-side.is-me {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.22);
}

.court-side-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.court-side-avatar {
  font-size: 26px;
  margin: 2px 0;
}

.court-side-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.court-vs-mid {
  font-size: 18px;
  font-weight: 900;
  color: var(--amber);
  flex-shrink: 0;
}

.court-wait-box {
  text-align: center;
  padding: 16px 10px;
}

.court-wait-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.court-wait-title {
  font-size: 15px;
  font-weight: 700;
}

.court-charge-card {
  background: linear-gradient(155deg, rgba(24, 32, 50, 0.9), rgba(21, 28, 44, 0.94));
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.court-charge-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
}

.court-charge-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.court-charge-detail {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
}

.court-defense-quote {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  font-size: 14px;
  line-height: 1.55;
  color: #fce7f3;
}

.court-testimony-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.court-testimony-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.court-tm-author {
  font-weight: 700;
  color: var(--amber);
}

.court-tm-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.court-tm-input-row input {
  flex: 1;
  min-width: 0;
}

.court-tm-send-btn {
  width: auto;
  flex-shrink: 0;
  min-width: 72px;
  padding: 0 14px;
  white-space: nowrap;
}

.court-vote-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.court-verdict-hero {
  text-align: center;
  padding: 20px 16px;
}

.court-verdict-hero.is-guilty {
  background: linear-gradient(155deg, rgba(159, 18, 57, 0.42), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(244, 63, 94, 0.65);
}

.court-verdict-hero.is-innocent {
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.42), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(52, 211, 153, 0.65);
}

.court-verdict-stamp {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 1.5px solid currentColor;
  animation: stampIn 0.35s ease;
}

.court-verdict-hero.is-guilty .court-verdict-stamp {
  color: #f43f5e;
}

.court-verdict-hero.is-innocent .court-verdict-stamp {
  color: #6ee7b7;
}

.court-verdict-title {
  margin: 10px 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.court-vote-tally {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.court-verdict-speech {
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.6);
  font-size: 14px;
  line-height: 1.6;
  color: #f8fafc;
}

.court-punishment-box {
  margin-top: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.court-punish-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 4px;
}

.court-punish-text {
  font-size: 14px;
  font-weight: 700;
  color: #fef3c7;
}

.court-score-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.court-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.court-score-row.is-self {
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

/* 危机公关甩锅大逃杀 */
.crisis-breaking-card {
  background: linear-gradient(155deg, rgba(120, 53, 15, 0.42), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(251, 191, 36, 0.55);
}

.crisis-hot-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.crisis-title {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #fef3c7;
}

.crisis-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.crisis-target-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crisis-target-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 15, 25, 0.65);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.crisis-target-chip.is-selected {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.crisis-statements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crisis-statement-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.crisis-statement-card.is-selectable {
  cursor: pointer;
}

.crisis-statement-card.is-selected {
  border-color: var(--pink);
  background: rgba(244, 63, 94, 0.18);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.25);
}

.crisis-stmt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}

.crisis-blame-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

.crisis-stmt-body {
  font-size: 14px;
  line-height: 1.55;
  color: #f8fafc;
}

.crisis-elim-hero {
  text-align: center;
  background: linear-gradient(155deg, rgba(159, 18, 57, 0.36), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(244, 63, 94, 0.55);
}

.crisis-elim-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #f43f5e;
}

.crisis-elim-player {
  margin: 8px 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.crisis-elim-verdict {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.55);
  font-size: 14px;
  color: #fce7f3;
}

.crisis-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crisis-comment-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.5;
}

.crisis-comment-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

.crisis-tally-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crisis-tally-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.crisis-tally-row.is-out {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.crisis-champ-box {
  margin-top: 10px;
}

.crisis-champ-avatar {
  font-size: 46px;
}

.crisis-champ-name {
  font-size: 22px;
  font-weight: 900;
  color: #fde68a;
}

/* 灵魂选品拍卖行 */
.auction-lot-card {
  background: linear-gradient(155deg, rgba(88, 28, 135, 0.42), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(139, 92, 246, 0.55);
}

.auction-lot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-lot-num {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #8b5cf6;
}

.auction-lot-name {
  margin: 8px 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.auction-lot-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #8b5cf6;
}

.auction-qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auction-qa-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auction-qa-q {
  font-size: 13px;
  color: #f8fafc;
}

.auction-qa-a {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #fde68a;
}

.compact-qa-recap {
  padding: 10px 14px;
}

.auction-recap-line {
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.auction-bid-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.auction-bid-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--amber);
}

.auction-bid-leader {
  text-align: right;
}

.auction-snipe-badge {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #f43f5e;
}

.auction-quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auction-leader-lock {
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.auction-bid-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auction-bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.auction-snipe-pill {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

.auction-unbox-hero {
  text-align: center;
}

.auction-unbox-hero.is-jackpot {
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.45), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(52, 211, 153, 0.65);
}

.auction-unbox-hero.is-cursed {
  background: linear-gradient(155deg, rgba(159, 18, 57, 0.45), rgba(21, 28, 44, 0.94));
  border: 1.5px solid rgba(244, 63, 94, 0.65);
}

.auction-unbox-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--amber);
}

.auction-unbox-name {
  margin: 6px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.auction-unbox-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.auction-stat-box {
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.6);
}

.auction-stat-box b {
  font-size: 16px;
}

.text-emerald {
  color: #34d399;
}

.text-danger {
  color: #fb7185;
}

.auction-truth-box {
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.55;
}

.auction-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auction-rank-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auction-rank-card.is-first {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.7);
}

.auction-rank-card.is-self {
  box-shadow: 0 0 0 1px var(--cyan);
}

.auction-rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.auction-networth {
  font-size: 18px;
  font-weight: 900;
  color: #fde68a;
}

.auction-rank-break {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.auction-rank-items {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auction-item-tag {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.auction-item-tag.pos {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.auction-item-tag.neg {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

@media (max-width: 480px) {
  .create-btn-pair .btn-lg {
    padding: 10px 8px;
    font-size: 13.5px;
  }

  .court-versus-card {
    padding: 12px 10px;
    gap: 8px;
  }

  .auction-stat-box b {
    font-size: 14px;
  }
}

/* ==================== SVG 图标体系 ==================== */
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 17px;
  height: 17px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.game-icon .ui-icon {
  color: #facc15;
}

.room-game-switcher .seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ai-switcher-label,
.section-header h2,
.badge-pill,
.btn-chip,
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==================== 定制插画物料容器 ==================== */
.stage-hero-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(21, 28, 44, 0.94));
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.stage-emblem-img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: #0b0f19;
}

.stage-hero-copy {
  flex: 1;
  min-width: 0;
}

.stage-hero-kicker {
  font-size: 16px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.4px;
}

.stage-hero-sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.gavel-loading-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: crestFloat 2.4s ease-in-out infinite;
}

.verdict-gavel-mini,
.unbox-relic-mini {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 1px solid rgba(34, 211, 238, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

/* ==================== 动效与微交互 ==================== */
@keyframes crestFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gavelSlam {
  0% {
    opacity: 0;
    transform: scale(1.06) translateY(-10px);
  }
  65% {
    opacity: 1;
    transform: scale(0.985) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes urgentPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0);
  }
}

.anim-card {
  animation: cardEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 35ms);
}

.anim-pop {
  animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-gavel-slam {
  animation: gavelSlam 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.court-wait-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #facc15;
  animation: crestFloat 2.6s ease-in-out infinite;
}

.timer-pill.is-urgent {
  animation: urgentPulse 1s ease-in-out infinite;
}

/* ==================== 房间实时聊天室 ==================== */
.chat-trigger-btn {
  position: relative;
}

.chat-trigger-btn.is-locked {
  opacity: 0.72;
}

.chat-unread-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0b0f19;
  animation: popIn 0.2s ease;
}

.chat-peek {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(27, 27, 34, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.38);
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.chat-peek.is-show {
  animation: popIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-peek-avatar {
  flex-shrink: 0;
}

.chat-peek-name {
  font-weight: 800;
  color: #facc15;
  flex-shrink: 0;
}

.chat-peek-text {
  color: #f4f1ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.chat-drawer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 76dvh;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #151c2c;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.65);
  animation: cardEnter 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 800;
  color: #facc15;
}

.chat-lock-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f4a498;
  font-size: 12px;
  font-weight: 600;
}

.chat-list {
  flex: 1;
  min-height: 160px;
  max-height: 40dvh;
  overflow-y: auto;
  padding: 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-empty {
  text-align: center;
  padding: 36px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-msg.is-self {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.chat-bubble-wrap {
  max-width: 78%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chat-msg.is-self .chat-bubble-wrap {
  align-items: flex-end;
}

.chat-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.chat-bubble {
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
  line-height: 1.45;
  color: #f4f1ea;
  word-break: break-word;
}

.chat-msg.is-self .chat-bubble {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.36);
  color: #fbf3de;
}

.chat-quick-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 8px;
  scrollbar-width: none;
}

.chat-quick-bar::-webkit-scrollbar {
  display: none;
}

.chat-quick-chip {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dcd7cc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chat-quick-chip:active {
  transform: scale(0.95);
}

.chat-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
}

.chat-send-btn {
  width: 46px;
  padding: 0;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .anim-card,
  .anim-pop,
  .anim-gavel-slam,
  .lobby-crest-frame,
  .gavel-loading-img,
  .court-wait-pulse,
  .timer-pill.is-urgent {
    animation: none !important;
  }
}

/* ==================== Dark Pop-Arcade：气泡对话 · 倾斜印章 · 高亮金句 · 单手热区 ==================== */
.pop-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.pop-bubble-row.is-reverse {
  flex-direction: row-reverse;
}

.pop-bubble-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0b0f19;
  border: 2px solid #2a3754;
  box-shadow: 2px 2px 0 #05070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pop-bubble-box {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0f1626;
  border: 2px solid #2a3754;
  box-shadow: 3px 3px 0 #05070d;
}

.pop-bubble-box.is-plaintiff {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}

.pop-bubble-box.is-defendant {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.09);
}

.crisis-bubble-card.is-selectable {
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crisis-bubble-card.is-selectable:active {
  transform: translate(2px, 2px);
}

.crisis-bubble-card.is-selected .pop-bubble-box {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.16);
  box-shadow: 4px 4px 0 #05070d;
}

.pop-bubble-author {
  font-size: 11.5px;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 3px;
}

.pop-bubble-text {
  font-size: 14px;
  line-height: 1.5;
  color: #f8fafc;
  word-break: break-word;
}

.pop-quote-hero {
  position: relative;
  overflow: hidden;
}

.pop-stamp-sticker {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(8deg);
  border: 2.5px solid currentColor;
  box-shadow: 3px 3px 0 #05070d;
  background: rgba(11, 15, 25, 0.9);
  animation: stampIn 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pop-stamp-sticker.is-danger {
  color: #f43f5e;
}

.pop-stamp-sticker.is-gold {
  color: #facc15;
}

.pop-stamp-sticker.is-mint {
  color: #34d399;
}

.pop-stamp-sticker.is-muted {
  color: #94a3b8;
}

.pop-quote-card {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0b0f19;
  border: 2px solid #facc15;
  box-shadow: 3px 3px 0 #05070d;
}

.pop-quote-card.is-compact {
  border-color: #2a3754;
  padding: 10px 12px;
}

.pop-quote-kicker {
  font-size: 11px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.pop-quote-text {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 700;
  color: #f8fafc;
}

.pop-quote-inline {
  font-size: 13.5px;
  line-height: 1.5;
  color: #f8fafc;
}

/* 手机端单手底部拇指热区 */
.thumb-dock {
  background: rgba(21, 28, 44, 0.96);
  border: 2px solid #2a3754;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 4px 4px 0 #05070d;
  backdrop-filter: blur(10px);
}

.timer-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #0b0f19;
  border: 1.5px solid #facc15;
  color: #facc15;
}

.timer-pill.is-urgent,
.timer-pill.urgent {
  color: #ffffff;
  background: #f43f5e;
  border-color: #05070d;
}

@media (max-width: 480px) {
  .room-topbar {
    padding: 7px 8px;
    gap: 4px;
  }

  .mini-btn-text {
    display: none;
  }

  .top-ai-pill {
    font-size: 10px;
    padding: 2px 6px;
  }
}
