/* 样子一：真人赌桌式。尺寸全用 rem：1rem = 设计稿 10px。电脑设计稿 1440×900，手机 390 宽；main.js 按屏幕设根字号。 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #050806; color: #f3ecd8; overflow: hidden;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif; }
button { font-family: inherit; color: inherit; cursor: pointer; }
:root { --blue: #1d63d8; --blue2: #0d3a8c; --red: #d22b35; --red2: #8a1219; --green: #1f9a4c; --gold: #e8c46e; --gold2: #a9853c; }

#stage { position: absolute; left: 50%; top: 50%; width: 144rem; height: 90rem; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 44rem; grid-template-rows: 5.6rem 1fr; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 80% at 35% 0%, #13241b 0%, #070b09 60%); overflow: hidden; }

/* ───────── 顶栏 ───────── */
#topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.6rem; padding: 0 1.6rem;
  background: linear-gradient(#1a1712, #0c0b08); border-bottom: .1rem solid rgba(232,196,110,.35); box-shadow: 0 .2rem 1rem rgba(0,0,0,.6); z-index: 20; }
.brand { display: flex; align-items: baseline; gap: 1rem; white-space: nowrap; }
.logo { font-size: 2.4rem; font-weight: 800; letter-spacing: .2rem; color: var(--gold);
  background: linear-gradient(#fff0c2, #d7ab52 60%, #a57a2c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tname { font-size: 1.25rem; color: rgba(240,228,196,.6); letter-spacing: .1rem; }
.info { display: flex; align-items: center; gap: .8rem; margin-left: 1rem; }
.pill { font-size: 1.35rem; padding: .45rem 1.1rem; border-radius: 1.6rem; background: rgba(255,255,255,.06); border: .1rem solid rgba(255,255,255,.1); color: #e6dcc0; white-space: nowrap; }
.pill.warn { color: #ffd27a; border-color: rgba(255,200,90,.5); background: rgba(255,180,60,.12); }
.seg { display: flex; border-radius: 1.6rem; overflow: hidden; border: .1rem solid rgba(232,196,110,.45); }
.seg button { border: 0; background: transparent; font-size: 1.35rem; padding: .45rem 1.3rem; color: #cbbf9e; }
.seg button.on { background: linear-gradient(#f0cf7c, #b88a35); color: #2a1d05; font-weight: 700; }
.right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
#balance { display: flex; align-items: center; gap: .7rem; padding: .3rem 1.4rem .3rem .4rem; border-radius: 2.2rem;
  background: rgba(0,0,0,.45); border: .1rem solid rgba(232,196,110,.45); }
#balance img { width: 3rem; height: 3rem; }
#balance .lab { font-size: 1.25rem; color: #b8ab88; }
#balance b { font-size: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 8rem; text-align: right; }
#balance.bump b { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); color: #fff3c4; } }
.icon-btn { width: 4rem; height: 4rem; border-radius: 50%; border: .1rem solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); font-size: 1.8rem; }

/* ───────── 牌桌 ───────── */
#tableCol { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#felt { position: relative; flex: 1; min-height: 0; overflow: hidden; background-color: #0c3a22;
  background-image: url(../assets/table_land.webp); background-repeat: no-repeat; }
#felt::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 6rem rgba(0,0,0,.55); }

#dealZone { position: absolute; left: 6%; right: 6%; top: 3rem; height: 27rem; display: flex; z-index: 3; }
.hand { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; border-radius: 13rem; transition: background .4s; }
#handP { border-radius: 14rem 0 0 14rem; }
#handB { border-radius: 0 14rem 14rem 0; }
#dealZone::before { content: ""; position: absolute; left: 50%; top: 18%; bottom: 18%; width: .1rem; background: linear-gradient(transparent, rgba(232,196,110,.6), transparent); }
.hhead { display: flex; align-items: center; gap: 1.2rem; height: 5.2rem; }
.hname { font-size: 2.6rem; font-weight: 800; letter-spacing: .2rem; text-shadow: 0 .2rem .4rem rgba(0,0,0,.7); }
.hname i { font-style: normal; font-size: 1.3rem; font-weight: 600; letter-spacing: .2rem; opacity: .75; margin-left: .3rem; }
#handP .hname { color: #7fb1ff; }
#handB .hname { color: #ff7f86; }
.htotal { width: 5.2rem; height: 5.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: #fff; border: .25rem solid rgba(255,255,255,.85); box-shadow: 0 .3rem 1rem rgba(0,0,0,.6);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; font-variant-numeric: tabular-nums; }
.htotal.show { opacity: 1; transform: none; }
#totP { background: radial-gradient(circle at 35% 30%, #4d8dff, var(--blue2)); }
#totB { background: radial-gradient(circle at 35% 30%, #ff5c66, var(--red2)); }
.hand.win { background: radial-gradient(60% 75% at 50% 55%, var(--glow), transparent 75%); }
#handP.win { --glow: rgba(60,130,255,.42); }
#handB.win { --glow: rgba(255,60,75,.42); }
.hand.win .htotal { box-shadow: 0 0 0 .4rem var(--gold), 0 0 2.4rem var(--gold); }
.hand.lose .card { filter: brightness(.62) saturate(.7); }

.cards { display: flex; align-items: center; gap: .8rem; height: 13.4rem; }
.slot { position: relative; width: 9.6rem; height: 13.4rem; border-radius: .8rem; border: .15rem dashed rgba(232,214,160,.2); flex: none; }
.slot.side { width: 13.4rem; height: 9.6rem; }
.slot.filled { border-color: transparent; }

/* 牌（照德州的翻面写法） */
.card { position: absolute; left: 0; top: 0; width: 9.6rem; height: 13.4rem; perspective: 60rem; }
.slot.side .card { left: 1.9rem; top: -1.9rem; transform: rotate(90deg); }
.card .face { position: absolute; inset: 0; border-radius: .8rem; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .42s cubic-bezier(.3,.7,.3,1); box-shadow: 0 .3rem .9rem rgba(0,0,0,.5); overflow: hidden; }
.card .front { transform: rotateY(180deg); background: #fff; }
.card .front svg { width: 100%; height: 100%; display: block; }
.card .back { transform: rotateY(0deg); background: #7a0d14 url(../assets/card_back.webp) center / cover; border: .2rem solid #f4f1ea; }
.card.up .front { transform: rotateY(0deg); }
.card.up .back { transform: rotateY(-180deg); }

#shoeTag { position: absolute; right: -2%; top: -1.2rem; font-size: 1.2rem; color: #f0d58c; background: rgba(0,0,0,.55); padding: .3rem 1rem; border-radius: 1rem;
  border: .1rem solid rgba(232,196,110,.4); opacity: 0; transition: opacity .3s; white-space: nowrap; }
#shoeTag.show { opacity: 1; }

/* 结果 */
#result { position: absolute; left: 50%; top: 27.4rem; transform: translate(-50%, -50%) scale(.7); z-index: 6; opacity: 0; pointer-events: none;
  padding: .7rem 3.4rem .8rem; border-radius: 3rem; text-align: center; white-space: nowrap; transition: opacity .25s, transform .3s cubic-bezier(.2,1.6,.4,1);
  border: .2rem solid var(--gold); box-shadow: 0 .6rem 2.4rem rgba(0,0,0,.7), inset 0 .1rem 0 rgba(255,255,255,.3); }
#result.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#result.P { background: linear-gradient(#2b74ee, #0c3485); }
#result.B { background: linear-gradient(#e43a45, #7d0f17); }
#result.T { background: linear-gradient(#25b45c, #0b5c2b); }
#result .w { font-size: 3.4rem; font-weight: 900; letter-spacing: .4rem; text-shadow: 0 .2rem .3rem rgba(0,0,0,.5); }
#result .n { display: inline-block; margin-left: 1rem; padding-left: 1rem; border-left: .1rem solid rgba(255,255,255,.4); font-size: 1.9rem; font-weight: 800; color: #ffe08a; vertical-align: -.1rem; text-shadow: 0 .1rem .3rem rgba(0,0,0,.6); animation: fadein .3s; }
#result .n.lose { color: rgba(255,255,255,.9); font-size: 1.5rem; font-weight: 700; }
@keyframes fadein { from { opacity: 0; } }
#result .d { font-size: 1.5rem; color: rgba(255,255,255,.85); margin-top: -.2rem; letter-spacing: .1rem; }
#status { position: absolute; left: 50%; top: 31.4rem; transform: translateX(-50%); z-index: 4; font-size: 1.4rem; letter-spacing: .3rem; color: rgba(245,230,190,.8);
  text-shadow: 0 .1rem .3rem #000; white-space: nowrap; transition: opacity .2s; }
#status.hide { opacity: 0; }

/* 下注区（SVG 画在桌布上） */
#betArea { position: absolute; left: 0; right: 0; bottom: 4.6rem; width: 100%; height: 30rem; z-index: 2; overflow: visible; }
.spot path.bg { stroke: rgba(240,210,130,.85); stroke-width: 2; cursor: pointer; transition: fill .2s; }
.spot.P path.bg { fill: rgba(25,70,170,.38); }
.spot.B path.bg { fill: rgba(170,22,34,.38); }
.spot.T path.bg { fill: rgba(20,120,60,.36); }
.spot.PP path.bg { fill: rgba(25,70,170,.22); }
.spot.BP path.bg { fill: rgba(170,22,34,.22); }
.spot.S6 path.bg { fill: rgba(200,150,40,.28); }
.spot:hover path.bg { fill-opacity: 1; filter: brightness(1.25); }
.spot.press path.bg { filter: brightness(1.6); }
.spot.win path.bg { animation: spotwin .7s ease-in-out 4 alternate; stroke: #ffe9a8; stroke-width: 4; }
@keyframes spotwin { to { fill: rgba(255,214,110,.55); } }
.spot.off { opacity: .35; }
.spot text { pointer-events: none; fill: #fff; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3; }
.spot text.nm { font-weight: 800; }
.spot text.en { font-weight: 600; opacity: .7; letter-spacing: 2px; }
.spot text.odds { fill: #f6dc96; font-weight: 600; }
.spot.P text.nm { fill: #cfe0ff; } .spot.B text.nm { fill: #ffd2d5; } .spot.T text.nm { fill: #c8f5d6; }
.stack { pointer-events: none; }
.stack image { filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.stack .amt rect { fill: rgba(0,0,0,.75); stroke: rgba(232,196,110,.7); stroke-width: 1; }
.stack .amt text { fill: #ffe39a; font-weight: 700; text-anchor: middle; dominant-baseline: central; stroke: none; }

/* ───────── 筹码和按钮 ───────── */
#controls { height: 12rem; display: flex; align-items: center; gap: 1.4rem; padding: 0 2rem;
  background: linear-gradient(#17130d, #0a0907); border-top: .1rem solid rgba(232,196,110,.3); }
.btns { display: flex; gap: .8rem; }
.ctl { width: 7.4rem; height: 7.4rem; border-radius: 1.4rem; border: .1rem solid rgba(232,196,110,.35); background: linear-gradient(#2a251c, #15120d);
  font-size: 1.35rem; color: #e9dcb8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.ctl .ic { font-size: 2.2rem; line-height: 1; color: var(--gold); font-weight: 700; }
.ctl:disabled { opacity: .35; cursor: default; }
.ctl:not(:disabled):active { transform: translateY(.1rem); filter: brightness(1.3); }
#chipTray { flex: 1; display: flex; justify-content: center; gap: 1rem; align-items: center; }
.chipb { position: relative; width: 7rem; height: 7rem; border: 0; padding: 0; background: none; border-radius: 50%; transition: transform .15s; flex: none; }
.chipb img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .3rem .3rem rgba(0,0,0,.6)); }
.chipb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 900; color: #2a2a2a; letter-spacing: -.05rem; }
.chipb.on { transform: translateY(-1rem) scale(1.08); }
.chipb.on::after { content: ""; position: absolute; inset: -.5rem; border-radius: 50%; border: .3rem solid #ffe39a; box-shadow: 0 0 1.6rem rgba(255,215,120,.9); }
.chipb:disabled { opacity: .3; }
#btnDeal { width: 15rem; height: 8rem; border-radius: 4rem; border: .2rem solid #ffe7a6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(#f8dc8c, #c99536 55%, #9b6d1f); color: #2b1b02; box-shadow: 0 .4rem 1.6rem rgba(232,196,110,.35); flex: none; }
#btnDeal .big { font-size: 2.6rem; font-weight: 900; letter-spacing: .5rem; }
#btnDeal .sub { font-size: 1.25rem; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
#btnDeal:disabled { filter: grayscale(.7) brightness(.6); cursor: default; }
#btnDeal:not(:disabled):active { transform: scale(.97); }

/* ───────── 路单（白底，照真实路单屏） ───────── */
#roads { min-height: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem; background: linear-gradient(#141a16, #0b0f0c); border-left: .1rem solid rgba(232,196,110,.25); }
.rstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.rstats .st { display: flex; flex-direction: column; align-items: center; padding: .5rem 0; border-radius: .8rem; background: rgba(255,255,255,.05); }
.rstats .st b { font-size: 2rem; font-variant-numeric: tabular-nums; }
.rstats .st span { font-size: 1.15rem; color: #b9ad8e; display: flex; align-items: center; gap: .4rem; }
.rstats .dot { width: 1.2rem; height: 1.2rem; border-radius: 50%; display: inline-block; }
.st.B b { color: #ff6b74; } .st.P b { color: #6aa3ff; } .st.T b { color: #4fd07f; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: #cfcfc6; padding: .4rem; border-radius: .8rem; }
.road { position: relative; background: #fff; overflow: hidden; }
.road svg { display: block; width: 100%; height: 100%; }
.road .rt { position: absolute; right: .4rem; top: .2rem; font-size: 1rem; color: rgba(0,0,0,.32); pointer-events: none; z-index: 1; background: rgba(255,255,255,.8); padding: 0 .3rem; border-radius: .3rem; }
#rBead { grid-column: 1 / -1; height: 24rem; }
#rBig { grid-column: 1 / -1; height: 17.4rem; }
#rEye { grid-column: 1 / -1; height: 8.7rem; }
#rSmall, #rRoach { height: 8.7rem; }
.ask { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.askb { height: 4.6rem; border-radius: 1rem; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .8rem; border: .1rem solid; }
.askb.B { background: linear-gradient(#5a1419, #33090c); border-color: rgba(255,110,120,.5); color: #ffc7cb; }
.askb.P { background: linear-gradient(#13306a, #0a1b3d); border-color: rgba(110,160,255,.5); color: #c8daff; }
.askb.on { filter: brightness(1.4); }
.marks { display: inline-flex; gap: .4rem; background: #fff; border-radius: .5rem; padding: .3rem .5rem; }
.marks svg { width: 1.5rem; height: 1.5rem; display: block; }
.blink { animation: blink .45s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rmore { margin-top: .4rem; font-size: 1.25rem; color: #9f957a; display: flex; flex-direction: column; gap: .6rem; }
.shoebar { height: .8rem; border-radius: .4rem; background: rgba(255,255,255,.08); overflow: hidden; }
.shoebar i { display: block; height: 100%; background: linear-gradient(90deg, #a9853c, #f0cf7c); }
.ratio { display: flex; height: 1.6rem; border-radius: .8rem; overflow: hidden; font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.6rem; }
.ratio > div { text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; }

/* 飞的筹码、提示、对话框 */
#flyLayer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.fchip { position: fixed; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; filter: drop-shadow(0 .3rem .3rem rgba(0,0,0,.6)); }
.fcard { position: fixed; width: 9.6rem; height: 13.4rem; margin: -6.7rem 0 0 -4.8rem; border-radius: .8rem; background: #7a0d14 url(../assets/card_back.webp) center / cover; border: .2rem solid #f4f1ea; box-shadow: 0 .3rem .9rem rgba(0,0,0,.5); }
#toast { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); z-index: 60; padding: 1rem 2.2rem; border-radius: 2.4rem; background: rgba(20,12,8,.92);
  border: .1rem solid rgba(255,190,120,.6); color: #ffe2b8; font-size: 1.6rem; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
#toast.show { opacity: 1; }
#dialog { position: absolute; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
#dialog[hidden] { display: none; }
#dialog .box { min-width: 32rem; max-width: 90%; padding: 2.6rem 3rem; border-radius: 2rem; background: linear-gradient(#211c13, #110e09); border: .15rem solid var(--gold2); text-align: center; }
#dialog h3 { margin: 0 0 1rem; font-size: 2.2rem; color: var(--gold); }
#dialog p { margin: 0 0 2rem; font-size: 1.6rem; color: #e3d7b8; line-height: 1.6; }
#dialog .burn { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.6rem; }
#dialog .burn .card { position: relative; width: 6rem; height: 8.4rem; }
#dialog button { min-width: 14rem; height: 4.8rem; border-radius: 2.4rem; border: 0; font-size: 1.8rem; font-weight: 800; background: linear-gradient(#f8dc8c, #b88a35); color: #2b1b02; }

/* ───────── 手机竖屏 ───────── */
body.port #stage { left: 0; top: 0; transform: none; width: 100%; height: 100%; display: flex; flex-direction: column; grid-template-columns: none; }
body.port #topbar { flex: none; height: 7.6rem; flex-wrap: wrap; align-content: center; row-gap: .5rem; column-gap: .8rem; padding: .4rem 1rem; padding-top: max(.4rem, env(safe-area-inset-top)); height: auto; }
body.port .brand { gap: .6rem; }
body.port .logo { font-size: 2rem; letter-spacing: .1rem; }
body.port .tname { font-size: 1rem; letter-spacing: 0; }
body.port .right { gap: .6rem; }
body.port #balance { padding: .2rem 1rem .2rem .3rem; gap: .4rem; }
body.port #balance img { width: 2.4rem; height: 2.4rem; }
body.port #balance .lab { display: none; }
body.port #balance b { font-size: 1.7rem; min-width: 0; }
body.port .icon-btn { width: 3.2rem; height: 3.2rem; font-size: 1.5rem; }
body.port .info { order: 3; width: 100%; margin: 0; gap: .5rem; justify-content: space-between; }
body.port .pill { font-size: 1.1rem; padding: .3rem .7rem; }
body.port .seg button { font-size: 1.1rem; padding: .3rem .8rem; }
body.port #tableCol { display: contents; }
body.port #felt { order: 1; flex: 1; min-height: 33rem; }
body.port #roads { order: 2; flex: none; border-left: 0; padding: .5rem .5rem .4rem; gap: .4rem; border-top: .1rem solid rgba(232,196,110,.25); }
body.port #controls { order: 3; flex: none; height: auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.7fr; grid-template-areas: "chips chips chips chips chips" "u c r d deal";
  gap: .6rem; padding: .6rem 1rem; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
body.port .btns { display: contents; }
body.port #chipTray { grid-area: chips; gap: .4rem; justify-content: space-around; padding-top: .8rem; }
body.port .chipb { width: 5.6rem; height: 5.6rem; }
body.port .chipb span { font-size: 1.4rem; }
body.port .chipb.on { transform: translateY(-.6rem) scale(1.06); }
body.port .ctl { width: auto; height: 4.6rem; border-radius: 1rem; flex-direction: row; gap: .3rem; font-size: 1.3rem; }
body.port .ctl .ic { display: none; }
body.port #btnUndo { grid-area: u; } body.port #btnClear { grid-area: c; } body.port #btnRebet { grid-area: r; } body.port #btnDouble { grid-area: d; }
body.port #btnDeal { grid-area: deal; width: auto; height: 4.6rem; border-radius: 2.3rem; }
body.port #btnDeal .big { font-size: 1.8rem; letter-spacing: .3rem; line-height: 1.1; }
body.port #btnDeal .sub { font-size: 1rem; }

body.port #dealZone { left: 1%; right: 1%; top: 1.4rem; height: 17.4rem; }
body.port .hand { gap: .6rem; }
body.port .hhead { height: 3.6rem; gap: .6rem; }
body.port .hname { font-size: 1.8rem; letter-spacing: .1rem; }
body.port .hname i { font-size: .9rem; letter-spacing: .05rem; }
body.port .htotal { width: 3.6rem; height: 3.6rem; font-size: 2.1rem; border-width: .2rem; }
body.port .cards { height: 7rem; gap: .3rem; }
body.port .slot { width: 5rem; height: 7rem; border-radius: .5rem; }
body.port .slot.side { width: 7rem; height: 5rem; }
body.port .card { width: 5rem; height: 7rem; }
body.port .slot.side .card { left: 1rem; top: -1rem; }
body.port .card .face { border-radius: .5rem; }
body.port .card .back { border-width: .12rem; }
body.port .fcard { width: 5rem; height: 7rem; margin: -3.5rem 0 0 -2.5rem; border-radius: .5rem; border-width: .12rem; }
body.port #shoeTag { right: 1%; top: -1.3rem; font-size: 1rem; }
body.port #result { padding: .35rem 1.8rem .45rem; }
body.port #result .w { font-size: 2.2rem; letter-spacing: .3rem; }
body.port #result .d { font-size: 1.1rem; letter-spacing: 0; }
body.port #result .n { font-size: 1.35rem; margin-left: .5rem; padding-left: .5rem; }
body.port #result .n.lose { font-size: 1.1rem; }
body.port #status { top: 19.8rem; font-size: 1.15rem; }
body.port #betArea { bottom: 1rem; height: 15rem; }
body.port .fchip { width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; }

body.port .rstats { order: 3; display: flex; align-items: center; gap: 0; white-space: nowrap; min-width: 0; }
body.port .rstats .st { flex-direction: row; gap: .2rem; padding: .2rem .25rem; background: none; }
body.port .rstats .st.N { display: none; }
body.port .rstats .st b { font-size: 1.25rem; }
body.port .rstats .st span { font-size: 1rem; gap: .2rem; }
body.port .rstats .dot { width: .9rem; height: .9rem; }
body.port .rgrid { grid-template-columns: 15rem 1fr 1fr; grid-template-rows: 7.5rem 3.75rem 3.75rem; gap: .2rem; padding: .2rem; border-radius: .4rem; }
body.port .road .rt { display: none; }
body.port #rBead { grid-column: 1; grid-row: 1 / 4; height: auto; }
body.port #rBig { grid-column: 2 / 4; grid-row: 1; height: auto; }
body.port #rEye { grid-column: 2 / 4; grid-row: 2; height: auto; }
body.port #rSmall { grid-column: 2; grid-row: 3; height: auto; }
body.port #rRoach { grid-column: 3; grid-row: 3; height: auto; }
body.port .ask { order: 4; display: flex; gap: .4rem; }
body.port #roads { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "g g" "s a"; }
body.port .rgrid { grid-area: g; }
body.port .rstats { grid-area: s; }
body.port .ask { grid-area: a; }
body.port .askb { height: 2.8rem; font-size: 1.05rem; padding: 0 .4rem; gap: .25rem; border-radius: .7rem; white-space: nowrap; }
body.port .marks { padding: .15rem .3rem; gap: .2rem; }
body.port .marks svg { width: .95rem; height: .95rem; }
body.port .rmore { display: none; }
body.port #toast { font-size: 1.4rem; top: 8rem; }
.ratio > div:not(:empty) { min-width: 5.2rem; }
body.port .rstats { overflow: hidden; }
