/* ================= 蜂巢猎人 · 样式 ================= */
:root {
  --bg: #0b0906;
  --bg-2: #14100a;
  --panel: rgba(255, 236, 200, 0.045);
  --panel-line: rgba(255, 214, 140, 0.14);
  --gold: #ffc247;
  --gold-2: #ff9c1a;
  --text: #f4ecdd;
  --text-dim: #9c9182;
  --text-faint: #5d564c;
  --accent: #ffc247;
  --accent-glow: rgba(255, 194, 71, 0.4);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

#app { position: fixed; inset: 0; overflow: hidden; }

/* ---------------- 屏幕切换 ---------------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: scale(0.985);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  background: radial-gradient(120% 70% at 50% -10%, #1d1608 0%, #100c07 45%, #0a0806 100%);
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; z-index: 2; }

.honey-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 8%, rgba(255, 194, 71, .13), transparent 55%),
    radial-gradient(circle at 12% 82%, rgba(255, 140, 26, .08), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23ffc247' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z'/%3E%3Cpath d='M0 0h56'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 56px 96px;
  opacity: .9;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
}

/* ---------------- 首页 ---------------- */
.home-wrap {
  position: relative; z-index: 1;
  margin: auto;
  width: 100%; max-width: 420px;
  padding: calc(24px + var(--safe-t)) 22px calc(18px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  min-height: 100%;
}

.logo-block { text-align: center; margin-bottom: 2px; }
.logo-svg { width: 78px; height: 78px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 18px rgba(255, 170, 30, .35)); }
.wing-l { transform-origin: 34px 42px; animation: flapL 1.6s ease-in-out infinite; }
.wing-r { transform-origin: 86px 42px; animation: flapR 1.6s ease-in-out infinite; }
@keyframes flapL { 0%, 100% { transform: rotate(0deg) scaleY(1); } 50% { transform: rotate(-14deg) scaleY(.86); } }
@keyframes flapR { 0%, 100% { transform: rotate(0deg) scaleY(1); } 50% { transform: rotate(14deg) scaleY(.86); } }

.logo-title {
  margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .16em; text-indent: .16em;
  background: linear-gradient(180deg, #fff3cf 0%, #ffc247 55%, #e08600 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 160, 30, .35));
}
.logo-sub { margin: 4px 0 0; font-size: 11px; letter-spacing: .42em; text-indent: .42em; color: var(--text-faint); }

/* 段位卡 */
.rank-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--panel-line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 226, 170, .07), rgba(255, 226, 170, .02));
  padding: 14px 16px 12px;
  backdrop-filter: blur(6px);
}
.rank-card-glow {
  position: absolute; width: 160px; height: 160px; right: -50px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); opacity: .8; pointer-events: none;
  transition: background .6s;
}
.rank-card-main { display: flex; align-items: center; gap: 12px; }
.rank-emblem {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #120d05;
  background: linear-gradient(150deg, #fff, var(--accent) 60%, #000);
  box-shadow: 0 0 22px var(--accent-glow), inset 0 0 12px rgba(255, 255, 255, .35);
  transition: background .6s, box-shadow .6s;
}
.rank-text { flex: 1; min-width: 0; }
.rank-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--accent); transition: color .6s; }
.rank-stars { font-size: 12px; color: var(--text-dim); letter-spacing: .1em; margin-top: 2px; }
.rank-progress { margin-top: 12px; }
.rank-progress-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rank-progress-bar i {
  display: block; height: 100%; border-radius: 99px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #fff3c4);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width .6s var(--ease), background .6s;
}
.rank-progress-label { margin-top: 7px; font-size: 11px; color: var(--text-faint); letter-spacing: .05em; }

