:root {
  --ink: #061426;
  --ink-2: #0a1f36;
  --ink-3: #102c48;
  --gold: #f5d38e;
  --gold-soft: #e9c47d;
  --gold-deep: #b57b30;
  --orange: #ff8a3d;
  --orange-hot: #ff6a35;
  --cream: #fbf2d9;
  --text: #f5f0e4;
  --muted: rgba(231, 223, 204, 0.66);
  --line: rgba(245, 211, 142, 0.34);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-h: 74px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #040d19;
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -20px;
  background: #061221 url("images/gen/bg-sect.jpg") center / cover no-repeat;
  filter: blur(22px) brightness(0.38) saturate(0.82);
  transform: scale(1.06);
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 2px solid rgba(255, 214, 137, 0.9);
  outline-offset: 3px;
}

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: #07172a;
  align-self: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (min-width: 620px) {
  .app {
    height: min(100dvh, 920px);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(245, 211, 142, 0.12);
  }
}

/* ---------- 山门场景 ---------- */
.scene,
.scene-img,
.scene-veil,
.sun-glow,
.motes {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: 0;
  overflow: hidden;
  background: #0a2039;
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.015);
  filter: saturate(1.05) contrast(1.02);
  animation: sceneBreath 24s ease-in-out infinite alternate;
}

.scene-veil {
  background:
    linear-gradient(180deg, rgba(3, 12, 26, 0.95) 0%, rgba(4, 15, 31, 0.74) 13%, rgba(5, 18, 35, 0.18) 30%, rgba(5, 18, 35, 0) 43%),
    linear-gradient(0deg, rgba(3, 11, 23, 0.99) 0%, rgba(3, 11, 23, 0.86) 12%, rgba(4, 14, 28, 0.35) 30%, rgba(4, 14, 28, 0) 48%),
    radial-gradient(ellipse at 52% 38%, rgba(255, 255, 255, 0) 30%, rgba(2, 9, 20, 0.16) 68%, rgba(2, 8, 18, 0.58) 100%);
}

.sun-glow {
  pointer-events: none;
  background:
    radial-gradient(circle at 57% 20%, rgba(189, 214, 255, 0.2), rgba(189, 214, 255, 0) 22%),
    radial-gradient(circle at 81% 58%, rgba(255, 170, 66, 0.2), rgba(255, 170, 66, 0) 31%);
  mix-blend-mode: screen;
}

.motes {
  pointer-events: none;
  overflow: hidden;
}

.mote {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9dd 0%, #ffd27e 45%, rgba(255, 170, 62, 0) 72%);
  opacity: 0;
  animation-name: moteRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

/* ---------- 顶部角色信息 ---------- */
.hud {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--safe-top) + 12px) 16px 0;
  pointer-events: none;
}

.hud-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.player {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.avatar-btn {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  pointer-events: auto;
  background: conic-gradient(from 215deg, #6c4a22, #ffe7ad 18%, #c28b3e 37%, #fff4c9 55%, #8d5d26 73%, #ffe2a0 90%, #6c4a22);
  box-shadow: 0 0 0 1px rgba(7, 19, 35, 0.8), 0 4px 14px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 188, 91, 0.22);
  transition: transform 0.14s ease;
}

.avatar-btn:active {
  transform: scale(0.94);
}

.avatar-img {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #1b2d40 url("images/gen/avatar.jpg") center 42% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 219, 0.4);
}

.avatar-seal {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 182, 0.8);
  background: linear-gradient(150deg, #ffb35c, #e76d2d);
  color: #fff9e5;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.player-info {
  min-width: 0;
  flex: 1;
  max-width: 190px;
  padding-top: 1px;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.player-name {
  overflow: hidden;
  color: #fffaf0;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.78), 0 0 12px rgba(255, 190, 97, 0.2);
}

.realm-tag {
  flex-shrink: 0;
  padding: 1px 5px;
  border: 1px solid rgba(245, 211, 142, 0.42);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.24), rgba(144, 65, 27, 0.2));
  color: #ffe2a6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.exp-bar {
  position: relative;
  width: 100%;
  height: 8px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(245, 211, 142, 0.38);
  border-radius: 6px;
  background: rgba(3, 13, 26, 0.78);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exp-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #b95f21 0%, #ff8a3d 35%, #ffc66d 72%, #fff2c4 100%);
  box-shadow: 0 0 9px rgba(255, 164, 67, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.exp-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, 0.5) 48%, transparent 68%);
  transform: translateX(-110%);
  animation: barShine 3.2s ease-in-out infinite;
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: rgba(231, 219, 192, 0.76);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.exp-meta span:last-child {
  color: rgba(255, 212, 142, 0.84);
  white-space: nowrap;
}

