/* =====================================================================
 * 地产大亨：交易 · 「大西洋城棋盘绿 · 地契与钞票」
 *   底：经典大富翁棋盘的薄荷绿 + 钞票雕版细纹；面：白色地契卡纸（细双线框）；
 *   主强调：大富翁红；对比：钱币金；十种地产色只出现在地契色条、成套进度上。
 *   数字用 Oswald（像钞票和地契上的窄体数字）。
 * ===================================================================== */
@font-face { font-family: 'Osw'; src: url('fonts/oswald.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }

:root {
  --bg: #cfe6d2;
  --bg2: #bddcc2;
  --paper: #fffdf6;
  --paper2: #f4f1e4;
  --ink: #123a2b;
  --ink2: #3f6252;
  --ink3: #7b9688;
  --line: rgba(18, 58, 43, .18);
  --red: #e2262c;
  --red-d: #a8141a;
  --gold: #f6c430;
  --gold-d: #b98a00;
  --blue: #1f4fa3;
  --ok: #1e9a4c;
  --top-h: 48px;
  --hub-footer-h: 26px;
  --num: 'Osw', 'Bahnschrift', 'DIN Alternate', 'Arial Narrow', sans-serif;
  --zh: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --r: 12px;
  --hand-h: 132px;
  --deed-w: 58px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--zh); color: var(--ink); background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(18,58,43,.035) 58.5% 59%, transparent 59.5% 66%, rgba(18,58,43,.035) 66.5% 67%, transparent 67.5%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(18,58,43,.03) 0 1px, transparent 1px 9px);
  background-size: 120px 120px, auto, auto;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
.scrolly { scrollbar-width: thin; scrollbar-color: rgba(18,58,43,.35) transparent; }
.scrolly::-webkit-scrollbar, .hand::-webkit-scrollbar, .oppchips::-webkit-scrollbar, .myboard::-webkit-scrollbar, .opps::-webkit-scrollbar, .pop::-webkit-scrollbar, .modal-box::-webkit-scrollbar { width: 6px; height: 6px; }
.scrolly::-webkit-scrollbar-thumb, .hand::-webkit-scrollbar-thumb, .oppchips::-webkit-scrollbar-thumb, .myboard::-webkit-scrollbar-thumb, .opps::-webkit-scrollbar-thumb, .pop::-webkit-scrollbar-thumb, .modal-box::-webkit-scrollbar-thumb { background: rgba(18,58,43,.3); border-radius: 6px; }
.scrolly::-webkit-scrollbar-track, .hand::-webkit-scrollbar-track { background: transparent; }

.app-shell { min-height: calc(100dvh - var(--hub-footer-h)); }
.screen { display: none; }
body[data-screen="start"] #screen-start, body[data-screen="resume"] #screen-resume, body[data-screen="lobby"] #screen-lobby, body[data-screen="game"] #screen-game { display: block; }

/* ---------------------------------------------------------------- 顶栏：像棋盘边上的一条地产色带 */
.topbar {
  height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px;
  background: var(--paper); position: relative; z-index: 5;
  box-shadow: 0 1px 0 var(--line);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: linear-gradient(90deg, #8a5a3b 0 10%, #8fd0ef 10% 20%, #d8459b 20% 30%, #f39324 30% 40%, #e2262c 40% 50%, #f6dc2a 50% 60%, #1e9a4c 60% 70%, #1f4fa3 70% 80%, #2b2b2b 80% 90%, #b9d98a 90%); }
.logo { width: 36px; height: 36px; flex: none; }
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand b { font-size: 17px; font-weight: 900; letter-spacing: .5px; white-space: nowrap; }
.brand small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp { flex: 1; }
.tools { display: flex; gap: 6px; flex: none; }
.tb { height: 32px; padding: 0 11px; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 13px; font-weight: 700; }
.tb:hover { background: #eef7ef; }
.tb.warn { border-color: var(--red); color: var(--red); }
.tb.off { opacity: .5; text-decoration: line-through; }

/* ---------------------------------------------------------------- 按钮 */
.btn { min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 15px; font-weight: 800; border: 0; letter-spacing: .5px; transition: transform .08s, filter .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.main { background: var(--red); color: #fff; box-shadow: inset 0 -3px 0 var(--red-d); }
.btn.main:hover:not(:disabled) { filter: brightness(1.06); }
.btn.blue { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 #14336b; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold-d); }
.btn.sec { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.btn.sec:hover:not(:disabled) { background: #eef7ef; }
.btn.warn-ghost { background: transparent; color: var(--red); border: 1.5px dashed var(--red); }
.btn.big { min-height: 48px; font-size: 16px; width: 100%; }
.btn.tiny { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .45; }
.inp { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--ink); }
.inp:focus { outline: 3px solid rgba(226,38,44,.25); }
.inp.code { text-transform: uppercase; letter-spacing: 6px; font-family: var(--num); font-size: 20px; text-align: center; }

.panel { background: var(--paper); border-radius: var(--r); position: relative; box-shadow: 0 2px 0 var(--bg2), 0 0 0 1px var(--line); }
.panel::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(18,58,43,.12); border-radius: calc(var(--r) - 4px); pointer-events: none; }

/* ---------------------------------------------------------------- 开始页 */
.start-main { max-width: 1240px; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; min-height: calc(100dvh - var(--top-h) - var(--hub-footer-h)); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hero-art { position: relative; height: 330px; }
.hero-art .mr { position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); filter: drop-shadow(0 6px 0 rgba(18,58,43,.12)); z-index: 2; }
.hero-art .fan { position: absolute; width: 112px; transform-origin: 50% 120%; z-index: 1; }
.hero-art .fan .cd { width: 112px; }
.hero-copy h1 { font-size: 36px; line-height: 1.2; margin: 0 0 8px; font-weight: 900; }
.hero-copy h1 em { font-style: normal; color: var(--red); }
.hero-copy p { margin: 6px 0; font-size: 15px; line-height: 1.65; color: var(--ink2); }
.hero-copy b { color: var(--ink); }
.hero-copy .red { color: var(--red); }
.hero-copy .tiny { font-size: 12px; color: var(--ink3); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hero-tags span { padding: 4px 10px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.entry { background: var(--paper); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: 0 3px 0 var(--bg2), 0 0 0 1px var(--line); }
.entry::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 16px 16px 0 0; background: var(--red); }
.entry-logo { width: 54px; height: 54px; align-self: center; margin-top: 4px; }
.entry h2 { margin: 0 0 4px; text-align: center; font-size: 20px; font-weight: 900; letter-spacing: 3px; }
.entry .lbl { font-size: 13px; color: var(--ink2); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.resume-box { max-width: 380px; margin: 18vh auto 0; padding: 24px; text-align: center; background: var(--paper); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: 0 3px 0 var(--bg2); }
.resume-logo { width: 64px; height: 64px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- 大厅 */
.lobby-main { max-width: 1820px; margin: 0 auto; padding: 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; min-height: calc(100dvh - var(--top-h) - var(--hub-footer-h)); align-items: stretch; }
.lobby-left, .lobby-right { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lobby-head { display: flex; align-items: center; gap: 10px; }
.lobby-head b { font-family: var(--num); font-size: 24px; font-weight: 600; }
.pill { padding: 3px 10px; border-radius: 12px; background: #eaf4ec; font-size: 13px; font-weight: 700; color: var(--ink2); }
.seats { display: grid; gap: 10px; flex: 1; align-content: start; }
.seats.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seat { position: relative; border-radius: 10px; background: #fff; border: 1.5px dashed var(--ink3); padding: 10px 8px 8px; text-align: center; min-height: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; overflow: hidden; }
.seat.taken { border: 1.5px solid var(--ink); }
.seat.taken::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--sc, #ccc); }
.seat .tok { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: var(--sc, #ccc); border: 2px solid var(--ink); margin-top: 4px; }
.seat .tok.empty { background: transparent; border-style: dashed; border-color: var(--ink3); }
.seat .nm { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #eaf4ec; font-weight: 700; }
.tag.host { background: var(--gold); }
.tag.you { background: var(--red); color: #fff; }
.tag.bot { background: #dfe7ff; }
.tag.off { background: #ddd; }
.seat-btns { margin-top: 2px; }
.lobby-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fill { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.fill select { height: 40px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; font-family: inherit; font-size: 14px; padding: 0 6px; color: var(--ink); }
.lobby-go { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.scoreboard, .history { font-size: 13px; color: var(--ink2); }
.settings { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: flex; flex-direction: column; gap: 6px; }
.set-row > b { font-size: 14px; }
.set-row > small, .set-note { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.seg button small { font-size: 11px; font-weight: 500; color: var(--ink2); }
.seg button.on { background: var(--ink); color: #fff; }
.seg button.on small { color: #cfe6d2; }
.xbox { border-radius: 10px; border: 1.5px dashed var(--ink3); padding: 10px 12px; font-size: 13px; line-height: 1.55; color: var(--ink2); background: #fbfaf3; }
.xbox b { color: var(--ink); }
.lobby-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.set-row.lc { display: none; }
@media (min-width: 1000px) and (min-height: 860px) { .set-row.lc { display: flex; } }
.lobby-cards .cd { --w: clamp(70px, 6.4vw, 96px); cursor: pointer; }

/* ================================================================ 卡牌 */
.cd { --w: 96px; container-type: inline-size; width: var(--w); aspect-ratio: 5 / 7.4; border-radius: calc(var(--w) * .07); background: #fff; position: relative; flex: none; overflow: hidden; user-select: none;
  box-shadow: 0 1px 0 rgba(18,58,43,.25), 0 0 0 1px rgba(18,58,43,.22); font-size: calc(var(--w) * .115); line-height: 1.15; transition: transform .16s, box-shadow .16s; }
.cd img { display: block; pointer-events: none; }
.cd .val { position: absolute; left: 5%; top: 3.5%; width: 23%; aspect-ratio: 1; transform: rotate(45deg); background: var(--fc, #888); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--fc, #888); z-index: 3; }
.cd .val i { position: absolute; inset: 0; display: grid; place-items: center; transform: rotate(-45deg); font-style: normal; font-family: var(--num); font-weight: 600; color: #fff; font-size: calc(var(--w) * .12); letter-spacing: -.5px; }
.cd .val i::before { content: 'M'; font-size: .62em; margin-right: 1px; opacity: .9; }
.cd .frame { position: absolute; inset: 3.5%; border-radius: calc(var(--w) * .04); border: calc(var(--w) * .028) solid var(--fc, #888);
  background: repeating-linear-gradient(45deg, transparent 0 2px, color-mix(in srgb, var(--fc, #888) 14%, transparent) 2px 3px); }
.cd .frame::after { content: ''; position: absolute; inset: calc(var(--w) * .03); background: #fff; border-radius: 2px; }
.cd .body { position: absolute; inset: 10% 9% 7%; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cd .kick { font-size: .7em; font-weight: 900; letter-spacing: .1em; color: var(--fc, #888); margin-top: 6%; white-space: nowrap; }
.cd .ill { flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; }
.cd .ill img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cd .nm { font-weight: 900; font-size: 1em; white-space: nowrap; color: var(--ink); background: #fff; padding: 2px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cd .nm.long { font-size: .86em; }
.cd .tx { display: none; font-size: .62em; color: var(--ink2); line-height: 1.35; margin-top: 2px; }
.cd.money img { width: 100%; height: 100%; object-fit: cover; }
.cd.money .mv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--num); font-weight: 700; font-size: 2.2em; color: var(--fc); text-shadow: 0 0 4px #fff, 0 0 2px #fff; display: none; }
.cd.money.noimg .mv { display: block; }

/* 地契 */
.cd.prop .band { position: absolute; left: 7%; right: 7%; top: 9%; height: 24%; background: var(--pc); color: var(--pi); border: 1.5px solid rgba(0,0,0,.25); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 4%; z-index: 2; }
.cd.prop .band b { font-weight: 900; font-size: .95em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cd.prop .band b.long { font-size: .8em; }
.cd.prop .band small { font-size: .52em; opacity: .85; letter-spacing: .04em; white-space: nowrap; }
.cd.prop .val { top: 2%; left: 3%; width: 21%; --fc: var(--pc); }
.cd.prop .val i { color: var(--pi); }
.cd .rt { position: absolute; left: 12%; right: 12%; top: 38%; bottom: 8%; display: flex; flex-direction: column; justify-content: center; gap: 4%; font-family: var(--num); z-index: 2; }
.cd .rt div { display: flex; align-items: center; justify-content: space-between; font-size: .9em; border-bottom: 1px dotted rgba(18,58,43,.3); }
.cd .rt div span { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border: 1.5px solid var(--ink); border-radius: 3px; font-size: .8em; font-weight: 600; }
.cd .rt div.full span { background: var(--pc); color: var(--pi); }
.cd .rt div b { font-weight: 600; }
.cd .rt div b::before { content: 'M'; font-size: .7em; margin-right: 1px; }
.cd .rt .cap { font-family: var(--zh); font-size: .55em; border: 0; justify-content: center; color: var(--ink3); }
/* 两色万能地产：上下两色 */
.cd.wild .band { bottom: auto; }
.cd.wild .band.b2 { top: auto; bottom: 9%; background: var(--pc2); color: var(--pi2); transform: rotate(180deg); }
.cd.wild .rt { top: 35%; bottom: 35%; }
.cd.wild .rt .wl { font-family: var(--zh); font-size: .66em; font-weight: 800; justify-content: center; border: 0; color: var(--ink2); }
.cd.wild.cur2 .band.b1 { opacity: .5; }
.cd.wild.cur1 .band.b2 { opacity: .5; }
.cd.rainbow { background: #fff; }
.cd.rainbow .frame { border-image: linear-gradient(180deg, #e2262c, #f39324, #f6dc2a, #1e9a4c, #8fd0ef, #1f4fa3, #d8459b) 1; border-radius: 0; }
.cd.rainbow .kick { color: var(--ink); }
/* 租金 */
.cd.rent .wheel { width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: conic-gradient(var(--c1) 0 50%, var(--c2) 50% 100%); margin: 4% auto 0; flex: none; }
.cd.rent.any .wheel { background: conic-gradient(#8a5a3b 0 10%, #8fd0ef 10% 20%, #d8459b 20% 30%, #f39324 30% 40%, #e2262c 40% 50%, #f6dc2a 50% 60%, #1e9a4c 60% 70%, #1f4fa3 70% 80%, #2b2b2b 80% 90%, #b9d98a 90%); }
.cd.rent .ill { flex: 1 1 0; }

/* 小卡（桌上地契）：只要色条 + 名字 */
.deed { --w: var(--deed-w); width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * .08); background: #fff; position: relative; flex: none; box-shadow: 0 0 0 1px rgba(18,58,43,.35), 0 1px 0 rgba(18,58,43,.2); overflow: hidden; }
.deed .band { position: absolute; left: 5%; right: 5%; top: 4%; height: calc(var(--w) * .38); background: var(--pc); color: var(--pi); border-radius: 2px; display: grid; place-items: center; font-weight: 900; font-size: max(11px, calc(var(--w) * .23)); line-height: 1; text-align: center; padding: 0 2%; white-space: nowrap; overflow: hidden; letter-spacing: -.5px; }
.deed .band.long { font-size: max(11px, calc(var(--w) * .2)); }
.deed .dv { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; font-family: var(--num); font-weight: 600; font-size: max(12px, calc(var(--w) * .26)); color: var(--ink2); }
.deed .dv::before { content: 'M'; font-size: .7em; margin-right: 1px; }
.deed.wild .band { background: linear-gradient(135deg, var(--pc) 0 60%, var(--pc2) 60%); }
.deed .wtag { position: absolute; left: 0; right: 0; top: 47%; text-align: center; font-size: max(11px, calc(var(--w) * .2)); font-weight: 800; color: var(--ink2); white-space: nowrap; }
.deed.rainbow .band { background: linear-gradient(90deg, #e2262c, #f39324, #f6dc2a, #1e9a4c, #8fd0ef, #1f4fa3, #d8459b); color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.deed.rainbow .band::after { content: ''; }
.deed.pick, .cd.pick { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--ink); cursor: pointer; animation: pickp 1.1s ease-in-out infinite; }
.deed.sel, .cd.sel { box-shadow: 0 0 0 3px var(--red), 0 0 0 5px #fff; }
@keyframes pickp { 50% { transform: translateY(-3px); } }
body.nofx .deed.pick, body.nofx .cd.pick { animation: none; }
.deed.dim { opacity: .45; }
.deed.flippable::after { content: '⇄'; position: absolute; right: 3%; bottom: 3%; font-size: calc(var(--w) * .2); color: var(--ink); background: var(--gold); border-radius: 50%; width: 1.3em; height: 1.3em; display: grid; place-items: center; line-height: 1; }

/* 一套地产：竖着叠，露出色条 */
.pset { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.pset .stack { position: relative; width: var(--deed-w); }
.pset .stack .deed { position: absolute; left: 0; }
.pset .stack .deed:first-child { position: relative; }
.pset .meta { margin-top: 3px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 2px; white-space: nowrap; font-family: var(--num); }
.pset .meta .cnt { padding: 0 5px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pset.done .meta .cnt { background: var(--ink); color: #fff; border-color: var(--ink); }
.pset .meta svg { width: 14px; height: 14px; }
.pset.done .stack::after { content: '★'; position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 11px; z-index: 9; }
.pset.pick .stack { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; cursor: pointer; }
.pset.pick { animation: pickp 1.1s ease-in-out infinite; }
body.nofx .pset.pick { animation: none; }

/* 银行：一叠钞票 */
.bank { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border: 0; background: transparent; padding: 0; }
.bank .pile { position: relative; width: calc(var(--deed-w) * 1.05); aspect-ratio: 5 / 7; }
.bank .pile .note { position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--nc, #eee); box-shadow: inset 0 0 0 3px #fff; }
.bank .pile .note:nth-child(2) { transform: translate(3px, -3px) rotate(4deg); }
.bank .pile .note:nth-child(3) { transform: translate(6px, -6px) rotate(8deg); }
.bank .pile b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--num); font-weight: 700; font-size: calc(var(--deed-w) * .34); color: var(--ink); z-index: 4; text-shadow: 0 0 4px #fff, 0 0 4px #fff; }
.bank .pile b::before { content: 'M'; font-size: .55em; }
.bank small { font-size: 11px; font-weight: 800; color: var(--ink2); }
.bank.empty .pile .note { background: transparent; border-style: dashed; box-shadow: none; }
.bank.pick .pile { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ================================================================ 对局布局（手机优先） */
.game { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 6px; }
.col-opps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oppchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 3px; scrollbar-width: none; }
.oc { flex: none; min-width: 104px; max-width: 136px; min-height: 52px; border-radius: 10px; background: var(--paper); border: 1.5px solid var(--line); padding: 5px 7px; display: flex; flex-direction: column; gap: 2px; text-align: left; position: relative; }
.oc.on { border-color: var(--ink); box-shadow: 0 2px 0 var(--bg2); }
.oc.turn::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--red); }
.oc.pick { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); animation: pickp 1.1s ease-in-out infinite; }
.oc .r1 { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; }
.oc .r1 .nm { overflow: hidden; text-overflow: ellipsis; }
.oc .r2 { display: flex; gap: 6px; font-family: var(--num); font-size: 12px; color: var(--ink2); white-space: nowrap; }
.oc .r2 b { color: var(--ink); font-weight: 600; }
.oc .pips { display: flex; gap: 2px; flex-wrap: wrap; }
.oc .pip { width: 10px; height: 10px; border-radius: 2px; background: var(--pc); border: 1px solid rgba(0,0,0,.3); position: relative; }
.oc .pip.done::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #fff; }
.stars { font-size: 11px; letter-spacing: -1px; color: var(--gold-d); }
.stars i { font-style: normal; color: #c9d6cd; }
.stars i.on { color: var(--gold-d); }
.dot-off { width: 7px; height: 7px; border-radius: 50%; background: #b8b8b8; flex: none; }

/* 一位对手的桌面 */
.opps { display: flex; flex-direction: column; gap: 6px; }
.ob { background: var(--paper); border-radius: 12px; padding: 6px 8px 7px; position: relative; box-shadow: 0 0 0 1px var(--line); }
.ob.turn { box-shadow: 0 0 0 2px var(--red); }
.ob .oh { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; min-height: 22px; }
.ob .oh .nm { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.ob .oh .meta { font-family: var(--num); font-size: 13px; color: var(--ink2); display: flex; gap: 8px; margin-left: auto; white-space: nowrap; }
.ob .oh .meta b { color: var(--ink); font-weight: 600; }
.ob .oh .meta svg { width: 13px; height: 13px; vertical-align: -2px; color: var(--ink2); }
.ob .tbl { display: flex; gap: 8px; align-items: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 4px 2px 2px; min-height: 66px; scrollbar-width: thin; }
.ob .tbl .none { font-size: 12px; color: var(--ink3); align-self: center; }
.ob.pick { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--ink); cursor: pointer; }

/* 舞台：当前发生什么 + 牌堆 */
.stage { background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 6px 10px; display: flex; align-items: center; gap: 10px; min-height: 44px; position: relative; overflow: hidden; }
.stage .turn-tag { flex: none; padding: 3px 9px; border-radius: 12px; font-weight: 900; font-size: 13px; background: #eaf4ec; white-space: nowrap; }
.stage .turn-tag.me { background: var(--red); color: #fff; }
.stage .say { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.stage .say small { display: block; font-size: 12px; font-weight: 500; color: var(--ink2); }
.stage .plays { flex: none; display: flex; gap: 3px; }
.stage .plays i { width: 12px; height: 16px; border-radius: 3px; border: 1.5px solid var(--ink); background: #fff; }
.stage .plays i.used { background: var(--ink); }
.stage .piles { flex: none; display: flex; gap: 6px; align-items: center; }
.stage .pilebox { display: flex; flex-direction: column; align-items: center; font-family: var(--num); font-size: 11px; color: var(--ink2); }
.stage .pilebox .mini { width: 26px; height: 36px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--red); position: relative; }
.stage .pilebox .mini::after { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.7); border-radius: 2px; }
.stage .pilebox .mini.disc { background: #fff; }
.stage .shown { display: none; }
.stage .shown .kick { display: none; }
.stage .shown .nm { font-size: 11px; }
.recent { display: none; flex: none; gap: 6px; }
.rp { width: clamp(84px, 7.6vw, 120px); display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.2; min-width: 0; }
.rp b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.rp .rc { display: block; border-left: 5px solid var(--fc); background: #fff; border-radius: 4px; padding: 3px 6px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.rp small { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.bank .stars { font-size: 13px; }

/* 我的桌面 */
.myboard { background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 6px 8px; display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; min-height: 112px; --deed-w: 54px; position: relative; }
.myboard .sets { display: flex; gap: 8px; align-items: flex-start; }
.myboard .none { font-size: 13px; color: var(--ink3); align-self: center; }
.prog { display: none; gap: 4px; }
.prog span { flex: 1; min-width: 0; height: 26px; border-radius: 6px; background: #fff; border: 1.5px solid var(--pc); display: flex; align-items: center; justify-content: center; gap: 3px; font-family: var(--num); font-size: 12px; font-weight: 600; color: var(--ink2); position: relative; overflow: hidden; white-space: nowrap; }
.prog span i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--f); background: var(--pc); opacity: .35; }
.prog span b { position: relative; font-weight: 600; color: var(--ink); }
.prog span.done { background: var(--pc); color: var(--pi); }
.prog span.done b { color: var(--pi); }
@media (min-width: 1000px) { .prog { display: flex; } }
.myboard .tray { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; max-width: 220px; }
.myboard .tray .chip { min-width: 40px; height: 44px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--nc, #fff); font-family: var(--num); font-weight: 700; font-size: 15px; display: grid; place-items: center; padding: 0 6px; position: relative; box-shadow: inset 0 0 0 3px #fff; }
.myboard .tray .chip { display: flex; flex-direction: column; line-height: 1.05; height: 48px; }
.myboard .tray .chip small { font-family: var(--zh); font-size: 11px; font-weight: 700; color: var(--ink2); max-width: 4.5em; overflow: hidden; white-space: nowrap; }
.myboard .tray.ro { max-width: 150px; align-content: flex-start; }
.myboard .tray.ro .chip { min-width: 44px; height: 44px; font-size: 14px; }
.myboard .tray .chip.sel { box-shadow: 0 0 0 3px var(--red), inset 0 0 0 3px #fff; transform: translateY(-3px); }

/* 手牌 */
.handwrap { position: relative; }
.hand { display: flex; gap: 6px; overflow-x: auto; overflow-y: visible; padding: 14px 4px 4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.hand .cd { --w: calc(var(--hand-h) * .676); cursor: pointer; scroll-snap-align: start; }
.hand .cd.lift { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--gold), 0 6px 0 rgba(18,58,43,.18); }
.hand .cd.sel { transform: translateY(-10px); }
.hand .cd.sel::after { content: attr(data-n); position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; z-index: 9; }
.hand .cd.dim { opacity: .55; }
.hand .empty { font-size: 13px; color: var(--ink3); padding: 20px 6px; }

/* 操作栏 */
.actbar { background: var(--ink); color: #fff; border-radius: 14px; padding: 6px 6px 6px 12px; display: flex; align-items: center; gap: 8px; min-height: 56px; }
.actbar .hint { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.actbar .hint small { display: block; font-size: 12px; font-weight: 500; color: #b9d8c4; }
.actbar .hint .amt { color: var(--gold); font-family: var(--num); font-weight: 600; }
.actbar .btns { display: flex; gap: 6px; flex: none; }
.actbar .btn.sec, .actbar .btn.sec:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; border-color: #cfe6d2; }
.actbar .btn.sec:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.actbar .timer { font-family: var(--num); font-size: 13px; color: var(--gold); }
.actbar.wait { background: #2b5443; }
.actbar.alert { background: var(--red-d); }

/* 侧栏标签页 */
.col-side { background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; min-height: 38px; border: 0; background: transparent; font-weight: 800; font-size: 14px; border-radius: 8px 8px 0 0; color: var(--ink2); }
.tabs button.on { background: var(--ink); color: #fff; }
.tab-body { padding: 8px 10px; font-size: 13px; line-height: 1.55; min-height: 220px; }
.log div { padding: 3px 0; border-bottom: 1px dashed rgba(18,58,43,.12); }
.log div.turn { font-weight: 800; color: var(--ink); margin-top: 4px; border-bottom: 0; }
.log div.me { color: var(--red-d); }
.ref { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ref .rc { border-radius: 8px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.ref .rc .h { background: var(--pc); color: var(--pi); font-weight: 900; padding: 3px 8px; display: flex; justify-content: space-between; font-size: 13px; }
.ref .rc .b { padding: 3px 8px; font-family: var(--num); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.ref .rc .b span::after { content: 'M'; font-size: .7em; }
.ref .rc .b em { font-style: normal; color: var(--ink3); }
.ref-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink2); }
.decklist { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; font-size: 13px; }
.decklist b { grid-column: 1 / -1; margin-top: 6px; }
.decklist span:nth-child(3n) { font-family: var(--num); color: var(--ink2); }

/* ================================================================ 小窗 / 大图 / 提示 */
.pop { position: fixed; z-index: 60; width: 270px; max-width: calc(100vw - 12px); max-height: calc(100dvh - 20px); overflow: auto; background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1.5px var(--ink), 0 8px 0 rgba(18,58,43,.15); padding: 6px; overscroll-behavior: contain; touch-action: pan-y; }
.pop .grab { display: none; width: 40px; height: 4px; border-radius: 2px; background: var(--ink3); margin: 2px auto 4px; }
.pop-h { display: flex; align-items: center; gap: 6px; padding: 2px 4px 6px; }
.pop-h b { flex: 1; font-size: 15px; font-weight: 900; }
.pop-x { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 14px; }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pop-row { width: 100%; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; padding: 5px 10px; margin-top: 4px; text-align: left; display: flex; flex-direction: column; justify-content: center; font-size: 14px; font-weight: 800; line-height: 1.25; }
.pop-grid .pop-row { margin-top: 0; }
.pop-row small { font-size: 12px; font-weight: 500; color: var(--ink2); }
.pop-row.main { background: var(--red); border-color: var(--red-d); color: #fff; }
.pop-row.main small { color: #ffe1e1; }
.pop-row.off { opacity: .5; border-style: dashed; cursor: not-allowed; }
.pop-row.look { border-style: dashed; color: var(--ink2); font-weight: 700; }
.pop-row .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--pc); border: 1px solid rgba(0,0,0,.35); margin-right: 5px; vertical-align: -1px; }

.modal { position: fixed; inset: 0; z-index: 80; background: rgba(18, 58, 43, .45); display: grid; place-items: center; padding: 12px; overscroll-behavior: contain; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto; background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 2px var(--ink), 0 10px 0 rgba(18,58,43,.2); touch-action: pan-y; }
.modal-box .grab { display: none; width: 44px; height: 5px; border-radius: 3px; background: var(--ink3); margin: -8px auto 8px; }
.modal-box h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.modal-box p { margin: 6px 0; line-height: 1.6; }
.mx { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; z-index: 3; }
.row-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.cardm { width: min(380px, 100%); text-align: center; }
.bigcard { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bigcard .cd { --w: min(250px, 62vw); }
.bigcard .cd .tx { display: block; }
.cap { margin-top: 10px; }
.cap b { font-size: 17px; }
.cap p { font-size: 14px; color: var(--ink2); text-align: left; }
.rules h4 { margin: 12px 0 4px; font-size: 15px; }
.rules p, .rules li { font-size: 14px; line-height: 1.65; color: var(--ink2); }
.rules ul { padding-left: 18px; margin: 4px 0; }
.res-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.res-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.res-row.win { border: 2px solid var(--gold-d); background: #fff8dc; }
.res-row .nm { font-weight: 900; min-width: 5em; }
.res-row .pips { display: flex; gap: 3px; flex-wrap: wrap; }
.res-row .pip { width: 14px; height: 14px; border-radius: 3px; background: var(--pc); border: 1px solid rgba(0,0,0,.3); }
.res-row .pip.done { outline: 2px solid var(--gold-d); }
.banklist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.banklist .cd { --w: 84px; }

.toast { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 22px; font-weight: 700; font-size: 14px; max-width: calc(100vw - 24px); text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.netbar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; background: var(--gold); color: var(--ink); text-align: center; font-weight: 800; padding: 6px; font-size: 14px; }

/* ================================================================ 演出 */
.fxlayer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fx-show { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fxshow 1.5s ease-out forwards; }
.fx-show .cd { --w: min(150px, 34vw); box-shadow: 0 0 0 2px var(--ink), 0 12px 0 rgba(18,58,43,.2); }
.fx-show .cap2 { background: var(--ink); color: #fff; border-radius: 16px; padding: 6px 14px; font-weight: 800; font-size: 14px; max-width: 86vw; text-align: center; }
@keyframes fxshow { 0% { opacity: 0; transform: translate(-50%, -40%) scale(.6) rotate(-8deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(2deg); } 22% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%) scale(.92); } }
.fx-stamp { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-14deg); font-weight: 900; font-size: min(78px, 18vw); color: var(--red); border: 7px solid var(--red); border-radius: 18px; padding: 0 18px; background: rgba(255,253,246,.92); letter-spacing: 4px; animation: stamp 1.3s ease-out forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(.94); } 26% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }
.fx-fly { position: absolute; left: 0; top: 0; width: 34px; height: 44px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--nc, var(--gold)); display: grid; place-items: center; font-family: var(--num); font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 3px #fff; transition: transform .7s cubic-bezier(.3, .7, .3, 1), opacity .7s; }
.fx-burst { position: absolute; width: 10px; height: 10px; border-radius: 2px; animation: burst 1s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
.fx-win { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 26px; text-align: center; box-shadow: 0 8px 0 rgba(18,58,43,.2); animation: fxshow 2.6s ease-out forwards; }
.fx-win { width: max-content; max-width: 92vw; }
.fx-win b { display: block; font-size: min(26px, 7vw); font-weight: 900; color: var(--red); white-space: nowrap; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ================================================================ 页脚 */
.hub-footer { height: var(--hub-footer-h); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.hub-back-link { color: var(--ink2); text-decoration: none; }

/* ================================================================ 手机 */
@media (max-width: 999px) {
  :root { --top-h: 46px; --hand-h: 118px; }
  .brand b { font-size: 15px; }
  .tb { padding: 0 9px; }
  .start-main { grid-template-columns: 1fr; padding: 10px 12px 16px; gap: 12px; min-height: 0; }
  .hero-art { height: 190px; }
  .hero-art .fan, .hero-art .fan .cd { width: 76px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14px; }
  .lobby-main { grid-template-columns: 1fr; padding: 8px; min-height: 0; }
  .seats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seat { min-height: 84px; padding: 9px 4px 6px; }
  .game { padding: 6px 6px 4px; gap: 5px; }
  .opps .ob { display: none; }
  .opps .ob.focus { display: block; }
  .ob { padding: 4px 6px 5px; --deed-w: 48px; }
  .ob .oh { display: none; }
  .ob .tbl { min-height: 74px; gap: 6px; }
  .stage { min-height: 40px; padding: 4px 8px; gap: 8px; }
  .stage .say { font-size: 13px; }
  .stage .say small { display: none; }
  .stage .pilebox .mini { width: 20px; height: 28px; }
  .myboard { min-height: 104px; --deed-w: 48px; padding: 5px 6px; gap: 8px; }
  .actbar { position: sticky; bottom: 4px; z-index: 6; min-height: 54px; }
  .actbar .btn { min-height: 44px; padding: 0 13px; font-size: 14px; }
  .actbar .hint { font-size: 13px; }
  .col-side { margin-top: 6px; }
  .tab-body { min-height: 260px; }
  .pop { width: min(300px, calc(100vw - 12px)); }
  .pop .grab, .modal-box .grab { display: block; }
  .modal { align-items: end; padding: 0; }
  .modal-box { width: 100%; border-radius: 18px 18px 0 0; max-height: 88dvh; }
  .modal-box.cardm { width: 100%; }
}
@media (max-width: 999px) and (min-height: 760px) {
  :root { --hand-h: 136px; }
  .myboard { min-height: 118px; --deed-w: 52px; }
  .ob { --deed-w: 50px; }
}

/* ================================================================ 电脑：三栏一屏 */
@media (min-width: 1000px) {
  :root { --hand-h: clamp(124px, 23dvh, 262px); }
  body[data-screen="game"] { overflow: hidden; }
  .game { height: calc(100dvh - var(--top-h) - var(--hub-footer-h) - 4px); display: grid; gap: 10px; padding: 10px 12px 6px; max-width: 1880px; margin: 0 auto;
    grid-template-columns: clamp(270px, 25vw, 380px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: 'opps mid' 'side mid'; }
  .col-opps { grid-area: opps; min-height: 0; }
  .col-mid { grid-area: mid; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .col-side { grid-area: side; min-height: 0; }
  .oppchips { display: none; }
  .opps { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 2px; }
  .ob { --deed-w: clamp(44px, 3.3vw, 60px); padding: 5px 8px 6px; }
  .ob .tbl { gap: 6px; }
  .ob .tbl { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  .stage { flex: none; min-height: clamp(96px, 16dvh, 170px); padding: 10px 16px; gap: 16px; }
  .stage .shown { display: block; flex: none; }
  .stage .recent { display: flex; }
  .stage .say { min-width: 220px; }
  .rp:nth-child(n+3) { display: none; }
  .stage .shown .cd { --w: clamp(62px, 9dvh, 104px); }
  .stage .say { font-size: 17px; }
  .stage .say small { font-size: 13px; }
  .stage .pilebox .mini { width: 34px; height: 48px; }
  .myboard { flex: 1 1 0; min-height: 0; --deed-w: clamp(52px, 8.6dvh, 86px); padding: 10px 12px 44px; gap: 14px; align-items: flex-start; }
  .myboard .prog { position: absolute; left: 12px; right: 12px; bottom: 8px; }
  .myboard .sets { gap: 12px; flex-wrap: wrap; }
  .hand { padding-top: 16px; justify-content: safe center; }
  .tab-body { flex: 1 1 0; min-height: 0; overflow: auto; }
}
@media (min-width: 1280px) {
  .game { grid-template-columns: clamp(280px, 23vw, 400px) minmax(0, 1fr) clamp(250px, 19vw, 330px); grid-template-rows: minmax(0, 1fr); grid-template-areas: 'opps mid side'; }
}
@media (min-width: 1000px) and (max-height: 720px) {
  .stage { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) { .fx-show, .fx-stamp, .fx-win, .fx-burst { animation-duration: .01s !important; } }

/* 卡面字号兜底：小卡隐藏次要字，主字不低于 11px */
.cd .nm { font-size: max(11px, 1em); }
.cd .nm.long { font-size: max(11px, .86em); }
.cd.prop .band b, .cd.prop .band b.long { font-size: max(11px, .9em); }
.cd .rt div { font-size: max(11px, .9em); }
.cd.wild .rt .wl { font-size: max(11px, .66em); }
.cd .val i { font-size: max(11px, calc(var(--w) * .12)); }
@container (max-width: 150px) { .kick, .band small { display: none !important; } }
@container (max-width: 118px) {
  .kick, .band small, .rt .cap { display: none !important; }
  .rt div span { min-width: 1.2em; height: 1.2em; }
}
@container (max-width: 80px) { .rt, .wheel { display: none !important; } }

@media (min-width: 1500px) { .rp:nth-child(n+3) { display: flex; } }

@media (min-width: 1500px) and (min-height: 900px) {
  .seat { min-height: 128px; gap: 6px; }
  .seat .tok { width: 52px; height: 52px; font-size: 24px; }
  .seat .nm { font-size: 16px; }
}
