:root {
  --bg: #0a0a0b;
  --panel: #141418;
  --panel-hi: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #f2f2f3;
  --text-dim: #a1a1aa;
  --text-mute: #6b6b75;
  --felt-hi: #2b3150;
  --felt: #1b1f33;
  --felt-lo: #11131f;
  --rail: #101015;
  --sheen: rgba(160, 172, 230, 0.10);
  --glow: rgba(96, 108, 170, 0.12);
  --glow-2: rgba(196, 128, 70, 0.08);
  --back-hi: #3b4266;
  --back-lo: #252a42;
  --back-edge: #f2f2f3;
  --accent: #f2f2f3;
  --win: #f5c451;
  --danger: #f2555a;
  --suit-red: #e5484d;
  --suit-black: #16161a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.room {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, var(--glow), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 90%, var(--glow-2), transparent 70%),
    var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 30%, transparent 32%),
    conic-gradient(var(--text) 0 25%, var(--text-mute) 0 50%, var(--text) 0 75%, var(--text-mute) 0);
}

h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.status {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stage {
  flex: 1;
  display: grid;
  place-items: start center;
  padding: 64px 24px 40px;
}

.table {
  position: relative;
  width: min(940px, 100%);
  height: min(500px, calc(100dvh - 330px));
  min-height: 400px;
}

.felt {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, var(--sheen), transparent 70%),
    linear-gradient(180deg, var(--felt-hi), var(--felt) 45%, var(--felt-lo));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 18px 40px rgba(255, 255, 255, 0.03),
    inset 0 -30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 12px var(--rail),
    0 0 0 13px var(--line),
    0 40px 90px rgba(0, 0, 0, 0.65);
}

.center {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 70%;
  pointer-events: none;
}

.street {
  margin: 0;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.board {
  display: flex;
  gap: 8px;
  min-height: 92px;
  perspective: 600px;
}

.slot {
  width: 64px;
  height: 92px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.16);
}

.potline {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
}

.potline.won { border-color: rgba(245, 196, 81, 0.45); color: var(--win); }

.pot-label {
  color: var(--text-dim);
  font-size: 12px;
}

.potline.won .pot-label { color: var(--win); font-size: 13px; }

.potline strong,
.potline .pot-label { margin-bottom: 3px; }

.potline strong {
  font-size: 16px;
  font-weight: 600;
}

.potstack:empty { display: none; }

.num { font-variant-numeric: tabular-nums; }

.pile {
  --d: 15px;
  --step: 3px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.pile-stack { --d: 13px; }
.pile-bet { --d: 16px; }

.pile.tick { animation: pile-tick 0.35s ease; }

@keyframes pile-tick {
  25% { transform: translateY(3px); }
  70% { transform: translateY(-2px); }
}

.col {
  position: relative;
  width: var(--d);
}

.disc {
  position: absolute;
  left: 0;
  display: block;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--c) 0 54%, var(--e) 55% 68%, var(--c) 69%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.45);
}

.disc.in { animation: disc-in 0.28s ease both; }

@keyframes disc-in {
  from { opacity: 0; transform: translateY(7px) scale(0.7); }
}

.bank {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: calc(100% + 8px);
  pointer-events: none;
}

.seat.pos-right .bank {
  left: auto;
  right: calc(100% + 8px);
}

.fx {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.fx .disc {
  --d: 15px;
  position: absolute;
  z-index: 2;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.46s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.46s ease;
}

.result { display: none; }

.seat {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.seat.hero { flex-direction: row; align-items: center; gap: 12px; }

.holes { display: flex; }

.side { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.holes .card + .card { margin-left: -14px; }
.seat.hero .holes .card + .card { margin-left: 6px; }
.holes .card:first-child { transform: rotate(-4deg); }
.holes .card + .card { transform: rotate(4deg); }
.seat.hero .holes .card { transform: none; }

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tone, #3a3f58);
  color: #0d0d10;
  font-size: 14px;
  font-weight: 600;
}

.dealer {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--bg);
}

.meta { display: flex; flex-direction: column; line-height: 1.2; }

.name { font-size: 13px; font-weight: 500; }

.stackline {
  display: flex;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.tag { color: var(--text-mute); }
.tag.allin { color: var(--danger); font-weight: 600; }

.seat.turn .who { border-color: var(--line-hi); }
.seat.turn .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); animation: turn 1.4s ease-in-out infinite; }
.seat.won .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--win); }
.seat.won .name { color: var(--win); }
.seat.folded { opacity: 0.32; }

@keyframes turn {
  50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(242, 242, 243, 0.35); }
}

