:root {
  --bg: #000;
  --panel: #1c1630;
  --panel-2: #261c3d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b7b0c9;
  --dim: #8d86a3;
  --purple: #7c5cff;
  --mint: #5dffe0;
  --grad: linear-gradient(90deg, #8e52f6 0%, #75efa6 100%);
  --tab: linear-gradient(90deg, #9d86ff 0%, #7ef3d4 100%);
  --red: #ff5d6c;
  --gold: #f0c36a;
  --felt-1: #1aa36a;
  --felt-2: #0b5a38;
  --felt-rim: #c6a15a;
  --safe-b: env(safe-area-inset-bottom);
  font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); }
button, input { font-family: inherit; }
button { cursor: pointer; }
#app {
  --phone-w: 750;
  --phone-h: 1624;
  width: min(100vw, calc(100dvh * var(--phone-w) / var(--phone-h)));
  height: min(100dvh, calc(100vw * var(--phone-h) / var(--phone-w)));
  max-width: 480px;
  max-height: calc(480px * var(--phone-h) / var(--phone-w));
  margin: 0 auto;
  position: relative;
  overflow: clip;
  background: #000;
  color: var(--text);
  container-type: size;
  container-name: phone;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-height: 100dvh;
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000 url("res/mesh.png") center top / cover no-repeat; }
.scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

