/* ============ 凡人修仙家族 · H5 ============ */
:root {
  --ink: #1D2A36;
  --ink-2: #46535F;
  --muted: #8B8171;
  --muted-2: #9AA4AE;
  --paper: #FBF8F1;
  --paper-2: #F2EDE2;
  --gold: #C9A15B;
  --gold-l: #F2DDAF;
  --gold-d: #8A6428;
  --theme: #FF8A3D;
  --theme-d: #E06A1C;
  --jade: #2E7C68;
  --line: rgba(176, 148, 102, 0.32);
  --shadow: 0 8px 24px rgba(35, 52, 68, 0.1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #E7ECF1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding-bottom: 76px;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid rgba(255, 138, 61, 0.7); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
body.locked { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(85% 42% at 100% 16%, rgba(255, 138, 61, 0.07), transparent 62%),
    radial-gradient(120% 40% at 50% 34%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, #E9EDF2 0%, #EFF2F5 38%, #E9EDF2 100%);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 286px;
  height: clamp(282px, 35vw + 150px, 336px);
  overflow: hidden;
  background: #21384A;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: url("images/gen/hero_scene.jpg");
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.015);
  animation: heroZoom 34s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 17, 30, 0.58) 0%,
    rgba(5, 17, 30, 0.2) 25%,
    rgba(5, 17, 30, 0) 48%,
    rgba(233, 238, 243, 0) 66%,
    rgba(233, 238, 243, 0.9) 100%);
}
.hero-aura {
  position: absolute;
  left: -6%;
  top: 38%;
  width: 64%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 244, 226, 0.22), rgba(196, 244, 226, 0) 68%);
  filter: blur(6px);
  opacity: 0.6;
  animation: auraBreathe 6.5s ease-in-out infinite;
  pointer-events: none;
}
.motes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; overflow: hidden; }
.motes i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF3CC 0%, rgba(255, 236, 180, 0) 75%);
  box-shadow: 0 0 7px rgba(255, 226, 155, 0.85);
  opacity: 0;
  animation: moteFloat 9s linear infinite;
}
.motes i:nth-child(1) { left: 17%; top: 72%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 33%; top: 84%; animation-delay: 1.7s; width: 4px; height: 4px; }
.motes i:nth-child(3) { left: 55%; top: 76%; animation-delay: 3.4s; }
.motes i:nth-child(4) { left: 71%; top: 66%; animation-delay: 4.8s; width: 2px; height: 2px; }
.motes i:nth-child(5) { left: 83%; top: 82%; animation-delay: 2.6s; }
.motes i:nth-child(6) { left: 46%; top: 62%; animation-delay: 6.2s; width: 2px; height: 2px; }
.motes i:nth-child(7) { left: 25%; top: 58%; animation-delay: 7.4s; width: 4px; height: 4px; }

.hero-tap {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  touch-action: manipulation;
}
.hero-tap:focus-visible { outline: none; }

