/* ==========================================================
   深海捞珠 · 卡通深海风格（主色 #FF8A3D）
   移动端优先，单页游戏界面：首页 / 游戏中 / 结算 / 图鉴 / 商店
   ========================================================== */
:root {
  --theme: #FF8A3D;
  --theme-hi: #FFC05C;
  --theme-deep: #E2640F;
  --ink: #08243a;
  --ink-2: #0d3550;
  --text: #eefaff;
  --muted: #9fc9dd;
  --aqua: #61dcff;
  --line: rgba(132, 222, 255, .26);
  --glass: rgba(6, 45, 69, .55);
  --glass-2: rgba(5, 36, 57, .72);
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 12px 28px rgba(0, 20, 36, .35);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #031a2c;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  overscroll-behavior: none;
}

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 55% at 50% 0%, #0d5578 0%, #04233c 55%, #02131f 100%);
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: #04233d;
}

@media (min-width: 560px) {
  .app {
    box-shadow: 0 0 0 1px rgba(120, 220, 255, .12), 0 30px 80px rgba(0, 0, 0, .55);
  }
}

/* ---------- 通用 ---------- */
.mp-icon { flex: none; }
.chev { width: 18px; height: 18px; color: rgba(180, 231, 255, .55); }

.screen {
  position: absolute;
  inset: 0;
  display: none;
}
.screen.is-active { display: block; animation: screenIn .28s ease both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.coin {
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff6c9 0%, #ffd45f 42%, #f0a724 72%, #b46a08 100%);
  box-shadow: inset 0 -1px 2px rgba(120, 60, 0, .5), 0 0 8px rgba(255, 196, 76, .45);
  position: relative;
  flex: none;
}
.coin::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1mm solid rgba(255, 250, 214, .55);
  border-width: 1px;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(9, 58, 84, .92), rgba(4, 34, 54, .92));
  border: 1px solid rgba(255, 209, 130, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 12px rgba(0, 0, 0, .25);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #ffe9bd;
}
.coin-pill b { font-variant-numeric: tabular-nums; }
.coin-pill.small { height: 30px; font-size: 13px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 44, 68, .7);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  color: #b9ebff;
  transition: transform .12s ease, background .15s ease;
}
.icon-btn:active { transform: scale(.92); background: rgba(12, 70, 100, .85); }
.icon-btn .mp-icon { width: 20px; height: 20px; }

