/* ==========================================================================
   永利德州 H5 �?design tokens + screens
   Artwork comes from the Unity client (assets/img/...), layout numbers were
   recovered from the prefabs at a 1242x2208 reference and adapted responsively.
   ========================================================================== */

:root {
  --bg: #070910;
  --bg-soft: #0d1119;
  --panel: #131824;
  --panel-2: #1a2030;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #97a1b4;
  --dim: #6b768b;
  --gold: #f8bf79;
  --gold-deep: #c9922f;
  --red: #e0362f;
  --red-deep: #a3241f;
  --teal: #12a189;
  --teal-deep: #0a7566;
  --orange: #e39a2c;
  --blue: #3f6fd8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--safe-top);
}

.screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------------------------------------------------------------- generic */
.row {
  display: flex;
  align-items: center;
}
.gap6 { gap: 6px; }
.gap10 { gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.tiny { font-size: 11px; }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.icon-btn:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.12); }

.btn {
  height: 48px;
  border-radius: 12px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #2a3143, #1a2030);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.985); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(180deg, #ef4a3f, #c0241d); box-shadow: 0 8px 20px rgba(224, 54, 47, 0.32); }
.btn.gold { background: linear-gradient(180deg, #f6cd86, #d79c3d); color: #3a2607; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- login */
.login {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #05070c;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  background: url("../../assets/img/Texture/bg_Texture.webp") center / cover no-repeat;
  transform: scale(1.02);
}
.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.72) 100%);
}
.login-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 8vw;
  z-index: 1;
}
.login-logo {
  width: 62vw;
  max-width: 300px;
  margin: 13vh auto 0;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}
.login-form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3.2vw;
  padding-bottom: 2vh;
}
.pill {
  height: 13.2vw;
  min-height: 52px;
  max-height: 62px;
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 0 4.5vw;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid rgba(248, 191, 121, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.pill img { width: 22px; height: 22px; opacity: 0.9; flex: none; }
.pill .prefix { color: var(--gold); font-size: 15px; flex: none; }
.pill input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.pill input::placeholder { color: rgba(248, 191, 121, 0.55); }
.pill .arrow { color: var(--gold); font-size: 15px; opacity: 0.85; }
.pill .eye { width: 22px; height: 22px; opacity: 0.75; cursor: pointer; }

.login-submit {
  margin-top: 2.4vw;
  height: 14vw;
  min-height: 54px;
  max-height: 64px;
  border: 0;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
  background: linear-gradient(180deg, #f0473c 0%, #cf2a22 45%, #9e1a15 100%);
  box-shadow: 0 12px 26px rgba(200, 40, 32, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.login-submit:active { transform: translateY(1px) scale(0.995); }

.login-row {
  display: flex;
  justify-content: center;
  gap: 26vw;
  margin-top: 3vw;
  font-size: 13px;
  color: var(--gold);
}
.login-row span { cursor: pointer; }
.login-links-hint { text-align: center; color: var(--muted); font-size: 11px; margin-top: 4vw; }

.login-footer {
  position: relative;
  z-index: 1;
  padding: 0 5vw calc(2.4vh + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 11px;
}
.login-footer .gli { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.login-footer .gli img { height: 22px; }
.login-footer .foot-actions { display: flex; gap: 16px; }
.login-footer .foot-item { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.9; }
.login-footer .foot-item img { width: 26px; height: 26px; }
.login-error {
  min-height: 18px;
  text-align: center;
  color: #ff9a8f;
  font-size: 12px;
  margin: 0;
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  flex: none;
}
.topbar .title { font-size: 17px; font-weight: 700; }
.topbar .sub { font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- lobby */
/* 大厅整页由 UILobby.prefab 渲染：canvas 负责滚动，stage 按 1242 宽等比缩放 */
.lobby-screen { overflow: hidden; }
.lobby-canvas {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #10131a url("../img/Texture/bg_Texture.webp") center top / cover no-repeat;
}
.lobby-canvas::-webkit-scrollbar { width: 0; height: 0; }
.lobby-canvas .lobby-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
  padding: 10px 14px;
  gap: 10px;
}
.lobby-stage { position: relative; }

/* 卡片本身是 prefab 的 paijuEntity（白底 + 深色字），这里只做定位外壳 */
.lobby-canvas .room-card {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
}
.lobby-canvas .room-card::before { content: none; }
.lobby-canvas .room-card:active { transform: none; }

.lobby-tags .tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(248, 191, 121, 0.18);
  border: 1px solid rgba(248, 191, 121, 0.5);
  color: #ffd9a0;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.lobby-filter { position: relative; width: 100%; }
.lobby-filter .pnode[data-name^="view_filter_btn_"] { cursor: pointer; }
.lobby-filter .pnode.on { filter: brightness(1.35) saturate(1.15); }

.lobby { flex: 1; overflow: auto; padding: 0 14px 90px; -webkit-overflow-scrolling: touch; }
.lobby-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
}
.avatar-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: url("../../assets/img/Atlas/UITexas/hand_iocn_default_avatar.webp") center / cover no-repeat;
  border: 1px solid rgba(248, 191, 121, 0.55);
  flex: none;
}
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .id { font-size: 11px; color: var(--muted); }
.balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 191, 121, 0.16), rgba(248, 191, 121, 0.06));
  border: 1px solid rgba(248, 191, 121, 0.28);
  font-weight: 700;
  color: var(--gold);
  font-size: 15px;
  cursor: pointer;
}
.balance-chip .plus {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #241703; font-size: 14px; font-weight: 800; line-height: 1;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.16s;
}
.tab.active {
  color: #2a1b05;
  background: linear-gradient(180deg, #f7cf8c, #dc9f43);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(220, 159, 67, 0.25);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 2px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.section-title .bar { width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }
.section-title .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }

.room-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(28, 34, 49, 0.95), rgba(16, 20, 30, 0.95));
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.room-card:active { transform: scale(0.994); border-color: rgba(248, 191, 121, 0.35); }
.room-card::before {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 191, 121, 0.16), transparent 68%);
}
.room-thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  flex: none;
  background: url("../../assets/img/Atlas/UITexas/setting_table_qing_bg.webp") center / cover no-repeat, #123a2c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.room-main { flex: 1; min-width: 0; }
