/* ---------- 大厅（极简：只留麻将） ---------- */
#stage.hall-page .bg { background-image: url("../assets/bg/hall.jpg"); }
#stage.hall-page .bg::after {
  background: radial-gradient(60% 60% at 50% 45%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55) 100%),
              linear-gradient(180deg, rgba(3, 12, 14, .6), rgba(3, 12, 14, .2) 40%, rgba(3, 12, 14, .7));
}

/* 顶栏 */
.topbar {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 16px;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px 6px 6px;
  border-radius: 44px;
  background: rgba(8, 22, 26, .55);
  border: 1px solid rgba(244, 213, 138, .22);
}
.avatar { position: relative; width: 70px; height: 70px; flex: 0 0 auto; }
.avatar img.face { position: absolute; inset: 9px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar img.frame { position: absolute; inset: 0; width: 70px; height: 70px; object-fit: contain; }
.user .meta { display: flex; flex-direction: column; gap: 3px; }
.user .name { font-size: 24px; font-weight: 600; color: #fff; }
.user .uid { font-size: 18px; color: var(--muted); letter-spacing: .5px; }

.wallet { margin-left: auto; display: flex; gap: 12px; }
.chip {
  height: 54px;
  min-width: 176px;
  padding: 0 18px 0 10px;
  border-radius: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 22, 26, .6);
  border: 1px solid rgba(244, 213, 138, .22);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: #f3ead2;
}
.chip .ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #4a2c00;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #dfae4b 70%, #b07f24);
}
.chip .ico.dia {
  background: radial-gradient(circle at 35% 30%, #bfefff, #49b7e0 70%, #2372a8);
  color: #06303f;
}

/* 中央入口 —— 直接用原版“红中血流”卡片，按像素窗口裁出来 */
.stage-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  z-index: 5;
}
.mj-card {
  width: 634px;
  height: 419px;
  border-radius: 18px;
  overflow: hidden;
  background-image: url("../assets/bg/five-block.png");
  background-repeat: no-repeat;
  background-size: 5009px auto;
  background-position: -5px -152px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 213, 138, .3),
              0 0 90px rgba(255, 210, 120, .12);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.mj-card:active { transform: scale(.99); }
.mj-card:hover { box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 213, 138, .55), 0 0 110px rgba(255, 210, 120, .2); }

.start {
  height: 74px;
  padding: 0 64px;
  border: none;
  border-radius: 37px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #3a2200;
  cursor: pointer;
  background: linear-gradient(180deg, #fff2c8, #f0c76a 55%, #cf9a3d);
  box-shadow: 0 12px 26px rgba(207, 154, 61, .4), inset 0 2px 0 rgba(255, 255, 255, .85);
  transition: transform .12s ease;
}
.start:active { transform: translateY(1px) scale(.99); }

.ver {
  position: absolute;
  right: 24px;
  bottom: 16px;
  font-size: 17px;
  color: #6f8380;
  z-index: 10;
}

/* ---------- 选锅 ---------- */
.pots {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(8, 22, 26, .55);
  border: 1px solid rgba(244, 213, 138, .22);
}
.pots .plabel { font-size: 18px; color: #cfc6b4; letter-spacing: 2px; margin-right: 4px; }
.pots .pot {
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #e9e2d4;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.pots .pot i { display: block; margin-top: 2px; font-size: 12px; font-style: normal; font-weight: 400; color: #97a1a7; }
.pots .pot:hover { transform: translateY(-2px); border-color: rgba(255, 205, 120, .5); }
.pots .pot.on {
  border-color: #ffcf6b;
  background: linear-gradient(180deg, rgba(255, 205, 110, .26), rgba(255, 205, 110, .05));
  box-shadow: 0 0 14px rgba(255, 190, 90, .3);
}
.pots .pot.on i { color: #ffd76a; }

/* ---------- 登录 / 注册遮罩 ---------- */
.auth {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(6, 20, 22, .55), rgba(3, 9, 10, .88) 100%);
  backdrop-filter: blur(9px) saturate(.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.auth.on { opacity: 1; pointer-events: auto; }

.auth-card {
  width: 476px;
  padding: 34px 38px 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(16, 40, 38, .96), rgba(7, 20, 21, .98));
  border: 1px solid rgba(244, 213, 138, .34);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 60px rgba(255, 200, 110, .07);
  transform: translateY(14px) scale(.97);
  transition: transform .34s cubic-bezier(.2, 1.3, .45, 1);
}
.auth.on .auth-card { transform: none; }
.auth.shake .auth-card { animation: authShake .34s ease; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
  88% { transform: translateX(3px); }
}

.auth-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.auth-logo { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.auth-logo img { width: 64px; height: 64px; object-fit: contain; opacity: .95; }
.auth-logo i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 27px;
  font-weight: 800;
  color: #ff5a49;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .75);
}
.auth-title h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f6ead0;
}
.auth-title p { margin: 6px 0 0; font-size: 15px; color: #8fa5a1; letter-spacing: .5px; }

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 20px;
}
.auth-tabs .tab {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 9px;
  background: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #93a9a5;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.auth-tabs .tab.on {
  color: #3a2200;
  background: linear-gradient(180deg, #ffeec0, #f0c76a 60%, #cf9a3d);
  box-shadow: 0 4px 12px rgba(207, 154, 61, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.field { position: relative; display: block; }
.field .lab {
  position: absolute;
  left: 15px;
  top: -8px;
  padding: 0 6px;
  font-size: 13px;
  color: #b9c9c4;
  background: #0c2422;
  border-radius: 4px;
  letter-spacing: 1px;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  outline: none;
  font-size: 18px;
  color: #f2f6f4;
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: #62756f; font-size: 15px; }
.field input:focus {
  border-color: rgba(255, 205, 110, .8);
  background: rgba(0, 0, 0, .46);
  box-shadow: 0 0 0 3px rgba(255, 195, 90, .14);
}
.field.hide { display: none; }

.auth-msg {
  min-height: 22px;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: .5px;
  color: #ff8a76;
  padding-left: 2px;
}
.auth-msg.ok { color: #6ee7a8; }

.auth-go {
  height: 56px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #3a2200;
  background: linear-gradient(180deg, #fff2c8, #f0c76a 55%, #cf9a3d);
  box-shadow: 0 10px 22px rgba(207, 154, 61, .32), inset 0 2px 0 rgba(255, 255, 255, .8);
  transition: transform .12s ease, filter .12s ease;
}
.auth-go:hover { filter: brightness(1.05); }
.auth-go:active { transform: translateY(1px) scale(.995); }
.auth-go[disabled] { filter: grayscale(.4) brightness(.8); cursor: default; }

.auth-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #7d918c;
  letter-spacing: .5px;
}

/* 顶栏退出按钮 */
#btn-logout { display: none; }
#btn-logout.on { display: grid; }
