/* ============================================================
   政变疑云 · 实时辅助终端
   暗金谍战 / 桌面与手机双端
   ============================================================ */

:root {
  --bg: #07090e;
  --bg-2: #0b0f17;
  --panel: rgba(16, 21, 31, 0.86);
  --panel-solid: #10151f;
  --panel-raised: rgba(24, 30, 43, 0.92);
  --line: rgba(216, 180, 90, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(216, 180, 90, 0.46);
  --gold: #d8b45a;
  --gold-bright: #f2d58e;
  --gold-soft: rgba(216, 180, 90, 0.12);
  --gold-dim: #8c7338;
  --red: #d8615b;
  --red-soft: rgba(216, 97, 91, 0.13);
  --green: #63c99a;
  --green-soft: rgba(99, 201, 154, 0.12);
  --blue: #6aabe8;
  --purple: #b18be2;
  --text: #eef0f4;
  --text-2: #c3c8d2;
  --muted: #8a93a6;
  --muted-2: #5d6678;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.28);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  color-scheme: dark;
}

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

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: rgba(216, 180, 90, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 90, 0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 180, 90, 0.36);
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
strong {
  font-weight: 600;
}

.is-hidden,
.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold-bright);
}

/* ---------- 背景氛围 ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(216, 180, 90, 0.1), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, rgba(162, 58, 58, 0.09), transparent 55%),
    linear-gradient(180deg, #07090e 0%, #090c13 48%, #06080d 100%);
}
.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.ambient__glow--gold {
  width: 44vw;
  height: 44vw;
  left: -12vw;
  top: -16vw;
  background: rgba(216, 180, 90, 0.14);
}
.ambient__glow--red {
  width: 36vw;
  height: 36vw;
  right: -12vw;
  top: 24vh;
  background: rgba(143, 42, 42, 0.12);
}
.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(216, 180, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 90, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 15%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 15%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 基础文字与品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(155deg, rgba(216, 180, 90, 0.18), rgba(216, 180, 90, 0.02));
  box-shadow: inset 0 0 18px rgba(216, 180, 90, 0.1);
  position: relative;
}
.brand__seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(216, 180, 90, 0.22);
  border-radius: 6px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
}
.brand__text small {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 4px;
}
.brand--center {
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.brand--center .brand__text {
  align-items: center;
  font-size: 22px;
}
.brand--compact .brand__seal {
  width: 34px;
  height: 34px;
  font-size: 19px;
  border-radius: 8px;
}
.brand--compact .brand__text {
  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.eyebrow--small {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--gold-dim);
}
.eyebrow__line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.display-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
}
.display-title span,
.display-title .gold {
  color: var(--gold-bright);
  position: relative;
}
.display-title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.28), transparent);
  z-index: -1;
}

/* ---------- 按钮 / 输入 ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn:focus-visible,
.icon-btn:focus-visible,
input:focus-visible,
select:focus-visible,
.action-btn:focus-visible,
.choice-card:focus-visible,
.exchange-card:focus-visible,
.target-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.btn-primary {
  color: #151109;
  border-color: transparent;
  background: linear-gradient(135deg, #f0d28a 0%, #d7b257 48%, #b78f39 100%);
  box-shadow: 0 10px 28px rgba(216, 180, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(216, 180, 90, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(216, 180, 90, 0.07);
  color: var(--gold-bright);
}
.btn-danger {
  border-color: rgba(216, 97, 91, 0.42);
  background: linear-gradient(135deg, rgba(216, 97, 91, 0.3), rgba(140, 45, 42, 0.24));
  color: #ffd8d4;
}
.btn-danger:hover:not(:disabled) {
  border-color: rgba(216, 97, 91, 0.75);
  background: linear-gradient(135deg, rgba(216, 97, 91, 0.42), rgba(140, 45, 42, 0.32));
}
.btn-gold {
  border-color: rgba(216, 180, 90, 0.42);
  background: linear-gradient(135deg, rgba(216, 180, 90, 0.2), rgba(216, 180, 90, 0.06));
  color: var(--gold-bright);
}
.btn-gold:hover:not(:disabled) {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(216, 180, 90, 0.3), rgba(216, 180, 90, 0.12));
  box-shadow: 0 8px 24px rgba(216, 180, 90, 0.15);
}
.btn-lg {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 15px;
}
.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
}
.btn__icon {
  font-size: 17px;
  color: currentColor;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 15px;
  transition: all 0.18s ease;
}
.icon-btn:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(216, 180, 90, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
input,
.select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(5, 8, 13, 0.65);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
input::placeholder {
  color: var(--muted-2);
}
input:hover,
.select:hover {
  border-color: rgba(216, 180, 90, 0.3);
}
input:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.1);
  background: rgba(7, 10, 16, 0.9);
}
.select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.select--sm {
  height: 38px;
  font-size: 13px;
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
}
.form-hint {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}
.form-error {
  display: none;
  margin: 2px 0 10px;
  color: #efa7a2;
  font-size: 12.5px;
}
.form-error.is-visible {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}
.dot--gold { background: var(--gold); }
.dot--green { background: var(--green); }
.dot--red { background: var(--red); }

/* ---------- 落地页 ---------- */
.page--landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
}
.nav-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 201, 154, 0.12);
  animation: pulse-dot 2s infinite;
}
.landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.78fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  flex: 1;
  padding: 38px 0 96px;
}
.hero {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
  position: relative;
  text-shadow: 0 0 40px rgba(216, 180, 90, 0.24);
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: 3px;
  height: 11px;
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.32), transparent);
  z-index: -1;
}
.lead {
  max-width: 580px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-points {
  display: flex;
  gap: 34px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-points li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-points strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-bright);
  font-weight: 600;
}
.hero-points span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.role-fan {
  position: relative;
  height: 300px;
  margin-top: 52px;
  perspective: 1200px;
}
.role-fan__item {
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(calc((var(--index) - 2) * 9deg)) translateY(calc(var(--index) * 4px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.4));
}
.role-fan__item:nth-child(1) { margin-left: -128px; }
.role-fan__item:nth-child(2) { margin-left: -64px; }
.role-fan__item:nth-child(3) { margin-left: 0; }
.role-fan__item:nth-child(4) { margin-left: 64px; }
.role-fan__item:nth-child(5) { margin-left: 128px; }
.role-fan__item:hover {
  transform: translateX(-50%) rotate(0deg) translateY(-18px) scale(1.05);
  z-index: 5;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
}
.role-fan .gcard {
  width: 96px;
  height: 138px;
}