.wallet {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 5px;
  margin-left: auto;
  padding-top: 1px;
}

.currency {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 91px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(245, 211, 142, 0.3);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(20, 50, 82, 0.82), rgba(5, 20, 39, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 2px 8px rgba(0, 0, 0, 0.22);
  color: #f7ecd1;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.currency-jade {
  border-color: rgba(244, 199, 112, 0.38);
}

.gem {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  clip-path: polygon(50% 0%, 95% 31%, 78% 88%, 50% 100%, 22% 88%, 5% 31%);
  background: linear-gradient(145deg, #dffdff 0%, #66dcff 28%, #1b9ee8 62%, #08629f 100%);
  box-shadow: 0 0 7px rgba(95, 218, 255, 0.65);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.ingot {
  position: relative;
  width: 17px;
  height: 11px;
  flex: 0 0 17px;
  border-radius: 50% 50% 35% 35% / 70% 70% 32% 32%;
  background: linear-gradient(180deg, #fff3bd 0%, #ffd36b 40%, #d88a24 100%);
  box-shadow: 0 0 7px rgba(255, 197, 91, 0.55);
}

.ingot::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 9px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 251, 218, 0.8);
}

.power-plaque {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px 4px 7px;
  border: 1px solid rgba(245, 211, 142, 0.24);
  border-left: 2px solid #e3b46b;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(90deg, rgba(5, 20, 39, 0.92), rgba(12, 37, 63, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 10px rgba(0, 0, 0, 0.18);
  color: #d7c6a0;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.power-plaque .mp-icon {
  width: 14px;
  height: 14px;
  color: #ffc46b;
  filter: drop-shadow(0 0 4px rgba(255, 170, 70, 0.4));
}

.power-plaque strong {
  color: #ffe4a8;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* ---------- 红包入口 ---------- */
.side-actions {
  position: absolute;
  z-index: 4;
  top: 184px;
  left: 14px;
}

.action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.action-orb {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 215deg, #6e4312, #ffe7a4 17%, #f6b04e 35%, #fff3c8 53%, #a36922 72%, #ffda86 89%, #6e4312);
  box-shadow: 0 0 0 1px rgba(8, 20, 37, 0.45), 0 0 20px rgba(255, 167, 61, 0.45);
  transition: transform 0.15s ease;
}

.action:active .action-orb {
  transform: scale(0.92);
}

.action-orb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 34%;
}

.orb-glow {
  position: absolute;
  z-index: -1;
  inset: -11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 56, 0.42) 0%, rgba(255, 136, 45, 0.16) 45%, transparent 72%);
  animation: orbPulse 2.6s ease-in-out infinite;
}

.action-label {
  margin-top: 5px;
  color: #fff9e9;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(89, 43, 9, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
}

.action-sub {
  margin-top: 3px;
  padding: 1px 6px;
  border: 1px solid rgba(245, 211, 142, 0.23);
  border-radius: 8px;
  background: rgba(4, 17, 33, 0.68);
  color: #ffd58d;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  line-height: 13px;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}

.red-badge {
  position: absolute;
  top: -3px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid #ffe0a6;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff7554, #d72f2b);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 9px rgba(255, 74, 49, 0.45);
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.action.ready .red-badge {
  opacity: 1;
  transform: scale(1);
  animation: badgeBounce 1.3s ease-in-out infinite;
}

.action.ready .action-orb {
  box-shadow: 0 0 0 1px rgba(255, 222, 151, 0.62), 0 0 22px rgba(255, 146, 45, 0.62), 0 0 42px rgba(255, 115, 32, 0.3);
  animation: orbReady 1.8s ease-in-out infinite;
}

.action.ready .action-sub {
  color: #fff4cf;
  border-color: rgba(255, 214, 137, 0.55);
  background: rgba(171, 66, 24, 0.65);
}

/* ---------- 突破玉牌 ---------- */
.break-plaque {
  position: absolute;
  z-index: 4;
  top: 248px;
  right: 14px;
  width: 54px;
  height: 148px;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.36));
  transition: transform 0.16s ease, filter 0.25s ease;
}

