:root {
  --bg: #f6f3ef;
  --panel: #ffffff;
  --ink: #1e232b;
  --subtle: #6f7785;
  --red: #b02125;
  --red-deep: #7a1018;
  --steel: #2f3642;
  --line: #e8e3db;
  --app-vh: 1vh;
}

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

button:focus,
button:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible {
  outline: none;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

#root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, #fbe7e0 0, transparent 32%),
    radial-gradient(circle at left 20%, #efe9df 0, transparent 25%),
    var(--bg);
  color: var(--ink);
  min-height: calc(var(--app-vh) * 100);
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* 账户页不展示顶部品牌栏（头像 / 标题 / 语言 / 连接钱包） */
body.view-account-active .hero {
  display: none;
}

/* 聊天页也不展示顶部品牌栏 */
body.view-chat-active .hero {
  display: none;
}

body.view-account-active .app-shell {
  padding-top: 12px;
}

body.view-chat-active .app-shell {
  padding-top: 12px;
}

/* 聊天页隐藏顶栏后多出一些可视高度 */
body.view-chat-active .chat-card {
  height: calc(100dvh - 220px);
  height: calc(100vh - 220px);
}

.app-shell {
  width: 100%;
  max-width: min(460px, 100%);
  min-height: calc(var(--app-vh) * 100);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 16px calc(108px + env(safe-area-inset-bottom));
  position: relative;
}

/* 片头：全屏视频 → 「开启交互」→ 主界面 */
.dapp-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0608;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.dapp-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dapp-intro-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}

.dapp-intro-enter-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 10px 28px rgba(122, 16, 24, 0.45);
}

.dapp-intro-enter-btn:active {
  transform: scale(0.98);
}

.app-shell.dapp-intro-pending {
  pointer-events: none;
  visibility: hidden;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-frame {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 2px solid #d53a3f;
  background: linear-gradient(145deg, #fff 0%, #f3ede7 100%);
  box-shadow: 0 6px 14px rgba(122, 16, 24, 0.12);
  overflow: hidden;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text h1 {
  margin: 0;
  font-size: 20px;
}

.hero-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--subtle);
}

.connect-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  border: 1px solid #e2d8cd;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  color: #4b5360;
  font-weight: 600;
  cursor: pointer;
  min-width: 56px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 120px;
  border: 1px solid #e2d8cd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(30, 20, 28, 0.12);
  padding: 6px;
  display: none;
  z-index: 40;
}

.lang-switch.open .lang-menu {
  display: grid;
  gap: 4px;
}

.lang-menu button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f4653;
  text-align: left;
  padding: 7px 8px;
  cursor: pointer;
  font-size: 13px;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(176, 33, 37, 0.1);
  color: #9a1b22;
}

.main-content {
  margin-top: 18px;
  min-width: 0;
}

.view {
  display: none;
  gap: 12px;
  min-width: 0;
}

.view.active {
  display: grid;
}

.global-intro-fx {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(96px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 120, 48, 0.24), rgba(255, 120, 48, 0) 45%),
    radial-gradient(circle at 20% 70%, rgba(187, 20, 30, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.96) 0%, rgba(16, 12, 18, 0.86) 100%);
  backdrop-filter: blur(10px) saturate(0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 18;
  overflow: hidden;
}

.global-intro-fx.play {
  animation: introReveal 1.55s ease-out forwards;
}

.global-intro-fx::before,
.global-intro-fx::after {
  content: "";
  position: absolute;
  width: 55vmin;
  height: 55vmin;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  animation: introEmberGlow 0.85s ease-in-out infinite alternate;
}

.global-intro-fx::before {
  left: -20vmin;
  bottom: -18vmin;
  background: radial-gradient(circle, rgba(255, 132, 52, 0.5) 0%, rgba(255, 132, 52, 0) 68%);
}

.global-intro-fx::after {
  right: -18vmin;
  top: -20vmin;
  background: radial-gradient(circle, rgba(176, 18, 33, 0.46) 0%, rgba(176, 18, 33, 0) 70%);
  animation-delay: 0.2s;
}

.intro-theme {
  position: absolute;
  left: 50%;
  top: 23%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffe5c0;
  z-index: 2;
  text-shadow:
    0 0 10px rgba(238, 108, 47, 0.45),
    0 0 24px rgba(150, 19, 28, 0.4);
  animation: introThemeGlow 0.9s ease-in-out infinite alternate;
}

.intro-flame-wave {
  position: absolute;
  left: -10vw;
  width: 120vw;
  border-radius: 45% 55% 35% 65%;
  filter: blur(3px);
  mix-blend-mode: screen;
}

.intro-flame-wave.wave-a {
  bottom: -24vh;
  height: 42vh;
  background: radial-gradient(ellipse at 50% 78%, rgba(255, 202, 109, 0.84), rgba(223, 44, 40, 0.55) 55%, rgba(112, 8, 14, 0) 84%);
  animation: introWaveRise 0.9s ease-out;
}

.intro-flame-wave.wave-b {
  bottom: -30vh;
  height: 52vh;
  background: radial-gradient(ellipse at 50% 82%, rgba(255, 164, 72, 0.6), rgba(167, 21, 29, 0.48) 58%, rgba(96, 6, 12, 0) 86%);
  animation: introWaveRise 1.05s ease-out 0.08s;
}

.intro-flame-wave.wave-c {
  bottom: -26vh;
  height: 46vh;
  background: radial-gradient(ellipse at 50% 82%, rgba(255, 218, 142, 0.48), rgba(200, 39, 35, 0.45) 56%, rgba(82, 7, 13, 0) 86%);
  animation: introWaveRise 1.2s ease-out 0.14s;
}

.intro-ember {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 173, 1) 0%, rgba(255, 128, 38, 0.9) 65%, rgba(171, 26, 31, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 133, 42, 0.75);
  opacity: 0;
}

.intro-ember.ember-a {
  left: 14%;
  bottom: 16%;
  animation: emberFloat 1.1s ease-out 0.15s;
}

.intro-ember.ember-b {
  left: 34%;
  bottom: 12%;
  animation: emberFloat 1s ease-out 0.28s;
}

.intro-ember.ember-c {
  right: 28%;
  bottom: 14%;
  animation: emberFloat 1.2s ease-out 0.2s;
}

.intro-ember.ember-d {
  right: 12%;
  bottom: 18%;
  animation: emberFloat 0.95s ease-out 0.32s;
}

.intro-theme .intro-kicker {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid rgba(246, 182, 116, 0.58);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 9px;
  background: rgba(63, 10, 16, 0.34);
  box-shadow: 0 0 10px rgba(237, 108, 42, 0.36);
}

.intro-theme strong {
  display: block;
  font-size: clamp(42px, 10vw, 66px);
  line-height: 1.08;
  letter-spacing: 5px;
  color: #ffe9cc;
  text-shadow:
    0 0 10px rgba(255, 164, 92, 0.45),
    0 0 22px rgba(156, 32, 35, 0.34);
}

.intro-theme small {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  color: #ffd9b0;
  letter-spacing: 1.2px;
  text-shadow: 0 0 9px rgba(236, 96, 41, 0.38);
}

.intro-mark {
  position: absolute;
  top: 44%;
  width: clamp(82px, 16vw, 120px);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 244, 255, 0), rgba(239, 244, 255, 0.95), rgba(123, 132, 154, 0.25));
  box-shadow: 0 0 12px rgba(243, 176, 104, 0.35);
  opacity: 0.72;
}

.intro-mark::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 11px solid #edd4a7;
}

.intro-mark.mark-left {
  left: 7vw;
  transform: rotate(18deg);
}

.intro-mark.mark-right {
  right: 7vw;
  transform: rotate(-18deg) scaleX(-1);
}

.intro-fire {
  position: absolute;
  width: clamp(140px, 28vw, 220px);
  height: clamp(150px, 24vh, 220px);
  border-radius: 45% 55% 50% 50%;
  transform-origin: center bottom;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 245, 184, 0.96) 0 14%, rgba(255, 180, 86, 0.92) 32%, rgba(217, 36, 38, 0.72) 58%, rgba(114, 8, 14, 0) 78%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 126, 46, 0.7), rgba(255, 126, 46, 0) 72%);
  filter: blur(1.2px);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.intro-fire.fire-a {
  left: 4vw;
  bottom: -13vh;
  animation: introFlameBurn 0.31s ease-in-out infinite alternate;
}

.intro-fire.fire-b {
  left: 24vw;
  bottom: -16vh;
  width: clamp(160px, 30vw, 250px);
  animation: introFlameBurn 0.26s ease-in-out infinite alternate;
  animation-delay: 0.08s;
}

.intro-fire.fire-c {
  right: 24vw;
  bottom: -14vh;
  width: clamp(155px, 29vw, 245px);
  opacity: 0.82;
  animation: introFlameBurn 0.29s ease-in-out infinite alternate;
  animation-delay: 0.14s;
}

.intro-fire.fire-d {
  right: 4vw;
  bottom: -11vh;
  opacity: 0.76;
  animation: introFlameBurn 0.33s ease-in-out infinite alternate;
  animation-delay: 0.19s;
}

.war-drum-view {
  gap: 12px;
}

.war-drum-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(20, 24, 30, 0.05);
  min-width: 0;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: #4f5562;
  line-height: 1.5;
}