.access-panel {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(28, 34, 47, 0.88), rgba(10, 14, 21, 0.92)),
    radial-gradient(400px 200px at 100% 0%, rgba(216, 180, 90, 0.12), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.access-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}
.access-panel__halo {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 90, 0.14), transparent 65%);
  pointer-events: none;
}
.access-panel__head h2 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}
.access-panel__head p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.host-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 180, 90, 0.26);
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.1), rgba(216, 180, 90, 0.02));
  transition: all 0.2s ease;
}
.host-entry:hover {
  border-color: var(--line-strong);
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.16), rgba(216, 180, 90, 0.04));
  transform: translateY(-2px);
}
.host-entry__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 180, 90, 0.32);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 18px;
  flex-shrink: 0;
}
.host-entry__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.host-entry__text strong {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold-bright);
}
.host-entry__text small {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.host-entry__arrow {
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.host-entry:hover .host-entry__arrow {
  transform: translateX(3px);
}
.join-form {
  margin-top: 2px;
}
.access-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 11px;
}
.landing-rules {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.rule-tile {
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(22, 27, 39, 0.7), rgba(11, 15, 22, 0.55));
  transition: all 0.2s ease;
}
.rule-tile:hover {
  border-color: color-mix(in srgb, var(--role-color) 45%, transparent);
  transform: translateY(-3px);
}
.rule-tile__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--role-color) 45%, transparent);
  border-radius: 50%;
  color: var(--role-color);
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 14px;
}
.rule-tile h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.rule-tile h3 small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.22em;
}
.rule-tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.rules-note {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 12px;
}
.landing-footer {
  display: flex;
  justify-content: space-between;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 顶栏 ---------- */
.appbar,
.play-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 16, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
.appbar__meta,
.play-topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(216, 180, 90, 0.05);
  font-size: 12px;
}
.room-chip__label {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.room-chip strong {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}
.conn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.conn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.conn--online {
  border-color: rgba(99, 201, 154, 0.24);
  color: #8fd9b6;
  background: rgba(99, 201, 154, 0.06);
}
.conn--online .conn__dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 201, 154, 0.1);
  animation: pulse-dot 2s infinite;
}
.conn--connecting,
.conn--reconnecting {
  border-color: rgba(216, 180, 90, 0.26);
  color: var(--gold);
  background: rgba(216, 180, 90, 0.06);
}
.conn--connecting .conn__dot,
.conn--reconnecting .conn__dot {
  background: var(--gold);
  animation: pulse-dot 1s infinite;
}
.conn--offline {
  border-color: rgba(216, 97, 91, 0.28);
  color: #d99a96;
}
.conn--offline .conn__dot {
  background: var(--red);
}
.role-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
}
.role-pill--host {
  color: var(--gold-bright);
  border: 1px solid rgba(216, 180, 90, 0.24);
  background: rgba(216, 180, 90, 0.07);
}

/* ---------- 通用面板 / 屏幕 ---------- */
.host-main {
  width: min(1460px, calc(100% - 52px));
  margin: 0 auto;
  padding: 30px 0 48px;
}
.screen {
  animation: fade-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.screen--center {
  display: flex;
  justify-content: center;
  padding: 4vh 0 6vh;
}
.panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(23, 29, 42, 0.8), rgba(11, 15, 23, 0.82)),
    radial-gradient(500px 240px at 100% 0%, rgba(216, 180, 90, 0.06), transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.38), transparent);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.panel__hint {
  color: var(--muted-2);
  font-size: 11px;
}
.panel__hint--gold {
  color: var(--gold-dim);
}
.count-badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.live-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(99, 201, 154, 0.1);
  animation: pulse-dot 2s infinite;
}

/* ---------- 创建房间 ---------- */
.create-panel {
  width: min(560px, 100%);
  padding: 46px 46px 38px;
}
.create-panel .display-title {
  margin: 16px 0 12px;
  font-size: clamp(38px, 4.8vw, 52px);
}
.create-panel__lead {
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.create-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.create-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.create-label span {
  font-size: 14px;
  font-weight: 500;
}
.create-label small {
  color: var(--muted-2);
  font-size: 11px;
}
.create-form .btn-block {
  margin-top: 14px;
}
.create-form .select {
  width: 180px;
  flex-shrink: 0;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(5, 8, 13, 0.5);
}
.stepper__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  transition: all 0.16s ease;
}
.stepper__btn:hover:not(:disabled) {
  background: rgba(216, 180, 90, 0.12);
  color: var(--gold-bright);
}
.stepper__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.stepper__value {
  width: 42px;
  text-align: center;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-bright);
}
.create-panel__note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 11px;
}
.create-panel .btn-ghost.btn-block {
  margin-top: 16px;
}