.break-plaque::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(142, 230, 208, 0.55);
  border-radius: 4px;
  background: linear-gradient(145deg, #2b6970, #0c2b3b);
  box-shadow: inset 0 1px 0 rgba(189, 255, 236, 0.2);
  transform: translateX(-50%) rotate(45deg);
}

.break-plaque:active {
  transform: scale(0.94);
}

.plaque-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: 19px;
  overflow: hidden;
  border: 1px solid rgba(128, 208, 188, 0.5);
  border-radius: 25px 25px 21px 21px;
  background:
    linear-gradient(180deg, rgba(53, 117, 116, 0.88) 0%, rgba(17, 52, 67, 0.94) 42%, rgba(5, 24, 39, 0.98) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(3, 17, 26, 0.45),
    inset 0 0 18px rgba(110, 231, 207, 0.12),
    0 0 16px rgba(40, 123, 117, 0.2);
}

.plaque-core::before,
.plaque-core::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 228, 207, 0.42), transparent);
}

.plaque-core::before {
  top: 44px;
}

.plaque-core::after {
  bottom: 30px;
}

.plaque-core .mp-icon {
  width: 22px;
  height: 22px;
  color: #b8f0dc;
  filter: drop-shadow(0 0 7px rgba(91, 231, 200, 0.4));
}

.plaque-word {
  margin-top: 8px;
  color: #e9fff6;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  writing-mode: vertical-rl;
}

.plaque-sub {
  margin-top: 7px;
  color: rgba(190, 228, 218, 0.72);
  font-size: 8px;
  letter-spacing: 0.4px;
  line-height: 1.2;
  white-space: nowrap;
}

.break-plaque.ready {
  filter: drop-shadow(0 0 16px rgba(255, 194, 93, 0.66)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.35));
  animation: plaqueReady 1.9s ease-in-out infinite;
}

.break-plaque.ready .plaque-core {
  border-color: rgba(255, 219, 140, 0.88);
  background:
    linear-gradient(180deg, rgba(175, 111, 36, 0.94) 0%, rgba(105, 55, 21, 0.97) 45%, rgba(35, 22, 16, 0.98) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(66, 32, 8, 0.42),
    inset 0 0 18px rgba(255, 219, 133, 0.2),
    0 0 22px rgba(255, 168, 64, 0.38);
}

.break-plaque.ready .plaque-core .mp-icon {
  color: #fff1b9;
  filter: drop-shadow(0 0 8px rgba(255, 209, 110, 0.72));
}

.break-plaque.ready .plaque-word {
  color: #fff8df;
}

.break-plaque.ready .plaque-sub {
  color: #ffe4a2;
}

/* ---------- 修炼法印 ---------- */
.cultivate-wrap {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: calc(var(--dock-h) + var(--safe-bottom) + 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 186px;
  pointer-events: none;
}

.cultivate {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  pointer-events: auto;
  filter: drop-shadow(0 0 20px rgba(255, 168, 57, 0.46)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.12s ease, filter 0.2s ease;
}

.cultivate:active {
  transform: scale(0.955);
  filter: drop-shadow(0 0 28px rgba(255, 189, 71, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)) brightness(1.12);
}

.cultivate.tapped {
  animation: tapKick 0.22s ease-out;
}

.aura {
  position: absolute;
  z-index: -1;
  inset: -21px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 168, 55, 0.28) 0%, rgba(255, 141, 43, 0.11) 47%, rgba(255, 141, 43, 0) 72%);
  animation: auraBreath 2.8s ease-in-out infinite;
}

.seal-art {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 227, 159, 0.7);
  border-radius: 50%;
  background: #3b2a16 url("images/gen/seal.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 0 18px rgba(255, 220, 128, 0.35),
    0 0 0 3px rgba(7, 20, 37, 0.55),
    0 0 28px rgba(255, 153, 46, 0.36);
}