.splash {
  background: #000 url("res/mesh.png") no-repeat center center;
  background-size: cover;
}
.brand-img, .slogan-img {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  display: block;
}
.brand-img {
  top: 28.6%;
  height: clamp(48px, 8.44vh, 137px);
}
.slogan-img {
  top: 64%;
  height: clamp(50px, 9.36vh, 152px);
}
.brand {
  position: absolute;
  left: 50%;
  top: 28.6%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: max-content;
  white-space: nowrap;
}
.brand b {
  display: block;
  font-size: clamp(40px, 8.4vh, 64px);
  letter-spacing: 0.18em;
  white-space: nowrap;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.42em;
  font-size: 13px;
  color: #d7d7de;
  padding-left: 0.42em;
}
.slogan {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #eee;
}
.slogan strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }
.slogan em { display: block; margin-top: 8px; font-style: normal; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.load-foot {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 450px;
  text-align: center;
}
.load-foot p { margin: 0 0 10px; font-size: 12px; color: #a4a4a4; }
.bar { height: 6px; background: #070707; border-radius: 10px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.1s linear; }

.topbar, .tabbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border-bottom: 0;
  flex: none;
}
.tabbar { display: none; }
.icon-btn, .text-btn {
  background: transparent;
  border: 0;
  color: var(--text);
}
.icon-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; color: var(--text); }
.grow { flex: 1; min-width: 0; }
.topbar h1 { margin: 0; font-size: 17px; font-weight: 700; }
.topbar p { margin: 2px 0 0; color: var(--dim); font-size: 12px; }

.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #16161c;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
}
.chip {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 42%, #a9782f);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.wallet b { font-size: 14px; }

.home-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #111; font-weight: 800; font-size: 18px; flex: none;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.md { width: 52px; height: 52px; font-size: 20px; }
.home-head h2 { margin: 0; font-size: 16px; }
.home-head p { margin: 3px 0 0; color: var(--dim); font-size: 12px; }

.pad { padding: 8px 16px 20px; }
.hero-card {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(142, 82, 246, 0.45);
  margin-top: 8px;
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #22143a 0%, #12352c 100%);
  min-height: 132px;
  position: relative;
  overflow: hidden;
}
.home-screen {
  background: #000 url("res/mesh.png") center top / cover no-repeat;
}
.home-art {
  position: absolute;
  right: -30px;
  top: -20px;
  height: 160px;
  width: auto;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.hero-card .mini-felt {
  position: absolute; right: -20px; top: 24px;
  width: 150px; height: 90px; border-radius: 80px;
  background: radial-gradient(circle at 50% 40%, var(--felt-1), var(--felt-2));
  box-shadow: inset 0 0 0 6px rgba(198, 161, 90, 0.7);
}
.kicker { color: var(--mint); font-size: 12px; letter-spacing: 0.14em; }
.hero-card h3 { margin: 8px 0 4px; font-size: 28px; }
.hero-card p { margin: 0; color: #c9c9d1; font-size: 13px; }
.section-label { margin: 18px 0 8px; color: var(--muted); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
  text-align: left;
}
.panel b { display: block; font-size: 15px; }
.panel span { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; }
.list-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
}

.stake {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.stake .blind { font-weight: 800; font-size: 16px; }
.stake .blind small { display: block; color: var(--dim); font-weight: 500; font-size: 11px; margin-top: 2px; }
.faces { display: flex; }
.faces i {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -6px;
  display: grid; place-items: center; font-style: normal; font-size: 11px; color: #111; font-weight: 700;
  border: 2px solid #000;
}
.faces i:first-child { margin-left: 0; }
.meta { margin-top: 6px; color: var(--muted); font-size: 12px; display: flex; gap: 10px; }
.join {
  border: 0; border-radius: 999px; padding: 8px 14px;
  background: var(--grad); color: #102117; font-weight: 800; font-size: 13px;
}
.primary, .ghost, .danger, .ok {
  border-radius: 12px; border: 0; padding: 12px 14px; font-weight: 700; font-size: 15px;
}
.primary { background: linear-gradient(90deg, #9b6bff 0%, #5dffe0 100%); color: #1b1430; width: 100%; border-radius: 999px; }
.ghost { background: #22232b; color: var(--text); }
.danger { background: #2a1518; color: #ffb4bc; }
.ok { background: #143528; color: var(--mint); }
.stack-btns { display: flex; flex-direction: column; gap: 8px; }

.form { padding: 8px 16px 24px; }
.field { margin: 12px 0; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.field input[type="text"] {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px; font-size: 15px; outline: none;
}
.seg, .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button, .pills button, .blind-card {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
}
.seg button, .pills button { padding: 10px 12px; }
.seg button.on, .pills button.on, .blind-card.on { border-color: transparent; background: var(--purple); color: #fff; font-weight: 700; }
.switch {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--panel); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line);
}
.switch button { width: 46px; height: 28px; border-radius: 99px; border: 0; background: #2a2c33; position: relative; }
.switch button.on { background: var(--grad); }
.switch button i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  transition: left .15s;
}
.switch button.on i { left: 21px; }
.blinds {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.blinds::-webkit-scrollbar { display: none; width: 0; height: 0; }
.blind-card { min-width: 92px; scroll-snap-align: start; padding: 12px 8px; text-align: center; }
.blind-card b { display: block; font-size: 16px; }
.blind-card span { display: block; color: inherit; opacity: .75; font-size: 11px; margin-top: 4px; }
.hint { color: var(--dim); font-size: 12px; line-height: 1.5; }

.friend-screen { background: radial-gradient(ellipse at 50% -10%, #322052 0%, #161125 55%, #0e0b19 100%); }
.friend-screen .topbar { justify-content: flex-start; gap: 12px; background: #171327; }
.friend-screen .topbar h1 { font-size: 17px; font-weight: 750; margin: 0; }
.friend-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 26px 18px; }
.friend-mode-tile { height: 145px; border: 1px solid #66548e; border-radius: 14px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, #644195, #292040 70%); box-shadow: inset 0 1px #ae86df66, 0 8px 15px #0005; }
.friend-mode-tile:nth-child(2) { background: linear-gradient(145deg, #7a3b88, #302044 70%); }
.friend-mode-tile:nth-child(3) { background: linear-gradient(145deg, #385b94, #242045 70%); }
.friend-mode-tile:nth-child(4) { background: linear-gradient(145deg, #6b52ad, #292040 70%); }
.friend-mode-tile strong { font-size: 42px; line-height: 1; color: #e9d4ff; text-shadow: 0 2px 12px #d1aaff99; }
.friend-mode-tile b { font-size: 17px; margin-top: 12px; }
.friend-mode-tile small { font-size: 11px; opacity: .72; margin-top: 4px; }
.friend-form, .friend-join { padding: 12px 18px 28px; }
.friend-mode-name { margin: 2px 0 12px; padding: 10px 12px; border-radius: 8px; background: #332450; color: #d8c5ff; font-weight: 700; }
.friend-row { border-bottom: 1px solid #ffffff16; padding: 12px 2px; }
.friend-row label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 9px; color: #eeeafa; }
.friend-row input { width: 100%; border: 0; border-radius: 8px; padding: 10px 12px; background: #272038; color: white; font-size: 14px; }
.friend-choices { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.friend-choices button { flex: 0 0 auto; border: 1px solid #574a74; border-radius: 7px; padding: 8px 10px; color: #cbbde8; background: #2b2441; font-size: 12px; }
.friend-choices button.on { background: linear-gradient(95deg, #854fff, #58d9b7); border-color: transparent; color: white; font-weight: 700; }
.friend-switch { display: flex; align-items: center; justify-content: space-between; }
.friend-switch label { margin: 0; }
.friend-switch button { width: 44px; height: 24px; border: 0; border-radius: 15px; background: #37314a; padding: 3px; }
.friend-switch button i { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .15s; }
.friend-switch button.on { background: linear-gradient(95deg, #8d55ff, #5ddbbd); }
.friend-switch button.on i { transform: translateX(20px); }
.friend-advanced { font-size: 12px; color: #978ba9; }
.friend-create { margin-top: 22px; }
.friend-join h2 { font-size: 17px; margin: 12px 0; }
.friend-join label { font-size: 13px; color: #bdb0d1; }
.friend-join input { display: block; width: 100%; margin: 12px 0 16px; padding: 14px; border: 1px solid #7b56db; border-radius: 9px; background: linear-gradient(90deg, #543e83, #362552); color: white; font-size: 22px; font-weight: 800; text-align: center; letter-spacing: .22em; }
.friend-join input::placeholder { color: #ad92d5; font-size: 15px; }
.friend-empty { min-height: 110px; display: grid; place-items: center; color: #877d9b; border-radius: 10px; background: #211b31; }
.friend-owned { width: 100%; display: flex; justify-content: space-between; align-items: center; margin: 8px 0; padding: 12px; border: 1px solid #514069; border-radius: 9px; background: #2b2440; color: #eee8f8; }
.friend-owned span { color: #a994ce; font-size: 12px; }

/* The friend-room flow uses the source game's black canvas and illustrated mode cards. */
.friend-mode-screen, .friend-create-screen, .friend-join-screen { background: #111; }
.friend-mode-screen .topbar, .friend-create-screen .topbar, .friend-join-screen .topbar { height: 49px; min-height: 49px; background: #050505; border: 0; justify-content: center; }
.friend-mode-screen .topbar h1, .friend-create-screen .topbar h1 { font-size: 14px; font-weight: 500; }
.friend-mode-screen .topbar .icon-btn, .friend-create-screen .topbar .icon-btn, .friend-join-screen .topbar .icon-btn { position: absolute; left: 10px; top: 7px; width: 32px; height: 34px; color: #82bfba; font-size: 28px; }
.friend-mode-grid { grid-template-columns: repeat(2, 145px); justify-content: center; column-gap: 18px; row-gap: 39px; padding: 37px 0 0; }
.friend-mode-tile, .friend-mode-tile:nth-child(n) { position: relative; width: 145px; height: 173px; padding: 0; border: 0; border-radius: 8px; box-shadow: none; display: block; background-repeat: no-repeat; background-size: 905px 905px; text-align: center; }
.friend-mode-tile.classic { background-image: url("orig/05f34ad0-cd21-4185-b4a7-7df589b14ae3.a9549.png"); background-position: -654px -516px; }
.friend-mode-tile.squid { background-image: url("orig/05f34ad0-cd21-4185-b4a7-7df589b14ae3.a9549.png"); background-position: -654px -692px; }
.friend-mode-tile.plo { background-image: url("orig/131ed208-063f-4057-960c-b8dc0b1ee1bd.29089.png"); background-position: -150px -91px; }
.friend-mode-tile.short { background-image: url("orig/131ed208-063f-4057-960c-b8dc0b1ee1bd.29089.png"); background-position: 0 -212px; }
.friend-mode-tile b { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; font-size: 15px; font-weight: 650; text-shadow: 0 1px 3px #3a1650; }
.friend-mode-tile.classic b { font-size: 11px; bottom: 12px; }
.friend-mode-tile small { position: absolute; left: 0; right: 0; bottom: 5px; margin: 0; font-size: 10px; color: #f5e9f3; opacity: 1; }
.friend-mode-screen { background: #0d0b14; }
.friend-create-screen .friend-form { padding: 5px 4% 12px; }
.friend-caption { display: block; color: #eee; font-size: 12px; margin: 0 0 5px; }
.friend-create-screen #room-name { width: 100%; height: 36px; background: #2b253e; border: 0; border-radius: 3px; color: #fff; padding: 0 27px; font-size: 13px; outline: none; }
.friend-settings-panel { margin-top: 10px; padding: 14px 24px 10px; background: #2b253e; border-radius: 3px; }
.fr-range { position: relative; margin: 0 0 15px; }
.fr-range-head { display: flex; justify-content: space-between; align-items: center; min-height: 23px; color: #eee; font-size: 12px; }
.fr-range-head b { color: #65d1a3; font-weight: 600; }
.fr-range-head small { color: #eee; font-size: 11px; }
.fr-range input[type="range"] { appearance: none; display: block; width: 90%; height: 8px; margin: 20px auto 10px; border-radius: 10px; background: linear-gradient(to right, #8950ed, #64dda2 var(--fill), #090910 var(--fill)); outline: none; }
.fr-range input[type="range"]::-webkit-slider-thumb { appearance: none; width: 31px; height: 22px; border-radius: 9px; border: 3px solid #d0d0d4; background: repeating-linear-gradient(90deg, #f3f3f5 0 3px, #c8c9cf 3px 4px); box-shadow: 0 1px 4px #0008; }
.fr-range input[type="range"]::-moz-range-thumb { width: 28px; height: 20px; border-radius: 9px; border: 3px solid #d0d0d4; background: #eee; }
.fr-ticks { display: flex; justify-content: space-between; width: 90%; margin: 0 auto; color: #66d2a8; font-size: 10px; }
.fr-ticks span { white-space: nowrap; }
.fr-blind-row { position: relative; padding-top: 3px; }
.fr-blind-row .fr-range-head { width: 35%; }
.fr-blind-row .fr-ticks { display: none; }
.fr-inline { position: absolute; top: 0; color: #eee; font-size: 11px; }
.fr-inline:nth-child(2) { left: 48%; }
.fr-inline:nth-child(3) { right: 0; }
.fr-inline .friend-option { display: inline-flex; width: auto; min-height: 0; gap: 8px; padding: 0; background: none; }
.fr-inline select { display: block; margin-top: 5px; color: #63dba6; border: 0; background: #2b253e; }
.friend-option { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 15px; color: #eee; font-size: 12px; }
.friend-option button { width: 39px; height: 20px; padding: 2px; border: 0; border-radius: 12px; background: #050506; }
.friend-option button i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.friend-option button.on { background: #5fddb1; }
.friend-option button.on i { transform: translateX(19px); }
.friend-advanced-options .friend-option { margin: 8px 0; background: #2b253e; border-radius: 3px; }
.friend-create-screen .friend-caption:not(:first-child) { margin-top: 15px; }
.friend-create-screen .friend-create { position: sticky; bottom: 0; width: 92%; margin: 8px 4% 0; height: 39px; padding: 0; border-radius: 22px; color: #f9f9fb; font-size: 13px; font-weight: 500; }
.friend-join-screen .topbar { justify-content: flex-start; }
.friend-balance { margin-left: 55px; color: #73dfb5; font-size: 11px; }
.friend-kind { margin-right: 14px; min-width: 130px; padding: 4px 8px; background: #282336; color: #eee; text-align: center; font-size: 11px; }
.friend-join-screen .friend-join { position: relative; display: flex; flex-direction: column; padding: 0 4% 16px; }
.friend-join h2 { margin: 8px 0 10px; font-size: 13px; font-weight: 500; }
.friend-code-panel { position: relative; min-height: 102px; padding: 9px 12px; border-radius: 5px; background: linear-gradient(95deg, #7e3ed2, #599ed3); }
.friend-code-panel label { display: block; color: #f5effa; font-size: 12px; }
.friend-code-panel #room-code { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.friend-code-digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5%; margin: 10px 4% 0; height: 49px; cursor: text; }
.friend-code-digits span { display: grid; place-items: center; border-radius: 7px; background: #ffffff22; color: white; font-size: 23px; font-weight: 700; }
.friend-room-panel { flex: 1; min-height: 46vh; background: #2b253e; border-radius: 5px; padding: 12px; }
.friend-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; min-height: 40vh; background: transparent; color: #eee; font-size: 12px; }
.friend-empty strong { font-size: 54px; font-weight: 400; }
.friend-empty small { color: #eee; font-size: 11px; text-align: center; }
.friend-join-screen .friend-create { flex: none; width: 92%; margin: 20px 4% 0; height: 38px; padding: 0; color: white; font-size: 13px; font-weight: 500; }
.mask.chat-mask { align-items: stretch; justify-content: flex-start; padding: 0; background: transparent; }
.chat-dim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.38); }
.chat-side { position: relative; z-index: 1; width: 86%; height: 100%; display: flex; flex-direction: column; background: rgba(42,35,62,.94); color: #f7f4ff; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13px; }
.chat-row b { color: #76d9bf; font-size: 11px; }
.chat-row span { max-width: 85%; padding: 8px 11px; background: #393056; border-radius: 10px; overflow-wrap: anywhere; }
.chat-controls { flex: none; min-height: 84px; padding: 7px 7px calc(18px + var(--safe-b)); background: rgba(73,65,100,.72); }
.chat-flags { display: flex; align-items: center; gap: 20px; height: 22px; }
.chat-flags button { display: flex; align-items: center; gap: 3px; border: 0; padding: 0; background: none; color: #f1edf7; font-size: 10px; white-space: nowrap; }
.chat-flags i { width: 13px; height: 13px; display: grid; place-items: center; border: 1px solid #a696ca; border-radius: 50%; font-style: normal; }
.chat-flags i.on::after { content: '✓'; color: #d4d557; font-size: 10px; line-height: 1; }
.chat-compose { flex: none; display: flex; align-items: center; gap: 7px; height: 33px; }
.chat-more, .chat-send { flex: none; width: 25px; height: 25px; padding: 0; border: 1px solid #aaa0c0; border-radius: 50%; background: transparent; color: #b8b0c9; font-size: 13px; line-height: 23px; text-align: center; }
.chat-send { font-size: 16px; }
.chat-input-wrap { position: relative; flex: 1; min-width: 0; }
.chat-compose input { width: 100%; height: 27px; border: 0; border-radius: 15px; outline: none; background: #29243e; color: #fff; padding: 0 37px 0 10px; font-size: 11px; }
.chat-compose input::placeholder { color: #a49ab8; }
.chat-input-wrap small { position: absolute; right: 7px; top: 9px; color: #c6bfd2; font-size: 8px; line-height: 1; pointer-events: none; }
.chat-barrage { position: absolute; z-index: 7; left: 100%; top: 21%; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; border-radius: 20px; background: rgba(32,25,49,.78); color: #fff; font-size: 12px; pointer-events: none; animation: chat-drift 5s linear forwards; }
@keyframes chat-drift { to { transform: translateX(calc(-100% - 100cqw)); } }
@media (min-aspect-ratio: 3/5) {
  body:has(.friend-mode-screen) #app, body:has(.friend-create-screen) #app, body:has(.friend-join-screen) #app { width: 100vw; height: 100dvh; max-width: none; max-height: none; }
}

.table-screen {
  --table-action-clearance: 61cqw;
  background: #12081c url("res/table-source.jpg") center center / 100% 100% no-repeat;
}
body:has(.table-screen) #app { width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.table-screen.wide-table { --table-action-clearance: 33cqw; }
.table-screen.theme-night { background-image: url("res/table-blue.jpg"); }
.table-screen.theme-royal { background-image: url("res/table-purple.jpg"); }
.table-screen.theme-green { background-image: url("res/table-green.jpg"); }
.table-top { background: none; border-bottom: 0; padding: 20px 4px 0 8px; }
.table-top .icon-btn, .table-side { width: 28px; height: 28px; border-radius: 50%; padding: 0; background: transparent; }
.table-top .icon-btn img, .table-side img { width: 28px; height: 28px; display: block; }
.table-top .head-tools { gap: 10px; }
.table-top .head-tools .icon-btn,
.table-top .head-tools .icon-btn img { width: 28px; height: 28px; }
.table-top .head-tools .icon-btn { flex: none; }
.table-side { position: absolute; left: 8px; bottom: 38px; z-index: 5; background: none; border: 0; }
.table-jackpot { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 88px; height: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #b85aff; border-radius: 13px; color: #ffe9a3; background: linear-gradient(#49225c, #180e2c); box-shadow: 0 0 7px #e144f7, inset 0 0 8px #ad43ee; font-weight: 800; line-height: 1.05; text-shadow: 0 0 5px #000; }
.table-jackpot small { color: #f4d8ff; font-size: 8px; }
.table-jackpot b { font-size: 11px; }
.table-ping { position: absolute; top: 2px; right: 8px; display: flex; align-items: flex-end; gap: 2px; color: #2fc773; font-size: 10px; white-space: nowrap; }
.ping-bars { height: 10px; display: flex; align-items: flex-end; gap: 1px; }
.ping-bars i { display: block; width: 2px; background: currentColor; clip-path: none; }
.ping-bars i:nth-child(1) { height: 3px; }
.ping-bars i:nth-child(2) { height: 5px; }
.ping-bars i:nth-child(3) { height: 7px; }
.ping-bars i:nth-child(4) { height: 10px; }
.table-ping.good { color: #2fc773; }
.table-ping.fair { color: #f29e29; }
.table-ping.fair .ping-bars i:nth-child(4), .table-ping.poor .ping-bars i:nth-child(n+3), .table-ping.offline .ping-bars i { opacity: .22; }
.table-ping.poor { color: #f16b58; }
.table-ping.offline, .table-ping.unknown { color: #aaa6b3; }
.table-shield { position: absolute; z-index: 5; top: 56px; left: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #273334; border: 2px solid #304e40; box-shadow: 0 1px 5px #000a; }
.table-shield { animation: shield-breathe 2.1s ease-in-out infinite; }
.table-shield.dealing { animation: shield-dealing .46s ease-in-out 3; }
.table-shield svg { width: 17px; height: 17px; fill: #31a962; stroke: #a4ffd0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.table-shield svg path + path { fill: none; stroke: white; stroke-width: 2.5; }
@keyframes shield-breathe { 0%, 100% { box-shadow: 0 0 3px #39dc88b0, 0 1px 5px #000a; filter: brightness(.92); } 50% { box-shadow: 0 0 12px #4df5a7e0, 0 0 18px #4df5a755; filter: brightness(1.28); } }
@keyframes shield-dealing { 0%, 100% { box-shadow: 0 0 4px #42db9b; transform: scale(1); } 50% { box-shadow: 0 0 19px #70ffd0, 0 0 26px #45e6a999; transform: scale(1.13); } }
.table-chat, .table-emoji { position: absolute; z-index: 5; bottom: 38px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #2c2c38; color: #fff; font-size: 22px; line-height: 28px; }
.table-chat { left: 60px; }
.table-chat span { position: relative; top: -2px; display: inline-grid; place-items: center; width: 20px; height: 16px; border-radius: 4px; background: #f6f6fa; color: #2c2c38; font-size: 11px; letter-spacing: 1px; line-height: 7px; }
.table-chat span::after { content: ""; position: absolute; left: 3px; bottom: -4px; border-right: 6px solid transparent; border-top: 5px solid #f6f6fa; }
.table-chat i { position: absolute; top: 1px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #ee445b; }
.table-emoji { right: 4px; }
.table-emoji-list { display: flex; justify-content: space-around; padding: 22px 0; }
.table-emoji-list button { border: 0; background: transparent; font-size: 27px; }
.about-body { padding-top: 72px; }
.about-logo { width: 200px; height: auto; display: block; margin: 0 auto 18px; }
.about-text { color: #eee; font-size: 14px; font-weight: 400; line-height: 1.6; white-space: pre-wrap; margin: 0; }
.share-ways { display: flex; gap: 12px; }
.share-ways button { flex: 1; height: 64px; border-radius: 12px; border: 0; background: #2a2440; color: #fff; font-size: 15px; }
.buy-amt b { color: #deaa6f; font-size: 22px; }
.buy-ends { display: flex; justify-content: space-between; color: #b7b0c9; font-size: 12px; }
#buy-range { width: 100%; margin: 8px 0 12px; }
.rev-meta { display: flex; justify-content: space-between; gap: 8px; color: #b7b0c9; font-size: 13px; margin: 6px 0; }
.rev-meta b { color: #deaa6f; }
.rev-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rev-row .who { flex: 1; }
.rev-cards { display: flex; gap: 2px; }
.rev-line { color: #b7b0c9; font-size: 13px; padding: 4px 0; }
.rev-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.rev-nav button { background: none; border: 0; padding: 4px; }
.rev-nav img { width: 18px; height: 24px; object-fit: contain; display: block; }
.rev-count { min-width: 42px; text-align: center; color: #fff; }
.table-info {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, 0);
  z-index: 2; text-align: center; pointer-events: none; color: #fff;
  font-size: 11px; font-weight: 400; line-height: 16px; white-space: nowrap;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
}
.table-meta { display: flex; align-items: center; justify-content: center; gap: 4px; }
.table-meta img { height: 12px; width: auto; display: block; }
.table-meta span, .table-name { opacity: .2; }
.stage { position: absolute; left: 0; top: 0; width: 430px; height: 931.04px; z-index: 1; transform-origin: left top; transform: scale(var(--table-scale, 1)); }
.stage::before {
  content: "◉ CHIPCHIP.IO"; position: absolute; left: 50%; top: 40.5%; transform: translate(-50%, -50%);
  color: rgba(8, 4, 28, .21); font-size: 30px; font-weight: 900; letter-spacing: -1px; white-space: nowrap;
  pointer-events: none;
}
.felt { display: none; }
.theme-night { --felt-1: #2a78c0; --felt-2: #0d3358; --felt-rim: #9eb6d0; }
.theme-royal { --felt-1: #7a4ea8; --felt-2: #31185a; --felt-rim: #d7b4f5; }
.pot {
  position: absolute; left: 50%; top: 25%; transform: translateX(-50%);
  background: none; border-radius: 0; padding: 0; font-size: 13px; color: #d7d4e4;
  z-index: 2; text-align: center; white-space: nowrap; text-shadow: 0 1px 2px #000;
}
.pot-label { display: block; line-height: 17px; }
.pot-chip { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 5px; min-width: 100px; height: 31px; border-radius: 20px; background: rgba(16,14,45,.35); color: #fff; }
.pot-chip img { width: 27px; height: 27px; object-fit: contain; }
.pot-chip b { min-width: 38px; font-size: 15px; }
.board {
  position: absolute; left: 50%; top: calc(46% - 5.73px); transform: translate(-50%, -50%);
  display: flex; gap: 0; z-index: 2; width: 225px; min-height: 66px; align-items: center;
}
.board-slot { position: relative; display: block; width: 45px; height: 66px; flex: none; }
.board-slot + .board-slot { margin-left: 0; }
.board .card { width: 45px; height: 66px; }
.board-slot.deal-in { animation: board-slide .3s ease-out var(--board-delay) both; }
.board-slot.deal-in .card { animation: board-face .56s linear var(--board-delay) both; }
.board-slot.deal-in::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: url("res/cards/card_bg1.png") center / 100% 100% no-repeat;
  animation: board-back .56s linear var(--board-delay) both; pointer-events: none;
}
.board.has-best .board-slot:not(.best) { filter: brightness(.48); }
.board-slot.best { border-radius: 5px; outline: 2px solid #70f8bd; box-shadow: 0 0 10px #70f8bd; }
@keyframes board-slide { from { transform: translateX(var(--board-from)); } to { transform: translateX(0); } }
@keyframes board-back { 0%, 35% { opacity: 1; transform: scaleX(1); } 49% { opacity: 1; transform: scaleX(0); } 50%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes board-face { 0%, 49% { opacity: 0; transform: scaleX(0); } 50% { opacity: 1; transform: scaleX(0); } 100% { opacity: 1; transform: scaleX(1); } }
.ticker {
  position: absolute; left: 50%; top: 58%; transform: translateX(-50%);
  max-width: 80%; text-align: center; color: rgba(255,255,255,.35); font-size: 12px;
  background: none; border-radius: 0; padding: 0; z-index: 2;
}
.seat {
  position: absolute; z-index: 3; width: 65px; height: 104px; text-align: center; background: transparent; border: 0; color: inherit; padding: 0;
}
.table-empty-seat { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: grid; place-items: center; width: 27px; height: 31px; border-radius: 50%; background: #181723; box-shadow: 0 1px 5px #000a; }
.table-empty-seat.seeking-player::before { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #48ca9c; filter: drop-shadow(0 0 2px #74f0cc); animation: seat-invite 1.25s ease-in-out infinite; }
.table-empty-seat.seeking-player { animation: seat-glow 1.25s ease-in-out infinite; }
@keyframes seat-invite { 0%, 100% { opacity: .45; transform: translate(-50%, -2px); } 50% { opacity: 1; transform: translate(-50%, 3px); } }
@keyframes seat-glow { 0%, 100% { box-shadow: 0 0 3px #4de4a855; } 50% { box-shadow: 0 0 12px #4de4a8cc; } }
.table-empty-seat img { width: 19px; height: 19px; object-fit: contain; }
.table-empty-seat.reserved-seat { width: 60px; height: 48px; border: 1px solid #74d8be; border-radius: 12px; background: #28223e; color: #e9fff8; font-size: 11px; line-height: 1.1; }
.table-empty-seat.reserved-seat::before { display: none; }
.reserved-seat small { color: #9edecb; font-size: 9px; }
.seat.align-middle-bottom { transform: translate(-50%, -100%); }
.seat.align-middle-top { transform: translate(-50%, 0); }
.table-screen:not(.wide-table) .seat.align-middle-top { transform: translate(-50%, 18px); }
.seat.align-middle-middle { transform: translate(-50%, -50%); }
.seat.align-left-middle { transform: translate(0, -50%); }
.seat.align-right-middle { transform: translate(-100%, -50%); }
.seat.align-left-top { transform: translate(0, 0); }
.seat.align-right-top { transform: translate(-100%, 0); }
.seat .ava { position: absolute; left: 1px; top: 8px; width: 63px; height: 63px; margin: 0; display: block; }
.seat .face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; position: absolute; left: 5.5px; top: 5.5px; }
.seat .ring { position: absolute; left: -10px; top: -10px; width: 82px; height: 82px; pointer-events: none; }
.seat.turn .ring { filter: drop-shadow(0 0 3px #7ef3d4); }
.seat .turn-count { position: absolute; z-index: 6; left: -2px; top: -2px; width: 67px; height: 67px; display: grid; place-items: center; pointer-events: none; color: #fff; font-size: 16px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.seat .turn-count::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#56d8a4 var(--turn-progress, 100%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); }
.seat .turn-count span { position: relative; z-index: 1; }
.seat.win .ring { filter: drop-shadow(0 0 3px #e7c27a); }
.win-profit { position: absolute; left: -18px; right: -18px; top: -24px; z-index: 7; font-size: 16px; font-weight: 800; color: #ffc45f; text-shadow: 0 0 8px #ff9900, 0 2px 3px #000; }
.win-flag { position: absolute; left: 6px; top: 5px; z-index: 7; width: 53px; height: 53px; display: grid; place-items: center; border-radius: 9px; background: radial-gradient(circle, #ffed74 0%, #dbab00 60%, #7c4300 100%); color: #fff2ad; font-size: 22px; font-weight: 900; text-shadow: 0 2px 3px #684000; box-shadow: 0 0 12px #ffcb35; pointer-events: none; }
.seat.folded { opacity: .45; }
.seat .plate {
  position: absolute; left: 1px; right: 1px; top: 56px; height: 34px; z-index: 2;
  border-radius: 6px; background: rgba(18, 10, 6, .82);
  pointer-events: none;
}
.seat .name {
  position: absolute; left: 2px; right: 2px; top: 56px; z-index: 3;
  color: #e7e7e7; font-size: 11px; font-weight: 400; line-height: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.seat .stack {
  position: absolute; left: 2px; right: 2px; top: 72px; z-index: 3;
  display: block;
  margin: 0;
  color: #deaa6f;
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}
.menu-row { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; padding: 14px 2px; font-size: 15px; }
.set-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; color: #fff; font-size: 15px; text-align: left; }
.set-row .grow { flex: 1; }
.set-row img { width: 10px; height: 14px; object-fit: contain; mix-blend-mode: screen; }
.set-row .qbet { display: flex; gap: 4px; margin-left: auto; }
.set-row .qbet i { font-style: normal; font-size: 11px; line-height: 20px; padding: 0 6px; border-radius: 6px; background: #2a2440; color: #efeaf8; }
.set-row button { border: 0; background: #3a2f58; color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.theme-grid button { border: 2px solid transparent; border-radius: 12px; padding: 0; background: none; overflow: hidden; }
.theme-grid button.on { border-color: #7ef3d4; }
.theme-grid img { width: 100%; height: 96px; object-fit: cover; display: block; }
.look-sample { display: flex; justify-content: center; padding: 28px 0 12px; }
.info-line { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.info-line span { color: #b7b0c9; }
.info-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 4px 0 12px; }
.info-stats div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.info-stats span { color: #b7b0c9; }
.rank-player { display: grid; grid-template-columns: 22px 36px 1fr auto; column-gap: 8px; row-gap: 4px; align-items: center; width: 100%; margin-bottom: 8px; padding: 8px; border: 0; border-radius: 12px; background: #0d0e12; color: #fff; text-align: left; }
.rank-player img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.rank-player .who { font-size: 14px; }
.rank-player em { font-style: normal; color: #efeaf8; }
.rank-player .meta { grid-column: 2 / -1; color: #b7b0c9; font-size: 12px; }
.watch-title { margin: 6px 0 4px; font-size: 14px; font-weight: 600; }
.seat .bet {
  position: absolute; top: 36px; left: 94px; transform: none;
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; background: none; color: #fff; border-radius: 0; padding: 0;
  text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; white-space: nowrap;
  pointer-events: none;
}
.seat .bet img { width: 16px; height: 16px; object-fit: contain; }
.seat.bet-left .bet { left: auto; right: 94px; flex-direction: row-reverse; }
.seat.bet-below .bet { top: 100px; left: 50%; right: auto; transform: translateX(-50%); }
.seat.bet-above .bet { top: -4px; left: 50%; right: auto; transform: translateX(-50%); }
.dealer {
  position: absolute; right: -12px; left: auto; top: 40px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: #111; font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.seat.bet-left .dealer { right: auto; left: -12px; }
.seat.bet-above .dealer { left: -16px; right: auto; top: 18px; }
.ocards {
  position: absolute; top: 42px; left: 59px;
  display: flex; margin: 0; z-index: 4; pointer-events: none;
}
.seat.bet-left .ocards { left: auto; right: 59px; }
.ocards .card, .ocards .card.mini { width: 18px; height: 26px; margin-left: -14px; }
.ocards .card:first-child { margin-left: 0; }
.ocards.show { top: 32px; }
.ocards.show .card { width: 43px; height: 58px; margin-left: -13px; }
.seat.win.bet-right .ocards.show { left: 79px; }
.seat.win.bet-left .ocards.show { left: auto; right: 79px; }
.seat.win.bet-above .ocards.show, .seat.win.bet-below .ocards.show { left: 79px; }
.seat.win .ocards.show { z-index: 8; }
.seat.dealing .ocards .card:first-child, .seat.dealing .hero-cards .card:first-child { animation: hole-deal .3s ease-out var(--deal-delay) both; }
.seat.dealing .ocards .card:nth-child(2), .seat.dealing .hero-cards .card:nth-child(2) { animation: hole-deal .3s ease-out var(--deal-second) both; }
@keyframes hole-deal { from { opacity: .5; transform: translate(var(--deal-x), var(--deal-y)) scale(.28); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
.seat .hero-cards {
  position: absolute; left: 50%; right: auto; top: 95px; transform: translateX(-50%);
  display: flex; z-index: 4; pointer-events: none;
}
.seat .hero-cards .card { width: 53px; height: 72px; margin-left: -18px; }
.seat .hero-cards .card:first-child { margin-left: 0; }
.bubble {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px);
  background: #fff; color: #111; font-size: 10px; border-radius: 8px; padding: 2px 5px; white-space: nowrap;
}
.hero-hand {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; z-index: 4;
}
.card {
  width: 52px; height: 76px; border-radius: 6px; display: block; object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); flex: none; background: transparent; padding: 0;
}
.card.back { box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.card.mini { width: 28px; height: 41px; border-radius: 4px; }
.card.lg { width: 52px; height: 76px; }
.delta {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  color: var(--mint); font-weight: 800; z-index: 5; text-shadow: 0 2px 8px #000;
}
.delta.neg { color: var(--red); }

@media (min-aspect-ratio: 3/5) {
  body:has(.table-screen) #app { width: 100vw; height: 100dvh; max-width: none; max-height: none; }
  .wide-table .stage { width: 100%; height: 100%; transform: none; }
  .wide-table .board { width: 36.5cqw; min-height: 10.5cqw; }
  .wide-table .board-slot, .wide-table .board .card { width: 7.3cqw; height: 10.5cqw; }
  .wide-table .board-slot + .board-slot { margin-left: 0; }
  .wide-table .stage::before { font-size: 5cqw; }
  .wide-table .seat { width: 55px; height: 88px; }
  .wide-table .seat .ava { width: 53px; height: 53px; }
  .wide-table .seat .face { width: 43px; height: 43px; left: 5px; top: 5px; }
  .wide-table .seat .ring { width: 70px; height: 70px; left: -8px; top: -8px; }
  .wide-table .seat .plate { top: 48px; height: 30px; }
  .wide-table .seat .name { top: 48px; font-size: 10px; line-height: 14px; }
  .wide-table .seat .stack { top: 62px; font-size: 11px; line-height: 15px; }
  .wide-table .seat .bet { top: 32px; left: 57px; font-size: 10px; }
  .wide-table .seat.bet-left .bet { left: auto; right: 57px; }
  .wide-table .seat.bet-below .bet { top: 82px; }
  .wide-table .seat .ocards { left: 48px; top: 35px; }
  .wide-table .seat.bet-left .ocards { left: auto; right: 48px; }
  .wide-table .pot { font-size: 11px; }
  .wide-table .pot-chip { min-width: 84px; height: 25px; margin-top: 3px; }
  .wide-table .pot-chip img { width: 22px; height: 22px; }
  .wide-table .pot-chip b { font-size: 12px; }
  .wide-table .seat .hero-cards .card { width: 8cqw; height: 11.5cqw; }
  .wide-table .actions { height: 30cqw; }
  .wide-table .actions.wait { bottom: 6px; }
  .wide-table .timer { display: none; }
  .wide-table .quicks button { width: 10cqw; height: 10cqw; font-size: 3cqw; }
  .wide-table .quicks button small { font-size: 2.5cqw; }
  .wide-table .act { width: 14cqw; height: 14cqw; font-size: 3.2cqw; }
  .wide-table .act.raise { bottom: 7cqw; }
  .wide-table .act.confirm { width: 27cqw; height: 10cqw; bottom: 2cqw; }
}

.table-top { position: relative; z-index: 6; }
.actions {
  /* Keep the betting controls proportional to the table width. */
  position: absolute; left: 0; bottom: calc(var(--safe-b) + 20cqw); z-index: 6;
  width: 100%; height: 58cqw;
  padding: 0; background: none; pointer-events: none;
}
.actions > * { pointer-events: auto; }
.actions.wait {
  left: 0; right: 0; width: auto; height: auto; transform: none;
  padding: 18px 12px calc(10px + var(--safe-b));
}
.actions.wait .wait-tip { pointer-events: none; }
.quicks { position: absolute; inset: 0; pointer-events: none; }
.quicks button {
  position: absolute; width: 9.4cqw; height: 9.4cqw; border: 0; border-radius: 50%; padding: 0;
  background: url("res/act/bet_quick.png") center/100% 100% no-repeat;
  color: #fff; font-size: 3cqw; font-weight: 700; pointer-events: auto;
  text-shadow: 0 1px 3px #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.06;
  transform: translateX(-50%);
  box-shadow: 0 1.3cqw 2.8cqw rgba(0, 0, 0, .62), 0 0 1.8cqw rgba(243, 176, 69, .22), inset 0 .3cqw .5cqw rgba(255, 239, 192, .16);
  transition: filter .16s ease, box-shadow .16s ease, transform .16s ease;
}
.quicks button::before, .act::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .16), transparent 42%, rgba(0, 0, 0, .25));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 .25cqw .4cqw rgba(255, 255, 255, .1), inset 0 -.4cqw .75cqw rgba(0, 0, 0, .35);
}
.quicks button::before { background: radial-gradient(circle at 32% 20%, rgba(255, 193, 91, .23), transparent 62%), linear-gradient(155deg, rgba(255, 255, 255, .12), transparent 45%, rgba(0, 0, 0, .28)); }
.quicks button > *, .act > * { position: relative; z-index: 1; }
.quicks button:not(:disabled):hover { filter: brightness(1.18); box-shadow: 0 1.5cqw 3.4cqw rgba(0, 0, 0, .7), 0 0 2.7cqw rgba(255, 187, 75, .42); }
.quicks button:not(:disabled):active { transform: translateX(-50%) scale(.94); filter: brightness(1.26); }
.quicks button small { display: block; font-size: 2.5cqw; line-height: 1.05; color: #e8c480; }
.quicks button:disabled { opacity: .45; pointer-events: none; }
.quicks .q1 { left: 17%; top: 14cqw; }
.quicks .q2 { left: 33.5%; top: 9.7cqw; }
.quicks .q3 { left: 50%; top: 8.7cqw; }
.quicks .q4 { left: 66.5%; top: 9.7cqw; }
.quicks .q5 { left: 83%; top: 14cqw; }
.act {
  position: absolute; width: 13cqw; height: 13cqw; border: 0; border-radius: 50%; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: transparent; background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
  color: #fff; font-size: 3.2cqw; font-weight: 700; line-height: 1.05; text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
  box-shadow: 0 1.7cqw 3.8cqw rgba(0, 0, 0, .64), inset 0 .35cqw .7cqw rgba(255, 255, 255, .12);
  transition: filter .16s ease, box-shadow .16s ease, transform .16s ease;
}
.act:not(:disabled):hover { filter: brightness(1.15); }
.act:not(:disabled):active { transform: translateX(-50%) scale(.94); filter: brightness(1.25); }
.act:focus-visible, .quicks button:focus-visible { outline: .6cqw solid #fff; outline-offset: .6cqw; }
.act .t1, .act .t2, .act span { display: block; font-style: normal; }
.act .t2 { font-size: 2.8cqw; font-weight: 600; margin-top: .2667cqw; }
.act.auto-fold .t1 { font-size: 2.8cqw; white-space: nowrap; }
.act.fold {
  left: 25%; bottom: 11cqw;
  background-image: url("res/act/bet_fold.png");
  color: #f23421;
  text-shadow: 0 1px 2px #000, 0 0 1.2cqw rgba(255, 66, 54, .35);
  box-shadow: 0 1.7cqw 3.8cqw rgba(0, 0, 0, .64), 0 0 2.2cqw rgba(243, 34, 66, .18), inset 0 .35cqw .7cqw rgba(255, 255, 255, .12);
}
.act.fold::before { background: radial-gradient(circle at 32% 18%, rgba(255, 87, 98, .29), transparent 65%), linear-gradient(155deg, rgba(255, 255, 255, .11), transparent 45%, rgba(0, 0, 0, .25)); }
.act.call, .act.allin {
  left: 75%; bottom: 11cqw;
  background-image: url("res/act/bet_call.png");
  color: #06c879;
  text-shadow: 0 1px 2px #000, 0 0 1.2cqw rgba(0, 220, 150, .32);
  box-shadow: 0 1.7cqw 3.8cqw rgba(0, 0, 0, .64), 0 0 2.2cqw rgba(0, 220, 150, .16), inset 0 .35cqw .7cqw rgba(255, 255, 255, .12);
}
.act.call::before, .act.allin::before { background: radial-gradient(circle at 32% 18%, rgba(34, 229, 176, .27), transparent 65%), linear-gradient(155deg, rgba(255, 255, 255, .11), transparent 45%, rgba(0, 0, 0, .25)); }
.act.raise, .act.confirm {
  left: 50%; bottom: 18cqw;
  background-image: url("res/act/bet_raise.png");
  justify-content: flex-end; padding-bottom: 2.6667cqw; font-size: 3.2cqw; color: #fead1d;
  text-shadow: 0 1px 2px #000, 0 0 1.2cqw rgba(255, 174, 35, .35);
  box-shadow: 0 1.7cqw 3.8cqw rgba(0, 0, 0, .64), 0 0 2.2cqw rgba(255, 166, 28, .18), inset 0 .35cqw .7cqw rgba(255, 255, 255, .12);
}
.act.raise::before { background: radial-gradient(circle at 32% 18%, rgba(255, 181, 49, .26), transparent 65%), linear-gradient(155deg, rgba(255, 255, 255, .11), transparent 45%, rgba(0, 0, 0, .25)); }
.act.confirm {
  width: 30cqw; height: 12cqw; bottom: 2.8cqw; padding: 0; border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px; background: linear-gradient(100deg, #8e52f6 0%, #5ed4b8 100%);
  color: #fff; font-size: 4cqw; font-weight: 700; justify-content: center;
  box-shadow: 0 .9cqw 3.8cqw rgba(74, 35, 123, .55), inset 0 .45cqw .7cqw rgba(255,255,255,.2);
}
.act.confirm::before { inset: 2px; border-radius: inherit; }
.act.confirm:active { filter: brightness(1.12); transform: translateX(-50%) scale(.97); }
.act.allin { background-image: url("res/act/bet_allin.png"); color: #fff; }
.act.prefold { background-image: url("res/act/bet_autofold.png"); }
.act.precall { background-image: url("res/act/bet_autocall.png"); }
.act:disabled { opacity: .45; }

/* Metal-chip concept B: one shared surface for every betting action. */
.actions .quicks button, .actions .act {
  background: repeating-conic-gradient(from 4deg, #fff3c5 0deg 7deg, #ae8551 7deg 13deg, #513c30 13deg 18deg);
  box-shadow: 0 1.75cqw 0 #23180f, 0 3cqw 4.5cqw #000b, 0 0 3cqw rgba(241, 190, 120, .25);
}
.actions .quicks button::before, .actions .act::before {
  inset: 1.25cqw; border: .5cqw solid #cfaa69;
  background: radial-gradient(circle at 34% 20%, #6b5942, #292332 47%, #15121f 84%);
  box-shadow: inset 0 .5cqw 1cqw #fff3, inset 0 -1.25cqw 2cqw #000a;
}
.actions .quicks button::after, .actions .act::after {
  content: ""; position: absolute; inset: 2.75cqw; border-radius: 50%; pointer-events: none;
  border: 1px dashed #d3b27755;
}
.actions .act.fold { color: #ff777b; --chip-glow: 251, 82, 103; }
.actions .act.call, .actions .act.allin { color: #66eac2; --chip-glow: 60, 224, 174; }
.actions .act.raise, .actions .act.confirm { color: #f8c766; --chip-glow: 249, 182, 79; }
.actions .act { box-shadow: 0 1.75cqw 0 #23180f, 0 3cqw 4.5cqw #000b, 0 0 3cqw rgba(var(--chip-glow), .26); }
.actions .act.raise { justify-content: center; padding: 0; }
.actions .act.raise span::before { content: "＋"; display: block; font-size: 4.8cqw; font-weight: 300; line-height: .9; }
.actions .act.confirm {
  width: 13cqw; height: 13cqw; bottom: 18cqw; padding: 0;
  border: 0; border-radius: 50%; font-size: 3.5cqw; justify-content: center;
  background: repeating-conic-gradient(from 4deg, #fff3c5 0deg 7deg, #ae8551 7deg 13deg, #513c30 13deg 18deg);
}
.actions .act.auto-fold, .actions .act.auto-action {
  background: #242335; border: 1px solid currentColor; box-shadow: 0 2px 7px #0008;
  text-shadow: none; color: #bdc2d8;
}
.actions .act.auto-fold::before, .actions .act.auto-fold::after,
.actions .act.auto-action::before, .actions .act.auto-action::after { display: none; }
.actions .act.auto-fold.prefold { color: #f4757e; }
.actions .act.auto-action.precall { color: #50d8a9; }
.actions .act.confirm::before { inset: 1.25cqw; border-radius: 50%; }
.actions .act.prefold, .actions .act.precall { filter: brightness(1.2); box-shadow: 0 1.75cqw 0 #23180f, 0 3cqw 4.5cqw #000b, 0 0 4cqw rgba(var(--chip-glow), .55); }
.actions .act:not(:disabled):hover, .actions .quicks button:not(:disabled):hover { box-shadow: 0 2cqw 0 #23180f, 0 3.7cqw 5cqw #000b, 0 0 4cqw rgba(var(--chip-glow, 241, 190, 120), .4); }
/* The original table uses quiet, outlined controls. */
.actions .quicks button {
  border: 1px solid #a88a62; background: #211d2d; color: #f6f2fa;
  box-shadow: 0 2px 5px #0008;
}
.actions .quicks button small {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 2px; color: #cbc0d0; font-size: 2.55cqw; white-space: nowrap;
}
.actions .act {
  border: 1px solid currentColor; background: #211d2d; background-image: none;
  box-shadow: 0 2px 5px #0008; text-shadow: none;
}
.actions .quicks button::before, .actions .quicks button::after,
.actions .act::before, .actions .act::after { display: none; }
.actions .act.fold { color: #f55164; }
.actions .act.call, .actions .act.allin { color: #3bd397; }
.actions .act.raise, .actions .act.confirm { color: #eeb13d; }
.actions .act.confirm { background: #211d2d; border: 1px solid currentColor; box-shadow: 0 2px 5px #0008; }
.actions .act:not(:disabled):hover, .actions .quicks button:not(:disabled):hover { box-shadow: 0 0 8px currentColor; }
.actions .act.prefold, .actions .act.precall { box-shadow: 0 0 8px currentColor; }
.table-screen:not(.wide-table) .quicks .q1,
.table-screen:not(.wide-table) .quicks .q5 { top: 3cqw; }
.table-screen:not(.wide-table) .quicks .q2,
.table-screen:not(.wide-table) .quicks .q4 { top: -4cqw; }
.table-screen:not(.wide-table) .quicks .q3 { top: -8cqw; }
.table-screen:not(.wide-table) .act.raise,
.table-screen:not(.wide-table) .act.confirm { bottom: 33.5cqw; }
.rslide {
  position: absolute; left: 50%; top: 8cqw; width: 91cqw; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 1.7cqw; padding: 2.6cqw 3.4cqw 2.5cqw;
  border: 1px solid rgba(202, 179, 255, .38); border-radius: 3.6cqw;
  background: rgba(25, 21, 40, .94); backdrop-filter: blur(12px);
  box-shadow: 0 2cqw 7cqw rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.1);
}
.rslide-head { display: flex; align-items: center; gap: 2cqw; min-height: 5.5cqw; }
.rslide-head span { color: #c7bedb; font-size: 3.4cqw; font-weight: 600; }
.rslide-head b { margin-left: auto; color: #f9e3a5; font-size: 5cqw; line-height: 1; text-shadow: 0 1px 3px #000; }
.rslide-close {
  width: 5.8cqw; height: 5.8cqw; flex: none; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 4.3cqw; line-height: 1;
}
.rtrack { position: relative; width: 100%; height: 5.5cqw; display: flex; align-items: center; }
.rtrack input {
  width: 100%; height: 5.5cqw; margin: 0; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, #a468ff 0%, #6fe6bc var(--raise-progress), #514969 var(--raise-progress), #514969 100%) center / 100% 1.7cqw no-repeat;
}
.rtrack input::-webkit-slider-runnable-track { height: 5.5cqw; background: transparent; }
.rtrack input::-webkit-slider-thumb {
  appearance: none; width: 5.7cqw; height: 5.7cqw; border: .5cqw solid #fff; border-radius: 50%;
  background: #8c5cf7; box-shadow: 0 0 0 .6cqw rgba(151, 105, 255, .22), 0 .5cqw 1.5cqw rgba(0,0,0,.45);
}
.rslide-ends { display: flex; justify-content: space-between; color: #a89dbf; font-size: 2.9cqw; }
.wait-tip { text-align: center; color: #efeaf8; font-size: 14px; padding: 18px 0 8px; }
.timer { height: 3px; background: #222; margin: 0 12px; border-radius: 3px; overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left; animation: burn linear forwards; }
.table-screen:not(.wide-table) .timer {
  position: absolute; top: max(48px, 14cqw); left: 12px; right: 12px; z-index: 7;
  margin: 0; background: #264540;
}
@keyframes burn { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.mask.center { align-items: center; padding: 18px; }
.poster-mask { align-items: center; background: rgba(4, 2, 12, .78); }
.poster-card { width: 100%; height: 100%; position: relative; }
.poster-shot { position: absolute; left: 11%; top: 18%; width: 78%; }
.poster-shot img { width: 100%; height: auto; display: block; }
.poster-cta { position: absolute; left: 10%; right: 10%; bottom: 4.5%; height: 9%; border: 0; background: transparent; padding: 0; }
.poster-community {
  position: absolute; right: 8px; top: 8px; z-index: 2; height: 26px; padding: 0 10px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #19c37d, #7d5cff); color: #fff; font-size: 12px; font-weight: 700;
}
.poster-x {
  position: absolute; left: 50%; top: 82%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: transparent;
  color: #fff; font-size: 30px; font-weight: 700; line-height: 1;
}
.sheet {
  width: 100%; background: #14161c; border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(16px + var(--safe-b)); max-height: 86%; overflow: auto;
  border-top: 1px solid var(--line);
}
.sheet.pop { width: min(420px, 100%); border-radius: 18px; padding-bottom: 16px; height: auto; display: block; }
.fold-check-pop { max-width: 320px; text-align: center; }
.fold-check-pop p { margin: 18px 0 24px; font-size: 15px; line-height: 1.5; }
.fold-check-actions { display: flex; gap: 10px; }
.fold-check-actions button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: #2d3040; color: #fff; font-size: 15px; }
.fold-check-actions button:last-child { background: #bd344d; }
.sheet h3 { margin: 4px 0 12px; font-size: 16px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.table-modal-mask { align-items: center; background: rgba(0,0,0,.45); }
.table-settings {
  position: relative; flex: none; box-sizing: border-box; width: 84.2cqw; height: 131.4cqw;
  max-height: calc(100% - 24px); padding: 3.7cqw 4.2cqw; overflow: visible;
  border-radius: 3cqw; background: #2b2540; color: #fff;
}
.ts-close {
  position: absolute; right: -2cqw; top: -.5cqw; z-index: 2; width: 8.4cqw; height: 8.4cqw;
  border: 0; border-radius: 50%; background: #26223b; color: #9ccc48; font-size: 6cqw; line-height: 1;
}
.ts-tabs { display: flex; justify-content: center; gap: 13cqw; height: 10.2cqw; margin-bottom: 4.5cqw; }
.table-settings:has(.ts-quick-slots) .ts-tabs { margin-bottom: 3.5cqw; }
.ts-tabs button { position: relative; border: 0; background: none; color: #aaa3bd; font-size: 3.7cqw; padding: 0 1cqw; }
.ts-tabs button.on { color: #fff; font-weight: 700; }
.ts-tabs button.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: .45cqw; background: #d6c962; }
.ts-section { margin-bottom: 2.5cqw; }
.ts-section:has(.ts-back-options) { margin-bottom: calc(2.5cqw + 10px); }
.ts-section:has(.ts-theme-options) { margin-bottom: calc(2.5cqw + 8px); }
.ts-label { margin: 0 0 1.5cqw; color: #c8c2d6; font-size: 2.9cqw; }
.ts-face-options, .ts-back-options, .ts-theme-options { display: flex; align-items: center; gap: 2.2cqw; overflow: hidden; }
.ts-face-option, .ts-back-option, .ts-theme-options button { position: relative; flex: none; padding: 0; border: .45cqw solid transparent; border-radius: 1.7cqw; background: transparent; }
.ts-face-option.on, .ts-back-option.on, .ts-theme-options button.on { border-color: #e5d04d; }
.ts-face-option.on::after, .ts-back-option.on::after, .ts-theme-options button.on::after { content: "✓"; position: absolute; right: -.7cqw; top: -.7cqw; z-index: 2; width: 4cqw; height: 4cqw; border-radius: 50%; background: #e5d04d; color: #231d32; font-size: 3cqw; font-weight: 800; line-height: 4cqw; text-align: center; }
.ts-face-option { display: flex; width: 37.5cqw; height: 14.5cqw; align-items: center; justify-content: center; gap: .7cqw; }
.ts-face-option .card { width: 8.5cqw; height: 12.3cqw; border-radius: .7cqw; box-shadow: none; }
.ts-face-option.variant-1 .card { filter: hue-rotate(165deg) saturate(1.35); }
.ts-back-option { width: 10cqw; height: 13cqw; display: grid; place-items: center; }
.ts-back-option .card { width: 7.9cqw; height: 11.4cqw; box-shadow: none; }
.ts-back-option.variant-1 .card, .back-style-1 .card.back { filter: hue-rotate(80deg); }
.ts-back-option.variant-2 .card, .back-style-2 .card.back { filter: hue-rotate(165deg); }
.ts-back-option.variant-3 .card, .back-style-3 .card.back { filter: hue-rotate(240deg); }
.ts-theme-options { gap: 2.4cqw; }
.ts-theme-options button { width: 14.5cqw; height: 20.5cqw; border-radius: 5cqw; overflow: visible; }
.ts-theme-options img { width: 100%; height: 100%; display: block; border-radius: 4.5cqw; object-fit: cover; }
.ts-volume { display: flex; align-items: center; gap: 5cqw; height: 11cqw; margin: 1.5cqw 0 calc(1.5cqw + 4px); }
.ts-volume img { width: 6.5cqw; height: 6.5cqw; object-fit: contain; }
.ts-volume input { flex: 1; min-width: 0; accent-color: #93d6ab; }
.ts-switch { display: flex; align-items: center; justify-content: space-between; height: 9cqw; padding: 0 1cqw; font-size: 3.3cqw; }
.ts-switch button { position: relative; width: 10.5cqw; height: 5.8cqw; padding: 0; border: 0; border-radius: 999px; background: #09090e; }
.ts-switch button i { position: absolute; top: .6cqw; left: .7cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #fff; transition: left .15s; }
.ts-switch button.on { background: #42c989; }
.ts-switch button.on i { left: 5.2cqw; }
.ts-quick-slots { display: grid; grid-template-columns: repeat(5,1fr); gap: 3cqw; margin: 7cqw 0 6.6cqw; }
.ts-quick-slots button { height: 9cqw; border: .45cqw solid transparent; border-radius: 1cqw; background: #37304e; color: #fff; font-size: 3.25cqw; }
.ts-quick-slots button.on { border-color: #e5d04d; }
.ts-quick-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(4,12cqw); border: 1px solid #655f77; border-radius: 1cqw; overflow: hidden; }
.ts-quick-grid button { border: 0; border-right: 1px solid #655f77; border-bottom: 1px solid #655f77; background: #2b2540; color: #fff; font-size: 3.25cqw; }
.ts-quick-grid button:nth-child(3n) { border-right: 0; }
.ts-quick-grid button:nth-last-child(-n+3) { border-bottom: 0; }
.ts-quick-grid button:active { background: #544773; }
.ts-reset { display: block; width: 29cqw; height: 8.8cqw; margin: 10.7cqw auto 0; border: 0; border-radius: 999px; background: linear-gradient(90deg,#9055f5,#5ed6a3); color: #fff; font-size: 3.5cqw; }
.face-style-1 .card:not(.back) { filter: hue-rotate(165deg) saturate(1.35); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.statgrid div { background: #0d0e12; border-radius: 10px; padding: 8px 4px; text-align: center; }
.statgrid b { display: block; font-size: 16px; }
.statgrid span { color: var(--dim); font-size: 11px; }
.note {
  width: 100%; min-height: 64px; margin: 8px 0; border-radius: 10px; border: 1px solid var(--line);
  background: #0d0e12; color: var(--text); padding: 8px;
}
.hand {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; background: transparent; color: inherit; text-align: left;
}
.pos { color: var(--mint); }
.neg { color: var(--red); }
.muted { color: var(--muted); font-size: 12px; }
.empty { color: var(--dim); text-align: center; padding: 28px 10px; }
.props { display: flex; gap: 8px; }
.props button { flex: 1; background: #22232b; border: 0; border-radius: 10px; padding: 8px; font-size: 18px; }
.range { width: 100%; accent-color: #8e52f6; }
.raise-num { text-align: center; font-size: 28px; margin: 6px 0; font-weight: 800; }
.toast {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  background: rgba(20,20,24,.92); border: 1px solid var(--line); color: #fff;
  padding: 8px 12px; border-radius: 10px; z-index: 40; font-size: 13px; max-width: 80%; text-align: center;
}
.match {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(0,0,0,.72); z-index: 15;
}
.spin {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px;
  border: 3px solid #2a2a30; border-top-color: var(--mint); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
code.room { font-family: inherit; letter-spacing: 0.18em; font-size: 20px; font-weight: 800; }

.screen.cc {
  background:
    linear-gradient(180deg, rgba(7, 5, 14, 0.45), rgba(7, 5, 14, 0.78)),
    url("res/mesh.png") center top / cover no-repeat;
}
.cc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; flex: none; }
.cc-head .avatar { width: 40px; height: 40px; font-size: 16px; position: relative; }
.dot {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
  background: #3dff7a; border: 2px solid #120c1c; border-radius: 50%;
}
.who { min-width: 0; }
.who b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip {
  display: inline-block; margin-top: 2px; font-style: normal; font-size: 9px; line-height: 14px;
  color: #f0d48a; border: 1px solid #c8a15a; background: #2a2418; border-radius: 8px; padding: 0 5px;
}
.balances { display: flex; gap: 4px; }
.bal {
  display: flex; align-items: center; gap: 3px; height: 20px;
  background: #141018; border-radius: 999px; padding: 0 6px 0 2px;
  font-size: 11px; font-weight: 700;
}
.bal i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.bal.t i { background: radial-gradient(circle at 35% 30%, #d9fff2, #1ec98a 55%, #0c6b4a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.bal.g i { background: radial-gradient(circle at 35% 30%, #fff1c4, #e2a122 55%, #8a5a10); }
.head-tools { margin-left: auto; display: flex; gap: 6px; }
.head-tools button {
  width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0;
  background: #2a2438; color: #eee; display: grid; place-items: center;
}
.head-tools svg, .dock svg, .ops svg { width: 16px; height: 16px; display: block; }

.banner-wrap { padding: 8px 12px 0; }
.banners { display: flex; overflow: auto; scroll-snap-type: x mandatory; border-radius: 12px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banners button { flex: 0 0 100%; width: 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; }
.banners img { width: 100%; height: 60px; object-fit: cover; display: block; }

.cc-seg {
  margin: 10px 12px 0; background: #1a1528; border-radius: 999px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px; gap: 2px;
}
.cc-seg button {
  border: 0; background: transparent; color: #d5d0e2; border-radius: 999px;
  height: 36px; width: 100%; font-size: 14px; font-weight: 700;
}
.cc-seg button.on { background: var(--tab); color: #fff; }
.badge {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 3px;
  background: url("res/ui/msg_cnt_bg.png") center / 100% 100% no-repeat; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px;
}
.filters { display: flex; align-items: center; gap: 8px; padding: 10px 12px 2px; }
.chip-btn {
  border: 0; color: #eee; height: 28px; padding: 0 12px; font-size: 12px;
  background: url("res/ui/tab_btn_bg2.png") center / 100% 100% no-repeat;
}
.chip-btn.on { background-image: url("res/ui/tab_btn_2.png"); color: #fff; }
.jackpot {
  margin-left: auto; background: linear-gradient(180deg, #3a2468, #1a1030);
  border: 1px solid #7a4dff; border-radius: 10px; padding: 3px 8px; line-height: 1.15; text-align: left;
}
.jackpot span { font-size: 10px; color: #e6d9ff; }
.jackpot b { display: block; color: #5dffb0; font-size: 12px; font-weight: 800; }

.stake-card {
  display: block; width: calc(100% - 24px); margin: 8px 12px; text-align: left; color: inherit;
  background: rgba(34, 24, 58, 0.92); border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px; padding: 8px 12px 12px;
}
.stake-top { display: flex; justify-content: flex-end; align-items: center; gap: 4px; min-height: 18px; }
.tag { font-size: 10px; color: #ff5d6c; font-weight: 700; }
.pill-ico {
  font-size: 9px; line-height: 14px; border-radius: 7px; padding: 0 4px;
  background: #322848; color: #ddd4f5; font-style: normal; font-weight: 700;
}
.stake-main { display: grid; grid-template-columns: 1fr auto 42px; gap: 8px; align-items: center; }
.nl { font-size: 11px; color: #9b93ad; margin-bottom: 2px; }
.blinds-line { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.blinds-line i {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9fff2, #1ec98a 55%, #0c6b4a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.buyline { color: #a79eb8; font-size: 12px; text-align: right; }
.buyline b { display: block; margin-top: 2px; color: #fff; font-size: 15px; font-weight: 700; }
.ring {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

.dock {
  position: relative; margin: 8px 14px calc(8px + var(--safe-b));
  height: 62px; background: #161222; border-radius: 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 8px 7px; flex: none; border: 1px solid rgba(255,255,255,.04);
}
.dock > button, .mid-wrap {
  flex: 1; background: none; border: 0; color: #8f88a4; font-size: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; min-width: 0;
}
.dock > button.on, .mid-wrap.on { color: #fff; }
.dock svg { width: 22px; height: 22px; }
.mid-wrap { position: relative; height: 62px; justify-content: flex-end; }
.orb {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff;
  background: linear-gradient(180deg, #d5cbff 0%, #8b6cff 42%, #5ee7c8 100%);
  box-shadow: 0 8px 16px rgba(80, 50, 180, .45);
  display: grid; place-items: center;
}
.mid-wrap.on .orb { box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 8px 16px rgba(80, 50, 180, .45); }

.task-card, .shop-card, .rank-card {
  margin: 10px 12px; background: #1c1630; border-radius: 16px; padding: 4px 12px;
}
.task-row, button.task-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 0; width: 100%;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.06);
  background: transparent; color: inherit; text-align: left;
}
.task-row:last-child { border-bottom: 0; }
.task-row .ttl { font-size: 13px; font-weight: 600; }
.reward { color: #5dffb0; font-size: 13px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.reward img { width: 16px; height: 16px; }
.pbtn {
  background: url("res/ui/select_bg.png") center / 100% 100% no-repeat; color: #fff; border: 0;
  min-width: 64px; height: 32px; padding: 0 10px; font-size: 13px; font-weight: 700;
}
.sec-title { margin: 14px 12px 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.track { height: 8px; margin-top: 8px; overflow: hidden; background: url("res/ui/slider_bar1.png") center / 100% 100% no-repeat; }
.track i { display: block; height: 100%; background: url("res/ui/slider_bar_3.png") left center / cover no-repeat; }
.lv { display: flex; justify-content: space-between; color: #8d86a3; font-size: 10px; margin-top: 4px; }
.lv-num { color: #8d86a3; font-size: 11px; margin-top: 4px; }

.friend {
  margin: 12px; border-radius: 18px; padding: 16px 14px; min-height: 96px; color: #fff;
  background: linear-gradient(100deg, #7d63ff 0%, #6a86ff 42%, #5ee0c0 100%);
  display: flex; align-items: center; gap: 10px;
}
.friend h3 { margin: 0; font-size: 20px; font-weight: 800; }
.friend p { margin: 4px 0 0; font-size: 12px; opacity: .92; }
.friend .sofa { font-size: 34px; line-height: 1; }
.friend .acts { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }
.friend .acts button {
  background: #fff; color: #2a2a2a; border: 0; border-radius: 999px;
  height: 30px; padding: 0 16px; font-size: 13px; font-weight: 700;
}
.club-tile {
  background: #2a2144; border: 0; color: #fff; border-radius: 18px; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700;
}
.club-tile i { font-style: normal; font-size: 28px; }
.club-sec { margin: 16px 16px 0; font-size: 14px; font-weight: 700; }
.club-sec em {
  font-style: normal; margin-left: 6px; font-size: 12px; padding: 1px 8px; color: #fff;
  background: url("res/ui/club_count_bg.png") center / 100% 100% no-repeat;
}
.club-empty { text-align: center; color: #8d86a3; font-size: 13px; padding: 22px 10px 8px; }

.bal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px 0; }
.bal-card { border-radius: 16px; min-height: 112px; padding: 14px; color: #fff; position: relative; overflow: hidden; }
.bal-card.usdt { background: linear-gradient(155deg, #8d7cff 0%, #5b86ff 42%, #5fe0b8 100%); }
.bal-card.pts { background: linear-gradient(155deg, #ffb15c 0%, #ff6f9a 48%, #c86bff 100%); }
.bal-card small { display: block; font-size: 12px; opacity: .92; }
.bal-card strong { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.bal-card b { font-size: 22px; font-weight: 800; }
.bal-card .mark {
  position: absolute; right: -8px; top: 8px; font-size: 54px; opacity: .28; font-weight: 800;
}
.ops {
  margin: 10px 12px 0; background: #1c1630; border-radius: 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 0;
}
.ops button { background: none; border: 0; color: #eee; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ops svg { width: 22px; height: 22px; }
.ex-banner { display: block; margin: 10px 12px 0; border-radius: 10px; overflow: hidden; }
.ex-banner img { width: 100%; height: auto; display: block; }
.overview {
  margin: 10px 12px 16px; background: #1a1430; border-radius: 16px; min-height: 240px; padding: 14px;
}
.overview .bar { display: flex; justify-content: space-between; align-items: center; background: transparent; height: auto; }
.overview .drop { color: #ddd; border: 0; border-radius: 8px; padding: 4px 10px; font-size: 12px; background: url("res/ui/combox_btn_bg.png") center / 100% 100% no-repeat; }
.rank-row, .shop-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px;
}
.rank-row b, .shop-row b { font-size: 13px; }
.more-card { margin: 10px 12px; background: #1c1630; border-radius: 16px; padding: 4px 12px 12px; }
.more-card .switch { background: transparent; border: 0; padding: 12px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }

.cut-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 13px; flex: none; box-sizing: border-box; }
.cut-ava { position: relative; width: 46px; height: 46px; flex: none; }
button.cut-ava { border: 0; background: none; padding: 0; }
.cut-ava .frame { position: absolute; left: -7px; top: -7px; width: 60px; height: 60px; display: block; z-index: 1; pointer-events: none; }
.cut-ava .face { position: absolute; left: 3px; top: 3px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cut-id { min-width: 0; flex: 0 1 auto; display: flex; flex-direction: column; gap: 8px; }
.cut-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cut-who strong { font-size: 13px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-who img { height: 16px; width: auto; display: block; }
.cut-coins { display: flex; flex: none; gap: 5px; }
.cut-coin {
  display: flex; align-items: center; gap: 2px; height: 20px; padding: 0 2px 0 4px;
  border: 0; border-radius: 999px; color: #fff; background: #161222 url("res/ui/coin_bg.png") center / 100% 100% no-repeat;
}
.cut-coin img { width: 15px; height: 15px; object-fit: contain; }
.cut-coin .add { width: 16px; height: 16px; }
.cut-coin em { font-style: normal; font-size: 12px; font-weight: 700; }
.cut-tools { margin-left: auto; display: flex; flex: none; gap: 7px; }
.cut-tools button { width: 31px; height: 31px; padding: 0; border: 0; background: transparent; position: relative; }
.cut-tools img { width: 31px; height: 31px; display: block; }
.tool-bell i { position: absolute; top: 2px; right: 4px; width: 6px; height: 6px; background: url("res/ui/msg_cnt_bg.png") center / contain no-repeat; }
@container phone (max-width: 380px) {
  .cut-head { gap: 5px; padding: 0 8px; }
  .cut-ava { width: 40px; height: 40px; }
  .cut-ava .frame { left: -6px; top: -6px; width: 52px; height: 52px; }
  .cut-ava .face { left: 3px; top: 3px; width: 34px; height: 34px; }
  .cut-coins { gap: 2px; }
  .cut-coin { gap: 1px; height: 18px; padding: 0 1px 0 2px; }
  .cut-coin img { width: 13px; height: 13px; }
  .cut-coin .add { width: 13px; height: 13px; }
  .cut-coin em { font-size: 11px; }
  .cut-tools { gap: 3px; }
  .cut-tools button, .cut-tools img { width: 28px; height: 28px; }
}
@container phone (max-width: 320px) {
  .cut-head { gap: 4px; padding: 0 6px; }
  .cut-ava { width: 36px; height: 36px; }
  .cut-ava .frame { left: -5px; top: -5px; width: 46px; height: 46px; }
  .cut-ava .face { width: 30px; height: 30px; }
  .cut-tools { gap: 2px; }
  .cut-tools button, .cut-tools img { width: 26px; height: 26px; }
}

.cut-banner { padding: 0 16px; }
.cut-seg {
  margin: 4px 16px 0; height: 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: url("res/ui/lobby_tab_bg.png") center / 100% 100% no-repeat;
}
.cut-seg button { border: 0; background: transparent; color: #d9d3e6; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cut-seg button.on { background: url("res/ui/btn-9.png") center / 100% 100% no-repeat; color: #fff; }
.cut-filters { display: flex; align-items: center; gap: 8px; padding: 7px 16px 0; }
.room-list { position: relative; display: flex; flex-direction: column; margin-top: 0; }
.cut-jack {
  position: absolute; z-index: 3; right: 14px; top: -30px; width: 117px; height: auto; pointer-events: none;
}
.room-list > .cut-jack + .cut-room { margin-top: 6px; }
.cut-room {
  position: relative; display: block; width: calc(100% - 32px); height: 64px; margin: 0 16px 4px; padding: 2px 12px 0; text-align: left; color: #fff;
  border: 0; background: url("res/ui/home_room_new_bg.png") center / 100% 100% no-repeat; overflow: hidden;
}
.cut-room.open { height: auto; overflow: visible; }
.cut-headrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 16px; }
.cut-headrow .nl { font-size: 12px; line-height: 1; font-weight: 700; color: #f4f4f6; }
.cut-tags { display: flex; justify-content: flex-end; align-items: center; gap: 3px; min-height: 14px; margin-left: auto; }
.cut-tags > img { height: 16px; width: auto; flex: none; }
.cut-room-main {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; align-items: center; margin-top: 2px;
  width: 100%; background: none; border: 0; color: inherit; text-align: left; font: inherit; padding: 0;
}
.cut-room-main .blinds { justify-self: start; }
.cut-room-main .buy { justify-self: center; }
.cut-room-main .ring { justify-self: end; }
.room-drop { display: grid; place-items: center; width: 100%; height: 12px; background: none; border: 0; padding: 0; }
.room-drop img { width: 12px; height: 7px; object-fit: contain; transform: rotate(180deg); }
.cut-room:not(.open) .room-drop { position: absolute; left: 0; bottom: 0; height: 8px; }
.cut-room.open .room-drop img { transform: none; }
.sitters { margin-top: 6px; padding: 4px 6px 2px; background: url("res/ui/cash_item_expand_bg.png") center / 100% 100% no-repeat; }
.sitters .sit-head, .sitters .sit-row { grid-template-columns: 28px 1fr 56px 22px; }
.sit-eye { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.sit-eye .eye { width: 16px; height: 16px; display: block; }
.sit-head, .sit-row, .rank-line { display: grid; grid-template-columns: 42px 1fr 72px; gap: 6px; align-items: center; font-size: 12px; padding: 6px 2px; color: #ddd; }
.cut-panel > .sit-head, .rank-line { grid-template-columns: 28px 1fr 92px 56px; }
.sit-head { color: #9b93ad; }
.sit-row i { font-style: normal; display: flex; align-items: center; }
.sit-row .flag { width: 18px; height: 12px; display: block; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.rank-line, .sit-head.rank { grid-template-columns: 28px 1fr 96px 52px; }
.mtt-filters { display: flex; gap: 8px; padding: 8px 12px 4px; overflow: auto; }
.mtt-filters button {
  border: 1px solid rgba(255,255,255,.16); color: #ddd; height: 26px; padding: 0 12px; font-size: 12px; white-space: nowrap;
  border-radius: 999px; background: rgba(18, 12, 32, .55);
}
.mtt-filters button.on { border-color: #efeaff; color: #fff; background: rgba(46, 34, 78, .9); }
.week-switch button {
  border: 0; color: #ddd; height: 28px; padding: 0 12px; font-size: 12px;
  background: url("res/ui/tab_btn_bg2.png") center / 100% 100% no-repeat;
}
.week-switch button.on { background-image: url("res/ui/tab_btn_2.png"); color: #fff; }
.mtt-card {
  display: block; width: calc(100% - 24px); margin: 8px 12px; padding: 8px 10px 6px; text-align: left; color: #fff; border: 0;
  background: url("res/ui/mtt_room_bg.png") center / 100% 100% no-repeat;
}
.mtt-title { font-size: 13px; font-weight: 700; padding: 2px 2px 6px; }
.mtt-title span { font-weight: 500; color: #f3eeff; }
.mtt-body { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; }
.mtt-body .cup { width: 42px; height: 42px; object-fit: contain; }
.mtt-stats { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 800; }
.mtt-stats img, .mtt-fee img, .mtt-foot img { width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; }
.mtt-stats span, .mtt-fee { display: inline-flex; align-items: center; gap: 3px; }
.mtt-time {
  margin-top: 6px; background: rgba(6, 4, 16, .42); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; color: #f7f3ff;
}
.mtt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mtt-fee { font-size: 14px; font-weight: 800; }
.mtt-go {
  background: #3dcb7a; color: #08301a; border-radius: 8px; padding: 7px 12px;
  font-weight: 800; font-size: 13px; white-space: nowrap;
}
.mtt-go.off { background: #6d6780; color: #fff; }
.mtt-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #ddd6ee; font-size: 11px; }
.mtt-foot span { display: flex; align-items: center; gap: 4px; }
.soon { text-align: center; color: #b7b0c9; padding: 80px 20px; }
.points-intro, .rank-banner { margin: 8px 18px; border-radius: 16px; overflow: hidden; }
.points-intro { aspect-ratio: 690 / 321; padding: 7px 7px 7px 44%; color: #24304a; background: url("res/ui/points_task_bg.png") center / 100% 100% no-repeat; }
.page-points .cut-seg { margin-top: 0; }
.page-points .points-intro p { font-size: 8px; line-height: 1.25; }
.page-points .points-intro b { font-size: 9px; margin-bottom: 2px; }
.page-points .points-intro .lead { margin-bottom: 3px; }
.page-points .task-row { padding-top: 6px; padding-bottom: 6px; }
.page-points .points-intro + .sec-title + .cut-panel .task-row { padding-top: 4px; padding-bottom: 4px; }
.points-intro ~ .sec-title { margin: 18px 18px 0; }
.points-intro + .sec-title { margin-top: 7px; }
.points-intro ~ .sec-title img { width: 20px; height: 20px; object-fit: contain; }
.points-intro ~ .cut-panel { margin: 8px 18px; background: #2c2440; }
.rank-banner { aspect-ratio: 690 / 135; padding: 8px 10px 6px 38%; color: #fff; background: url("res/ui/points_rank_bg.png") left center / 100% 100% no-repeat; }
.points-intro b, .rank-banner b { display: block; margin-bottom: 4px; font-size: 13px; }
.rank-banner b { font-size: 12px; margin-bottom: 2px; }
.points-intro p, .rank-banner p { margin: 0; font-size: 11px; line-height: 1.35; }
.rank-banner p { font-size: 10px; line-height: 1.3; }
.points-intro .lead { margin-bottom: 6px; }
.rank-banner em { font-style: normal; color: #06eac4; font-weight: 700; }
.ach { padding: 10px 0 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ach:last-child { border-bottom: 0; }
.ach-top { display: flex; align-items: center; gap: 8px; }
.ach-top .ttl { flex: 1; font-size: 13px; font-weight: 600; }
.lv-num { text-align: center; }
.vip-crown { width: 22px; height: 18px; object-fit: contain; flex: none; }
.goods { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.shop-row b { display: block; line-height: 1.3; }
.shop-row .reward span { color: #8d86a3; font-weight: 500; }
.shop-head button { background: none; border: 0; color: #ddd; font-size: 13px; padding: 0; }
.sit-head button { background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: left; }
.rank-medal { width: 22px; height: 24px; object-fit: contain; display: block; }
.rank-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.rank-line .who { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rank-line .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-arrow { width: 10px; height: 6px; margin-left: 2px; transform: rotate(180deg); vertical-align: middle; }
.rank-foot p img { width: 12px; height: 11px; flex: none; margin-top: 2px; }
.rank-note { display: flex; gap: 8px; align-items: flex-start; }
.rank-note p { flex: 1; }
.rank-foot .week-switch { position: static; flex: none; }
.screen.orders { background: #000; }
.ship-split { margin: 4px 16px 0; color: #8d86a3; font-size: 12px; text-align: center; }
.ship-sheet .field label i { color: #ff5d73; font-style: normal; margin-right: 2px; }
.ship-actions { display: flex; gap: 10px; margin: 8px 16px 16px; }
.ship-actions button { flex: 1; height: 44px; border: 0; border-radius: 22px; color: #fff; font-weight: 700; font-size: 15px; }
.ship-actions .ghost { background: #5b4b86; }
.ship-actions .primary { margin: 0; background: linear-gradient(90deg, #7a5cff, #3ddec8); }
.ava-title { padding: 10px 12px 0; color: #eee; font-size: 13px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 4px; padding: 10px 8px 12px; }
.avatar-grid button { background: none; border: 0; color: inherit; padding: 0; position: relative; }
.avatar-grid button > img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; background: #1a1428; }
.avatar-grid button.picked > img { box-shadow: 0 0 0 2px #7ef3d4; }
.avatar-grid button.picked::after { content: "✓"; position: absolute; left: 50%; top: 16px; transform: translateX(-50%); color: #ffe27a; font-size: 16px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.avatar-grid span { display: flex; justify-content: center; align-items: center; gap: 2px; font-size: 9px; color: #c8c0da; margin-top: 4px; }
.avatar-grid span img { width: 10px; height: 10px; }
.order-sheet .goods { width: 120px; height: 120px; display: block; margin: 8px auto; }
.order-name { display: block; text-align: center; margin-bottom: 8px; }
.order-qty, .order-addr { display: flex; align-items: center; gap: 8px; margin: 8px 16px; }
.order-qty span, .order-addr span { flex: 1; }
.order-qty button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #3a3358; color: #fff; }
.order-addr button { background: none; border: 0; color: #d7c8ff; }
.order-notice { white-space: pre-wrap; color: #9b93ad; font-size: 12px; line-height: 1.45; margin: 0 16px 8px; }
.order-sheet input { width: calc(100% - 32px); margin: 0 16px 8px; }
.shop-head { display: flex; justify-content: space-between; margin: 0 12px; padding: 8px 12px; color: #ddd; font-size: 13px; }
.week-switch { display: flex; justify-content: flex-end; gap: 8px; }
.rank-foot { position: relative; margin: 8px 12px 12px; padding: 0; color: #9b93ad; font-size: 11px; line-height: 1.45; }
.rank-foot p { margin: 0 0 6px; display: flex; gap: 4px; align-items: flex-start; }
.rank-foot .week-switch { position: static; flex: none; }
.rank-foot { padding-bottom: 28px; }
.ship-bar {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 8px 12px 0;
  background: #241b3a; color: #fff; border: 0; border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.ship-bar i { width: 18px; height: 18px; border-radius: 50%; background: #7c5cff; box-shadow: inset 0 0 0 5px #c4b6ff; }
.ship-bar span { flex: 1; text-align: left; }
.ship-bar img { width: 10px; height: 14px; object-fit: contain; mix-blend-mode: screen; }
.pay-line, .pay-label { display: block; color: #c8c0da; font-size: 13px; margin: 12px 16px 6px; }
.pay-select, .pay-input, .notice-card {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 0 16px 8px; color: #fff;
  border: 0; border-radius: 12px; padding: 14px; font: inherit; text-align: left;
  background: #241b3a url("res/ui/combox_btn_bg.png") center / 100% 100% no-repeat;
}
.pay-select span { flex: 1; min-width: 0; }
.pay-select img { width: 18px; height: 18px; object-fit: contain; }
.pay-select .chev { width: 18px; height: 10px; margin-left: auto; transform: rotate(180deg); }
.pay-select .chev.up { transform: none; }
.pay-menu { margin: -2px 16px 8px; }
.pay-menu button { display: block; width: 100%; border: 0; background: transparent; color: #fff; text-align: left; padding: 13px 16px; font-size: 15px; }
.pay-menu button.on { background: url("res/ui/select_bg.png") center / 100% 100% no-repeat; }
.pay-empty { text-align: center; color: #9b93ad; margin: 28px 16px; font-size: 13px; }
.table-deposit .topbar h1 { font-size: 14px; font-weight: 500; }
.table-deposit .pay-placeholder { height: 214px; }
.table-deposit .pay-select { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; border-radius: 3px; background: #2b253e; }
.table-deposit .pay-select .chev { filter: sepia(1) saturate(5) hue-rotate(35deg) brightness(1.4); }
.table-deposit .pay-label { margin-left: 12px; font-size: 11px; }
.table-deposit .scroll.pay > .primary { width: calc(100% - 48px); margin-left: 24px; margin-right: 24px; color: #fff; font-size: 13px; font-weight: 500; }
.table-deposit .pay-tips { margin: 14px 20px; font-size: 10px; line-height: 1.4; }
.fiat-ch small { display: block; color: #9b93ad; font-size: 11px; font-weight: 400; margin-top: 2px; }
.fiat-ch img { width: 36px; height: 36px; border-radius: 8px; }
.pay-field { position: relative; }
.pay-field em { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: #b7b0c6; font-style: normal; font-size: 13px; pointer-events: none; }
.pay-limit { margin: 2px 16px 8px; color: #8d86a3; font-size: 12px; }
.fiat-go.off { background: #494160; color: #fff; }
.pf { background: #07060d; }
.pf-scroll { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 8px 16px 12px; box-sizing: border-box; }
.pf-ava { position: relative; width: 109px; height: 109px; margin: 18px 0 10px; border: 0; background: none; padding: 0; }
.pf-ava .frame { width: 109px; height: 109px; display: block; }
.pf-ava .face { position: absolute; left: 18px; top: 18px; width: 73px; height: 73px; border-radius: 50%; object-fit: cover; }
.pf-ava .cam { position: absolute; right: 2px; bottom: 4px; width: 28px; height: 25px; object-fit: contain; }
.pf-ava .cam { display: grid; place-items: center; box-sizing: border-box; border: 1px solid #d7d5e2; border-radius: 4px; background: #1a1925; }
.pf-ava .cam svg { width: 17px; height: 17px; display: block; }
.pf-name { display: flex; align-items: center; gap: 6px; }
.pf-name b { font-size: 16px; font-weight: 700; }
.pf-name button { width: 22px; height: 22px; border: 0; background: none; padding: 0; }
.pf-name img { width: 18px; height: 18px; object-fit: contain; display: block; }
.pf-name svg { width: 14px; height: 14px; display: block; }
.pf-uid { display: flex; align-items: center; gap: 4px; margin-top: 4px; border: 0; background: none; color: #c8c0da; font-size: 13px; }
.pf-uid img { width: 12px; height: 12px; }
.pf-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.pf-meta .flag { width: 33px; height: 22px; }
.pf-gender { width: 36px; height: 26px; border: 0; border-radius: 8px; background: #241b3a; padding: 0; display: grid; place-items: center; }
.pf-gender img { width: 14px; height: 16px; object-fit: contain; }
.pf-gender span { color: #62bff0; font-size: 16px; line-height: 1; font-weight: 700; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.pf-stats button, .pf-stat { background: #1a1428; color: #fff; border: 0; border-radius: 12px; padding: 14px 8px; text-align: center; }
.pf-stats b, .pf-stat b { display: block; font-size: 16px; }
.pf-stats small, .pf-stat small { color: #9b93ad; font-size: 12px; }
.pf-stats img, .pf-stat img { width: 22px; height: 22px; }
.pf-binds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.pf-binds button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border: 0; border-radius: 8px; background: #1a1428; color: #fff; font-size: 12px; }
.pf-binds img { width: 16px; height: 16px; }
.pf-list { width: 100%; margin-top: 14px; }
.pf-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; border: 0; background: transparent; color: #fff; padding: 0 8px; text-align: left; font-size: 15px; }
.pf-row img { width: 24px; height: 24px; object-fit: contain; }
.pf-row span { flex: 1; }
.pf-row .go { width: 8px; height: 14px; mix-blend-mode: screen; }
.pf-ver { margin: auto 0 8px; color: #6f687f; font-size: 12px; }
.pf:not(.pf-setpage):not(.vip-page) { background: linear-gradient(105deg, #813cdd 0%, #398cc9 100%) top / 100% 230px no-repeat, #0a0a0d; }
.pf:not(.pf-setpage):not(.vip-page) .notice-top { background: transparent; }
.pf:not(.pf-setpage):not(.vip-page) .pf-scroll { position: relative; padding: 0 13px 12px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-scroll::before { content: ''; position: absolute; z-index: 0; top: 65px; left: 13px; right: 13px; height: 256px; border-radius: 6px; background: #2a2644; }
.pf:not(.pf-setpage):not(.vip-page) .pf-scroll > * { position: relative; z-index: 1; }
.pf:not(.pf-setpage):not(.vip-page) .pf-ava { width: 90px; height: 90px; margin: 24px 0 8px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-ava .frame { width: 90px; height: 90px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-ava .face { left: 15px; top: 15px; width: 60px; height: 60px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-ava .cam { width: 25px; height: 23px; right: -2px; bottom: 0; }
.pf:not(.pf-setpage):not(.vip-page) .pf-name b { font-size: 13px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-uid { margin-top: 1px; font-size: 11px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-meta { margin: 7px 0 11px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-meta .flag { width: 25px; height: 17px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-gender { width: 25px; height: 19px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-gender { border: 1px solid #4397ba; border-radius: 5px; background: #263851; }
.pf:not(.pf-setpage):not(.vip-page) .pf-stats { width: calc(100% - 28px); gap: 10px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-stats button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 52px; padding: 3px 5px; border-radius: 6px; background: #36314f; overflow: hidden; }
.pf:not(.pf-setpage):not(.vip-page) .pf-stats b { font-size: 13px; line-height: 16px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-stats small { font-size: 9px; line-height: 11px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-stats img { display: block; flex: none; width: 15px; height: 15px; object-fit: contain; }
.pf:not(.pf-setpage):not(.vip-page) .pf-binds { display: flex; width: calc(100% - 28px); margin-top: 10px; padding: 8px; box-sizing: border-box; border-radius: 5px; background: #36314f; }
.pf:not(.pf-setpage):not(.vip-page) .pf-binds button { justify-content: flex-start; height: 16px; padding: 0 5px; font-size: 10px; border: 1px solid #736e91; background: #211c32; }
.pf:not(.pf-setpage):not(.vip-page) .pf-binds button:nth-child(2) { display: none; }
.pf:not(.pf-setpage):not(.vip-page) .pf-list { margin-top: 40px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-row { height: 41px; margin-bottom: 6px; padding: 0 13px; border-radius: 5px; background: #2a2644; font-size: 12px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-row img { width: 20px; height: 20px; }
.pf:not(.pf-setpage):not(.vip-page) .pf-row .go { width: 7px; height: 12px; }
.screen.cc.pf.pf-setpage { background: #07060d; }
.screen.cc.pf.vip-page { background: #07060d url("res/ui/vip_bg.png") center top / 100% auto no-repeat; }
.vip-top { background: transparent; }
.vip-word { width: 59px; height: 40px; display: block; margin: 0 auto; }
.vip-body { padding: 250px 0 24px; }
.vip-body h2 { margin: 14px 18px 8px; font-size: 14px; font-weight: 600; }
.vip-card { margin: 0 16px 8px; background: #2a2444; border-radius: 12px; }
.vip-levels { display: flex; justify-content: space-between; padding: 12px 8px 10px; }
.vip-levels figure { margin: 0; width: 64px; text-align: center; }
.vip-levels img { width: 34px; height: 34px; object-fit: contain; }
.vip-levels figcaption { margin-top: 4px; color: #c8c2d4; font-size: 10px; line-height: 1.2; }
.vip-medal { display: block; width: 72px; height: 66px; object-fit: contain; margin: -6px auto -28px; position: relative; z-index: 1; }
.vip-daily { position: relative; display: flex; align-items: center; justify-content: center; height: 77px; color: #97959e; font-size: 14px; }
.vip-daily img { width: 31px; height: 35px; object-fit: contain; margin-right: 8px; }
.vip-daily b { color: #fff; font-weight: 700; }
.vip-up { margin: 6px 16px 4px; text-align: center; color: #fff; font-size: 13px; }
.vip-week { display: flex; justify-content: space-around; align-items: center; height: 90px; }
.vip-week button, .vip-special button {
  width: 78px; height: 26px; border: 0; color: #fff; font-size: 13px;
  background: url("res/ui/vip_claim.png") center / 100% 100% no-repeat;
}
.vip-special { display: flex; align-items: center; gap: 10px; min-height: 77px; padding: 10px 14px; }
.vip-special img { width: 36px; height: 39px; object-fit: contain; }
.vip-special b { display: block; font-size: 14px; }
.vip-special small { color: #c8c2d4; font-size: 12px; }
.vip-special button { margin-left: auto; }
.pf-set-label { margin: 18px 22px 8px; color: #fff; font-size: 15px; }
.pf-set {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  width: calc(100% - 36px); height: 52px; margin: 0 18px 18px; padding: 0 14px 0 18px;
  background: #2b2540; border-radius: 12px; color: #fff;
}
.pf-set img { width: 21px; height: 18px; object-fit: contain; }
.pf-set span { flex: 1; font-size: 15px; }
.pf-set button { width: 47px; height: 23px; border: 0; padding: 0; background: url("res/ui/set_sw_b.png") center / 100% 100% no-repeat; }
.pf-set button.on { background-image: url("res/ui/set_sw_a.png"); }
.pf-setpage .pf-logout {
  margin: 0 auto 28px; height: 42px; width: 236px; border: 0; border-radius: 999px;
  color: #fff; font-size: 15px; background: url("res/ui/set_logout.png") center / 100% 100% no-repeat;
}
.pf-earn { grid-template-columns: 1fr 1fr 1fr; }
.pf-win { position: relative; width: min(340px, calc(100% - 32px)); }
.pf-win h3 { text-align: center; }
.pf-win p { text-align: center; color: #ddd; }
.pf-win input { display: block; width: calc(100% - 24px); margin: 8px auto; background: #120e1c; color: #fff; border: 0; border-radius: 8px; padding: 12px; }
.pf-xclose { position: absolute; right: 8px; top: 8px; border: 0; background: none; color: #fff; font-size: 20px; }
.sheet.pop.lang-win {
  display: flex; flex-direction: column; align-items: center; box-sizing: border-box;
  width: 348px; height: 276px; padding: 64px 0 0; gap: 23px;
  background: #2b2540; border: 0; border-radius: 22px;
}
.lang-win button[data-act="lang-pick"] {
  width: 202px; height: 38px; border: 0; border-radius: 10px; color: #fff; font-size: 15px;
  background: url("res/ui/lang_btn_off.png") center / 100% 100% no-repeat;
}
.lang-win button.on { background: url("res/ui/lang_btn_on.png") center / 100% 100% no-repeat; border-radius: 999px; }
.lang-win .lang-x {
  right: 0; top: 0; width: 31px; height: 31px; padding: 0; font-size: 0;
  background: url("res/ui/lang_close.png") center / contain no-repeat;
}
.ava-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 8px; }
.ava-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.ava-grid button { border: 0; background: none; padding: 0; border-radius: 50%; }
.ava-grid img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.ava-grid button.on { outline: 2px solid #8a5cff; }
.pf-ver { text-align: center; color: #6d6780; font-size: 11px; margin: auto 0 12px; }
.pf-auth { text-align: center; padding-top: 82px; display: flex; flex-direction: column; align-items: center; }
.pf-auth .auth-tip, .pf-auth .auth-name, .pf-auth .auth-desc { margin: 0; font-size: 14px; color: #fff; font-weight: 400; }
.pf-auth .auth-logo { width: 160px; height: 142px; object-fit: contain; margin: 45px 0 0; }
.pf-auth .auth-name { margin-top: 45px; font-weight: 700; }
.pf-auth .auth-desc { margin-top: 5px; }
.scroll.pay.pf-auth > .auth-next { margin-top: 98px; width: 301px; height: 40px; }
.scroll.pay > .primary { display: block; width: calc(100% - 32px); margin: 18px 16px 0; }
.pay-amount { display: flex; gap: 8px; margin: 0 16px; }
.pay-amount input { flex: 1; background: #241b3a; color: #fff; border: 0; border-radius: 12px; padding: 14px; font-size: 16px; }
.pay-amount .max { border: 0; border-radius: 10px; padding: 0 14px; background: linear-gradient(90deg, #8d5cff, #5dffe0); color: #1b1430; font-weight: 700; }
.pay-fee { display: flex; justify-content: space-between; margin: 8px 16px; color: #9b93ad; font-size: 12px; }
.pay-tabs {
  margin: 8px 16px; height: 40px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr;
  background: url("res/ui/lobby_tab_bg.png") center / 100% 100% no-repeat;
}
.pay-tabs button { border: 0; border-radius: 999px; background: transparent; color: #ddd; font-weight: 700; }
.pay-tabs button.on { background: url("res/ui/btn-9.png") center / 100% 100% no-repeat; color: #fff; }
.fiat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 10px; }
.fiat-grid button { background: #2b2b2b; color: #fff; border: 0; border-radius: 14px; min-height: 72px; font-size: 16px; }
.screen.pay-screen { background: #121212; }
.pay-quote {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 32px); margin: 8px 16px; padding: 14px; color: #fff;
  border-radius: 12px; background: #241b3a url("res/ui/combox_btn_bg.png") center / 100% 100% no-repeat;
}
.pay-quote b { color: #3dcb7a; font-weight: 700; }
.pay-quote span { display: inline-flex; align-items: center; gap: 6px; }
.qmark { width: 14px; height: 14px; border: 1px solid #9b93ad; border-radius: 50%; background: transparent; padding: 0; }
.qr-hold { display: grid; place-items: center; background: transparent; padding: 8px 0 4px; }
.qr-hold img { width: 168px; height: 168px; background: #fff; padding: 0; border-radius: 6px; }
.addr-line { text-align: center; color: #b794f6; font-size: 13px; margin: 8px 16px 4px; word-break: break-all; }
.pay-tips { margin: 16px; color: #8d86a3; font-size: 12px; line-height: 1.55; }
.pay-tips b { display: block; margin-bottom: 6px; font-weight: 600; }
.pay-tips p { margin: 0 0 8px; }
.notice-banner { display: block; width: calc(100% - 24px); margin: 10px 12px 0; padding: 0; border: 0; background: none; }
.notice-banner img { width: 100%; height: auto; display: block; border-radius: 14px; }
.notice-top { position: relative; justify-content: center; min-height: 44px; }
.notice-top .icon-btn { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
.notice-top h1 { font-size: 16px; font-weight: 600; }
.act-seg {
  margin: 8px 16px 0; height: 33px; display: grid; grid-template-columns: 1fr 1fr; flex: none;
  background: url("res/ui/lobby_tab_bg.png") center / 100% 100% no-repeat;
}
.act-seg button { border: 0; background: transparent; color: #d9d3e6; font-size: 14px; font-weight: 700; }
.act-seg button.on { background: url("res/ui/btn-9.png") center / 100% 100% no-repeat; color: #fff; }
.act-body { padding: 10px 16px 16px; overflow-x: hidden; }
.act-banner {
  display: block; width: 100%; max-width: 100%; height: 115px;
  object-fit: contain; object-position: center; border-radius: 8px;
  background: #161022;
}
.act-body h2 { margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
.act-desc { margin: 0; color: #eee; font-size: 13px; line-height: 1.45; }
.act-row {
  display: grid; grid-template-columns: 70px 88px 1fr; align-items: center; height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.act-medal { width: 28px; height: 30px; object-fit: contain; justify-self: center; }
.act-rank, .act-ticket, .act-points { font-size: 13px; font-weight: 700; }
.act-rank { text-align: center; }
.act-points { color: #f4f4f6; }
.act-tips p { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; color: #eee; font-size: 13px; line-height: 1.4; }
.act-tips img { width: 10px; height: 9px; margin-top: 4px; flex: none; }
.act-rankhead { display: grid; grid-template-columns: 52px 1fr 88px; gap: 8px; color: #c8c0da; font-size: 13px; padding: 8px 8px 4px; }
.act-days { display: flex; justify-content: flex-end; gap: 0; padding: 8px 16px 16px; flex: none; }
.act-days button {
  width: 70px; height: 24px; border: 0; color: #ddd; font-size: 13px;
  background: url("res/ui/tab_btn_bg2.png") center / 100% 100% no-repeat;
}
.act-days button.on { background-image: url("res/ui/tab_btn_2.png"); color: #fff; }
.screen.notice-detail { background: #121212; }
.nd-title { margin: 6px 16px 2px; font-size: 15px; font-weight: 600; color: #e8e8e8; }
.nd-time { margin: 0 16px 10px; font-size: 12px; color: #d0d0d0; }
.nd-body { display: block; width: calc(100% - 32px); margin: 0 16px 20px; height: auto; }
.screen.mtt-screen { background: #0c151c; }
.mtt-top { position: relative; justify-content: center; min-height: 44px; padding: 8px 48px; }
.mtt-top .icon-btn { position: absolute; left: 4px; top: 4px; }
.mtt-top h1 { font-size: 16px; font-weight: 600; text-align: center; }
.mtt-tabs { margin: 2px 16px 4px; grid-template-columns: repeat(4, 1fr); }
.mtt-hero, .mtt-stats3, .mtt-timebox, .mtt-blinds, .mtt-info, .mtt-struct, .mtt-table {
  margin: 4px 12px; background: #151d2d; border-radius: 14px; color: #fff;
}
.mtt-hero { display: flex; gap: 8px; align-items: center; padding: 10px; }
.mtt-hero .cup { width: 46px; height: 46px; object-fit: contain; flex: none; }
.mtt-hero b { font-size: 13px; }
.mtt-hero p { margin: 4px 0 0; font-size: 11px; color: #c8c0da; line-height: 1.35; }
.mtt-hero .side { display: flex; flex-direction: column; gap: 6px; flex: none; }
.mtt-hero .side button { border: 0; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; color: #1b1430; white-space: nowrap; }
.mtt-hero .side button:first-child { background: linear-gradient(90deg, #7dce82, #d6f56a); }
.mtt-hero .side button:last-child { background: linear-gradient(90deg, #f0a202, #ffd166); }
.mtt-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 6px; }
.mtt-stats3.two { grid-template-columns: 1fr 1fr; }
.mtt-stats3 small { display: block; color: #9b93ad; font-size: 12px; }
.mtt-stats3 b { display: flex; justify-content: center; align-items: center; gap: 3px; margin-top: 6px; font-size: 16px; }
.mtt-stats3 img { width: 14px; height: 14px; object-fit: contain; }
.mtt-timebox { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; padding: 12px; color: #c8c0da; }
.mtt-timebox em { color: #3dcb7a; font-style: normal; font-size: 22px; font-weight: 800; }
.mtt-blinds { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 8px; }
.mtt-blinds small { display: block; color: #9b93ad; font-size: 12px; }
.mtt-blinds b { display: block; margin-top: 8px; }
.mtt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; padding: 12px; font-size: 12px; color: #ddd; }
.mtt-info img { width: 12px; height: 12px; vertical-align: -2px; }
.mtt-struct { display: flex; width: calc(100% - 24px); justify-content: space-between; align-items: center; border: 0; color: #fff; padding: 14px; font-size: 14px; }
.mtt-struct img { width: 8px; height: 14px; object-fit: contain; mix-blend-mode: screen; }
.mtt-levels { margin: 0 12px 8px; background: #1b1430; border-radius: 12px; padding: 6px 12px; }
.mtt-levels div { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; padding: 7px 0; color: #ddd; font-size: 12px; }
.mtt-table { padding: 8px 10px 10px; }
.mtt-table .hd, .mtt-table .row { display: grid; grid-template-columns: 36px 1fr 40px 56px; gap: 6px; align-items: center; padding: 8px 2px; font-size: 12px; }
.mtt-table .hd { color: #9b93ad; }
.mtt-table.prize .hd, .mtt-table.prize .row { grid-template-columns: 48px 1fr; }
.mtt-table.desks .hd, .mtt-table.desks .row { grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.mtt-table .who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mtt-table .who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mtt-table .rk.r1 { color: #ffd166; }
.mtt-table .rk.r2 { color: #c9b7ff; }
.mtt-table .rk.r3 { color: #8ec5ff; }
.mtt-table .fine { margin: 8px 2px 0; color: #9b93ad; font-size: 11px; }
.mtt-table .empty.tall { min-height: 220px; }
.mtt-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px calc(10px + var(--safe-b)); }
.mtt-join { flex: 1; height: 44px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; color: #1b1430; background: linear-gradient(90deg, #9b6bff, #5dffe0); }
.mtt-join.off { background: #222a34; color: #e4e8ee; }
.mtt-share { width: 64px; border: 0; background: none; color: #c5ccd6; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; }
.mtt-share img { width: 36px; height: 36px; object-fit: contain; }
.overview { position: relative; }
.overview-menu { position: absolute; right: 16px; top: 36px; background: #120e1c; border-radius: 10px; overflow: hidden; z-index: 3; }
.overview-menu button { display: block; width: 120px; text-align: left; background: none; border: 0; color: #fff; padding: 10px 12px; }
.overview-menu button:hover, .overview .drop { cursor: pointer; }
.lang-pop { position: absolute; right: 12px; top: 58px; z-index: 5; background: #120e1c; border-radius: 10px; overflow: hidden; }
.lang-pop button { display: flex; align-items: center; gap: 6px; width: 104px; background: none; border: 0; color: #fff; padding: 10px 10px; text-align: left; }
.lang-pop .flag { width: 18px; height: 12px; object-fit: cover; flex: none; border-radius: 1px; }
.notice-card b { display: block; margin-bottom: 6px; }
.notice-card p { margin: 0; color: #c8c0da; font-size: 13px; }
.screen.cc { position: absolute; inset: 0; }
.cut-room .nl { font-size: 13px; line-height: 1; font-weight: 700; color: #f4f4f6; }
.cut-room .blinds { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.cut-room .blinds img, .cut-room .buy img { width: 14px; height: 14px; }
.cut-room .buy { text-align: center; color: #c9c2d6; font-size: 13px; line-height: 1.05; }
.cut-room .buy b { display: flex; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 13px; margin-top: 0; }
.cut-room .ring {
  width: 38px; height: 38px; font-size: 12px;
}
.ring {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: url("res/ui/circle_progress_bg.png") center / contain no-repeat; font-size: 11px; font-weight: 700;
}
.cut-mtt {
  margin: 8px 12px; min-height: 72px; display: flex; align-items: center; gap: 10px; color: #fff; padding: 8px 12px;
  background: url("res/ui/mtt_room_bg.png") center / 100% 100% no-repeat;
}
.cut-mtt img { width: 36px; height: 42px; object-fit: contain; }
.cut-mtt b { display: block; font-size: 15px; }
.cut-mtt span, .cut-mtt .buy { color: #c8c0da; font-size: 12px; }
/* main_bottom_bar 687x137 @ x≈31.5, top y=167 from bottom; tab icons top y=122; club bg top y=155 */
.cut-dock {
  align-self: center;
  width: calc(687 / 750 * 100cqw);
  height: calc(137 / 750 * 100cqw);
  margin: 0 0 calc(30 / 750 * 100cqw + var(--safe-b));
  flex: none; position: relative;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0;
  background: url("res/ui/main_bottom_bar.png") center / 100% 100% no-repeat;
}
.cut-dock > button {
  flex: 1; border: 0; background: none; color: #8d879c;
  font-size: calc(22 / 750 * 100cqw); line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 0; padding: 0 0 calc(20 / 750 * 100cqw); position: relative;
}
.cut-dock > button.on { color: #fff; }
.cut-dock > button > img {
  width: calc(42 / 750 * 100cqw); height: calc(42 / 750 * 100cqw);
  object-fit: contain; margin-bottom: calc(6 / 750 * 100cqw);
}
/* btnClub: bg 108x74, top 12 design-px below bar top (y=155 vs bar 167); ring @ (33,17) */
.cut-club { overflow: visible; }
.cut-club .orb {
  position: absolute; left: 50%; top: calc(12 / 750 * 100cqw);
  transform: translateX(-50%);
  width: calc(108 / 750 * 100cqw); height: calc(74 / 750 * 100cqw);
  pointer-events: none;
}
.cut-club .orb img { position: absolute; display: block; object-fit: fill; transform: none; max-width: none; }
.cut-club .orb img:first-child { left: 0; top: 0; width: 100%; height: 100%; }
.cut-club .orb img:last-child {
  left: calc(33 / 108 * 100%); top: calc(17 / 74 * 100%);
  width: calc(41 / 108 * 100%); height: calc(40 / 74 * 100%);
}
.cut-club > span:last-child { position: relative; z-index: 1; }
.cut-panel { margin: 10px 12px; padding: 4px 12px; background: #1b1430; border-radius: 16px; }
.cut-friend { position: relative; margin: 0 12px 8px; min-height: 70px; }
.cut-friend > img { width: 100%; height: 70px; object-fit: fill; display: block; }
.cut-friend .txt { position: absolute; left: 89px; top: 15px; color: #fff; }
.cut-friend h3 { margin: 0; font-size: 15px; }
.cut-friend p { margin: 3px 0 0; font-size: 10px; }
.cut-friend .acts { position: absolute; right: 12px; top: 7px; display: flex; flex-direction: column; gap: 4px; }
.cut-friend .acts button {
  border: 0; height: 24px; min-width: 54px; color: #333; font-weight: 700; font-size: 11px;
  background: url("res/ui/btn_join_new.png") center / 100% 100% no-repeat;
}
.cut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.cut-grid.three { grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 10px; padding: 10px 16px 16px; align-items: start; }
.cut-grid.three .cut-tile {
  background: none; border-radius: 0; min-height: 0; height: auto; padding: 0; gap: 6px; justify-content: flex-start;
}
.cut-tile-face {
  width: 100%; aspect-ratio: 1; position: relative; display: grid; place-items: center;
  background: url("res/ui/more_item_bg.png") center / 100% 100% no-repeat;
}
.cut-tile-face .ico { width: 40px; height: 40px; object-fit: contain; }
.cut-tile .out { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; object-fit: contain; mix-blend-mode: screen; }
.cut-tile .cap { font-size: 12px; line-height: 1.2; color: #e8e4f0; }
.cut-tile {
  border: 0; color: #fff; background: #241833 url("res/ui/more_item_bg.png") center / 100% 100% no-repeat; border-radius: 16px; min-height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px;
}
.cut-tile img { width: 64px; height: 54px; object-fit: contain; }
.page-club .cut-tile { min-height: 74px; height: 74px; gap: 2px; }
.page-club .cut-tile img { width: 58px; height: 43px; }
.page-club .club-sec { font-size: 11px; }
.page-club .club-empty { font-size: 11px; padding: 16px 10px 8px; }
.cut-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px 0; }
.cut-bal {
  border: 0; min-width: 0; width: 100%; text-align: left; color: #fff; aspect-ratio: 192 / 172; border-radius: 12px; padding: 0; position: relative;
  background-color: transparent; background-size: 100% 100%; background-repeat: no-repeat;
}
.cut-bal > img { position: absolute; left: 12px; top: 20px; width: 34px; height: 34px; object-fit: contain; }
.cut-bal small { position: absolute; left: 9px; top: 47%; display: block; font-size: 10px; font-weight: 700; }
.cut-bal span { position: absolute; left: 9px; top: 65%; display: block; font-size: 14px; font-weight: 800; }
.cut-bal b { position: absolute; left: 9px; top: 82%; display: block; color: #42e49e; font-size: 14px; }
.page-wallet .cut-balances { padding-top: 0; }
.page-wallet .cut-ops { margin-top: 4px; }
.page-wallet .overview { min-height: 270px; }
.cut-ops {
  margin: 10px 12px 0; background: #1c1630; border-radius: 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 0;
}
.cut-ops button { background: none; border: 0; color: #eee; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cut-ops img { width: 22px; height: 22px; object-fit: contain; }
.cut-brand { position: relative; margin: 0 16px 2px; min-height: 0; overflow: hidden; }
.cut-brand > img { width: 100%; height: auto; border-radius: 18px; display: block; }
.cut-brand div { position: absolute; left: 10px; right: 100px; top: 9px; color: #fff; }
.cut-brand h3 { margin: 0 0 5px; font-size: 12px; }
.cut-brand p { margin: 0; font-size: 9px; line-height: 1.25; }
.cut-brand button {
  position: absolute; left: 45px; right: 45px; bottom: 7px; margin: 0; height: 17px; border: 0;
  background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; font-size: 9px;
}
.pay { padding-bottom: 20px; }
.pay-hero { width: calc(100% - 24px); margin: 12px; min-height: 120px; }
.pay-box { padding: 14px; background: #1b1430; border-radius: 16px; }
.pay-box label { display: block; color: #b7b0c9; font-size: 12px; margin: 8px 0; }
.pay-box input {
  width: 100%; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); color: #fff;
  border-radius: 12px; padding: 12px; font-size: 16px;
}
.pay-box .primary { margin-top: 14px; }

.sheet.pop.buy-win {
  position: relative; box-sizing: border-box; flex: none; width: 84.19cqw; height: 87.91cqw; padding: 0;
  border: 0; border-radius: 3.72cqw; background: #2b2540; overflow: visible; color: #fff; text-align: center;
}
.buy-x {
  position: absolute; right: 0; top: 0; width: 7.21cqw; height: 7.21cqw; border: 0; padding: 0;
  background: url("res/ui/lang_close.png") center / contain no-repeat;
}
.buy-clock { position: absolute; left: 2.79cqw; top: 3.72cqw; width: 3.49cqw; height: 3.49cqw; object-fit: contain; }
.buy-bal { position: absolute; left: 8.37cqw; top: 2.79cqw; margin: 0; font-size: 3.49cqw; }
.buy-auto { position: absolute; left: 3.72cqw; right: 3.72cqw; top: 12.09cqw; display: flex; align-items: center; gap: .93cqw; font-size: 3.26cqw; white-space: nowrap; }
.buy-faq { width: 4.19cqw; height: 4.19cqw; flex: none; border: 0; padding: 0; background: url("res/ui/buy_faq.png") center / contain no-repeat; }
.buy-pick {
  margin-left: auto; width: 19.53cqw; height: 6.05cqw; flex: none; border: 0; padding: 0 1.86cqw; color: #fff; font-size: 3.02cqw;
  display: flex; align-items: center; justify-content: space-between;
  background: url("res/ui/lang_btn_off.png") center / 100% 100% no-repeat;
}
.buy-pick img { width: 2.56cqw; height: 1.4cqw; mix-blend-mode: screen; }
.buy-menu {
  position: absolute; right: 3.72cqw; top: 18.6cqw; z-index: 3; width: 19.53cqw; max-height: 39.07cqw; overflow: auto;
  background: #171322; border-radius: 1.86cqw;
}
.buy-menu button { display: block; width: 100%; height: 6.51cqw; border: 0; background: none; color: #fff; font-size: 3.02cqw; }
.buy-menu button.on { color: #7ef3d4; }
.buy-tip {
  position: absolute; left: 3.72cqw; top: 18.6cqw; z-index: 4; width: 58.14cqw; padding: 1.4cqw 1.86cqw;
  background: #14121c; border-radius: 1.86cqw; color: #fff; font-size: 2.79cqw; line-height: 1.35; text-align: left;
}
.buy-label { position: absolute; left: 0; right: 0; top: 21.4cqw; margin: 0; font-size: 3.26cqw; }
.buy-chip {
  position: absolute; left: 50%; top: 26.51cqw; transform: translateX(-50%);
  min-width: 28.37cqw; height: 8.14cqw; padding: 0 3.72cqw; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: url("res/ui/buy_amt.png") center / 100% 100% no-repeat;
  color: #f2d48a; font-size: 5.12cqw; font-weight: 700;
}
.buy-blind { position: absolute; left: 0; right: 0; top: 36.28cqw; margin: 0; display: flex; align-items: center; justify-content: center; gap: .93cqw; font-size: 3.26cqw; }
.buy-blind img { width: 3.26cqw; height: 3.26cqw; object-fit: contain; }
.buy-win .buy-ends { position: absolute; left: 14.42cqw; right: 14.42cqw; top: 41.86cqw; margin: 0; color: #fff; font-size: 3.02cqw; }
.buy-row { position: absolute; left: 1.86cqw; right: 1.86cqw; top: 47.44cqw; display: flex; align-items: center; gap: 1.4cqw; }
.buy-minus, .buy-plus { width: 9.3cqw; height: 9.3cqw; border: 0; padding: 0; flex: none; background: center / contain no-repeat; }
.buy-minus { background-image: url("res/ui/buy_minus.png"); }
.buy-plus { background-image: url("res/ui/buy_plus.png"); }
.buy-track { position: relative; flex: 1; height: 1.86cqw; background: url("res/ui/buy_track.png") center / 100% 100% no-repeat; }
.buy-bar { position: absolute; left: 0; top: 0; bottom: 0; background: url("res/ui/buy_bar.png") left center / auto 100% no-repeat; pointer-events: none; border-radius: 1.86cqw; }
.buy-grip {
  position: absolute; top: 50%; width: 11.16cqw; height: 6.98cqw; transform: translateY(-50%);
  background: url("res/ui/buy_grip.png") center / contain no-repeat; pointer-events: none; transform: translateY(-50%);
}
.buy-track input { position: absolute; left: 0; right: 0; top: -3.26cqw; height: 8.37cqw; margin: 0; opacity: 0; z-index: 2; }
.buy-note { position: absolute; left: 5.58cqw; right: 5.58cqw; top: 60cqw; margin: 0; color: #909090; font-size: 3.02cqw; line-height: 1.35; }
.buy-go {
  position: absolute; left: 50%; bottom: 5.12cqw; transform: translateX(-50%);
  width: 32.09cqw; height: 9.53cqw; border: 0; color: #fff; font-size: 3.72cqw;
  background: url("res/ui/set_logout.png") center / 100% 100% no-repeat;
}
.share-mask { align-items: flex-end; padding: 0; }
.share-dim { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; }
.sheet.share-pop {
  position: relative; z-index: 1; width: 92.5cqw; height: 45.5cqw; margin: 0 auto 3.4cqw; padding: 2.33cqw 0 0;
  border: 0; border-radius: 4.19cqw 4.19cqw 0 0; background: #2b2540; box-sizing: border-box;
}
.share-pop h3 { margin: 0; text-align: center; font-size: 3.72cqw; font-weight: 600; }
.share-pop .share-ways { display: flex; justify-content: center; gap: 24.8cqw; margin-top: 7.8cqw; }
.share-pop .share-ways button {
  width: 18.8cqw; height: auto; flex: none; border: 0; border-radius: 0; background: none; color: #fff;
  font-size: 3.49cqw; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 1.86cqw;
}
.share-pop .share-ways img { width: 15.7cqw; height: 15.7cqw; display: block; }

.sheet.pop.pinfo {
  position: relative; box-sizing: border-box; flex: none; width: 362px; height: 438px; padding: 0;
  border: 0; border-radius: 16px; background: #2b2540; overflow: hidden; color: #fff;
  transform: scale(.89);
}
@media (max-width: 340px) { .sheet.pop.pinfo { transform: scale(.8); } }
.pinfo-x {
  position: absolute; right: 0; top: 0; z-index: 2; width: 31px; height: 31px; border: 0; padding: 0;
  background: url("res/ui/pinfo_close.png") center / contain no-repeat;
}
.pinfo-ava { position: absolute; left: 6px; top: 11px; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; }
.pinfo-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinfo-name {
  position: absolute; left: 77px; top: 12px; width: 80px; margin: 0;
  font-size: 18px; font-weight: 700; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pinfo-vip { position: absolute; left: 161px; top: 16px; width: 38px; height: 16px; object-fit: contain; }
.pinfo-mute {
  position: absolute; left: 212px; top: 12px; width: 29px; height: 29px; border: 0; padding: 0;
  background: url("res/ui/pinfo_mute.png") center / contain no-repeat;
}
.pinfo-mute.on { background-image: url("res/ui/pinfo_muted.png"); }
.pinfo-id {
  position: absolute; left: 73px; top: 40px; border: 0; padding: 0; background: none; color: #fff;
  font-size: 13px; display: flex; align-items: center; gap: 4px;
}
.pinfo-id img { width: 12px; height: 12px; object-fit: contain; }
.pinfo-note { position: absolute; left: 78px; top: 60px; display: flex; align-items: center; gap: 4px; max-width: 200px; font-size: 14px; }
.pinfo-note b { font-weight: 400; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo-note b.ph { color: #9a95a8; }
.pinfo-note button {
  width: 23px; height: 23px; border: 0; padding: 0; flex: 0 0 auto;
  background: url("res/ui/pinfo_edit.png") center / contain no-repeat;
}
.pinfo-meta { position: absolute; left: 80px; top: 80px; display: flex; align-items: center; gap: 8px; }
.pinfo-meta img:first-child { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.pinfo-meta img:last-child { width: 13px; height: 15px; object-fit: contain; }
.pinfo-line { position: absolute; left: 17px; right: 17px; top: 107px; height: 1px; background: rgba(255,255,255,.12); }
.pinfo-stats { position: absolute; left: 16px; right: 16px; top: 116px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.pinfo-stats span { color: #fff; font-size: 14px; }
.pinfo-stats b { margin-top: 8px; font-size: 15px; font-weight: 700; }
.pinfo-colors { position: absolute; left: 22px; right: 16px; top: 169px; display: flex; justify-content: space-between; }
.pinfo-colors button { width: 31px; height: 31px; border: 0; padding: 0; border-radius: 50%; background: center / contain no-repeat; }
.pinfo-colors button.on { box-shadow: 0 0 0 2px #fff; }
.pinfo-ani {
  position: absolute; left: 12px; right: 12px; top: 208px; bottom: 28px; overflow: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; align-content: start;
}
.pinfo-ani button { border: 0; background: none; color: #fff; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pinfo-ani img { width: 48px; height: 42px; object-fit: contain; }
.pinfo-ani em { font-style: normal; font-size: 11px; color: #efeaf8; display: flex; align-items: center; gap: 2px; }
.pinfo-ani em img { width: 12px; height: 12px; }
.pinfo-bal { position: absolute; right: 14px; bottom: 6px; font-size: 13px; color: #fff; }
.pinfo.self .pinfo-id { left: auto; right: 36px; top: 4px; }
.pinfo.self .pinfo-line { top: 82px; }
.pinfo.self .pinfo-stats { top: 90px; }
.pinfo.self .pinfo-ani { top: 140px; }
.sheet.pop.pinfo-remark {
  position: relative; box-sizing: border-box; flex: none; width: 312px; height: 312px; padding: 12px 0 0;
  border: 0; border-radius: 16px; background: #2b2540; display: flex; flex-direction: column; align-items: center; color: #fff;
}
.pinfo-remark h3 { margin: 0; font-size: 16px; font-weight: 700; }
.pinfo-rava { width: 63px; height: 63px; border-radius: 50%; object-fit: cover; margin-top: 18px; }
.pinfo-ruid { margin: 10px 0 0; font-size: 13px; }
.pinfo-remark > b { margin-top: 2px; font-size: 16px; }
.pinfo-remark input {
  width: 192px; height: 36px; margin-top: 14px; border: 0; border-radius: 8px;
  background: #171322; color: #fff; text-align: center; font-size: 14px;
}
.pinfo-remark input::placeholder { color: #595959; }
.pinfo-rok {
  width: 156px; height: 42px; margin-top: 16px; border: 0; color: #fff; font-size: 16px;
  background: url("res/ui/set_logout.png") center / 100% 100% no-repeat;
}
.rec-mask { align-items: stretch; justify-content: flex-end; padding: 0; background: transparent; }
.rec-dim { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; }
.rec-side {
  position: relative; z-index: 1; width: 78%; height: 100%; box-sizing: border-box;
  background: #2b2540; color: #fff; display: flex; flex-direction: column;
}
.rec-side h3 { margin: 18px 44px 0; text-align: center; font-size: 16px; font-weight: 600; }
.rec-guard { position: absolute; right: 14px; top: 14px; width: 29px; height: 29px; border: 0; padding: 0; background: none; }
.rec-guard img { width: 29px; height: 29px; display: block; }
.rec-info {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 6px;
  margin: 14px 14px 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #fff;
}
.rec-id { border: 0; background: none; color: #fff; padding: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; text-align: left; }
.rec-id img { width: 14px; height: 14px; object-fit: contain; }
.rec-time { text-align: right; color: #d9d3e6; }
.rec-pot { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.rec-pot img { width: 16px; height: 14px; object-fit: contain; }
.rec-pot b { font-weight: 600; }
.rec-list { flex: 1; overflow: auto; padding: 4px 6px 8px; }
.rec-row { display: flex; align-items: flex-start; gap: 4px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rec-ava { width: 48px; flex: none; text-align: center; position: relative; }
.rec-ava img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.rec-ava span { display: block; margin-top: 2px; font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-ava span.me { color: #75efa6; }
.rec-ava i {
  position: absolute; left: 0; top: 0; font-style: normal; font-size: 9px; line-height: 12px;
  background: #111; color: #fff; border-radius: 7px; padding: 0 3px;
}
.rec-cards { flex: 1; display: flex; gap: 4px; min-width: 0; }
.rec-holes, .rec-board { display: flex; flex-wrap: wrap; gap: 2px; align-content: flex-start; }
.rec-board { flex-wrap: nowrap; }
.rec-cards .card.mini { width: 24px; height: 34px; }
.rec-holes em { flex-basis: 100%; font-style: normal; font-size: 11px; color: #e7c27a; line-height: 14px; }
.rec-row > b { margin-left: auto; font-size: 13px; white-space: nowrap; padding-top: 10px; }
.rec-act { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.rec-act span { color: #d9d3e6; }
.rec-bottom { flex: none; padding: 8px 14px 16px; }
.rec-tools { display: flex; align-items: center; }
.rec-tabs { display: flex; width: 124px; height: 29px; border-radius: 8px; overflow: hidden; background: #1a1628; }
.rec-tabs button { flex: 1; border: 0; background: transparent; color: #fff; font-size: 13px; }
.rec-tabs button.on { background: #3d355c; }
.rec-star { margin-left: auto; width: 22px; height: 22px; border: 0; padding: 0; background: none; }
.rec-star img { width: 18px; height: 18px; display: block; }
.rec-star:not(.on) img { filter: grayscale(1) brightness(2); }
.rec-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.rec-nav button { background: none; border: 0; padding: 2px; }
.rec-nav img { width: 17px; height: 24px; object-fit: contain; display: block; }
.rec-nav span { min-width: 48px; text-align: center; font-size: 14px; }
.sheet.pop.name-gate-box {
  flex: none; width: 300px; padding: 22px 18px 18px; border: 0; border-radius: 16px;
  background: #2b2540; text-align: center;
}
.name-gate-box h3 { margin: 0 0 16px; font-size: 18px; }
.name-gate-box input {
  width: 100%; height: 42px; border: 0; border-radius: 10px; background: #171322;
  color: #fff; text-align: center; font-size: 15px; margin-bottom: 14px;
}
.name-gate-box .primary { width: 100%; margin: 0; }

/* left siders: MenuSider 600, InfoSider/CSRP 650 @ design 750 */
.sider-mask { align-items: stretch; justify-content: flex-start; padding: 0; background: transparent; }
.sider-mask.left { justify-content: flex-start; }
.sider-mask.right { justify-content: flex-end; }
.sider-dim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.35); padding: 0; }
.menu-side, .info-side, .csrp-side {
  position: relative; z-index: 1; height: 100%; box-sizing: border-box;
  background: rgba(32, 26, 48, .96); color: #fff; display: flex; flex-direction: column;
}
.menu-side { width: calc(600 / 750 * 100%); }
.info-side, .csrp-side { width: 78%; }
.ms-head { position: relative; padding: 8.5333cqw 4.6667cqw 2.8cqw; min-height: 24cqw; }
.ms-ava {
  display: block; width: 11.2cqw; height: 11.2cqw;
  border-radius: 50%; overflow: hidden; border: .47cqw solid rgba(255,255,255,.18);
}
.ms-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-name {
  position: absolute; left: 18.9333cqw; top: 9.0667cqw;
  font-size: 4.2667cqw; font-weight: 700; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-uid {
  position: absolute; left: 18.1333cqw; top: 15.3333cqw;
  border: 0; background: none; color: #d9d3e6; padding: 0; display: inline-flex; align-items: center; gap: 1.0667cqw; font-size: 3.4667cqw;
}
.ms-uid i { font-style: normal; color: #9a95a8; }
.ms-uid img { width: 3.2cqw; height: 3.2cqw; object-fit: contain; }
.ms-line { display: block; height: 1px; margin: 2.1333cqw 2.6667cqw 0; background: rgba(255,255,255,.12); }
.ms-list { flex: 1; overflow: auto; padding: 2.6667cqw 0 5.3333cqw; scrollbar-width: none; }
.ms-list::-webkit-scrollbar { display: none; }
.ms-row {
  width: 100%; height: 13.3333cqw; flex: none; border: 0; background: none; color: #fff;
  display: flex; align-items: center; gap: 3.9333cqw; padding: 0 5.5cqw; text-align: left;
}
.ms-ico { width: 7.2cqw; height: 7.2cqw; object-fit: contain; flex: none; }
.ms-lab { flex: 1; font-size: 3.7333cqw; font-weight: 500; }
.ms-chev { width: 4.8cqw; height: 4.8cqw; object-fit: contain; opacity: .7; }
.ms-row:disabled { opacity: .42; cursor: default; }
.menu-confirm { max-width: 320px; text-align: center; }
.menu-confirm p { margin: 20px 0 24px; font-size: 14px; line-height: 1.5; }
.menu-confirm-actions { display: flex; gap: 10px; }
.menu-confirm-actions button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: #3a3454; color: #fff; }
.menu-confirm-actions button:last-child { background: linear-gradient(90deg, #8b59f6, #65ddba); }
@media (min-aspect-ratio: 3/5) {
  .menu-side { width: 480px; }
  .ms-head { padding: 51px 28px 17px; min-height: 144px; }
  .ms-ava { width: 67px; height: 67px; border-width: 3px; }
  .ms-name { left: 114px; top: 54px; font-size: 26px; }
  .ms-uid { left: 109px; top: 92px; gap: 6px; font-size: 21px; }
  .ms-uid img { width: 19px; height: 19px; }
  .ms-line { margin: 13px 16px 0; }
  .ms-list { padding: 16px 0 32px; }
  .ms-row { height: 80px; gap: 24px; padding: 0 33px; }
  .ms-ico { width: 43px; height: 43px; }
  .ms-lab { font-size: 22px; }
  .ms-chev { width: 29px; height: 29px; }
}

.info-side h3 { margin: 18px 16px 8px; font-size: 18px; font-weight: 700; }
.info-list { flex: 1; overflow: auto; padding: 0 0 8px; }
.info-row {
  position: relative; display: grid;
  grid-template-columns: calc(100 / 750 * 100cqw) 1fr auto;
  grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px;
  width: 100%; min-height: calc(108 / 750 * 100cqw); border: 0; background: transparent; color: #fff;
  padding: 10px 12px; text-align: left; align-items: center;
}
.info-ava {
  grid-row: 1 / 3; width: calc(80 / 750 * 100cqw); height: calc(80 / 750 * 100cqw);
  border-radius: 50%; object-fit: cover;
}
.info-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-profit { font-size: 16px; font-weight: 700; font-style: normal; justify-self: end; }
.info-profit.pos { color: #3dcb7a; }
.info-profit.neg { color: #ff5d6c; }
.info-meta { grid-column: 2 / 3; color: #b7b0c9; font-size: 12px; }
.info-buy { grid-column: 3 / 4; color: #b7b0c9; font-size: 12px; justify-self: end; }
.info-watch { flex: none; padding: 5px 8px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.info-watch h4 { margin: 0 0 5px; font-size: 12px; font-weight: 600; color: #efeaf8; }
.info-lookers { min-height: 64px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.info-looker { flex: 0 0 38px; width: 38px; text-align: center; }
.info-looker img, .info-looker span { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #595466; }
.info-looker small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; font-size: 8px; margin-top: 2px; }
.info-looker.vacant span::after { content: ""; display: block; width: 14px; height: 14px; margin: 11px auto 0; border-radius: 50%; background: #9993a4; box-shadow: 0 10px 0 5px #9993a4; }
.info-foot {
  flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  padding: 10px 14px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #c8c0da;
}
.info-foot-cell { display: flex; justify-content: space-between; gap: 8px; }
.info-foot-cell b { color: #fff; font-weight: 600; }

.csrp-side { padding-bottom: 12px; }
.csrp-side h3 {
  margin: 18px 48px 8px 16px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.csrp-side h3 img { width: 22px; height: 22px; object-fit: contain; }
.csrp-x {
  position: absolute; right: 12px; top: 14px; width: 32px; height: 32px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; line-height: 1;
}
.csrp-algo-panel, .csrp-explain { flex: 1; overflow: auto; padding: 8px 14px 12px; }
.csrp-term {
  background: #0b0b0f; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}
.csrp-term-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1a1a22; color: #c8c0da; font-size: 12px;
}
.csrp-term-bar i { width: 8px; height: 8px; border-radius: 50%; display: block; background: #ff5f57; }
.csrp-term-bar i:nth-child(2) { background: #febc2e; }
.csrp-term-bar i:nth-child(3) { background: #28c840; }
.csrp-term-bar span { margin-left: 6px; }
.csrp-term pre {
  margin: 0; padding: 10px 12px 14px; color: #3dcb7a; font-size: 11px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; font-family: Consolas, Monaco, monospace;
}
.csrp-algo-panel h4 { margin: 14px 0 8px; font-size: 15px; }
.csrp-hand { margin: 0 0 10px; color: #d9d3e6; font-size: 13px; }
.csrp-stage { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; color: #c8c0da; }
.csrp-cards { display: flex; gap: 4px; align-items: center; }
.csrp-cards .card.mini { width: 28px; height: 40px; }
.csrp-empty { color: #6d6680; }
.csrp-link {
  display: block; width: 100%; margin-top: 14px; border: 0; background: none;
  color: #9d86ff; text-decoration: underline; font-size: 13px; text-align: left; padding: 0;
}
.csrp-explain .csrp-lead { font-size: 14px; font-weight: 700; }
.csrp-explain p { margin: 0 0 10px; color: #ddd; font-size: 13px; line-height: 1.45; }
.csrp-btns {
  flex: none; display: flex; gap: 12px; padding: 8px 14px 10px;
}
.csrp-btns button {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: #221a36; color: #fff; font-size: 14px; font-weight: 700;
}
.csrp-btns button.on, .csrp-btns .csrp-algo.on {
  border: 0; background: linear-gradient(90deg, #8e52f6 0%, #75efa6 100%); color: #1b1430;
}
.csrp-btns .csrp-detail.on { border: 1px solid rgba(255,255,255,.35); background: #2b2540; color: #fff; }

/* Table overlays use the same 430-wide reference scale as the table controls. */
.rules-sheet {
  position: relative; box-sizing: border-box; flex: none; width: 93cqw; height: 149cqw; max-height: calc(100% - 24px);
  padding: 3.7cqw; overflow: auto; border: 0; border-radius: 2.8cqw;
  background: #2b2540; color: #fff;
}
.rules-mask { align-items: center; background: rgba(0,0,0,.45); }
.rules-sheet h3 { width: 100%; margin: 0 0 4cqw; text-align: center; font-size: 3.7cqw; }
.rules-sheet .sheet-head .icon-btn { position: absolute; right: 0; top: 0; width: 8.37cqw; height: 8.37cqw; border-radius: 50%; background: #26223b; color: #9ccc48; font-size: 5cqw; }
.rules-sheet .pills { gap: 1.86cqw; flex-wrap: nowrap; margin-bottom: 5cqw; }
.rules-sheet .pills button {
  flex: 1; min-width: 0; padding: 2.1cqw 1cqw; border: 0; border-radius: 999px;
  background: transparent; color: #b8b0c8; font-size: 3.1cqw; white-space: nowrap;
}
.rules-sheet .pills button.on { background: linear-gradient(90deg,#8d5af2,#63d5ac); color: #fff; }
.rules-sheet p { margin: 0 0 3.5cqw; font-size: 2.85cqw; line-height: 1.45; }

.info-side h3 { margin: 4.19cqw 3.72cqw 1.86cqw; font-size: 4.19cqw; }
.info-list { padding-bottom: 1.86cqw; }
.info-row {
  grid-template-columns: 10.7cqw 1fr auto; column-gap: 1.86cqw; row-gap: .93cqw;
  min-height: 14.4cqw; padding: 2.33cqw 2.79cqw;
}
.info-ava { width: 8.37cqw; height: 8.37cqw; }
.info-name { font-size: 3.49cqw; }
.info-profit { font-size: 3.72cqw; }
.info-meta, .info-buy { font-size: 2.79cqw; }
.info-watch { padding: 1.4cqw 2.79cqw .93cqw; }
.info-watch h4 { margin-bottom: 1.4cqw; font-size: 3.26cqw; }
.info-lookers { min-height: 9.3cqw; gap: 1.86cqw; }
.info-foot { gap: 1.4cqw 2.33cqw; padding: 2.33cqw 3.26cqw 3.72cqw; font-size: 2.79cqw; }
.info-foot-cell { gap: 1.86cqw; }

.rec-side h3 { margin: 4.19cqw 10.23cqw 0; font-size: 3.72cqw; }
.rec-guard { right: 3.26cqw; top: 3.26cqw; width: 6.74cqw; height: 6.74cqw; }
.rec-guard img { width: 100%; height: 100%; }
.rec-info {
  column-gap: 1.86cqw; row-gap: 1.4cqw; margin: 3.26cqw 3.26cqw 0;
  padding-bottom: 2.33cqw; font-size: 3.02cqw;
}
.rec-id { gap: 1.4cqw; font-size: 3.02cqw; }
.rec-id img { width: 3.26cqw; height: 3.26cqw; }
.rec-pot { gap: .93cqw; }
.rec-pot img { width: 3.72cqw; height: 3.26cqw; }
.rec-list { padding: .93cqw 1.4cqw 1.86cqw; }
.rec-row { gap: .93cqw; padding: 1.4cqw 0; }
.rec-ava { width: 11.16cqw; }
.rec-ava img { width: 9.77cqw; height: 9.77cqw; }
.rec-ava span { margin-top: .47cqw; font-size: 2.56cqw; line-height: 3.26cqw; }
.rec-ava i { font-size: 2.09cqw; line-height: 2.79cqw; border-radius: 1.63cqw; padding: 0 .7cqw; }
.rec-cards { gap: .93cqw; }
.rec-holes, .rec-board { gap: .47cqw; }
.rec-cards .card.mini { width: 5.58cqw; height: 7.91cqw; }
.rec-holes em { font-size: 2.56cqw; line-height: 3.26cqw; }
.rec-row > b { font-size: 3.02cqw; padding-top: 2.33cqw; }
.rec-act { gap: 1.86cqw; padding: 1.86cqw .93cqw; font-size: 3.02cqw; }
.rec-bottom { padding: 1.86cqw 3.26cqw 3.72cqw; }
.rec-tabs { width: 28.84cqw; height: 6.74cqw; border-radius: 1.86cqw; }
.rec-tabs button { font-size: 3.02cqw; }
.rec-star { width: 5.12cqw; height: 5.12cqw; }
.rec-star img { width: 4.19cqw; height: 4.19cqw; }
.rec-nav { margin-top: 2.79cqw; }
.rec-nav button { padding: .47cqw; }
.rec-nav img { width: 3.95cqw; height: 5.58cqw; }
.rec-nav span { min-width: 11.16cqw; font-size: 3.26cqw; }