/* ---------- 等待大厅 ---------- */
.lobby-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.lobby-heading h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
}
.lobby-code-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(216, 180, 90, 0.05);
}
.lobby-code-card > span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.lobby-code-card strong {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}
.host-grid {
  display: grid;
  gap: 18px;
}
.host-grid--lobby {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
}
.lobby-panel {
  padding-bottom: 24px;
}
.lobby-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px;
}
.seat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  animation: fade-up 0.4s calc(var(--delay, 0ms) + 40ms) both;
}
.seat-card.is-filled {
  border-color: rgba(216, 180, 90, 0.18);
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.06), rgba(255, 255, 255, 0.02));
}
.seat-card--empty {
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-style: dashed;
  color: var(--muted-2);
  font-size: 12px;
}
.seat-card__plus {
  font-size: 20px;
  color: var(--muted-2);
}
.seat-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.seat-card__body strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat-card__body span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.seat-card__status {
  color: var(--green);
  font-size: 10px;
}
.seat-card__kick {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: all 0.16s ease;
}
.seat-card:hover .seat-card__kick {
  opacity: 1;
}
.seat-card__kick:hover {
  background: var(--red-soft);
  color: var(--red);
}
.lobby-config {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 22px 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.inline-field .select {
  width: auto;
  min-width: 94px;
}
.lobby-panel > .btn-block {
  width: calc(100% - 44px);
  margin: 0 22px;
}
.start-hint {
  margin: 10px 22px 0;
  color: var(--muted-2);
  font-size: 11.5px;
  text-align: center;
}
.invite-panel {
  align-self: start;
  padding-bottom: 22px;
}
.invite-panel > .muted {
  padding: 18px 22px 0;
  font-size: 12.5px;
}
.invite-code {
  margin: 22px 22px 14px;
  padding: 18px;
  border: 1px dashed rgba(216, 180, 90, 0.36);
  border-radius: 12px;
  background: rgba(216, 180, 90, 0.045);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: 0.28em;
  text-align: center;
  text-indent: 0.28em;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(5, 8, 13, 0.45);
}
.copy-row__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}
.lan-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 22px 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(216, 180, 90, 0.04);
}
.lan-box__label {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.lan-box code {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}
.invite-tip {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px 12px;
  margin: 20px 22px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.invite-tip__num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-dim);
  padding-top: 2px;
}
.invite-tip p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- 头像 ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(216, 180, 90, 0.18), rgba(216, 180, 90, 0.02));
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  box-shadow: inset 0 0 14px rgba(216, 180, 90, 0.08);
}
.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 21px;
}
.avatar--xl {
  width: 68px;
  height: 68px;
  font-size: 30px;
}
.avatar--xs {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

/* ---------- 卡牌 ---------- */
.gcard {
  --role-color: #8a93a6;
  position: relative;
  width: 82px;
  height: 116px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--role-color) 52%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--role-color) 26%, transparent), transparent 62%),
    linear-gradient(165deg, #1b2231 0%, #0b0f17 72%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 26px color-mix(in srgb, var(--role-color) 10%, transparent);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}
.gcard::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--role-color) 34%, transparent);
  border-radius: 4px;
  pointer-events: none;
}
.gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--role-color) 12%, transparent) 1px, transparent 1px);
  background-size: 9px 9px;
  opacity: 0.32;
  pointer-events: none;
}
.gcard__corner {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 2;
  color: var(--role-color);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}
.gcard__glyph {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--role-color) 42%, transparent);
  border-radius: 50%;
  color: var(--role-color);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  background: color-mix(in srgb, var(--role-color) 7%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--role-color) 14%, transparent);
}
.gcard__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  z-index: 2;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: #f2eee3;
  letter-spacing: 0.04em;
}
.gcard__latin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  text-align: center;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--role-color) 70%, #fff 10%);
  opacity: 0.65;
}
.gcard__tag {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
}
.gcard__stamp {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: rgba(8, 10, 15, 0.42);
  transform: rotate(-12deg);
  text-shadow: 0 1px 4px #000;
}
.gcard.is-revealed {
  filter: grayscale(0.85) brightness(0.72);
  opacity: 0.7;
}
.gcard.is-back {
  border-color: rgba(216, 180, 90, 0.28);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(216, 180, 90, 0.11), transparent 60%),
    repeating-linear-gradient(45deg, rgba(216, 180, 90, 0.06) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #141a25, #090c12);
}
.gcard__back {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(216, 180, 90, 0.2);
  border-radius: 4px;
}
.gcard__crest {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 180, 90, 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  background: rgba(216, 180, 90, 0.05);
  box-shadow: 0 0 18px rgba(216, 180, 90, 0.08);
}
.gcard__backline {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.5), transparent);
}
.gcard--sm {
  width: 52px;
  height: 74px;
  border-radius: 5px;
}
.gcard--sm::before {
  inset: 3px;
}
.gcard--sm .gcard__corner {
  top: 4px;
  left: 5px;
  font-size: 7px;
}
.gcard--sm .gcard__glyph {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.gcard--sm .gcard__name {
  bottom: 12px;
  font-size: 8px;
}
.gcard--sm .gcard__latin {
  bottom: 5px;
  font-size: 4px;
}
.gcard--sm .gcard__tag {
  top: 3px;
  right: 3px;
  font-size: 5px;
}
.gcard--sm .gcard__stamp {
  font-size: 8px;
}
.gcard--sm .gcard__crest {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.gcard--sm .gcard__backline {
  width: 24px;
}
.gcard.is-interactive {
  cursor: pointer;
}
.gcard.is-selected {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold);
}
.gcard.is-disabled {
  opacity: 0.35;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 3px;
  border: 1px solid color-mix(in srgb, var(--role-color) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-color) 10%, transparent);
  color: color-mix(in srgb, var(--role-color) 82%, #fff 18%);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.role-chip i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--role-color) 20%, transparent);
  font-style: normal;
  font-size: 10px;
}
.coin-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbe7a8, #b68c35 65%, #7a5b1e);
  box-shadow: 0 0 0 1px rgba(255, 226, 150, 0.25);
  vertical-align: -1px;
}

