/* 星际矿工5 —— 竖屏挖矿小游戏 */
:root {
  --orange: #FF8A3D;
  --orange-hi: #FFB463;
  --orange-deep: #E85E11;
  --ink: #05070F;
  --panel: rgba(13, 17, 30, .72);
  --line: rgba(255, 255, 255, .13);
  --text: #F9F6F1;
  --muted: rgba(246, 241, 233, .6);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
}

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

[hidden] { display: none !important; }

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.mp-icon { display: inline-block; }

/* ============ 开场 / 基地 ============ */
.intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 66% 26%, #1a2750 0%, #0a0e1e 52%, #05070f 100%);
  transition: opacity .34s ease, transform .34s ease, filter .34s ease;
  z-index: 3;
}

.intro.is-out {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(3px);
  pointer-events: none;
}

.intro__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  opacity: 0;
  transform: scale(1.055);
  animation: kenburns 22s ease-out infinite alternate;
  transition: opacity .7s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.intro__art.is-ready { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1.055) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(0, -1.1%, 0); }
}

.intro__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(3, 6, 15, .97) 0%,
      rgba(3, 6, 15, .86) 5%,
      rgba(3, 6, 15, .5) 9%,
      rgba(3, 6, 15, .16) 15%,
      rgba(3, 6, 15, 0) 34%,
      rgba(4, 7, 16, .34) 50%,
      rgba(4, 7, 16, .8) 64%,
      rgba(5, 7, 15, .96) 76%,
      #05070f 92%);
}

.intro__shade::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 88%;
  height: 38%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 122, 40, .17) 0%, rgba(255, 122, 40, 0) 68%);
}

.intro__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 22px calc(22px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255, 194, 139, .84);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  animation: rise .55s cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .16), 0 0 12px rgba(255, 138, 61, .85);
  animation: dotPulse 2.4s ease-in-out infinite;
}

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

.logo {
  margin: 0;
  font-size: clamp(40px, 12vw, 56px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: .015em;
  color: #FFF9F1;
  text-shadow:
    0 2px 0 rgba(84, 34, 8, .55),
    0 10px 30px rgba(0, 0, 0, .55),
    0 0 42px rgba(255, 138, 61, .34);
  animation: rise .62s .04s cubic-bezier(.2, .7, .2, 1) both;
}

.logo span {
  display: inline-block;
  margin-left: .05em;
  color: var(--orange);
  font-size: 1.1em;
  line-height: 1;
  vertical-align: baseline;
  text-shadow:
    0 2px 0 rgba(90, 30, 0, .6),
    0 0 26px rgba(255, 138, 61, .65),
    0 0 60px rgba(255, 110, 30, .35);
}

.intro__desc {
  margin: 12px 0 0;
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(249, 243, 235, .76);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  animation: rise .62s .09s cubic-bezier(.2, .7, .2, 1) both;
}

.intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  animation: rise .62s .14s cubic-bezier(.2, .7, .2, 1) both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(16, 21, 36, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px;
  color: rgba(255, 244, 233, .82);
  white-space: nowrap;
}

.chip .mp-icon {
  width: 14px;
  height: 14px;
  color: var(--orange-hi);
}

.intro__best {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(255, 244, 233, .52);
  animation: rise .62s .18s cubic-bezier(.2, .7, .2, 1) both;
}

.intro__best .mp-icon {
  width: 16px;
  height: 16px;
  color: var(--orange-hi);
}

.intro__best b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #FFD9A8;
}

.btn-start {
  position: relative;
  width: 100%;
  height: 57px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 17px;
  overflow: hidden;
  color: #2A1302;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .08em;
  background:
    linear-gradient(180deg, #FFC47E 0%, #FF9A45 34%, #FF7A22 72%, #EF5B0B 100%);
  border: 1px solid rgba(255, 210, 158, .8);
  box-shadow:
    0 14px 30px rgba(232, 82, 10, .38),
    0 2px 0 rgba(255, 255, 255, .3) inset,
    0 -3px 0 rgba(135, 44, 0, .35) inset;
  animation: rise .65s .22s cubic-bezier(.2, .7, .2, 1) both;
  transition: transform .11s ease, box-shadow .11s ease, filter .11s ease;
}

.btn-start::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -35%;
  width: 30%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg);
  animation: sheen 3.4s 1.2s ease-in-out infinite;
}

