/* =====================================================================
   Table v5 鈥?UITexas.prefab driven
   The whole table page is the client's UITexas.prefab: top bar, bottom
   panel, pot, community cards, felt text and the action buttons are all
   prefab nodes placed on the 1242x2208 canvas (--u = artW / 1242) and
   rendered by core/layout.js, exactly like #/screen/UITexas.
   Only the desk texture, the hero hole cards and the H5 chrome (status
   pillow, join mask, settle card, menu sheets) are still styled here.
   ===================================================================== */

.table-screen {
  background: #090a10;
}

.table-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-image: url("../../assets/img/Texture/texture_bg-02.webp");
  background-position: center;
  background-repeat: no-repeat;
}

.table-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.table-art {
  position: absolute;
  pointer-events: none;
}

/* ----------------------------------------------------------------- seats */
/* Occupied seats are the client prefab (prefabSeat.js) and position their own nodes,
   so .seat only provides the slot box. Empty chairs keep the old flex layout. */
.seat {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  /* reset the legacy .seat box (app.css) 鈥?the prefab places its nodes itself */
  width: auto;
  max-width: none;
  transform: none;
  display: block;
  gap: 0;
}

.seat.empty {
  width: clamp(42px, calc(var(--s) * 0.088), 84px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.seat-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 62%),
    #0e131c;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.seat-avatar img.av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.seat.empty .seat-avatar {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(248, 191, 121, 0.32);
  box-shadow: none;
  color: rgba(248, 191, 121, 0.5);
  font-size: 20px;
}

/* ---------------------------------------------------------------- cards */
/* Printed-card feel: the client art is kept pixel-exact and gets the things a real card
   has 鈥?a white stock body, rounded corners, a hairline printed edge, a soft contact
   shadow and a light sheen. Nothing here changes the layout, only the material. */
.hand {
  position: absolute;
  display: flex;
  gap: clamp(6px, 1.6vw, 10px);
  z-index: 8;
  pointer-events: none;
}

.hand .card {
  position: relative;
  display: block;
  width: clamp(34px, calc(var(--s, 300px) * 0.14), 50px);
  aspect-ratio: 0.72;
  border-radius: 6.5% / 5%;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 5px 12px rgba(0, 0, 0, 0.42),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.hand .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(157deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 26%);
  mix-blend-mode: soft-light;
}

.hand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
  rotate: 0deg !important;
}

/* the back is already a printed pattern: no sheen, no darkening */
.hand .card.back::after { display: none; }

.hand img.back { filter: none; }

/* community cards: same material, drawn as a background on the prefab card slots */
.pcard {
  border-radius: 6.5% / 5%;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.26);
}

.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(157deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 26%);
  mix-blend-mode: soft-light;
}

/* an undealt slot must read as an empty place on the felt, never as a blank white card */
.pcard:not(.dealt-card) {
  background-color: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pcard:not(.dealt-card)::after { display: none; }

.pcard.dealt-card { animation: none; }

/* 鍙戠墝鍔ㄧ敾鍦?webview 閲屼細琚櫄鎷熸椂閽熷喕鍦?opacity:0锛岀墝浼氣€滄秷澶扁€濓紝鎵€浠ュ叧鎺?*/
.hand img.dealt { animation: none !important; }

/* opponent hole cards / backs: the prefab seat draws them as background images */
.pseat [data-node="Image_Card0"],
.pseat [data-node="Image_Card1"],
.pseat [data-node="Image_SmallCardBack0"],
.pseat [data-node="Image_SmallCardBack1"] {
  border-radius: 8% / 6%;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.45),
    0 3px 7px rgba(0, 0, 0, 0.35);
}