/* ---------- 主持游戏中 ---------- */
.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.turn-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.turn-banner__label {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}
.turn-banner strong {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.turn-banner__state {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.game-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.metric small {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.metric strong {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.2;
}
.metric--live strong {
  color: var(--gold-bright);
}
.host-game-grid {
  display: grid;
  grid-template-columns: minmax(400px, 1.2fr) minmax(330px, 1fr) minmax(250px, 0.66fr);
  gap: 16px;
  align-items: stretch;
  min-height: calc(100vh - 250px);
}
.players-panel,
.table-panel,
.log-panel {
  min-height: 560px;
}
.host-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  align-content: start;
}
.host-player {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  animation: fade-up 0.35s calc(var(--delay, 0ms) + 50ms) both;
}
.host-player.is-turn {
  border-color: rgba(216, 180, 90, 0.52);
  background: linear-gradient(150deg, rgba(216, 180, 90, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.12), 0 8px 28px rgba(216, 180, 90, 0.08);
}
.host-player.is-out {
  opacity: 0.48;
}
.host-player__head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.host-player__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.host-player__name strong {
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.host-player__name span {
  color: var(--muted-2);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.turn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.12);
}
.host-player__coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216, 180, 90, 0.08);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
}
.host-player__cards {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.host-player__cards .gcard--sm {
  flex: 1;
  width: auto;
  max-width: 66px;
  height: 84px;
}
.host-player__foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}
.is-online {
  color: var(--green);
}
.is-offline {
  color: var(--muted-2);
}

.table-panel {
  display: flex;
  flex-direction: column;
}
.table-panel > .table-wait,
.table-panel > .table-pending {
  flex: 1;
}
.table-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 26px;
  min-height: 500px;
}
.table-wait__kicker {
  color: var(--gold-dim);
  font-size: 9px;
  letter-spacing: 0.26em;
}
.table-wait__avatar {
  margin: 20px 0 12px;
  position: relative;
}
.table-wait__avatar::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(216, 180, 90, 0.16);
  border-radius: 50%;
  animation: spin-slow 12s linear infinite;
  border-top-color: rgba(216, 180, 90, 0.5);
}
.table-wait h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-bright);
}
.table-wait p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.table-wait__cards {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.table-wait__hint {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 11px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}
.table-pending {
  padding: 24px 24px 26px;
  animation: fade-up 0.32s both;
}
.table-pending__kicker {
  color: var(--gold-dim);
  font-size: 9px;
  letter-spacing: 0.24em;
}
.table-pending h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}
.table-pending__sub {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.claim-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 180, 90, 0.18);
  border-radius: 9px;
  background: rgba(216, 180, 90, 0.045);
}
.claim-line--danger {
  border-color: rgba(216, 97, 91, 0.22);
  background: rgba(216, 97, 91, 0.06);
}
.claim-line__label {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.claim-line__action {
  color: var(--text-2);
  font-size: 12px;
}
.response-section {
  margin-top: 18px;
}
.response-section__title {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.16em;
}
.response-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.response-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 11px;
}
.response-chip i {
  color: var(--muted-2);
  font-style: normal;
  font-size: 9px;
}
.response-chip.is-done {
  border-color: rgba(99, 201, 154, 0.2);
  background: rgba(99, 201, 154, 0.05);
}
.response-chip.is-done i {
  color: var(--green);
}
.block-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.block-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}
.block-option__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.block-option__roles {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.table-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.7;
}
.exchange-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.proof-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 10px;
  border-left: 2px solid var(--gold);
  background: rgba(216, 180, 90, 0.05);
  color: var(--muted);
  font-size: 10.5px;
  animation: fade-up 0.3s both;
}
.waiting-pulse {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.waiting-pulse span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: waiting-bounce 1.2s infinite;
}
.waiting-pulse span:nth-child(2) { animation-delay: 0.15s; }
.waiting-pulse span:nth-child(3) { animation-delay: 0.3s; }

/* ---------- 日志 ---------- */
.log-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.log-panel .panel__head {
  padding: 15px 18px;
}
.log-list {
  flex: 1;
  max-height: none;
  overflow-y: auto;
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.log-item {
  display: grid;
  grid-template-columns: 34px 14px minmax(0, 1fr);
  gap: 5px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
  line-height: 1.55;
  animation: fade-in 0.3s both;
}
.log-item__time {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  padding-top: 1px;
}
.log-item__icon {
  color: var(--muted-2);
  text-align: center;
  font-size: 9px;
}
.log-item__text {
  color: var(--muted);
  word-break: break-word;
}
.log-item__text .hl {
  color: var(--gold-bright);
}
.log-item--challenge .log-item__icon,
.log-item--challenge .log-item__text { color: #d9b47a; }
.log-item--block .log-item__icon,
.log-item--block .log-item__text { color: #9db8d8; }
.log-item--loss .log-item__icon,
.log-item--loss .log-item__text { color: #d99a96; }
.log-item--win .log-item__icon,
.log-item--win .log-item__text { color: var(--gold-bright); }
.log-item--turn .log-item__text { color: var(--muted-2); }
.log-item--system .log-item__text { color: #7f8a9e; }
.host-controlbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.host-controlbar__hint {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------- 倒计时 ---------- */
.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(216, 180, 90, 0.28);
  border-radius: 7px;
  background: rgba(216, 180, 90, 0.07);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.countdown.is-urgent {
  border-color: rgba(216, 97, 91, 0.55);
  background: rgba(216, 97, 91, 0.1);
  color: #ffb1ab;
  animation: urgent-pulse 1s infinite;
}
.countdown__bar {
  flex: 1;
  max-width: 150px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.countdown__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 0.25s linear;
}

/* ---------- 结算 ---------- */
.winner-scene {
  position: relative;
  width: min(900px, 100%);
  padding: 50px 40px 40px;
  text-align: center;
}
.winner-scene__crown {
  font-size: 48px;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(216, 180, 90, 0.35);
  margin-bottom: 14px;
  animation: crown-float 3s ease-in-out infinite;
}
.winner-scene h1 {
  margin: 14px 0 10px;
}
.winner-scene__sub {
  color: var(--muted);
  font-size: 13px;
}
.final-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 32px 0;
  text-align: left;
}
.final-player {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.final-player.is-winner {
  border-color: rgba(216, 180, 90, 0.34);
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.08), rgba(255, 255, 255, 0.02));
}
.final-player__rank {
  width: 28px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}
.final-player__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.final-player__body strong {
  font-family: var(--serif);
  font-size: 15px;
}
.final-player__body span {
  color: var(--muted-2);
  font-size: 10px;
}
.final-player__cards {
  display: flex;
  gap: 5px;
}
.winner-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(216, 180, 90, 0.16);
  color: var(--gold-bright);
  font-size: 8px;
  font-style: normal;
  vertical-align: 2px;
}
.winner-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   玩家端
   ============================================================ */
.page--play {
  min-height: 100vh;
}
.join-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  gap: 26px;
}
.join-panel-card {
  width: min(430px, 100%);
  padding: 36px 34px 30px;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.join-panel-card .display-title {
  margin: 14px 0 10px;
  font-size: 40px;
}
.join-panel-card > .muted {
  font-size: 13px;
  line-height: 1.75;
}
.join-form-card {
  margin-top: 26px;
}
.join-form-card .field {
  margin-bottom: 14px;
}
.join-form-card .btn-block {
  margin-top: 6px;
}
.back-link {
  color: var(--muted-2);
  font-size: 12px;
  transition: color 0.18s ease;
}
.back-link:hover {
  color: var(--gold);
}
.play-shell {
  min-height: 100vh;
}
.play-topbar {
  padding: 10px 24px;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-2);
  max-width: 150px;
}
.player-chip #playerChipName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn--log {
  width: 38px;
  height: 34px;
}
.play-main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

/* 玩家大厅 */
.play-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.1fr);
  gap: 26px;
  align-items: center;
  padding: 4vh 0;
}
.play-lobby__hero h1 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 600;
}
.play-lobby__hero > .muted {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 360px;
}
.lobby-room {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(216, 180, 90, 0.05);
}
.lobby-room > span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.lobby-room strong {
  font-family: var(--mono);
  font-size: 27px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}
