/* =========================================================
   龙胆救主 · 长坂坡
   竖屏 H5 动作割草游戏
   ========================================================= */
:root {
  --orange: #FF8A3D;
  --orange-deep: #E8621B;
  --orange-dark: #B84412;
  --gold: #FFC85C;
  --gold-soft: #FFE3A8;
  --cream: #FFF6E6;
  --ink: #2A1912;
  --paper: #FFF1D8;
  --paper-deep: #F3D9B2;
  --red: #D9483B;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --title-font: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "Noto Serif SC", serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #140d10;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--cream);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  background:
    radial-gradient(90% 70% at 50% 8%, rgba(232, 98, 27, .22), transparent 62%),
    radial-gradient(70% 60% at 85% 95%, rgba(120, 38, 28, .35), transparent 70%),
    #140d10;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 190, 120, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .38;
}

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

button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; }

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

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

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 10, 12, .42) 0%, transparent 17%, transparent 72%, rgba(22, 10, 10, .55) 100%),
    radial-gradient(120% 82% at 50% 44%, transparent 54%, rgba(20, 8, 8, .55) 100%);
}

.damage-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 90px 18px rgba(220, 44, 24, .8);
  transition: opacity .2s ease;
}

.is-hidden { display: none !important; }

/* ==================== 头像 ==================== */
.avatar {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #3B1B07;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(145deg, #FFC37C, #EE6F24 68%, #C34512);
  border: 2px solid rgba(255, 225, 185, .78);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35), inset 0 1px 2px rgba(255, 255, 255, .5);
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar.has-img img { display: block; }
.avatar.has-img span { display: none; }
.avatar-sm { width: 32px; height: 32px; font-size: 15px; border-width: 1.5px; }

/* ==================== 圆形按钮 ==================== */
.round-btn {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: rgba(30, 17, 15, .56);
  border: 1px solid rgba(255, 198, 140, .28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease, background .12s ease;
}
.round-btn .mp-icon { width: 19px; height: 19px; }
.round-btn:active { transform: scale(.9); background: rgba(60, 30, 20, .8); }
.round-btn.glass { background: rgba(28, 15, 14, .38); }

/* ==================== 游戏 HUD ==================== */
.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: calc(10px + var(--safe-top)) 12px 0;
  pointer-events: none;
  animation: hudIn .35s ease both;
}

.hud-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hud-profile {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 190px;
  padding: 5px 11px 6px 5px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(38, 20, 16, .72), rgba(26, 14, 13, .58));
  border: 1px solid rgba(255, 199, 138, .22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hud-meta { min-width: 0; flex: 1; }
.hud-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.hud-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #FFEDD2;
  letter-spacing: .01em;
}
.hud-level {
  flex: none;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  color: #402006;
  padding: 2px 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--gold), #F2A52B);
}
.bar {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.bar > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: width .18s ease-out;
}
.hp-bar { height: 11px; }
.hp-bar > i {
  background: linear-gradient(180deg, #FF8D62, #DE3D2A 70%, #B4271A);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3);
}
.bar-num {
  position: absolute;
  right: 4px;
  top: 0;
  font-style: normal;
  font-size: 8px;
  line-height: 11px;
  font-weight: 800;
  color: #FFF3E4;
  text-shadow: 0 1px 2px rgba(60, 8, 4, .8);
  letter-spacing: .03em;
}
.xp-bar {
  height: 4px;
  margin-top: 3px;
  background: rgba(255, 255, 255, .12);
}
.xp-bar > i {
  background: linear-gradient(90deg, #FFB24E, #FFE39A);
  box-shadow: 0 0 6px rgba(255, 196, 92, .7);
  transition: width .2s ease-out;
}

.wave-badge {
  flex: none;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 7px auto 0;
  padding: 3px 12px 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(27, 14, 13, .62);
  border: 1px solid rgba(255, 194, 130, .26);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.05;
  white-space: nowrap;
}
.wave-word { font-size: 9px; color: rgba(255, 234, 210, .7); }
.wave-badge b {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(112, 46, 6, .5);
  letter-spacing: -.02em;
}
.wave-badge b.bump { animation: numBump .4s ease; }
.wave-kills {
  margin-left: 4px;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 200, 140, .18);
  font-size: 9px;
  color: rgba(255, 232, 205, .66);
  letter-spacing: .02em;
}
.wave-kills em { font-style: normal; color: #FFE6BD; font-weight: 700; }
.wave-score {
  padding-left: 9px;
  border-left: 1px solid rgba(255, 200, 140, .18);
  font-size: 9px;
  color: rgba(255, 220, 172, .58);
  letter-spacing: .02em;
}
.wave-score em { font-style: normal; color: #FFD489; font-weight: 800; }

.hud-actions { display: flex; gap: 6px; flex: none; margin: 0 0 0 auto; }
.hud .round-btn { pointer-events: auto; }
.hud-actions .round-btn { width: 36px; height: 36px; }

.boss-bar {
  width: min(76%, 300px);
  margin: 9px auto 0;
  padding: 6px 9px 7px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(40, 16, 14, .82), rgba(26, 11, 10, .7));
  border: 1px solid rgba(255, 138, 100, .34);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 180, 130, .12);
  animation: bossIn .4s ease both;
}
.boss-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #FFD9BC;
  letter-spacing: .12em;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.boss-name .mp-icon { width: 12px; height: 12px; color: #FF7150; }
.boss-hp { height: 7px; }
.boss-hp > i {
  width: 100%;
  background: linear-gradient(90deg, #8E1F20, #E74A38 55%, #FF9A5A);
  box-shadow: 0 0 8px rgba(230, 60, 40, .55);
}

/* 冲刺技能 */
.skill-btn {
  position: absolute;
  right: 16px;
  bottom: calc(20px + var(--safe-bottom));
  z-index: 12;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 32% 24%, #FFC17D 0%, #F07A2C 38%, #C44712 72%, #8E2E0A 100%);
  border: 2px solid rgba(255, 221, 176, .72);
  box-shadow:
    0 10px 26px rgba(60, 18, 6, .5),
    inset 0 2px 7px rgba(255, 255, 255, .38),
    inset 0 -6px 14px rgba(90, 24, 2, .42);
  transition: transform .12s ease;
}
.skill-btn:active { transform: scale(.93); }
.skill-btn .skill-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1px;
  color: #FFF8EB;
  text-shadow: 0 1px 3px rgba(70, 18, 2, .55);
}
.skill-btn .skill-core .mp-icon {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 3px rgba(90, 20, 0, .4));
}
.skill-btn .skill-core b { font-size: 11px; letter-spacing: .1em; line-height: 1.1; }
.skill-btn .skill-core em { font-style: normal; font-size: 8px; opacity: .85; line-height: 1; }
.skill-cd-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 0%;
  background: rgba(22, 10, 10, .68);
  border-top: 1px solid rgba(255, 210, 160, .25);
  transition: height .08s linear;
}
.skill-btn.cooling { border-color: rgba(255, 220, 180, .34); filter: saturate(.72); }
.skill-btn.ready { animation: skillReady 2.6s ease-in-out infinite; }
.skill-btn.ready .skill-core .mp-icon { animation: boltGlow 2.6s ease-in-out infinite; }

