/* =========================================================
   血战到死 · 移动端牌局
   主色 #FF8A3D，卡通热血质感，竖屏铺满，无顶部标题栏。
   ========================================================= */
:root {
  --orange: #ff8a3d;
  --orange-2: #ffb15c;
  --gold: #ffd166;
  --gold-2: #ffe9b0;
  --red: #e23d28;
  --red-deep: #8e1712;
  --wine: #4a0f0e;
  --cream: #fff6e6;
  --ink: #2a100b;
  --muted: rgba(255, 235, 210, 0.6);
  --line: rgba(255, 190, 130, 0.2);
  --panel: rgba(40, 10, 8, 0.62);
  --panel-2: rgba(60, 16, 12, 0.7);
  --green-felt: #123f34;
  --green-felt-2: #0a2723;
  --tile-w: calc((min(100vw, 520px) - 34px) / 14);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; min-height: 100%;
  background: #0a0303;
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  overscroll-behavior: none;
}
body { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button {
  border: 0; background: none; padding: 0; cursor: pointer;
  transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease;
  -webkit-user-select: none; user-select: none;
}
button:active { transform: scale(.965); }
img { display: block; }
em, i { font-style: normal; }
b { font-weight: 800; }
[hidden], .hidden { display: none !important; }
::-webkit-scrollbar { width: 0; height: 0; }

#app {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #130505;
  box-shadow: 0 0 60px rgba(0, 0, 0, .8);
}
@media (min-width: 560px) {
  body { background: radial-gradient(circle at 50% 20%, #2a0a08, #070102 70%); }
  #app { border-left: 1px solid rgba(255, 170, 100, .08); border-right: 1px solid rgba(255, 170, 100, .08); }
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}
.screen.active { display: block; }

.mp-icon { width: 22px; height: 22px; flex: 0 0 auto; }

/* =========================================================
   启动
   ========================================================= */
.screen-boot {
  background: #100303;
}
.boot-bg {
  position: absolute; inset: 0;
  background: url("assets/bg-hero.svg") center 38% / cover no-repeat;
  opacity: .92;
}
.boot-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(30, 6, 4, .05), rgba(8, 2, 2, .82) 78%);
}
.boot-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 32px calc(env(safe-area-inset-bottom) + 30px);
  text-align: center;
}
.boot-sun {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, #fff0c4 0, #ffc06b 42%, rgba(255, 110, 45, .16) 68%, transparent 72%);
  filter: blur(.3px);
  animation: bootSun 3.4s ease-in-out infinite;
  margin-bottom: -10px;
}
.boot-logo {
  font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 54px; font-weight: 900; letter-spacing: 4px;
  color: #fff6df;
  text-shadow: 0 4px 0 #8e1712, 0 10px 26px rgba(0, 0, 0, .65), 0 0 30px rgba(255, 138, 61, .55);
  transform: rotate(-2deg);
}
.boot-sub { margin-top: 10px; font-size: 12px; letter-spacing: 5px; color: var(--gold-2); opacity: .85; }
.boot-loader { display: flex; gap: 8px; margin-top: 34px; }
.boot-loader span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: bootDot 1.1s ease-in-out infinite;
}
.boot-loader span:nth-child(2) { animation-delay: .16s; }
.boot-loader span:nth-child(3) { animation-delay: .32s; }
.boot-text { margin-top: 18px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.boot-retry {
  margin-top: 20px; padding: 10px 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #3a1207; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 138, 61, .3);
}

/* =========================================================
   大厅
   ========================================================= */
.screen-lobby {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #160606;
}
.screen-lobby::before {
  content: ""; position: fixed; inset: 0;
  background: url("assets/bg-hero.svg") center 30% / cover no-repeat;
  opacity: .98;
  pointer-events: none;
}
.screen-lobby::after {
  content: ""; position: fixed; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 2, 2, .18) 0%, rgba(12, 3, 3, .28) 36%, rgba(16, 4, 4, .8) 72%, #100303 100%),
    radial-gradient(circle at 50% 24%, transparent 0, rgba(10, 2, 2, .34) 78%);
  pointer-events: none;
}
.lobby-scroll {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 0;
}
.lobby-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-chip {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46, 12, 10, .78), rgba(25, 6, 5, .72));
  border: 1px solid rgba(255, 190, 130, .24);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  color: var(--cream);
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #7a2516, #2a0908);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-letter {
  font-weight: 900; color: #fff4dd;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.avatar-sm { width: 36px; height: 36px; border: 2px solid rgba(255, 209, 102, .8); flex: 0 0 auto; }
.player-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.player-meta b { font-size: 13px; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta small { font-size: 9px; color: var(--muted); letter-spacing: .5px; }
.player-chip > .mp-icon { width: 16px; height: 16px; opacity: .5; }
.coin-chip {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(76, 36, 8, .9), rgba(48, 20, 4, .84));
  border: 1px solid rgba(255, 209, 102, .45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: var(--gold-2);
  backdrop-filter: blur(10px);
}
.coin-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1b7, #ffc33e 55%, #c77a12 100%);
  box-shadow: inset 0 -2px 0 rgba(120, 60, 0, .45), 0 2px 6px rgba(0, 0, 0, .35);
  color: #8a4a08;
}
.coin-dot .mp-icon { width: 16px; height: 16px; }
.coin-chip b { font-size: 15px; letter-spacing: .5px; }
.coin-plus {
  width: 16px; height: 16px; margin-left: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: rgba(255, 209, 102, .18); color: var(--gold);
}

.hero { padding-top: 12px; text-align: center; }
.hero-kicker {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 10px; letter-spacing: 2px; color: var(--gold-2); opacity: .82;
}
.hero-kicker i { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-kicker i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.brand-title {
  position: relative;
  display: inline-block;
  margin: 4px 0 0;
  padding: 6px 16px 4px;
  font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 58px; font-weight: 900; letter-spacing: 3px; line-height: 1.05;
  color: #fff7e0;
  text-shadow: 0 3px 0 #7e110d, 0 5px 0 rgba(80, 8, 6, .75), 0 14px 30px rgba(0, 0, 0, .7), 0 0 22px rgba(255, 138, 61, .45);
  transform: rotate(-2.5deg);
  z-index: 1;
}
.brand-title::before {
  content: ""; position: absolute; z-index: -1;
  left: -24px; right: -24px; top: -18px; bottom: -18px;
  background: url("assets/logo-splat.svg") center / contain no-repeat;
  opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(160, 20, 10, .35));
}
.brand-sub { margin-top: 9px; font-size: 11px; letter-spacing: 2.6px; color: rgba(255, 238, 215, .72); }