.play-lobby__seats {
  padding-bottom: 20px;
}
.play-seat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}
.play-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  animation: fade-up 0.4s calc(var(--delay, 0ms) + 30ms) both;
}
.play-seat strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.play-seat > span {
  color: var(--muted-2);
  font-size: 9.5px;
}
.play-seat.is-you {
  border-color: rgba(216, 180, 90, 0.4);
  background: linear-gradient(150deg, rgba(216, 180, 90, 0.11), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.1), 0 10px 26px rgba(216, 180, 90, 0.06);
}
.play-seat--empty {
  border-style: dashed;
  color: var(--muted-2);
  font-size: 11px;
}
.play-seat__plus {
  font-size: 21px;
}
.you-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--gold);
  color: #171106;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}
.waiting-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}
.waiting-line__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.6s infinite;
}
.play-lobby__rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.play-lobby__rules > div {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(216, 180, 90, 0.14);
  background: linear-gradient(180deg, rgba(216, 180, 90, 0.03), transparent);
}
.play-lobby__rules span {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 10px;
  padding-top: 2px;
}
.play-lobby__rules p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

/* 玩家游戏 */
.play-game {
  max-width: 1000px;
  margin: 0 auto;
}
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.table-head__kicker {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}
.turn-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(216, 180, 90, 0.05);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.turn-pill.is-me {
  border-color: rgba(216, 180, 90, 0.55);
  background: rgba(216, 180, 90, 0.12);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(216, 180, 90, 0.1);
}
.turn-pill.is-out {
  border-color: rgba(216, 97, 91, 0.24);
  color: #d99a96;
  background: rgba(216, 97, 91, 0.06);
}
.opponents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
}
.opponent {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(22, 28, 40, 0.7), rgba(10, 14, 21, 0.6));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: fade-up 0.38s calc(var(--delay, 0ms) + 40ms) both;
}
.opponent.is-turn {
  border-color: rgba(216, 180, 90, 0.52);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.12), 0 10px 26px rgba(216, 180, 90, 0.08);
  background: linear-gradient(160deg, rgba(216, 180, 90, 0.1), rgba(10, 14, 21, 0.65));
}
.opponent.is-out {
  opacity: 0.44;
}
.opponent__top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.opponent__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.opponent__name strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opponent__name span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
}
.opponent__turn {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.opponent__cards {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  justify-content: center;
}
.opponent__cards .gcard--sm {
  width: 40px;
  height: 57px;
}
.opponent__cards .gcard--sm .gcard__glyph {
  width: 21px;
  height: 21px;
  font-size: 10px;
}
.opponent__cards .gcard--sm .gcard__name {
  font-size: 6px;
  bottom: 8px;
}
.opponent__cards .gcard--sm .gcard__latin {
  display: none;
}
.opponent__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-bright);
}
.influence-pips {
  display: inline-flex;
  gap: 3px;
}
.influence-pips i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  transition: all 0.2s ease;
}
.influence-pips i.is-on {
  border-color: rgba(216, 180, 90, 0.5);
  background: radial-gradient(circle at 35% 30%, #f7e1a6, #b48a35);
  box-shadow: 0 0 6px rgba(216, 180, 90, 0.25);
}
.avatar--xs {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

/* 中央舞台 */
.center-stage {
  min-height: 300px;
  margin-bottom: 14px;
}
.prompt {
  position: relative;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(24, 30, 43, 0.84), rgba(10, 14, 22, 0.9)),
    radial-gradient(500px 240px at 100% 0%, rgba(216, 180, 90, 0.07), transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: fade-up 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.prompt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.38), transparent);
}
.prompt--challenge {
  border-color: rgba(216, 180, 90, 0.28);
  background:
    linear-gradient(165deg, rgba(37, 31, 22, 0.9), rgba(13, 14, 18, 0.92)),
    radial-gradient(500px 200px at 100% 0%, rgba(216, 180, 90, 0.14), transparent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(216, 180, 90, 0.06);
}
.prompt--challenge::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(216, 180, 90, 0.12);
  border-radius: 50%;
  animation: spin-slow 16s linear infinite;
}
.prompt--block {
  border-color: rgba(106, 171, 232, 0.24);
  background:
    linear-gradient(165deg, rgba(21, 29, 42, 0.9), rgba(10, 14, 22, 0.92)),
    radial-gradient(500px 200px at 100% 0%, rgba(106, 171, 232, 0.1), transparent);
}
.prompt--loss {
  border-color: rgba(216, 97, 91, 0.28);
}
.prompt--turn {
  border-color: rgba(216, 180, 90, 0.26);
}
.prompt__kicker {
  display: block;
  color: var(--gold-dim);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
}
.prompt h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.prompt__claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 27px);
  color: var(--text);
}
.prompt__claim > span:not(.role-chip) {
  color: var(--muted);
  font-size: 0.62em;
  font-family: var(--sans);
}
.prompt__action {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  margin-bottom: 4px;
}
.prompt__turn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prompt__turn-head .prompt__kicker {
  margin-bottom: 0;
}
.turn-coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
}
.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.decision-actions .btn {
  flex: 1;
  min-width: 130px;
}
.decision-actions--stack {
  flex-direction: column;
}
.decision-actions--stack .btn {
  width: 100%;
}
.decision-note {
  margin-top: 18px;
  padding: 10px 13px;
  border-left: 2px solid var(--line-strong);
  background: rgba(216, 180, 90, 0.04);
  color: var(--muted);
  font-size: 11.5px;
}
.prompt__responses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.prompt__latest {
  margin-top: 16px;
}
.latest-event {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
}
.latest-event i {
  padding: 1px 4px;
  border: 1px solid rgba(216, 180, 90, 0.2);
  border-radius: 3px;
  color: var(--gold-dim);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
}
.spectator__timer {
  margin-top: 6px;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: all 0.17s ease;
}
.action-btn:hover:not(:disabled) {
  border-color: rgba(216, 180, 90, 0.4);
  background: rgba(216, 180, 90, 0.07);
  transform: translateY(-1px);
}
.action-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.action-btn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(216, 180, 90, 0.24);
  border-radius: 9px;
  background: rgba(216, 180, 90, 0.06);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 17px;
}
.action-btn__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.action-btn__body strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.action-btn__body small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 1px;
}
.action-btn__body em {
  margin-top: 2px;
  color: var(--gold-dim);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.action-btn__note {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8.5px;
  text-align: right;
  line-height: 1.35;
  max-width: 66px;
}
.action-btn__cost {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(216, 180, 90, 0.14);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 8.5px;
}
.action-btn__cost + .action-btn__note {
  margin-top: 10px;
}
.action-footnote {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10px;
}
.choice-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216, 180, 90, 0.22);
  border-radius: 12px;
  background: rgba(216, 180, 90, 0.045);
  transition: all 0.18s ease;
}
.choice-card:hover {
  border-color: var(--gold);
  background: rgba(216, 180, 90, 0.09);
  transform: translateY(-3px);
}
.choice-card .gcard {
  width: 100px;
  height: 140px;
}
.choice-card__label {
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.choice-card.is-dead {
  opacity: 0.3;
  filter: grayscale(1);
}
.exchange-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.exchange-card {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.18s ease;
}
.exchange-card:hover {
  border-color: rgba(216, 180, 90, 0.45);
}
.exchange-card .gcard {
  width: 88px;
  height: 124px;
}
.exchange-card.is-selected {
  border-color: var(--gold);
  background: rgba(216, 180, 90, 0.1);
  box-shadow: 0 0 20px rgba(216, 180, 90, 0.1);
}
.exchange-card__check {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #171106;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s ease;
}
.exchange-card.is-selected .exchange-card__check {
  opacity: 1;
  transform: scale(1);
}

/* 自己 */
.self-panel {
  position: relative;
}
.self-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(24, 30, 43, 0.88), rgba(10, 14, 21, 0.9)),
    radial-gradient(300px 120px at 0% 0%, rgba(216, 180, 90, 0.09), transparent);
  box-shadow: var(--shadow-soft);
}
.self-card.is-turn {
  border-color: rgba(216, 180, 90, 0.5);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.1), 0 14px 40px rgba(216, 180, 90, 0.08);
}
.self-card.is-out {
  opacity: 0.55;
}
.self-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.self-card__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.self-card__identity strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.self-card__identity span {
  color: var(--muted-2);
  font-size: 10px;
}
.self-card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.coin-big {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--gold-bright);
}
.self-card__hand {
  display: flex;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.self-card__hand .gcard {
  width: 70px;
  height: 100px;
}
.self-card__hand .gcard__glyph {
  width: 36px;
  height: 36px;
  font-size: 19px;
}
.self-card__hand .gcard__name {
  font-size: 11px;
  bottom: 18px;
}

/* 玩家结算 */
.result-scene {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 7vh 8px 30px;
  text-align: center;
}
.result-scene__crown {
  font-size: 46px;
  color: var(--gold-bright);
  margin-bottom: 12px;
  text-shadow: 0 0 44px rgba(216, 180, 90, 0.36);
  animation: crown-float 3s ease-in-out infinite;
}
.result-scene h1 {
  margin: 12px 0 8px;
}
.result-scene__sub {
  color: var(--muted);
  font-size: 13px;
}
.play-final-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 30px 0;
  text-align: left;
}
.play-final {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.play-final.is-winner {
  border-color: rgba(216, 180, 90, 0.34);
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.08), rgba(255, 255, 255, 0.02));
}
.play-final__rank {
  width: 26px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}
