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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #062541;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0b5c9e;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   首页
   ========================================================== */
.home {
  background:
    linear-gradient(180deg, #1677c9 0%, #2b93dc 18%, #48afe8 40%, #7ecdf4 62%, #bceaff 81%, #e9faff 100%);
}

.home-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sun-glow {
  position: absolute;
  width: 90vw;
  height: 60vh;
  left: 38%;
  top: -18%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .72), rgba(255, 242, 190, .28) 42%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
}

.sky-streaks {
  position: absolute;
  inset: -20% -10%;
  background: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0) 0 58px, rgba(255, 255, 255, .11) 60px 62px, rgba(255, 255, 255, 0) 64px 130px);
  opacity: .7;
  transform: rotate(-2deg);
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 150px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  filter: blur(10px);
  opacity: .9;
  will-change: transform;
  animation: cloudDrift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
}

.cloud::before {
  width: 72px;
  height: 66px;
  left: 18px;
  bottom: 4px;
}

.cloud::after {
  width: 58px;
  height: 52px;
  right: 20px;
  bottom: 0;
}

.cloud-a {
  top: 15%;
  left: -35%;
  transform: scale(1.25);
  animation-duration: 44s;
  animation-delay: -8s;
  opacity: .72;
}

.cloud-b {
  top: 33%;
  left: -25%;
  transform: scale(.86);
  animation-duration: 58s;
  animation-delay: -30s;
  opacity: .5;
  filter: blur(15px);
}

.cloud-c {
  top: 56%;
  left: -45%;
  transform: scale(1.55);
  animation-duration: 64s;
  animation-delay: -44s;
  opacity: .54;
  filter: blur(17px);
}

.cloud-d {
  top: 72%;
  left: -20%;
  transform: scale(1.9);
  animation-duration: 72s;
  animation-delay: -12s;
  opacity: .48;
  filter: blur(20px);
}

.cloud-e {
  top: 44%;
  left: -10%;
  transform: scale(1.1);
  animation-duration: 52s;
  animation-delay: -20s;
  opacity: .34;
  filter: blur(13px);
}

.cloud-f {
  top: 8%;
  left: -18%;
  transform: scale(1.6);
  animation-duration: 80s;
  animation-delay: -56s;
  opacity: .3;
  filter: blur(22px);
}

@keyframes cloudDrift {
  0% { translate: -20vw 0; }
  100% { translate: 130vw 0; }
}

.home-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 30vh;
  opacity: .92;
}

.home-haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(180deg, rgba(235, 250, 255, 0) 0%, rgba(239, 252, 255, .38) 55%, rgba(255, 255, 255, .72) 100%);
}

.home-topbar {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.best-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 55, 99, .82), rgba(5, 32, 62, .9));
  border: 1.5px solid rgba(255, 255, 255, .42);
  box-shadow: 0 4px 12px rgba(2, 28, 54, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.best-pill .mp-icon {
  width: 20px;
  height: 20px;
  color: #ffc63d;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}

.best-pill b {
  font-size: 16px;
  font-weight: 900;
  color: #ffe38a;
  min-width: 18px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.glass-circle {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, rgba(9, 52, 94, .5), rgba(4, 28, 55, .62));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(2, 26, 50, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}

.glass-circle:active {
  transform: scale(.92);
  background: linear-gradient(180deg, rgba(9, 52, 94, .7), rgba(4, 28, 55, .78));
}

.glass-circle .mp-icon {
  width: 22px;
  height: 22px;
}

.sound-off { display: none; }
html.muted .sound-on { display: none; }
html.muted .sound-off { display: inline-block; }

.home-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 62px) 0 calc(env(safe-area-inset-bottom) + 14px);
}

.game-logo {
  display: block;
  width: min(85vw, 390px);
  height: auto;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 7px 0 rgba(7, 47, 92, .28))
    drop-shadow(0 16px 20px rgba(2, 34, 70, .38))
    drop-shadow(0 0 22px rgba(140, 228, 255, .35));
  animation: logoIn .8s cubic-bezier(.2, .9, .25, 1.2) both;
}