.airdrop-card {
  position: relative;
  overflow: hidden;
  border-color: #d8b3b5;
  background:
    radial-gradient(circle at top right, rgba(231, 56, 47, 0.16), transparent 38%),
    linear-gradient(165deg, #fff8f6 0%, #fff 72%);
}

.airdrop-page {
  min-height: calc(100dvh - 200px);
  min-height: calc(100vh - 200px);
  display: grid;
  align-content: end;
  padding: 16px;
  background:
    radial-gradient(circle at 84% 12%, rgba(245, 135, 58, 0.2), transparent 35%),
    radial-gradient(circle at 18% 76%, rgba(161, 23, 28, 0.3), transparent 38%),
    linear-gradient(180deg, #2a1a1f 0%, #3a2020 48%, #54231d 100%);
}

.airdrop-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: saturate(1.02) contrast(1.02) brightness(0.72);
  z-index: 0;
  pointer-events: none;
}

.warfield-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}




.war-chariot {
  position: absolute;
  left: 50%;
  bottom: 108px;
  width: min(310px, 90%);
  height: 108px;
  transform: translateX(-50%);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(225, 54, 41, 0.96) 0%, rgba(141, 24, 22, 0.98) 50%, rgba(58, 10, 14, 0.99) 100%),
    linear-gradient(120deg, rgba(255, 209, 140, 0.34), rgba(255, 209, 140, 0) 55%);
  border: 2px solid rgba(239, 176, 103, 0.54);
  box-shadow:
    0 16px 30px rgba(12, 7, 11, 0.56),
    inset 0 0 0 2px rgba(115, 18, 22, 0.52),
    inset 0 -14px 22px rgba(32, 8, 12, 0.45);
}

.war-chariot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  width: 92%;
  height: 30px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(248, 198, 129, 0.96) 0 16px,
      rgba(152, 34, 29, 0.96) 16px 28px
    );
  border: 1px solid rgba(239, 178, 106, 0.65);
  box-shadow:
    0 5px 12px rgba(11, 8, 10, 0.4),
    inset 0 -4px 8px rgba(77, 16, 20, 0.4);
}

.war-chariot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 88%;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 194, 108, 0.92) 0%, rgba(255, 127, 44, 0.82) 38%, rgba(196, 23, 32, 0.55) 62%, rgba(196, 23, 32, 0) 86%);
  filter: blur(4px);
  animation: chariotFirePulse 1s ease-in-out infinite;
}

.chariot-wheel {
  position: absolute;
  bottom: -28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #f0c884;
  background:
    radial-gradient(circle at center, #ffdca2 0 20%, rgba(115, 35, 24, 0.95) 22% 30%, transparent 32%),
    repeating-conic-gradient(from 0deg, rgba(244, 206, 140, 0.92) 0 9deg, rgba(120, 64, 29, 0.95) 9deg 22deg);
  box-shadow: 0 6px 10px rgba(8, 6, 9, 0.35);
  animation: wheelSpinPulse 1.1s ease-in-out infinite;
}

.chariot-wheel.left {
  left: 20px;
}

.chariot-wheel.right {
  right: 20px;
}

.airdrop-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(232, 190, 148, 0.45);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(38, 17, 20, 0.66), rgba(24, 12, 16, 0.74));
  backdrop-filter: blur(1px);
}

.airdrop-panel h2 {
  color: #ffe3bf;
}

.airdrop-panel p {
  color: #f1d7be;
}

.airdrop-claim-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 132, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 148, 0.24), transparent 56%),
    linear-gradient(180deg, rgba(113, 20, 22, 0.92), rgba(70, 12, 18, 0.96));
  box-shadow:
    0 8px 16px rgba(16, 8, 11, 0.45),
    0 0 20px rgba(237, 106, 44, 0.35);
  text-align: center;
  pointer-events: none;
  z-index: 5;
  animation: airdropClaimFxPop 1.05s ease forwards;
}

.airdrop-claim-fx strong {
  display: block;
  color: #ffdeb0;
  font-size: 15px;
  letter-spacing: 1px;
}

.airdrop-claim-fx small {
  display: block;
  margin-top: 2px;
  color: #ffd07f;
  font-size: 13px;
  font-weight: 700;
}


.airdrop-fire {
  position: absolute;
  inset: auto -35px -35px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 139, 52, 0.42) 0%, rgba(197, 28, 34, 0) 68%);
  filter: blur(2px);
  animation: flameBreath 1.6s ease-in-out infinite;
  z-index: 1;
}

.arrow-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.warfire-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.warfire-overlay span {
  position: absolute;
  width: 130px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 174, 83, 0), rgba(255, 174, 83, 0.8), rgba(196, 28, 34, 0));
  opacity: 0.45;
  filter: blur(2px);
  animation: warfireDrift 2.2s linear infinite;
}

/* 关闭交互页残留装饰动画层，避免出现烟雾/火焰残影 */
.airdrop-fire,
.warfire-overlay,
.arrow-stage {
  display: none !important;
}

.warfire-overlay span:first-child {
  left: -40px;
  bottom: 24px;
  transform: rotate(-16deg);
}

.warfire-overlay span:last-child {
  right: -52px;
  top: 26px;
  transform: rotate(18deg);
  animation-delay: 1s;
}

.airdrop-card.ignite .warfire-overlay span {
  animation: warfireIgnite 0.55s ease;
}

.weapon-badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weapon-badges span {
  font-size: 12px;
  border: 1px solid rgba(239, 198, 152, 0.5);
  color: #ffd6ac;
  background: rgba(87, 25, 22, 0.45);
  padding: 5px 9px;
  border-radius: 999px;
}

.airdrop-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(241, 203, 164, 0.34);
  overflow: hidden;
}

.airdrop-bar span {
  display: block;
  width: 28%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #de6a2c 0%, #b02125 55%, #7d0e19 100%);
  transition: width 0.35s ease;
}

.airdrop-bar span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -22%;
  width: 18%;
  height: calc(100% + 6px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 247, 208, 0),
    rgba(255, 247, 208, 0.95),
    rgba(255, 186, 82, 0.9),
    rgba(255, 247, 208, 0)
  );
  filter: blur(0.5px);
  opacity: 0;
  pointer-events: none;
}

.airdrop-bar span.laser-run::after {
  animation: airdropLaserSweep 0.55s ease-out;
}

.airdrop-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.claim-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #d24f2a 0%, #8c111d 100%);
  color: #fff;
  padding: 8px 12px;
  min-width: 84px;
  white-space: pre-line;
  line-height: 1.05;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(122, 16, 24, 0.25);
  position: relative;
}

.claim-btn:active {
  transform: translateY(1px) scale(0.98);
}

.claim-btn.shoot {
  animation: bowDraw 0.36s ease;
}

.flying-arrow {
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  width: 56px;
  height: 4px;
  transform-origin: left center;
  transform: rotate(var(--angle));
  animation: arrowFly 0.75s ease-out forwards;
}

.flying-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f2f6ff 0%, #d8e0ee 50%, #a1adbf 100%);
}

.flying-arrow::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 11px solid #e9bf78;
}

.fire-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd28d 0%, #ff7b2d 70%);
  box-shadow: 0 0 10px rgba(255, 120, 45, 0.85);
  animation: fireBurstFly 0.58s ease-out forwards;
  pointer-events: none;
}

.panel-fire-spark {
  z-index: 3;
}

.panel-fire-core {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, #fff3be 0%, #ff9b41 45%, rgba(180, 24, 28, 0) 78%);
  box-shadow: 0 0 18px rgba(255, 147, 63, 0.75);
  pointer-events: none;
  z-index: 3;
  animation: panelFireCorePop 0.5s ease-out forwards;
}

.airdrop-actions small {
  color: #efd4b5;
}

/* 交互页 · 邀请链接（与空投卡片同色系；链接与复制同一行） */
.airdrop-invite-block {
  margin-top: 16px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(239, 212, 181, 0.2);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.airdrop-invite-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #fde9c9;
}

.airdrop-invite-hint-muted {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(239, 212, 181, 0.72);
}

.airdrop-invite-head {
  margin-bottom: 10px;
}

.airdrop-invite-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fcdca4;
}

.airdrop-invite-url-line {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.airdrop-invite-url-display {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 214, 168, 0.22);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(28, 12, 14, 0.62));
  color: #f5e6d6;
  font-size: 11px;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.airdrop-invite-url-display.airdrop-invite-url-placeholder {
  color: rgba(239, 212, 181, 0.48);
  font-style: normal;
}

.airdrop-invite-copy-cta {
  flex-shrink: 0;
  margin-top: 0 !important;
  width: auto !important;
  min-width: 76px;
  padding: 8px 14px !important;
  align-self: stretch;
  box-sizing: border-box;
  border: 1px solid rgba(176, 33, 37, 0.55);
  background: linear-gradient(180deg, #fffefb 0%, #faf6ef 100%);
  color: #7a1418;
  font-weight: 800;
}

.airdrop-invite-copy-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.airdrop-my-invite-panel {
  margin-top: 14px;
}

.airdrop-legacy-sync-btn {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 214, 168, 0.55);
  background: linear-gradient(180deg, rgba(72, 32, 26, 0.72), rgba(38, 14, 12, 0.88));
  color: #ffe8cf;
  font-weight: 700;
}

.airdrop-legacy-sync-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.airdrop-node-subscribe-btn {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(176, 33, 37, 0.55);
  background: linear-gradient(180deg, #fffefb 0%, #faf6ef 100%);
  color: #7a1418;
  font-weight: 800;
}

.airdrop-node-subscribe-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.airdrop-interact-reset {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.92;
}

.airdrop-about-card {
  margin-top: 12px;
  border: 1px solid rgba(234, 192, 152, 0.45);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(43, 17, 18, 0.75), rgba(25, 11, 14, 0.82));
  backdrop-filter: blur(1px);
  color: #f0d7bf;
  position: relative;
  z-index: 2;
}