.cta {
  position: relative;
  width: 100%;
  min-height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  color: #4a2202;
  background: linear-gradient(180deg, #ffd07a 0%, #ffab45 38%, var(--theme) 66%, #f0741b 100%);
  border: 2px solid rgba(255, 243, 208, .85);
  box-shadow:
    0 6px 0 #a84a08,
    0 14px 24px rgba(0, 12, 24, .38),
    inset 0 2px 0 rgba(255, 255, 255, .6);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .1s ease, box-shadow .1s ease;
}
.cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #a84a08, 0 8px 16px rgba(0, 12, 24, .35), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.cta .mp-icon { width: 26px; height: 26px; }
.cta-label { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.cta-sub {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(90, 40, 3, .68);
  background: rgba(255, 249, 229, .5);
  border-radius: 999px;
  padding: 4px 8px;
}
.cta-shine {
  position: absolute;
  top: -60%;
  left: -30%;
  width: 34%;
  height: 220%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine {
  0%, 62% { left: -34%; opacity: 0; }
  70% { opacity: .9; }
  100% { left: 118%; opacity: 0; }
}
.cta-small {
  min-height: 58px;
  font-size: 20px;
  margin-top: 18px;
}

.btn-ghost {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(8, 46, 70, .66);
  border: 1px solid rgba(132, 222, 255, .28);
  color: #d9f4ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .12s ease, background .15s ease;
}
.btn-ghost:active { transform: scale(.97); background: rgba(14, 66, 96, .85); }

/* ---------- 海底背景 ---------- */
.sea-bg, .game-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 62% at 50% -8%, #8df0ff 0%, rgba(83, 216, 245, .82) 22%, rgba(20, 144, 188, .55) 42%, rgba(6, 76, 112, 0) 66%),
    linear-gradient(180deg, #1cb4d8 0%, #0d88b4 22%, #0a6389 42%, #07425f 64%, #052c44 82%, #031f33 100%);
}
.light-rays {
  position: absolute;
  top: -18%;
  left: -10%;
  right: -10%;
  height: 80%;
  background:
    linear-gradient(101deg, rgba(255, 255, 255, 0) 12%, rgba(186, 248, 255, .18) 20%, rgba(255, 255, 255, 0) 29%),
    linear-gradient(95deg, rgba(255, 255, 255, 0) 38%, rgba(186, 248, 255, .14) 46%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(85deg, rgba(255, 255, 255, 0) 62%, rgba(186, 248, 255, .16) 70%, rgba(255, 255, 255, 0) 79%);
  filter: blur(7px);
  transform-origin: top center;
  animation: rays 9s ease-in-out infinite alternate;
}
@keyframes rays {
  from { transform: skewX(-3deg) scaleY(1); opacity: .8; }
  to { transform: skewX(4deg) scaleY(1.06); opacity: 1; }
}

.bubbles { position: absolute; inset: 0; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -30px;
  left: var(--bx, 50%);
  width: var(--bs, 12px);
  height: var(--bs, 12px);
  border-radius: 50%;
  border: 1px solid rgba(216, 248, 255, .5);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .06) 60%);
  animation: bubbleUp var(--bd, 9s) linear infinite;
  animation-delay: var(--bdelay, 0s);
  opacity: 0;
}
@keyframes bubbleUp {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .75; }
  50% { transform: translate3d(14px, -42vh, 0); }
  100% { transform: translate3d(-8px, -96vh, 0); opacity: 0; }
}

.sea-sand, .game-sand {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -6%;
  height: 27%;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background:
    radial-gradient(70% 60% at 30% 30%, #f4d79c 0%, #e8c286 45%, rgba(226, 184, 124, 0) 70%),
    radial-gradient(60% 70% at 78% 34%, #f7dda8 0%, #dcb076 50%, rgba(220, 176, 118, 0) 72%),
    linear-gradient(180deg, #eccd93 0%, #d8ae72 55%, #b98c55 100%);
  box-shadow: inset 0 12px 24px rgba(255, 240, 200, .35), 0 -8px 30px rgba(1, 30, 48, .35);
}
.sea-sand::after, .game-sand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(120, 82, 40, .22) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 247, 214, .5) 0 1.6px, transparent 2px);
  background-size: 46px 38px, 63px 51px;
  background-position: 6px 8px, 24px 18px;
  opacity: .55;
}
.game-sand { z-index: 1; opacity: .9; }

.seabed {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  z-index: 1;
}

.chest {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 174px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(2, 20, 34, .35));
  animation: chestBob 6s ease-in-out infinite;
}
@keyframes chestBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
.starfish {
  display: none;
  position: absolute;
  right: 7%;
  bottom: 58px;
  width: 46px;
  height: 46px;
  z-index: 2;
  transform: rotate(13deg);
  pointer-events: none;
  opacity: .95;
  filter: drop-shadow(0 4px 6px rgba(80, 30, 8, .25));
}
@media (min-height: 780px) {
  .chest, .starfish { display: block; }
}

/* ---------- 首页 ---------- */
.screen-home { overflow: hidden; }
.home-scroll {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 18px);
  display: flex;
  flex-direction: column;
}
.home-scroll > * { flex: none; }
.home-scroll::-webkit-scrollbar { width: 0; }