/* 摇杆 */
.joy {
  position: absolute;
  z-index: 9;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255, 232, 202, .24);
  background: radial-gradient(circle, rgba(255, 196, 126, .1), rgba(40, 20, 14, .22) 68%, transparent 72%);
  box-shadow: inset 0 0 22px rgba(255, 190, 120, .12);
  opacity: 0;
  transition: opacity .14s ease;
}
.joy.on { opacity: 1; }
.joy-ring {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 226, 190, .16);
}
.joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFD9A8, #F08A3B 60%, #BC4B12);
  border: 1.5px solid rgba(255, 236, 204, .8);
  box-shadow: 0 4px 12px rgba(50, 16, 4, .45), inset 0 1px 3px rgba(255, 255, 255, .55);
  will-change: transform;
}

/* 波次横幅 */
.wave-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.wave-banner small {
  font-size: 10px;
  letter-spacing: .5em;
  padding-left: .5em;
  color: rgba(255, 214, 168, .82);
  text-shadow: 0 2px 8px rgba(30, 10, 4, .8);
}
.wave-banner strong {
  font-family: var(--title-font);
  font-size: 37px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #FFF3D9;
  text-shadow:
    0 2px 0 #9E4212,
    0 0 26px rgba(255, 158, 70, .55),
    0 12px 30px rgba(40, 10, 0, .7);
}
.wave-banner.show { animation: bannerShow 2.6s cubic-bezier(.22, .8, .3, 1) forwards; }

/* 提示 / toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(114px + var(--safe-bottom));
  z-index: 14;
  width: max-content;
  max-width: 82%;
  transform: translate(-50%, 10px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #FFF7EA;
  background: rgba(32, 16, 12, .82);
  border: 1px solid rgba(255, 190, 120, .35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hint-bar {
  position: absolute;
  left: 50%;
  bottom: calc(116px + var(--safe-bottom));
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 9px 15px;
  border-radius: 999px;
  transform: translate(-50%, 12px);
  color: #FFEBD1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  background: rgba(34, 17, 13, .78);
  border: 1px solid rgba(255, 197, 132, .3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.hint-bar .mp-icon { width: 15px; height: 15px; color: var(--gold); }
.hint-bar.show { opacity: 1; transform: translate(-50%, 0); }

/* ==================== 开始页 ==================== */
.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.start-screen {
  z-index: 20;
  padding: calc(12px + var(--safe-top)) 14px calc(12px + var(--safe-bottom));
  overflow: hidden;
}
.start-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25, 12, 16, .72) 0%, rgba(25, 12, 16, .18) 34%, rgba(24, 12, 14, .06) 48%, rgba(22, 11, 12, .72) 76%, rgba(19, 9, 10, .94) 100%);
}
.start-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 46% at 50% 40%, rgba(255, 154, 70, .18), transparent 70%);
}

.start-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(38, 20, 17, .5);
  border: 1px solid rgba(255, 207, 155, .24);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.player-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.player-text strong {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #FFF4E2;
}
.player-text span { font-size: 9px; color: rgba(255, 219, 179, .62); letter-spacing: .05em; }

.start-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  text-align: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 9.5px;
  letter-spacing: .28em;
  color: rgba(255, 220, 178, .78);
  text-shadow: 0 2px 8px rgba(30, 10, 4, .8);
}
.hero-eyebrow span {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 122, .8));
}
.hero-eyebrow span:last-child { transform: scaleX(-1); }

