/* 邓紫棋 · 极速跑酷 — 竖屏 H5 跑酷 */
:root {
  --orange: #FF8A3D;
  --orange-deep: #F26814;
  --orange-soft: #FFB36B;
  --ink: #16213A;
  --muted: #72809A;
  --cream: #FFF8EF;
  --blue: #1D5EA8;
  --blue-deep: #0A2E5C;
  --gold: #FFC93C;
  --green: #46B93A;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-card: 0 12px 30px rgba(9, 24, 52, .16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #070d18; color: #fff; overflow: hidden;
  overscroll-behavior: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
}

button { font-family: inherit; border: 0; outline: none; cursor: pointer; padding: 0; }
img { display: block; }
.hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

.app {
  position: relative; width: 100%; height: 100%; height: 100dvh;
  max-width: 560px; margin: 0 auto; overflow: hidden;
  background: #0b1526;
  box-shadow: 0 0 60px rgba(0, 0, 0, .55);
}

#game {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; z-index: 1;
}

/* ============ 通用 ============ */
.mp-icon { width: 24px; height: 24px; }
.eyebrow {
  margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .22em;
  color: var(--orange-soft); text-transform: uppercase;
}
.eyebrow.center { text-align: center; }

.coin-img { width: 26px; height: 26px; filter: drop-shadow(0 2px 4px rgba(130, 74, 0, .35)); }
.coin-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 15px 0 8px;
  border-radius: 22px;
  background: rgba(9, 17, 33, .62);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 18px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.coin-pill span {
  font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums;
  letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.coin-pill.big { height: 48px; padding-right: 18px; }
.coin-pill.big .coin-img { width: 30px; height: 30px; }
.coin-pill.big span { font-size: 23px; }

.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(23, 72, 132, .78);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .12s ease, background .15s ease;
}
.icon-btn:active { transform: scale(.92); background: rgba(33, 92, 162, .9); }
.icon-btn .mp-icon { width: 25px; height: 25px; }
.icon-btn.on-blue { background: rgba(255, 255, 255, .16); width: 44px; height: 44px; border-radius: 15px; }

.glass-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px;
  border-radius: 22px; color: #fff;
  background: rgba(9, 17, 33, .52);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 18px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 800;
  transition: transform .12s ease, background .15s ease;
}
.glass-pill .mp-icon { width: 21px; height: 21px; color: var(--orange-soft); }
.glass-pill:active { transform: scale(.95); background: rgba(30, 54, 90, .7); }

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 54px; border-radius: 18px;
  font-size: 17px; font-weight: 900; letter-spacing: .02em;
  transition: transform .13s cubic-bezier(.2, .8, .3, 1), filter .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.965); filter: brightness(.97); }