/* 按钮 */
.btn {
  border: 0; font-family: inherit; color: inherit; cursor: pointer;
  background: transparent; padding: 0; touch-action: manipulation;
  transition: transform .12s var(--ease), filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  position: relative; overflow: hidden;
  width: 100%; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(150deg, #ffd269 0%, #ffb020 45%, #e8800a 100%);
  color: #241503; text-align: center;
  box-shadow: 0 10px 26px rgba(255, 150, 20, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .5) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 92%, 100% { transform: translateX(120%); } }
.btn-play { display: flex; flex-direction: column; gap: 1px; }
.btn-play-label { font-size: 19px; font-weight: 800; letter-spacing: .18em; text-indent: .18em; }
.btn-play-sub { font-size: 11px; font-weight: 600; opacity: .62; letter-spacing: .12em; }

.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn-ghost {
  display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center;
  padding: 12px 6px; border-radius: 14px;
  border: 1px solid var(--panel-line); background: var(--panel);
  color: var(--text);
}
.btn-ghost b { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.btn-ghost small { font-size: 10px; color: var(--text-faint); letter-spacing: .04em; }
.btn-ghost:active { background: rgba(255, 214, 140, .1); }

.home-foot { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 2px; }
.home-foot-tip { font-size: 11px; color: var(--text-faint); letter-spacing: .04em; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px;
  display: grid; place-items: center;
  border: 1px solid var(--panel-line); background: var(--panel);
  color: var(--text-dim); font-size: 15px; font-family: inherit; cursor: pointer;
  touch-action: manipulation;
}
.icon-btn:active { background: rgba(255, 214, 140, .12); }
.icon-btn.back { font-size: 24px; padding-bottom: 3px; }

/* ---------------- 子页面 ---------------- */
.sub-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  position: relative; z-index: 3;
}
.sub-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .2em; }
.sub-head-right { margin-left: auto; font-size: 12px; color: var(--text-faint); letter-spacing: .06em; }
.scroll-area {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(28px + var(--safe-b));
}

/* 关卡网格 */
.level-grid { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; }
.hex-row { display: flex; gap: 4px; margin-top: -9px; }
.hex-row:first-child { margin-top: 0; }
.hex-row:nth-child(even) { padding-left: 31px; }

.hex {
  position: relative; width: 58px; height: 66px; flex: 0 0 auto;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, rgba(255,214,140,.34), rgba(255,150,40,.16));
  padding: 1.6px;
  transition: transform .16s var(--ease);
}
.hex:active { transform: scale(.94); }
.hex-face {
  display: flex; align-items: center; justify-content: center; gap: 1px;
  width: 100%; height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: radial-gradient(120% 90% at 50% 15%, rgba(60,44,20,.96), rgba(14,11,8,.98));
  color: var(--text);
}
.hex b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.hex .hex-star { position: absolute; bottom: 11px; font-size: 9px; color: var(--gold); font-style: normal; }
.hex .hex-lock { font-size: 13px; opacity: .8; }

