* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  max-height: 100%;
  max-height: 100dvh;
  background: #0e0e10;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; touch-action: manipulation; user-select: none; }
:root {
  --bg: #141416;
  --bg2: #1c1c1f;
  --line: #2a2a2e;
  --orange: #ff7a18;
  --red: #e53935;
  --blue: #3d5bff;
  --muted: #8b8d96;
  --bet-cell-h: 72px;
  --bet-gap: 8px;
  --bet-pane-body: calc(var(--bet-cell-h) * 2 + var(--bet-gap));
  --bet-pane-max: calc(var(--bet-pane-body) + 4px);
  --hist-rows: 3;
  --hist-cell: 22px;
  --hist-gap: 3px;
  --hist-block-h: calc(var(--hist-cell) * var(--hist-rows) + var(--hist-gap) * (var(--hist-rows) - 1));
}

.shell {
  height: 100%;
  max-height: 100%;
  max-height: 100dvh;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
.fit-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  transform-origin: top left;
  flex-shrink: 0;
}
.shell.measure .fit-inner {
  min-height: 0;
  height: auto;
  transform: none !important;
  width: 100% !important;
}
.shell.measure .game-stage,
.shell.measure .game-pane,
.shell.measure .game,
.shell.measure .g-body,
.shell.measure .bet-main {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}
body.embed .shell,
html.embed .shell {
  padding-top: max(env(safe-area-inset-top, 0px), var(--app-inset-top, 0px));
}
/* 已嵌在宿主视频区下方：不再垫顶部安全区 */
html.nest.embed .shell,
html.nest .shell,
body.nest .shell {
  padding-top: 0;
}