.hero-table-wrap {
  position: relative;
  width: 100%;
  height: 286px;
  margin: 2px auto 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 145, 65, .26), transparent 68%);
  filter: blur(8px);
}
.hero-table {
  position: relative;
  width: 252px; height: 252px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #1c5b49 0, #124438 44%, #0a2a25 72%, #061a18 100%);
  border: 5px solid rgba(255, 196, 104, .7);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, .58),
    inset 0 0 0 3px rgba(255, 209, 102, .18),
    inset 0 12px 40px rgba(255, 166, 84, .08),
    0 0 50px rgba(255, 120, 40, .16);
}
.table-felt {
  position: absolute; inset: 8px; border-radius: 50%;
  border: 1px dashed rgba(255, 209, 102, .18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.table-mark {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  color: rgba(255, 223, 160, .32);
  font-size: 27px; font-weight: 900; line-height: 1.05; letter-spacing: 2px;
  text-align: center;
  transform: rotate(-8deg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.table-mark small { font-size: 16px; letter-spacing: 7px; }
.table-mark.small { font-size: 20px; color: rgba(255, 223, 160, .12); }
.table-mark.small small { font-size: 12px; }
.table-tile {
  position: absolute;
  width: 34px; height: 46px;
  border-radius: 5px;
  background: linear-gradient(160deg, #fffdf3, #ebdfc6);
  border: 1px solid #cdbb9c;
  box-shadow: 0 3px 0 #a89170, 0 6px 10px rgba(0, 0, 0, .35);
  color: #a5301f;
  font-weight: 900; font-size: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.table-tile span { font-size: 9px; color: #6f5237; margin-top: 2px; }
.tt1 { left: 34px; top: 38px; transform: rotate(-14deg); }
.tt2 { right: 30px; top: 44px; transform: rotate(11deg); color: #25734a; }
.tt3 { left: 34px; bottom: 40px; transform: rotate(9deg); color: #2566a0; }
.tt4 { right: 36px; bottom: 38px; transform: rotate(-8deg); }
.table-stack {
  position: absolute; width: 54px; height: 26px; left: 50%; bottom: 22px; transform: translateX(-50%);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #20564a, #0c2c28);
  border: 1px solid rgba(255, 209, 102, .25);
  border-radius: 4px;
  box-shadow: 0 3px 0 #071b18;
  opacity: .8;
}
.hero-seat {
  position: absolute;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 86px;
}
.h-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  padding: 2px;
  background: linear-gradient(160deg, #ffd98d, #b5531a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.h-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #2a0a08; }
.h-avatar.is-you { box-shadow: 0 0 0 3px rgba(255, 209, 102, .25), 0 6px 18px rgba(0, 0, 0, .5); }
.hero-seat em {
  font-size: 10px; color: rgba(255, 242, 222, .82); letter-spacing: .5px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(20, 5, 4, .55); border: 1px solid rgba(255, 190, 130, .14);
  max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-top { top: -8px; left: 50%; transform: translateX(-50%); }
.hs-left { left: -24px; top: 50%; transform: translateY(-50%); }
.hs-right { right: -24px; top: 50%; transform: translateY(-50%); }
.hs-bottom { bottom: -10px; left: 50%; transform: translateX(-50%); }

.match-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 72px; margin-top: 2px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffad5b 0%, #ff7a2f 44%, #e2441c 100%);
  border: 1px solid rgba(255, 230, 170, .7);
  box-shadow:
    0 6px 0 #8c1c0e,
    0 16px 30px rgba(170, 35, 10, .42),
    inset 0 2px 0 rgba(255, 255, 255, .35),
    inset 0 -4px 10px rgba(130, 20, 0, .28);
  color: #fff8e7;
  overflow: hidden;
  text-shadow: 0 2px 0 rgba(120, 20, 0, .4);
}
.match-btn::after {
  content: ""; position: absolute; inset: 3px; border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, .16); pointer-events: none;
}
.match-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.match-icon .mp-icon { width: 26px; height: 26px; }
.match-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.match-text b { font-size: 21px; letter-spacing: 2px; }
.match-text small { font-size: 10px; letter-spacing: 1.6px; opacity: .82; }
.match-shine {
  position: absolute; top: -40%; left: -30%; width: 34%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: rotate(18deg);
  animation: shine 3.6s ease-in-out infinite;
}
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 16px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px 9px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(52, 14, 11, .72), rgba(24, 6, 5, .7));
  border: 1px solid rgba(255, 190, 130, .16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--cream);
  backdrop-filter: blur(8px);
}
.quick-card b { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.quick-card small { font-size: 9px; color: var(--muted); }
.q-icon {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 138, 61, .14);
  border: 1px solid rgba(255, 138, 61, .24);
}
.q-icon .mp-icon { width: 20px; height: 20px; }
.q-orange { color: #ffb15c; }
.q-red { color: #ff7468; background: rgba(226, 61, 40, .16); border-color: rgba(226, 61, 40, .25); }
.q-gold { color: var(--gold); background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .22); }
.q-green { color: #6fd6a8; background: rgba(63, 180, 130, .12); border-color: rgba(63, 180, 130, .25); }

.daily-panel {
  margin-top: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(46, 12, 10, .78), rgba(20, 5, 4, .8));
  border: 1px solid rgba(255, 190, 130, .18);
  box-shadow: var(--shadow-card);
  padding: 14px 12px 8px;
  backdrop-filter: blur(10px);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px 9px;
}
.panel-head b { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .6px; }
.panel-head b .mp-icon { width: 17px; height: 17px; color: var(--orange); }
.panel-head span { font-size: 9px; color: var(--muted); }
.task-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 4px;
  border-top: 1px solid rgba(255, 190, 130, .09);
  text-align: left;
}
.task-icon {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255, 138, 61, .1);
  border: 1px solid rgba(255, 138, 61, .18);
  color: var(--orange-2);
}
.task-icon .mp-icon { width: 19px; height: 19px; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.task-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.task-title b { font-size: 12px; font-weight: 700; }
.task-title em { font-size: 9px; color: var(--muted); font-style: normal; white-space: nowrap; }
.task-progress {
  display: block; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); overflow: hidden;
}
.task-progress > span {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #ff9c4a, var(--gold));
  box-shadow: 0 0 8px rgba(255, 180, 80, .5);
  transition: width .4s ease;
}
.task-action {
  flex: 0 0 auto; min-width: 54px; padding: 6px 9px;
  border-radius: 999px; text-align: center;
  font-size: 10px; font-weight: 800; color: #401508;
  background: linear-gradient(180deg, #ffc06a, var(--orange));
  box-shadow: 0 3px 0 #9c2c11, 0 5px 12px rgba(220, 80, 20, .3);
}
.task-action.done { color: var(--muted); background: rgba(255, 255, 255, .07); box-shadow: none; }
.task-action.lock { color: rgba(255, 235, 210, .5); background: rgba(255, 255, 255, .06); box-shadow: none; }
.task-days { display: flex; gap: 5px; }
.task-days span {
  flex: 1; text-align: center; padding: 3px 0; border-radius: 6px;
  font-size: 8px; color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid transparent;
}
.task-days span.on { color: #3b1307; background: linear-gradient(180deg, #ffd98d, #ffb15c); border-color: #ffe6b0; font-weight: 800; }
.task-days span.done { color: var(--gold); border-color: rgba(255, 209, 102, .35); }

.lobby-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 0 4px;
  font-size: 9px; letter-spacing: .5px; color: rgba(255, 235, 210, .42);
}
.lobby-foot .mp-icon { width: 13px; height: 13px; opacity: .6; }
.bottom-space { height: calc(env(safe-area-inset-bottom) + 22px); }

/* =========================================================
   匹配
   ========================================================= */
.screen-matching {
  background: #0d0303;
}
.screen-matching::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/bg-hero.svg") center 40% / cover no-repeat;
  opacity: .55;
}
.screen-matching::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(255, 120, 40, .12), rgba(8, 2, 2, .9) 70%);
}
.matching-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 80px) 24px calc(env(safe-area-inset-bottom) + 30px);
  text-align: center;
}
.radar {
  position: relative; width: 180px; height: 180px;
  display: grid; place-items: center;
}
.radar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 170, 90, .28);
  animation: radar 2.4s ease-out infinite;
}
.radar-ring.r2 { animation-delay: .8s; }
.radar-ring.r3 { animation-delay: 1.6s; }
.radar-core {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  color: #4a1506;
  background: radial-gradient(circle at 35% 30%, #fff1b7, #ffb15c 55%, #e2561c 100%);
  box-shadow: 0 0 0 8px rgba(255, 138, 61, .12), 0 12px 30px rgba(220, 70, 20, .35);
}
.radar-core .mp-icon { width: 40px; height: 40px; }
.matching-title { margin: 26px 0 0; font-size: 24px; letter-spacing: 4px; }
.matching-sub { margin: 8px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.match-seats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  width: 100%; max-width: 380px; margin-top: 32px;
}
.match-seat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(52, 14, 11, .7), rgba(20, 5, 4, .7));
  border: 1px solid rgba(255, 190, 130, .14);
  min-height: 112px;
}
.match-seat .ms-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px dashed rgba(255, 190, 130, .25);
  color: rgba(255, 235, 210, .35);
}
.match-seat .ms-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.match-seat .ms-name { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match-seat.filled { border-color: rgba(255, 209, 102, .35); }
.match-seat.filled .ms-avatar { border: 2px solid rgba(255, 209, 102, .75); animation: pop .35s ease; }
.match-seat.self { background: linear-gradient(180deg, rgba(96, 36, 12, .8), rgba(38, 10, 6, .8)); }
.match-seat.self .ms-name { color: var(--gold-2); font-weight: 700; }
.btn-ghost {
  padding: 11px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 190, 130, .2);
  color: rgba(255, 240, 222, .8);
  font-size: 13px; font-weight: 700;
}
#btn-cancel-match { margin-top: auto; }