.seal-word {
  position: absolute;
  z-index: 3;
  bottom: -13px;
  left: 50%;
  padding: 4px 16px 5px;
  border: 1px solid rgba(255, 219, 145, 0.76);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(159, 65, 21, 0.97), rgba(83, 29, 9, 0.98));
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 236, 184, 0.35),
    0 0 18px rgba(255, 148, 42, 0.28);
  color: #fff2c4;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  text-indent: 4px;
  text-shadow:
    0 2px 0 rgba(85, 35, 6, 0.95),
    0 0 10px rgba(255, 197, 96, 0.55),
    0 3px 8px rgba(35, 10, 2, 0.8);
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.seal-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 209, 115, 0.34);
  border-radius: 50%;
  animation: spin 19s linear infinite;
}

.seal-ring::before,
.seal-ring::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe9b6;
  box-shadow: 0 0 9px #ffc365;
}

.seal-ring::before {
  top: -2px;
  left: 50%;
}

.seal-ring::after {
  right: 10px;
  bottom: 15px;
  width: 3px;
  height: 3px;
  opacity: 0.7;
}

.tap-hint {
  max-width: 180px;
  margin-top: 31px;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 122, 0.27);
  border-radius: 10px;
  background: rgba(4, 16, 31, 0.64);
  color: #ffe0a0;
  font-size: 10px;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tap-hint.combo {
  border-color: rgba(255, 196, 95, 0.6);
  background: rgba(121, 51, 16, 0.76);
  color: #fff7d9;
}

/* ---------- 仙友传音与底部操作 ---------- */
.chat-strip {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: calc(var(--dock-h) + var(--safe-bottom) + 9px);
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(164, 199, 208, 0.22);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(6, 22, 41, 0.9), rgba(12, 39, 63, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.chat-icon {
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 215, 138, 0.32);
  border-radius: 50%;
  background: rgba(255, 138, 61, 0.16);
  color: #ffd58c;
}

.chat-icon .mp-icon {
  width: 13px;
  height: 13px;
}

.chat-strip p {
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: #e7edf0;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.chat-live {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #80e0c6;
  box-shadow: 0 0 7px rgba(95, 227, 195, 0.8);
  animation: liveBlink 2.4s ease-in-out infinite;
}

.dock {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: calc(var(--dock-h) + var(--safe-bottom));
  padding: 5px 8px var(--safe-bottom);
  border-top: 1px solid rgba(245, 211, 142, 0.24);
  background: linear-gradient(180deg, rgba(5, 17, 32, 0.8) 0%, rgba(3, 11, 23, 0.98) 35%, #030b17 100%);
  box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dock::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 158, 0.72), transparent);
}

.dock-btn {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(220, 219, 207, 0.5);
  transition: color 0.18s ease, transform 0.13s ease;
}

.dock-btn:active {
  transform: scale(0.92);
}

.dock-btn .mp-icon {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  transition: filter 0.2s ease, color 0.2s ease;
}