.hex.cleared {
  background: linear-gradient(160deg, var(--accent), rgba(255,180,60,.55));
  box-shadow: 0 0 14px var(--accent-glow);
}
.hex.cleared .hex-face {
  background: radial-gradient(120% 90% at 50% 15%, rgba(92,62,18,.98), rgba(34,22,8,.98));
  color: #ffe6a6;
}
.hex.locked { background: linear-gradient(160deg, rgba(120,116,108,.3), rgba(60,58,54,.18)); }
.hex.locked .hex-face { background: radial-gradient(120% 90% at 50% 15%, rgba(28,26,24,.98), rgba(13,12,11,.99)); color: #6b6257; }

.hex.current { background: linear-gradient(160deg, #fff0c4, var(--gold)); box-shadow: 0 0 0 1px var(--gold), 0 0 18px var(--accent-glow); }
.hex.current .hex-face { background: radial-gradient(120% 90% at 50% 15%, rgba(112,74,20,.99), rgba(40,26,9,.99)); color: #fff3d4; }
.level-tile .tile-lock { font-size: 15px; color: var(--text-faint); }

.list-end { text-align: center; font-size: 11px; color: var(--text-faint); letter-spacing: .14em; padding: 26px 0 8px; }

/* 成就列表 */
.ach-list { display: flex; flex-direction: column; gap: 8px; }
.ach-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px;
  border: 1px solid var(--panel-line); background: var(--panel);
}
.ach-item.locked { opacity: .42; }
.ach-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(150deg, rgba(255, 210, 105, .22), rgba(255, 210, 105, .04)); }
.ach-body { flex: 1; min-width: 0; }
.ach-name { font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.ach-desc { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.ach-unlocked-at { font-size: 10px; color: var(--gold); opacity: .8; letter-spacing: .06em; }
.ach-check { color: var(--gold); font-size: 15px; }

/* 段位页 */
.rank-hero { text-align: center; padding: 18px 0 26px; }
.rank-hero-emblem {
  width: 108px; height: 108px; margin: 0 auto 14px; border-radius: 32px;
  display: grid; place-items: center; font-size: 44px; font-weight: 900; color: #100b04;
  background: linear-gradient(150deg, #fff, var(--accent) 58%, #1a1206);
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(255, 255, 255, .35);
  transition: background .6s, box-shadow .6s;
  animation: heroPulse 3.4s ease-in-out infinite;
}
@keyframes heroPulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.02); } }
.rank-hero-name { font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--accent); transition: color .6s; }
.rank-hero-stars { margin-top: 6px; font-size: 12px; color: var(--text-dim); letter-spacing: .1em; }
.rank-hero-bar { max-width: 260px; margin: 16px auto 0; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rank-hero-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #fff6d8); box-shadow: 0 0 12px var(--accent-glow); transition: width .6s var(--ease), background .6s; }
.rank-hero-tip { margin-top: 10px; font-size: 11px; color: var(--text-faint); letter-spacing: .06em; }

.rank-ladder { display: flex; flex-direction: column; gap: 6px; }
.ladder-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid transparent; color: var(--text-dim); font-size: 12.5px;
}
.ladder-row.reached { color: var(--text); border-color: rgba(255, 214, 140, .09); background: rgba(255, 226, 170, .03); }
.ladder-row.current { border-color: var(--gold); background: rgba(255, 180, 40, .1); }
.ladder-dot { width: 9px; height: 9px; border-radius: 50%; background: #333; flex: 0 0 9px; }
.ladder-row.reached .ladder-dot, .ladder-row.current .ladder-dot { box-shadow: 0 0 10px currentColor; }
.ladder-name { flex: 1; letter-spacing: .06em; }
.ladder-need { font-size: 10.5px; color: var(--text-faint); letter-spacing: .04em; }

/* ---------------- 游戏 ---------------- */
.screen-game { background: #08070a; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.game-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 14px 8px; pointer-events: none;
}
.game-hud > * { pointer-events: auto; }
.hud-back { font-size: 10px; letter-spacing: -1px; }
.hud-level { margin: 0; display: flex; align-items: baseline; gap: 4px; padding: 4px 14px; border-radius: 99px;
  border: 1px solid var(--panel-line); background: rgba(10, 8, 6, .55); backdrop-filter: blur(8px); }
.hud-level small { font-size: 10px; color: var(--text-faint); }
.hud-level b { font-size: 16px; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.hud-star { margin-left: auto; font-size: 12px; color: var(--gold); padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255, 194, 71, .25);
  background: rgba(10, 8, 6, .55); backdrop-filter: blur(8px); letter-spacing: .06em; }

.hint-bubble {
  position: absolute; left: 50%; top: auto; bottom: calc(196px + var(--safe-b)); transform: translateX(-50%);
  max-width: 250px; padding: 10px 14px; border-radius: 14px; z-index: 4;
  background: rgba(255, 226, 170, .12); border: 1px solid rgba(255, 214, 140, .22);
  backdrop-filter: blur(10px);
  font-size: 12.5px; line-height: 1.7; color: #ffe9bd; text-align: center;
  animation: hintIn .4s var(--ease) both;
  pointer-events: none;
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.overlay.lose {
  align-items: flex-end; padding-bottom: 10vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 34%, rgba(4,4,6,.55) 68%, rgba(4,4,6,.86) 100%);
  backdrop-filter: none;
}
.overlay {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(20, 14, 6, .82), rgba(4, 4, 6, .94));
  backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease);
}
.overlay.hidden { display: none; }
.overlay-card {
  width: 100%; max-width: 360px; text-align: center;
  border: 1px solid var(--panel-line); border-radius: 24px;
  background: linear-gradient(165deg, rgba(38, 28, 14, .96), rgba(14, 11, 8, .98));
  padding: 26px 22px calc(20px + var(--safe-b) * .4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: cardIn .42s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.ov-title { font-size: 24px; font-weight: 800; letter-spacing: .12em; }
.ov-title.win { color: #ffd978; text-shadow: 0 0 30px rgba(255, 190, 60, .5); }
.ov-title.lose { color: #ff8f8f; }
.ov-sub { margin-top: 6px; font-size: 12px; color: var(--text-dim); letter-spacing: .06em; }
.ov-stars { margin: 16px 0 6px; font-size: 30px; letter-spacing: .18em; color: var(--gold); text-shadow: 0 0 24px rgba(255, 190, 60, .55); }
.ov-stars .pop { display: inline-block; animation: starPop .5s var(--ease) both; }
@keyframes starPop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.ov-ach {
  margin: 14px 0 4px; padding: 12px; border-radius: 14px; display: flex; gap: 10px; align-items: center; text-align: left;
  border: 1px dashed rgba(255, 194, 71, .4); background: rgba(255, 180, 40, .08);
  animation: achGlow 1.6s ease-in-out infinite;
}
@keyframes achGlow { 0%, 100% { box-shadow: 0 0 0 rgba(255, 180, 40, 0); } 50% { box-shadow: 0 0 24px rgba(255, 180, 40, .22); } }
.ov-ach-icon { font-size: 20px; }
.ov-ach-name { font-size: 13px; font-weight: 700; color: #ffd978; }
.ov-ach-desc { font-size: 10.5px; color: var(--text-dim); }
.ov-rank {
  margin: 14px 0 2px; font-size: 12px; color: var(--text-dim); letter-spacing: .06em;
}
.ov-rank b { color: var(--accent); }
.ov-btns { display: flex; gap: 10px; margin-top: 18px; }
.ov-btns .btn { flex: 1; padding: 14px 10px; border-radius: 15px; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.ov-btns .btn-primary { width: auto; }
.ov-btns .btn-ghost { border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); display: grid; place-items: center; }
.ov-pause { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ov-pause .btn { padding: 13px; border-radius: 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translateX(-50%);
  z-index: 20; padding: 10px 18px; border-radius: 999px;
  background: rgba(28, 20, 8, .95); border: 1px solid rgba(255, 194, 71, .3);
  font-size: 12.5px; color: #ffe9bd; letter-spacing: .04em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  animation: toastIn .3s var(--ease) both;
}
.toast.hidden { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hidden { display: none !important; }

@media (max-height: 680px) {
  .logo-svg { width: 62px; height: 62px; }
  .logo-title { font-size: 26px; }
  .home-wrap { gap: 14px; }
  .btn-primary { padding: 14px 18px; }
}


/* 首页 · 下一个成就 */
.next-ach{
  position:relative; width:100%; margin-top:2px; padding:10px 14px 10px 16px;
  display:flex; align-items:center; gap:10px;
  border-radius:16px;
  border:1px dashed rgba(255,205,110,.26);
  background:linear-gradient(180deg, rgba(255,190,60,.06), rgba(255,190,60,.02));
}
.next-ach.hidden{display:none}.next-ach .na-icon{font-size:22px; filter:drop-shadow(0 0 8px rgba(255,190,60,.4))}
.next-ach .na-body{display:flex; flex-direction:column; gap:2px; min-width:0}
.next-ach .na-body b{font-size:14px; color:#ffe6b0; font-weight:600}
.next-ach .na-body small{font-size:11px; color:#8f8578}
.next-ach .na-pill{
  margin-left:auto; flex:none; font-size:11px; color:#ffcd6a;
  padding:3px 9px; border-radius:999px; background:rgba(255,190,60,.1);
  border:1px solid rgba(255,190,60,.2);
}

.home-version{
  margin-left:auto; font-size:10px; color:#5c5346;
  letter-spacing:.08em;
}

/* 关卡内提示：放在顶部，避开蜂群和炮台 */
.hint-bubble.at-top{
  top: calc(86px + var(--safe-t, 0px));
  bottom: auto;
}

/* ================= 新玩法：段位折叠 / 宠物 / 掉落 ================= */
.home-actions.nav4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home-actions.nav4 .btn-ghost { padding: 12px 4px; }
.home-actions.nav4 .btn-ghost b { font-size: 12.5px; letter-spacing: .04em; }
.home-actions.nav4 .btn-ghost small { font-size: 9px; }

.hud-slots {
  margin-left: auto; font-size: 11px; color: var(--text-dim); letter-spacing: .08em;
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--panel-line);
  background: rgba(10, 8, 6, .55); backdrop-filter: blur(8px);
}
.hud-slots + .hud-star { margin-left: 6px; }

/* 段位折叠 */
.rank-ladder { gap: 8px; }
.rank-group {
  border-radius: 14px; border: 1px solid var(--panel-line);
  background: var(--panel); overflow: hidden;
}
.rank-group.current {
  border-color: rgba(255, 194, 71, .42);
  box-shadow: 0 0 0 1px rgba(255, 194, 71, .1), 0 10px 28px rgba(0, 0, 0, .38);
}
.rank-group-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; text-align: left;
  color: var(--text); -webkit-tap-highlight-color: transparent;
}
.rg-emblem {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  border: 1px solid currentColor; background: rgba(255, 255, 255, .045);
}
.rg-name { font-size: 14px; font-weight: 800; letter-spacing: .14em; }
.rg-prog { margin-left: auto; font-size: 10.5px; color: var(--text-faint); letter-spacing: .06em; }
.rg-dots { display: flex; gap: 4px; margin-right: 2px; }
.rg-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.rg-arrow { width: 12px; text-align: center; font-size: 11px; color: var(--text-faint); }
.rank-group-body { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 8px; }
.ladder-row.myth-row { margin-top: 4px; border-radius: 14px; }
.ladder-row.myth-row.current {
  border-color: rgba(201, 140, 255, .55) !important;
  background: rgba(201, 140, 255, .12) !important;
}

/* 宠物 */
.pet-stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pet-cell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px; border-radius: 14px;
  border: 1px solid var(--panel-line); background: var(--panel);
}
.pet-ico { font-size: 19px; line-height: 1.1; }
.pet-ico.hive-ico { color: var(--gold); font-size: 24px; line-height: 1; }
.pet-cell b { font-size: 19px; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.pet-cell small { font-size: 10px; color: var(--text-faint); letter-spacing: .1em; }
.pet-rule {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  font-size: 11px; line-height: 1.75; color: var(--text-dim);
  border: 1px dashed rgba(255, 205, 110, .24); background: rgba(255, 205, 110, .05);
}
.pet-hatch {
  width: 100%; margin-top: 10px; padding: 14px; border-radius: 14px;
  font-size: 14px; font-weight: 800; letter-spacing: .12em;
}
.pet-hatch.disabled { opacity: .45; filter: saturate(.35); box-shadow: none; }
.pet-section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 2px 8px; font-size: 11.5px; color: var(--text-dim); letter-spacing: .14em;
}
.pet-section-title b, .pet-section-title span { color: var(--gold); font-weight: 800; }
.pet-list { display: flex; flex-direction: column; gap: 8px; }
.pet-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--panel-line); background: var(--panel);
}
.pet-row.queen.active {
  border-color: rgba(255, 194, 71, .45); background: rgba(255, 180, 40, .08);
}
.pet-chip {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--pl), var(--pc) 58%, var(--pd));
  box-shadow: 0 0 12px var(--pc);
}
.pet-chip.queen { width: 30px; height: 30px; flex-basis: 30px; box-shadow: 0 0 20px var(--pc); }
.pet-row-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pet-row-body b { font-size: 13px; letter-spacing: .04em; }
.pet-row-body small { font-size: 10.5px; color: var(--text-faint); }
.btn-mini {
  padding: 7px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid rgba(255, 205, 110, .35); background: rgba(255, 205, 110, .1); color: var(--gold);
}
.btn-mini.on { background: rgba(255, 194, 71, .22); }
.btn-mini.disabled { opacity: .38; }
.pet-empty {
  padding: 14px; text-align: center; font-size: 11.5px; color: var(--text-faint);
  border: 1px dashed var(--panel-line); border-radius: 14px;
}

/* 掉落卡 */
.ov-drop {
  margin-top: 12px; padding: 9px 12px; border-radius: 12px;
  font-size: 12.5px; color: var(--text); letter-spacing: .02em;
  border: 1px solid rgba(255, 205, 110, .28); background: rgba(255, 205, 110, .08);
}
.ov-drop-label {
  font-size: 9.5px; color: var(--text-faint); letter-spacing: .18em; margin-right: 8px;
}