@keyframes logoIn {
  0% { opacity: 0; transform: translateY(-14px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-stage {
  position: relative;
  width: 118%;
  max-width: 580px;
  margin-top: -2.4vh;
  display: flex;
  justify-content: center;
  flex: 0 1 auto;
  animation: heroFloat 4.8s ease-in-out infinite;
}

.hero-plane {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  /* 让生成图的天空场景与页面天空柔和衔接，避免出现一张“卡片”硬边 */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 9%, #000 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 9%, #000 84%, rgba(0, 0, 0, 0) 100%);
  filter: saturate(1.05) contrast(1.02) drop-shadow(0 18px 16px rgba(2, 38, 74, .24));
}

.hero-halo {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 16%;
  top: 34%;
  bottom: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 224, 150, .36), rgba(255, 176, 80, .12) 48%, rgba(255, 255, 255, 0) 74%);
  filter: blur(14px);
  animation: haloPulse 3.2s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes haloPulse {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.home-actions {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: clamp(16px, 4.2vh, 40px);
  padding: 0 16px 1.5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.start-btn {
  position: relative;
  width: min(80vw, 336px);
  height: clamp(58px, 8.4vh, 72px);
  border: 3px solid #9c3d08;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffe07b 0%, #ffb43e 18%, #ff9019 52%, #f57200 100%);
  box-shadow:
    0 7px 0 #8a3000,
    0 12px 0 rgba(96, 33, 0, .35),
    0 18px 30px rgba(60, 24, 0, .36),
    inset 0 3px 0 rgba(255, 255, 255, .72),
    inset 0 -7px 12px rgba(163, 58, 0, .34);
  color: #fff;
  font-family: inherit;
  font-size: clamp(23px, 6.4vw, 29px);
  font-weight: 900;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  overflow: hidden;
  cursor: pointer;
  text-shadow:
    0 2px 0 #a63c00,
    0 4px 0 #7a2700,
    0 7px 12px rgba(82, 24, 0, .55);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}

.start-btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .38);
  pointer-events: none;
}

.start-btn .mp-icon {
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 2px 0 rgba(140, 48, 0, .9));
}

.start-btn:active {
  transform: translateY(4px) scale(.986);
  box-shadow:
    0 3px 0 #8a3000,
    0 6px 0 rgba(96, 33, 0, .35),
    0 10px 20px rgba(60, 24, 0, .3),
    inset 0 2px 0 rgba(255, 255, 255, .5);
}

.start-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  width: 46px;
  left: -30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: shineSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 58% { left: -34%; opacity: 0; }
  64% { opacity: .9; }
  82%, 100% { left: 118%; opacity: 0; }
}

.start-text {
  position: relative;
  z-index: 1;
}

.start-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #0b4b7d;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 3px 12px rgba(20, 90, 140, .14);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .22);
  animation: hintPulse 1.7s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(.8); opacity: 1; }
  50% { transform: scale(1.15); opacity: .55; }
}

.home-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8%;
  height: 46%;
  bottom: -2%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.cloud-bank {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 26% 30% at 8% 52%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 30% 38% at 26% 74%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 34% 44% at 52% 88%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 28% 36% at 76% 68%, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 24% 30% at 94% 48%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .18) 40%, rgba(255, 255, 255, .72) 100%);
  filter: blur(10px);
  opacity: 1;
}

/* ==========================================================
   战斗
   ========================================================== */
.game {
  background: #0a4a82;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hud-left {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.hearts {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  filter: drop-shadow(0 2px 0 rgba(69, 0, 12, .65)) drop-shadow(0 5px 8px rgba(0, 26, 52, .35));
}

.heart {
  width: 27px;
  height: 24px;
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
  transform-origin: center;
}

.heart.lost {
  opacity: .22;
  filter: grayscale(1) brightness(.7);
  transform: scale(.82);
}