.hero-title {
  position: relative;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--title-font);
  font-size: clamp(61px, 17.6vw, 88px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: .02em;
  color: #FFF6E4;
  text-shadow:
    0 3px 0 #8F3B12,
    0 7px 0 rgba(76, 26, 6, .35),
    0 18px 40px rgba(30, 8, 0, .62);
  filter: drop-shadow(0 0 22px rgba(255, 148, 60, .24));
}
.hero-title span { display: inline-block; }
.hero-title .accent {
  margin-left: .02em;
  color: #FFC15F;
  background: linear-gradient(180deg, #FFE1A1 8%, #FFB04C 46%, #F07223 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 #8F3B12) drop-shadow(0 8px 16px rgba(60, 16, 0, .55));
}
.hero-sub {
  margin: 15px 0 0;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: rgba(255, 234, 207, .9);
  text-shadow: 0 2px 10px rgba(30, 8, 0, .8);
}
.hero-tags {
  display: flex;
  gap: 6px;
  margin-top: 11px;
}
.hero-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .12em;
  color: #FFD9A7;
  background: rgba(50, 24, 15, .4);
  border: 1px solid rgba(255, 190, 122, .26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.start-sheet {
  position: relative;
  z-index: 3;
  padding: 17px 15px calc(13px + var(--safe-bottom) * .3);
  border-radius: 26px;
  background:
    linear-gradient(168deg, rgba(62, 33, 24, .88), rgba(30, 16, 14, .93) 62%, rgba(24, 12, 11, .96));
  border: 1px solid rgba(255, 191, 123, .26);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 222, 180, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.start-sheet::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 213, 155, .8), transparent);
}
.sheet-grip {
  width: 34px;
  height: 3px;
  margin: -7px auto 12px;
  border-radius: 3px;
  background: rgba(255, 213, 155, .28);
}
.record-row {
  display: flex;
  align-items: stretch;
  padding: 2px 0 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(255, 200, 140, .13);
}
.record {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
.record + .record::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 130, .24), transparent);
}
.record strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #FFD489;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(86, 34, 6, .45);
}
.record span { font-size: 9.5px; letter-spacing: .1em; color: rgba(255, 219, 178, .56); }

.cta {
  position: relative;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 17px;
  overflow: hidden;
  color: #3C1A05;
  background: linear-gradient(180deg, #FFC275 0%, #FF943F 38%, #F0731F 74%, #D95712 100%);
  border: 1px solid rgba(255, 231, 196, .65);
  box-shadow:
    0 10px 24px rgba(214, 86, 18, .34),
    inset 0 2px 1px rgba(255, 255, 255, .45),
    inset 0 -4px 0 rgba(139, 49, 4, .28);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .1em;
  transition: transform .12s ease, filter .12s ease;
}
.cta::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 40%;
  height: 160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  animation: ctaShine 3.6s ease-in-out 1.2s infinite;
}
.cta:active { transform: translateY(2px) scale(.985); filter: brightness(.96); }
.cta .mp-icon { width: 23px; height: 23px; }
.cta span { position: relative; z-index: 1; }
.cta em {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(75, 29, 4, .72);
  background: rgba(255, 245, 222, .42);
  padding: 4px 8px;
  border-radius: 999px;
}
.cta.small { height: 50px; font-size: 15.5px; }
.cta.small em { display: none; }

/* 看视频抽军需入口（生成图） */
.ad-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 84px;
  margin-top: 9px;
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  background: #3B1C14;
  border: 1px solid rgba(255, 211, 152, .5);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 240, 210, .25);
  transition: transform .12s ease, filter .12s ease;
}
.ad-banner:active { transform: translateY(1px) scale(.995); filter: brightness(.97); }
.ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  display: block;
}
.ad-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30, 12, 6, .2), transparent 38%, rgba(30, 12, 6, .34)),
    linear-gradient(0deg, rgba(30, 12, 6, .46), transparent 48%);
}
.ad-banner-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  color: #3C1A05;
  background: linear-gradient(180deg, #FFE7B5, #FFC36B 55%, #F0993C);
  border: 1px solid rgba(255, 246, 220, .85);
  box-shadow: 0 3px 9px rgba(60, 15, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .6);
}
.ad-banner-tag .mp-icon { width: 14px; height: 14px; }
.ad-banner-tag b {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.wheel-entry-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  color: #FFF7EC;
  background: linear-gradient(160deg, #F05B45, #B91F16);
  border: 1.5px solid #43120D;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.wheel-entry-badge.is-dot {
  min-width: 0;
  width: 9px;
  height: 9px;
  padding: 0;
  top: 8px;
  right: 8px;
  border-width: 1px;
}

.how-row {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}
.how {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 3px 7px;
  border-radius: 13px;
  background: rgba(255, 244, 226, .045);
  border: 1px solid rgba(255, 199, 138, .12);
}
.how-ico {
  width: 27px;
  height: 27px;
  margin-bottom: 3px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #FFC879;
  background: linear-gradient(150deg, rgba(255, 160, 76, .28), rgba(150, 60, 18, .18));
  border: 1px solid rgba(255, 188, 118, .2);
}
.how-ico .mp-icon { width: 15px; height: 15px; }
.how b { font-size: 10.5px; font-weight: 700; color: rgba(255, 238, 215, .92); letter-spacing: .04em; }
.how small { font-size: 8.5px; color: rgba(255, 215, 172, .5); letter-spacing: .02em; }
.start-foot {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--title-font);
  font-size: 11px;
  letter-spacing: .32em;
  color: rgba(255, 206, 148, .45);
}