@keyframes sheen {
  0%, 62% { left: -40%; }
  88%, 100% { left: 125%; }
}

.btn-start:active {
  transform: translateY(2px) scale(.993);
  filter: brightness(.97);
  box-shadow:
    0 8px 18px rgba(232, 82, 10, .3),
    0 1px 0 rgba(255, 255, 255, .24) inset,
    0 -2px 0 rgba(135, 44, 0, .3) inset;
}

.btn-start .mp-icon {
  width: 22px;
  height: 22px;
  color: #3B1A00;
}

.btn-start--small {
  height: 52px;
  margin-top: 16px;
  font-size: 17.5px;
  letter-spacing: .06em;
  animation: none;
}

.intro__hint {
  width: 100%;
  margin: 11px 0 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .03em;
  color: rgba(255, 245, 233, .42);
  animation: rise .65s .26s cubic-bezier(.2, .7, .2, 1) both;
}

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

/* ============ 游戏 ============ */
.game {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  touch-action: none;
}

.game__bg {
  position: absolute;
  inset: -22px;
  background-image: url("assets/keyart.png");
  background-size: cover;
  background-position: 50% 52%;
  filter: blur(7px) brightness(.4) saturate(1.16);
  transform: scale(1.05);
  will-change: transform;
}

.game__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 75% at 58% 20%, rgba(26, 48, 92, .32) 0%, rgba(6, 9, 20, 0) 58%),
    linear-gradient(180deg,
      rgba(3, 6, 14, .9) 0%,
      rgba(4, 8, 20, .6) 22%,
      rgba(4, 7, 17, .28) 52%,
      rgba(5, 7, 14, .62) 72%,
      rgba(3, 5, 11, .96) 100%);
  pointer-events: none;
}

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

/* HUD */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: calc(14px + var(--safe-top)) 16px 0;
  pointer-events: none;
}

.hud__inner {
  max-width: 520px;
  margin: 0 auto;
}

.hud__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  min-width: 122px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(180deg, rgba(19, 24, 42, .8), rgba(8, 11, 22, .7));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pill__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--orange-hi);
  border: 1px solid rgba(255, 164, 88, .32);
  background: linear-gradient(180deg, rgba(255, 138, 61, .26), rgba(255, 138, 61, .07));
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .18);
}

.pill__icon .mp-icon {
  width: 20px;
  height: 20px;
}

.pill__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.pill__text small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(249, 243, 235, .5);
  white-space: nowrap;
}

.pill__text b {
  font-size: 21px;
  line-height: .92;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: #FFF7EE;
  text-shadow: 0 0 16px rgba(255, 170, 90, .28);
  transition: transform .12s ease, color .12s ease;
}

.pill__text b.pop {
  color: #FFD08A;
  transform: scale(1.14);
}

.pill--time {
  min-width: 0;
  padding-right: 11px;
}

.pill--time .pill__icon {
  color: #8AC7FF;
  border-color: rgba(120, 190, 255, .3);
  background: linear-gradient(180deg, rgba(88, 156, 255, .24), rgba(88, 156, 255, .06));
}

.pill--time .pill__text {
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
}

.pill--time .pill__text b {
  font-size: 23px;
  color: #EAF6FF;
  text-shadow: 0 0 18px rgba(120, 190, 255, .3);
}

.pill--time .pill__text small {
  font-size: 10px;
  letter-spacing: 0;
}

.pill--time.is-low .pill__icon {
  color: #FF8C7A;
  border-color: rgba(255, 100, 80, .42);
  background: linear-gradient(180deg, rgba(255, 82, 60, .28), rgba(255, 82, 60, .08));
  animation: lowPulse .72s ease-in-out infinite;
}

.pill--time.is-low .pill__text b { color: #FFB2A0; text-shadow: 0 0 18px rgba(255, 90, 60, .5); }

@keyframes lowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 60, .0); }
  50% { box-shadow: 0 0 0 5px rgba(255, 80, 60, .13); }
}