.room-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.room-meta { margin-top: 3px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.room-meta b { color: var(--gold); font-weight: 600; }
.room-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.seats-left { font-size: 11px; color: var(--muted); }
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 161, 137, 0.16);
  color: #46d6b6;
  border: 1px solid rgba(18, 161, 137, 0.35);
}
.badge.warm { background: rgba(224, 54, 47, 0.16); color: #ff8a7e; border-color: rgba(224, 54, 47, 0.3); }
.badge.gold { background: rgba(248, 191, 121, 0.14); color: var(--gold); border-color: rgba(248, 191, 121, 0.3); }
.go-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #2a1b05;
  background: linear-gradient(180deg, #f8d79b, #dfa348);
  border: 0;
  cursor: pointer;
}

.hero-banner {
  position: relative;
  margin-top: 14px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(120deg, #3a1108, #7a1e12 55%, #b8402a);
  border: 1px solid rgba(248, 191, 121, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  gap: 6px;
}
.hero-banner::after {
  content: "";
  position: absolute;
  right: -20px; top: -30px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.35), transparent 60%);
}
.hero-banner h3 { font-size: 18px; letter-spacing: 0.02em; }
.hero-banner p { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.hero-banner .cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  color: #3a1a06;
  background: linear-gradient(180deg, #ffdca6, #e6ad55);
  font-weight: 700;
}

/* ---------------------------------------------------------------- tabbar */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(9, 11, 17, 0.72), rgba(9, 11, 17, 0.98));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 20;
}
.tabbar .item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  font-size: 10px;
  color: var(--dim);
  cursor: pointer;
}
.tabbar .item.active { color: var(--gold); }
.tabbar .item img { width: 22px; height: 22px; opacity: 0.65; }
.tabbar .item.active img { opacity: 1; }
.tabbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0; }
.tabbar .item.active .dot { opacity: 1; }