.home-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.diver { display: flex; flex: 1 1 auto; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 241, 213, .75);
  box-shadow: 0 4px 12px rgba(0, 18, 32, .35), 0 0 16px rgba(255, 194, 120, .22);
  flex: none;
  background: #0a3f5f;
}
.avatar svg { width: 100%; height: 100%; display: block; }
.diver-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.diver-line { display: flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
.lv {
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  color: #ffe1a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.diver-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  color: #f2fbff;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xp {
  width: 100%;
  max-width: 108px;
  height: 6px;
  border-radius: 99px;
  background: rgba(3, 30, 48, .62);
  border: 1px solid rgba(160, 231, 255, .22);
  overflow: hidden;
}
.xp i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd45f, #ff9a3d);
  box-shadow: 0 0 8px rgba(255, 174, 61, .7);
  transition: width .4s ease;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-right .coin-pill { height: 30px; padding: 0 10px 0 7px; font-size: 13px; }
.top-right .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
.top-right .icon-btn .mp-icon { width: 18px; height: 18px; }

.hero {
  position: relative;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding-top: 8px; }
.kicker {
  display: block;
  font-size: 9px;
  letter-spacing: .34em;
  font-weight: 800;
  color: rgba(192, 245, 255, .75);
  text-indent: .34em;
}
.hero h1 {
  margin: 4px 0 0;
  font-size: clamp(36px, 11.5vw, 50px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fffdf6;
  text-shadow:
    0 2px 0 #e08a4a,
    0 4px 0 rgba(150, 68, 20, .55),
    0 10px 22px rgba(0, 26, 44, .5),
    0 0 34px rgba(255, 205, 130, .35);
}
.hero-copy p {
  margin: 9px auto 0;
  max-width: 310px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(224, 248, 255, .86);
  text-shadow: 0 1px 4px rgba(0, 24, 40, .55);
}

.hero-shell {
  position: relative;
  width: min(86vw, 320px);
  height: clamp(184px, 48vw, 246px);
  margin-top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shell-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 183, .5) 0%, rgba(255, 198, 130, .16) 45%, rgba(255, 198, 130, 0) 70%);
  filter: blur(6px);
  animation: halo 4.5s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.shell-svg {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 12px 18px rgba(0, 15, 28, .4));
  animation: shellFloat 5.2s ease-in-out infinite;
}
@keyframes shellFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}
.float-pearl {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #fff 0%, #ffe9d1 32%, #e8b98c 68%, #a97b52 100%);
  box-shadow: 0 0 12px rgba(255, 229, 188, .55), inset -2px -3px 6px rgba(120, 70, 30, .3);
  animation: pearlDrift 6s ease-in-out infinite;
}
.fp1 { width: 16px; height: 16px; left: 9%; top: 38%; }
.fp2 { width: 11px; height: 11px; right: 11%; top: 28%; animation-delay: -2s; background: radial-gradient(circle at 33% 27%, #fff 0%, #ffd7e6 34%, #e68bae 70%, #a95070 100%); }
.fp3 { width: 8px; height: 8px; right: 20%; bottom: 20%; animation-delay: -3.6s; background: radial-gradient(circle at 33% 27%, #fff 0%, #e2ccff 34%, #a580e0 70%, #66439f 100%); }
@keyframes pearlDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(5px, -12px, 0); }
}

.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.quick-row > * { min-width: 0; }
.quick-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 10px 9px 10px 10px;
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 62, 90, .8), rgba(4, 33, 52, .8));
  border: 1px solid rgba(132, 222, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 18px rgba(0, 18, 32, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease, border-color .15s ease;
}
.quick-card:active { transform: scale(.97); border-color: rgba(255, 190, 110, .5); }
.quick-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #ffcf8b;
  background: linear-gradient(160deg, rgba(255, 160, 70, .26), rgba(255, 110, 40, .12));
  border: 1px solid rgba(255, 195, 120, .28);
}
.quick-ico.shop {
  color: #8ee6ff;
  background: linear-gradient(160deg, rgba(76, 206, 255, .24), rgba(30, 120, 190, .12));
  border-color: rgba(120, 220, 255, .28);
}
.quick-ico .mp-icon { width: 21px; height: 21px; }
.quick-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.quick-txt b { font-size: 13.5px; color: #f4fcff; font-weight: 800; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-txt span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-card .chev { width: 15px; height: 15px; }

#btnStart { margin-top: 14px; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}
.home-stats .stat {
  border-radius: 14px;
  padding: 8px 4px 7px;
  text-align: center;
  background: rgba(4, 32, 50, .45);
  border: 1px solid rgba(132, 222, 255, .14);
}
.home-stats b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #fff3d8;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.home-stats span { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.home-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(173, 216, 235, .7);
}