.stage-pill {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(4, 32, 60, .45);
  border: 1px solid rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .9);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

.score-wrap {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  text-align: center;
  pointer-events: none;
}

.score-cap {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .74);
  text-shadow: 0 1px 3px rgba(0, 24, 48, .55);
  margin-bottom: -2px;
}

.score-value {
  font-size: clamp(28px, 8.6vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 2px 0 #1a6ca5,
    0 4px 0 #0c3f67,
    0 5px 0 #082e4e,
    0 8px 16px rgba(0, 22, 44, .5);
}

.score-value.pop {
  animation: scorePop .26s cubic-bezier(.2, 1.6, .4, 1);
}

@keyframes scorePop {
  0% { transform: scale(1); }
  42% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.pause-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 16px;
  width: 46px;
  height: 46px;
  pointer-events: auto;
  z-index: 12;
}

.pause-btn .mp-icon {
  width: 24px;
  height: 24px;
}

.wave-banner {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 14;
  width: 90%;
  transform: translate(-50%, -15px) scale(.96);
  opacity: 0;
  text-align: center;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .9, .3, 1.25);
}

.wave-banner.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.wave-title {
  font-size: clamp(27px, 8.4vw, 40px);
  font-weight: 900;
  letter-spacing: .14em;
  color: #fff;
  text-shadow:
    0 3px 0 #0f5b91,
    0 6px 0 #073a61,
    0 8px 0 #052b47,
    0 14px 26px rgba(0, 20, 40, .55);
}

.wave-title::before,
.wave-title::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 12%;
  max-width: 54px;
  height: 3px;
  margin: 0 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 198, 61, 0), #ffc63d);
  box-shadow: 0 0 10px rgba(255, 198, 61, .6);
}

.wave-title::after {
  transform: scaleX(-1);
}

.wave-sub {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .38em;
  color: #ffe08a;
  text-shadow: 0 2px 5px rgba(0, 24, 48, .7);
}

.damage-flash {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 32, 24, 0) 34%, rgba(255, 26, 18, .5) 78%, rgba(174, 0, 0, .72) 100%);
}

.damage-flash.on {
  animation: damageFlash .5s ease-out;
}

@keyframes damageFlash {
  0% { opacity: .9; }
  100% { opacity: 0; }
}