/* ==================== 通用弹层 ==================== */
.modal-screen {
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 18px 16px calc(18px + var(--safe-bottom) * .4);
  background: rgba(17, 9, 11, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .24s ease both;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 25px 22px calc(20px + var(--safe-bottom) * .35);
  border-radius: 27px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 145, 68, .18), transparent 62%),
    linear-gradient(165deg, rgba(58, 31, 23, .98), rgba(27, 14, 13, .99) 64%);
  border: 1px solid rgba(255, 194, 130, .24);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .58),
    inset 0 1px 0 rgba(255, 225, 185, .14);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: panelIn .32s cubic-bezier(.2, .9, .3, 1.08) both;
}
.modal-panel::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 158, .75), transparent);
}
.kicker {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .34em;
  padding-left: .34em;
  color: #FFB773;
  margin-bottom: 6px;
}
.modal-panel h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .06em;
  color: #FFF3DC;
  text-shadow: 0 2px 0 rgba(120, 45, 8, .45), 0 10px 26px rgba(0, 0, 0, .4);
}
.panel-sub {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: rgba(255, 222, 184, .58);
}
.stat-row {
  display: flex;
  align-items: stretch;
  margin: 17px 0 19px;
  padding: 13px 4px;
  border-radius: 16px;
  background: rgba(255, 245, 229, .045);
  border: 1px solid rgba(255, 198, 138, .13);
}
.stat-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.stat-row > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 130, .2), transparent);
}
.stat-row strong {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  color: #FFD17A;
  font-variant-numeric: tabular-nums;
}
.stat-row span { font-size: 9.5px; letter-spacing: .12em; color: rgba(255, 219, 178, .5); }

.btn-row {
  display: flex;
  gap: 9px;
  margin-top: 9px;
}
.ghost-btn {
  flex: 1;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 233, 205, .82);
  background: rgba(255, 245, 229, .05);
  border: 1px solid rgba(255, 198, 138, .16);
  transition: transform .12s ease, background .12s ease;
}
.ghost-btn:active { transform: scale(.97); background: rgba(255, 245, 229, .1); }
.ghost-btn .mp-icon { width: 16px; height: 16px; opacity: .8; }

.sound-line {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  font-size: 11.5px;
  color: rgba(255, 233, 205, .72);
  background: rgba(255, 245, 229, .04);
  border: 1px solid rgba(255, 198, 138, .12);
}
.sound-line .mp-icon { width: 17px; height: 17px; color: #FFBA70; }
.sound-line span { flex: 1; text-align: left; letter-spacing: .04em; }
.switch {
  width: 35px;
  height: 20px;
  flex: none;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  transition: background .16s ease;
}
.switch i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFF3E2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .16s ease;
}
.switch.on { background: linear-gradient(90deg, #F08A3B, #FFC25E); }
.switch.on i { transform: translateX(15px); }

/* ==================== 升级 ==================== */
.level-screen {
  z-index: 45;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 50% at 50% 32%, rgba(255, 150, 60, .2), transparent 70%),
    rgba(14, 8, 9, .76);
}
.level-wrap { width: 100%; max-width: 400px; }
.level-head { text-align: center; margin-bottom: 17px; }
.level-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  color: #FFD08A;
  background: rgba(255, 158, 70, .1);
  border: 1px solid rgba(255, 180, 110, .28);
}
.level-kicker b { font-size: 11px; color: #FFE4B8; }
.level-head h2 {
  margin: 11px 0 0;
  font-family: var(--title-font);
  font-size: 33px;
  font-weight: 900;
  letter-spacing: .1em;
  color: #FFF4DF;
  text-shadow: 0 3px 0 rgba(112, 42, 8, .5), 0 12px 28px rgba(0, 0, 0, .5);
}
.level-head p {
  margin: 7px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255, 225, 190, .62);
}
.upgrade-list { display: flex; flex-direction: column; gap: 10px; }
.upgrade-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 17px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .6), transparent 42%),
    linear-gradient(160deg, #FFF6E5, #F8E2BF 78%, #F1D2A8);
  border: 1px solid rgba(255, 236, 205, .9);
  box-shadow:
    0 5px 0 rgba(105, 51, 18, .28),
    0 14px 30px rgba(0, 0, 0, .34);
  animation: cardIn .38s cubic-bezier(.2, .9, .3, 1.1) both;
  transition: transform .1s ease, box-shadow .1s ease;
}
.upgrade-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent, var(--orange));
}
.upgrade-card:active {
  transform: translateY(4px) scale(.99);
  box-shadow: 0 1px 0 rgba(105, 51, 18, .28), 0 6px 14px rgba(0, 0, 0, .3);
}
.up-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #FFF8EC;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .36), transparent 52%),
    var(--accent, var(--orange));
  box-shadow: 0 3px 0 rgba(96, 40, 10, .25), inset 0 1px 1px rgba(255, 255, 255, .4);
}
.up-icon .mp-icon { width: 23px; height: 23px; filter: drop-shadow(0 1px 2px rgba(70, 20, 0, .3)); }
.up-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.up-text b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #34200F;
}
.up-text small {
  font-size: 11px;
  line-height: 1.45;
  color: #8A6243;
  letter-spacing: .01em;
}
.up-take {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent, var(--orange));
  background: rgba(120, 62, 22, .08);
  border: 1px solid rgba(120, 62, 22, .12);
}
.up-take .mp-icon { width: 16px; height: 16px; }
.up-tag {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(122, 70, 30, .48);
}

