:root {
  --orange: #FF8A3D;
  --orange-deep: #F26812;
  --orange-dark: #D85A0D;
  --gold: #FFC53D;
  --cream: #FFF7EC;
  --ink: #34200F;
  --muted: #A47A58;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(circle at 50% 36%, #243149 0%, #121723 62%, #0A0D14 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; border: 0; cursor: pointer; -webkit-appearance: none; }
img { display: block; }
[hidden] { display: none !important; }
.is-hidden { display: none !important; }

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: #73CDF3;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 600px) {
  .stage {
    box-shadow: 0 0 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}

.game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============ 首页 ============ */
.home {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  opacity: 1;
  transition: opacity .32s ease;
  background: #6DC7EF;
}
.home.hide { opacity: 0; pointer-events: none; }

.home-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.001);
  animation: artIn 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes artIn {
  from { transform: scale(1.035); filter: saturate(.92) brightness(.94); }
  to { transform: scale(1.001); filter: saturate(1.03) brightness(1); }
}

.home-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 29, 51, .30) 0%, rgba(7, 29, 51, 0) 17%, rgba(7, 29, 51, 0) 66%, rgba(35, 20, 12, .36) 100%),
    radial-gradient(120% 48% at 50% 106%, rgba(255, 168, 67, .20) 0%, rgba(255, 168, 67, 0) 70%);
  pointer-events: none;
}