.dock-btn span {
  font-size: 9.5px;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.dock-btn.active {
  color: #ffd27c;
}

.dock-btn.active .mp-icon {
  filter: drop-shadow(0 0 7px rgba(255, 181, 75, 0.46)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.dock-btn.active::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffcb70, transparent);
  box-shadow: 0 0 8px rgba(255, 177, 74, 0.8);
}

.dock-btn em {
  position: absolute;
  top: 8px;
  right: calc(50% - 20px);
  width: 7px;
  height: 7px;
  border: 1px solid #ffe0a2;
  border-radius: 50%;
  background: #ff593e;
  box-shadow: 0 0 6px rgba(255, 80, 54, 0.7);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dock-btn em.on {
  opacity: 1;
  transform: scale(1);
}

/* ---------- 飘字与光点 ---------- */
.fx-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-text {
  position: absolute;
  color: #ffe8a8;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 156, 55, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  animation: floatUp 0.9s cubic-bezier(0.18, 0.7, 0.25, 1) forwards;
}

.float-text.crit {
  color: #fff8dc;
  font-size: 23px;
  text-shadow: 0 0 16px rgba(255, 183, 67, 1), 0 0 30px rgba(255, 114, 31, 0.65), 0 2px 5px #000;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe7a3;
  box-shadow: 0 0 8px #ffb446;
  animation: sparkOut 0.72s ease-out forwards;
}

.spark.blue {
  background: #d3f3ff;
  box-shadow: 0 0 8px #7bd2ff;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: absolute;
  z-index: 40;
  bottom: calc(var(--dock-h) + var(--safe-bottom) + 142px);
  left: 50%;
  max-width: 86%;
  padding: 8px 15px;
  border: 1px solid rgba(245, 211, 142, 0.3);
  border-radius: 18px;
  background: rgba(4, 16, 32, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f9edcf;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

/* ---------- 底层面板 ---------- */
.modal {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet {
  position: relative;
  width: 100%;
  max-height: 80%;
  padding: 16px 20px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  border-top: 1px solid rgba(255, 219, 146, 0.5);
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 165, 66, 0.14), transparent 40%),
    linear-gradient(180deg, #12314e 0%, #0a213a 34%, #04101f 100%);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(18px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.open .sheet {
  transform: translateY(0);
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 211, 142, 0.7), transparent);
}

.sheet::before {
  left: 18px;
}

.sheet::after {
  right: 18px;
  transform: rotate(180deg);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: rgba(255, 221, 155, 0.32);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(245, 211, 142, 0.22);
  border-radius: 50%;
  background: rgba(3, 14, 27, 0.56);
  color: #e9d5ab;
}

.sheet-close .mp-icon {
  width: 16px;
  height: 16px;
}

.sheet-body {
  position: relative;
}

.sheet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: #e9b969;
  font-size: 9px;
  letter-spacing: 3px;
  line-height: 1;
}

.sheet-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9b969);
}

.sheet h2 {
  margin: 0;
  color: #fff8e8;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.sheet .sheet-intro {
  margin: 7px 0 16px;
  color: rgba(225, 221, 206, 0.64);
  font-size: 11px;
  line-height: 1.6;
}

.gold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 1px solid rgba(255, 235, 180, 0.8);
  border-radius: 23px;
  background: linear-gradient(180deg, #ffd98d 0%, #f2ad4d 45%, #c97724 100%);
  box-shadow: 0 6px 18px rgba(189, 94, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #53270d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 1px 0 rgba(255, 247, 213, 0.55);
}

.gold-btn:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96);
}

/* 红包结果 */
.reward-hero {
  padding-top: 7px;
  text-align: center;
}

.reward-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 4px;
  border: 1px solid rgba(255, 221, 143, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffd57e, #dd6a2d 55%, #6e2315 100%);
  box-shadow: 0 0 0 7px rgba(255, 155, 58, 0.12), 0 0 40px rgba(255, 135, 44, 0.45);
  animation: rewardFloat 3s ease-in-out infinite;
}

.reward-orb::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 206, 119, 0.18);
  border-radius: 50%;
}

.reward-orb img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  filter: drop-shadow(0 5px 10px rgba(70, 16, 6, 0.4));
}

.reward-title {
  margin: 8px 0 0;
  color: #ffe2a5;
  font-size: 11px;
  letter-spacing: 4px;
}

.reward-amount {
  margin: 5px 0 0;
  color: #fff8de;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(255, 183, 72, 0.55), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.reward-copy {
  margin: 6px 0 0;
  color: rgba(231, 220, 196, 0.64);
  font-size: 11px;
  line-height: 1.5;
}

.reward-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px 0 0;
  padding: 12px 0;
  border-top: 1px solid rgba(245, 211, 142, 0.14);
  border-bottom: 1px solid rgba(245, 211, 142, 0.14);
}

.reward-split span {
  color: rgba(231, 220, 196, 0.62);
  font-size: 10px;
}

.reward-split strong {
  color: #ffe1a0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.reward-note {
  margin: 11px 0 0;
  color: rgba(202, 197, 183, 0.42);
  font-size: 9px;
  letter-spacing: 0.2px;
}

/* 道途 */
.path-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.path-seal {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 211, 142, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 188, 82, 0.26), rgba(8, 26, 43, 0.9));
  color: #ffd27c;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  box-shadow: inset 0 0 15px rgba(255, 185, 77, 0.12);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

.stat-cell {
  padding: 11px 12px;
  border: 1px solid rgba(245, 211, 142, 0.13);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 54, 81, 0.48), rgba(5, 19, 35, 0.44));
}