/* ==================== 结算 ==================== */
.over-panel { padding-top: 28px; }
.over-seal {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFE2B8;
  background:
    radial-gradient(circle at 34% 26%, #FFB169, #E05A22 55%, #A8340E);
  border: 2px solid rgba(255, 222, 178, .6);
  box-shadow: 0 8px 24px rgba(190, 60, 12, .38), inset 0 2px 4px rgba(255, 255, 255, .32);
}
.over-seal .mp-icon { width: 26px; height: 26px; }
.over-stats {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 15px;
  padding: 14px 8px 12px;
  border-radius: 17px;
  background: rgba(255, 245, 229, .045);
  border: 1px solid rgba(255, 198, 138, .14);
}
.over-stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.over-stats > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 130, .18), transparent);
}
.over-stats strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #FFD07C;
  font-variant-numeric: tabular-nums;
}
.over-stats .big-stat strong { font-size: 30px; color: #FFC15F; }
.over-stats span { font-size: 9px; letter-spacing: .1em; color: rgba(255, 219, 178, .5); }
.new-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  margin: 0 auto 13px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FFE6B7;
  background: linear-gradient(90deg, rgba(255, 158, 60, .22), rgba(255, 110, 40, .12));
  border: 1px solid rgba(255, 196, 120, .36);
  animation: recordPulse 1.8s ease-in-out infinite;
}
.new-record .mp-icon { width: 14px; height: 14px; color: #FFD37B; }
.text-btn {
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(255, 226, 192, .62);
  letter-spacing: .06em;
}
.text-btn .mp-icon { width: 15px; height: 15px; opacity: .8; }
.text-btn:active { color: #FFE3BC; }

/* ==================== 龙胆转盘 · 看视频抽奖 ==================== */
.wheel-screen {
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-top)) 16px calc(12px + var(--safe-bottom));
  overflow-y: auto;
  background:
    radial-gradient(90% 55% at 50% 32%, rgba(255, 166, 74, .26), transparent 66%),
    linear-gradient(180deg, rgba(21, 11, 12, .95), rgba(53, 24, 16, .96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .22s ease both;
}
.wheel-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 18px 16px 14px;
  border-radius: 27px;
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(255, 170, 80, .18), transparent 60%),
    linear-gradient(165deg, rgba(58, 30, 22, .98), rgba(26, 14, 13, .99) 62%);
  border: 1px solid rgba(255, 199, 132, .3);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 230, 190, .16);
  animation: panelIn .3s cubic-bezier(.2, .9, .3, 1.05) both;
}
.wheel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 231, 200, .82);
  background: rgba(255, 245, 229, .07);
  border: 1px solid rgba(255, 200, 140, .2);
  transition: transform .12s ease, background .12s ease;
}
.wheel-close:active { transform: scale(.9); background: rgba(255, 245, 229, .13); }
.wheel-close .mp-icon { width: 18px; height: 18px; }
.wheel-head { margin-bottom: 8px; }
.wheel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  padding-left: .22em;
  color: #FFBE7A;
}
.wheel-kicker .mp-icon { width: 14px; height: 14px; color: #FFD07C; }
.wheel-head h2 {
  margin: 7px 0 0;
  font-family: var(--title-font);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #FFF4DE;
  text-shadow: 0 2px 0 rgba(120, 45, 8, .5), 0 10px 26px rgba(0, 0, 0, .4);
}
.wheel-head p {
  margin: 5px 0 0;
  font-size: 10.5px;
  letter-spacing: .05em;
  color: rgba(255, 222, 184, .58);
}

.wheel-stage {
  position: relative;
  width: min(76vw, 300px);
  aspect-ratio: 1 / 1;
  margin: 4px auto 8px;
}
.wheel-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      #B9661E, #FFD98A 12%, #F0A23A 24%, #FFE7B0 36%,
      #C26A20 50%, #FFD98A 62%, #F0A23A 74%, #FFE7B0 86%, #B9661E);
  box-shadow:
    0 0 0 3px rgba(255, 220, 160, .5),
    0 0 30px rgba(255, 160, 60, .55),
    0 18px 40px rgba(0, 0, 0, .55),
    inset 0 0 16px rgba(90, 35, 5, .6);
}
.wheel-disc {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  overflow: hidden;
  background:
    conic-gradient(from -22.5deg,
      #FFF2D9 0deg 45deg, #EAD5F7 45deg 90deg,
      #FFF2D9 90deg 135deg, #EAD5F7 135deg 180deg,
      #FFF2D9 180deg 225deg, #EAD5F7 225deg 270deg,
      #FFF2D9 270deg 315deg, #EAD5F7 315deg 360deg);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .4),
    inset 0 0 30px rgba(120, 60, 20, .24);
  transition: transform 4s cubic-bezier(.12, .72, .12, 1);
  will-change: transform;
}
.wheel-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-conic-gradient(from -22.5deg, rgba(150, 95, 40, .26) 0deg .6deg, transparent .6deg 45deg),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(255, 210, 145, .28) 100%);
}
.wheel-item {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 45deg));
  pointer-events: none;
}
.wheel-item-inner {
  position: absolute;
  left: 50%;
  top: 19px;
  width: 84px;
  transform: translateX(-50%) rotate(calc(var(--i) * -45deg));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #55301A;
  text-align: center;
}
.wheel-item-inner .mp-icon {
  width: 21px;
  height: 21px;
  color: var(--wc, #C25B1A);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .45));
}
.wheel-item-inner b {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wheel-item-inner small {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  color: rgba(88, 48, 22, .6);
  white-space: nowrap;
}
.wheel-bulbs {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.wheel-bulb {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.wheel-bulb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #FFF7D6;
  box-shadow: 0 0 7px 2px rgba(255, 220, 145, .85);
  animation: bulbPulse 1.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -8px;
  z-index: 5;
  width: 30px;
  height: 40px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
  pointer-events: none;
}
.wheel-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 23px solid #FFD77E;
}
.wheel-pointer i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF9A7A, #C62D24 65%, #7C140F);
  border: 1px solid rgba(255, 220, 180, .8);
  box-shadow: 0 0 12px rgba(255, 120, 70, .6);
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #3C1A05;
  background:
    radial-gradient(circle at 34% 26%, #FFE0A0, #FFAD4E 46%, #EA741F 78%, #C34D0D);
  border: 2px solid rgba(255, 238, 200, .85);
  box-shadow:
    0 0 0 5px rgba(255, 196, 105, .18),
    0 8px 20px rgba(120, 40, 4, .5),
    inset 0 2px 3px rgba(255, 255, 255, .5);
  animation: hubPulse 2.2s ease-in-out infinite;
  transition: transform .12s ease;
}
.wheel-hub:active { transform: translate(-50%, -50%) scale(.94); }
.wheel-hub .mp-icon { width: 22px; height: 22px; margin-left: 2px; }
.wheel-hub b { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.wheel-stage.is-spinning .wheel-hub { animation: none; opacity: .82; }
.wheel-coin {
  position: absolute;
  z-index: 1;
  color: #FFD36B;
  opacity: .8;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4));
  animation: coinFloat 3.6s ease-in-out infinite;
}
.wheel-coin .mp-icon { width: 24px; height: 24px; }
.wheel-coin.c1 { left: -16px; top: 17%; animation-delay: -.8s; }
.wheel-coin.c2 { right: -13px; top: 38%; animation-delay: -1.9s; }
.wheel-coin.c3 { left: -8px; bottom: 8%; animation-delay: -2.7s; }

.wheel-pending {
  min-height: 24px;
  max-height: 76px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(255, 220, 180, .5);
  -webkit-overflow-scrolling: touch;
}
.wheel-pending .wp-empty { width: 100%; text-align: center; }
.wheel-pending .wp-count {
  width: 100%;
  text-align: center;
  font-size: 9px;
  letter-spacing: .04em;
  color: rgba(255, 216, 168, .66);
}
.wheel-pending .wp-count b { font-size: 11px; color: #FFE3B0; }
.wheel-pending .wp-more { color: rgba(255, 220, 180, .62); }
.wheel-pending .wp-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 190, 110, .1);
  border: 1px solid rgba(255, 190, 110, .25);
  color: #FFD9A4;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.wheel-pending .wp-chip .mp-icon { width: 12px; height: 12px; color: #FFC46D; }
.wheel-pending .wp-chip em {
  font-style: normal;
  font-size: 7px;
  color: rgba(255, 215, 175, .55);
}

.wheel-cta {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 16px;
  color: #3C1A05;
  background: linear-gradient(180deg, #FFD98A 0%, #FFB45C 40%, #F08A2D 78%, #D96A16 100%);
  border: 1px solid rgba(255, 240, 205, .8);
  box-shadow:
    0 10px 24px rgba(214, 86, 18, .35),
    inset 0 2px 1px rgba(255, 255, 255, .5),
    inset 0 -3px 0 rgba(139, 49, 4, .2);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .12s ease, filter .12s ease, opacity .16s ease;
}
.wheel-cta .mp-icon { width: 22px; height: 22px; }
.wheel-cta em {
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(75, 29, 4, .7);
  background: rgba(255, 246, 226, .45);
  padding: 3px 6px;
  border-radius: 999px;
}
.wheel-cta:active { transform: translateY(2px) scale(.985); filter: brightness(.97); }
.wheel-cta.is-disabled { filter: grayscale(.35); opacity: .62; pointer-events: none; }
.wheel-cta.is-busy { opacity: .75; pointer-events: none; }
.wheel-note {
  margin: 9px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: rgba(255, 220, 180, .42);
}
.wheel-note .mp-icon { width: 12px; height: 12px; flex: none; }

/* 中奖弹层 */
.wheel-result {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 7, 8, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .18s ease both;
}
.wr-card {
  width: 100%;
  max-width: 282px;
  padding: 21px 18px 16px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 176, 85, .22), transparent 66%),
    linear-gradient(165deg, #4A281D, #20100E);
  border: 1px solid rgba(255, 205, 145, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 230, 190, .16);
  animation: panelIn .3s cubic-bezier(.2, .9, .3, 1.1) both;
}
.wr-kicker {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3em;
  padding-left: .3em;
  color: #FFBE7A;
}
.wr-icon {
  width: 64px;
  height: 64px;
  margin: 11px auto 9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #3C1A05;
  background:
    radial-gradient(circle at 34% 26%, #FFE3A8, #FFB35C 55%, #E87422);
  border: 2px solid rgba(255, 240, 210, .8);
  box-shadow: 0 8px 20px rgba(200, 90, 10, .35), inset 0 2px 3px rgba(255, 255, 255, .5);
}
.wr-icon .mp-icon { width: 32px; height: 32px; }
.wr-card h3 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #FFF1D6;
  text-shadow: 0 2px 0 rgba(120, 45, 8, .5);
}
.wr-card p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 222, 184, .62);
}
.wr-tip {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: .08em;
  color: #FFD9A4;
  background: rgba(255, 190, 110, .1);
  border: 1px solid rgba(255, 190, 110, .24);
}
.wr-card .cta.small { margin-top: 12px; height: 46px; }
.wr-actions { display: flex; gap: 8px; margin-top: 12px; }
.wr-actions .cta.small { flex: 1.3; margin-top: 0; height: 46px; }
.wr-actions .ghost-btn { flex: 1; height: 46px; margin: 0; }