.airdrop-about-card h3 {
  margin: 0;
  font-size: 14px;
  color: #ffe4c2;
}

.airdrop-about-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffe4c2;
  cursor: pointer;
}

.airdrop-about-toggle strong {
  font-size: 14px;
}

.airdrop-about-toggle span {
  font-size: 12px;
  border: 1px solid rgba(247, 208, 165, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
  color: #f6d0a0;
}

.airdrop-about-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.55;
  font-size: 12px;
}

.airdrop-about-card.collapsed ul {
  display: none;
}

.card-emphasis {
  border-color: #e7ced1;
  background: linear-gradient(165deg, #fff 0%, #fff6f4 100%);
}

/* 花木 SWAP — 花木兰色谱：绢米底、鎏金边、朱砂绯、松绿点缀 */
.flower-swap-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(201, 162, 92, 0.52);
  border-radius: 18px;
  padding: 14px 16px 16px;
  background:
    radial-gradient(ellipse 125% 85% at 50% -25%, rgba(178, 34, 52, 0.1), transparent 55%),
    radial-gradient(circle at 92% 90%, rgba(61, 107, 92, 0.11), transparent 44%),
    linear-gradient(175deg, #f9f2ea 0%, #f3ebe3 48%, #ebe2d9 100%);
  box-shadow:
    0 12px 38px rgba(42, 28, 28, 0.11),
    inset 0 1px 0 rgba(255, 252, 246, 0.88);
  color: #2a2428;
}

.flower-swap-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 14% 24%, rgba(201, 162, 92, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 86% 16%, rgba(154, 26, 34, 0.07) 0%, transparent 42%);
}

.flower-swap-body {
  position: relative;
  z-index: 3;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fdf9f4 0%, #faf4ec 55%, #f7efe6 100%);
  border: 1px solid rgba(190, 155, 110, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 18px rgba(55, 38, 30, 0.06);
}

.flower-swap-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flower-token-shell {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(139, 90, 72, 0.28);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #fffefb 0%, #fff8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px rgba(74, 42, 42, 0.05);
}

.flower-token-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b5f56;
}

.flower-max-btn {
  border: 1px solid rgba(201, 162, 92, 0.52);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  color: #7a3b32;
  background: rgba(255, 246, 236, 0.96);
  cursor: pointer;
}

.flower-token-main {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flower-token-select {
  position: relative;
  flex-shrink: 0;
  max-width: 42%;
}

.flower-token-select-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(139, 90, 72, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb 0%, #faf6ef 100%);
  font-size: 15px;
  font-weight: 800;
  color: #2a2428;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#swapReceiveTokenTrigger {
  cursor: default;
}

#swapReceiveTokenTrigger .flower-token-select-chevron {
  opacity: 0.35;
}

.flower-token-select-trigger[aria-expanded="true"] {
  border-color: rgba(201, 162, 92, 0.85);
  box-shadow: 0 0 0 2px rgba(201, 162, 92, 0.22);
}

.flower-token-select-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flower-token-select-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: #8b1531;
  opacity: 0.85;
}

.flower-token-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(190, 155, 110, 0.45);
  background: #fffefb;
  box-shadow: 0 12px 28px rgba(42, 28, 28, 0.14);
}

.flower-token-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #3a2f32;
  background: transparent;
  cursor: pointer;
}

.flower-token-option:last-child {
  margin-bottom: 0;
}

.flower-token-option:hover {
  background: rgba(255, 246, 236, 0.95);
}

.flower-token-option.is-active {
  background: rgba(201, 162, 92, 0.22);
  color: #7a1420;
}

/* 可点的数量区：聚焦唤起数字键盘，样式接近原大号金额 */
.flower-amount-input {
  flex: 1;
  min-width: 0;
  max-width: 58%;
  margin: -6px -8px -6px 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(154, 26, 34, 0.28);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #9a1a22;
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: rgba(255, 246, 238, 0.85);
  box-shadow: inset 0 1px 2px rgba(74, 42, 42, 0.06);
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}

.flower-amount-input::placeholder {
  color: rgba(154, 26, 34, 0.35);
  font-weight: 700;
}

.flower-amount-input:focus {
  outline: none;
  border-style: solid;
  border-color: rgba(201, 162, 92, 0.85);
  background: #fffefb;
  box-shadow:
    0 0 0 2px rgba(201, 162, 92, 0.28),
    inset 0 1px 2px rgba(74, 42, 42, 0.05);
}

/* 预计收到：只读，仍可整块看作「展示按钮」 */
.flower-amount-input--estimate {
  cursor: default;
  color: #8b2631;
  border-style: solid;
  border-color: rgba(139, 90, 72, 0.22);
  background: rgba(252, 248, 243, 0.92);
}

.flower-amount-input--estimate:focus {
  box-shadow: none;
}

.flower-flip-btn {
  align-self: center;
  width: 38px;
  height: 38px;
  margin: 2px auto;
  border-radius: 50%;
  border: 2px solid rgba(90, 62, 48, 0.32);
  background: linear-gradient(145deg, #faf6ef 0%, #e8dcc8 100%);
  box-shadow:
    0 4px 14px rgba(74, 42, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #8b1531;
}

.flower-flip-icon {
  font-size: 14px;
  line-height: 1;
}

.flower-swap-rate {
  margin: 18px 0 6px;
  text-align: center;
  font-size: 12px;
  color: #5c534c;
}

.flower-swap-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: #6e665f;
  line-height: 1.45;
}

.flower-slippage-box {
  margin-top: 10px;
  padding: 8px 10px 6px;
  border: 1px solid rgba(164, 122, 80, 0.2);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.82);
}

.flower-slippage-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #6f6259;
}

.flower-slippage-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.flower-slippage-btn {
  border: 1px solid rgba(165, 122, 80, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
  color: #6b2b2f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.flower-slippage-btn.active {
  border-color: rgba(139, 21, 49, 0.65);
  background: rgba(139, 21, 49, 0.1);
  color: #8b1531;
}

.flower-slippage-custom-input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(165, 122, 80, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: #4a3a33;
  background: #fff;
}

.flower-slippage-note {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #7f7064;
  line-height: 1.35;
}

.flower-trade-extra {
  border-color: rgba(201, 162, 92, 0.38);
  background: linear-gradient(165deg, #fdf9f5 0%, #faf4ee 100%);
}

.flower-extra-stats {
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 162, 92, 0.22);
}

.flower-extra-stats .kv-row:first-child {
  margin-top: 0;
}

.flower-trade-extra h2 {
  margin: 12px 0 6px;
  font-size: 17px;
  color: #5c2228;
}

.flower-trade-extra .contract-row {
  margin-top: 8px;
}

.kv-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #525864;
}

.kv-row strong {
  color: #7e1a1d;
}

.action-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trade-order-card h2 {
  margin-bottom: 10px;
}

.trade-order-head,
.trade-order-row {
  display: grid;
  grid-template-columns: 52px 62px minmax(0, 1fr) 52px 40px;
  gap: 8px;
  align-items: center;
}

.trade-order-head {
  padding: 0 4px 8px;
  border-bottom: 1px solid #ece2d7;
  font-size: 12px;
  color: #7a828f;
}

.trade-order-list {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
  padding-right: 2px;
}

.trade-order-row {
  padding: 9px 4px;
  border-bottom: 1px dashed #eadfce;
  font-size: 12px;
  color: #4d5562;
}

.trade-order-head span,
.trade-order-row span,
.trade-order-row small,
.trade-order-row em {
  min-width: 0;
}

.trade-order-row span:nth-child(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-order-row:last-child {
  border-bottom: 0;
}

.trade-order-type {
  font-size: 12px;
}

.trade-order-type.buy {
  color: #bb2e2e;
}

.trade-order-type.sell {
  color: #2d5fb0;
}

.trade-order-status {
  font-style: normal;
  font-size: 12px;
}

.trade-order-status.done {
  color: #2e8b57;
}

.trade-order-status.pending {
  color: #ba6b2d;
}

.trade-order-status.cancel {
  color: #7c8593;
}

.trade-order-row small {
  color: #7b8390;
}

.account-wallet-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #3a2f32;
}

.account-disconnect-btn {
  width: 100%;
  border: 1px solid rgba(154, 26, 34, 0.42);
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #8b1e28;
  cursor: pointer;
  background: linear-gradient(180deg, #fff8f5 0%, #fdeeee 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(120, 40, 48, 0.08);
}

.account-disconnect-btn:active {
  transform: translateY(1px);
}

.account-disconnect-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.war-trade-card {
  position: relative;
  overflow: hidden;
  border-color: #ddbbb3;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 158, 78, 0.2), rgba(255, 158, 78, 0) 38%),
    linear-gradient(165deg, #fff9f7 0%, #fff 82%);
}

.war-trade-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 141, 67, 0.4), rgba(181, 28, 34, 0));
  filter: blur(2px);
  pointer-events: none;
}

.contract-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #666f7d;
}

.contract-row .small-action {
  padding: 6px 10px;
  font-size: 12px;
}