.play-final__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.play-final__body strong {
  font-family: var(--serif);
  font-size: 14px;
}
.play-final__body span {
  color: var(--muted-2);
  font-size: 9.5px;
}
.play-final__cards {
  display: flex;
  gap: 4px;
}
.wait-host {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
  animation: soft-pulse 2.4s infinite;
}

/* ---------- 日志抽屉 ---------- */
.log-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.log-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.log-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 100%);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #10151f, #080b11);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
.log-drawer.is-open {
  pointer-events: auto;
}
.log-drawer.is-open .log-drawer__backdrop {
  opacity: 1;
}
.log-drawer.is-open .log-drawer__panel {
  transform: translateX(0);
}
.log-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.log-drawer__head h2 {
  font-family: var(--serif);
  font-size: 17px;
}
.log-drawer .log-list {
  max-height: none;
  flex: 1;
  padding: 12px 18px 30px;
}
.log-drawer .log-item {
  grid-template-columns: 36px 14px minmax(0, 1fr);
  font-size: 11px;
}

/* ---------- 目标选择 ---------- */
.target-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.target-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: all 0.17s ease;
}
.target-btn:hover {
  border-color: rgba(216, 180, 90, 0.45);
  background: rgba(216, 180, 90, 0.07);
}
.target-btn__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.target-btn__body strong {
  font-family: var(--serif);
  font-size: 15px;
}
.target-btn__body small {
  color: var(--muted);
  font-size: 10px;
}
.target-btn__arrow {
  color: var(--gold);
}