/* ---------- 游戏场景 ---------- */
.screen-game { overflow: hidden; touch-action: none; }
.game-bg { background: linear-gradient(180deg, #1397c2 0%, #0b7097 24%, #075073 48%, #053a57 68%, #042a41 100%); }
.game-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 24, 40, .9) 0%, rgba(2, 24, 40, .55) 9%, rgba(2, 24, 40, 0) 27%),
    radial-gradient(70% 48% at 50% 100%, rgba(1, 20, 34, .55) 0%, rgba(1, 20, 34, 0) 70%);
}
.game-rays { opacity: .55; height: 62%; }
.game-seabed { height: 25%; z-index: 2; opacity: .82; }

.field {
  position: absolute;
  inset: 0;
  z-index: 3;
  touch-action: none;
}
.drop-layer { position: absolute; inset: 0; }

.drop {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  pointer-events: none;
}
.drop-inner {
  width: 100%;
  height: 100%;
  animation: dropSpin var(--spin, 7s) ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes dropSpin {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}
.pearl-orb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--p1) 0%, var(--p1) 7%, var(--p2) 43%, var(--p3) 82%, var(--p3) 100%);
  box-shadow:
    inset -6px -8px 16px rgba(0, 0, 0, .22),
    inset 5px 6px 12px rgba(255, 255, 255, .4),
    0 0 20px var(--glow),
    0 4px 10px rgba(0, 0, 0, .22);
}
.pearl-orb::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 16%;
  width: 30%;
  height: 21%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  filter: blur(1.5px);
  transform: rotate(-24deg);
}
.pearl-orb::after {
  content: "";
  position: absolute;
  right: 17%;
  bottom: 20%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  filter: blur(2px);
}
.drop-art { width: 100%; height: 100%; display: block; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .32)); }
.drop-art svg { width: 100%; height: 100%; display: block; }
.pearl-mini { display: block; width: 26px; height: 26px; flex: none; }
.row-pearl { display: block; }
.row-pearl .pearl-orb, .pearl-mini .pearl-orb { display: block; }

/* 捞网 */
.net {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  will-change: transform;
  filter: drop-shadow(0 10px 14px rgba(0, 10, 20, .38));
}
.net-svg { display: block; width: 100%; height: auto; overflow: visible; transition: filter .15s ease; }
.net.is-dragging .net-svg { filter: drop-shadow(0 0 10px rgba(140, 235, 255, .65)); }
.net.is-catch .net-svg { animation: netHit .26s ease-out; }
@keyframes netHit {
  0% { transform: scale(1); }
  35% { transform: scale(1.08, .9) translateY(3px); }
  100% { transform: scale(1); }
}
.net.is-bad .net-svg { animation: netShake .3s ease-out; }
@keyframes netShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px) rotate(-2deg); }
  55% { transform: translateX(6px) rotate(2deg); }
  80% { transform: translateX(-3px); }
}