.home-top {
  position: absolute;
  z-index: 4;
  top: calc(var(--safe-top) + 12px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 7px;
  border-radius: 999px;
  background: rgba(255, 252, 244, .94);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(20, 35, 55, .22), inset 0 -2px 0 rgba(233, 198, 139, .35);
  color: #3A2410;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.coin-pill b { font-variant-numeric: tabular-nums; }
.coin-dot {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  background: url("images/sprites/coin.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(153, 87, 0, .35));
}
.coin-pill.pop { animation: coinPop .3s ease; }
@keyframes coinPop {
  0% { transform: scale(1); }
  42% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.ad-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 164px;
  min-height: 72px;
  padding: 7px 9px 7px 7px;
  border-radius: 19px;
  text-align: left;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(65, 35, 96, .96) 0%, rgba(107, 47, 132, .94) 52%, rgba(148, 60, 112, .94) 100%);
  border: 1px solid rgba(255, 214, 128, .82);
  box-shadow: 0 10px 24px rgba(38, 20, 58, .38), inset 0 1px 0 rgba(255, 255, 255, .3);
  overflow: visible;
  transition: transform .14s ease, box-shadow .14s ease;
  animation: adGlow 2.8s ease-in-out infinite;
}
.ad-card:active { transform: scale(.96); box-shadow: 0 5px 14px rgba(38, 20, 58, .3); }
@keyframes adGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(38, 20, 58, .38), 0 0 0 0 rgba(255, 190, 71, .28), inset 0 1px 0 rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 10px 26px rgba(38, 20, 58, .42), 0 0 0 5px rgba(255, 190, 71, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
}
.ad-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  padding: 2px 6px;
  border-radius: 7px;
  background: linear-gradient(180deg, #FF7A46, #EF3E2F);
  border: 1px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .6px;
  box-shadow: 0 3px 8px rgba(170, 30, 20, .4);
}
.ad-chest {
  width: 57px;
  height: 57px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: url("images/sprites/chest.png") center / cover no-repeat;
  border: 1px solid rgba(255, 225, 156, .75);
  box-shadow: inset 0 0 12px rgba(255, 223, 132, .35), 0 3px 8px rgba(20, 10, 30, .3);
}
.ad-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ad-copy b { font-size: 12.5px; font-weight: 900; letter-spacing: .3px; text-shadow: 0 1px 2px rgba(20, 8, 30, .4); white-space: nowrap; }
.ad-copy em { font-style: normal; font-size: 10px; font-weight: 700; color: #FFD982; white-space: nowrap; }
.ad-play {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6D3108;
  background: radial-gradient(circle at 35% 30%, #FFF3B0, #FFC53D 45%, #F79A18 100%);
  box-shadow: 0 2px 0 #B96B06, inset 0 1px 0 #fff;
}
.ad-play .mp-icon { width: 20px; height: 20px; margin-left: 1px; }

.home-sheet {
  position: absolute;
  z-index: 5;
  left: 10px;
  right: 10px;
  bottom: calc(8px + var(--safe-bottom));
  height: 188px;
  padding: 14px 16px 12px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF4E3 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 18px 38px rgba(32, 18, 8, .30),
    0 3px 0 rgba(255, 255, 255, .85) inset,
    0 -1px 0 rgba(255, 176, 95, .22) inset;
}
.home-sheet::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34px;
  height: 4px;
  margin-left: -17px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 171, 92, .35), rgba(255, 138, 61, .62), rgba(255, 171, 92, .35));
}
.home-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #FFE0B4 0%, #FFBE79 58%, #F7943D 100%);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(203, 111, 39, .28), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.avatar img { width: 76%; height: 126%; object-fit: contain; object-position: center bottom; }
.home-title { flex: 1; min-width: 0; }
.home-title h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.4px;
  color: #35200F;
  text-shadow: 0 1px 0 #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-title p {
  margin: 3px 0 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .7px;
  color: #AE7B52;
}
.best-chip {
  flex: 0 0 auto;
  min-width: 60px;
  height: 40px;
  padding: 4px 9px;
  border-radius: 13px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #FFF3DE, #FFE5C0);
  border: 1px solid rgba(255, 185, 112, .55);
  box-shadow: inset 0 1px 0 #fff;
  color: #8B4A17;
}
.best-chip span { font-size: 8.5px; font-weight: 800; letter-spacing: .5px; margin-right: 2px; color: #B37A45; }
.best-chip b { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.best-chip i { font-style: normal; font-size: 9px; font-weight: 800; color: #B37A45; }

.btn-play {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: auto;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 0 rgba(160, 62, 2, .42);
  background: linear-gradient(180deg, #FFC24A 0%, #FF9D2E 28%, #FF7A1A 100%);
  border: 1px solid #FFD37B;
  box-shadow:
    0 6px 0 #D85A0D,
    0 12px 22px rgba(241, 105, 20, .38),
    inset 0 2px 0 rgba(255, 255, 255, .46);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-play::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -35%;
  width: 26%;
  height: 240%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
  animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55% { left: -40%; }
  82%, 100% { left: 128%; }
}
.btn-play .mp-icon { width: 22px; height: 22px; }
.btn-play:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #D85A0D, 0 5px 10px rgba(241, 105, 20, .26), inset 0 2px 0 rgba(255, 255, 255, .4);
  filter: brightness(.98);
}
.home-hint {
  margin: 7px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: #B28A67;
}

/* ============ HUD ============ */
.hud {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
}
.hud-top {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hud > * { pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(15, 26, 44, .46);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 6px 16px rgba(8, 18, 32, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.hud-pill .coin-dot { width: 23px; height: 23px; }
.hud-pill.pop { animation: coinPop .3s ease; }
.hud-dist {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(23, 37, 58, .35), 0 8px 20px rgba(8, 18, 32, .35);
  font-variant-numeric: tabular-nums;
}
.hud-dist b { font-size: 27px; font-weight: 900; letter-spacing: -.5px; }
.hud-dist span { font-size: 12px; font-weight: 800; opacity: .9; }
.hud-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 26, 44, .46);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 6px 16px rgba(8, 18, 32, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .12s ease, background .12s ease;
}
.icon-btn:active { transform: scale(.92); background: rgba(15, 26, 44, .62); }
.icon-btn .mp-icon { width: 20px; height: 20px; }

.go-toast {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.4);
  font-size: 62px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  color: #FFF7C9;
  text-shadow:
    0 3px 0 #F37B12,
    0 6px 0 #C95208,
    0 12px 28px rgba(0, 0, 0, .32);
  -webkit-text-stroke: 2px #FF8A3D;
  opacity: 0;
  pointer-events: none;
}
.go-toast.show { animation: goPop .95s cubic-bezier(.2, 1.25, .35, 1) both; }
@keyframes goPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(-6deg); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); }
  68% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.06); }
}
.play-hint {
  position: absolute;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(14, 25, 42, .52);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  white-space: nowrap;
  opacity: 0;
  animation: hintIn 4.2s ease forwards;
}
@keyframes hintIn {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  12%, 68% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* ============ 弹层 ============ */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 16, 29, .50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel {
  width: 100%;
  max-width: 342px;
  padding: 22px 20px 18px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF0DC 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .36), inset 0 1px 0 #fff;
  animation: panelIn .34s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.panel-kicker {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 3.4px;
  color: #C08A5B;
}
.panel h2 { margin: 5px 0 0; font-size: 25px; font-weight: 900; letter-spacing: -.5px; color: #35200F; }
.panel-sub { margin: 5px 0 18px; font-size: 12px; font-weight: 600; color: #AF8260; }
.pause-panel { max-width: 310px; }
.pause-panel h2 { margin-bottom: 2px; }

.score-big {
  margin-top: 1px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}
.score-big b {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #FF7A1A;
  text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(255, 186, 120, .4);
  font-variant-numeric: tabular-nums;
}
.score-big span { font-size: 17px; font-weight: 900; color: #C88E5D; }
.new-best {
  display: inline-block;
  margin: 6px 0 0;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #FFB13A, #FF7A1A);
  box-shadow: 0 3px 8px rgba(255, 122, 26, .35);
}
.over-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 16px;
}
.stat-cell {
  padding: 8px 6px 7px;
  border-radius: 14px;
  background: #FFF7EA;
  border: 1px solid #FFE3C4;
  box-shadow: inset 0 1px 0 #fff;
}
.stat-cell > span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; color: #B98A62; }
.stat-cell > b {
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 17px;
  font-weight: 900;
  color: #4A2B12;
  font-variant-numeric: tabular-nums;
}
.stat-cell .mp-icon { width: 15px; height: 15px; color: #E98A35; }
.stat-cell em { font-style: normal; }

.btn-primary, .btn-soft, .btn-text, .btn-revive {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary {
  height: 52px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #FFC24A 0%, #FF9D2E 25%, #FF7A1A 100%);
  border: 1px solid #FFD37B;
  box-shadow: 0 5px 0 #D85A0D, 0 10px 20px rgba(241, 105, 20, .32), inset 0 2px 0 rgba(255, 255, 255, .4);
}
.btn-primary .mp-icon { width: 21px; height: 21px; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #D85A0D, 0 5px 10px rgba(241, 105, 20, .22); }
.btn-soft {
  height: 47px;
  margin-top: 10px;
  color: #B65716;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .8px;
  background: linear-gradient(180deg, #FFF8ED, #FFEBD3);
  border: 1px solid #FFD4A7;
  box-shadow: 0 3px 0 #F0C69D, inset 0 1px 0 #fff;
}
.btn-soft .mp-icon { width: 19px; height: 19px; }
.btn-soft:active { transform: translateY(2px); box-shadow: 0 1px 0 #F0C69D; }
.btn-text {
  height: 42px;
  margin-top: 7px;
  color: #A87852;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  background: transparent;
}
.btn-text .mp-icon { width: 17px; height: 17px; }
.btn-text:active { opacity: .6; }

.btn-revive {
  flex-direction: column;
  gap: 2px;
  height: 55px;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4A2E72 0%, #6A3D9B 55%, #8D4BB5 100%);
  border: 1px solid #FFD982;
  box-shadow: 0 5px 0 #35204F, 0 10px 22px rgba(73, 38, 116, .36), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-revive:active { transform: translateY(3px); box-shadow: 0 2px 0 #35204F; }
.revive-label { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 900; letter-spacing: 1px; }
.revive-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .6px; color: rgba(255, 255, 255, .68); }
.ad-mini {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #FF7A46, #EF3E2F);
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .4px;
  color: #fff;
}

/* ============ 模拟广告 ============ */
.ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 30%, #18203B 0%, #080B13 72%);
}
.ad-box {
  width: 100%;
  max-width: 336px;
  border-radius: 22px;
  overflow: hidden;
  background: #151A26;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(120, 70, 180, .18);
  animation: panelIn .3s ease both;
}
.ad-creative {
  position: relative;
  height: 208px;
  background: url("images/sprites/chest.png") center 42% / cover no-repeat;
}
.ad-creative-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 18, .05) 30%, rgba(8, 6, 18, .82) 100%);
}
.ad-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .8px;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(4px);
}
.ad-creative-copy { position: absolute; left: 16px; right: 16px; bottom: 13px; display: flex; flex-direction: column; gap: 3px; }
.ad-creative-copy span { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #FFE3A5; }
.ad-creative-copy b { font-size: 22px; font-weight: 900; letter-spacing: .5px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.ad-progress { height: 4px; background: rgba(255, 255, 255, .12); }
.ad-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #FFC53D, #FF7A1A); transition: width .85s linear; }
.ad-status { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px 4px; color: #fff; font-size: 12px; font-weight: 700; }
.ad-status b { color: #FFC53D; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ad-note { margin: 0; padding: 2px 16px 15px; font-size: 9.5px; line-height: 1.55; color: rgba(255, 255, 255, .42); }

/* ============ 提示 ============ */
.toast {
  position: absolute;
  z-index: 100;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(16, 24, 38, .90);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  animation: toastIn .24s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.reward-float {
  position: absolute;
  z-index: 12;
  top: calc(var(--safe-top) + 56px);
  left: 24px;
  color: #FFD45A;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 0 2px 0 #B95A08, 0 6px 14px rgba(0, 0, 0, .3);
  pointer-events: none;
  animation: rewardUp 1.1s ease-out both;
}
@keyframes rewardUp {
  0% { opacity: 0; transform: translateY(8px) scale(.8); }
  22% { opacity: 1; transform: translateY(-2px) scale(1.08); }
  100% { opacity: 0; transform: translateY(-42px) scale(1); }
}

/* ============ 小屏适配 ============ */
@media (max-width: 360px) {
  .ad-card { width: 145px; min-height: 66px; gap: 6px; }
  .ad-chest { width: 50px; height: 50px; }
  .ad-copy b { font-size: 11.5px; }
  .ad-copy em { font-size: 9px; }
  .ad-play { width: 25px; height: 25px; }
  .home-sheet { padding-left: 13px; padding-right: 13px; }
  .home-title h1 { font-size: 17.5px; }
  .home-title p { font-size: 9.5px; letter-spacing: .3px; }
  .best-chip { min-width: 56px; padding: 3px 7px; }
  .btn-play { font-size: 20px; }
  .hud-dist b { font-size: 24px; }
}

@media (max-height: 730px) {
  .home-sheet { height: 158px; padding: 11px 14px 10px; }
  .home-sheet::before { display: none; }
  .home-head { margin-top: 0; }
  .avatar { width: 38px; height: 38px; }
  .home-title p { display: none; }
  .home-title h1 { font-size: 17px; }
  .best-chip { height: 36px; }
  .btn-play { height: 48px; font-size: 19px; }
  .home-hint { display: none; }
  .home-top { top: calc(var(--safe-top) + 9px); }
  .ad-card { min-height: 64px; }
  .ad-chest { width: 50px; height: 50px; }
  .pause-panel, .panel { padding: 18px 18px 14px; }
  .score-big b { font-size: 52px; }
}