/* ---------- 弹层 ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.modal-root:not(:empty) {
  pointer-events: auto;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal.is-in {
  opacity: 1;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px 30px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(26, 32, 45, 0.98), rgba(10, 14, 21, 0.99)),
    radial-gradient(400px 200px at 100% 0%, rgba(216, 180, 90, 0.1), transparent);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-in .modal__card {
  transform: translateY(0) scale(1);
}
.modal__card--wide {
  width: min(640px, 100%);
}
.modal__ornament {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid rgba(216, 180, 90, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
  background: rgba(216, 180, 90, 0.06);
}
.modal__card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.modal__card > p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.modal__lead {
  margin-bottom: 16px;
}
.rules-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.rules-compact > div {
  padding: 12px 14px;
  background: rgba(10, 14, 21, 0.9);
}
.rules-compact strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 13px;
  margin-bottom: 3px;
}
.rules-compact span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

/* ---------- Toast ---------- */
.toast-layer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  top: auto;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  width: min(380px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(16, 21, 31, 0.96);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 10px;
  margin-top: 1px;
}
.toast--info .toast__icon {
  background: rgba(106, 171, 232, 0.15);
  color: var(--blue);
}
.toast--success .toast__icon {
  background: rgba(99, 201, 154, 0.15);
  color: var(--green);
}
.toast--warn .toast__icon {
  background: rgba(216, 180, 90, 0.16);
  color: var(--gold-bright);
}
.toast--error .toast__icon {
  background: rgba(216, 97, 91, 0.16);
  color: #e69b96;
}
.toast--gold {
  border-color: rgba(216, 180, 90, 0.35);
  background: rgba(30, 25, 16, 0.97);
}
.toast--gold .toast__icon {
  background: rgba(216, 180, 90, 0.2);
  color: var(--gold-bright);
}