.contract-address {
  margin-top: 6px;
  display: block;
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #8f141c;
  word-break: break-all;
  background: rgba(255, 246, 238, 0.85);
  border: 1px solid #ecd4c5;
  border-radius: 8px;
  padding: 7px 8px;
}

.trade-price-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5a616d;
  font-size: 14px;
}

.trade-price-row strong {
  color: #8f141c;
  letter-spacing: 0.5px;
}

.trade-action-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trade-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 0;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.trade-btn:active {
  transform: translateY(1px) scale(0.98);
}

.buy-btn {
  background: linear-gradient(125deg, #f07932 0%, #b7272f 100%);
  box-shadow: 0 8px 14px rgba(176, 35, 36, 0.28);
}

.sell-btn {
  background: linear-gradient(125deg, #cc2c33 0%, #7a111a 100%);
  box-shadow: 0 8px 14px rgba(122, 17, 26, 0.32);
}

.small-action {
  border: 1px solid #dfd8cf;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  color: #343b48;
  cursor: pointer;
}

.small-action:hover {
  border-color: #cf3c42;
  color: #b02125;
}

.progress-wrap {
  margin-top: 12px;
}

.drum-stage {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
  padding-inline: 8px;
  overflow: visible;
}

.drum-button {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, #f0debf 0%, #e7d3ae 56%, #c59c6c 100%),
    radial-gradient(circle at 50% 50%, rgba(90, 22, 24, 0.25), rgba(90, 22, 24, 0) 70%);
  box-shadow:
    0 16px 34px rgba(29, 16, 23, 0.42),
    inset 0 0 0 2px rgba(255, 208, 138, 0.45);
  animation: drumPulse 2.2s ease-in-out infinite;
  overflow: visible;
  transform-origin: center center;
  will-change: transform, filter;
}

.drum-weapon {
  position: absolute;
  z-index: 4;
  display: none;
}

.drum-weapon.sword {
  width: clamp(52px, 17vw, 64px);
  height: 7px;
  left: clamp(-18px, -2vw, -10px);
  top: 36%;
  transform: rotate(-22deg);
  background: linear-gradient(90deg, #f8fbff 0%, #d0d8e5 54%, #7f8aa1 100%);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(245, 224, 181, 0.45);
}

.drum-weapon.sword::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #f2d08f;
}

.drum-weapon.spear {
  width: clamp(54px, 19vw, 68px);
  height: 7px;
  right: clamp(-18px, -2.2vw, -10px);
  top: 63%;
  transform: rotate(28deg);
  background: linear-gradient(90deg, #7f101b 0%, #d9402b 48%, #7f101b 100%);
  border-radius: 8px;
}

.drum-weapon.spear::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 11px solid #f0c985;
}

.drum-fireline {
  display: none;
  position: absolute;
  width: 112px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 213, 149, 0), rgba(246, 213, 149, 0.8), rgba(164, 26, 31, 0));
  filter: blur(1px);
  opacity: 0.65;
  z-index: 2;
}

.drum-fireline.left {
  left: 16px;
  top: 20px;
  transform: rotate(26deg);
}

.drum-fireline.right {
  right: 12px;
  bottom: 22px;
  transform: rotate(-32deg);
}

.drum-shell {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4e4c6 0 54%, #d1ab7d 55% 57%, #8f151e 57% 72%, #c32329 72% 100%);
}

.drum-shell::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 6px solid #8f1119;
  box-shadow:
    inset 0 0 0 2px rgba(251, 197, 127, 0.32),
    0 5px 12px rgba(0, 0, 0, 0.35);
}

.drum-shell::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(142, 103, 63, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.26) 0 16%, transparent 44%),
    radial-gradient(circle at 76% 30%, rgba(120, 74, 42, 0.12) 0 12%, transparent 30%),
    radial-gradient(circle at center, #efe0c2 0 70%, #c49a70 100%);
  border: 2px solid rgba(116, 78, 47, 0.45);
}

.drum-shell .drum-nails::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 96, 0.34) 0%, rgba(198, 26, 34, 0) 66%);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.drum-nails {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.drum-nails::before {
  content: none;
}

.drum-emblem {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 50%;
  border: 2px solid rgba(142, 20, 29, 0.7);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 224, 159, 0.82), rgba(255, 224, 159, 0) 62%),
    linear-gradient(155deg, #b7222a 0%, #7b1119 100%);
  box-shadow:
    0 0 12px rgba(143, 17, 25, 0.25),
    inset 0 0 0 2px rgba(247, 211, 146, 0.45);
}

.drum-emblem::before {
  content: "木兰";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f6d9a7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(48, 11, 15, 0.5);
}

.drum-stick {
  position: absolute;
  width: clamp(84px, 30vw, 102px);
  height: clamp(10px, 3.8vw, 13px);
  border-radius: 999px;
  background: linear-gradient(90deg, #f1d592 0 14%, #cf1d21 14% 80%, #f1d592 80% 100%);
  box-shadow: 0 3px 8px rgba(43, 20, 22, 0.36);
  z-index: 3;
  transform-origin: 10px center;
}

.drum-stick::after {
  content: "";
  position: absolute;
  right: 6px;
  top: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5cd 0 35%, #d8b676 80%);
}

.drum-stick.left {
  left: clamp(10px, 6.5vw, 20px);
  bottom: clamp(34px, 14vw, 48px);
  transform: rotate(-58deg);
}

.drum-stick.right {
  right: clamp(10px, 6.5vw, 20px);
  bottom: clamp(33px, 13.5vw, 46px);
  transform: rotate(54deg);
}

.drum-stick.right::before {
  content: none;
}

.drum-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  background: rgba(122, 34, 20, 0.65);
  padding: 5px 12px;
  border-radius: 999px;
}

.drum-button::before,
.drum-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(207, 62, 67, 0.45);
  opacity: 0;
  pointer-events: none;
}

.drum-button.is-hit {
  animation: drumHit 0.4s ease;
}

.drum-button.is-hit .drum-fireline.left {
  animation: fireSlashLeft 0.35s ease;
}

.drum-button.is-hit .drum-fireline.right {
  animation: fireSlashRight 0.35s ease;
}

.drum-button.is-hit .drum-stick.left {
  animation: stickHitLeft 0.34s ease;
}

.drum-button.is-hit .drum-stick.right {
  animation: stickHitRight 0.34s ease;
}

.drum-button.is-hit .drum-shell .drum-nails::after {
  animation: drumFireFlash 0.44s ease-out;
}

.drum-button.is-hit::before {
  animation: drumWave 0.7s ease-out;
}

.drum-button.is-hit::after {
  animation: drumWave 0.7s ease-out 0.15s;
}

.drum-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd8a1;
  box-shadow: 0 0 8px rgba(255, 180, 114, 0.9);
  animation: sparkFly 0.65s ease-out forwards;
  pointer-events: none;
}

.drum-tip {
  margin: 6px 0 0;
  position: relative;
  z-index: 5;
  font-size: 11px;
  color: #666f7d;
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drum-progress-hint {
  margin: 4px 0 0;
  font-size: 10px;
  color: #7d8694;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drum-progress-hint.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.drum-hint-toggle-btn {
  margin: 3px auto 0;
  display: block;
  border: 0;
  background: transparent;
  color: #8f1a22;
  font-size: 10px;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
}

.drum-rule-modal-card {
  border-color: #e3c5a6;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 180, 104, 0.2), transparent 40%),
    linear-gradient(170deg, #fff8f1 0%, #fff 88%);
}

.drum-rule-modal-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #5a616d;
  font-size: 13px;
  line-height: 1.6;
}

.drum-max-reward-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(118deg, #b02432 0%, #84121d 52%, #8f1531 100%);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(132, 18, 29, 0.28);
}

.drum-max-reward-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: linear-gradient(120deg, #5c5c62 0%, #3d3d42 100%);
  box-shadow: none;
}

.drum-max-reward-btn[hidden] {
  display: none !important;
}

@media (min-width: 920px) {
  .app-shell {
    max-width: 860px;
  }

  .bottom-nav {
    width: min(860px, calc(100% - 20px));
  }

  .war-drum-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #626b79;
}

.progress-bar {
  margin-top: 8px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eee4dc;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(120deg, #c13a3f 0%, #7a1018 100%);
}

.task-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4e5664;
  line-height: 1.7;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e6ddd3;
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
  color: #3f4754;
}

.channel-item small {
  color: #7b8290;
}

.chat-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #6f7682;
}