.timebar {
  height: 4px;
  margin: 9px 4px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.timebar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFD88E 0%, #FF9A45 55%, #FF6D1B 100%);
  box-shadow: 0 0 14px rgba(255, 138, 61, .7);
  transition: width .12s linear, background .3s ease;
}

.timebar.is-low i {
  background: linear-gradient(90deg, #FFB08A, #FF4A2E);
  box-shadow: 0 0 14px rgba(255, 70, 45, .8);
}

/* 提示与操作 */
.drag-hint {
  position: absolute;
  left: 50%;
  bottom: calc(40px + var(--safe-bottom));
  z-index: 4;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(7, 10, 20, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(255, 247, 238, .54);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s ease;
}

.drag-hint.is-gone { opacity: 0; }

.controls {
  position: absolute;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 5;
  width: 100%;
  max-width: 520px;
  padding: 0 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.ctrl {
  pointer-events: auto;
  width: clamp(70px, 19.5vw, 82px);
  height: clamp(70px, 19.5vw, 82px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFE0BF;
  border: 1px solid rgba(255, 170, 96, .34);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(24, 30, 50, .82), rgba(8, 11, 22, .78));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .38),
    inset 0 0 0 3px rgba(255, 138, 61, .07),
    inset 0 1px 0 rgba(255, 255, 255, .13);
  touch-action: none;
  transition: transform .09s ease, background .09s ease, box-shadow .09s ease, color .09s ease;
}

.ctrl .mp-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(255, 138, 61, .4));
}

.ctrl.is-down {
  transform: scale(.93);
  color: #FFF3E5;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 138, 61, .44), rgba(190, 74, 18, .5));
  box-shadow:
    0 0 0 5px rgba(255, 138, 61, .1),
    0 0 30px rgba(255, 120, 45, .38),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.ctrl:focus-visible,
.btn-start:focus-visible,
.btn-ad:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
}

/* ============ 结算 ============ */
.over {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 14px calc(18px + var(--safe-bottom));
  background: rgba(2, 4, 10, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .22s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.over__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 36px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 16px;
  border-radius: 27px;
  text-align: center;
  background:
    radial-gradient(100% 55% at 50% 0%, rgba(255, 126, 48, .2) 0%, rgba(255, 126, 48, 0) 64%),
    linear-gradient(180deg, rgba(31, 35, 56, .98), rgba(11, 14, 26, .99));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .66),
    inset 0 1px 0 rgba(255, 255, 255, .13);
  animation: panelUp .34s cubic-bezier(.18, .82, .28, 1) both;
}

@keyframes panelUp {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.over__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #FFC487;
  border: 1px solid rgba(255, 170, 96, .4);
  background: linear-gradient(180deg, rgba(255, 138, 61, .28), rgba(255, 138, 61, .08));
  box-shadow:
    0 10px 26px rgba(255, 100, 30, .2),
    inset 0 1px 0 rgba(255, 230, 200, .2);
}

.over__icon .mp-icon {
  width: 28px;
  height: 28px;
}

.over__kicker {
  margin: 0 0 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255, 178, 119, .72);
}

.over__panel h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .03em;
  color: #FFF7ED;
  text-shadow: 0 0 26px rgba(255, 138, 61, .2);
}

.over__sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(249, 243, 235, .52);
}

.score-block {
  position: relative;
  margin: 15px 0 13px;
  padding: 13px 12px 12px;
  border-radius: 19px;
  border: 1px solid rgba(255, 164, 88, .21);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(255, 138, 61, .16), rgba(255, 138, 61, 0) 68%),
    rgba(7, 10, 20, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.score-block > span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(249, 243, 235, .48);
}

.score-block strong {
  display: block;
  margin-top: 4px;
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: #FFBB78;
  text-shadow:
    0 0 30px rgba(255, 138, 61, .5),
    0 2px 0 rgba(80, 26, 0, .45);
}