.stat-cell span {
  display: block;
  color: rgba(218, 211, 193, 0.56);
  font-size: 9px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.stat-cell strong {
  display: block;
  margin-top: 5px;
  color: #f7e7be;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.stat-cell.wide {
  grid-column: span 2;
}

.stat-cell em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 192, 96, 0.7);
  font-size: 9px;
  font-style: normal;
}

.next-realm {
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(245, 211, 142, 0.2);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(112, 65, 26, 0.35), rgba(7, 23, 40, 0.42));
}

.next-realm span {
  color: rgba(245, 211, 142, 0.64);
  font-size: 9px;
  letter-spacing: 0.6px;
}

.next-realm p {
  margin: 4px 0 0;
  color: #ffe9bd;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.next-realm small {
  display: block;
  margin-top: 4px;
  color: rgba(218, 211, 193, 0.54);
  font-size: 9px;
  line-height: 1.4;
}

/* 个人资料 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(245, 211, 142, 0.14);
}

.profile-avatar {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 221, 150, 0.6);
  border-radius: 50%;
  background: #1b2d40 url("images/gen/avatar.jpg") center 42% / cover no-repeat;
  box-shadow: 0 0 0 3px rgba(245, 211, 142, 0.1), 0 6px 16px rgba(0, 0, 0, 0.34);
}

.profile-card h3 {
  margin: 0;
  color: #fff8e8;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  letter-spacing: 1px;
}

.profile-card p {
  margin: 4px 0 0;
  color: rgba(214, 207, 190, 0.6);
  font-size: 10px;
  letter-spacing: 0.4px;
}

.profile-card p strong {
  color: #ffcf80;
  font-weight: 600;
}

.profile-rows {
  margin-top: 8px;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1px;
  border-bottom: 1px solid rgba(245, 211, 142, 0.09);
  color: rgba(215, 208, 191, 0.6);
  font-size: 10.5px;
}

.profile-row strong {
  color: #f2e3c2;
  font-size: 11.5px;
  font-weight: 500;
}

/* ---------- 突破演出 ---------- */
.ascend {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 158, 55, 0.26) 0%, rgba(255, 123, 33, 0.08) 28%, rgba(3, 10, 20, 0.91) 68%, rgba(2, 7, 15, 0.98) 100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ascend.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ascend-rays {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 136, 0.19) 0deg 2deg, transparent 2deg 11deg);
  mask-image: radial-gradient(circle, transparent 14%, #000 37%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, transparent 14%, #000 37%, transparent 70%);
  animation: spin 30s linear infinite;
  opacity: 0.72;
}

.ascend-halo {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 220, 145, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 169, 55, 0.45), inset 0 0 40px rgba(255, 194, 91, 0.22);
  animation: haloGrow 2.4s ease-in-out infinite;
}

.ascend-content {
  position: relative;
  z-index: 1;
  padding: 0 30px;
  text-align: center;
  animation: ascendIn 0.55s cubic-bezier(0.16, 0.9, 0.25, 1) both;
}

.ascend-kicker {
  color: #e9b969;
  font-size: 10px;
  letter-spacing: 12px;
  text-indent: 12px;
}

.ascend-content h2 {
  margin: 13px 0 0;
  background: linear-gradient(180deg, #fffbe8 5%, #ffe6a8 42%, #f0b75d 72%, #b97826 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(255, 177, 64, 0.25));
}

.ascend-realm {
  margin: 14px 0 0;
  color: #ffe2a8;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 25px;
  letter-spacing: 4px;
  text-indent: 4px;
  text-shadow: 0 0 16px rgba(255, 173, 63, 0.5), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.ascend-divider {
  display: block;
  width: 90px;
  height: 1px;
  margin: 15px auto 13px;
  background: linear-gradient(90deg, transparent, rgba(255, 218, 141, 0.7), transparent);
}

.ascend-copy {
  margin: 0;
  color: rgba(235, 225, 204, 0.7);
  font-size: 11px;
  letter-spacing: 2px;
}

.ascend-btn {
  min-width: 144px;
  height: 42px;
  margin-top: 27px;
  padding: 0 23px;
  border: 1px solid rgba(255, 233, 176, 0.72);
  border-radius: 21px;
  background: linear-gradient(180deg, #ffde9b, #eaa84c 58%, #bb7022);
  box-shadow: 0 6px 20px rgba(158, 79, 13, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #53270b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 1px 0 rgba(255, 249, 221, 0.55);
}

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

/* ---------- 动画 ---------- */
@keyframes sceneBreath {
  from { transform: scale(1.015) translateY(0); }
  to { transform: scale(1.045) translateY(-4px); }
}

@keyframes barShine {
  0%, 58% { transform: translateX(-110%); }
  92%, 100% { transform: translateX(120%); }
}

@keyframes moteRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  12% { opacity: 0.7; }
  72% { opacity: 0.32; }
  100% { opacity: 0; transform: translate3d(18px, -72vh, 0) scale(1.25); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.68; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes orbReady {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.025); }
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.08); }
}

@keyframes plaqueReady {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes liveBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes tapKick {
  0% { transform: scale(0.955); }
  55% { transform: scale(1.018); }
  100% { transform: scale(1); }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 5px) scale(0.72); }
  18% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -58px) scale(0.95); }
}