/* =========================================================
   牌局
   ========================================================= */
.screen-game {
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 34%, #2b120c 0, #140505 58%, #080202 100%);
}
.screen-game.active { display: flex; }
.game-top {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: linear-gradient(180deg, rgba(18, 5, 4, .9), rgba(18, 5, 4, 0));
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 190, 130, .15);
  color: rgba(255, 240, 220, .8);
}
.icon-btn .mp-icon { width: 20px; height: 20px; }
.game-status { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.game-status b { font-size: 12px; color: var(--cream); letter-spacing: .5px; }
.game-status small { font-size: 9px; color: var(--muted); }
.game-badge {
  padding: 5px 9px; border-radius: 999px;
  font-size: 9px; letter-spacing: .5px; color: var(--gold-2);
  background: rgba(255, 209, 102, .08);
  border: 1px solid rgba(255, 209, 102, .22);
}

.game-table {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 8px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 46%, #1b5b4a 0, #104336 46%, #082621 76%, #041412 100%);
  border: 2px solid rgba(255, 196, 104, .42);
  box-shadow: inset 0 0 0 4px rgba(255, 209, 102, .08), inset 0 22px 60px rgba(255, 160, 80, .07), 0 16px 36px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.game-felt { inset: 0; border-radius: 24px; border: 0; }
.felt-ring {
  position: absolute; inset: 12px; border-radius: 20px;
  border: 1px dashed rgba(255, 209, 102, .12);
  pointer-events: none;
}
.wall-pill {
  position: absolute; right: 8px; top: 8px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(7, 26, 22, .72);
  border: 1px solid rgba(255, 209, 102, .2);
  color: var(--gold-2); font-size: 10px;
}
.wall-pill .mp-icon { width: 13px; height: 13px; opacity: .8; }
.last-tile {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
}
.last-tile .tile { width: 44px; height: 60px; border-radius: 7px; }
.last-tile .tile .tn { font-size: 23px; }
.last-tile .tile .ts { font-size: 11px; }
.last-tile.flash { animation: lastPop .4s ease; }

.seat {
  position: absolute; z-index: 5;
  width: 98px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
  transition: filter .2s ease, opacity .2s ease;
}
.seat-top { top: 6px; left: 50%; transform: translateX(-50%); }
.seat-left { left: 2px; top: 46%; transform: translateY(-50%); }
.seat-right { right: 2px; top: 46%; transform: translateY(-50%); }
.seat-self { bottom: 4px; left: 50%; transform: translateX(-50%); }
.seat-avatar {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  padding: 2px;
  background: linear-gradient(160deg, #ffd98d, #a84816);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  transition: box-shadow .2s ease;
}
.seat-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #230807; }
.seat-avatar .avatar-letter { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #5f1b12; }
.seat-name {
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 9px; color: rgba(255, 240, 220, .88);
}
.seat-tags { display: flex; gap: 3px; align-items: center; justify-content: center; min-height: 13px; }
.seat-tag {
  font-size: 8px; padding: 1px 5px; border-radius: 999px;
  background: rgba(255, 209, 102, .14); color: var(--gold-2);
  border: 1px solid rgba(255, 209, 102, .22);
}
.seat-tag.out { background: rgba(120, 120, 120, .14); color: rgba(255, 255, 255, .45); border-color: transparent; }
.seat-tag.hu { background: rgba(255, 138, 61, .2); color: #ffd2a0; border-color: rgba(255, 138, 61, .4); }
.hp-bar { width: 58px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5a45, #ffc06a); transition: width .35s ease; }
.seat-back-row { display: flex; gap: 1px; margin-top: 1px; opacity: .75; }
.seat-back {
  width: 5px; height: 9px; border-radius: 1px;
  background: linear-gradient(180deg, #2b7d67, #144438);
  border: 1px solid rgba(255, 209, 102, .22);
}
.seat-melds { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 100px; margin-top: 1px; }
.meld-chip {
  font-size: 7px; padding: 1px 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .1); color: rgba(255, 243, 226, .8);
  border: 1px solid rgba(255, 209, 102, .14);
}
.seat.active .seat-avatar {
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .32), 0 0 22px rgba(255, 170, 70, .45), 0 4px 12px rgba(0, 0, 0, .4);
}
.seat.active .seat-name { color: var(--gold-2); font-weight: 700; }
.seat.hu .seat-avatar { background: linear-gradient(160deg, #ffe9a5, #d78318); }
.seat.out { opacity: .48; filter: grayscale(.7); }
.seat-out-mask {
  position: absolute; inset: -2px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 2, 2, .58);
  color: rgba(255, 255, 255, .72);
  font-size: 8px; font-weight: 800; letter-spacing: 1px;
}
.seat-bottom-hand { display: flex; gap: 1px; margin-top: 1px; }

.river {
  position: absolute;
  left: 82px; right: 82px; top: 88px; bottom: 66px;
  z-index: 2;
  overflow-y: auto;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px;
  padding: 5px 4px;
  border-radius: 12px;
  background: rgba(4, 18, 15, .16);
}
.river:empty::after {
  content: "牌河"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; color: rgba(255, 235, 210, .14); letter-spacing: 3px;
}
.river-tile {
  position: relative;
  width: 17px; height: 23px;
  border-radius: 3px;
  background: linear-gradient(160deg, #fffdf4, #e9ddc7);
  border: 1px solid #c8b696;
  box-shadow: 0 1px 0 #a58d6d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #a5301f; font-size: 9px; font-weight: 900; line-height: 1;
}
.river-tile.suit-1 { color: #22704a; }
.river-tile.suit-2 { color: #23639b; }
.river-tile span { font-size: 5px; font-weight: 600; color: #71543a; margin-top: 1px; }
.river-tile.f0 { outline: 1px solid rgba(255, 209, 102, .45); }
.river-tile.f1 { outline: 1px solid rgba(111, 214, 168, .4); }
.river-tile.f2 { outline: 1px solid rgba(255, 116, 104, .4); }
.river-tile.f3 { outline: 1px solid rgba(121, 165, 255, .4); }
.river-tile.newest { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255, 209, 102, .5); transform: translateY(-1px); }
.river-empty { font-size: 9px; color: rgba(255, 235, 210, .2); }

.inline-toast {
  position: absolute; left: 50%; top: 38%; z-index: 20;
  transform: translate(-50%, -50%) scale(.9);
  padding: 10px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 156, 74, .96), rgba(214, 56, 24, .96));
  border: 1px solid rgba(255, 230, 170, .55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 26px rgba(255, 138, 61, .35);
  font-size: 16px; font-weight: 900; letter-spacing: 2px; color: #fff8e7;
  text-shadow: 0 2px 0 rgba(110, 20, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.inline-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.hand-dock {
  flex: 0 0 auto;
  position: relative;
  padding: 3px 8px calc(env(safe-area-inset-bottom) + 5px);
  background:
    linear-gradient(180deg, rgba(8, 2, 2, 0) 0, rgba(12, 3, 3, .84) 18%, #100303 100%);
}
.hand-status {
  height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(255, 240, 220, .7); letter-spacing: .5px;
}
.hand-status.hot { color: var(--gold-2); font-weight: 700; }
.ting-hint { min-height: 14px; text-align: center; font-size: 9px; color: #ffd98d; letter-spacing: .4px; }
.ting-hint b { color: #fff; }
.action-bar {
  min-height: 0; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 2px 0 4px;
}
.action-btn {
  min-width: 58px; height: 36px; padding: 0 13px;
  border-radius: 13px;
  font-size: 13px; font-weight: 900; letter-spacing: 1px;
  color: #3b1206;
  background: linear-gradient(180deg, #ffe0a0, #ffc05a);
  border: 1px solid rgba(255, 240, 190, .7);
  box-shadow: 0 3px 0 #a45b11, 0 6px 14px rgba(0, 0, 0, .3);
}
.action-btn.hu { background: linear-gradient(180deg, #ffb36b, #ea3d1e); color: #fff7e3; box-shadow: 0 3px 0 #8b160c, 0 0 18px rgba(255, 100, 40, .35); }
.action-btn.gang { background: linear-gradient(180deg, #ffd27a, #e28a1a); }
.action-btn.peng { background: linear-gradient(180deg, #a8e6c6, #4cae82); color: #062e20; box-shadow: 0 3px 0 #22684b; }
.action-btn.pass { background: rgba(255, 255, 255, .1); color: rgba(255, 240, 220, .8); border-color: rgba(255, 190, 130, .18); box-shadow: none; }
.action-btn.swap { background: linear-gradient(180deg, #b9d7ff, #5c8edc); color: #062047; box-shadow: 0 3px 0 #2e5288; }
.action-btn:disabled { opacity: .4; }

.hand-melds { display: flex; gap: 6px; justify-content: center; min-height: 26px; padding: 1px 0; flex-wrap: wrap; }
.hand-meld { display: flex; gap: 1px; padding: 2px; border-radius: 5px; background: rgba(255, 255, 255, .04); }
.hand-meld .tile.mini { width: 15px; height: 21px; border-radius: 2px; box-shadow: 0 1px 0 #a58d6d; }
.hand-meld .tile.mini .tn { font-size: 9px; }
.hand-meld .tile.mini .ts { font-size: 5px; }

.hand-tiles {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 1px;
  min-height: calc(var(--tile-w) * 1.42 + 4px);
  padding: 2px 0 3px;
}
.tile {
  position: relative;
  flex: 0 0 auto;
  width: var(--tile-w);
  height: calc(var(--tile-w) * 1.42);
  max-width: 34px;
  border-radius: 4px;
  background: linear-gradient(160deg, #fffdf4 0, #f6efdf 58%, #e4d6be 100%);
  border: 1px solid #cdbb9c;
  box-shadow: 0 2px 0 #a89170, 0 3px 5px rgba(0, 0, 0, .3), inset 0 1px 0 #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #b12e1e;
  line-height: 1;
  padding: 1px 0;
  transform-origin: bottom center;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.hand-tiles .tile { cursor: pointer; }
.hand-tiles .tile:active { transform: translateY(-4px); }
.hand-tiles .tile.lift { transform: translateY(-4px); }
.hand-tiles .tile.disabled { opacity: .32; filter: grayscale(.35); }
.hand-tiles .tile.ting { box-shadow: 0 2px 0 #a89170, 0 0 0 2px #ffd166, 0 0 12px rgba(255, 209, 102, .5); }
.hand-tiles .tile.ting::after {
  content: "听"; position: absolute; top: -5px; right: -2px;
  width: 13px; height: 13px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 7px; font-weight: 900; color: #401305;
  background: linear-gradient(180deg, #ffe8a8, #ffc04e);
  border: 1px solid #fff1c4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.tile.suit-1 { color: #22704a; }
.tile.suit-2 { color: #23639b; }
.tile .tn { font-size: calc(var(--tile-w) * .54); font-weight: 900; letter-spacing: -.5px; }
.tile .ts { font-size: calc(var(--tile-w) * .3); color: #74563a; font-weight: 700; margin-top: 1px; }
.tile.tile-back {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 42%),
    linear-gradient(180deg, #2f8b72, #165044);
  border-color: #0a2c25;
  box-shadow: 0 2px 0 #07211c, inset 0 0 0 1px rgba(255, 209, 102, .2);
}
.tile.tile-back::after {
  content: ""; width: 55%; height: 55%;
  border: 1px solid rgba(255, 209, 102, .32);
  border-radius: 2px;
  transform: rotate(45deg);
}
.hand-self-info {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 20px;
  font-size: 9px; color: var(--muted);
}
.self-label { color: var(--gold-2); font-weight: 700; }
.hp-pill, .swap-pill {
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 190, 130, .12);
}
.swap-pill { color: #9fcaff; border-color: rgba(120, 170, 255, .18); }

/* 定缺 */
.dingque-layer {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 1, 1, .72);
  backdrop-filter: blur(5px);
}
.dingque-card {
  width: 100%; max-width: 360px;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(76, 20, 14, .98), rgba(26, 6, 5, .98));
  border: 1px solid rgba(255, 200, 120, .34);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  text-align: center;
  animation: pop .3s ease;
}
.dq-title { font-family: "STKaiti", "KaiTi", serif; font-size: 28px; font-weight: 900; letter-spacing: 4px; color: var(--gold-2); }
.dq-sub { margin: 7px 0 16px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.dq-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.dq-opt {
  padding: 14px 4px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 190, 130, .18);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--cream);
}
.dq-opt .dq-suit { font-family: "STKaiti", "KaiTi", serif; font-size: 34px; font-weight: 900; line-height: 1; }
.dq-opt .dq-count { font-size: 9px; color: var(--muted); }
.dq-opt[data-suit="0"] .dq-suit { color: #ff8f7e; }
.dq-opt[data-suit="1"] .dq-suit { color: #7fe0b3; }
.dq-opt[data-suit="2"] .dq-suit { color: #8ec2ff; }
.dq-opt:active { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 209, 102, .25); }
.dq-tip { margin-top: 13px; font-size: 9px; color: rgba(255, 235, 210, .4); }

.spectate-chip {
  position: absolute; z-index: 70; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 236px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 169, 85, .96), rgba(208, 65, 22, .96));
  border: 1px solid rgba(255, 230, 170, .5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  color: #fff7e4; font-size: 10px;
}
.spectate-chip .mp-icon { width: 15px; height: 15px; }
.spectate-chip b { padding: 3px 7px; border-radius: 999px; background: rgba(60, 15, 4, .28); font-size: 9px; }

/* =========================================================
   结算
   ========================================================= */
.screen-result {
  overflow-y: auto;
  background: #100303;
}
.screen-result::before {
  content: ""; position: fixed; inset: 0;
  background: url("assets/bg-hero.svg") center 30% / cover no-repeat;
  opacity: .7;
}
.screen-result::after {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 26%, rgba(255, 138, 61, .16), rgba(8, 2, 2, .88) 70%);
}
.result-scroll {
  position: relative; z-index: 2;
  padding: calc(env(safe-area-inset-top) + 48px) 20px 0;
  text-align: center;
}
.result-head { display: flex; flex-direction: column; align-items: center; }
.result-kicker { font-size: 10px; letter-spacing: 4px; color: var(--gold-2); opacity: .8; }
.result-title {
  margin: 8px 0 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 40px; letter-spacing: 3px; color: #fff6df;
  text-shadow: 0 3px 0 #7e110d, 0 10px 24px rgba(0, 0, 0, .55);
}
.rank-medal {
  width: 84px; height: 84px; margin-top: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 900; color: #3d1306;
  background: radial-gradient(circle at 35% 28%, #fff6cf, #ffd166 50%, #d68a1b 100%);
  border: 3px solid rgba(255, 246, 205, .8);
  box-shadow: 0 0 0 8px rgba(255, 209, 102, .1), 0 14px 30px rgba(0, 0, 0, .4);
  animation: pop .45s ease;
}
.rank-medal.low { background: radial-gradient(circle at 35% 28%, #e6e6e6, #9b8f84 55%, #5b4a42 100%); color: #2c1b15; }
.result-reason { margin: 12px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.reward-box {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(76, 28, 8, .8), rgba(30, 8, 5, .82));
  border: 1px solid rgba(255, 209, 102, .28);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.reward-coin {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1b7, #ffc33e 55%, #c77a12 100%);
  color: #8a4a08;
  box-shadow: inset 0 -2px 0 rgba(120, 60, 0, .4);
}
.reward-coin .mp-icon { width: 24px; height: 24px; }
.reward-main { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.reward-main b { font-size: 26px; color: var(--gold-2); letter-spacing: .5px; }
.reward-main small { font-size: 9px; color: var(--muted); }
.reward-tag { font-size: 9px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.reward-tag.on { color: #8ef0bd; background: rgba(63, 180, 130, .14); }
.streak-line { min-height: 18px; margin-top: 10px; font-size: 10px; color: var(--gold-2); }
.result-list {
  margin-top: 18px; border-radius: 18px; overflow: hidden;
  background: rgba(28, 8, 6, .7);
  border: 1px solid rgba(255, 190, 130, .14);
  box-shadow: var(--shadow-card);
}
.result-row {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 190, 130, .08);
  text-align: left;
}
.result-row:first-child { border-top: 0; }
.result-row.me { background: linear-gradient(90deg, rgba(255, 138, 61, .14), transparent); }
.result-row .rr-rank { width: 18px; font-size: 11px; font-weight: 900; color: var(--muted); text-align: center; }
.result-row .rr-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255, 209, 102, .35); flex: 0 0 auto; }
.result-row .rr-avatar img { width: 100%; height: 100%; }
.result-row .rr-avatar .avatar-letter { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; }
.result-row .rr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.result-row .rr-main b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row .rr-main small { font-size: 8px; color: var(--muted); }
.result-row .rr-score { font-size: 12px; font-weight: 900; color: var(--gold-2); }
.result-row.first .rr-rank { color: var(--gold); }
.btn-primary {
  width: 100%; height: 52px; border-radius: 17px;
  background: linear-gradient(180deg, #ffad5b, #ff7a2f 48%, #e2441c);
  border: 1px solid rgba(255, 230, 170, .6);
  box-shadow: 0 4px 0 #8c1c0e, 0 10px 22px rgba(170, 35, 10, .32), inset 0 2px 0 rgba(255, 255, 255, .3);
  color: #fff8e7; font-size: 16px; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(120, 20, 0, .35);
}
.btn-primary.big { margin-top: 18px; height: 54px; }
.btn-ghost.full { margin-top: 10px; width: 100%; }
.screen-result .btn-ghost { margin-bottom: 2px; }

/* =========================================================
   弹窗
   ========================================================= */
.modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 1, 1, .7);
  backdrop-filter: blur(6px);
  animation: fadeIn .18s ease;
}
.modal-card {
  width: 100%; max-width: 390px; max-height: 84vh;
  overflow-y: auto;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(72, 20, 14, .98), rgba(24, 6, 5, .99));
  border: 1px solid rgba(255, 200, 120, .3);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: pop .24s ease;
  text-align: center;
}
.modal-card.wide { max-width: 420px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 240, 220, .7);
}
.modal-close .mp-icon { width: 17px; height: 17px; }
.modal-title {
  margin: 4px 0 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 25px; letter-spacing: 2px; color: var(--gold-2);
}
.modal-sub { margin: 6px 0 0; font-size: 11px; line-height: 1.65; color: var(--muted); }
.modal-body { margin-top: 16px; text-align: left; }
.modal-foot { margin-top: 16px; }
.modal-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.modal-btn {
  width: 100%; height: 48px; border-radius: 15px;
  background: linear-gradient(180deg, #ffb568, #ff7c31 52%, #dd3d17);
  border: 1px solid rgba(255, 230, 170, .5);
  box-shadow: 0 4px 0 #8c1c0e, inset 0 2px 0 rgba(255, 255, 255, .28);
  color: #fff8e7; font-size: 14px; font-weight: 900; letter-spacing: 1px;
}
.modal-btn.ghost { height: 42px; background: rgba(255, 255, 255, .06); color: rgba(255, 240, 220, .75); border: 1px solid rgba(255, 190, 130, .16); box-shadow: none; font-weight: 600; }
.modal-btn:disabled { opacity: .45; }

/* 分享 */
.share-card {
  padding: 18px 12px; border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(255, 138, 61, .22), rgba(20, 5, 4, .2));
  border: 1px solid rgba(255, 190, 130, .16);
}
.share-logo {
  width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 20px;
  display: grid; place-items: center;
  font-family: "STKaiti", "KaiTi", serif; font-size: 22px; font-weight: 900; color: #fff7e0;
  background: linear-gradient(160deg, #ff8a3d, #a51a10);
  border: 2px solid rgba(255, 230, 170, .5);
  box-shadow: 0 10px 24px rgba(180, 30, 10, .4);
  transform: rotate(-4deg);
}
.share-name { font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.share-desc { margin-top: 4px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.share-link {
  margin-top: 13px; padding: 9px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 190, 130, .12);
  font-size: 9px; color: rgba(255, 235, 210, .55);
  word-break: break-all; text-align: left;
  max-height: 54px; overflow: hidden;
}
.share-progress { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.share-progress i { width: 26px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.share-progress i.on { background: linear-gradient(90deg, var(--orange), var(--gold)); box-shadow: 0 0 8px rgba(255, 180, 80, .4); }

/* 广告 */
.ad-player {
  position: relative; height: 210px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #264a7d, #0e1e3a);
  border: 1px solid rgba(120, 170, 255, .22);
  display: flex; align-items: center; justify-content: center;
}
.ad-player::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 30%);
  animation: adSweep 3s linear infinite;
}
.ad-brand { position: relative; text-align: center; }
.ad-brand .ad-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #ffe08a, #ff9a3c);
  color: #5a1d06;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.ad-brand .ad-icon .mp-icon { width: 34px; height: 34px; }
.ad-brand b { display: block; font-size: 14px; letter-spacing: 2px; color: #eaf2ff; }
.ad-brand small { display: block; margin-top: 4px; font-size: 9px; color: rgba(220, 235, 255, .55); }
.ad-timer {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .4); color: #dbeaff; font-size: 10px;
}
.ad-progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-top: 12px; overflow: hidden; }
.ad-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #7eb6ff, #d6ecff); transition: width .3s linear; }

/* 签到 */
.checkin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkin-day {
  padding: 14px 4px 12px; border-radius: 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 190, 130, .14);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.checkin-day .cd-label { font-size: 9px; color: var(--muted); }
.checkin-day .cd-coin { font-size: 20px; font-weight: 900; color: var(--gold-2); }
.checkin-day .cd-coin small { font-size: 9px; color: var(--muted); font-weight: 400; }
.checkin-day.on { border-color: rgba(255, 209, 102, .55); background: linear-gradient(180deg, rgba(255, 138, 61, .2), rgba(255, 138, 61, .05)); box-shadow: 0 0 18px rgba(255, 180, 80, .15); }
.checkin-day.done { opacity: .5; }
.checkin-day.done .cd-coin { color: var(--muted); }

/* 提现 */
.redpack {
  position: relative;
  margin: 0 auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 220, 150, .22), transparent 55%),
    linear-gradient(180deg, #c92a1a, #8e1712);
  border: 1px solid rgba(255, 220, 150, .38);
  box-shadow: 0 16px 36px rgba(120, 10, 5, .4), inset 0 1px 0 rgba(255, 255, 255, .14);
  overflow: hidden;
}
.redpack::before {
  content: ""; position: absolute; left: 50%; top: -46px; width: 190px; height: 96px;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffcf7a, #e88a24);
  border: 1px solid rgba(255, 240, 190, .55);
  box-shadow: 0 6px 16px rgba(80, 10, 0, .3);
}
.rp-label { position: relative; font-size: 10px; letter-spacing: 2px; color: rgba(255, 240, 210, .8); }
.rp-amount { position: relative; margin-top: 8px; font-size: 42px; font-weight: 900; color: #fff3d2; text-shadow: 0 3px 0 rgba(90, 8, 4, .4); }
.rp-amount small { font-size: 17px; margin-right: 3px; }
.rp-cost { position: relative; margin-top: 4px; font-size: 10px; color: rgba(255, 240, 210, .72); }
.rp-balance { position: relative; margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(40, 4, 2, .28); font-size: 10px; color: #ffe6b0; }
.rp-balance .mp-icon { width: 13px; height: 13px; }
.form-field { margin-top: 14px; text-align: left; }
.form-field label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; letter-spacing: .5px; }
.form-field input {
  width: 100%; height: 44px; padding: 0 13px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 190, 130, .18);
  color: var(--cream); font-size: 13px; outline: none;
}
.form-field input:focus { border-color: rgba(255, 209, 102, .5); }
.rp-rules { margin-top: 12px; font-size: 9px; line-height: 1.8; color: rgba(255, 235, 210, .4); text-align: left; }
.rp-rules b { color: rgba(255, 235, 210, .68); }

/* 通用进度/资料 */
.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.info-row b { color: var(--cream); }
.coin-big { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 6px; }
.coin-big .mp-icon { width: 38px; height: 38px; color: var(--gold); }
.coin-big b { font-size: 38px; color: var(--gold-2); }
.profile-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px 14px; }
.profile-row .avatar { width: 58px; height: 58px; border: 2px solid rgba(255, 209, 102, .6); }
.profile-row .pm { text-align: left; }
.profile-row .pm b { display: block; font-size: 16px; }
.profile-row .pm small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }
.pill-note { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 10px; color: var(--muted); line-height: 1.6; }

/* Toast */
.toast-root {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 64px);
  transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; width: min(88vw, 380px);
}
.toast {
  max-width: 100%;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(18, 5, 4, .94);
  border: 1px solid rgba(255, 200, 130, .28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  color: #fff1da; font-size: 11px; line-height: 1.4; text-align: center;
  animation: toastIn .24s ease;
}
.toast.err { border-color: rgba(255, 100, 80, .4); color: #ffc2b8; }
.toast.ok { border-color: rgba(255, 209, 102, .45); color: #ffe6b0; }

/* =========================================================
   动画
   ========================================================= */
@keyframes bootSun { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes bootDot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes shine { 0% { transform: translateX(-120%) rotate(18deg); } 55%, 100% { transform: translateX(420%) rotate(18deg); } }
@keyframes radar { 0% { transform: scale(.35); opacity: .8; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.82); opacity: .2; } 65% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes lastPop { 0% { transform: translate(-50%, -50%) rotate(-3deg) scale(.7); } 65% { transform: translate(-50%, -50%) rotate(-3deg) scale(1.12); } 100% { transform: translate(-50%, -50%) rotate(-3deg) scale(1); } }
@keyframes adSweep { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 小屏适配 */
@media (max-height: 720px) {
  .brand-title { font-size: 48px; }
  .hero-table-wrap { height: 232px; }
  .hero-table { width: 212px; height: 212px; }
  .h-avatar { width: 46px; height: 46px; }
  .hero-seat em { font-size: 9px; }
  .hs-left { left: -14px; }
  .hs-right { right: -14px; }
  .match-btn { height: 64px; }
  .daily-panel { margin-top: 12px; }
  .table-tile { width: 28px; height: 38px; font-size: 13px; }
  .tt1 { left: 24px; top: 30px; }
  .tt2 { right: 22px; top: 34px; }
  .tt3 { left: 24px; bottom: 30px; }
  .tt4 { right: 24px; bottom: 30px; }
  .result-scroll { padding-top: calc(env(safe-area-inset-top) + 28px); }
  .result-title { font-size: 34px; }
  .rank-medal { width: 72px; height: 72px; font-size: 25px; }
}
@media (max-width: 350px) {
  .quick-card b { font-size: 10px; }
  .quick-card small { font-size: 8px; }
  .brand-title { font-size: 42px; }
  .hero-table-wrap { height: 244px; }
  .hero-table { width: 218px; height: 218px; }
  .task-title em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   授权登录
   ========================================================= */
.screen-login {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #100303;
}
.screen-login::before {
  content: ""; position: fixed; inset: 0;
  background: url("assets/bg-hero.svg") center 30% / cover no-repeat;
  opacity: .62;
}
.screen-login::after {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 138, 61, .14), transparent 42%),
    linear-gradient(180deg, rgba(10, 2, 2, .18) 0, rgba(10, 2, 2, .68) 52%, #0d0202 100%);
}
.login-inner {
  position: relative; z-index: 2;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 34px) 20px calc(env(safe-area-inset-bottom) + 18px);
}
.login-hero {
  width: 100%;
  flex: 1 0 auto;
  min-height: 34vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.login-splat {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center;
  color: #4a1506;
  background: radial-gradient(circle at 34% 28%, #fff0b8, #ffb15c 52%, #e2561c 100%);
  border: 2px solid rgba(255, 240, 190, .55);
  box-shadow: 0 0 0 8px rgba(255, 138, 61, .1), 0 14px 32px rgba(180, 40, 10, .35);
  transform: rotate(-5deg);
}
.login-splat .mp-icon { width: 34px; height: 34px; }
.login-logo {
  margin: 16px 0 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 56px; font-weight: 900; letter-spacing: 5px;
  color: #fff6df;
  text-shadow: 0 4px 0 #8e1712, 0 12px 28px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 138, 61, .4);
  transform: rotate(-2deg);
}
.login-sub {
  margin: 10px 0 0;
  font-size: 11px; letter-spacing: 3px;
  color: rgba(255, 235, 210, .76);
}
.login-chips { display: flex; gap: 7px; margin-top: 15px; flex-wrap: wrap; justify-content: center; }
.login-chips span {
  padding: 4px 11px; border-radius: 999px;
  font-size: 9px; letter-spacing: .5px;
  color: var(--gold-2);
  background: rgba(255, 209, 102, .08);
  border: 1px solid rgba(255, 209, 102, .24);
}
.login-card {
  width: 100%; max-width: 400px;
  margin-top: 14px;
  padding: 32px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(72, 20, 14, .94), rgba(22, 5, 4, .96));
  border: 1px solid rgba(255, 200, 120, .3);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  text-align: center;
}
.login-avatar {
  position: relative;
  width: 66px; height: 66px;
  margin: -59px auto 8px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, #ffd98d, #a84816);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.login-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #230807; object-fit: cover; }
.login-badge {
  position: absolute; right: -4px; bottom: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  color: #3d1306;
  background: linear-gradient(180deg, #ffe8a8, #ffc04e);
  border: 2px solid #2a0a08;
}
.login-badge .mp-icon { width: 14px; height: 14px; }
.login-card h2 {
  margin: 2px 0 0;
  font-size: 20px; letter-spacing: 1.5px;
  color: #fff3d8;
}
.login-desc {
  margin: 8px 0 16px;
  font-size: 11px; line-height: 1.75;
  color: var(--muted);
}
.login-desc b { color: var(--gold-2); }
.wechat-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 62px;
  padding: 0 14px;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffb568, #ff7c31 52%, #dd3d17);
  border: 1px solid rgba(255, 230, 170, .55);
  box-shadow: 0 4px 0 #8c1c0e, 0 12px 24px rgba(170, 35, 10, .32), inset 0 2px 0 rgba(255, 255, 255, .28);
  color: #fff8e7;
  text-align: left;
}
.wechat-btn:disabled { opacity: .72; }
.wechat-btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(60, 15, 4, .2);
  border: 1px solid rgba(255, 240, 190, .35);
}
.wechat-btn-icon .mp-icon { width: 23px; height: 23px; color: #fff8e7; }
.wechat-btn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wechat-btn-text b { font-size: 16px; letter-spacing: 1px; }
.wechat-btn-text small { font-size: 9px; letter-spacing: .5px; opacity: .78; }
.wechat-btn-arrow { opacity: .7; }
.wechat-btn-arrow .mp-icon { width: 19px; height: 19px; }
.login-note {
  margin: 13px 0 0;
  font-size: 9px; line-height: 1.6;
  color: rgba(255, 235, 210, .42);
}
.login-foot {
  margin-top: 18px;
  font-size: 9px; letter-spacing: .5px;
  color: rgba(255, 235, 210, .4);
}
@media (max-height: 700px) {
  .login-inner { padding-top: calc(env(safe-area-inset-top) + 20px); }
  .login-hero { min-height: 28vh; }
  .login-logo { font-size: 46px; }
  .login-splat { width: 52px; height: 52px; border-radius: 16px; }
  .login-splat .mp-icon { width: 28px; height: 28px; }
  .login-card { padding-top: 28px; }
  .login-avatar { width: 56px; height: 56px; margin-top: -50px; }
}

/* 定缺推荐 */
.dq-opt.recommended {
  border-color: rgba(255, 209, 102, .62);
  background: linear-gradient(180deg, rgba(255, 138, 61, .18), rgba(255, 255, 255, .04));
  box-shadow: 0 0 18px rgba(255, 180, 80, .16);
}

/* =========================================================
   音效开关
   ========================================================= */
.hud-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.sound-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(52, 14, 11, .82), rgba(25, 6, 5, .78));
  border: 1px solid rgba(255, 190, 130, .24);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--gold-2);
  backdrop-filter: blur(10px);
}
.sound-btn .mp-icon { width: 20px; height: 20px; }
.sound-btn.muted { color: rgba(255, 235, 210, .36); }
.game-top .sound-btn { width: 34px; height: 34px; }
.game-top .sound-btn .mp-icon { width: 18px; height: 18px; }

.login-state {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  margin: 8px auto 0; padding: 4px 10px; border-radius: 999px;
  font-size: 9px; letter-spacing: .3px; color: var(--gold-2);
  background: rgba(255, 209, 102, .07);
  border: 1px solid rgba(255, 209, 102, .22);
}
.login-state .mp-icon { width: 13px; height: 13px; }
.login-back {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin-top: 14px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 190, 130, .16);
  color: rgba(255, 235, 210, .68);
  font-size: 11px; font-weight: 700;
}
.login-back .mp-icon { width: 15px; height: 15px; }

/* =========================================================
   封面（系统生成图，替换 images/gen/cover.jpg 即可）
   ========================================================= */
.screen-cover { overflow: hidden; background: #0a0303; }
.cover-art {
  position: absolute; inset: -2%;
  background: url("images/gen/cover.jpg") 82% 100% / auto 118% no-repeat;
  transform: scale(1.05);
  animation: coverDrift 22s ease-in-out infinite alternate;
  filter: saturate(1.08) brightness(.9);
}
.cover-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 2, 2, .82) 0%, rgba(8, 2, 2, .16) 23%, rgba(8, 2, 2, .04) 40%, rgba(8, 2, 2, .3) 50%, rgba(8, 2, 2, .88) 58%, rgba(8, 2, 2, .985) 66%, #080202 74%, #080202 100%),
    radial-gradient(ellipse at 28% 18%, rgba(255, 120, 40, .18), transparent 56%);
}
.cover-shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 2, 2, .62) 0%, rgba(8, 2, 2, .12) 46%, transparent 70%);
}
.cover-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 16px) 18px calc(env(safe-area-inset-bottom) + 18px);
}
.cover-brand { padding-top: clamp(14px, 9vh, 86px); text-align: left; }
.cover-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2.2px; color: var(--gold-2); opacity: .9;
}
.cover-kicker i { width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.cover-kicker i:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.cover-title {
  position: relative; z-index: 1;
  display: inline-block;
  margin: 8px 0 0; padding: 2px 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(46px, 15vw, 76px); font-weight: 900;
  line-height: 1.02; letter-spacing: 4px;
  color: #fff6df;
  text-shadow: 0 4px 0 #7e110d, 0 7px 0 rgba(80, 8, 6, .7), 0 16px 34px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 138, 61, .4);
  transform: rotate(-2.4deg);
}
.cover-title::before {
  content: ""; position: absolute; z-index: -1;
  left: -24px; right: -24px; top: -20px; bottom: -20px;
  background: url("assets/logo-splat.svg") center / contain no-repeat;
  opacity: .82;
  filter: drop-shadow(0 8px 20px rgba(160, 20, 10, .35));
}
.cover-sub {
  margin: 12px 0 0;
  font-size: 11px; letter-spacing: 2px;
  color: rgba(255, 238, 215, .82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.cover-panel {
  width: 100%; max-width: 420px; margin: 0 auto;
  padding: 13px 13px 11px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(44, 12, 9, .8), rgba(16, 4, 3, .94));
  border: 1px solid rgba(255, 190, 130, .28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
}
.cover-auth {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 190, 130, .13);
}
.cover-auth.is-on { border-color: rgba(255, 209, 102, .34); background: rgba(255, 209, 102, .05); }
.cover-auth-icon, .cover-auth-avatar {
  width: 31px; height: 31px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .25);
  color: var(--gold-2);
}
.cover-auth-avatar { padding: 2px; background: linear-gradient(150deg, #ffd98d, #a84816); border: 0; }
.cover-auth-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cover-auth-icon .mp-icon { width: 17px; height: 17px; }
.cover-auth-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; text-align: left; }
.cover-auth-main b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-auth-main small { font-size: 9px; color: var(--muted); }
.cover-auth.is-off .cover-auth-icon { color: rgba(255, 235, 210, .5); border-color: rgba(255, 190, 130, .16); }
.cover-start {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 62px; margin-top: 9px; padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffb15c 0%, #ff7a2f 50%, #e2441c 100%);
  border: 1px solid rgba(255, 230, 170, .58);
  box-shadow: 0 4px 0 #8c1c0e, 0 12px 24px rgba(170, 35, 10, .35), inset 0 2px 0 rgba(255, 255, 255, .3);
  color: #fff8e7; text-align: left; overflow: hidden;
  text-shadow: 0 2px 0 rgba(120, 20, 0, .38);
}
.cover-start::after {
  content: ""; position: absolute; inset: 3px; border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .16); pointer-events: none;
}
.cover-start-icon {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
}
.cover-start-icon .mp-icon { width: 25px; height: 25px; }
.cover-start-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cover-start-text b { font-size: 19px; letter-spacing: 1.5px; }
.cover-start-text small { font-size: 9px; letter-spacing: .8px; opacity: .82; }
.cover-start-arrow { width: 21px; height: 21px; opacity: .75; }
.cover-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 42px; margin-top: 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 190, 130, .22);
  color: rgba(255, 240, 220, .84);
  font-size: 12px; font-weight: 700;
}
.cover-auth-btn .mp-icon { width: 17px; height: 17px; opacity: .8; }
.cover-foot {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 10px;
  font-size: 9px; letter-spacing: .4px; color: rgba(255, 235, 210, .42);
}
.cover-foot .mp-icon { width: 13px; height: 13px; opacity: .6; }

@keyframes coverDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

/* =========================================================
   玩法介绍
   ========================================================= */
.screen-intro { background: #050101; overflow: hidden; }
.intro-media { position: absolute; inset: 0; overflow: hidden; }
.intro-video { width: 100%; height: 100%; object-fit: cover; background: #050101; }
.intro-fallback {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #2b0d08 0, #0d0303 62%, #050101 100%);
}
.intro-fallback::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/bg-hero.svg") center 38% / cover no-repeat;
  opacity: .26;
}
.intro-fallback::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 1, 1, .5) 0%, transparent 26%, transparent 62%, rgba(5, 1, 1, .84) 100%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(5, 1, 1, .46) 100%);
  pointer-events: none;
}
.intro-felt {
  position: absolute; left: 50%; top: 48%;
  width: min(76vw, 390px); height: min(76vw, 390px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #1d5f4c 0, #124438 44%, #082a24 72%, #041512 100%);
  border: 2px solid rgba(255, 196, 104, .38);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .52), inset 0 0 0 4px rgba(255, 209, 102, .08), inset 0 18px 50px rgba(255, 160, 80, .06);
  transition: box-shadow .6s ease;
}
.intro-glow {
  position: absolute; left: 50%; top: 48%;
  width: 94vw; height: 94vw; max-width: 470px; max-height: 470px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, .2), transparent 66%);
  filter: blur(8px);
  animation: introGlow 5.5s ease-in-out infinite;
  pointer-events: none;
}
.intro-table {
  position: absolute; left: 50%; top: 48%;
  width: min(76vw, 390px); height: min(76vw, 390px);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.intro-seat {
  position: absolute; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 82px; text-align: center;
  animation: introFade .8s ease both;
}
.intro-seat b {
  font-size: 9px; color: rgba(255, 242, 222, .88);
  padding: 1px 6px; border-radius: 999px;
  background: rgba(12, 3, 3, .55);
  border: 1px solid rgba(255, 190, 130, .12);
  max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.is-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  padding: 2px;
  background: linear-gradient(160deg, #ffd98d, #a84816);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .45);
}
.is-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #230807; }
.is-avatar.is-you { box-shadow: 0 0 0 3px rgba(255, 209, 102, .22), 0 5px 16px rgba(0, 0, 0, .5); }
.is-hp { width: 52px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.is-hp i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5a45, #ffc06a); transition: width .6s ease; }
.si-top { left: 50%; top: -16px; transform: translateX(-50%); }
.si-left { left: -22px; top: 50%; transform: translateY(-50%); }
.si-right { right: -22px; top: 50%; transform: translateY(-50%); }
.si-bottom { left: 50%; bottom: -18px; transform: translateX(-50%); }
.intro-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; z-index: 3;
}
.intro-center b {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 26px; font-weight: 900; letter-spacing: 3px;
  color: rgba(255, 223, 160, .55);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: color .5s ease, text-shadow .5s ease;
}
.intro-center small { font-size: 8px; letter-spacing: 3px; color: rgba(255, 235, 210, .38); }
.intro-hu, .intro-win {
  position: absolute; left: 50%; top: 50%;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 96px; font-weight: 900; line-height: 1;
  color: #ffd166;
  text-shadow: 0 5px 0 #8e1712, 0 0 34px rgba(255, 120, 40, .65);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.4) rotate(-18deg);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.5, .4, 1);
}
.intro-fallback.scene-2 .intro-hu {
  opacity: .96;
  transform: translate(-50%, -50%) scale(1) rotate(-10deg);
}
.intro-fallback.scene-3 .intro-win {
  opacity: .96;
  color: #fff0b8;
  transform: translate(-50%, -50%) scale(1) rotate(-8deg);
}
.intro-fallback.scene-2 .intro-felt {
  box-shadow: 0 0 0 5px rgba(255, 138, 61, .12), 0 30px 70px rgba(255, 90, 30, .2), inset 0 0 0 4px rgba(255, 209, 102, .1);
}
.intro-fallback.scene-3 .intro-center b { color: var(--gold); text-shadow: 0 0 22px rgba(255, 209, 102, .45); }
.intro-tile {
  position: absolute; z-index: 5;
  width: 32px; height: 44px; border-radius: 5px;
  background: linear-gradient(160deg, #fffdf3 0, #f6efdf 58%, #e4d6be 100%);
  border: 1px solid #cbb998;
  box-shadow: 0 3px 0 #a89170, 0 7px 14px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #a5301f; font-size: 16px; font-weight: 900; line-height: 1;
  animation: introTile 4.6s ease-in-out infinite;
}
.intro-tile small { font-size: 8px; color: #6f5237; margin-top: 1px; }
.intro-tile.it1 { left: 9%; top: 16%; transform: rotate(-12deg); }
.intro-tile.it2 { right: 8%; top: 21%; color: #22704a; animation-delay: .5s; transform: rotate(10deg); }
.intro-tile.it3 { left: 12%; bottom: 17%; color: #23639b; animation-delay: 1s; transform: rotate(8deg); }
.intro-tile.it4 { right: 11%; bottom: 14%; animation-delay: 1.5s; transform: rotate(-8deg); }
.intro-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(255, 150, 70, .05), transparent);
  animation: introScan 4.4s ease-in-out infinite;
  pointer-events: none;
}
.intro-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 1, 1, .62) 0%, transparent 18%, transparent 66%, rgba(4, 1, 1, .9) 100%),
    radial-gradient(circle at 50% 48%, transparent 40%, rgba(4, 1, 1, .36) 100%);
}
.intro-top {
  position: absolute; z-index: 6; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 0;
}
.intro-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 10px; letter-spacing: .8px; color: rgba(255, 242, 222, .88);
  background: rgba(10, 3, 3, .55);
  border: 1px solid rgba(255, 190, 130, .18);
  backdrop-filter: blur(8px);
}
.intro-label .mp-icon { width: 15px; height: 15px; color: var(--orange-2); }
.intro-skip {
  display: inline-flex; align-items: center; gap: 1px;
  padding: 7px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: rgba(255, 240, 220, .8);
  background: rgba(10, 3, 3, .55);
  border: 1px solid rgba(255, 190, 130, .18);
  backdrop-filter: blur(8px);
}
.intro-skip .mp-icon { width: 14px; height: 14px; opacity: .6; }
.intro-bottom {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0;
  padding: 26px 20px calc(env(safe-area-inset-bottom) + 22px);
  background: linear-gradient(180deg, transparent, rgba(5, 1, 1, .82) 46%);
}
.intro-caption { display: flex; flex-direction: column; gap: 4px; }
.intro-caption b {
  font-size: 22px; letter-spacing: 1.5px; color: #fff4de;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}
.intro-caption span { font-size: 10px; letter-spacing: 1.4px; color: rgba(255, 235, 210, .62); }
.intro-progress {
  height: 4px; margin-top: 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.intro-progress i {
  display: block; width: 0%; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9c4a, var(--gold));
  box-shadow: 0 0 10px rgba(255, 180, 80, .55);
  transition: width .1s linear;
}
.intro-hint { margin-top: 8px; font-size: 9px; letter-spacing: .6px; color: rgba(255, 235, 210, .38); }

@keyframes introFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes introGlow {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: .9; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes introTile {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@keyframes introScan {
  0% { transform: translateY(-40%); opacity: 0; }
  20% { opacity: .8; }
  80% { opacity: .5; }
  100% { transform: translateY(360%); opacity: 0; }
}

@media (max-height: 700px) {
  .cover-brand { padding-top: 4vh; }
  .cover-title { font-size: 48px; }
  .cover-sub { margin-top: 8px; font-size: 10px; }
  .cover-panel { padding: 11px 11px 9px; border-radius: 20px; }
  .cover-auth { min-height: 40px; padding: 5px 9px; }
  .cover-start { height: 56px; margin-top: 7px; border-radius: 16px; }
  .cover-start-text b { font-size: 17px; }
  .cover-auth-btn { height: 38px; margin-top: 6px; }
  .cover-foot { margin-top: 8px; }
  .intro-felt, .intro-table { width: 68vw; height: 68vw; }
  .is-avatar { width: 36px; height: 36px; }
  .intro-seat b { font-size: 8px; }
  .intro-center b { font-size: 21px; }
  .intro-hu, .intro-win { font-size: 78px; }
  .intro-caption b { font-size: 18px; }
  .intro-bottom { padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
}
@media (max-width: 360px) {
  .cover-title { font-size: 44px; letter-spacing: 2px; }
  .cover-kicker { font-size: 9px; letter-spacing: 1.4px; }
  .cover-start-text b { font-size: 17px; }
  .cover-panel { padding: 10px 10px 8px; }
  .cover-auth-main b { font-size: 11px; }
  .lobby-hud { gap: 5px; }
  .hud-actions { gap: 4px; }
  .sound-btn { width: 34px; height: 34px; }
  .player-meta b { max-width: 68px; }
  .coin-chip b { font-size: 13px; }
}