.new-best {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #2A1302;
  background: linear-gradient(180deg, #FFD79B, #FFA24C);
  box-shadow: 0 3px 10px rgba(255, 130, 40, .35);
  animation: bestPop .5s .25s ease both;
}

@keyframes bestPop {
  from { opacity: 0; transform: scale(.7) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.new-best .mp-icon {
  width: 12px;
  height: 12px;
}

.over__stats {
  display: flex;
  align-items: stretch;
  margin-bottom: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.over__stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.over__stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.over__stats span {
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(249, 243, 235, .42);
}

.over__stats b {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #FFE4C6;
}

.over__stats b i {
  font-style: normal;
}

/* 激励视频复活入口 */
.btn-ad {
  position: relative;
  width: 100%;
  min-height: 62px;
  margin-top: 13px;
  padding: 9px 34px 9px 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 17px;
  border: 1px solid rgba(255, 186, 112, .46);
  background:
    radial-gradient(120% 170% at 4% 0%, rgba(255, 176, 84, .28), rgba(255, 138, 61, 0) 60%),
    linear-gradient(180deg, rgba(49, 37, 31, .96), rgba(23, 19, 22, .97));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 232, 198, .15);
  transition: transform .1s ease, filter .12s ease, border-color .15s ease, opacity .15s ease;
}

.btn-ad:active:not(:disabled) {
  transform: scale(.985);
  filter: brightness(1.07);
}

.btn-ad:disabled {
  cursor: default;
}

.btn-ad.is-used {
  opacity: .62;
  border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(34, 35, 46, .9), rgba(19, 20, 29, .94));
}

.btn-ad__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2A1302;
  border: 1px solid rgba(255, 216, 164, .8);
  background: linear-gradient(180deg, #FFD08A 0%, #FFA24C 55%, #F27617 100%);
  box-shadow:
    0 6px 15px rgba(255, 120, 30, .32),
    inset 0 1px 0 rgba(255, 255, 255, .45);
}

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

.btn-ad__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-ad__copy b {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .02em;
  color: #FFE7CD;
}

.btn-ad__copy small {
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(249, 236, 224, .55);
}

.btn-ad__tag {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 190, 120, .35);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.45;
  color: rgba(255, 201, 148, .8);
  background: rgba(255, 148, 64, .12);
}

.btn-ad.is-loading .btn-ad__icon {
  animation: adPulse .85s ease-in-out infinite;
}

.btn-ad.is-loading .btn-ad__tag {
  color: #2A1302;
  background: #FFC074;
  border-color: rgba(255, 224, 180, .9);
}

@keyframes adPulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.25); transform: scale(.96); }
}

/* 轻提示 */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(104px + var(--safe-bottom));
  z-index: 30;
  max-width: calc(100% - 48px);
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 104, .38);
  background: rgba(13, 17, 29, .95);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #FFE7CE;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.btn-ghost {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(249, 243, 235, .48);
  transition: color .15s ease, background .15s ease;
}

.btn-ghost:active {
  color: rgba(249, 243, 235, .8);
  background: rgba(255, 255, 255, .05);
}

/* ============ 小屏 / 横屏预览兼容 ============ */
@media (max-height: 720px) {
  .intro__panel { padding-bottom: calc(16px + var(--safe-bottom)); }
  .logo { font-size: 40px; }
  .intro__desc { margin-top: 9px; font-size: 12.5px; line-height: 1.6; }
  .intro__chips { margin-top: 10px; }
  .chip { height: 27px; font-size: 11px; }
  .intro__best { margin-top: 9px; }
  .btn-start { height: 52px; margin-top: 12px; font-size: 17.5px; }
  .btn-start--small { height: 48px; }
  .intro__hint { margin-top: 8px; }
  .over__panel { padding: 16px 16px 12px; }
  .score-block strong { font-size: 46px; }
  .over__icon { width: 50px; height: 50px; margin-bottom: 7px; }
  .btn-ad { min-height: 56px; margin-top: 10px; }
  .btn-ad__icon { width: 40px; height: 40px; border-radius: 12px; }
}

@media (max-height: 630px) {
  .intro__desc, .intro__chips, .intro__hint { display: none; }
  .logo { font-size: 36px; }
  .intro__best { margin-top: 8px; }
  .over__sub { display: none; }
  .score-block { margin: 10px 0; }
}

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