@keyframes sparkOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}

@keyframes rewardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes haloGrow {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes ascendIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 小屏适配 ---------- */
@media (max-height: 780px) {
  .hud {
    padding-top: calc(var(--safe-top) + 9px);
  }

  .avatar-btn {
    flex-basis: 47px;
    width: 47px;
    height: 47px;
  }

  .player-name {
    font-size: 15.5px;
  }

  .power-plaque {
    margin-top: 6px;
  }

  .side-actions {
    top: 160px;
  }

  .action-orb {
    width: 58px;
    height: 58px;
  }

  .action {
    width: 72px;
  }

  .break-plaque {
    top: 218px;
    height: 134px;
    width: 50px;
  }

  .cultivate {
    width: 148px;
    height: 148px;
  }

  .cultivate-wrap {
    width: 164px;
    bottom: calc(var(--dock-h) + var(--safe-bottom) + 46px);
  }

  .seal-word {
    bottom: -11px;
    padding: 3px 14px 4px;
    font-size: 25px;
  }

  .tap-hint {
    max-width: 158px;
    margin-top: 28px;
    font-size: 9.5px;
  }

  .chat-strip {
    height: 34px;
  }

  .toast {
    bottom: calc(var(--dock-h) + var(--safe-bottom) + 120px);
  }
}

@media (max-height: 700px) {
  :root {
    --dock-h: 66px;
  }

  .hud {
    padding-top: calc(var(--safe-top) + 7px);
  }

  .avatar-btn {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
  }

  .player-info {
    max-width: 168px;
  }

  .player-name {
    font-size: 14.5px;
  }

  .exp-bar {
    margin-top: 4px;
    height: 7px;
  }

  .currency {
    height: 22px;
    min-width: 85px;
    font-size: 9.5px;
  }

  .power-plaque {
    margin-top: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .side-actions {
    top: 136px;
  }

  .break-plaque {
    top: 188px;
    height: 118px;
    width: 46px;
  }

  .plaque-core {
    padding-top: 15px;
  }

  .plaque-core::before {
    top: 39px;
  }

  .plaque-core::after {
    bottom: 24px;
  }

  .plaque-word {
    margin-top: 5px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .plaque-sub {
    margin-top: 4px;
    font-size: 7px;
  }

  .cultivate {
    width: 132px;
    height: 132px;
  }

  .cultivate-wrap {
    width: 148px;
    bottom: calc(var(--dock-h) + var(--safe-bottom) + 42px);
  }

  .seal-word {
    bottom: -10px;
    padding: 3px 12px 4px;
    font-size: 22px;
    letter-spacing: 3px;
    text-indent: 3px;
  }

  .tap-hint {
    max-width: 142px;
    margin-top: 25px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .chat-strip {
    height: 31px;
  }

  .chat-strip p {
    font-size: 9.5px;
  }

  .dock-btn .mp-icon {
    width: 18px;
    height: 18px;
  }

  .dock-btn span {
    font-size: 8.5px;
  }
}

@media (max-height: 620px) {
  .side-actions,
  .break-plaque,
  .chat-strip {
    display: none;
  }

  .cultivate-wrap {
    bottom: calc(var(--dock-h) + var(--safe-bottom) + 18px);
  }

  .cultivate {
    width: 122px;
    height: 122px;
  }

  .toast {
    bottom: calc(var(--dock-h) + 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