.btn .mp-icon { width: 23px; height: 23px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #FFA952 0%, var(--orange) 45%, #FF6A1A 100%);
  box-shadow: 0 12px 26px rgba(255, 112, 34, .38), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(178, 62, 0, .22);
  text-shadow: 0 1px 1px rgba(150, 52, 0, .25);
}
.btn-glass, .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost { background: rgba(255, 255, 255, .07); font-size: 15px; min-height: 50px; border-radius: 16px; }
.btn-ghost.gold { color: #FFD98A; border-color: rgba(255, 201, 60, .35); }
.btn-ghost .mp-icon { width: 21px; height: 21px; }
.btn-ad {
  color: #5B3200;
  background: linear-gradient(135deg, #FFE486 0%, #FFC93C 52%, #FFB01F 100%);
  box-shadow: 0 10px 24px rgba(255, 176, 31, .32), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(180, 112, 0, .16);
}
.btn-ad .mp-icon { color: #A75B00; }
.btn-ad b {
  margin-left: 2px; padding: 2px 8px; border-radius: 999px;
  background: rgba(125, 67, 0, .13); font-size: 14px; font-weight: 900;
}
.btn-big { min-height: 58px; font-size: 18px; }
.text-btn {
  width: 100%; margin-top: 10px; padding: 10px;
  color: rgba(255, 255, 255, .62); background: transparent;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.text-btn:active { color: #fff; }

/* ============ 首页 ============ */
.screen { position: absolute; inset: 0; z-index: 40; transition: opacity .26s ease; }
.start-screen {
  overflow: hidden;
  background: linear-gradient(180deg, #1A5E9F 0%, #82CDEA 38%, #D9B98F 68%, #27364B 82%, #081120 100%);
}
.start-art {
  position: absolute; inset: -2%;
  background-image: url("images/gen/gptimg_1795350314_look.png");
  background-size: cover;
  background-position: 26% 50%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: artDrift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes artDrift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }
.start-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(100% 60% at 50% 20%, rgba(5, 18, 38, 0) 30%, rgba(5, 16, 34, .25) 70%, rgba(4, 12, 26, .62) 100%),
    linear-gradient(180deg, rgba(6, 19, 40, .52) 0%, rgba(6, 18, 36, .05) 26%, rgba(5, 14, 28, .12) 47%, rgba(5, 12, 24, .84) 76%, #081120 100%);
}
.start-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 16px 0;
  animation: riseIn .55s ease both;
}
.start-hero {
  position: absolute; top: 13%; left: 0; right: 0; z-index: 3;
  padding: 0 22px; text-align: center;
  animation: riseIn .6s .05s cubic-bezier(.2, .8, .3, 1) both;
}
.start-hero .eyebrow { color: #FFD2A6; text-shadow: 0 2px 10px rgba(90, 34, 0, .4); }
.start-hero h1 {
  margin: 7px 0 5px;
  font-size: clamp(47px, 14.2vw, 68px); line-height: 1.03; font-weight: 900;
  letter-spacing: .06em;
  color: #FFF9F1;
  text-shadow:
    0 2px 0 rgba(140, 59, 12, .35),
    0 6px 16px rgba(24, 12, 4, .55),
    0 18px 44px rgba(255, 118, 32, .22);
}
.hero-sub {
  margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .1em;
  color: rgba(255, 244, 231, .92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.best-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 32px;
  padding: 0 12px; border-radius: 999px;
  color: #FFF1DC; font-size: 12px; font-weight: 700;
  background: rgba(8, 16, 31, .48);
  border: 1px solid rgba(255, 205, 143, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.best-chip .mp-icon { width: 16px; height: 16px; color: #FFC93C; }
.best-chip b { font-size: 14px; font-weight: 900; color: #fff; }
.best-chip.alt .mp-icon { color: #FFB36B; }

.start-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 12px 16px calc(15px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, .55) 22%, rgba(8, 17, 32, .9) 48%, #081120 100%);
  animation: riseIn .6s .12s cubic-bezier(.2, .8, .3, 1) both;
}
.btn-play { min-height: 60px; font-size: 19px; letter-spacing: .08em; }
.play-disc {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.play-disc .mp-icon { width: 22px; height: 22px; }
.start-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.start-actions .btn { min-height: 50px; font-size: 14px; border-radius: 16px; }
.start-actions .btn .mp-icon { width: 20px; height: 20px; }
.start-actions .btn-ad { font-size: 13px; }

.start-gear {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  min-height: 24px; margin-top: 12px;
}
.gear-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 24px;
  padding: 0 9px 0 6px; border-radius: 999px;
  color: #FFE7CB; font-size: 10.5px; font-weight: 800;
  background: rgba(255, 138, 61, .15);
  border: 1px solid rgba(255, 176, 106, .3);
}
.gear-pill .mp-icon { width: 13px; height: 13px; color: #FFC08A; }
.gear-empty { color: rgba(255, 232, 207, .62); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.swipe-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 9px 0 0; color: rgba(255, 255, 255, .48);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.swipe-hint .mp-icon { width: 15px; height: 15px; color: rgba(255, 179, 107, .7); }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ============ HUD ============ */
.hud {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  padding: calc(12px + var(--safe-top)) 14px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: opacity .2s ease;
}
.hud-left { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.hud-coin { height: 42px; pointer-events: auto; }
.hud-coin span { font-size: 18px; }
.hud-coin .coin-img { width: 25px; height: 25px; }
.hud-center {
  position: absolute; left: 50%; top: calc(18px + var(--safe-top));
  transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 2px;
  padding: 4px 13px 5px; border-radius: 999px;
  color: #fff; background: rgba(8, 16, 30, .36);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.hud-center span { font-size: 23px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hud-center small { font-size: 11px; font-weight: 800; opacity: .72; }
.hud-pause { pointer-events: auto; width: 44px; height: 44px; border-radius: 15px; }
.run-chips { display: flex; gap: 5px; flex-wrap: wrap; max-width: 210px; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 5px;
  border-radius: 999px; color: #FFF0DF; font-size: 10px; font-weight: 800;
  background: rgba(9, 18, 34, .55); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mini-chip .mp-icon { width: 13px; height: 13px; color: #FFD18A; }

/* ============ 覆盖层 ============ */
.overlay {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4, 10, 22, .62);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  transition: opacity .24s ease;
}
.center-overlay { align-items: center; padding: 18px; }
.sheet {
  position: relative; width: 100%; height: 100%;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 30px 30px 0 0;
  padding: 18px 17px calc(18px + var(--safe-bottom));
}
.shop-sheet {
  margin-top: auto;
  height: auto;
  max-height: calc(100vh - 30px - var(--safe-top));
  max-height: calc(100dvh - 30px - var(--safe-top));
  background:
    radial-gradient(100% 40% at 100% 0%, rgba(130, 208, 255, .28), transparent 60%),
    radial-gradient(80% 30% at 0% 100%, rgba(255, 154, 74, .14), transparent 60%),
    linear-gradient(180deg, #17589F 0%, #0F4B8C 42%, #0A3264 100%);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 0;
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 16px; }
.sheet-title h2 { margin: 4px 0 2px; font-size: 28px; font-weight: 900; letter-spacing: .02em; color: #fff; }
.sheet-sub { margin: 0; font-size: 11.5px; font-weight: 600; color: rgba(212, 233, 255, .65); letter-spacing: .06em; }
.sheet-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.shop-coin { height: 40px; padding: 0 12px 0 7px; background: rgba(5, 25, 54, .45); }
.shop-coin span { font-size: 16px; }
.shop-coin .coin-img { width: 23px; height: 23px; }

.shop-list { display: flex; flex-direction: column; gap: 11px; }
.shop-card {
  position: relative; display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center; gap: 11px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(165deg, #FFFFFF 0%, #F4FAFF 70%, #E8F4FF 100%);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 24px rgba(2, 22, 50, .22), inset 0 1px 0 #fff;
  animation: cardIn .35s cubic-bezier(.2, .8, .3, 1) both;
  overflow: hidden;
}
.shop-card::after {
  content: ""; position: absolute; right: -26px; top: -36px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 156, 255, .12), transparent 68%);
}
.shop-card:nth-child(2) { animation-delay: .05s; }
.shop-card:nth-child(3) { animation-delay: .1s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.shop-card.is-owned { border-color: rgba(255, 179, 107, .75); background: linear-gradient(165deg, #FFFFFF, #FFF6EC); }
.equip-icon {
  width: 78px; height: 84px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #E4F3FF 0%, #CBEAFF 60%, #B9DEFF 100%);
  box-shadow: inset 0 2px 5px rgba(30, 92, 160, .16), inset 0 -2px 0 rgba(255, 255, 255, .7);
  overflow: hidden;
}
.equip-icon img { width: 78px; height: 85px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(20, 70, 130, .2)); }
.equip-info { min-width: 0; }
.equip-title { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.equip-title h3 { margin: 0; font-size: 16px; font-weight: 900; color: #142A49; letter-spacing: .01em; }
.owned-tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px 2px 4px; border-radius: 999px;
  color: #D25E12; font-size: 9px; font-weight: 900;
  background: #FFE7D1;
}
.owned-tag .mp-icon { width: 11px; height: 11px; }
.equip-info p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.45; color: #6C829F; font-weight: 600; }
.equip-act { display: flex; align-items: center; justify-content: flex-end; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 84px; height: 40px; padding: 0 10px;
  border-radius: 13px; color: #fff;
  font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #6BDD55 0%, #43BE35 55%, #2FA324 100%);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 6px 12px rgba(49, 156, 37, .3), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(25, 110, 16, .22);
  text-shadow: 0 1px 1px rgba(20, 90, 10, .3);
  transition: transform .12s ease, filter .12s ease;
}
.buy-btn img { width: 20px; height: 20px; }
.buy-btn:active { transform: scale(.93); filter: brightness(1.03); }
.buy-btn.poor {
  background: linear-gradient(160deg, #A9B7C8, #8A9BAF);
  box-shadow: 0 5px 10px rgba(30, 50, 75, .18), inset 0 1px 0 rgba(255, 255, 255, .38);
  text-shadow: none;
}
.buy-btn.poor img { filter: grayscale(.25); opacity: .9; }
.equipped {
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 74px; height: 38px; padding: 0 9px;
  border-radius: 12px; color: #D25E12; font-size: 12px; font-weight: 900;
  background: #FFEADC; border: 1px solid #FFC79B;
}
.equipped::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #46B93A; box-shadow: 0 0 0 3px rgba(70, 185, 58, .16);
}
.shop-card.shake { animation: cardShake .38s ease; }
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  36% { transform: translateX(5px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}

.ad-banner {
  position: relative; display: flex; align-items: center; gap: 11px;
  width: 100%; margin-top: 15px; padding: 12px;
  border-radius: 20px; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, #FFF3C7 0%, #FFE07C 45%, #FFC63B 100%);
  border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .22), inset 0 1px 0 #fff;
  transition: transform .12s ease;
}
.ad-banner:active { transform: scale(.98); }
.ad-banner::after {
  content: ""; position: absolute; top: -40%; left: -30%;
  width: 55%; height: 180%; transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -40%; } 85%, 100% { left: 130%; } }
.ad-banner-icon {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(150deg, #FF8A3D, #F05D0C);
  box-shadow: 0 5px 12px rgba(190, 78, 8, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.ad-banner-icon .mp-icon { width: 27px; height: 27px; }
.ad-banner-text { flex: 1; min-width: 0; }
.ad-banner-text b { display: block; color: #5B3200; font-size: 15px; font-weight: 900; }
.ad-banner-text small { display: block; margin-top: 2px; color: #8B5C13; font-size: 10.5px; font-weight: 700; }
.ad-reward {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 3px;
  height: 32px; padding: 0 10px 0 5px; border-radius: 999px;
  background: rgba(98, 54, 0, .14); color: #6B3A00;
  font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.ad-reward img { width: 22px; height: 22px; }
.shop-tip {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: 14px 0 0; color: rgba(205, 228, 255, .58);
  font-size: 10.5px; font-weight: 600;
}
.shop-tip .mp-icon { width: 13px; height: 13px; }

/* ============ 对话框 ============ */
.dialog {
  width: 100%; max-width: 380px; padding: 24px 20px calc(18px + var(--safe-bottom));
  border-radius: 28px;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(60, 126, 206, .22), transparent 60%),
    linear-gradient(180deg, #13284A 0%, #0C1B33 70%, #091425 100%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
  text-align: center;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: dialogIn .32s cubic-bezier(.2, .85, .3, 1.05) both;
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
.dialog h2 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: .02em; color: #fff; }
.dialog-sub { margin: 7px 0 18px; font-size: 12.5px; color: rgba(210, 227, 248, .68); font-weight: 600; }
.dialog-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  color: #FFE0C4;
  background: linear-gradient(150deg, rgba(255, 138, 61, .9), rgba(226, 95, 20, .9));
  box-shadow: 0 10px 22px rgba(226, 95, 20, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dialog-icon .mp-icon { width: 30px; height: 30px; }
.pause-dialog .btn { margin-top: 10px; }
.pause-dialog .text-btn { margin-top: 6px; }

.over-dialog { max-width: 390px; padding-top: 20px; }
.over-dialog h2 { font-size: 23px; }
.over-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 2px 0 0; }
.over-score b {
  font-size: 64px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFF4E5 10%, #FFB269 60%, #FF7A24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(255, 111, 34, .3));
}
.over-score small { font-size: 17px; font-weight: 800; color: #FFB269; }
.new-best {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px; padding: 4px 10px; border-radius: 999px;
  color: #5B3200; background: linear-gradient(135deg, #FFE486, #FFC93C);
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 4px 10px rgba(255, 176, 31, .28);
}
.new-best .mp-icon { width: 14px; height: 14px; }
.score-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin: 16px 0 16px;
}
.score-cell {
  padding: 10px 5px 9px; border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
}
.score-cell span { display: block; font-size: 10px; font-weight: 700; color: rgba(196, 218, 244, .66); letter-spacing: .03em; }
.score-cell b {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin-top: 5px; font-size: 17px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
}
.score-cell b img { width: 17px; height: 17px; }
.score-cell b em { font-style: normal; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.over-actions .btn { min-height: 48px; font-size: 13px; }
.over-dialog .text-btn { margin-top: 4px; }

/* ============ 激励视频 ============ */
.ad-overlay { z-index: 90; background: rgba(3, 8, 18, .82); }
.ad-card {
  width: 100%; max-width: 340px; padding: 16px; border-radius: 26px;
  background: linear-gradient(180deg, #16294A, #0B1729);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  animation: dialogIn .25s ease both;
}
.ad-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.ad-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 6px; border-radius: 999px;
  color: #FFD98A; background: rgba(255, 201, 60, .12);
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
}
.ad-tag .mp-icon { width: 14px; height: 14px; }
.ad-count { font-size: 12px; font-weight: 900; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.ad-visual {
  position: relative; height: 168px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(255, 138, 61, .35), transparent 65%),
    linear-gradient(160deg, #1C4E8F, #0C2B53);
  display: flex; align-items: center; justify-content: center;
}
.ad-glow {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 66, .34), transparent 66%);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(.86); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.ad-play {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(150deg, #FFA952, #F26814);
  box-shadow: 0 12px 26px rgba(242, 104, 20, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.ad-play .mp-icon { width: 34px; height: 34px; }
.ad-coin-float {
  position: absolute; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 3px;
  padding: 4px 9px 4px 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .28); color: #FFE486;
  font-size: 14px; font-weight: 900;
}
.ad-coin-float img { width: 24px; height: 24px; }
.ad-card h3 { margin: 13px 0 3px; text-align: center; font-size: 16px; font-weight: 900; color: #fff; }
.ad-card p { margin: 0; text-align: center; font-size: 11.5px; color: rgba(203, 223, 248, .62); font-weight: 600; }
.ad-progress { height: 7px; margin-top: 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ad-progress span {
  display: block; width: 0%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #FFC93C, #FF8A3D);
  box-shadow: 0 0 10px rgba(255, 176, 31, .45);
  transition: width .25s linear;
}

/* ============ 提示 ============ */
.toast {
  position: absolute; left: 50%; top: calc(18% + var(--safe-top)); z-index: 120;
  transform: translate(-50%, -10px) scale(.96);
  max-width: calc(100% - 40px);
  padding: 10px 16px; border-radius: 14px;
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  background: rgba(14, 31, 58, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

.fx-layer { position: absolute; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.fly-coin {
  position: absolute; width: 30px; height: 30px;
  animation: flyCoin .95s cubic-bezier(.2, .7, .3, 1) forwards;
  will-change: transform, opacity;
}
@keyframes flyCoin {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; transform: translate(calc(var(--dx) * .25), -34px) scale(1.15) rotate(60deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5) rotate(300deg); }
}

/* 矮屏适配 */
@media (max-height: 700px) {
  .start-hero { top: 10.5%; }
  .start-hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-sub { font-size: 12px; }
  .hero-chips { margin-top: 10px; }
  .start-gear { margin-top: 8px; }
  .swipe-hint { margin-top: 6px; }
  .btn-play { min-height: 54px; }
  .shop-card { grid-template-columns: 68px minmax(0, 1fr) auto; padding: 10px; gap: 9px; }
  .equip-icon { width: 68px; height: 74px; border-radius: 16px; }
  .equip-icon img { width: 68px; height: 74px; }
  .equip-title h3 { font-size: 14.5px; }
  .equip-info p { font-size: 10.5px; }
  .buy-btn { min-width: 76px; height: 37px; font-size: 14px; }
  .over-score b { font-size: 54px; }
}
@media (max-width: 350px) {
  .shop-card { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; }
  .equip-icon { width: 64px; height: 70px; }
  .equip-icon img { width: 64px; height: 70px; }
  .buy-btn { min-width: 70px; padding: 0 7px; font-size: 13px; }
  .buy-btn img { width: 17px; height: 17px; }
  .start-actions .btn { font-size: 12px; }
}