.hand {
  left: var(--hand-x, 65%);
  top: var(--hand-y, 92%);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

/* ----------------------------------------------------------- action bar */
.action {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.action::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}

/* ------------------------------------------------------------ chrome */
.table-status {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  z-index: 6;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(12, 9, 6, 0.82);
  border: 1px solid rgba(255, 205, 120, 0.45);
  color: #ffe6b3;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.table-foot[hidden] { display: none; }

/* ===================== mobile viewport fix ===================== */
/* iOS Safari's URL bar overlays the layout viewport. Anchor the app to the visible
   visualViewport rectangle so the hero stack and action dock cannot sit behind it. */
.app {
  top: var(--app-top, 0px);
  bottom: auto;
  height: var(--app-h, 100%);
  min-height: 0;
}

.table-screen {
  padding-bottom: var(--safe-bottom, 0px);
}

/* joining overlay */
.join-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4, 5, 8, 0.55);
  backdrop-filter: blur(2px);
  color: #ffe0a3;
  font-size: 14px;
}

.join-mask[hidden] { display: none; }

.join-spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 210, 140, 0.25);
  border-top-color: #ffd98a;
  animation: joinSpin 0.8s linear infinite;
}

@keyframes joinSpin { to { transform: rotate(360deg); } }

/* settlement card sits at the bottom so the run-out board stays visible */
.settle {
  align-items: flex-end;
  justify-items: center;
  background: rgba(0, 0, 0, 0.22);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.settle-card {
  width: min(92%, 380px);
  margin: 0 auto;
  animation: settleUp 0.25s ease-out;
}

@keyframes settleUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* UIInsurance's stock rows are too low-contrast on small phones. This quote
   panel replaces them inside the same prefab dialog and keeps every value in
   canvas units so it scales with the existing UIInsurance stage. */
.ins-quote {
  position: absolute;
  left: 34px;
  top: 1042px;
  width: 940px;
  height: 260px;
  box-sizing: border-box;
  padding: 18px 30px 14px;
  border: 2px solid rgba(255, 218, 145, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(120% 160% at 50% -35%, rgba(205, 119, 34, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(24, 25, 29, 0.98), rgba(9, 12, 14, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.4);
  color: #f8ead0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  pointer-events: none;
}

.ins-quote-head,
.ins-quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ins-quote-head {
  font-size: 27px;
  color: #b9b0a1;
}

.ins-quote-head b {
  color: #ffd274;
  font-size: 28px;
}

.ins-quote-main {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  margin: 10px 0 12px;
}

.ins-quote-main > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.ins-quote-main > div:last-child {
  justify-content: flex-end;
}

.ins-quote-main small {
  font-size: 28px;
  color: #d5c7ae;
  white-space: nowrap;
}

.ins-quote-main strong {
  color: #ffd26f;
  font-size: 54px;
  line-height: 1;
  white-space: nowrap;
}

.ins-quote-main i {
  color: #dca744;
  font-size: 38px;
  font-style: normal;
  text-align: center;
}

.ins-quote-foot {
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 224, 169, 0.15);
  font-size: 26px;
  color: #bdb4a5;
}

.ins-quote-foot b {
  color: #fff2d4;
}

.ins-quote-foot b.neg {
  color: #ff9b8f;
}

.ins-quote p {
  margin: 8px 0 0;
  color: #91a49f;
  font-size: 23px;
  white-space: nowrap;
}

/* ---------------------------------------------------- winner burst */
.win-burst {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 9;
  pointer-events: none;
}

.win-burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px;
  background: url("../../assets/img/Atlas/Cowboy/chip_g_1.webp") center / contain no-repeat;
  animation: chipFly 0.95s ease-out forwards;
}

@keyframes chipFly {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* seat sizes follow the prefab canvas unit (1 unit = 1 canvas px) */
.seat.empty {
  width: calc(var(--u, 1px) * 160);
  min-width: 0;
}

/* current room stack: separate from the gold current-street bet badge */
.pseat-stack {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u, 1px) * 10);
  box-sizing: border-box;
  padding: 0 calc(var(--u, 1px) * 14);
  border: calc(var(--u, 1px) * 3) solid rgba(255, 221, 151, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 51, 42, 0.96), rgba(9, 26, 23, 0.96));
  color: #f9e5ae;
  box-shadow:
    0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 12) rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.pseat-stack i {
  flex: none;
  width: calc(var(--u, 1px) * 42);
  height: calc(var(--u, 1px) * 42);
  background: url("../../assets/img/Atlas/UITexas/cm_huang.webp") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.pseat-stack b {
  font-size: calc(var(--u, 1px) * 46);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- H5 betting dock */
.bet-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(176px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  pointer-events: auto;
  box-sizing: border-box;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 214, 142, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(100% 140% at 50% -25%, rgba(143, 48, 26, 0.38), transparent 62%),
    linear-gradient(180deg, rgba(24, 20, 16, 0.97), rgba(9, 8, 8, 0.98));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-family: inherit;
}

.bd-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #b7a98f;
  font-size: 10px;
  white-space: nowrap;
}

.bd-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.bd-meta b {
  color: #ffe0a0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bd-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.bd-quick button {
  min-width: 0;
  padding: 6px 2px 5px;
  border: 1px solid rgba(255, 231, 185, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #d8cebd;
  line-height: 1.1;
  pointer-events: auto;
}

.bd-quick button span,
.bd-quick button b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-quick button span {
  margin-bottom: 3px;
  font-size: 9px;
  color: #a99b84;
}

.bd-quick button b {
  color: #fff1d1;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bd-quick button.active {
  border-color: rgba(255, 209, 113, 0.75);
  background: linear-gradient(180deg, rgba(132, 89, 26, 0.75), rgba(72, 46, 16, 0.8));
  box-shadow: 0 0 0 1px rgba(255, 216, 132, 0.12) inset;
}

.bd-quick button.active span { color: #ffe8b6; }

.bd-betline {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 8px 0 9px;
  min-height: 27px;
  color: #a99b84;
  font-size: 10px;
}

.bd-betline > b {
  min-width: 42px;
  color: #ffd477;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bd-betline input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  accent-color: #e6a53a;
  pointer-events: auto;
}

.bet-dock.is-free .bd-betline {
  margin-inline: -5px;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(255, 194, 83, 0.1);
}

.bd-precise {
  padding: 4px 8px;
  border: 1px solid rgba(255, 226, 171, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8d7b4;
  font-size: 10px;
  pointer-events: auto;
}

.bd-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.bd-action {
  min-width: 0;
  height: 50px;
  padding: 5px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  line-height: 1.08;
  text-align: center;
  pointer-events: auto;
  box-shadow:
    0 6px 13px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bd-action span,
.bd-action small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-action span {
  font-size: 14px;
  font-weight: 800;
}

.bd-action small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bd-action.fold {
  background: linear-gradient(180deg, #5a2928, #2d1718);
  border-color: rgba(255, 136, 124, 0.32);
}

.bd-action.call {
  background: linear-gradient(180deg, #1c7181, #11414d);
  border-color: rgba(117, 220, 235, 0.4);
}

.bd-action.raise {
  background: linear-gradient(180deg, #d7992a, #8a5511);
  border-color: rgba(255, 231, 166, 0.65);
  color: #251504;
}

.bd-action.raise small { color: rgba(37, 21, 4, 0.72); }

.bd-action.allin {
  background: linear-gradient(180deg, #c44828, #711d15);
  border-color: rgba(255, 168, 110, 0.5);
}

.bd-action:active,
.bd-quick button:active,
.bd-precise:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(1.08);
}

/* ------------------------------------------------- game report window */
/* Panel_bottom 鐨?Button_Report锛堝乏涓嬭锛夋墦寮€杩欐墖绐楋細鏈鐜╁鐨?鍚嶅瓧 / 鍓╀綑璧勯噾 / 鎵嬫暟 / 杈撹耽 */
.sheet.report {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(92%, 430px);
  max-height: 78vh;
  padding: 0 0 12px;
  border-radius: 18px;
  border: 1px solid rgba(248, 191, 121, 0.3);
  background: #17120d url("../../assets/img/Atlas/UITexas/pj_tc_bg.webp") center / 100% 100% no-repeat;
  color: #f0e2c8;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.72);
  overflow: auto;
  animation: report-in 0.18s ease-out;
}

@keyframes report-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.rep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 14px;
  border-radius: 18px 18px 0 0;
  background: url("../../assets/img/Atlas/Common/pj_tc_tiao.webp") center / 100% 100% no-repeat;
}

.rep-head b {
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #ffe2b0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.rep-close {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(248, 191, 121, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #ffd9a0;
  font-size: 18px;
  line-height: 1;
}

.rep-meta {
  padding: 9px 14px 2px;
  font-size: 11px;
  color: #bca884;
}

.rep-table { padding: 6px 10px 0; }

.rep-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.55fr 1fr;
  gap: 6px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 13px;
  color: #efe3cd;
}

.rep-row:nth-child(even) { background: rgba(255, 255, 255, 0.035); }

.rep-th {
  padding: 4px 8px 6px;
  font-size: 11px;
  color: #a89273;
  background: none;
  border-bottom: 1px solid rgba(248, 191, 121, 0.18);
  border-radius: 0;
}

.rep-th:nth-child(even) { background: none; }

.rep-row.me {
  background: rgba(248, 191, 121, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 191, 121, 0.4);
}

.rep-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rep-name i {
  flex: none;
  font-style: normal;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe2a8, #d99a2b);
  color: #3a2607;
  font-weight: 700;
}

.rep-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.rep-num.up { color: #63e0bd; }
.rep-num.down { color: #ff8f83; }

.rep-empty {
  padding: 28px 0;
  text-align: center;
  font-size: 12px;
  color: #a89273;
}

.rep-foot {
  margin: 10px 14px 0;
  font-size: 10px;
  line-height: 1.6;
  color: #9c8a6d;
}

/* ================================ 鐗屾鏈嶅姟鍏ュ彛锛坧refab 鎺т欢 + 寮瑰眰锛?================================ */

/* prefab 閲屾病鏈夊悗绔兘鍔涚殑鎸夐挳锛氬彲瑙併€佸彲鐐广€佹槑纭鐢紙鍙樻殫 + 鏃犻珮浜級 */
.table-art .pf-off {
  opacity: 0.45;
  filter: grayscale(0.55);
}

/* 鑱婂ぉ锛氬揩鎹风煭璇?*/
.phrase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.phrase {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #e3e7ef;
  background: #f4f6fa;
  color: #1b2230;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.phrase:active {
  background: #fdf3e2;
  border-color: #d99a2b;
  color: #7a4d07;
}

/* 琛ㄦ儏锛氱洿鎺ユ覆鏌?prefab 鐨?grid_emoji锛?242x490锛屽浘鏍?155x155 鎸?prefab 鍧愭爣鎽嗘斁锛?*/
.emoji-board {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 8, 6, 0.55);
  border: 1px solid rgba(248, 191, 121, 0.22);
}

.prefab-panel {
  position: relative;
  overflow: hidden;
}

.emoji-cell {
  cursor: pointer;
  transition: transform 0.12s ease;
}

.emoji-cell:active { transform: scale(0.9); }

/* 椋樺嚭鐨勮〃鎯?/ 鐭彞锛氫綅缃彇鑷繁搴т綅鐨?prefab 鍧愭爣锛屽線涓婇骞舵贰鍑?*/
.seat-float {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: seatFloat 1.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.seat-float.emoji {
  width: calc(var(--u, 1px) * 155);
  height: calc(var(--u, 1px) * 155);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.seat-float.phrase {
  max-width: calc(var(--u, 1px) * 420);
  padding: calc(var(--u, 1px) * 14) calc(var(--u, 1px) * 26);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 22, 14, 0.96), rgba(12, 9, 6, 0.96));
  border: 1px solid rgba(248, 191, 121, 0.55);
  color: #ffe6b3;
  font-size: calc(var(--u, 1px) * 34);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

@keyframes seatFloat {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  70% { opacity: 1; transform: translate(-50%, -120%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(0.96); }
}

/* 涓炬姤寮瑰眰 */
.report-field {
  display: block;
  font-size: 12px;
  color: #6b768b;
  margin-bottom: 10px;
}

.report-field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e3e7ef;
  background: #f4f6fa;
  color: #111927;
  font-size: 14px;
}

.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reason {
  padding: 11px 12px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid #e3e7ef;
  background: #f4f6fa;
  color: #1b2230;
  font-size: 13px;
}

.reason.on {
  border-color: #d99a2b;
  background: #fdf3e2;
  color: #7a4d07;
  font-weight: 700;
}

/* 鐗屾鑿滃崟鍦ㄦ祬鑹?sheet 閲岋細list-item 鐢ㄥ洖娴呭簳娣卞瓧锛岄伩鍏嶆繁搴曟繁瀛楃湅涓嶆竻 */
.sheet .list-item {
  background: #f4f6fa;
  border-color: #e3e7ef;
}

.sheet .list-item .li-title { color: #1b2230; }
.sheet .list-item .li-sub { color: #6b768b; }
.sheet .list-item .chev { color: #9aa4b5; }

/* ---------------------------------------------------- compact screens */
@media (max-width: 380px), (max-height: 700px) {
  .hand img { width: clamp(30px, calc(var(--s, 300px) * 0.11), 44px); }
  .table-status { font-size: 11px; padding: 5px 12px; }
}

/* ---------------------------------------------------- 鎵嬬墝鐗屽瀷鎻愮ず锛堝彂鐗屽悗锛?*/
/* 绱ц创鑷繁涓ゅ紶搴曠墝鐨勪笂娌匡紝鍛婅瘔鐜╁褰撳墠鑳界粍鎴愮殑鏈€澶х墝鍨?/ 鍚墝銆?*/
.hand-type {
  position: absolute;
  left: var(--hand-x, 65%);
  top: calc(var(--hand-y, 92%) - clamp(46px, calc(var(--s, 300px) * 0.155), 58px));
  transform: translate(-50%, -100%);
  z-index: 9;
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 78vw;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 30, 36, 0.94), rgba(12, 14, 18, 0.94));
  border: 1px solid rgba(255, 214, 140, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #ffe6b8;
  font-size: clamp(11px, 3.1vw, 14px);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.hand-type[hidden] { display: none; }

.hand-type b {
  font-weight: 700;
  color: #ffd48a;
}

.hand-type span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86em;
}

/* ----------------------------------------------- 鐗屽眬璁板綍锛堟绾ч〉闈級 */
.sheet.handlog {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.hh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 8px;
}

.hh-head b {
  font-size: 17px;
  color: #ffe6b8;
}

.hh-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}

.hh-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 140, 0.22);
  background: linear-gradient(180deg, rgba(26, 29, 35, 0.96), rgba(14, 16, 20, 0.96));
  padding: 9px 11px 10px;
}

.hh-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.hh-no {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 214, 140, 0.9);
  font-variant-numeric: tabular-nums;
}

.hh-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.hh-win {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #8fe0a6;
  white-space: nowrap;
}

.hh-win.me {
  color: #ffd48a;
}

.hh-win.none {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

.hh-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
}

.hh-label {
  flex: none;
  width: 52px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.hh-cards {
  display: flex;
  gap: 5px;
}

.hh-card {
  display: block;
  width: 30px;
  height: 42px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.hh-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hh-card.empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.hh-empty {
  padding: 26px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.hh-foot {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.hh-foot small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.hh-report {
  width: 100%;
}

/* ================================================================= 淇濋櫓闈㈡澘 v2锛圚5 鑷粯锛?
   閲戠嚎鍗＄墖 路 鍊掕鏃剁幆 路 鍏叡鐗?/ 淇濋櫓鐗?路 澶у彿璧斾粯鏁板瓧 路 閲戣壊婊戝潡 路 璐拱/鏀惧純 */
[data-layer="UIInsurance"] {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
[data-layer="UIInsurance"] .ins-mask {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background:
    radial-gradient(120% 70% at 50% 30%, rgba(80, 30, 10, 0.35), transparent 60%),
    rgba(4, 3, 2, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
[data-layer="UIInsurance"] .ins-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 372px);
  padding: 16px 16px 14px;
  border-radius: 22px;
  color: #efe8dc;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(38, 29, 19, 0.985), rgba(15, 11, 7, 0.99));
  border: 1px solid rgba(233, 180, 85, 0.34);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 226, 160, 0.16),
    inset 0 -30px 60px rgba(180, 110, 20, 0.06);
}
/* 椤堕儴閲戣壊姘涘洿鍏?*/
[data-layer="UIInsurance"] .ins-sheet::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 140, 0.85), transparent);
}
[data-layer="UIInsurance"] .ins-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
[data-layer="UIInsurance"] .ins-crest {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #2a1b08;
  background: linear-gradient(160deg, #f6d592, #d79a2c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45);
}
[data-layer="UIInsurance"] .ins-hd-t { flex: 1; min-width: 0; }
[data-layer="UIInsurance"] .ins-hd-t h3 {
  margin: 0;
  font: 700 17px/1.1 "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 1px;
  color: #ffd98a;
}
[data-layer="UIInsurance"] .ins-hd-t p {
  margin: 3px 0 0;
  font-size: 11px;
  color: rgba(238, 231, 218, 0.45);
  letter-spacing: 0.3px;
}
[data-layer="UIInsurance"] .ins-timer {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 1px;
}
[data-layer="UIInsurance"] .ins-timer .ins-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#e9b455 var(--deg, 360deg), rgba(233, 180, 85, 0.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
[data-layer="UIInsurance"] .ins-timer b {
  font: 700 15px/1 "Bahnschrift", "DIN Alternate", "Segoe UI", Arial, sans-serif;
  color: #ffd98a;
}
[data-layer="UIInsurance"] .ins-timer small {
  font-size: 9px;
  color: rgba(238, 231, 218, 0.45);
}
[data-layer="UIInsurance"] .ins-block { margin-bottom: 12px; }
[data-layer="UIInsurance"] .ins-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(238, 231, 218, 0.5);
}
[data-layer="UIInsurance"] .ins-cap i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(233, 180, 85, 0.24), transparent);
}
[data-layer="UIInsurance"] .ins-cap em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffd98a;
  background: rgba(233, 180, 85, 0.13);
  border: 1px solid rgba(233, 180, 85, 0.22);
}
[data-layer="UIInsurance"] .ins-board { display: flex; gap: 6px; }
[data-layer="UIInsurance"] .ins-pc {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed rgba(233, 180, 85, 0.2);
}
[data-layer="UIInsurance"] .ins-pc.dealt {
  border: 1px solid rgba(233, 180, 85, 0.4);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}
[data-layer="UIInsurance"] .ins-pc img,
[data-layer="UIInsurance"] .ins-oc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-layer="UIInsurance"] .ins-outs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 58px;
  align-items: center;
}
[data-layer="UIInsurance"] .ins-oc {
  width: 44px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(233, 180, 85, 0.65);
  box-shadow: 0 0 0 2px rgba(233, 180, 85, 0.14), 0 6px 14px rgba(0, 0, 0, 0.45);
}
[data-layer="UIInsurance"] .ins-empty {
  font-size: 12px;
  color: rgba(238, 231, 218, 0.38);
}
[data-layer="UIInsurance"] .ins-price {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  align-items: stretch;
  margin: 4px 0 12px;
}
[data-layer="UIInsurance"] .ins-q-main {
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(233, 180, 85, 0.16), rgba(233, 180, 85, 0.05));
  border: 1px solid rgba(233, 180, 85, 0.26);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
[data-layer="UIInsurance"] .ins-q-main span {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(238, 231, 218, 0.55);
}
[data-layer="UIInsurance"] .ins-q-main b {
  font: 700 26px/1.05 "Bahnschrift", "DIN Alternate", "Segoe UI", Arial, sans-serif;
  color: #ffd98a;
  text-shadow: 0 2px 10px rgba(233, 180, 85, 0.35);
}
[data-layer="UIInsurance"] .ins-q-side {
  display: grid;
  gap: 8px;
}
[data-layer="UIInsurance"] .ins-q-side div {
  border-radius: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(233, 180, 85, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
[data-layer="UIInsurance"] .ins-q-side span {
  font-size: 10px;
  color: rgba(238, 231, 218, 0.5);
}
[data-layer="UIInsurance"] .ins-q-side b {
  font: 600 15px/1 "Bahnschrift", "DIN Alternate", "Segoe UI", Arial, sans-serif;
  color: #f3dfb4;
}
[data-layer="UIInsurance"] .ins-slider { margin-bottom: 14px; }
[data-layer="UIInsurance"] .ins-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
[data-layer="UIInsurance"] .ins-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9b455 var(--fill, 0%), rgba(255, 255, 255, 0.12) var(--fill, 0%));
}
[data-layer="UIInsurance"] .ins-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3d2, #e9b455 60%, #b97f1f);
  border: 1px solid rgba(255, 226, 160, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}
[data-layer="UIInsurance"] .ins-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
[data-layer="UIInsurance"] .ins-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #e9b455;
}
[data-layer="UIInsurance"] .ins-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9b455;
  border: 1px solid #ffe2a0;
}
[data-layer="UIInsurance"] .ins-range-vals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(238, 231, 218, 0.42);
  margin-top: 2px;
}
[data-layer="UIInsurance"] .ins-range-vals em {
  font-style: normal;
  font-size: 11px;
  color: rgba(238, 231, 218, 0.62);
}
[data-layer="UIInsurance"] .ins-range-vals em b {
  font: 600 13px/1 "Bahnschrift", "DIN Alternate", "Segoe UI", Arial, sans-serif;
  color: #ffd98a;
  margin-left: 3px;
}
[data-layer="UIInsurance"] .ins-ft { display: flex; gap: 10px; }
[data-layer="UIInsurance"] .ins-btn {
  flex: 1;
  height: 46px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid rgba(233, 180, 85, 0.3);
  background: rgba(233, 180, 85, 0.07);
  color: rgba(238, 231, 218, 0.86);
}
[data-layer="UIInsurance"] .ins-btn.ghost { flex: 0 0 34%; }
[data-layer="UIInsurance"] .ins-btn.primary {
  border-color: #f7d792;
  background: linear-gradient(180deg, #f4c86a, #d99b2f);
  color: #2a1b08;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 20px rgba(217, 155, 47, 0.28);
}
[data-layer="UIInsurance"] .ins-btn.primary b {
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", Arial, sans-serif;
}
[data-layer="UIInsurance"] .ins-delay {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  border-radius: 11px;
  border: 1px dashed rgba(233, 180, 85, 0.24);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(238, 231, 218, 0.6);
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

/* MTT compact betting dock: only the raise line + action row, translucent and at the very
   bottom so it no longer covers the hero cards / board. */
.bet-dock.compact {
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 7px 9px 8px;
  border-radius: 14px;
  border-color: rgba(255, 214, 142, 0.28);
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.58), rgba(9, 8, 8, 0.78));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}
.bet-dock.compact .bd-meta,
.bet-dock.compact .bd-quick { display: none; }
.bet-dock.compact .bd-betline { margin: 0 0 6px; min-height: 20px; gap: 6px; }
.bet-dock.compact .bd-betline > b { font-size: 12px; }
.bet-dock.compact .bd-actions { gap: 6px; }
.bet-dock.compact .bd-action { height: 42px; border-radius: 10px; }
.bet-dock.compact .bd-action span { font-size: 13px; }
.bet-dock.compact .bd-action small { margin-top: 1px; font-size: 8px; }