.made {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.seat.won .made { background: rgba(245, 196, 81, 0.16); color: var(--win); }

.bet {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  transform: translate(-50%, -60%);
}

.bet .num {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 11px;
}

.talk {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 6;
  width: max-content;
  max-width: 190px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 12px 12px 12px 4px;
  background: var(--text);
  color: #111;
  font-size: 12px;
  line-height: 1.4;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  animation: talk-in 0.22s ease both;
}

.seat.pos-top .talk { bottom: auto; top: calc(100% + 8px); }
.seat.hero .talk { left: auto; right: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }

@keyframes talk-in {
  from { opacity: 0; translate: 0 4px; }
}

.card {
  position: relative;
  flex: none;
  width: 44px;
  height: 62px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f1f1f3);
  color: var(--suit-black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 14px rgba(0, 0, 0, 0.45);
}

.card.red { color: var(--suit-red); }
.card.dim { opacity: 0.5; }

.card .rk {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.card .su {
  position: absolute;
  left: 6px;
  top: 25px;
  font-size: 13px;
  line-height: 1;
}

.card .mid {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-size: 22px;
  line-height: 1;
}

.board .card { width: 64px; height: 92px; border-radius: 8px; }
.board .card .rk { left: 7px; top: 6px; font-size: 28px; }
.board .card .su { left: 8px; top: 37px; font-size: 18px; }
.board .card .mid { right: 7px; bottom: 5px; font-size: 32px; }

.seat.hero .card { width: 72px; height: 102px; border-radius: 9px; }
.seat.hero .card .rk { left: 8px; top: 7px; font-size: 32px; }
.seat.hero .card .su { left: 9px; top: 42px; font-size: 20px; }
.seat.hero .card .mid { right: 8px; bottom: 6px; font-size: 36px; }

.seat:not(.hero) .card .mid { display: none; }

.card.back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px),
    linear-gradient(160deg, var(--back-hi), var(--back-lo));
  box-shadow: inset 0 0 0 3px var(--back-edge), inset 0 0 0 4px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.room[data-venue="felt"] {
  --bg: #24160f;
  --felt-hi: #2ea86a;
  --felt: #157a45;
  --felt-lo: #0c4e2c;
  --rail: #5a3a22;
  --sheen: rgba(255, 244, 210, 0.18);
  --glow: rgba(46, 140, 80, 0.22);
  --glow-2: rgba(180, 110, 40, 0.18);
  --text: #f7f3ea;
  --back-hi: #0e5a38;
  --back-lo: #08341f;
  --back-edge: #f0e2b6;
  --line: rgba(240, 220, 170, 0.16);
}

.room[data-venue="harbor"] {
  --bg: #101612;
  --felt-hi: #1e7a68;
  --felt: #0f5248;
  --felt-lo: #08332e;
  --rail: #2a241c;
  --sheen: rgba(255, 220, 170, 0.14);
  --glow: rgba(40, 120, 100, 0.22);
  --glow-2: rgba(200, 140, 60, 0.16);
  --back-hi: #14584c;
  --back-lo: #0a302a;
  --back-edge: #f3e6c4;
}

.room[data-venue="macau"] {
  --bg: #16080c;
  --felt-hi: #a12838;
  --felt: #7a1524;
  --felt-lo: #4a0c16;
  --rail: #2a1c10;
  --sheen: rgba(255, 210, 140, 0.16);
  --glow: rgba(160, 30, 50, 0.3);
  --glow-2: rgba(212, 170, 70, 0.2);
  --win: #f0d78c;
  --back-hi: #6a1422;
  --back-lo: #2c0810;
  --back-edge: #f0d78c;
  --line: rgba(240, 210, 140, 0.2);
}

.room[data-venue="peak"] {
  --bg: #070708;
  --felt-hi: #323238;
  --felt: #1a1a1e;
  --felt-lo: #0e0e10;
  --rail: #0a0a0a;
  --sheen: rgba(240, 220, 170, 0.08);
  --glow: rgba(240, 210, 140, 0.08);
  --glow-2: rgba(80, 80, 90, 0.25);
  --back-hi: #2a2a30;
  --back-lo: #121216;
  --back-edge: #e6d7a8;
  --line: rgba(230, 215, 168, 0.16);
}

.room[data-venue="tower"] {
  --bg: #0a1018;
  --felt-hi: #3a6ea5;
  --felt: #1e446e;
  --felt-lo: #10263c;
  --rail: #1a2430;
  --sheen: rgba(180, 220, 255, 0.12);
  --glow: rgba(80, 140, 210, 0.2);
  --glow-2: rgba(120, 160, 200, 0.12);
  --back-hi: #2a5580;
  --back-lo: #132636;
  --back-edge: #d7e8f8;
}

.room[data-venue="void"] {
  --bg: #050508;
  --felt-hi: #4a2a6a;
  --felt: #2a1440;
  --felt-lo: #12081c;
  --rail: #1a1020;
  --sheen: rgba(220, 180, 255, 0.1);
  --glow: rgba(140, 80, 200, 0.22);
  --glow-2: rgba(240, 200, 120, 0.1);
  --win: #f0d78c;
  --back-hi: #3a2060;
  --back-lo: #14081e;
  --back-edge: #e6d0ff;
  --line: rgba(220, 190, 255, 0.18);
}

.card.deal-in { animation: deal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.board .card.deal-in { animation: flip-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes deal-in {
  from { opacity: 0; translate: 0 -22px; scale: 0.85; }
}

@keyframes flip-in {
  from { opacity: 0; transform: rotateY(90deg) translateY(-8px); }
  to { opacity: 1; transform: rotateY(0) translateY(0); }
}

.dock {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 4px 20px 20px;
  text-align: center;
}

.narrator {
  margin: 0 0 6px;
  min-height: 1.4em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.narrator .who-said { color: var(--text-mute); margin-right: 6px; }
.narrator[hidden] { display: block; visibility: hidden; }

.log {
  min-height: 1.4em;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.6;
}

.log div:last-child { color: var(--text-dim); }
.log .quip { display: none; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 98px;
}

.controls:has(.main-actions) { flex-direction: column; gap: 10px; }

.sizing,
.main-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-actions .btn { min-width: 112px; }
.sizing .btn.quiet { min-height: 34px; border-color: var(--line); }
.sizing .slider { min-height: 34px; }

.wait { margin: 0; color: var(--text-mute); font-size: 13px; }

.btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: var(--panel-hi);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: #26262d; }
.btn:active { transform: translateY(1px); }

.btn:focus-visible,
.slider input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.btn:disabled { opacity: 0.35; cursor: default; }

.btn.fold { background: transparent; color: var(--text-dim); }
.btn.call { background: var(--panel-hi); }
.btn.raise, .btn.primary { background: var(--text); color: #0b0b0d; border-color: transparent; }
.btn.raise:hover, .btn.primary:hover { background: #ffffff; }
.btn.quiet { min-height: 36px; padding: 0 14px; background: transparent; color: var(--text-dim); font-size: 13px; }
.btn.quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn.allin { background: var(--danger); color: #fff; border-color: transparent; }
.btn.allin:hover { background: #ff6468; }

.slider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}

.slider b { color: var(--text); font-weight: 600; }
.slider input { width: 140px; accent-color: var(--text); }

.keys {
  margin: 10px 0 0;
  min-height: 1em;
  color: var(--text-mute);
  font-size: 11px;
}

#music-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--text-dim); }

.lesson {
  display: flex;
  flex-direction: column;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 16px;
  padding: 18px 20px 14px;
  max-height: min(58vh, 520px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.room.teaching { height: 100dvh; overflow: hidden; }
.room.teaching .dock { display: none; }
.room.teaching .stage { flex: none; padding: 20px 24px 16px; }
.room.teaching .table { width: min(640px, 100%); height: min(150px, 20vh); min-height: 0; }
.room.teaching .seats { display: none; }
.room.teaching .lesson { flex: 1; max-height: none; min-height: 0; }

#lesson-body { overflow: auto; min-height: 0; padding: 0 4px 16px 0; }

.lesson[hidden] { display: none; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.lesson-top,
.lesson-nav,
.sample-line,
.legend-row,
.pot-sample,
.compare-side {
  display: flex;
  align-items: center;
}

.lesson-top,
.lesson-nav { justify-content: space-between; gap: 12px; }

.lesson h2 { margin: 0; font-size: 22px; font-weight: 600; }

.lesson-copy {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.sample { margin-top: 12px; }

.sample-line,
.legend-row,
.pot-sample { gap: 10px; margin-top: 8px; }

.sample-label {
  width: 7.5em;
  flex: none;
  color: var(--text-dim);
  font-size: 13px;
}

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

.lesson-note { margin: 8px 0 0; color: var(--text); font-size: 14px; }

.rank-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rank-picks .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.rank-picks .btn.on { background: var(--text); color: #0b0b0d; border-color: transparent; }

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

.compare-side { align-items: flex-start; flex-direction: column; gap: 6px; }
.compare-side.win .sample-label { color: var(--win); }
.compare-note { grid-column: 1 / -1; }

.legend-row .lesson-copy { margin: 0; }
.sample-btn { pointer-events: none; min-width: 4.5em; text-align: center; }

.pot-sample {
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pot-sample span { color: var(--text-dim); font-size: 14px; }

.lesson-nav {
  flex: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lesson-nav p { margin: 0; color: var(--text-mute); font-size: 13px; }

@media (max-width: 800px) {
  .top { padding: 12px 14px; }
  .status { display: none; }
  .stage { padding: 52px 40px 72px; }
  .table { height: min(52vh, 460px); min-height: 340px; }
  .main-actions { flex-wrap: nowrap; width: 100%; }
  .main-actions .btn { flex: 1; min-width: 0; padding: 0 8px; }
  .sizing .slider input { width: 80px; }
  .felt { border-radius: 160px; }
  .board { gap: 4px; min-height: 58px; }
  .slot, .board .card { width: 40px; height: 58px; border-radius: 6px; }
  .board .card .rk { left: 4px; top: 4px; font-size: 18px; }
  .board .card .su { left: 5px; top: 24px; font-size: 12px; }
  .board .card .mid { display: none; }
  .card { width: 32px; height: 46px; border-radius: 5px; }
  .card .rk { font-size: 15px; left: 3px; top: 3px; }
  .card .su { top: 20px; left: 4px; font-size: 10px; }
  .seat.hero { flex-direction: column; gap: 6px; }
  .seat.hero .card { width: 52px; height: 74px; }
  .seat.hero .card .rk { font-size: 24px; }
  .seat.hero .card .su { top: 31px; font-size: 14px; }
  .seat.hero .card .mid { font-size: 24px; }
  .seat.hero .talk { right: auto; left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); }
  .avatar { width: 26px; height: 26px; font-size: 12px; }
  .who { padding: 3px 8px 3px 3px; gap: 6px; }
  .name { font-size: 12px; }
  .stackline { font-size: 11px; }
  .bank { left: calc(100% + 2px); }
  .seat.pos-right .bank { right: calc(100% + 2px); }
  .pile-stack { --d: 11px; }
  .talk { max-width: 130px; }
  .dock { padding: 4px 12px 14px; }
  .slider input { width: 100px; }
  .lesson { width: calc(100% - 20px); max-height: 62vh; }
  .compare { grid-template-columns: 1fr; }
  .sample-label { width: auto; }
}

.wallet {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.toast {
  margin: 0;
  padding: 0 28px;
  color: var(--win);
  font-size: 14px;
}

.toast[hidden] { display: none; }

.room.teaching .hall,
.room.teaching .achieve { display: none; }

.room.hall .table,
.room.hall .dock,
.room.achieving .table,
.room.achieving .dock { display: none; }

.room.hall .stage,
.room.achieving .stage {
  display: block;
  overflow: auto;
  padding: 28px 20px 40px;
}

.hall,
.achieve {
  width: min(760px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hall[hidden],
.achieve[hidden] { display: none; }

.hall h2,
.achieve h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.hall-lead,
.achieve-lead {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.venue-list,
.badge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.venue,
.badge {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.venue.lock { opacity: 0.55; }

.venue h3,
.badge strong {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.venue p,
.badge span {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

.swatch {
  height: 64px;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 0 6px var(--swatch-rail, #101015);
}

.swatch[data-venue="lane"] { background: linear-gradient(#2b3150, #11131f); --swatch-rail: #101015; }
.swatch[data-venue="felt"] { background: linear-gradient(#2ea86a, #0c4e2c); --swatch-rail: #5a3a22; }
.swatch[data-venue="harbor"] { background: linear-gradient(#1e7a68, #08332e); --swatch-rail: #2a241c; }
.swatch[data-venue="macau"] { background: linear-gradient(#a12838, #4a0c16); --swatch-rail: #2a1c10; }
.swatch[data-venue="peak"] { background: linear-gradient(#323238, #0e0e10); --swatch-rail: #c8b172; }
.swatch[data-venue="tower"] { background: linear-gradient(#3a6ea5, #10263c); --swatch-rail: #1a2430; }
.swatch[data-venue="void"] { background: linear-gradient(#4a2a6a, #12081c); --swatch-rail: #c8b172; }

.loan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.loan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.loan.lock { opacity: 0.5; }
.loan h3 { margin: 0; font-size: 15px; }
.loan p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
.meter > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f5c451, #f2555a);
}

.badge { grid-template-columns: 1fr auto; }
.badge.off { opacity: 0.42; }
.badge.on { border-color: rgba(245, 196, 81, 0.45); }
.badge b { color: var(--win); font-weight: 600; }

.hall-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 800px) {
  .venue { grid-template-columns: 72px 1fr; }
  .venue .btn { grid-column: 1 / -1; }
  .swatch { height: 48px; }
  .toast { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card.deal-in, .board .card.deal-in, .talk, .seat.turn .avatar, .disc.in, .pile.tick, .fx .disc { animation: none; transition: none; }
}