/* ---------------------------------------------------------------- table */
.table-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, #17203a 0%, #0a0d15 55%, #06080d 100%);
  overflow: hidden;
}
.table-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  flex: none;
  z-index: 5;
}
.table-head .room { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.table-head .room b { font-size: 14px; }
.table-head .room span { font-size: 11px; color: var(--muted); }
.table-head .wallet { margin-left: auto; font-size: 13px; color: var(--gold); font-weight: 600; }

.felt {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 8px 6px;
  border-radius: 46% / 32%;
  background:
    radial-gradient(58% 46% at 50% 44%, rgba(46, 168, 122, 0.55), rgba(10, 74, 52, 0.55) 55%, rgba(4, 34, 24, 0.95) 100%),
    url("../../assets/img/Atlas/UITexas/setting_table_qing_bg.webp") center / 46% auto repeat,
    #0d3c2b;
  box-shadow:
    inset 0 0 0 3px rgba(248, 191, 121, 0.22),
    inset 0 0 70px rgba(0, 0, 0, 0.6),
    0 18px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 52% at 50% 40%, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}
.table-logo {
  position: absolute;
  left: 50%;
  top: 41%;
  width: 22%;
  transform: translate(-50%, -50%);
  opacity: 0.14;
  filter: grayscale(1);
  pointer-events: none;
}

.seat {
  position: absolute;
  width: 18%;
  max-width: 86px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 3;
  transition: filter 0.2s;
}
.seat.hero { z-index: 6; }
.seat-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../../assets/img/Atlas/UITexas/hand_iocn_avatar_2.webp") center / cover no-repeat, #171c28;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.seat-avatar img.av {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.seat-avatar .glyph { font-size: 26px; line-height: 1; }
.fold-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.seat.winner .seat-avatar::after {
  border-color: #ffd98a;
  box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.35), 0 0 26px rgba(255, 200, 110, 0.7);
  animation: winPulse 1.2s ease-in-out infinite;
}
@keyframes winPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.3), 0 0 18px rgba(255, 200, 110, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(255, 217, 138, 0.45), 0 0 34px rgba(255, 200, 110, 0.85); }
}
.seat-win {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe2a8, #d99a2b);
  color: #3a2607;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  animation: winPop 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes winPop {
  from { transform: translate(-50%, 8px) scale(0.6); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
.seat-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.seat.turn .seat-avatar::after {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 191, 121, 0.22), 0 0 22px rgba(248, 191, 121, 0.55);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248, 191, 121, 0.2), 0 0 18px rgba(248, 191, 121, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(248, 191, 121, 0.3), 0 0 30px rgba(248, 191, 121, 0.7); }
}
.seat.folded { filter: grayscale(0.9) brightness(0.62); }
.seat.empty .seat-avatar {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(248, 191, 121, 0.35);
  box-shadow: none;
  color: rgba(248, 191, 121, 0.55);
  font-size: 20px;
}
.seat.empty .seat-avatar::after { display: none; }
.seat-name {
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(6, 8, 12, 0.72);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-chips {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.seat-cards {
  position: relative;
  display: flex;
  gap: 2px;
  margin-bottom: -6px;
  z-index: 2;
}
.seat-cards img {
  width: 15px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.seat-flag {
  position: absolute;
  right: 2%;
  bottom: 24%;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 3;
}
.seat-bubble {
  position: absolute;
  top: -16%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(224, 54, 47, 0.9);
  white-space: nowrap;
}

.pot {
  position: absolute;
  left: 50%;
  top: 33%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(4, 6, 10, 0.55);
  border: 1px solid rgba(248, 191, 121, 0.25);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  z-index: 4;
}
.pot::before {
  content: "";
  width: 16px; height: 16px;
  background: url("../../assets/img/Atlas/UITexas/cm_huang.webp") center / contain no-repeat;
}

.board {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
  z-index: 4;
}
.board .slot {
  width: 10vw;
  max-width: 40px;
  aspect-ratio: 0.72;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.board img, .hand img { width: 100%; height: 100%; object-fit: fill; display: block; }

.hand {
  position: absolute;
  right: 14px;
  /* 抬到投注面板（.bet-dock.compact 占位约 8–100px）之上，并压在最高层，
     保证任何下注 UI 都不会盖住玩家自己的手牌 */
  bottom: calc(150px + var(--safe-bottom));
  display: flex;
  gap: 6px;
  z-index: 60;
  pointer-events: none;
}
.hand img {
  width: 15vw;
  max-width: 64px;
  aspect-ratio: 0.72;
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.table-foot {
  flex: none;
  padding: 6px 10px calc(10px + var(--safe-bottom));
  z-index: 6;
}
.waiting-tip {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0 4px;
}
.action-bar {
  display: flex;
  gap: 8px;
}
.action {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 1.05;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.action:active { transform: translateY(1px) scale(0.99); filter: brightness(1.08); }
.action.fold { background: linear-gradient(180deg, #4a5163, #2b3140); }
.action.call { background: linear-gradient(180deg, #1fb397, #0b7a67); }
.action.raise { background: linear-gradient(180deg, #f0b45c, #c8811f); color: #2a1b05; }
.action.allin { background: linear-gradient(180deg, #ef4a3f, #a8201a); }
.action small { display: block; font-size: 11px; opacity: 0.85; font-weight: 500; }

.raise-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid var(--line);
}
.raise-panel .step {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.raise-panel input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}
.raise-panel .quick {
  display: flex;
  gap: 4px;
}
.raise-panel .quick button {
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- misc */
.toast-root {
  position: fixed;
  left: 0; right: 0;
  bottom: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 200;
}
.toast {
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  animation: toast-in 0.18s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.sheet-root { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px calc(18px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #f6f7fb, #ffffff);
  color: #1b2230;
  pointer-events: auto;
  animation: sheet-up 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 86vh;
  overflow: auto;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet h3 { font-size: 18px; margin-bottom: 4px; color: #111927; }
.sheet .sheet-sub { font-size: 12px; color: #6b768b; }
.sheet .sheet-body { margin: 14px 0; }
.sheet .sheet-actions { display: flex; gap: 10px; }
.sheet .sheet-actions .btn { flex: 1; }
.sheet .btn.ghost { background: #eef1f7; border: 0; color: #3a4457; }
.buyin-box {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e9f7f4, #dff3ee);
  text-align: center;
  color: #0b5a4d;
}
.buyin-box .label { font-size: 12px; color: #4d8579; }
.buyin-box .amount { font-size: 30px; font-weight: 800; letter-spacing: 0.02em; margin-top: 2px; }
.sheet-note { font-size: 12px; line-height: 1.7; color: #6b768b; }
.sheet-note b { color: #0b5a4d; }

/* ---------------------------------------------------------------- pages */
.page { flex: 1; overflow: auto; padding: 0 14px 90px; }
.page-head { padding: 14px 2px 10px; }
.page-head h2 { font-size: 20px; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}
.list-item .li-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(248, 191, 121, 0.12);
  color: var(--gold);
  font-size: 17px;
  flex: none;
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 14px; font-weight: 600; }
.list-item .li-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.list-item .chev { color: var(--dim); }

.wallet-hero {
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2b1a08, #6a3f13 60%, #a86a22);
  border: 1px solid rgba(248, 191, 121, 0.35);
  box-shadow: var(--shadow);
}
.wallet-hero .label { font-size: 12px; color: rgba(255, 236, 210, 0.72); }
.wallet-hero .amount { font-size: 34px; font-weight: 800; margin-top: 4px; letter-spacing: 0.01em; }

/* wallet header from the client prefab UIMine_WalletMy (Bg 1241x982, value 152u,
   labels 40u, stat values 48u) — 1 unit = 1/1242 of the screen width, like the client */
.prefab-wallet {
  margin: 8px 0 0;
  padding: calc(100vw / 1242 * 92) calc(100vw / 1242 * 95) calc(100vw / 1242 * 70);
  min-height: calc(100vw / 1242 * 700);
  border: 0;
  border-radius: calc(100vw / 1242 * 24);
  background: url("../../assets/img/Texture/qianbao_bg.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: calc(100vw / 1242 * 24);
}
.prefab-wallet .pw-label { font-size: calc(100vw / 1242 * 40); color: rgba(255, 236, 210, 0.72); display: flex; align-items: center; gap: calc(100vw / 1242 * 16); }
.prefab-wallet .pw-bean { width: calc(100vw / 1242 * 60); height: calc(100vw / 1242 * 60); background: url("../../assets/img/Atlas/Common/gold_bean.webp") center / contain no-repeat; }
.prefab-wallet .pw-amount { font-size: calc(100vw / 1242 * 152); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; color: #fff; }
.prefab-wallet .pw-stats { display: flex; gap: calc(100vw / 1242 * 60); margin-top: calc(100vw / 1242 * 8); }
.prefab-wallet .pw-stats div { display: flex; flex-direction: column; gap: calc(100vw / 1242 * 8); }
.prefab-wallet .pw-stats b { font-size: calc(100vw / 1242 * 48); font-weight: 700; font-variant-numeric: tabular-nums; }
.prefab-wallet .pw-stats span { font-size: calc(100vw / 1242 * 36); color: rgba(255, 236, 210, 0.62); }
.prefab-wallet .wallet-actions { margin-top: calc(100vw / 1242 * 30); }
.prefab-wallet .wallet-actions .btn { height: calc(100vw / 1242 * 96); font-size: calc(100vw / 1242 * 40); }

/* client nav bar (UINavigationBar: back 150x130 nav_back, title 56u) */
.page-head h2 { font-size: calc(100vw / 1242 * 56); }
.page-head .prefab-back {
  width: calc(100vw / 1242 * 150);
  height: calc(100vw / 1242 * 130);
  border: 0;
  background: url("../../assets/img/Atlas/Common/nav_back.webp") center / contain no-repeat;
  font-size: 0;
  color: transparent;
}
.wallet-actions { display: flex; gap: 10px; margin-top: 16px; }
.wallet-actions .btn { flex: 1; height: 42px; font-size: 14px; }
.record-row {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.record-row .t { flex: 1; }
.record-row .t small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.record-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.record-row .amt.in { color: #46d6b6; }
.record-row .amt.out { color: #ff8a7e; }

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

/* ------------------------------------------------ layout preview screens */
.screen-stage-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #05070c;
}
.screen-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.screen-back {
  position: absolute;
  left: 12px;
  top: calc(12px + var(--safe-top));
  z-index: 50;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 30px;
}
.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}
.gallery-card .thumb {
  height: 120px;
  background-size: cover;
  background-position: top center;
  position: relative;
}
.gallery-card .thumb span {
  position: absolute;
  left: 6px; bottom: 6px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}
.gallery-card .cap {
  padding: 7px 8px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------- table: settlement + fx */
.conn {
  margin: 0 14px 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(227, 154, 44, 0.14);
  border: 1px solid rgba(227, 154, 44, 0.35);
  color: #f3c36d;
  font-size: 11px;
  text-align: center;
}

.settle {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 12, 0.55);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}
.settle[hidden] { display: none; }
.settle-card {
  min-width: 66%;
  padding: 18px 20px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.98), rgba(14, 18, 27, 0.98));
  border: 1px solid rgba(248, 191, 121, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: sheet-up 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.settle-card h4 {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.settle-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.settle-row b { color: #6fe3c4; font-variant-numeric: tabular-nums; }
.settle-card p { margin-top: 10px; font-size: 12px; color: var(--muted); }
.settle-card small { display: block; margin-top: 6px; font-size: 10px; color: var(--dim); }

.board .slot.dealt img,
.hand img.dealt {
  animation: cardIn 0.34s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(-10px) rotateY(70deg) scale(0.86); }
  to { opacity: 1; transform: none; }
}
.pot.bump { animation: potBump 0.34s ease; }
@keyframes potBump {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.12); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.seat-cards.reveal img { width: 22px; }

/* ---------------------------------------------------------------- switch */
.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  flex: none;
  transition: background 0.18s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(18px); }

/* ------------------------------------------------------------ lobby filters */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.filter-chip {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.filter-chip::after {
  content: "⌄";
  margin-left: 5px;
  font-size: 10px;
  opacity: 0.7;
}
.filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tags .tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(248, 191, 121, 0.14);
  border: 1px solid rgba(248, 191, 121, 0.3);
  color: var(--gold);
  cursor: pointer;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e3e7ef;
  background: #f6f7fb;
  color: #3a4457;
  font-size: 12px;
  cursor: pointer;
}
.chip.on { background: #111927; color: #fff; border-color: #111927; }

/* ------------------------------------------------- small phones (<=360px) */
.room-meta span { white-space: nowrap; }

@media (max-width: 360px) {
  .lobby { padding: 0 10px 84px; }
  .lobby-head { gap: 9px; padding: 10px 0 12px; }
  .avatar-ring { width: 40px; height: 40px; }
  .who .name { font-size: 14px; }
  .balance-chip { padding: 6px 11px; font-size: 13px; }
  .hero-banner { height: 104px; padding: 0 14px; }
  .hero-banner h3 { font-size: 16px; }
  .hero-banner p { font-size: 11px; }
  .tab { font-size: 12px; padding: 8px 0; }
  .room-card { padding: 11px; gap: 9px; border-radius: 14px; }
  .room-thumb { width: 42px; height: 42px; border-radius: 11px; font-size: 17px; }
  .room-name { font-size: 13.5px; }
  .room-meta { font-size: 11px; gap: 6px; flex-wrap: wrap; }
  .badge { font-size: 9px; padding: 2px 6px; }
  .go-btn { padding: 6px 12px; font-size: 12px; }
  .seats-left { font-size: 10px; }
  .page { padding: 0 10px 84px; }
  .page-head h2 { font-size: 18px; }
  .wallet-hero { padding: 15px; }
  .wallet-hero .amount { font-size: 28px; }
  .action { font-size: 13px; height: 44px; }
  .action small { font-size: 10px; }
  .seat-name { font-size: 9px; padding: 1px 6px; }
  .seat-chips { font-size: 10px; }
  .sheet { padding: 16px 14px calc(16px + var(--safe-bottom)); }
}

/* --------------------------------------------------- tablets / desktop */
@media (min-width: 600px) {
  .app {
    left: 50%;
    right: auto;
    width: 520px;
    transform: translateX(-50%);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  }
  .sheet {
    max-width: 520px;
    margin: 0 auto;
  }
  .toast-root {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app::before {
    content: "请竖屏使用";
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #05070c;
    color: #f8bf79;
    font-size: 16px;
    letter-spacing: 0.2em;
    z-index: 999;
  }
}

/* ------------------------------------------------------ buy-in amount picker */
.buyin-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.buyin-controls .step {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #dfe4ee;
  background: #fff;
  font-size: 20px;
  color: #334155;
  cursor: pointer;
}
.buyin-controls input {
  width: 118px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #dfe4ee;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #0b5a4d;
  outline: none;
}
.buyin-quick {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.buyin-quick button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dfe4ee;
  background: #fff;
  color: #4a5568;
  font-size: 12px;
  cursor: pointer;
}

/* room card title row: name shrinks, countdown stays visible */
.room-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.room-name .rn-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-name .rn-left {
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* ===== 大厅比赛入口（UILobby.prefab view_main/mode_mtt 1242x464） ===== */
.mode-mtt {
  margin-top: calc(100vw / 1242 * 24);
  padding: calc(100vw / 1242 * 24) calc(100vw / 1242 * 30) calc(100vw / 1242 * 28);
  border-radius: calc(100vw / 1242 * 24);
  background: linear-gradient(135deg, rgba(30, 20, 8, 0.9), rgba(58, 30, 10, 0.85));
  border: 1px solid rgba(248, 191, 121, 0.22);
  min-height: calc(100vw / 1242 * 464);
  box-sizing: border-box;
}
.mode-mtt .mm-head {
  display: flex; align-items: center; gap: 8px;
  font-size: calc(100vw / 1242 * 40);
  font-weight: 700; color: #ffe6b3;
  margin-bottom: calc(100vw / 1242 * 20);
}
.mode-mtt .mm-head .more {
  margin-left: auto;
  font-size: calc(100vw / 1242 * 30);
  font-weight: 400; color: var(--muted);
}
.mode-mtt .mm-row { display: flex; gap: calc(100vw / 1242 * 20); overflow-x: auto; }
.mode-mtt .mm-card {
  flex: 1 1 0; min-width: 0;
  padding: calc(100vw / 1242 * 26) calc(100vw / 1242 * 24);
  border-radius: calc(100vw / 1242 * 18);
  background: rgba(10, 9, 6, 0.55);
  border: 1px solid rgba(255, 210, 140, 0.18);
}
.mode-mtt .mm-name {
  font-size: calc(100vw / 1242 * 38);
  font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mode-mtt .mm-meta { margin-top: calc(100vw / 1242 * 12); font-size: calc(100vw / 1242 * 30); color: rgba(255, 236, 210, 0.72); }
.mode-mtt .mm-tag { margin-top: calc(100vw / 1242 * 10); font-size: calc(100vw / 1242 * 28); color: #f4c87a; }

/* ===== 赛事详情底部报名键（UIMatch_MttDetail: Button_SignUp 904x261） ===== */
.mtt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(100vw / 1242 * 24);
  margin-top: calc(100vw / 1242 * 36);
}
.mtt-actions .btn.ghost {
  flex: 0 0 auto;
  height: calc(100vw / 1242 * 130);
  padding: 0 calc(100vw / 1242 * 36);
  font-size: calc(100vw / 1242 * 36);
}
.mtt-signup {
  width: calc(100vw / 1242 * 904);
  max-width: 100%;
  height: calc(100vw / 1242 * 261);
  border: 0;
  border-radius: calc(100vw / 1242 * 18);
  background: url("../../assets/img/Atlas/Common/button_tuichu_normal_red.webp") center / 100% 100% no-repeat;
  color: #fff;
  font-size: calc(100vw / 1242 * 56);
  font-weight: 700;
}

/* ===== 后台控牌复用页 ===== */
.control-screen {
  width: 100%;
  height: var(--app-h, 100dvh);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0f16;
}

.control-head {
  flex: 0 0 auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid rgba(240, 218, 174, .14);
  background: #11161f;
  color: #f4ede1;
}

.control-back {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5c27c;
  font-size: 14px;
}

.control-title {
  min-width: 0;
}

.control-title b {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-title span {
  display: block;
  margin-top: 3px;
  color: #9fa7b5;
  font-size: 10px;
  line-height: 1.35;
}

.control-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0b0f14;
}

.mtt-control-entry {
  position: fixed;
  z-index: 20;
  right: 12px;
  top: max(12px, env(safe-area-inset-top));
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(224, 185, 100, .55);
  border-radius: 17px;
  background: rgba(9, 16, 31, .9);
  color: #f0d59a;
  font-size: 11px;
}

/* 钱包流水：每笔后面显示变动后余额 */
.record-row .bal {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 78px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(238, 231, 218, 0.72);
}

.record-row .bal small {
  font-size: 9.5px;
  color: rgba(238, 231, 218, 0.4);
  line-height: 1.1;
}

/* 头像编辑 */
.profile-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 2px 2px;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar .ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 214, 140, 0.55);
  background: rgba(255, 255, 255, 0.06) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.6);
}

.profile-avatar .ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.profile-field input {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 18, 0.7);
  color: #f4efe6;
  font-size: 15px;
}