.chat-card {
  position: relative;
  padding-bottom: 12px;
  min-height: 180px;
  height: calc(100dvh - 268px);
  height: calc(100vh - 268px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-entry-fx {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffdcb1;
  border: 1px solid rgba(248, 193, 126, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 177, 93, 0.24), transparent 52%),
    linear-gradient(120deg, rgba(130, 22, 24, 0.9), rgba(91, 15, 21, 0.95));
  box-shadow: 0 6px 14px rgba(29, 13, 19, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.chat-entry-fx.play {
  animation: chatEntryFade 1.25s ease forwards;
}

.chat-messages {
  margin-top: 8px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  border: 1px solid #e4ddd4;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff6f3 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 86%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #eadfd6;
  background: #fff;
}

.chat-msg.self {
  margin-left: auto;
  background: linear-gradient(145deg, #ffe9e0 0%, #fff 100%);
  border-color: #efcbc2;
}

.chat-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #7d8592;
}

.chat-msg-body {
  margin-top: 2px;
  font-size: 13px;
  color: #2f3541;
  word-break: break-word;
}

.chat-composer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

@media (max-height: 760px) {
  .chat-card {
    height: calc(100dvh - 240px);
    height: calc(100vh - 240px);
    min-height: 160px;
  }

  .chat-messages {
    min-height: 0;
    max-height: none;
  }
}

.chat-composer input {
  border: 1px solid #e2d9d0;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}

.chat-composer button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #cc4c2a 0%, #8a121d 100%);
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 个人信息 · 木兰巾帼主题 ---------- */
.profile-mulan-card {
  position: relative;
  overflow-x: visible;
  overflow-y: visible;
  padding-top: 12px;
  border-color: rgba(176, 132, 72, 0.42);
  background:
    radial-gradient(ellipse 95% 55% at 50% -30%, rgba(212, 168, 88, 0.22), transparent 58%),
    radial-gradient(circle at 102% 88%, rgba(108, 21, 38, 0.07), transparent 42%),
    linear-gradient(172deg, #fdf9f4 0%, #f3e9dc 38%, #faf6ef 100%);
  box-shadow:
    0 16px 42px rgba(48, 22, 22, 0.09),
    inset 0 1px 0 rgba(255, 252, 247, 0.92),
    inset 0 0 0 1px rgba(212, 178, 124, 0.38);
}

.profile-mulan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 8px,
    rgba(74, 36, 36, 0.07) 8px,
    rgba(74, 36, 36, 0.07) 9px
  );
}

.profile-card-topbar {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 26, 42, 0.85) 18%,
    rgba(200, 154, 72, 0.95) 50%,
    rgba(139, 26, 42, 0.85) 82%,
    transparent 100%
  );
  box-shadow: 0 2px 12px rgba(120, 42, 42, 0.18);
}

.profile-card-title {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(108deg, #6e1624 0%, #b8752e 48%, #6e1624 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-card-title::after {
  content: "";
  display: block;
  margin-top: 6px;
  height: 2px;
  width: 72px;
  max-width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(184, 138, 62, 0.15), rgba(184, 138, 62, 0.95), rgba(184, 138, 62, 0.15));
}

.profile-edit {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(190, 155, 118, 0.42);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 236, 210, 0.55), transparent 42%),
    linear-gradient(158deg, rgba(255, 252, 247, 0.96) 0%, rgba(249, 241, 232, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 22px rgba(62, 28, 28, 0.06);
}

.profile-head-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.profile-avatar-wrap {
  position: relative;
  display: block;
  justify-self: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  isolation: isolate;
}

.profile-avatar-trigger {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.profile-avatar-trigger:focus-visible {
  outline: 2px solid rgba(139, 26, 42, 0.65);
  outline-offset: 2px;
}

.profile-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.profile-avatar-trigger img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #d4a84a;
  background: linear-gradient(145deg, #2a2226 0%, #151218 100%);
  box-shadow:
    0 0 0 3px #2a1816,
    0 0 0 4px rgba(212, 175, 106, 0.65),
    0 14px 32px rgba(46, 14, 22, 0.38),
    inset 0 1px 0 rgba(255, 248, 228, 0.12);
}

.profile-avatar-wrap.updated .profile-avatar-trigger img {
  animation: avatarWin 0.45s ease;
}

.profile-form {
  display: grid;
  gap: 8px;
  padding: 8px 8px 10px;
  border-radius: 14px;
  min-width: 0;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(252, 246, 238, 0.72) 100%);
  border: 1px solid rgba(206, 182, 148, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.profile-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b5348;
  text-transform: none;
}

.profile-form input {
  border: 1px solid rgba(176, 148, 118, 0.45);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 13px;
  color: #2a2420;
  background: linear-gradient(180deg, #fffefb 0%, #faf6ef 100%);
  box-shadow: inset 0 1px 3px rgba(42, 28, 22, 0.05);
}

.profile-form input:focus {
  outline: none;
  border-color: rgba(139, 26, 42, 0.55);
  box-shadow:
    0 0 0 2px rgba(212, 175, 106, 0.35),
    inset 0 1px 3px rgba(42, 28, 22, 0.05);
}

.profile-form #saveProfileBtn {
  margin-top: 2px;
  border: 1px solid rgba(92, 26, 34, 0.35);
  border-radius: 12px;
  padding: 9px 12px;
  background: linear-gradient(118deg, #b02432 0%, #6e1420 42%, #8b1531 100%);
  color: #fffefd;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(20, 8, 10, 0.45);
  box-shadow:
    0 8px 22px rgba(110, 22, 38, 0.35),
    inset 0 1px 0 rgba(255, 220, 200, 0.22);
}

.profile-form #saveProfileBtn:hover {
  color: #fffefd;
  border-color: rgba(212, 175, 106, 0.45);
  filter: brightness(1.04);
  opacity: 1;
}

.profile-points-badge {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(212, 175, 106, 0.38);
  background: linear-gradient(168deg, rgba(34, 26, 28, 0.94) 0%, rgba(26, 20, 24, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 210, 0.08),
    0 6px 18px rgba(24, 12, 16, 0.25);
}

.profile-points-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}

.profile-points-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(232, 218, 196, 0.88);
  min-width: 0;
  line-height: 1.35;
}

.profile-points-badge strong {
  font-variant-numeric: tabular-nums;
  color: #f4d58d;
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(212, 168, 72, 0.35);
  white-space: nowrap;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: end;
}

.profile-referrer-block {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(190, 155, 118, 0.35);
  font-size: 12px;
  line-height: 1.45;
  color: #4a3d36;
  word-break: break-word;
}

.profile-referrer-block .profile-referrer-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: #6b5348;
}

.profile-referrer-block code {
  display: block;
  font-size: 11px;
  word-break: break-all;
  color: #1e232b;
}

.profile-chain-meta {
  display: block;
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #5c4a42;
  opacity: 0.95;
  word-break: break-word;
}