/* ==================== 局内看广告入口 ==================== */
.ad-banner-unlimited {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #FFE9BE;
  background: rgba(70, 22, 8, .7);
  border: 1px solid rgba(255, 208, 140, .5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ad-round-btn {
  position: relative;
  overflow: visible;
}
.ad-round-btn .mp-icon { color: #FFD08A; }
.ad-round-btn:active { background: rgba(60, 30, 20, .8); }
.ad-round-tag {
  position: absolute;
  right: -3px;
  top: -3px;
  padding: 1px 3px;
  border-radius: 4px;
  font-size: 6.5px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .04em;
  color: #3A1A05;
  background: #FFC46D;
  border: 1px solid rgba(70, 24, 4, .35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.ad-round-btn.is-busy { opacity: .65; pointer-events: none; }

.ad-action {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 15px;
  text-align: left;
  color: #FFE9C9;
  background:
    linear-gradient(135deg, rgba(255, 174, 84, .17), rgba(255, 120, 45, .06)),
    rgba(255, 245, 229, .035);
  border: 1px solid rgba(255, 186, 112, .32);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12);
  transition: transform .12s ease, filter .12s ease, opacity .16s ease;
}
.ad-action:active { transform: scale(.98); filter: brightness(1.08); }
.ad-action.is-busy { opacity: .68; pointer-events: none; }
.ad-action.is-done { opacity: .55; pointer-events: none; }
.ad-action-icon {
  flex: none;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #3C1A05;
  background: radial-gradient(circle at 32% 24%, #FFE6B0, #FFB45A 56%, #EE8A2C);
  border: 1px solid rgba(255, 242, 210, .75);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .5), 0 3px 9px rgba(0, 0, 0, .25);
}
.ad-action-icon .mp-icon { width: 21px; height: 21px; }
.ad-action-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-action-text b { font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: #FFF0D8; }
.ad-action-text small { font-size: 9px; line-height: 1.35; color: rgba(255, 218, 174, .6); letter-spacing: .02em; }
.ad-action-tag {
  flex: none;
  align-self: flex-start;
  padding: 2px 4px;
  border-radius: 4px;
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #3A1A05;
  background: #FFC46D;
}
.level-ad { margin-top: 12px; margin-bottom: 0; }

.revive-ad {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 15px;
  text-align: left;
  color: #FFE9C9;
  background:
    linear-gradient(135deg, rgba(255, 208, 120, .26), rgba(224, 90, 34, .16)),
    rgba(255, 245, 229, .05);
  border: 1px solid rgba(255, 210, 140, .52);
  box-shadow: 0 6px 18px rgba(180, 60, 10, .22), inset 0 1px 0 rgba(255, 236, 200, .18);
  animation: revivePulse 2.4s ease-in-out infinite;
  transition: transform .12s ease, opacity .16s ease;
}
.revive-ad:active { transform: scale(.98); }
.revive-ad.is-busy { opacity: .68; pointer-events: none; animation: none; }
.revive-ad-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #3C1A05;
  background: radial-gradient(circle at 32% 24%, #FFEAB9, #FFC36B 54%, #F0993C);
  border: 1.5px solid rgba(255, 245, 215, .85);
  box-shadow: 0 4px 12px rgba(160, 55, 8, .35), inset 0 1px 2px rgba(255, 255, 255, .55);
}
.revive-ad-icon .mp-icon { width: 22px; height: 22px; }
.revive-ad-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.revive-ad-text b { font-size: 13.5px; font-weight: 900; letter-spacing: .04em; color: #FFE9B6; text-shadow: 0 1px 3px rgba(80, 25, 4, .5); }
.revive-ad-text small { font-size: 9px; line-height: 1.35; color: rgba(255, 224, 185, .66); letter-spacing: .02em; }
.revive-ad-tag {
  flex: none;
  align-self: flex-start;
  padding: 2px 4px;
  border-radius: 4px;
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #3A1A05;
  background: #FFC46D;
}

/* 军需补给弹层 */
.supply-screen { z-index: 46; }
.supply-panel { padding-top: 24px; }
.supply-close { top: 9px; right: 9px; }
.supply-list { display: flex; flex-direction: column; gap: 9px; margin: 15px 0 11px; }
.supply-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 15px;
  text-align: left;
  color: #FFE9C9;
  background: linear-gradient(160deg, rgba(255, 245, 229, .07), rgba(255, 245, 229, .03));
  border: 1px solid rgba(255, 198, 138, .18);
  transition: transform .12s ease, background .12s ease, opacity .16s ease;
}
.supply-card:active { transform: scale(.98); background: rgba(255, 245, 229, .11); }
.supply-card.is-busy { opacity: .6; pointer-events: none; }
.supply-icon {
  flex: none;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #FFF8EC;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .35), transparent 54%),
    var(--sc, #D9642A);
  box-shadow: 0 3px 0 rgba(80, 30, 6, .2), inset 0 1px 1px rgba(255, 255, 255, .38);
}
.supply-icon .mp-icon { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(60, 20, 0, .28)); }
.supply-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.supply-text b { font-size: 13px; font-weight: 800; color: #FFF0D8; letter-spacing: .02em; }
.supply-text small { font-size: 9.5px; color: rgba(255, 218, 174, .6); letter-spacing: .01em; }
.supply-ad {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #3A1A05;
  background: #FFC46D;
}
.supply-state {
  min-height: 15px;
  margin: 0 0 10px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: rgba(255, 218, 174, .5);
}
.supply-back { width: 100%; margin-top: 0; }

@keyframes revivePulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(180, 60, 10, .22), 0 0 0 0 rgba(255, 180, 90, .34), inset 0 1px 0 rgba(255, 236, 200, .18); }
  55% { box-shadow: 0 6px 18px rgba(180, 60, 10, .22), 0 0 0 8px rgba(255, 170, 90, 0), inset 0 1px 0 rgba(255, 236, 200, .18); }
}

/* 网页预览模拟广告 */
.ad-screen {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  background: rgba(10, 6, 8, .9);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fadeIn .2s ease both;
}
.ad-sim {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(58, 31, 23, .99), rgba(24, 13, 12, .99));
  border: 1px solid rgba(255, 198, 138, .32);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
}
.ad-sim-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .14em;
  color: rgba(255, 206, 150, .72);
}
.ad-sim-badge {
  font-size: 7px;
  font-weight: 900;
  color: #3A1A05;
  background: #FFC46D;
  border-radius: 4px;
  padding: 2px 4px;
  letter-spacing: .08em;
}
.ad-sim-screen {
  position: relative;
  margin-top: 10px;
  height: 158px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 50% 20%, rgba(255, 190, 110, .3), transparent 65%),
    linear-gradient(160deg, #6D3B29, #2A1614 70%);
  border: 1px solid rgba(255, 190, 125, .18);
}
.ad-sim-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
  opacity: .5;
}
.ad-sim-play {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3C1A05;
  background: rgba(255, 238, 205, .9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.ad-sim-play .mp-icon { width: 28px; height: 28px; }
.ad-sim-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #FFE4B8;
  font-size: 9px;
}
.ad-sim-count b { font-size: 22px; line-height: 1; }
.ad-sim p {
  margin: 9px 0 11px;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255, 220, 182, .55);
}
.ad-sim .ghost-btn { height: 40px; }

@keyframes hubPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 196, 105, .18), 0 8px 20px rgba(120, 40, 4, .5), inset 0 2px 3px rgba(255, 255, 255, .5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 196, 105, .05), 0 8px 24px rgba(120, 40, 4, .6), inset 0 2px 3px rgba(255, 255, 255, .5); }
}
@keyframes bulbPulse {
  0%, 100% { opacity: .55; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-7px) rotate(6deg); }
}