/* ------------------------------------------------------- MTT ranking drawer */
.mtt-rank-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  right: 12px;
  z-index: 26;
  padding: 6px 10px;
  border: 1px solid rgba(255, 214, 142, 0.45);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.72);
  color: #ffe3a8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.mtt-rank-btn:active { transform: scale(0.96); }

.mtt-rank-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.mtt-rank-mask.open { opacity: 1; }

.mtt-rank-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(80vw, 370px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  color: #e8f2f2;
  background: linear-gradient(180deg, #0d1822, #081018);
  border-left: 1px solid rgba(88, 199, 181, 0.22);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  transition: transform 0.22s ease;
}
.mtt-rank-panel.open { transform: none; }

.mtt-rank-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mtt-rank-title { min-width: 0; }
.mtt-rank-title h3 {
  margin: 0;
  overflow: hidden;
  color: #f2f8f7;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mtt-rank-title p { margin: 3px 0 0; color: #7f95a3; font-size: 11px; }
.mtt-rank-close {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dce9e8;
  font-size: 21px;
  line-height: 1;
}

.mtt-rank-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.mtt-rank-hero {
  padding: 10px 12px 12px;
  border: 1px solid rgba(74, 190, 173, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #13232d, #0c1720);
}
.mrh-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.mrh-row:first-child { margin-top: 0; }
.mrh-cell span { display: block; color: #7e929e; font-size: 10px; }
.mrh-cell b {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mrh-cell.right { text-align: right; }
.mrh-cell.center { text-align: center; }
.mrh-clock {
  color: #f6a623;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.mrh-center { text-align: center; color: #d6a85d; font-size: 18px; }

.mtt-rank-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 6px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: #101b24;
}
.mtt-rank-stats span { display: block; color: #7e929e; font-size: 10px; }
.mtt-rank-stats b {
  display: block;
  margin-top: 4px;
  color: #f2f8f7;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mtt-rank-tabs {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mtt-rank-tabs button {
  flex: 1;
  padding: 9px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8fa4ae;
  font-size: 12px;
}
.mtt-rank-tabs button.active { color: #fff; border-bottom-color: #2fb7a5; }

.mtt-rank-list-head {
  display: grid;
  grid-template-columns: 28px 42px 1fr 64px 34px;
  gap: 6px;
  padding: 10px 4px 6px;
  color: #7e929e;
  font-size: 10px;
}
.mtt-rank-list-head span:nth-child(1) { text-align: center; }
.mtt-rank-list-head span:nth-child(2) { grid-column: 2 / 4; }
.mtt-rank-list-head span:nth-child(3),
.mtt-rank-list-head span:nth-child(4) { text-align: right; }
.mtt-rank-row {
  display: grid;
  grid-template-columns: 28px 42px 1fr 64px 34px;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.mtt-rank-row.me { border-radius: 8px; background: rgba(47, 183, 165, 0.1); }
.mr-rank { text-align: center; color: #c7d6db; font-size: 12px; font-weight: 700; }
.mr-ava {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f5d68, #162b35);
  color: #cfe;
  font-size: 12px;
  font-weight: 800;
}
.mr-name { overflow: hidden; color: #e8f2f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mr-chips { color: #fff; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.mr-ra { color: #e25b4b; font-size: 11px; text-align: center; font-weight: 700; }

.mtt-rank-prizes > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #9fb1b8;
  font-size: 12px;
}
.mtt-rank-prizes b { color: #ffe0a0; }
.mtt-rank-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mtt-rank-table > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: #101b24;
}
.mtt-rank-table span { display: block; color: #7e929e; font-size: 10px; }
.mtt-rank-table b { display: block; margin-top: 4px; color: #f2f8f7; font-size: 15px; }
.mtt-rank-blinds > div {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 6px;
  padding: 7px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #9fb1b8;
  font-size: 11px;
}
.mtt-rank-blinds > div.now { border-radius: 6px; background: rgba(47, 183, 165, 0.12); color: #fff; }
.mtt-rank-blinds b { color: #dbe8e8; font-weight: 700; }
.mtt-rank-blinds em { color: #7e929e; font-style: normal; }
.mtt-rank-empty { padding: 24px 0; color: #7e929e; font-size: 12px; text-align: center; }


/* ------------------------------------------------------- MTT prize popup */
.mtt-prize-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.mtt-prize-card {
  box-sizing: border-box;
  width: min(100%, 340px);
  padding: 26px 22px 20px;
  border: 1px solid rgba(255, 214, 142, 0.55);
  border-radius: 20px;
  background: linear-gradient(180deg, #1b1710, #0c0a08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.mtt-prize-trophy { font-size: 48px; line-height: 1; }
.mtt-prize-card h3 {
  margin: 12px 0 4px;
  color: #ffe3a8;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
.mtt-prize-match {
  margin: 0 0 14px;
  overflow: hidden;
  color: #b8a888;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mtt-prize-amount {
  color: #ffd477;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.mtt-prize-gold { margin: 4px 0 0; color: #cdbb95; font-size: 12px; }
.mtt-prize-note { margin: 10px 0 18px; color: #8f8778; font-size: 11px; }
.mtt-prize-back {
  box-sizing: border-box;
  width: 100%;
  padding: 0 12px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e0aa43, #a56a16);
  color: #241304;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}


