/* 游戏大厅、斗地主、掼蛋、装扮 */
body.with-dock main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.with-bar main { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

.count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(243, 239, 230, 0), var(--bg) 26%);
}

.dock-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.dock-hint:empty { display: none; }

.rule {
  margin: 20px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* 我的筹码 */
.wallet {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.wallet-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wallet-label { color: var(--muted); font-size: 15px; }
.wallet-total { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }

.wallet-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-split > span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
}

.wallet-split b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wallet-split small { color: var(--muted); font-size: 12px; }

.no-cash {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.chip-price {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-actions .icon { width: 18px; height: 18px; }

/* 三种游戏 */
.game-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.game-card {
  display: grid;
  gap: 10px;
}

.gc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.gc-title {
  display: grid;
  flex: 1;
  min-width: 0;
}

.gc-title b { font-size: 18px; font-weight: 600; }
.gc-title span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.gc-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.trow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.trow .avatar { width: 36px; height: 36px; }

.trow-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.trow-text b { font-size: 15px; font-weight: 500; }

.trow-text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-btn {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.trow .btn.small { flex: none; padding: 0 12px; }

.shop-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.shop-entry-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.shop-entry-text b { font-size: 18px; font-weight: 600; }
.shop-entry-text small { color: var(--muted); font-size: 13px; }

.shop-preview {
  position: relative;
  flex: none;
  width: 56px;
  height: 44px;
}

.shop-preview .sw {
  position: absolute;
  inset: 4px 12px 4px 0;
  border-radius: 8px;
}

.shop-preview .sw-card {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 24px;
  height: 34px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #fffcf7, 0 1px 3px rgba(0, 0, 0, 0.25);
  transform: rotate(8deg);
}

.pick-game {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.pick-game b { font-size: 17px; }
.pick-game span { flex: 1; color: var(--muted); font-size: 13px; }

/* 开一桌 */
#new-game { margin-top: 16px; }
#new-game button { flex: 1; height: 44px; font-size: 15px; }

.invite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.invite {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 13px;
  cursor: pointer;
  transition: transform 150ms ease;
}

.invite:active { transform: scale(0.97); }

.invite[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.invite .tick {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.invite[aria-pressed="true"] .tick { display: block; }

.team-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fee-line {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
}

/* 牌桌 */
.table-chips {
  color: var(--muted);
  font-size: 14px;
}

.table-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 4px 0 8px;
  font-size: 15px;
}

.table-info span { color: var(--muted); font-size: 13px; }

.gfelt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  min-height: 250px;
  padding: 14px;
  border: 10px solid #5b3a26;
  border-radius: 26px;
  color: #fff;
  /* 木边上一圈皮扶手的暗边，桌子底下的影子 */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(0, 0, 0, 0.35), 0 0 0 3px #1c1917, 0 14px 28px rgba(26, 24, 20, 0.35);
}

.gfelt.ddz { grid-template-areas: "left center right" "mine mine mine"; }
.gfelt.gd { grid-template-areas: ". top ." "left center right" "mine mine mine"; }

.g-seat { min-width: 0; }
.g-seat.left { grid-area: left; }
.g-seat.right { grid-area: right; text-align: right; }
.g-seat.top { grid-area: top; text-align: center; }

.g-who {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.g-seat.right .g-who { flex-direction: row-reverse; }
.g-seat.top .g-who { justify-content: center; }

.g-face {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
}

.g-face .avatar {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.g-seat.turn .g-face .avatar,
.g-mine.turn .g-face .avatar { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 0 5px #e0a640; }

.g-name {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
}

.g-seat.right .g-name { justify-items: end; }

.g-name b {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-left {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}

.g-seat.right .g-left { justify-content: flex-end; }
.g-seat.top .g-left { justify-content: center; }
.g-left .warn { color: #ffd28a; font-weight: 600; }

.g-play {
  min-height: 44px;
  margin-top: 6px;
}

.g-seat.right .g-play,
.g-seat.right .g-show { display: flex; justify-content: flex-end; }
.g-seat.top .g-play { display: flex; justify-content: center; }

.g-say {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
}

.g-show { margin-top: 4px; opacity: 0.85; }

.mini-row { display: inline-flex; }

.g-center {
  display: grid;
  grid-area: center;
  align-content: start;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.bottom-cards { display: flex; gap: 3px; }

.g-mult {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

.g-sub { font-size: 12px; opacity: 0.85; }

.g-mine {
  display: grid;
  grid-area: mine;
  justify-items: center;
  gap: 6px;
}

.g-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-empty {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  padding: 20px 0;
  text-align: center;
}

.empty-figure { height: 150px; }

.g-result {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: grid;
  gap: 6px;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(26, 24, 20, 0.25);
}

.g-result p { margin: 0; font-size: 14px; line-height: 1.5; }
.g-result .result-head { font-size: 17px; font-weight: 600; }
.g-result .fee { color: var(--gold); font-weight: 600; }
.g-result .muted { color: var(--muted); font-size: 13px; }

.deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deltas li {
  display: flex;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
}

.deltas .up { color: var(--green); }
.deltas .down { color: var(--red); }

/* 牌面 */
.gc {
  display: inline-grid;
  flex: none;
  align-content: start;
  justify-items: center;
  width: 28px;
  height: 40px;
  padding-top: 3px;
  border-radius: 5px;
  background: #fffcf7;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1;
  user-select: none;
}

.gc b { font-size: 13px; font-weight: 700; }
.gc i { font-size: 12px; font-style: normal; }
.gc.red { color: var(--red); }
.gc.joker b { font-size: 11px; }
.gc.joker i { font-size: 12px; font-weight: 700; }
.gc.level { box-shadow: inset 0 0 0 2px #e0a640, 0 1px 2px rgba(0, 0, 0, 0.3); }

.gc.tiny {
  width: 16px;
  height: 22px;
  border-radius: 3px;
}

.gc.back {
  box-shadow: inset 0 0 0 2px #fffcf7, 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ghand {
  position: relative;
  margin-top: 8px;
}

.hand-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.gc.hand-card {
  position: absolute;
  padding: 5px 0 0 5px;
  justify-items: start;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), -2px 2px 6px rgba(26, 24, 20, 0.12);
  cursor: pointer;
  transition: transform 120ms ease;
}

.gc.hand-card b { font-size: 18px; }
.gc.hand-card i { font-size: 16px; }
.gc.hand-card.joker b { font-size: 13px; }
.gc.hand-card.joker i { font-size: 16px; }
.gc.hand-card.picked { transform: translateY(-14px); box-shadow: 0 0 0 2px var(--ink), 0 6px 12px rgba(26, 24, 20, 0.2); }

/* 底部操作条 */
.gbar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.bar-row,
.gbar .act-btns,
.gbar > .btn,
.gbar > .bar-status {
  width: min(100%, 388px);
  margin: 0 auto;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-row .bar-status { flex: 1; text-align: left; }

.bar-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

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

.act-btns.four { grid-template-columns: repeat(4, 1fr); }

.act-btns .btn {
  min-height: 48px;
  padding: 0 6px;
  white-space: nowrap;
}

.bar .btn.light {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.gbar > .btn.light { min-height: 52px; font-size: 17px; }

.bar .auto-btn.on { background: #fff; color: var(--ink); }

/* 买筹码 */
.pay-from {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
}

.pay-from b { font-size: 20px; }

.packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pack { flex-direction: column; gap: 2px; min-height: 64px; }
.pack b { font-size: 18px; }
.pack span { color: var(--muted); font-size: 14px; }

.sheet-card .sheet-rule {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

/* 装扮 */
.shop-rule { margin-top: 12px; }
.shop-filter { margin-top: 16px; }

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.item {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.item b { font-size: 15px; font-weight: 600; }
.item-price { color: var(--muted); font-size: 13px; }
.item .btn.small { min-width: 72px; }

.link-btn {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.pv {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 84px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}

.pv-card {
  width: 40px;
  height: 58px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #fffcf7, 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pv-face {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* 桌布 */
/* 绒布用真绒布的纹理（ADR-0132）；酒红是同一块绒布染红 */
.cloth-green { background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25) 80%), url("img/felt.jpg") center / cover, #2c4f3c; }
.cloth-red {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3) 80%), url("img/felt.jpg") center / cover, #7a2f29;
  background-blend-mode: normal, luminosity, normal;
}
.cloth-navy {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.25) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 30%, #34558c, #1f3357 75%);
  background-size: 60px 60px, 80px 80px, 70px 70px, auto;
}
.cloth-paper { background: linear-gradient(135deg, #efe6d4, #d9ccb2); color: var(--ink); }
.gfelt.cloth-paper { color: var(--ink); }
.gfelt.cloth-paper .g-mult,
.gfelt.cloth-paper .g-say { background: rgba(26, 24, 20, 0.1); }

/* 牌背 */
.back-violet { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 3px, transparent 3px 6px), var(--violet); }
.back-red { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 6px), var(--red); }
.back-gold { background: radial-gradient(circle at 50% 50%, transparent 0 4px, rgba(255, 255, 255, 0.35) 4px 5px, transparent 5px) 0 0 / 10px 10px, var(--gold); }
.back-bamboo { background: linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, 0.55) 40% 46%, transparent 46%), repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.5) 9px 10px), #2f4a3c; }

/* 我的家的摆设 */
.pv-home .thing { position: relative; display: block; }
.home-plant .thing { width: 26px; height: 24px; margin-top: 30px; border-radius: 0 0 8px 8px; background: #b9774a; }
.home-plant .thing::before { content: ""; position: absolute; left: -10px; bottom: 22px; width: 46px; height: 34px; border-radius: 50% 50% 40% 40%; background: var(--green); }
.home-lamp .thing { width: 4px; height: 52px; margin-top: 20px; background: var(--ink); }
.home-lamp .thing::before { content: ""; position: absolute; left: -16px; top: -14px; width: 36px; height: 22px; border-radius: 18px 18px 4px 4px; background: #f2c46b; box-shadow: 0 10px 24px rgba(242, 196, 107, 0.8); }
.home-lamp .thing::after { content: ""; position: absolute; left: -10px; bottom: -2px; width: 24px; height: 4px; border-radius: 2px; background: var(--ink); }
.home-shelf .thing { width: 56px; height: 64px; border: 4px solid #8b5e3c; border-radius: 3px; background: repeating-linear-gradient(180deg, transparent 0 17px, #8b5e3c 17px 21px), linear-gradient(90deg, #34558c 0 8px, #b2452f 8px 14px, transparent 14px 22px, #8a5a12 22px 28px, transparent 28px); }

@media (max-width: 360px) {
  .gfelt { padding: 10px 8px; }
  .g-name b { font-size: 13px; }
}

/* 按类分（ADR-0174）：棋牌、大头数字人游戏、装扮商店 */
.cat-nav { margin-top: 4px; }
.cat-nav { flex-wrap: nowrap; }
.cat-nav button { flex: 1 1 auto; padding: 0 10px; white-space: nowrap; }

.cat-title {
  margin-top: 28px;
  scroll-margin-top: 16px;
}

.cat-title + .game-list { margin-top: 0; }

.cat-lead {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cat-title + .shop-entry { margin-top: 0; }

.dh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dh-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 10px;
}

.dh-card b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.dh-short { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* 示意图：自己画的，卡通形象用原型 avatars/ 里的 */
.art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}

.art.big {
  aspect-ratio: 16 / 10;
  margin-top: 8px;
  border-radius: 18px;
}

.art-head {
  position: absolute;
  height: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 6px 14px rgba(26, 24, 20, 0.25);
  object-fit: cover;
}

.art-head.solo { left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* 节日祝福短片 */
.art-wish { background: linear-gradient(135deg, #b2452f, #e07a4f); }
.art-film { position: absolute; inset: 10% 12%; border: 3px dashed rgba(255, 255, 255, 0.55); border-radius: 10px; }
.art-fu {
  position: absolute;
  left: 7%;
  top: 9%;
  display: grid;
  place-items: center;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2c46b;
  color: var(--red);
  font-size: clamp(14px, 5vw, 26px);
  font-weight: 700;
}
.art.big .art-fu { font-size: 34px; }
.art-play {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.art-play::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 28%;
  border-top: 0.55em solid transparent;
  border-bottom: 0.55em solid transparent;
  border-left: 0.85em solid var(--red);
}

/* 猜猜我是谁 */
.art-guess { background: linear-gradient(135deg, #34558c, #6a8fcf); }
.art-grid {
  position: absolute;
  inset: 10% 24%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  place-items: center;
}
.art-grid .art-head { position: static; width: 100%; height: auto; }
.art-ask {
  position: absolute;
  right: 6%;
  top: 8%;
  display: grid;
  place-items: center;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 8%;
  background: #f2c46b;
  color: var(--ink);
  font-size: clamp(14px, 5vw, 28px);
  font-weight: 700;
}

/* 表情模仿大赛 */
.art.art-face { background: linear-gradient(135deg, var(--violet), #8a6cc4); }
.art-phone {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 40%;
  height: 88%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  transform: translateX(-50%);
}
.art-face .art-head { height: 46%; }
.art-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--violet);
  font-size: clamp(12px, 4vw, 22px);
  font-weight: 700;
}
.art-bubble.one { left: 8%; top: 18%; }
.art-bubble.two { right: 8%; bottom: 16%; }

/* 牌桌表情和换装走秀 */
.art-show { background: #1a1814; }
.art-light {
  position: absolute;
  left: 25%;
  top: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 236, 190, 0.6), rgba(255, 236, 190, 0) 70%);
}
.art-stage {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 20%;
  background: linear-gradient(#8a5a12, #5b3a26);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.art-flower {
  position: absolute;
  left: 12%;
  top: 22%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2c46b;
  box-shadow: 0 -0.5em 0 -0.1em #e88aa6, 0 0.5em 0 -0.1em #e88aa6, -0.5em 0 0 -0.1em #e88aa6, 0.5em 0 0 -0.1em #e88aa6;
}
.art-tomato {
  position: absolute;
  right: 12%;
  top: 30%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f08a6a, var(--red) 70%);
}
.art-tomato::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -14%;
  width: 40%;
  height: 26%;
  border-radius: 50%;
  background: var(--green);
}

/* 体感跳舞 · 两家对战 */
.art-dance { background: linear-gradient(135deg, var(--green), #5aa57e); }
.art-head.left { left: 5%; top: 30%; height: 42%; }
.art-head.right { right: 5%; top: 30%; height: 42%; }
.art-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2c46b;
  color: var(--ink);
  font-size: clamp(11px, 3.4vw, 22px);
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.art-note { position: absolute; color: #fff; font-size: clamp(14px, 5vw, 28px); opacity: 0.9; }
.art-note.one { left: 42%; top: 6%; }
.art-note.two { left: 50%; bottom: 6%; }

/* 大头派对闯关 */
.art-party { background: linear-gradient(#9fd0f0 0 58%, #7cbf6a 58%); }
.art-track { position: absolute; left: 0; right: 0; bottom: 12%; height: 24%; background: #d9a066; }
.art-head.runner { height: 34%; }
.art-head.r0 { left: 8%; bottom: 26%; }
.art-head.r1 { left: 36%; bottom: 38%; }
.art-head.r2 { left: 62%; bottom: 24%; }
.art-hurdle { position: absolute; bottom: 20%; width: 3%; height: 18%; background: #fff; box-shadow: 0.9em 0 0 #fff; }
.art-hurdle::before { content: ""; position: absolute; left: 0; top: 0; width: 1.2em; height: 22%; background: var(--red); }
.art-hurdle.one { left: 28%; }
.art-hurdle.two { left: 56%; }
.art-flag { position: absolute; right: 7%; bottom: 30%; width: 2%; height: 40%; background: var(--ink); }
.art-flag::after { content: ""; position: absolute; left: 100%; top: 0; width: 1.6em; height: 1em; background: repeating-conic-gradient(#fff 0 25%, var(--ink) 0 50%) 0 0 / 0.5em 0.5em; }

/* 五子棋 */
.art-gomoku { background: linear-gradient(135deg, #8b5e3c, #5b3a26); }
.art-board {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 84%;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(60, 38, 18, 0.6) 0 1px, transparent 1px 14.28%),
    repeating-linear-gradient(0deg, rgba(60, 38, 18, 0.6) 0 1px, transparent 1px 14.28%),
    #ddb06a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.art-stone {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.art-stone.b { background: radial-gradient(circle at 35% 30%, #6b6660, #141210 70%); }
.art-stone.w { background: radial-gradient(circle at 35% 30%, #fff, #d6cfc2 75%); }
.art-stone.win { box-shadow: 0 0 0 2px #e0a640; }
.art-win {
  position: absolute;
  left: 14.3%;
  top: 14.3%;
  width: 80.9%;
  height: 3px;
  border-radius: 2px;
  background: #e0a640;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: 0 50%;
}

/* 介绍页 */
.about-title { margin: 16px 0 18px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.how-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-steps li {
  position: relative;
  min-height: 28px;
  padding: 3px 0 0 40px;
  font-size: 15px;
  line-height: 1.55;
  counter-increment: step;
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.about-mode { display: grid; gap: 4px; margin-bottom: 10px; }
.about-mode b { font-size: 16px; }
.about-mode p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.about-tables { margin-top: 16px; }
.about-tables:empty { display: none; }

.dock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn.primary.ghost { background: #fff; color: var(--ink); }