/* HUD */
.hud-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 168px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 23, 39, .9) 0%, rgba(2, 23, 39, .62) 34%, rgba(2, 23, 39, 0) 100%);
}
.hud {
  position: absolute;
  top: calc(var(--safe-t) + 10px);
  left: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.hud > * { pointer-events: none; }
.hud .pause-btn { pointer-events: auto; }
.hud-time {
  flex: 1 1 auto;
  max-width: 178px;
  padding: 8px 12px 9px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 44, 68, .86), rgba(3, 29, 46, .82));
  border: 1px solid rgba(132, 222, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 12, 24, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hud-time-row { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.hud-time-row span { font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-right: 2px; }
.hud-time-row b {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: #eafaff;
  font-variant-numeric: tabular-nums;
}
.hud-time-row em { font-size: 9px; color: var(--muted); font-style: normal; }
.time-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(0, 18, 32, .6);
  overflow: hidden;
  border: 1px solid rgba(160, 231, 255, .14);
}
.time-track i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffe27d, var(--theme));
  box-shadow: 0 0 10px rgba(255, 154, 61, .65);
  transition: width .12s linear, background .3s ease;
}
.hud-time.low .hud-time-row b { color: #ff8b6b; animation: blink 1s steps(2, end) infinite; }
.hud-time.low .time-track i { background: linear-gradient(90deg, #ff9a6b, #ff4d3d); }
@keyframes blink { 50% { opacity: .45; } }

.hud-score {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-top: 1px;
}
.score-label { font-size: 9px; letter-spacing: .18em; color: rgba(196, 235, 250, .72); }
.hud-score b {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #fff8e8;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(160, 84, 22, .55), 0 6px 14px rgba(0, 20, 36, .45);
}
.combo-chip {
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(220, 247, 255, .65);
  background: rgba(3, 32, 50, .6);
  border: 1px solid rgba(132, 222, 255, .2);
  transition: all .18s ease;
}
.combo-chip.hot {
  color: #4a2202;
  background: linear-gradient(180deg, #ffd676, var(--theme));
  border-color: rgba(255, 244, 210, .8);
  box-shadow: 0 0 14px rgba(255, 160, 60, .5);
  transform: scale(1.06);
}
.pause-btn {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(5, 44, 68, .9), rgba(3, 29, 46, .85));
  border: 1px solid rgba(132, 222, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .12s ease;
}
.pause-btn:active { transform: scale(.9); }
.pause-btn span {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #bfeeff;
  box-shadow: 0 0 6px rgba(140, 225, 255, .5);
}

.tutorial {
  position: absolute;
  pointer-events: none;
  left: 50%;
  bottom: calc(var(--safe-b) + 218px);
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #e9fbff;
  white-space: nowrap;
  background: rgba(4, 34, 52, .68);
  border: 1px solid rgba(150, 232, 255, .24);
  box-shadow: 0 6px 16px rgba(0, 12, 24, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.tutorial .mp-icon { width: 16px; height: 16px; color: #8fe6ff; }
.tutorial.hide { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

/* 命中特效 */
.fx-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 218, .9);
  box-shadow: 0 0 16px rgba(255, 237, 190, .8);
  animation: ringOut .5s ease-out forwards;
  pointer-events: none;
  z-index: 7;
}
@keyframes ringOut {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(3.2); opacity: 0; }
}
.fx-text {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 900;
  color: #fff4cf;
  text-shadow: 0 2px 0 rgba(150, 80, 12, .5), 0 0 12px rgba(255, 210, 120, .7);
  animation: fxUp .8s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}
.fx-text.perfect {
  color: #ffe889;
  font-size: 17px;
  text-shadow: 0 2px 0 rgba(160, 84, 12, .6), 0 0 18px rgba(255, 220, 120, .95);
}
.fx-text.bad { color: #ff9a8c; text-shadow: 0 2px 0 rgba(90, 12, 12, .55), 0 0 12px rgba(255, 80, 60, .5); }
.fx-text.air { color: #9beeff; text-shadow: 0 2px 0 rgba(6, 60, 90, .55), 0 0 12px rgba(90, 220, 255, .6); }
@keyframes fxUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
  22% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1); }
}

.field.is-bad { animation: fieldShake .3s ease; }
@keyframes fieldShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-5px, 2px, 0); }
  50% { transform: translate3d(4px, -2px, 0); }
  75% { transform: translate3d(-2px, 1px, 0); }
}

.pause-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 17, 28, .66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.pause-mask.is-open { display: flex; }
.pause-card {
  width: 100%;
  max-width: 300px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(170deg, rgba(11, 65, 94, .98), rgba(4, 32, 50, .98));
  border: 1px solid rgba(140, 226, 255, .3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: popIn .25s ease both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.pause-card b { font-size: 21px; letter-spacing: .1em; color: #fff6e4; }
.pause-card p { margin: 8px 0 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.btn-main {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf79, var(--theme));
  color: #4a2202;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 0 #a84a08, inset 0 2px 0 rgba(255, 255, 255, .5);
  margin-bottom: 9px;
}
.btn-main:active { transform: translateY(3px); box-shadow: 0 1px 0 #a84a08; }
.pause-card .btn-ghost { width: 100%; }

/* ---------- 结算 ---------- */
.screen-result { overflow: hidden; }
.result-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 42% at 50% 18%, rgba(255, 190, 110, .28) 0%, rgba(255, 150, 60, .08) 45%, transparent 70%),
    radial-gradient(120% 60% at 50% 110%, #0b6c92 0%, #04283f 55%, #021725 100%);
}
.result-scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 26px) 20px calc(var(--safe-b) + 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.result-scroll > * { flex: none; }
.result-scroll::-webkit-scrollbar { width: 0; }
.result-inner {
  width: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.result-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(188, 238, 255, .72);
}
.result-title {
  margin: 7px 0 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fffaf0;
  text-shadow: 0 2px 0 rgba(170, 90, 20, .5), 0 10px 24px rgba(0, 15, 28, .5);
}
.result-score {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.result-score b {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #ffe6a6;
  background: linear-gradient(180deg, #fffbe8 8%, #ffd066 45%, #ff9a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(150, 70, 10, .45)) drop-shadow(0 10px 18px rgba(0, 10, 20, .45));
}
.result-score span { font-size: 14px; color: #ffd9a1; font-weight: 800; }
.new-record {
  position: absolute;
  top: -6px;
  right: -58px;
  display: none;
  padding: 4px 8px;
  border-radius: 8px;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #4a2202;
  background: linear-gradient(180deg, #ffe08d, #ffab3d);
  box-shadow: 0 3px 8px rgba(150, 70, 0, .35);
  transform: rotate(6deg);
}
.new-record.show { display: block; animation: badgePop .4s ease both; }
@keyframes badgePop {
  from { transform: rotate(6deg) scale(0); }
  70% { transform: rotate(6deg) scale(1.15); }
  to { transform: rotate(6deg) scale(1); }
}

.result-stats { display: flex; gap: 8px; margin-top: 16px; width: 100%; }
.stat-chip {
  flex: 1;
  padding: 9px 4px 8px;
  border-radius: 14px;
  background: rgba(6, 44, 66, .62);
  border: 1px solid rgba(132, 222, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.stat-chip b { display: block; font-size: 18px; font-weight: 900; color: #fff2d2; font-variant-numeric: tabular-nums; }
.stat-chip span { font-size: 10px; color: var(--muted); }

.loot-wrap {
  width: 100%;
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(165deg, rgba(9, 56, 82, .72), rgba(4, 30, 46, .72));
  border: 1px solid rgba(132, 222, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.loot-title { margin: 0 0 9px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.loot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.loot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(3, 27, 42, .5);
  border: 1px solid rgba(132, 222, 255, .12);
}
.loot-item .pearl-mini { width: 26px; height: 26px; flex: none; }
.loot-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.loot-info b { font-size: 11.5px; color: #eafaff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-info span { font-size: 9.5px; color: var(--muted); }
.loot-count { margin-left: auto; font-size: 13px; font-weight: 900; color: #ffd88e; }
.loot-empty { display: none; margin: 4px 0; font-size: 11.5px; line-height: 1.6; color: rgba(180, 216, 232, .8); }
.loot-empty.show { display: block; }

.result-value { margin: 12px 0 0; font-size: 11.5px; color: rgba(190, 226, 242, .85); }
.result-value b { color: #ffd88e; font-size: 14px; font-weight: 900; }
.result-scroll .cta { margin-top: 16px; }
.result-actions { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.result-actions .btn-ghost { flex: 1; }

/* ---------- 图鉴 / 商店 ---------- */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateY(102%);
  transition: transform .32s cubic-bezier(.22, .8, .3, 1);
  background:
    radial-gradient(110% 55% at 50% -6%, #0d80ab 0%, #075377 34%, #052f49 62%, #031d2e 100%);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, .45);
  visibility: hidden;
}
.sheet.is-open { transform: translateY(0); visibility: visible; }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-t) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(4, 42, 64, .92), rgba(4, 42, 64, .55) 80%, transparent);
  border-bottom: 1px solid rgba(132, 222, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 54, 78, .8);
  border: 1px solid rgba(132, 222, 255, .24);
  flex: none;
  transition: transform .12s ease;
}
.back-btn:active { transform: scale(.9); }
.back-arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid #c9f1ff;
  border-bottom: 2px solid #c9f1ff;
  transform: rotate(45deg);
  margin-left: 3px;
  border-radius: 1px;
}
.sheet-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #f4fcff;
  text-shadow: 0 2px 6px rgba(0, 15, 28, .5);
  flex: 1;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(var(--safe-b) + 26px);
}
.sheet-body::-webkit-scrollbar { width: 0; }

.shop-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(2, 26, 42, .55);
  border: 1px solid rgba(132, 222, 255, .16);
  margin-bottom: 12px;
}
.shop-tabs button {
  flex: 1;
  height: 36px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(196, 232, 247, .7);
  letter-spacing: .04em;
  transition: all .16s ease;
}
.shop-tabs button.on {
  color: #4a2202;
  background: linear-gradient(180deg, #ffd07a, var(--theme));
  box-shadow: 0 3px 10px rgba(180, 80, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.shop-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(174, 216, 234, .82);
}
.shop-note b { color: #ffd88e; }

.list { display: flex; flex-direction: column; gap: 8px; }
.shop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(10, 60, 86, .74), rgba(4, 32, 48, .76));
  border: 1px solid rgba(132, 222, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.row-pearl { width: 42px; height: 42px; flex: none; }
.row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-info b { font-size: 13.5px; font-weight: 800; color: #f2fcff; display: flex; align-items: center; gap: 6px; }
.row-info b em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; color: #ffdba0; background: rgba(255, 160, 60, .16); border: 1px solid rgba(255, 190, 110, .22); }
.row-info span { font-size: 10.5px; color: var(--muted); }
.row-info span b { display: inline; font-size: 10.5px; color: #ffd88e; }
.row-price { flex: none; text-align: right; font-size: 11px; color: #ffd88e; font-weight: 800; }
.row-price small { display: block; font-size: 9px; color: var(--muted); font-weight: 500; }
.row-actions { display: flex; flex-direction: column; gap: 4px; flex: none; }
.btn-sell, .btn-buy {
  min-width: 58px;
  height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #4a2202;
  background: linear-gradient(180deg, #ffd586, #ffab45);
  border: 1px solid rgba(255, 244, 210, .55);
  box-shadow: 0 2px 0 rgba(150, 70, 8, .55);
  transition: transform .1s ease;
}
.btn-sell:active, .btn-buy:active { transform: translateY(2px); box-shadow: none; }
.btn-sell.ghost, .btn-buy.ghost {
  color: #c9edff;
  background: rgba(10, 60, 86, .9);
  border-color: rgba(132, 222, 255, .26);
  box-shadow: none;
}
.btn-buy:disabled {
  color: rgba(190, 218, 232, .42);
  background: rgba(8, 45, 65, .8);
  border-color: rgba(132, 222, 255, .12);
  box-shadow: none;
}
.empty {
  padding: 30px 18px;
  border-radius: 18px;
  text-align: center;
  background: rgba(4, 32, 48, .55);
  border: 1px dashed rgba(132, 222, 255, .24);
}
.empty b { display: block; font-size: 14px; color: #e9f9ff; margin-bottom: 6px; }
.empty span { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.empty .btn-ghost { margin-top: 12px; min-height: 40px; font-size: 13px; }

.progress-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(18, 82, 108, .8), rgba(4, 34, 50, .8));
  border: 1px solid rgba(255, 203, 130, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  margin-bottom: 12px;
}
.progress-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--theme) calc(var(--pct) * 1%), rgba(2, 27, 42, .75) 0);
  box-shadow: 0 0 18px rgba(255, 160, 60, .2);
}
.progress-ring i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #073a54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  color: #ffe4b0;
}
.progress-txt b { display: block; font-size: 14px; color: #fff6e4; margin-bottom: 4px; }
.progress-txt span { font-size: 10.5px; line-height: 1.5; color: var(--muted); }

.pearl-grid { display: flex; flex-direction: column; gap: 8px; }
.pearl-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(9, 57, 82, .72), rgba(4, 30, 46, .74));
  border: 1px solid rgba(132, 222, 255, .16);
}
.pearl-card.locked { opacity: .68; }
.pearl-card .row-pearl { width: 44px; height: 44px; }
.pearl-card.locked .row-pearl { filter: grayscale(1) brightness(.7); }
.pearl-body { flex: 1; min-width: 0; }
.pearl-body b { font-size: 13.5px; color: #f4fcff; display: flex; align-items: center; gap: 6px; }
.pearl-body b em { font-style: normal; font-size: 9px; color: #ffdba0; background: rgba(255, 160, 60, .14); border: 1px solid rgba(255, 190, 110, .2); padding: 1px 5px; border-radius: 5px; }
.pearl-body .sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.dots { display: flex; gap: 2px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 220, 160, .18); }
.dots i.on { background: #ffc45f; box-shadow: 0 0 5px rgba(255, 186, 70, .7); }
.pearl-end { text-align: right; flex: none; }
.pearl-end b { display: block; font-size: 14px; color: #ffe3ab; font-weight: 900; }
.pearl-end span { font-size: 9.5px; color: var(--muted); }
.eco-foot {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(4, 30, 46, .55);
  border: 1px solid rgba(132, 222, 255, .14);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}
.eco-foot b { color: #a9e9c9; }

.upgrade-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 61, 88, .78), rgba(4, 30, 46, .78));
  border: 1px solid rgba(132, 222, 255, .18);
  margin-bottom: 9px;
}
.upgrade-top { display: flex; align-items: center; gap: 10px; }
.upgrade-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #ffd08a;
  background: rgba(255, 156, 66, .14);
  border: 1px solid rgba(255, 190, 110, .24);
}
.upgrade-ico .mp-icon { width: 22px; height: 22px; }
.upgrade-info { flex: 1; min-width: 0; }
.upgrade-info b { font-size: 13.5px; color: #f4fcff; }
.upgrade-info span { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.upgrade-lv { font-size: 10px; font-weight: 800; color: #ffd88e; margin-top: 3px; }
.upgrade-lv .dots { display: inline-flex; margin-left: 5px; vertical-align: middle; }
.upgrade-buy {
  margin-top: 11px;
  width: 100%;
  height: 38px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
  color: #4a2202;
  background: linear-gradient(180deg, #ffd586, #ffab45);
  border: 1px solid rgba(255, 244, 210, .5);
  box-shadow: 0 3px 0 rgba(150, 70, 8, .5);
}
.upgrade-buy:active { transform: translateY(2px); box-shadow: none; }
.upgrade-buy:disabled {
  color: rgba(190, 218, 232, .5);
  background: rgba(8, 45, 65, .8);
  border-color: rgba(132, 222, 255, .14);
  box-shadow: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 34px);
  z-index: 90;
  transform: translate(-50%, 12px);
  max-width: 84%;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff4df;
  text-align: center;
  background: rgba(4, 30, 46, .95);
  border: 1px solid rgba(255, 199, 120, .35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 小尺寸适配 ---------- */
@media (max-height: 700px) {
  .hero-shell { height: clamp(140px, 38vw, 190px); }
  .hero-copy p { margin-top: 6px; font-size: 12px; }
  .hero h1 { font-size: clamp(32px, 10.5vw, 44px); }
  .home-stats { margin-top: 10px; }
  .home-hint { display: none; }
  .result-scroll { padding-top: calc(var(--safe-t) + 16px); }
  .result-score b { font-size: 54px; }
  .loot-wrap { margin-top: 12px; }
}
@media (max-height: 620px) {
  .hero { margin-top: 0; }
  .hero-shell { width: min(68vw, 220px); height: 124px; margin-top: -2px; }
  .hero-copy { padding-top: 2px; }
  .hero-copy p { display: none; }
}

@media (max-width: 350px) {
  .home-scroll { padding-left: 12px; padding-right: 12px; }
  .home-top { gap: 6px; }
  .avatar { width: 40px; height: 40px; }
  .diver { gap: 7px; }
  .diver-title { font-size: 12px; }
  .xp { max-width: 84px; }
  .top-right { gap: 5px; }
  .top-right .coin-pill { height: 28px; padding: 0 8px 0 6px; font-size: 12px; }
  .top-right .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
  .top-right .icon-btn .mp-icon { width: 17px; height: 17px; }
  .quick-card { padding: 9px 7px; gap: 7px; border-radius: 16px; }
  .quick-ico { width: 32px; height: 32px; border-radius: 10px; }
  .quick-ico .mp-icon { width: 19px; height: 19px; }
  .quick-txt b { font-size: 12.5px; }
  .quick-txt span { font-size: 9.5px; }
  .quick-card .chev { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .shell-svg, .float-pearl, .shell-halo, .light-rays, .cta-shine { animation: none !important; }
}