/* ---- HUD ---- */
.hud {
  position: absolute;
  z-index: 6;
  left: 12px;
  right: 10px;
  top: 10px;
  top: calc(10px + env(safe-area-inset-top));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.profile {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 92px);
  padding: 3px 13px 3px 3px;
  border-radius: 36px;
  text-align: left;
  color: #fff;
  background: linear-gradient(90deg, rgba(7, 22, 37, 0.66) 0%, rgba(7, 22, 37, 0.32) 62%, rgba(7, 22, 37, 0) 100%);
  border: 1px solid rgba(240, 215, 160, 0.16);
  transition: transform 0.15s ease;
}
.profile:active { transform: scale(0.985); }
.avatar-wrap { position: relative; flex: 0 0 auto; width: 48px; height: 48px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #E8C98E;
  box-shadow: 0 0 0 2px rgba(16, 36, 54, 0.55), 0 2px 7px rgba(0, 0, 0, 0.35);
}
.lv {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #F4DCA6;
  background: linear-gradient(180deg, #3D2C15, #171008);
  border: 1px solid rgba(207, 169, 98, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.lv b { font-weight: 700; }
.who { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.family-name {
  display: flex; align-items: center; gap: 1px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.family-name .mp-icon { width: 14px; height: 14px; color: #EBD3A0; opacity: 0.9; }
.rank-line {
  display: flex; align-items: center; gap: 4px;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.rank-line b { font-weight: 600; color: #FFF6E4; }
.rank-line em { opacity: 0.5; }
.contrib {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 1px;
  font-size: 9.5px;
  line-height: 1.35;
  color: #F2D79C;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.contrib .mp-icon { width: 11px; height: 11px; color: #F0C96A; }

.wallet { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 2px; }
.pill {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  min-width: 76px; height: 23px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(8, 23, 38, 0.58);
  border: 1px solid rgba(235, 206, 150, 0.38);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.pill .mp-icon { width: 13px; height: 13px; }
.pill.gem .mp-icon { color: #64E3F3; filter: drop-shadow(0 0 3px rgba(100, 227, 243, 0.55)); }
.pill.gold .mp-icon { color: #FFC65C; filter: drop-shadow(0 0 3px rgba(255, 198, 92, 0.45)); }

/* ---- right rail ---- */
.rail {
  position: absolute;
  z-index: 7;
  right: 7px;
  top: 88px;
  top: calc(88px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-btn {
  position: relative;
  width: 52px;
  min-height: 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}
.rail-ico {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #FCEDC8 0%, #E2C07A 42%, #B9873F 74%, #8A5D22 100%);
  border: 1px solid #F8E4B4;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), 0 3px 9px rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease;
}
.rail-ico .mp-icon { width: 18px; height: 18px; color: #5C3A0F; }
.rail-btn em {
  margin-top: 1px;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.rail-btn:active .rail-ico { transform: scale(0.9); }
.rail-btn .dot { top: 2px; right: 8px; }
.dot {
  display: none;
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F04438;
  border: 1.5px solid #FFF7E8;
  box-shadow: 0 0 7px rgba(240, 68, 56, 0.85);
  z-index: 2;
}
.rail-btn.ready .dot { display: block; }

/* ---- breath orb ---- */
.tap-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 22, 37, 0.42);
  border: 1px solid rgba(238, 209, 150, 0.22);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.tap-hint.gone { opacity: 0; transform: translate(-50%, 7px); }

.breath {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #F7E8C0;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(58, 116, 104, 0.92) 0%, rgba(24, 62, 64, 0.94) 62%, rgba(10, 33, 38, 0.96) 100%);
  border: 1px solid rgba(247, 226, 176, 0.82);
  box-shadow:
    0 0 0 6px rgba(225, 196, 132, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.38),
    inset 0 0 18px rgba(160, 230, 210, 0.28);
  transition: transform 0.12s ease;
  touch-action: manipulation;
}
.breath:active { transform: translateX(-50%) scale(0.94); }
.breath-halo {
  position: absolute;
  top: -7px; right: -7px; bottom: -7px; left: -7px;
  border-radius: 50%;
  border: 1px solid rgba(244, 220, 165, 0.5);
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}
.breath .mp-icon { width: 24px; height: 24px; color: #F4E3B5; filter: drop-shadow(0 0 6px rgba(255, 225, 160, 0.4)); }
.breath-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1.2;
  color: #F8E8BC;
}
.breath-gain { font-size: 8.5px; line-height: 1.1; color: #AEE7D5; letter-spacing: 0.5px; }
.breath-gain b { font-weight: 700; }

/* ---- tap fx ---- */
.fx-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.float-txt {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #FFF1C2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 200, 80, 0.75);
  animation: floatUp 0.95s ease-out forwards;
}
.float-txt.crit {
  font-size: 20px;
  color: #FFC06A;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 170, 60, 0.9);
}
.ripple {
  position: absolute;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 235, 180, 0.85);
  box-shadow: 0 0 10px rgba(255, 220, 150, 0.4);
  animation: rippleOut 0.65s ease-out forwards;
}
.spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFE7AA;
  box-shadow: 0 0 8px #FFC85A;
  animation: sparkOut 0.7s ease-out forwards;
}

/* ================= BANNER ================= */
.banner {
  position: relative;
  z-index: 8;
  display: block;
  width: calc(100% - 32px);
  height: 108px;
  margin: -28px 16px 0;
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(100deg, #FCF4E2 0%, #F5E6C6 46%, #E9D2A4 100%);
  border: 1px solid rgba(154, 112, 48, 0.52);
  box-shadow: 0 10px 24px rgba(35, 52, 68, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.42);
  transition: transform 0.15s ease;
}
.banner:active { transform: scale(0.995); }
.banner-art {
  position: absolute;
  top: 0; right: 0;
  width: 74%; height: 100%;
  background: url("images/gen/banner_cauldron.jpg") center 42% / cover no-repeat;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.banner-veil {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg,
    rgba(253, 247, 233, 0.98) 0%,
    rgba(253, 247, 233, 0.86) 38%,
    rgba(253, 247, 233, 0.24) 62%,
    rgba(30, 40, 50, 0.05) 100%);
}
.banner-copy {
  position: absolute;
  left: 14px; top: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 60%;
}
.banner-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1.15;
  color: #3A2A14;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.banner-sub {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.2px;
  color: #7C6031;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.banner-track {
  width: 118px; height: 4px;
  margin-top: 7px;
  border-radius: 3px;
  background: rgba(90, 60, 20, 0.16);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.banner-track i {
  display: block;
  width: 0; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #F2A23C, #FF8A3D);
  box-shadow: 0 0 7px rgba(255, 138, 61, 0.65);
  transition: width 0.45s ease;
}
.banner-cta {
  position: absolute;
  z-index: 3;
  right: 9px; bottom: 9px;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 26px;
  padding: 0 7px 0 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, #4A3418, #2C1F0C);
  border: 1px solid rgba(236, 204, 136, 0.6);
  color: #F3DCA9;
  font-size: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.banner-cta b { font-weight: 600; }
.banner-cta .mp-icon { width: 13px; height: 13px; }
.banner.ready { animation: bannerGlow 2.4s ease-in-out infinite; }
.banner.ready .banner-cta {
  background: linear-gradient(180deg, #FFA158, #F06F1F);
  border-color: #FFD2A3;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.65);
}
.banner.ready .banner-track i { background: linear-gradient(90deg, #FFB05E, #FF7A24); }
.banner.shake { animation: shake 0.4s ease; }

/* ================= MENU ================= */
.menu {
  position: relative;
  z-index: 6;
  margin: 12px 16px 0;
  padding: 13px 6px 11px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  border-radius: 15px;
  background: linear-gradient(180deg, #FCFAF3 0%, #F2ECDF 100%);
  border: 1px solid rgba(176, 148, 102, 0.36);
  box-shadow: 0 5px 16px rgba(35, 52, 68, 0.07);
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
  border-radius: 12px;
  min-height: 62px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.menu-item:active { transform: scale(0.94); background: rgba(180, 140, 80, 0.08); }
.menu-ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #FBF0D4 0%, #E5C88F 52%, #C79A55 100%);
  border: 1px solid #F7E7C4;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 5px rgba(120, 85, 30, 0.18);
  margin-bottom: 4px;
}
.menu-ico .mp-icon { width: 22px; height: 22px; color: #674214; }
.menu-label { font-size: 11px; letter-spacing: 0.5px; color: #3E4A55; }

/* ================= SECTIONS ================= */
.block { margin: 18px 16px 0; }
.block-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.block-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #26323E;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.orn {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #F0D79C, #B9873F);
  border: 1px solid #F8EACB;
  box-shadow: 0 0 0 2px rgba(201, 161, 91, 0.13);
}
.head-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(176, 148, 102, 0.45), rgba(176, 148, 102, 0)); }
.more {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 6px 0 6px 6px;
  font-size: 10.5px;
  white-space: nowrap;
  color: #8B7B62;
}
.more .mp-icon { width: 13px; height: 13px; }

.feed {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 9px;
  text-align: left;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF8 0%, #F7F1E6 100%);
  border: 1px solid rgba(176, 148, 102, 0.3);
  box-shadow: 0 4px 14px rgba(40, 58, 76, 0.07);
  transition: transform 0.14s ease;
}
.feed:active { transform: scale(0.995); }
.feed-img {
  flex: 0 0 auto;
  width: 92px; height: 64px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.feed-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  color: #2B3742;
}
.feed-time { font-size: 10px; color: #9C907C; }
.red-dot {
  position: absolute;
  top: 9px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F04438;
  box-shadow: 0 0 6px rgba(240, 68, 56, 0.7);
  display: none;
}
.red-dot.show, .js-unread.show { display: block; }

.reco { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reco-card {
  position: relative;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  background: #223;
  border: 1px solid rgba(176, 148, 102, 0.4);
  box-shadow: 0 5px 16px rgba(30, 45, 60, 0.12);
}
.reco-card img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.reco-card:active img { transform: scale(1.05); }
.reco-veil {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(10, 20, 32, 0.04) 30%, rgba(8, 18, 28, 0.74) 100%);
}
.reco-tag {
  position: absolute;
  left: 8px; top: 8px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 3px;
  color: #F4DCA6;
  padding: 5px 4px;
  border: 1px solid rgba(240, 215, 160, 0.65);
  border-radius: 4px;
  background: rgba(12, 24, 36, 0.52);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.reco-foot {
  position: absolute;
  left: 9px; right: 8px; bottom: 8px;
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 8px;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #9AA4AE;
}
.foot-note i {
  width: 3px; height: 3px;
  transform: rotate(45deg);
  border: 1px solid rgba(176, 148, 102, 0.7);
}

/* ================= TABBAR ================= */
.tabbar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px 6px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 242, 0.97);
  border-top: 1px solid rgba(176, 148, 102, 0.38);
  box-shadow: 0 -6px 20px rgba(30, 45, 60, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 48px;
  padding: 2px;
  font-size: 10px;
  color: #7B8792;
  transition: color 0.15s ease;
}
.tab-ico {
  position: relative;
  width: 30px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  transition: background 0.15s ease;
}
.tab .mp-icon { width: 21px; height: 21px; }
.tab.active { color: #F07E2E; }
.tab.active .tab-ico { background: radial-gradient(circle at 50% 40%, rgba(255, 170, 90, 0.24), rgba(255, 170, 90, 0) 72%); }
.tab.active .mp-icon { color: #FF8A3D; filter: drop-shadow(0 0 5px rgba(255, 138, 61, 0.45)); }
.tab .dot { top: -1px; right: 0; }

/* ================= SHEET ================= */
.sheet-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 80;
  background: rgba(7, 16, 26, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.sheet-backdrop.on { opacity: 1; visibility: visible; }
.sheet {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, 105%);
  visibility: hidden;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #FCF9F2 0%, #F4EFE4 100%);
  border-top: 1px solid rgba(232, 203, 144, 0.9);
  box-shadow: 0 -24px 60px rgba(3, 10, 18, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
}
.sheet.on { transform: translate(-50%, 0); visibility: visible; }
.sheet-grab { width: 38px; height: 4px; margin: 7px auto 0; border-radius: 2px; background: rgba(140, 115, 75, 0.35); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px; }
.sheet-head h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #2A3742;
}
.sheet-close {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6E6558;
  background: rgba(120, 100, 70, 0.08);
}
.sheet-close .mp-icon { width: 17px; height: 17px; }
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 22px;
  padding: 0 16px calc(22px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ---- sheet components ---- */
.hint { margin: 12px 0 0; font-size: 10.5px; line-height: 1.7; color: #8C8272; }
.hint b { color: #B0782E; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: linear-gradient(180deg, #5AAE96, #2E7C68); color: #fff; box-shadow: 0 4px 12px rgba(46, 124, 104, 0.25); }
.btn.gold { background: linear-gradient(180deg, #F6C979, #DCA24A); color: #4A2F0C; border-color: #F8E1B4; box-shadow: 0 4px 12px rgba(190, 140, 50, 0.25); }
.btn.orange { background: linear-gradient(180deg, #FFA257, #F07622); color: #fff; box-shadow: 0 4px 12px rgba(240, 118, 34, 0.28); }
.btn.small { height: 34px; padding: 0 11px; font-size: 11.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.is-locked { opacity: 0.52; filter: grayscale(0.25); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11px;
  color: #7D7362;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(176, 148, 102, 0.22);
}
.sheet-topline b { color: #A96A20; font-size: 12.5px; }

.realm-card {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(100% 80% at 90% 0%, rgba(255, 200, 120, 0.22), transparent 58%),
    linear-gradient(135deg, #1F3A4D 0%, #2D5B6C 100%);
  border: 1px solid rgba(230, 200, 140, 0.35);
  box-shadow: 0 10px 24px rgba(20, 40, 55, 0.18);
}
.stat-eyebrow { font-size: 9.5px; letter-spacing: 3px; color: #C9B98F; }
.realm-name {
  margin: 3px 0 2px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: #F6E3B6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.realm-sub { font-size: 10.5px; color: rgba(255, 255, 255, 0.7); }
.big-track {
  height: 8px;
  margin: 14px 0 6px;
  border-radius: 4px;
  background: rgba(20, 40, 55, 0.12);
  box-shadow: inset 0 1px 2px rgba(60, 45, 25, 0.14);
  overflow: hidden;
}
.big-track i {
  display: block;
  width: 0; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #F5B25A, #FF8A3D);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.5);
  transition: width 0.4s ease;
}
.realm-card .big-track { background: rgba(255, 255, 255, 0.14); }
.big-nums { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #7D7362; }
.big-nums b { color: #2F3C48; font-size: 12px; }
.realm-card .big-nums { color: rgba(255, 255, 255, 0.62); }
.realm-card .big-nums b { color: #FFF3D6; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(176, 148, 102, 0.24);
}
.stat-grid > div { text-align: center; padding: 0 2px; border-right: 1px solid rgba(176, 148, 102, 0.18); }
.stat-grid > div:last-child { border-right: 0; }
.stat-grid b { display: block; font-size: 15.5px; font-weight: 700; color: #33414E; font-variant-numeric: tabular-nums; }
.sheet-topline b, .big-nums, .banner-sub, .realm-item .num, .alchemy-card b { font-variant-numeric: tabular-nums; }
.stat-grid span { display: block; margin-top: 2px; font-size: 9.5px; color: #8B8171; }

.skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(176, 148, 102, 0.28);
  box-shadow: 0 2px 7px rgba(40, 58, 76, 0.04);
}
.skill-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #6B4516;
  background: linear-gradient(145deg, #FBF0D4, #E2C48C 58%, #C79A55);
  border: 1px solid #F6E6C2;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.skill-ico .mp-icon { width: 21px; height: 21px; }
.skill-main { flex: 1; min-width: 0; }
.skill-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #2E3B47; }
.skill-name em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  color: #B0782E;
  background: rgba(201, 161, 91, 0.14);
  padding: 1px 5px;
  border-radius: 5px;
}
.skill-main p { margin: 2px 0 0; font-size: 10px; line-height: 1.4; color: #8A7F6D; }
.skill-lv { height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(90, 70, 40, 0.12); overflow: hidden; }
.skill-lv i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #C9A15B, #EBCF96); }
.skill-card .btn { flex: 0 0 auto; }

.alchemy-art {
  position: relative;
  height: 108px;
  margin: 4px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(176, 148, 102, 0.4);
  box-shadow: 0 5px 16px rgba(30, 45, 60, 0.1);
}
.alchemy-art img { width: 100%; height: 100%; object-fit: cover; }
.alchemy-art span {
  position: absolute;
  z-index: 2;
  left: 12px; bottom: 10px;
  padding: 2px 9px 2px 10px;
  border-left: 2px solid rgba(240, 210, 150, 0.8);
  border-radius: 2px;
  background: rgba(8, 18, 28, 0.42);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 20px;
  letter-spacing: 4px;
  color: #F7E4B6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.alchemy-art::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 18, 28, 0.6)); }
.alchemy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(176, 148, 102, 0.28);
}
.alchemy-card b { display: block; font-size: 13px; color: #2E3B47; }
.alchemy-card p { margin-top: 3px; font-size: 10px; line-height: 1.5; color: #8A7F6D; }
.price { color: #B0782E; font-weight: 700; }

.fortune-orb {
  width: 88px; height: 88px;
  margin: 12px auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4A2F0C;
  background: radial-gradient(circle at 38% 30%, #F9EAC4 0%, #DDBC7C 46%, #A5762F 100%);
  border: 1px solid #F8E6BE;
  box-shadow: 0 0 0 8px rgba(201, 161, 91, 0.1), 0 8px 22px rgba(120, 85, 30, 0.25);
}
.fortune-orb .mp-icon { width: 36px; height: 36px; }
.fortune-title {
  text-align: center;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 24px;
  letter-spacing: 6px;
  color: #3A2A14;
  margin: 8px 0 4px;
}
.fortune-copy { max-width: 280px; margin: 0 auto 14px; text-align: center; font-size: 11px; line-height: 1.7; color: #8A7F6D; }
.fortune-result {
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  color: #6B4A18;
  background: rgba(255, 248, 230, 0.82);
  border: 1px dashed rgba(190, 150, 80, 0.5);
}
.countdown { margin: 10px 0 12px; text-align: center; font-size: 11.5px; color: #8A6A32; }
.countdown b { color: #B06A1E; font-variant-numeric: tabular-nums; }

.realm-list { list-style: none; margin: 6px 0 0; padding: 0; }
.realm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(176, 148, 102, 0.14);
}
.realm-item .num {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9.5px;
  color: #8A7F6D;
  background: rgba(120, 100, 70, 0.08);
}
.realm-item b { flex: 1; font-size: 12.5px; font-weight: 600; color: #3A4652; }
.realm-item em { font-style: normal; font-size: 9.5px; color: #9A8F7D; }
.realm-item.cur { background: linear-gradient(90deg, rgba(255, 138, 61, 0.13), rgba(255, 138, 61, 0)); border-left: 2px solid #FF8A3D; }
.realm-item.cur .num { background: #FF8A3D; color: #fff; }
.realm-item.cur b { color: #B85A18; }
.realm-item.cur em { color: #E06A1C; }
.realm-item.done .num { background: rgba(60, 150, 120, 0.15); color: #2E7C68; }
.realm-item.done em { color: #2E7C68; }
.realm-item.lock { opacity: 0.55; }

.member { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(176, 148, 102, 0.2); }
.member-ava {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 14px;
  color: #F0DDB0;
  background: linear-gradient(145deg, #3C6B78, #1E3E4E);
  border: 1px solid rgba(235, 206, 150, 0.5);
}
.member b { display: block; font-size: 12.5px; color: #33414D; }
.member div span { display: block; margin-top: 1px; font-size: 9.5px; color: #938875; }
.member em {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  font-style: normal;
  font-size: 9.5px;
  color: #B0782E;
  background: rgba(201, 161, 91, 0.12);
}

.log-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(176, 148, 102, 0.16); }
.log-ico {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #A8792F;
  background: rgba(201, 161, 91, 0.14);
}
.log-ico .mp-icon { width: 16px; height: 16px; }
.log-item p { margin: 0; font-size: 11.5px; line-height: 1.55; color: #3A4652; }
.log-item span { display: block; margin-top: 2px; font-size: 9.5px; color: #9A8F7D; }

.profile-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.profile-head img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #E8C98E;
  box-shadow: 0 2px 8px rgba(120, 85, 30, 0.2);
}
.profile-head b {
  display: block;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #2E3B47;
}
.profile-head span { display: block; margin-top: 2px; font-size: 10.5px; color: #8B8171; }
.field { margin: 12px 0; }
.field label { display: block; margin-bottom: 5px; font-size: 10.5px; color: #8B8171; }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(176, 148, 102, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #2E3B47;
  font-size: 13px;
  outline: none;
  -webkit-appearance: none;
}
.field input:focus { border-color: #FF8A3D; box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12); }

.rules { list-style: none; margin: 4px 0 0; padding: 0; }
.rules li { display: flex; gap: 10px; margin: 10px 0; }
.rules .rn {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  color: #8A6428;
  background: rgba(201, 161, 91, 0.16);
  border: 1px solid rgba(201, 161, 91, 0.3);
}
.rules p { font-size: 11.5px; line-height: 1.6; color: #46535F; }
.rules p b { color: #B0782E; }
.empty { padding: 26px 0; text-align: center; font-size: 11px; color: #9A8F7D; }

/* ================= TOAST ================= */
.toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 88px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  max-width: 340px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(14, 26, 38, 0.94);
  border: 1px solid rgba(235, 206, 150, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #F5E8C9;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
  white-space: normal;
  width: max-content;
  max-width: 340px;
  max-width: min(340px, calc(100vw - 32px));
}
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ================= BREAKTHROUGH ================= */
.bt {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 140, 0.16), rgba(5, 11, 18, 0.94) 58%),
    rgba(5, 11, 18, 0.9);
  transition: opacity 0.25s ease, visibility 0.25s;
}
.bt.on { opacity: 1; visibility: visible; }
.bt-rays {
  position: absolute;
  left: 50%; top: 50%;
  width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 150, 0.13) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  animation: spin 28s linear infinite;
  pointer-events: none;
}
.bt-flash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle, #FFF6D8, transparent 62%); opacity: 0; pointer-events: none; }
.bt.on .bt-flash { animation: btFlash 0.9s ease-out; }
.bt-inner {
  position: relative;
  z-index: 2;
  width: min(342px, calc(100vw - 40px));
  padding: 26px 20px 22px;
  text-align: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 14%, rgba(108, 82, 40, 0.34), rgba(12, 19, 27, 0.94) 60%),
    rgba(8, 14, 21, 0.96);
  border: 1px solid rgba(244, 220, 168, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.bt-seal {
  width: 150px; height: 150px;
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 222, 166, 0.6);
  background: radial-gradient(circle, rgba(72, 52, 22, 0.9), rgba(14, 11, 6, 0.82));
  box-shadow: 0 0 0 8px rgba(247, 222, 166, 0.06), 0 0 50px rgba(255, 200, 100, 0.22), inset 0 0 40px rgba(255, 220, 150, 0.12);
}
.bt.on .bt-seal { animation: sealPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1); }
.bt-seal span { font-size: 9px; letter-spacing: 5px; color: #C9B17C; }
.bt-seal b {
  margin-top: 4px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: #F8E3B0;
  text-shadow: 0 0 20px rgba(255, 210, 120, 0.6);
}
.bt-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 16px;
  padding-left: 18px;
  color: #F6D48E;
  background: linear-gradient(180deg, #FFF3CE 0%, #E7B85E 55%, #A9772E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 190, 80, 0.45));
}
.bt.on .bt-title { animation: riseIn 0.8s 0.1s both; }
.bt-reward {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 12px;
  color: #F2D9A6;
  background: rgba(255, 235, 190, 0.1);
  border: 1px solid rgba(247, 222, 166, 0.35);
}
.bt-tip { margin-top: 18px; font-size: 10px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.45); }
.bt.on .bt-reward, .bt.on .bt-tip { animation: riseIn 0.8s 0.25s both; }

/* ================= ANIMATIONS ================= */
@keyframes heroZoom { from { transform: scale(1.015); } to { transform: scale(1.045); } }
@keyframes auraBreathe { 0%, 100% { opacity: 0.42; transform: scale(0.96); } 50% { opacity: 0.78; transform: scale(1.06); } }
@keyframes moteFloat {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.85; }
  80% { opacity: 0.4; }
  100% { transform: translate(12px, -96px) scale(1.1); opacity: 0; }
}
@keyframes pulseRing {
  0% { transform: scale(0.88); opacity: 0.75; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1.06); }
}
@keyframes rippleOut {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(3.2); }
}
@keyframes sparkOut {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(35, 52, 68, 0.18), 0 0 0 0 rgba(255, 138, 61, 0), inset 0 0 0 2px rgba(255, 255, 255, 0.42); }
  50% { box-shadow: 0 10px 26px rgba(35, 52, 68, 0.2), 0 0 18px 2px rgba(255, 138, 61, 0.38), inset 0 0 0 2px rgba(255, 245, 225, 0.55); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes btFlash { 0% { opacity: 0; } 18% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes sealPop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes riseIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 360px) {
  .hero { height: 278px; }
  .family-name { font-size: 14.5px; }
  .rank-line { font-size: 9.5px; }
  .avatar-wrap, .avatar { width: 44px; height: 44px; }
  .pill { min-width: 70px; font-size: 10.5px; }
  .rail { top: 88px; top: calc(88px + env(safe-area-inset-top)); }
  .rail-ico { width: 38px; height: 38px; }
  .breath { width: 72px; height: 72px; bottom: 32px; }
  .tap-hint { bottom: 118px; font-size: 9.5px; }
  .banner { height: 104px; margin-top: -26px; }
  .banner-title { font-size: 21px; }
  .banner-sub { font-size: 9px; }
  .menu { padding-left: 2px; padding-right: 2px; }
  .menu-ico { width: 40px; height: 40px; }
  .menu-label { font-size: 10.5px; }
  .reco-card { height: 108px; }
}
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(90% 70% at 50% 0%, #253B4C 0%, #0B141D 70%),
      #0B141D;
  }
  .app { box-shadow: 0 0 80px rgba(0, 0, 0, 0.38); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