/* ==========================================================
   弹层
   ========================================================== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 22px) 22px calc(env(safe-area-inset-bottom) + 22px);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(22, 103, 158, .52) 0%, rgba(4, 24, 45, .88) 74%, rgba(2, 14, 27, .94) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.overlay[hidden] {
  display: none;
}

.panel {
  position: relative;
  width: min(88vw, 360px);
  max-height: 100%;
  overflow-y: auto;
  border-radius: 28px;
  padding: 24px 22px 20px;
  background:
    linear-gradient(180deg, #F9FDFF 0%, #EAF8FF 56%, #D8F0FF 100%);
  border: 3px solid #fff;
  box-shadow:
    0 28px 70px rgba(0, 12, 26, .55),
    0 0 0 1px rgba(11, 92, 158, .16),
    inset 0 2px 0 rgba(255, 255, 255, .9);
  text-align: center;
  color: #0b3555;
  animation: panelIn .36s cubic-bezier(.2, .9, .25, 1.15) both;
}

@keyframes panelIn {
  0% { opacity: 0; transform: translateY(18px) scale(.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .38em;
  color: #ff8a3d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.panel h2 {
  margin: 6px 0 0;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #0b3f66;
  text-shadow: 0 2px 0 #fff;
}

.panel-desc {
  margin: 7px 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b93ad;
  letter-spacing: .02em;
}

.btn {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 10px;
  border-radius: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn .mp-icon {
  width: 21px;
  height: 21px;
}

.btn:active {
  transform: translateY(2px) scale(.987);
}

.btn-primary {
  background: linear-gradient(180deg, #ffc15c 0%, #ff9a2c 46%, #fb7c0c 100%);
  border: 2px solid #b94b06;
  color: #fff;
  text-shadow: 0 2px 0 #a33e00, 0 4px 8px rgba(120, 40, 0, .35);
  box-shadow:
    0 5px 0 #a33e00,
    0 10px 18px rgba(163, 62, 0, .3),
    inset 0 2px 0 rgba(255, 255, 255, .55);
}

.btn-primary:active {
  box-shadow: 0 2px 0 #a33e00, 0 5px 10px rgba(163, 62, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .44);
}

.btn-ghost {
  background: #fff;
  border: 2px solid #b9ddf2;
  color: #0b5c9e;
  box-shadow: 0 3px 0 #cbe7f7, 0 7px 14px rgba(11, 92, 158, .09);
  text-shadow: 0 1px 0 #fff;
}

.btn-ghost:active {
  box-shadow: 0 1px 0 #cbe7f7, 0 4px 9px rgba(11, 92, 158, .08);
}

.btn-text {
  width: auto;
  min-width: 150px;
  height: 42px;
  margin: 6px auto 0;
  background: transparent;
  color: #6b93ad;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: none;
}

.btn-text .mp-icon {
  width: 18px;
  height: 18px;
}

.final-score-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #86a9be;
}

.final-score {
  font-size: clamp(48px, 15vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffbe52 0%, #ff8a1f 58%, #e75f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #b04a00) drop-shadow(0 7px 10px rgba(160, 60, 0, .22));
  margin: 1px 0 2px;
}

.final-best {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cde7f5;
  color: #6b93ad;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.final-best b {
  color: #ff8a3d;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.sound-chip {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cde7f5;
  background: rgba(255, 255, 255, .7);
  color: #6b93ad;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sound-chip .mp-icon {
  width: 17px;
  height: 17px;
}

/* ==========================================================
   适配
   ========================================================== */
@media (max-height: 720px) {
  .game-logo { width: min(74vw, 330px); }
  .hero-stage { width: 112%; }
  .home-actions { gap: 9px; padding-bottom: .8vh; }
  .start-btn { height: 56px; border-radius: 16px; }
  .start-hint { font-size: 11.5px; padding: 6px 12px; }
  .home-mountains { height: 28vh; }
}

@media (max-height: 600px) {
  .home-content { padding-top: calc(env(safe-area-inset-top) + 54px); }
  .game-logo { width: min(62vw, 270px); }
  .hero-stage { width: 100%; margin-top: -2vh; }
  .hero-plane { width: 86%; }
  .start-btn { width: min(70vw, 300px); height: 52px; font-size: 21px; }
  .start-hint { display: none; }
  .home-mountains { height: 24vh; }
  .hud-left { top: calc(env(safe-area-inset-top) + 8px); }
  .score-wrap { top: calc(env(safe-area-inset-top) + 3px); }
  .pause-btn { top: calc(env(safe-area-inset-top) + 8px); }
  .panel { padding: 18px 18px 14px; }
  .panel h2 { font-size: 23px; }
  .panel-desc { margin-bottom: 12px; }
  .btn { height: 48px; font-size: 15.5px; }
}

@media (min-width: 620px) {
  .home-content {
    max-width: 560px;
    margin: 0 auto;
  }
  /* 宽屏时场景图不会超出屏幕，四边一起做柔和过渡 */
  .hero-plane {
    -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 56%, rgba(0, 0, 0, .72) 76%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 56%, rgba(0, 0, 0, .72) 76%, rgba(0, 0, 0, 0) 100%);
  }
  .home-topbar {
    left: 50%;
    right: auto;
    width: calc(100% - 32px);
    max-width: 560px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


@media (max-width: 360px) {
  .heart {
    width: 24px;
    height: 21px;
  }
  .hud-left {
    left: 12px;
  }
  .pause-btn {
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .score-wrap {
    min-width: 112px;
  }
  .score-value {
    font-size: 27px;
  }
  .best-pill {
    padding: 0 10px 0 8px;
  }
}