/* ---------- 加载 ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5, 7, 11, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.loading-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.loading-screen__seal {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(216, 180, 90, 0.42);
  border-radius: 14px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 32px;
  background: rgba(216, 180, 90, 0.06);
  box-shadow: 0 0 40px rgba(216, 180, 90, 0.1);
  animation: seal-breathe 2s ease-in-out infinite;
}
.loading-screen p {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.loading-screen__bar {
  width: 160px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.loading-screen__bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loading-slide 1.2s infinite;
}

/* ---------- 彩带 ---------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 1px;
  opacity: 0.9;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);
  animation-fill-mode: both;
}
body.is-busy .action-grid,
body.is-busy .decision-actions,
body.is-busy .choice-cards,
body.is-busy .exchange-grid {
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- 动画 ---------- */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.1); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(216, 180, 90, 0.03); }
}
@keyframes urgent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 97, 91, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(216, 97, 91, 0); }
}
@keyframes waiting-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes soft-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes crown-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes seal-breathe {
  0%, 100% { box-shadow: 0 0 28px rgba(216, 180, 90, 0.08); }
  50% { box-shadow: 0 0 48px rgba(216, 180, 90, 0.2); }
}
@keyframes loading-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
@keyframes confetti-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift, 40px), 105vh, 0) rotate(720deg); opacity: 0.85; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .landing-main {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 46px;
  }
  .rules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .host-game-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  }
  .host-game-grid {
    min-height: 0;
  }
  .log-panel {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .log-list {
    max-height: 260px;
  }
}
@media (max-width: 980px) {
  .landing-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 20px;
  }
  .access-panel {
    max-width: 580px;
  }
  .hero h1 {
    font-size: clamp(46px, 9vw, 72px);
  }
  .role-fan {
    height: 260px;
  }
  .host-grid--lobby {
    grid-template-columns: 1fr;
  }
  .invite-panel {
    max-width: none;
  }
  .play-lobby {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 2vh;
  }
  .play-lobby__rules {
    grid-template-columns: 1fr;
  }
  .host-game-grid {
    grid-template-columns: 1fr;
  }
  .players-panel,
  .table-panel {
    min-height: 0;
  }
  .table-wait {
    min-height: 320px;
  }
}
/* 桌面端：自己的手牌固定在右侧，避免重要信息滚出视野 */
@media (min-width: 981px) {
  .play-game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    grid-template-rows: auto auto auto;
    gap: 14px 16px;
    align-items: start;
  }
  .table-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .opponents {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .center-stage {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }
  .self-panel {
    grid-column: 2;
    grid-row: 3;
    position: sticky;
    top: 84px;
  }
  .self-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .self-card__head {
    align-items: flex-start;
  }
  .self-card__stats {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .self-card__hand {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 0 0;
    justify-content: center;
  }
  .self-card__hand .gcard {
    width: 84px;
    height: 118px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .landing-nav {
    width: calc(100% - 36px);
    padding: 16px 0;
  }
  .nav-note {
    display: none;
  }
  .landing-main {
    width: calc(100% - 36px);
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }
  .lead {
    font-size: 15px;
  }
  .hero-points {
    gap: 22px;
  }
  .role-fan {
    height: 230px;
    margin-top: 38px;
    transform: scale(0.86);
    transform-origin: left center;
  }
  .access-panel {
    padding: 26px 22px;
  }
  .landing-rules {
    width: calc(100% - 36px);
    padding: 52px 0 60px;
  }
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }
  .landing-footer {
    width: calc(100% - 36px);
    flex-direction: column;
    gap: 6px;
  }
  .appbar {
    padding: 10px 16px;
    gap: 10px;
  }
  .appbar .brand__text small,
  .play-topbar .brand__text small {
    display: none;
  }
  .appbar__meta {
    gap: 8px;
  }
  .role-pill {
    display: none;
  }
  .host-main {
    width: calc(100% - 28px);
    padding: 20px 0 36px;
  }
  .screen--center {
    padding: 2vh 0;
  }
  .create-panel {
    padding: 30px 22px 26px;
  }
  .create-row {
    gap: 12px;
  }
  .create-form .select {
    width: 138px;
  }
  .lobby-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .lobby-code-card {
    align-self: stretch;
    justify-content: center;
  }
  .lobby-players {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .lobby-config {
    margin: 0 16px 16px;
    gap: 12px;
  }
  .lobby-panel > .btn-block {
    width: calc(100% - 32px);
    margin: 0 16px;
  }
  .start-hint {
    margin: 10px 16px 0;
  }
  .game-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .game-metrics {
    width: 100%;
    flex-wrap: wrap;
  }
  .metric {
    flex: 1;
  }
  .host-players {
    grid-template-columns: 1fr;
  }
  .table-pending {
    padding: 20px 18px 22px;
  }
  .winner-scene {
    padding: 20px 4px;
  }
  .final-player__cards {
    display: none;
  }
  .play-topbar {
    padding: 8px 14px;
    gap: 8px;
  }
  .play-topbar__meta {
    gap: 8px;
  }
  .play-topbar .brand__text {
    display: none;
  }
  .play-topbar .brand__seal {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
  .room-chip {
    height: 30px;
    padding: 0 9px;
  }
  .room-chip strong {
    font-size: 13px;
  }
  .conn span[data-conn-label] {
    display: none;
  }
  .conn {
    padding: 0 8px;
  }
  .player-chip {
    max-width: 110px;
  }
  .play-main {
    width: calc(100% - 20px);
    padding: 12px 0 44px;
  }
  .table-head {
    margin-bottom: 8px;
  }
  .opponents {
    margin-bottom: 10px;
  }
  .opponent {
    padding: 8px 9px;
  }
  .opponent__cards .gcard--sm {
    width: 36px;
    height: 51px;
  }
  .play-lobby__hero h1 {
    font-size: 42px;
  }
  .play-seat-grid {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .play-seat {
    min-height: 110px;
  }
  .opponents {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .opponents::-webkit-scrollbar {
    display: none;
  }
  .opponent {
    flex: 0 0 142px;
  }
  .prompt {
    padding: 18px 16px 18px;
  }
  .prompt__claim {
    font-size: 22px;
  }
  .prompt--turn {
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .prompt--turn h2 {
    font-size: 24px;
  }
  .action-footnote,
  .prompt__latest {
    display: none;
  }
  .action-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 13px;
  }
  .action-btn {
    min-height: 58px;
    padding: 8px 9px;
    gap: 8px;
  }
  .action-btn__icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 7px;
  }
  .action-btn__body strong {
    font-size: 14px;
  }
  .action-btn__body small {
    font-size: 9px;
  }
  .action-btn__body em {
    font-size: 7.5px;
    margin-top: 1px;
  }
  .decision-actions {
    flex-direction: column;
    margin-top: 14px;
  }
  .decision-actions .btn {
    width: 100%;
  }
  .self-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 35;
  }
  .self-card {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-color: rgba(216, 180, 90, 0.24);
    box-shadow: 0 -8px 34px rgba(0, 0, 0, 0.55);
  }
  .self-card__head {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .self-card__head .avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .self-card__identity strong {
    font-size: 14px;
  }
  .self-card__identity span {
    font-size: 8px;
  }
  .self-card__stats {
    gap: 6px;
    margin-left: auto;
  }
  .self-card__stats .influence-pips {
    display: none;
  }
  .coin-big {
    font-size: 16px;
  }
  .self-card__hand {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 0;
    padding: 0 0 0 8px;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
  }
  .self-card__hand .gcard {
    width: 42px;
    height: 60px;
    border-radius: 4px;
  }
  .self-card__hand .gcard::before {
    inset: 3px;
  }
  .self-card__hand .gcard__corner {
    top: 4px;
    left: 5px;
    font-size: 6px;
  }
  .self-card__hand .gcard__glyph {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .self-card__hand .gcard__name {
    bottom: 9px;
    font-size: 7px;
  }
  .self-card__hand .gcard__latin {
    display: none;
  }
  .self-card__hand .gcard__tag {
    top: 3px;
    right: 3px;
    font-size: 5px;
  }
  .play-main {
    padding-bottom: 140px;
  }
  .choice-card .gcard {
    width: 84px;
    height: 118px;
  }
  .exchange-card .gcard {
    width: 72px;
    height: 102px;
  }
  .exchange-grid {
    gap: 8px;
  }
  .toast-layer {
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: auto;
    align-items: center;
  }
  .modal {
    padding: 14px;
  }
  .modal__card {
    padding: 24px 20px 20px;
  }
  .rules-compact {
    grid-template-columns: 1fr;
  }
  .result-scene {
    padding: 3vh 4px 20px;
  }
  .play-final__cards {
    display: none;
  }
}
@media (max-width: 420px) {
  .create-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .create-form .select {
    width: 100%;
  }
  .stepper {
    align-self: stretch;
    justify-content: space-between;
  }
  .play-seat-grid {
    grid-template-columns: 1fr;
  }
  .hero-points {
    justify-content: space-between;
  }
  .role-fan {
    transform: scale(0.72);
  }
}

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