.game-nav {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 6px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--line);
}
.game-nav::-webkit-scrollbar { display: none; }
.g-tab {
  flex: 0 0 auto;
  width: 64px;
  border: 0;
  background: transparent;
  color: #c8c9d0;
  padding: 0;
  scroll-snap-align: start;
}
.g-tab .thumb {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a30;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.g-tab.on .thumb {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(255,122,24,.35);
}
.g-tab .name {
  margin-top: 1px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.nest .game-nav {
  padding: 2px 4px 0;
  gap: 4px;
}
html.nest .g-tab {
  width: 60px;
}
html.nest .g-tab .thumb {
  width: 52px;
  height: 52px;
  font-size: 22px;
  border-radius: 10px;
}
html.nest .g-head {
  padding: 1px 6px 0;
}
.g-tab.on .name { color: var(--orange); font-weight: 700; }

.thumb.marksix { background: linear-gradient(145deg, #c62828, #7b1a1a); }
.thumb.pc28 { background: linear-gradient(145deg, #1565c0, #0d47a1); }
.thumb.k3 { background: linear-gradient(145deg, #2e7d32, #1b5e20); }
.thumb.ssc { background: linear-gradient(145deg, #6a1b9a, #4a148c); }
.thumb.pk10 { background: linear-gradient(145deg, #ef6c00, #e65100); }

.game-stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.game > .win-layer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: rgba(12, 10, 8, .78);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
  transition: opacity .45s ease;
  box-sizing: border-box;
  text-align: center;
}
.win-layer.show { opacity: 1; }
.win-layer .hit,
.win-layer .miss {
  pointer-events: none;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  padding: 0 4px;
  text-align: center;
  line-height: 1.35;
  font-size: 16px;
  box-sizing: border-box;
}
.win-layer .hit { color: #ffe082; }
.win-layer .miss { color: #9aa3b8; }
.game-pane {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-pane .game {
  flex: 1 1 0;
  min-height: 0;
}
.game-pane .g-body[data-pane="bet"] {
  flex: 1 1 0;
  min-height: 0;
}
.game-pane[hidden] {
  display: none !important;
}
.boot-msg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: #9aa0aa;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.game {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.g-head {
  flex: 0 0 auto;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 0;
}
.mode-seg {
  display: flex;
  background: #2a2a30;
  border-radius: 16px;
  padding: 2px;
  flex-shrink: 0;
}
.mode-seg button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #c5c6ce;
  font-size: 12px;
}
.mode-seg button.on {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}
.status {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #eee;
}
.status b { color: var(--orange); font-size: 16px; }
.speaker, .more-btn {
  border: 0;
  background: transparent;
  color: #c5c6ce;
}
.speaker.off { opacity: .35; }
.more-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  flex-shrink: 0;
}

.g-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.g-body[hidden], [hidden] { display: none !important; }
.bet-main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.bet-foot {
  flex: 0 0 auto;
  background: var(--bg);
}

.video-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9aa0aa;
  font-size: 13px;
}
.video-stage {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 72px;
}

.result-row {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 0;
  gap: 6px;
  min-height: 42px;
  box-sizing: border-box;
  z-index: 1;
}
.result-dice, .result-balls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}
.result-tags {
  display: flex;
  gap: 6px;
  min-height: 26px;
  flex-shrink: 0;
}
.tag {
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.tag.sum { background: #3d5bff; }
.tag.big, .tag.odd { background: #3d5bff; }
.tag.small, .tag.even { background: #7c4dff; }
.tag.leopard { background: #ff7a18; }
.tag.red { background: #e53935; }
.tag.blue { background: #1e88e5; }
.tag.green { background: #43a047; }

.die {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 4px;
  box-shadow: 0 2px 0 #cfcfcf;
}
.die i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #222;
  justify-self: center;
  align-self: center;
  opacity: 0;
}
.die[data-n="1"] i:nth-child(5),
.die[data-n="2"] i:nth-child(1),
.die[data-n="2"] i:nth-child(9),
.die[data-n="3"] i:nth-child(1),
.die[data-n="3"] i:nth-child(5),
.die[data-n="3"] i:nth-child(9),
.die[data-n="4"] i:nth-child(1),
.die[data-n="4"] i:nth-child(3),
.die[data-n="4"] i:nth-child(7),
.die[data-n="4"] i:nth-child(9),
.die[data-n="5"] i:nth-child(1),
.die[data-n="5"] i:nth-child(3),
.die[data-n="5"] i:nth-child(5),
.die[data-n="5"] i:nth-child(7),
.die[data-n="5"] i:nth-child(9),
.die[data-n="6"] i:nth-child(1),
.die[data-n="6"] i:nth-child(3),
.die[data-n="6"] i:nth-child(4),
.die[data-n="6"] i:nth-child(6),
.die[data-n="6"] i:nth-child(7),
.die[data-n="6"] i:nth-child(9) { opacity: 1; }
.die.spin { animation: die-spin .18s linear infinite; }
@keyframes die-spin {
  from { transform: rotate(0deg) scale(.92); }
  to { transform: rotate(360deg) scale(1); }
}

.ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: #e53935;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}
.ball.b0 { background: #455a64; }
.ball.b1 { background: #e53935; }
.ball.b2 { background: #1e88e5; }
.ball.b3 { background: #43a047; }
.ball.b4 { background: #fb8c00; }
.ball.b5 { background: #8e24aa; }
.ball.b6 { background: #00acc1; }
.ball.b7 { background: #6d4c41; }
.ball.b8 { background: #3949ab; }
.ball.b9 { background: #c0ca33; color: #222; }
.ball.red { background: #e53935; }
.ball.blue { background: #1e88e5; }
.ball.green { background: #43a047; }
.ball.sp { outline: 2px solid #ffd54f; }
.ball.car { border-radius: 6px; width: 26px; height: 26px; font-size: 11px; }

.tabs {
  flex: 0 0 32px;
  min-height: 32px;
  display: flex;
  gap: 2px;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto;
  height: 26px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #c5c6ce;
  font-size: 13px;
  position: relative;
}
.tabs button.on {
  color: var(--orange);
  font-weight: 700;
}
.tabs button.on::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

.bet-pane {
  flex: 0 0 var(--bet-pane-max);
  height: var(--bet-pane-max);
  min-height: var(--bet-pane-max);
  max-height: var(--bet-pane-max);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 6px;
  box-sizing: border-box;
}
.bet-pane::-webkit-scrollbar { width: 0; }

.win-pop {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: rgba(12, 10, 8, .62);
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity .45s ease;
}
.win-pop.show { opacity: 1; }
.win-pop .hit,
.win-pop .miss {
  pointer-events: none;
  padding: 0 4px;
  text-align: center;
  line-height: 1.35;
  font-size: 16px;
}
.win-pop .hit { color: #ffe082; }
.win-pop .miss { color: #9aa3b8; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bet-gap);
  min-height: var(--bet-pane-body);
  align-content: start;
}
.bet-cell {
  position: relative;
  height: var(--bet-cell-h);
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.bet-cell .lab { font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.bet-cell .odds { font-size: 12px; opacity: .92; }
.bet-cell.red { background: linear-gradient(180deg, #ef5350, #c62828); }
.bet-cell.blue { background: linear-gradient(180deg, #5c6bc0, #283593); }
.bet-cell.orange { background: linear-gradient(180deg, #ffa726, #ef6c00); }
.bet-cell.purple { background: linear-gradient(180deg, #ab47bc, #6a1b9a); }
.bet-cell.teal { background: linear-gradient(180deg, #26a69a, #00695c); }
.bet-cell.green { background: linear-gradient(180deg, #66bb6a, #2e7d32); }
.bet-cell.has-stake { box-shadow: inset 0 0 0 2px #ffd54f; }
.bet-cell .stake {
  position: absolute;
  right: 6px; top: 6px;
  min-width: 22px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: rgba(0,0,0,.45);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.grid-sum {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.grid-sum .bet-cell { height: 52px; }
.grid-sum .lab { font-size: 16px; letter-spacing: 0; }
.grid-pairs, .grid-nums, .grid-zod, .grid-cars {
  display: grid;
  gap: 6px;
}
.grid-pairs { grid-template-columns: repeat(3, 1fr); }
.grid-nums { grid-template-columns: repeat(7, 1fr); }
.grid-zod { grid-template-columns: repeat(6, 1fr); }
.grid-cars { grid-template-columns: repeat(5, 1fr); }
.grid-pairs .bet-cell,
.grid-nums .bet-cell,
.grid-zod .bet-cell,
.grid-cars .bet-cell { height: 48px; }
.grid-nums .lab, .grid-zod .lab, .grid-cars .lab { font-size: 14px; letter-spacing: 0; }

.chip-row {
  flex: 0 0 auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 6px;
  background: var(--bg);
  box-sizing: border-box;
}
.chip-row .bal {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  color: #ffd54f;
  font-size: 11px;
  white-space: nowrap;
  padding: 5px 12px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3d3420 0%, #1a1610 100%);
  box-shadow: inset 0 1px 0 rgba(255, 213, 79, .22);
  z-index: 1;
}
.chip-row .bal::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -3px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  filter: blur(2px);
  z-index: -1;
}
.chip-row .bal-go {
  font-size: 12px;
  font-weight: 700;
  color: #ffd54f;
}
.chips {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 1px 3px 4px;
  margin-left: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.chip.c10 { background: #2e7d32; }
.chip.c50 { background: #7b1fa2; }
.chip.c100 { background: #c2185b; }
.chip.c500 { background: #00838f; }
.chip.custom {
  background: #37474f;
  border-style: solid;
  font-size: 10px;
}
.chip.custom.has-val {
  font-size: 11px;
}
.chip.custom.has-val.long {
  font-size: 9px;
  letter-spacing: -0.5px;
}
.chip.on { box-shadow: 0 0 0 2px #ffd54f, 0 2px 0 rgba(0,0,0,.3); }
.rebet {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #d6d6d6;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.stats {
  flex: 0 0 auto;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px 6px;
  font-size: 11px;
  color: #b0b3bb;
  background: var(--bg);
  box-sizing: border-box;
}
.stats-road {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding-right: 4px;
}
.settle-rec-wrap {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 4px 2px 6px;
  border-radius: 6px;
  background: #232328;
  box-sizing: border-box;
}
.settle-rec-inline {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa3b8;
  font-size: 10px;
  text-align: left;
  box-sizing: border-box;
}
.settle-rec-inline .settle-txt {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settle-rec-inline.hit .settle-txt { color: #ffe082; font-weight: 700; }
.settle-rec-inline.miss .settle-txt { color: #9aa3b8; }
.settle-rec-inline.empty .settle-txt { color: #6a6d78; }
.settle-all-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px 0 4px;
  border: 0;
  background: transparent;
  color: #c5c6ce;
  font-size: 11px;
  white-space: nowrap;
}
.settle-sheet .settle-list {
  max-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
}
.settle-sheet .settle-list .settle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto max-content auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  border-bottom: 1px solid #2a2a30;
  box-sizing: border-box;
}
.settle-col {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settle-name { text-align: left; }
.settle-issue {
  text-align: center;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
}
.settle-result { text-align: right; }
.settle-sep {
  color: #4a4a52;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
}
.settle-row.hit .settle-result { color: #ffe082; }
.settle-row.miss .settle-result { color: #9aa3b8; }
.settle-row.hit .settle-name,
.settle-row.hit .settle-issue { color: #ddd; }
.settle-row.miss .settle-name,
.settle-row.miss .settle-issue { color: #9aa3b8; }
.settle-empty {
  padding: 24px 0;
  text-align: center;
  color: #8b8d96;
  font-size: 13px;
}
.hist-wrap {
  flex: 0 0 auto;
  min-height: calc(var(--hist-block-h) + 4px);
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding: 2px 4px 2px;
  background: var(--bg);
  box-sizing: border-box;
}
.hist-scroll {
  flex: 1;
  min-width: 0;
  min-height: var(--hist-block-h);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.hist-scroll::-webkit-scrollbar { height: 0; }
.hist-cols {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  width: max-content;
}
.hist-col {
  flex: 0 0 22px;
  width: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hist-cell {
  height: 22px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hist-cell.big, .hist-cell.odd { background: var(--red); }
.hist-cell.small, .hist-cell.even { background: var(--blue); }
.hist-cell.sum { background: #2e2e34; color: #eee; }
.bet-toast-slot {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  z-index: 18;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  min-height: 0;
}
.toast {
  background: rgba(20, 20, 30, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 40;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .08);
}
.toast.in-bet {
  position: relative;
  left: auto;
  transform: none;
  white-space: normal;
  word-break: break-word;
}
.toast.in-stage {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  white-space: normal;
  max-width: min(92%, 320px);
}
.toast.on { opacity: 1; }

.mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 30;
  align-items: flex-end;
  justify-content: center;
}
.mask.on { display: flex; }
.mask.on .sheet {
  animation: sheet-up .28s ease;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.pay-amts {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.pay-amts button {
  flex: 1;
  height: 36px;
  border: 1px solid #3a3a42;
  border-radius: 8px;
  background: #141416;
  color: #eee;
  font-size: 13px;
}
.sheet {
  width: 100%;
  background: #1f1f24;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 24px;
}
.sheet-t { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-x {
  border: 0;
  background: transparent;
  color: #9aa0aa;
  font-size: 13px;
  height: 28px;
  padding: 0 4px 0 12px;
}
.sheet-inp {
  width: 100%; height: 42px;
  border: 1px solid #3a3a42;
  border-radius: 8px;
  background: #141416;
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
  margin-bottom: 12px;
}
.sheet-ok {
  width: 100%; height: 42px;
  border: 0; border-radius: 8px;
  background: var(--orange); color: #fff;
  font-size: 15px; font-weight: 700;
}
.sheet-ok-inline {
  width: auto;
  height: 28px;
  padding: 0 12px;
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
}
.sheet-sub { margin-top: 8px; margin-bottom: 10px; }
.sheet p { font-size: 13px; color: #c5c6ce; line-height: 1.6; margin-bottom: 8px; }
.sheet .rec { font-size: 12px; color: #9aa0aa; max-height: 160px; overflow: auto; }
.sheet .rec div { padding: 4px 0; border-bottom: 1px solid #2a2a30; }

.auth-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 35;
  align-items: flex-end;
  justify-content: center;
}
.auth-mask.on { display: flex; }
.auth-card {
  width: 100%;
  background: #1f1f24;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 24px;
}
.auth-card h2 { font-size: 16px; margin-bottom: 12px; }
.auth-card .auth-err {
  min-height: 18px;
  font-size: 12px;
  color: #ff8a80;
  margin: 4px 0 10px;
}
.auth-card .checks {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #9aa0aa;
  margin: 0 0 12px;
}
.auth-card .checks label { display: flex; align-items: center; gap: 6px; }
.auth-switch {
  margin-top: 10px;
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9aa0aa;
  font-size: 13px;
}