/* ==================== 动画 ==================== */
@keyframes hudIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bossIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes numBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: #FFF0C6; } 100% { transform: scale(1); } }
@keyframes skillReady {
  0%, 100% { box-shadow: 0 10px 26px rgba(60, 18, 6, .5), 0 0 0 0 rgba(255, 170, 90, .42), inset 0 2px 7px rgba(255, 255, 255, .38); }
  55% { box-shadow: 0 10px 26px rgba(60, 18, 6, .5), 0 0 0 9px rgba(255, 170, 90, 0), inset 0 2px 7px rgba(255, 255, 255, .38); }
}
@keyframes boltGlow { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes bannerShow {
  0% { opacity: 0; transform: translateY(10px) scale(.94); letter-spacing: .2em; }
  16% { opacity: 1; transform: none; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes ctaShine { 0%, 55% { left: -45%; } 78%, 100% { left: 125%; } }
@keyframes recordPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }

/* ==================== 适配 ==================== */
@media (max-height: 720px) {
  .hero-title { font-size: clamp(52px, 15.4vw, 72px); }
  .hero-sub { margin-top: 11px; }
  .hero-tags { margin-top: 8px; }
  .start-sheet { padding-top: 13px; }
  .sheet-grip { margin-bottom: 8px; }
  .record-row { padding-bottom: 9px; margin-bottom: 10px; }
  .record strong { font-size: 19px; }
  .cta { height: 50px; }
  .how-row { margin-top: 9px; }
  .how { padding: 6px 3px 5px; }
  .how-ico { width: 23px; height: 23px; margin-bottom: 2px; }
  .start-foot { margin-top: 7px; }
}
@media (max-height: 620px) {
  .hero-tags, .start-foot { display: none; }
  .hero-sub { font-size: 11px; margin-top: 9px; }
  .how small { display: none; }
  .player-text span { display: none; }
  .record span { font-size: 8.5px; }
  .hint-bar { bottom: calc(104px + var(--safe-bottom)); }
}
@media (min-width: 560px) {
  body { display: flex; align-items: center; justify-content: center; }
  .app {
    height: min(calc(100vh - 26px), 960px);
    height: min(calc(100dvh - 26px), 960px);
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 190, 130, .12);
  }
}
@media (max-width: 355px) {
  .hud-profile { max-width: none; padding-right: 8px; }
  .hud-name { font-size: 10px; }
  .wave-badge { gap: 4px; padding: 3px 10px 4px; }
  .wave-badge b { font-size: 16px; }
  .wave-kills, .wave-score { font-size: 8.5px; padding-left: 7px; }
  .skill-btn { width: 72px; height: 72px; right: 13px; }
  .start-screen { padding-left: 11px; padding-right: 11px; }
}