.profile-wallet-line {
  display: block;
  margin: 0;
  padding: 0;
  font-size: clamp(10px, 3vw, 11px);
  line-height: 1.5;
  color: #4d433c;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.nft-card {
  border-color: rgba(212, 178, 138, 0.65);
  background:
    radial-gradient(circle at top right, rgba(246, 189, 98, 0.22), transparent 38%),
    linear-gradient(165deg, #fffaf2 0%, #fff 84%);
}

.nft-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.nft-preview {
  height: 84px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff6dc;
  font-weight: 700;
  font-size: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(130deg, #9b121e 0%, #4d0a10 100%);
  border: 1px solid #d0744a;
}

.nft-meta {
  display: grid;
  align-content: start;
  gap: 4px;
}

.nft-stats-row {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.nft-stats-row small {
  color: #6f7682;
  font-size: 12px;
}

.nft-stats-row strong {
  color: #8f141c;
  font-size: 13px;
}

.nft-stake-panel {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(143, 20, 28, 0.14);
  background: linear-gradient(165deg, rgba(255, 251, 246, 0.95) 0%, rgba(252, 245, 238, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nft-stake-breakdown {
  font-size: 11px;
  line-height: 1.55;
  color: #4f473f;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.nft-stake-hint {
  margin: 8px 0 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #827569;
}

.nft-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

/* 竖向长方形卡片，立绘在中间区域更舒展 */
.nft-item {
  /* 卡身与立绘垫底同一套色相，避免「外框 / 内底 / 立绘区」各走一套色 */
  --nft-art-pad: linear-gradient(165deg, #35333d 0%, #28262f 38%, #1e1c24 100%);
  /* 与 --nft-art-pad 同族的朦胧边（勿用 14,17,24 冷黑，否则未拥有态会像「另一块底色」） */
  --nft-vignette-top: rgba(42, 40, 50, 0.48);
  --nft-vignette-bottom: rgba(38, 36, 46, 0.56);
  --nft-vignette-radial: rgba(40, 38, 48, 0.44);
  --nft-border: rgba(230, 195, 148, 0.36);
  --nft-border-inset: rgba(255, 214, 158, 0.09);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5.4;
  border: 1px solid var(--nft-border);
  border-radius: 14px;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(252, 245, 230, 0.07), transparent 52%),
    var(--nft-art-pad);
  box-shadow: inset 0 0 0 1px var(--nft-border-inset);
}

.nft-item-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  color: #b2bccd;
  font-size: 11px;
}

.nft-count-badge {
  flex-shrink: 0;
  position: static;
  z-index: 3;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #f6d7a7;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(247, 211, 146, 0.42);
  background: rgba(76, 23, 30, 0.58);
}

.nft-item-head .nft-item-name {
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;
  max-width: min(62%, 11em);
  flex-shrink: 1;
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  color: #ffca86;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(247, 211, 146, 0.35);
  background: rgba(76, 23, 30, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft-item-stars {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  color: #f7bf53;
}

.nft-item-yield {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #a9b6c9;
}

.nft-action-btn {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px 0;
  background: linear-gradient(120deg, #2d313b 0%, #181b23 100%);
  color: #d7deeb;
  font-weight: 700;
  cursor: pointer;
}

.nft-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: linear-gradient(120deg, #2d313b 0%, #181b23 100%);
  color: #aeb6c4;
}

.nft-card-actions {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.nft-card-actions .nft-action-btn {
  margin-top: 0;
}

.nft-transfer-btn {
  width: 100%;
  border: 1px solid rgba(230, 196, 140, 0.42);
  border-radius: 10px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 700;
  color: #efcf9b;
  background: rgba(41, 36, 43, 0.68);
  cursor: pointer;
}

.nft-stake-btn {
  width: 100%;
  border: 1px solid rgba(106, 189, 144, 0.46);
  border-radius: 10px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 700;
  color: #9de6b1;
  background: rgba(33, 57, 43, 0.74);
  cursor: pointer;
}

.nft-stake-btn.is-staked {
  border-color: rgba(239, 176, 105, 0.52);
  color: #f7cf93;
  background: rgba(90, 64, 37, 0.68);
}

.nft-transfer-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nft-stake-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nft-item.owned {
  --nft-border: rgba(251, 188, 105, 0.58);
  --nft-border-inset: rgba(255, 224, 175, 0.2);
  box-shadow:
    0 8px 16px rgba(186, 57, 33, 0.22),
    inset 0 0 0 1px var(--nft-border-inset);
}

.nft-item.owned .nft-item-name {
  color: #ffca86;
  text-shadow: 0 0 8px rgba(255, 164, 74, 0.3);
}

.nft-item.locked .nft-item-name {
  color: #ffca86;
}

.nft-item.ready .nft-action-btn {
  background: linear-gradient(120deg, #ce4f2b 0%, #84121d 100%);
  color: #fff;
}

.nft-item.owned .nft-action-btn {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(32, 41, 34, 0.98) 0%,
      rgba(32, 41, 34, 0.88) 42%,
      rgba(32, 41, 34, 0.35) 72%
    ),
    url("assets/nft-card-bottom-mulan.png") right -10px bottom -14px / auto 155% no-repeat,
    linear-gradient(120deg, #2f3c34 0%, #202922 100%);
  color: #9de6b1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 四卡共用：未拥有时的罩层，色相与卡身 / --nft-art-pad 一致 */
.nft-item[data-nft-index="0"]::after,
.nft-item[data-nft-index="1"]::after,
.nft-item[data-nft-index="2"]::after,
.nft-item[data-nft-index="3"]::after {
  content: none;
}

/* 首卡：立绘始终铺在主区；未拥有朦胧，领取后清晰 */
.nft-item[data-nft-index="0"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 四张卡立绘统一：同一套滤镜强度，避免 multiply 导致后三张发乌 */
.nft-item[data-nft-index="0"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 22px 2px 48px 2px;
  border-radius: 11px;
  background: url("assets/nft-card-body-tier0.png") center bottom / contain no-repeat;
  /* 纯黑底 PNG 与垫底取亮部融合，避免一块「异色板」 */
  background-blend-mode: lighten, normal;
  filter: blur(6px) saturate(0.88) brightness(1.06);
  opacity: 0.42;
  transition:
    filter 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.nft-item[data-nft-index="0"].owned::before {
  background-blend-mode: normal, normal;
  filter: brightness(1.06) saturate(1.08) contrast(1.03);
  opacity: 1;
}

.nft-item[data-nft-index="0"].owned::after {
  opacity: 0;
}

.nft-item[data-nft-index="0"] > * {
  position: relative;
  z-index: 2;
}

.nft-item[data-nft-index="0"] .nft-item-name,
.nft-item[data-nft-index="0"] .nft-item-stars,
.nft-item[data-nft-index="0"] .nft-item-yield {
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.85);
}

.nft-item[data-nft-index="0"].owned .nft-action-btn {
  background: linear-gradient(120deg, #2f3c34 0%, #202922 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 进阶「木兰·替父从军」：抠图透明 PNG，居中 contain */
.nft-item[data-nft-index="1"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.nft-item[data-nft-index="1"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 22px 2px 48px 2px;
  border-radius: 11px;
  background: url("assets/nft-card-body-tifu-congjun.png") center bottom / contain no-repeat;
  filter: blur(6px) saturate(0.88) brightness(1.06);
  opacity: 0.42;
  transition:
    filter 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.nft-item[data-nft-index="1"].owned::before {
  filter: brightness(1.06) saturate(1.08) contrast(1.03);
  opacity: 1;
}

.nft-item[data-nft-index="1"].owned::after {
  opacity: 0;
}

.nft-item[data-nft-index="1"] > * {
  position: relative;
  z-index: 2;
}

.nft-item[data-nft-index="1"] .nft-item-name,
.nft-item[data-nft-index="1"] .nft-item-stars,
.nft-item[data-nft-index="1"] .nft-item-yield {
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.92),
    0 1px 4px rgba(0, 0, 0, 0.88);
}

.nft-item[data-nft-index="1"].owned .nft-action-btn {
  background: linear-gradient(120deg, #2f3c34 0%, #202922 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 进阶「木兰·赤心女戎」：立绘在 ::before；未拥有朦胧呼吸动效，持有后与其它卡一致转清晰 */
.nft-item[data-nft-index="2"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 12%, rgba(252, 245, 230, 0.07), transparent 52%),
    var(--nft-art-pad);
}

.nft-item[data-nft-index="2"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 22px 2px 48px 2px;
  border-radius: 11px;
  background: url("assets/nft-card-body-chixin-new.png") center bottom / contain no-repeat;
  filter: blur(7px) saturate(0.84) brightness(1.04);
  opacity: 0.38;
  transition:
    filter 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  animation: nftChixinHaze 3.4s ease-in-out infinite;
}

.nft-item[data-nft-index="2"].has-count::before {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .nft-item[data-nft-index="2"]::before {
    animation: none;
    opacity: 0.4;
    filter: blur(6px) saturate(0.85) brightness(1.05);
  }
}

.nft-item[data-nft-index="2"] > * {
  position: relative;
  z-index: 2;
}

.nft-item[data-nft-index="2"] .nft-item-name,
.nft-item[data-nft-index="2"] .nft-item-stars,
.nft-item[data-nft-index="2"] .nft-item-yield {
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.85);
}

.nft-item[data-nft-index="2"].owned .nft-action-btn {
  background: linear-gradient(120deg, #2f3c34 0%, #202922 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 终阶「木兰·凤翎天君」：未拥有朦胧 / 已拥有清晰 */
.nft-item[data-nft-index="3"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.nft-item[data-nft-index="3"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 22px 2px 48px 2px;
  border-radius: 11px;
  background: url("assets/nft-card-body-phoenix.png") center bottom / contain no-repeat;
  filter: blur(6px) saturate(0.88) brightness(1.06);
  opacity: 0.42;
  transition:
    filter 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.nft-item[data-nft-index="3"].owned::before {
  filter: brightness(1.06) saturate(1.08) contrast(1.03);
  opacity: 1;
}

.nft-item[data-nft-index="0"].has-count::before,
.nft-item[data-nft-index="1"].has-count::before,
.nft-item[data-nft-index="2"].has-count::before,
.nft-item[data-nft-index="3"].has-count::before {
  filter: brightness(1.06) saturate(1.08) contrast(1.03);
  opacity: 1;
}

.nft-item[data-nft-index="0"].has-count::after,
.nft-item[data-nft-index="1"].has-count::after,
.nft-item[data-nft-index="3"].has-count::after {
  opacity: 0;
}

.nft-item[data-nft-index="3"].owned::after {
  opacity: 0;
}

.nft-item[data-nft-index="3"] > * {
  position: relative;
  z-index: 2;
}

.nft-item[data-nft-index="3"] .nft-item-name,
.nft-item[data-nft-index="3"] .nft-item-stars,
.nft-item[data-nft-index="3"] .nft-item-yield {
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.85);
}

.nft-item[data-nft-index="3"].owned .nft-action-btn {
  background: linear-gradient(120deg, #2f3c34 0%, #202922 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.nft-item.transfer-out {
  animation: nftTransferOut 0.55s ease forwards;
}

.nft-tools {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nft-tools .small-action {
  padding: 8px 6px;
  font-size: 12px;
}

.nft-note {
  margin-top: 8px;
}

.nft-note small {
  color: #6f7682;
  font-size: 12px;
}

/* 账户页 · 我的节点认购（与个人信息积分条同款深色 badge） */
.account-node-card {
  border-color: rgba(176, 132, 72, 0.42);
  background:
    radial-gradient(ellipse 92% 50% at 50% -28%, rgba(212, 168, 88, 0.16), transparent 56%),
    linear-gradient(172deg, #fdf9f4 0%, #f7efe4 42%, #faf6ef 100%);
}

.account-node-card h2 {
  margin: 0 0 10px;
}

.account-node-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5c534c;
}

.account-node-status-badge {
  margin-top: 0;
}

.account-node-benefit-line {
  margin: 10px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(232, 218, 196, 0.9);
}

.account-node-benefit-line-muted {
  font-weight: 500;
  color: rgba(232, 218, 196, 0.72);
}

.account-node-open-btn {
  margin-top: 12px;
}

.node-subscribe-card {
  margin-top: 10px;
  border: 1px solid #e4d2be;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(165deg, #fffdf9 0%, #fff5ea 100%);
}

.node-subscribe-card-lead {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
  color: #4a3f38;
}

.node-subscribe-card h3 {
  margin: 0;
  font-size: 14px;
  color: #8b1a20;
}

.node-subscribe-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #555d69;
  line-height: 1.58;
  font-size: 12px;
}

.node-subscribe-btn {
  margin-top: 8px;
  width: 100%;
  border: 1px solid #d9c7b7;
  background: linear-gradient(165deg, #fff 0%, #fff4ec 100%);
  color: #8b1a20;
  font-weight: 700;
}

.nft-rule-board {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.nft-rule-trigger {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #d9c7b7;
  background: linear-gradient(165deg, #fff 0%, #fff4ec 100%);
  color: #8b1a20;
  font-weight: 700;
}

.nft-rule-section {
  border: 1px solid #e7dccf;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(165deg, #fffdfa 0%, #fff7f1 100%);
}

.nft-rule-section h3 {
  margin: 0;
  font-size: 14px;
  color: #862027;
}

.nft-rule-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #555d69;
  line-height: 1.6;
  font-size: 12px;
}

.nft-rule-modal-card {
  max-height: min(82dvh, calc(100dvh - 48px), 620px);
  max-height: min(78vh, calc(100vh - 48px), 620px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.nft-transfer-card input {
  width: 100%;
  border: 1px solid #e1d6ca;
  border-radius: 10px;
  padding: 10px;
  margin-top: 12px;
  font-size: 13px;
}

.nft-transfer-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nft-transfer-actions button {
  margin-top: 0;
}

.team-invite-card {
  margin-top: 10px;
  border: 1px solid #e3d9ce;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(165deg, #fff8f5 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-invite-card strong {
  display: block;
  font-size: 14px;
  color: #3d4450;
}

.team-invite-card small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7b8290;
}

.team-detail-card {
  margin-top: 10px;
  border: 1px solid #e3d9ce;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(165deg, #fffaf7 0%, #fff 100%);
}

.team-detail-head strong {
  font-size: 14px;
  color: #3a404c;
}

.team-detail-head small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7a818e;
}

.team-rewards-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #4d5562;
  background: rgba(248, 244, 238, 0.95);
  border: 1px solid rgba(212, 188, 158, 0.45);
}

.team-direct-list-wrap {
  margin-top: 10px;
}

.team-direct-list-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #3a404c;
}

.team-direct-hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #7a818e;
}

.team-direct-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.team-direct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e8dfd6;
  background: #fffdfb;
  font-size: 12px;
}

.team-direct-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-direct-meta {
  font-size: 11px;
  line-height: 1.35;
  color: #7a818e;
}

.team-node-rewards-badge {
  margin-top: 12px;
}

.node-bnb-accrual-hint {
  margin-top: 10px;
}

.node-bnb-accrual-block {
  margin-top: 12px;
}

.node-bnb-accrual-title {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #4a4f58;
}

.node-bnb-accrual-title strong {
  color: #2f3541;
}

.node-bnb-accrual-title small {
  margin-left: 6px;
  font-weight: 400;
  color: #7a818e;
}

.node-bnb-accrual-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e6ddd2;
  border-radius: 10px;
  background: #fff;
}

.node-bnb-accrual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #2f3541;
}

.node-bnb-accrual-table th,
.node-bnb-accrual-table td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.node-bnb-accrual-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #faf7f4;
  font-weight: 700;
  color: #5c6370;
}

.node-bnb-accrual-table tbody tr:last-child td {
  border-bottom: none;
}

.node-bnb-accrual-table code {
  font-size: 10px;
  color: #3d4450;
}

.node-bnb-accrual-kind {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.team-claim-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-direct-row code {
  min-width: 0;
  flex: 1;
  word-break: break-all;
  color: #2f3541;
}

.team-direct-row .small-action {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 11px;
}

.team-detail-stats {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.team-detail-pill-span {
  grid-column: 1 / -1;
}

.team-detail-pill {
  border: 1px solid #e6ddd2;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-detail-pill span {
  font-size: 12px;
  color: #69707c;
}

.team-detail-pill > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-stat-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.team-stat-marker-direct {
  background: linear-gradient(120deg, #e36d2f 0%, #b12127 100%);
}

.team-stat-marker-indirect {
  background: linear-gradient(120deg, #5c7bf2 0%, #3f58c8 100%);
}

.team-detail-pill b {
  color: #97181f;
}

.team-filter-bar {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.team-filter-btn {
  border: 1px solid #e0d5c8;
  border-radius: 999px;
  padding: 6px 8px;
  background: #fff;
  color: #5a616d;
  font-size: 12px;
  cursor: pointer;
}

.team-filter-btn.active {
  border-color: #cb6e38;
  color: #8f1a22;
  background: linear-gradient(165deg, #fff4ea 0%, #fff 100%);
  font-weight: 700;
}

.team-address-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.team-address-list::-webkit-scrollbar {
  width: 6px;
}

.team-address-list::-webkit-scrollbar-track {
  background: #f1ebe4;
  border-radius: 999px;
}

.team-address-list::-webkit-scrollbar-thumb {
  background: #d3c4b6;
  border-radius: 999px;
}

.team-address-item {
  border: 1px solid #e7ddd2;
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
}

.team-address-item code {
  font-size: 12px;
  color: #515a67;
}

.team-address-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.team-valid-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(125deg, #2e8b57 0%, #1f6b45 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.team-source-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.team-source-badge-direct {
  background: linear-gradient(125deg, #de6d32 0%, #b02127 100%);
}

.team-source-badge-indirect {
  background: linear-gradient(125deg, #6680eb 0%, #485fc5 100%);
}

.team-copy-btn {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.team-reward-box {
  margin-top: 8px;
  border: 1px solid #e7ddd2;
  border-radius: 10px;
  padding: 9px 10px;
  background: linear-gradient(165deg, #fffaf6 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-reward-box strong {
  display: block;
  font-size: 13px;
  color: #3c434f;
}

.team-reward-box small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #8b1a20;
}

.team-reward-btn {
  background: linear-gradient(125deg, #ec7132 0%, #bb1f2a 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.war-spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd998 0%, #ff812e 70%);
  box-shadow: 0 0 10px rgba(255, 116, 28, 0.85);
  animation: warSparkFly 0.62s ease-out forwards;
  pointer-events: none;
}

.war-ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(233, 108, 47, 0.65);
  transform: translate(-50%, -50%) scale(0.3);
  animation: warRingExpand 0.58s ease-out forwards;
  pointer-events: none;
}

@media (max-width: 420px) {
  .nft-row {
    grid-template-columns: 1fr;
  }

  /* 账户页四卡：保持双列（一排放俩），整体缩小避免占满屏 */
  .nft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nft-item {
    aspect-ratio: 3.1 / 4.25;
    padding: 5px 6px;
    border-radius: 10px;
  }

  .nft-item-head {
    font-size: 9px;
    gap: 4px;
  }

  .nft-count-badge {
    font-size: 9px;
    padding: 0 5px;
  }

  .nft-item-head .nft-item-name {
    font-size: 9px;
    padding: 1px 6px;
    max-width: min(70%, 9em);
  }

  .nft-item-stars {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .nft-item-yield {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.25;
  }

  .nft-card-actions {
    gap: 4px;
  }

  .nft-action-btn,
  .nft-transfer-btn,
  .nft-stake-btn {
    padding: 5px 0;
    font-size: 10px;
    border-radius: 8px;
  }

  /* 四卡立绘安全区：随窄屏卡片变矮略收紧 */
  .nft-item[data-nft-index="0"]::before,
  .nft-item[data-nft-index="1"]::before,
  .nft-item[data-nft-index="2"]::before,
  .nft-item[data-nft-index="3"]::before {
    inset: 13px 1px 34px 1px;
    border-radius: 7px;
  }
}

@keyframes avatarWin {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(243, 93, 39, 0));
  }
  55% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(243, 93, 39, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(243, 93, 39, 0));
  }
}

/* 赤心女戎卡：未持有时的轻微「呼吸」朦胧 */
@keyframes nftChixinHaze {
  0%,
  100% {
    opacity: 0.32;
    filter: blur(8px) saturate(0.78) brightness(1);
  }
  50% {
    opacity: 0.5;
    filter: blur(5px) saturate(0.92) brightness(1.1);
  }
}

@keyframes nftTransferOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
  100% {
    opacity: 0.15;
    transform: scale(0.88);
    filter: saturate(0.2);
  }
}

@keyframes warSparkFly {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

.save-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.save-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.save-modal-card {
  position: relative;
  width: min(360px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  background: linear-gradient(170deg, #fff8f5 0%, #fff 85%);
  border: 1px solid #e7c9c5;
  border-radius: 16px;
  padding: 18px 16px 14px;
  box-shadow: 0 16px 36px rgba(30, 22, 28, 0.25);
  animation: modalRise 0.26s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.save-modal-card h3 {
  margin: 0;
  font-size: 14px;
  color: #8d131f;
}

.save-modal-card p {
  margin: 8px 0 0;
  color: #5d646f;
  font-size: 13px;
}

.save-modal-card button {
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, #d2562b 0%, #8d131f 100%);
  cursor: pointer;
}

.nft-claim-card {
  border-color: #e6b78d;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 171, 93, 0.22), transparent 42%),
    linear-gradient(170deg, #fff6ef 0%, #fff 88%);
}

.nft-claim-card h3 {
  color: #9b1a1d;
  text-shadow: 0 0 10px rgba(234, 109, 47, 0.22);
}

.nft-claim-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: 150px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 148, 67, 0.42) 0%, rgba(255, 148, 67, 0) 70%);
  filter: blur(2px);
  animation: flameBreath 1.2s ease-in-out infinite;
}

.team-reward-claim-card {
  border-color: #e3c08f;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 186, 95, 0.28), transparent 40%),
    linear-gradient(170deg, #fff8f1 0%, #fff 88%);
}

.team-reward-claim-card h3 {
  color: #9b1a1d;
}

.team-reward-claim-card p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #b3311e;
  text-align: center;
  text-shadow: 0 0 10px rgba(236, 124, 45, 0.28);
}

.team-reward-claim-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 155, 72, 0.42) 0%, rgba(189, 26, 36, 0) 72%);
  filter: blur(2px);
  pointer-events: none;
  animation: teamRewardGlow 1.2s ease-in-out infinite;
}

.node-subscribe-modal-card {
  border-color: #e4ccb0;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 176, 97, 0.2), transparent 42%),
    linear-gradient(170deg, #fff9f3 0%, #fff 88%);
}

.node-subscribe-modal-desc {
  margin-top: 8px;
  color: #5f666f;
}

.node-plan-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.save-modal-card .node-plan-option {
  margin: 0;
  width: 100%;
  border: 1px solid #e0d1c0;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  color: #5a4f46;
  background: #fff;
  cursor: pointer;
}

.save-modal-card .node-plan-option.is-active {
  border-color: #d25a2f;
  background: rgba(210, 90, 47, 0.08);
  color: #8d1d21;
  font-weight: 700;
}

.node-selected-plan {
  display: block;
  margin-top: 10px;
  color: #6a6f78;
}

.node-subscribe-modal-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.save-modal-card .node-subscribe-modal-actions button {
  margin-top: 0;
}

.node-subscribe-modal-actions button:first-child {
  border: 1px solid #d9c7b7;
  background: #fff;
  color: #7a6d62;
}

.save-modal-fire {
  position: absolute;
  right: -26px;
  top: -26px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 79, 0.45) 0%, rgba(189, 22, 37, 0) 70%);
  animation: flameBreath 1.4s ease-in-out infinite;
}

@keyframes modalRise {
  from {
    transform: translateY(10px) scale(0.96);
    opacity: 0.6;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes teamRewardGlow {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes warRingExpand {
  to {
    transform: translate(-50%, -50%) scale(2.7);
    opacity: 0;
  }
}

.bottom-nav {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: none;
  width: auto;
  max-width: min(460px, calc(100vw - 16px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5ded4;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow:
    0 12px 24px rgba(36, 34, 36, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #5d6470;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item .icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.nav-item .label {
  font-size: 12px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-item.active {
  color: var(--red);
  background: rgba(176, 33, 37, 0.08);
}

.nav-item.active .icon {
  transform: none;
}

.nav-item.active .label {
  transform: none;
}

.nav-item.primary {
  color: #fff;
  background: linear-gradient(140deg, #bd2f33 0%, #7a1018 100%);
  transform: translateY(-12px);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(122, 16, 24, 0.35);
}

.nav-item.primary .icon {
  font-size: 14px;
}

.nav-item:active {
  transform: none;
}

.nav-item.primary:active {
  transform: translateY(-12px);
}

.nav-item.primary.hit {
  animation: navDrumHit 0.35s ease;
}

.nav-item.tap {
  animation: navTap 0.26s ease;
}

.nav-ripple {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(176, 33, 37, 0.22);
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  animation: navRipple 0.5s ease-out forwards;
}

@keyframes drumPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: translateY(-1px) scale(1.012);
    filter: saturate(1.04) brightness(1.025);
  }
}

@keyframes drumHit {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  40% {
    transform: translateY(1px) scale(0.988);
    filter: brightness(0.965);
  }
  100% {
    transform: translateY(0) scale(1.018);
    filter: brightness(1.03);
  }
}

@keyframes stickHitLeft {
  0% {
    transform: rotate(-58deg);
  }
  50% {
    transform: rotate(-38deg);
  }
  100% {
    transform: rotate(-58deg);
  }
}

@keyframes stickHitRight {
  0% {
    transform: rotate(54deg);
  }
  50% {
    transform: rotate(34deg);
  }
  100% {
    transform: rotate(54deg);
  }
}

@keyframes fireSlashLeft {
  0% {
    transform: rotate(26deg) scale(0.85);
    opacity: 0.45;
  }
  55% {
    transform: rotate(26deg) scale(1.18);
    opacity: 0.95;
  }
  100% {
    transform: rotate(26deg) scale(1);
    opacity: 0.72;
  }
}

@keyframes fireSlashRight {
  0% {
    transform: rotate(-32deg) scale(0.85);
    opacity: 0.45;
  }
  55% {
    transform: rotate(-32deg) scale(1.18);
    opacity: 0.95;
  }
  100% {
    transform: rotate(-32deg) scale(1);
    opacity: 0.72;
  }
}

@keyframes drumWave {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

@keyframes sparkFly {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
  }
}

@keyframes navDrumHit {
  0% {
    transform: translateY(-12px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(0.9);
  }
  100% {
    transform: translateY(-12px) scale(1.05);
  }
}

@keyframes flameBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.09);
    opacity: 1;
  }
}

@keyframes navTap {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes navRipple {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

@keyframes chatEntryFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.95);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
  }
}

@keyframes bowDraw {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes arrowFly {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(255, 132, 62, 0));
  }
  55% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 132, 62, 0.55));
  }
  100% {
    left: var(--end-x);
    top: var(--end-y);
    opacity: 0;
  }
}

@keyframes warfireDrift {
  0% {
    transform: translateX(-24px) scale(0.9);
    opacity: 0.2;
  }
  50% {
    transform: translateX(0) scale(1.08);
    opacity: 0.55;
  }
  100% {
    transform: translateX(24px) scale(0.9);
    opacity: 0.2;
  }
}

@keyframes warfireIgnite {
  0% {
    opacity: 0.35;
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0.45;
    filter: blur(2px);
  }
}

@keyframes fireBurstFly {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

@keyframes panelFireCorePop {
  0% {
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 0.2;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

@keyframes airdropLaserSweep {
  0% {
    left: -22%;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes airdropClaimFxPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.04);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -74%) scale(0.96);
  }
}

@keyframes drumFireFlash {
  0% {
    opacity: 0.15;
    transform: scale(0.72);
    filter: blur(1px);
  }
  52% {
    opacity: 0.92;
    transform: scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(2px);
  }
}

@keyframes introReveal {
  0% {
    opacity: 1;
    filter: saturate(0.52);
  }
  45% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    filter: saturate(1);
  }
}

@keyframes introFlameBurn {
  from {
    transform: translateY(0) scaleX(0.94) scaleY(0.92) rotate(-2deg);
    filter: blur(1.4px);
    opacity: 0.66;
  }
  to {
    transform: translateY(-26px) scaleX(1.06) scaleY(1.2) rotate(2deg);
    filter: blur(0.8px);
    opacity: 0.96;
  }
}

@keyframes introEmberGlow {
  from {
    transform: scale(0.92);
    opacity: 0.4;
  }
  to {
    transform: scale(1.06);
    opacity: 0.72;
  }
}

@keyframes introThemeGlow {
  from {
    opacity: 0.82;
    transform: translateX(-50%) translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
  }
}


@keyframes introWaveRise {
  0% {
    transform: translateY(26px) scaleY(0.85);
    opacity: 0.2;
  }
  55% {
    transform: translateY(-14px) scaleY(1.08);
    opacity: 0.95;
  }
  100% {
    transform: translateY(-26px) scaleY(1.12);
    opacity: 0;
  }
}

@keyframes emberFloat {
  0% {
    transform: translateY(0) scale(0.45);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(-130px) scale(0.12);
    opacity: 0;
  }
}

@keyframes chariotFirePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.92);
    opacity: 0.66;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes wheelSpinPulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(14deg) scale(1.04);
  }
}

/* ---------- 手机 / 窄屏：避免裁切、横向溢出、刘海安全区 ---------- */
@media (max-width: 520px) {
  .app-shell {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .hero {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .hero-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-text {
    min-width: 0;
  }

  .hero-text h1 {
    font-size: clamp(17px, 4.6vw, 20px);
  }

  .hero-text p {
    font-size: 12px;
  }

  .hero-actions {
    flex-shrink: 0;
    margin-left: auto;
    gap: 6px;
  }

  .connect-btn {
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .card {
    padding: 12px;
  }

  .main-content {
    margin-top: 14px;
  }

  /* 个人信息：窄屏统一纵向堆叠，避免积分/次数被裁切（421–519px  Previously 只在 ≤420px 生效） */
  .profile-head-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .profile-avatar-trigger img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .profile-edit {
    padding: 8px;
    gap: 8px;
  }

  .profile-points-badge {
    padding: 10px;
  }

  .profile-points-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .profile-points-badge strong {
    justify-self: start;
    text-align: start;
    white-space: normal;
    font-size: clamp(13px, 4vw, 17px);
  }

  .nft-stats-row strong,
  .nft-stats-row small {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .trade-order-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .trade-order-head,
  .trade-order-row {
    min-width: min(100%, 336px);
  }

  .kv-row {
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: flex-start;
  }

  .kv-row strong,
  .kv-row span {
    min-width: 0;
    word-break: break-word;
  }

  .team-invite-card {
    flex-direction: column;
    align-items: stretch;
  }

  .team-invite-card .small-action {
    width: 100%;
  }

  .nav-item .label {
    font-size: 11px;
  }

  .nav-item.primary {
    transform: translateY(-8px);
  }

  .nav-item.primary:active {
    transform: translateY(-8px);
  }
}

@media (max-width: 380px) {
  .trade-order-head,
  .trade-order-row {
    grid-template-columns: 38px 46px minmax(0, 1fr) 38px 32px;
    gap: 4px;
    font-size: 11px;
  }

  .nav-item {
    padding: 6px 2px;
    gap: 2px;
  }

  .nav-item .label {
    font-size: 10px;
  }

  .nav-item .icon {
    font-size: 13px;
  }
}



