/* ============================================================
   凡尘问道录 · 移动端视觉
   主色 #FF8A3D / 奶油纸感 / 卡通修仙
   ============================================================ */
:root {
  --orange: #FF8A3D;
  --orange-deep: #E9661D;
  --orange-dark: #B94A12;
  --orange-soft: #FFE3C9;
  --peach: #FFD2A6;
  --ink: #3A2A20;
  --ink-2: #6C5643;
  --ink-3: #9A846D;
  --cream: #FFF7E9;
  --paper: #FFFDF7;
  --paper-2: #FFF2DD;
  --line: rgba(122, 80, 44, .14);
  --line-strong: rgba(122, 80, 44, .24);
  --jade: #4C9A7A;
  --teal: #2F7E78;
  --red: #D94F3D;
  --blue: #4E8DBF;
  --purple: #8E6FC4;
  --gold: #D8A83E;
  --shadow: 0 10px 26px rgba(121, 73, 32, .14);
  --shadow-sm: 0 5px 14px rgba(121, 73, 32, .10);
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 74px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #F4E4C9; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  background: linear-gradient(180deg, #FFDDB4 0%, #FFEFD8 46%, #F7E7CF 100%);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #FFC98F; }

/* 内置图标尺寸跟随字号 */
.mp-icon {
  width: 1em !important;
  height: 1em !important;
  font-size: 22px;
  flex: none;
  background-color: currentColor;
}

/* 背景场景 */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bg > svg { width: 100%; height: 100%; object-fit: cover; }
#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 246, 226, .24), transparent 58%);
}
.cloud { animation: cloudDrift 26s ease-in-out infinite alternate; }
.cloud-b { animation-duration: 34s; animation-delay: -6s; }
.cloud-c { animation-duration: 42s; animation-delay: -14s; }
.petals circle { animation: petalFloat 9s ease-in-out infinite; }
.petals circle:nth-child(2n) { animation-duration: 12s; animation-delay: -3s; }
.petals circle:nth-child(3n) { animation-duration: 15s; animation-delay: -7s; }
@keyframes cloudDrift { from { transform: translateX(-10px); } to { transform: translateX(44px); } }
@keyframes petalFloat { 0%, 100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(-18px); opacity: .8; } }

/* 外壳 */
.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 10px);
}
.app.no-tab { padding-bottom: 0; }
.view { min-height: 70dvh; animation: viewIn .32s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-pad { padding-left: 16px; padding-right: 16px; }

/* 底部导航 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px 10px calc(6px + var(--safe-bottom));
  background: rgba(255, 250, 240, .94);
  border-top: 1px solid rgba(158, 110, 64, .16);
  box-shadow: 0 -8px 26px rgba(110, 66, 30, .10);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 22px 22px 0 0;
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 7px 4px 4px;
  border-radius: 15px;
  color: #9B836C;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .18s, transform .18s, background .18s;
}
.tab .mp-icon { font-size: 23px; }
.tab.active { color: var(--orange-deep); background: linear-gradient(180deg, #FFF3E1, rgba(255, 227, 201, .35)); }
.tab.active .mp-icon { filter: drop-shadow(0 3px 5px rgba(255, 122, 45, .28)); }
.tab.active::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
.tab:active { transform: scale(.94); }
body.battle .tabbar, body.creating .tabbar { display: none; }

/* ------------------------------------------------------------
   通用组件
   ------------------------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 138, 61, .2));
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 11px;
}
.section-title h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .02em;
}
.section-title .more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-3);
  font-size: 12px;
}
.section-title .more .mp-icon { font-size: 16px; }
.panel {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 255, 250, .96), rgba(255, 244, 226, .96));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel.flat { box-shadow: var(--shadow-sm); }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.serif { font-family: var(--font-serif); }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
  user-select: none;
}
.btn .mp-icon { font-size: 19px; }
.btn:active { transform: translateY(2px) scale(.985); }
.btn:disabled { opacity: .48; filter: grayscale(.3); pointer-events: none; }
.btn-primary {
  color: #FFFDF8;
  background: linear-gradient(180deg, #FFA45C 0%, var(--orange) 46%, var(--orange-deep) 100%);
  box-shadow: 0 4px 0 #C24F13, 0 9px 18px rgba(233, 102, 29, .28);
  text-shadow: 0 1px 0 rgba(126, 52, 9, .25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 44%;
  border-radius: 14px 14px 30px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent);
  pointer-events: none;
}
.btn-ghost {
  color: var(--ink);
  background: linear-gradient(180deg, #FFFDF7, #FFF0DC);
  border: 1px solid rgba(160, 108, 58, .22);
  box-shadow: 0 3px 0 rgba(160, 108, 58, .12);
}
.btn-jade {
  color: #FFFDF7;
  background: linear-gradient(180deg, #6DBD99, #3F8B6C);
  box-shadow: 0 4px 0 #2E6B52, 0 8px 16px rgba(63, 139, 108, .25);
}
.btn-dark {
  color: #FFE9C8;
  background: linear-gradient(180deg, #4C3C35, #2C211E);
  box-shadow: 0 4px 0 #171110;
}
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn-xs { min-height: 31px; padding: 0 11px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.btn-block { width: 100%; }
.btn-round { border-radius: 999px; padding: 0 16px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 250, 240, .86);
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: 0 3px 10px rgba(120, 70, 30, .10);
  transition: transform .15s;
}
.icon-btn .mp-icon { font-size: 21px; }
.icon-btn:active { transform: scale(.92); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: #FFF3E0;
  border: 1px solid rgba(161, 113, 62, .17);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip .mp-icon { font-size: 14px; }
.chip.orange { background: #FFE4CB; color: var(--orange-dark); border-color: rgba(255, 138, 61, .24); }
.chip.jade { background: #E3F2EA; color: #2F7359; border-color: rgba(76, 154, 122, .2); }
.chip.red { background: #FCE4E0; color: #A8392C; border-color: rgba(217, 79, 61, .2); }
.chip.blue { background: #E4F0F8; color: #2F6C92; border-color: rgba(78, 141, 191, .2); }
.chip.purple { background: #EFE8F9; color: #6B4C9E; border-color: rgba(142, 111, 196, .2); }
.chip.gold { background: #FBF0D2; color: #8D6519; border-color: rgba(216, 168, 62, .26); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 138, 61, .12);
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
.tag.jade { background: rgba(76, 154, 122, .13); color: #33785E; }
.tag.purple { background: rgba(142, 111, 196, .13); color: #6C4E9C; }
.tag.dark { background: rgba(58, 42, 32, .10); color: var(--ink-2); }
.tag.red { background: rgba(217, 79, 61, .12); color: #B23E30; }

/* 进度条 */
.bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(122, 80, 44, .13);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFB066, var(--orange), #F06A1E);
  transition: width .45s ease;
  box-shadow: 0 0 8px rgba(255, 138, 61, .4);
}
.bar.hp > i { background: linear-gradient(90deg, #F47C68, #D94F3D 60%, #B62F24); box-shadow: 0 0 8px rgba(217, 79, 61, .3); }
.bar.mp > i { background: linear-gradient(90deg, #78C6E0, #4E8DBF 60%, #2F6C92); box-shadow: 0 0 8px rgba(78, 141, 191, .3); }
.bar.jade > i { background: linear-gradient(90deg, #8FD3B0, #4C9A7A 60%, #2F7359); }
.bar.tall { height: 11px; }
.bar.thin { height: 5px; }

/* 顶部身份条（非导航栏，内容浮层） */
.hud-top {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.brand-seal {
  width: 44px;
  min-height: 96px;
  padding: 8px 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 250, 238, .92), rgba(255, 238, 216, .86));
  border: 1px solid rgba(160, 108, 58, .24);
  box-shadow: 0 4px 12px rgba(120, 70, 30, .12);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.18;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  text-align: center;
}
.hud-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.currency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  background: rgba(255, 252, 244, .92);
  border: 1px solid rgba(160, 108, 58, .2);
  box-shadow: 0 3px 10px rgba(120, 70, 30, .1);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.currency .mp-icon { font-size: 16px; color: var(--gold); }
.currency.pill-icon .mp-icon { color: var(--jade); }

/* ------------------------------------------------------------
   洞府首页
   ------------------------------------------------------------ */
.home-hero {
  position: relative;
  height: clamp(430px, 58dvh, 540px);
  overflow: hidden;
}
.hero-portrait {
  position: absolute;
  right: -8px;
  bottom: 34px;
  width: min(66vw, 280px);
  z-index: 2;
  filter: drop-shadow(0 18px 26px rgba(90, 48, 16, .28));
  animation: floatY 6.5s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.hero-portrait .art-portrait { width: 100%; height: auto; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(.2deg); }
  50% { transform: translateY(-8px) rotate(-.4deg); }
}
.hero-aura {
  position: absolute;
  right: 4%;
  bottom: 26px;
  width: min(72vw, 300px);
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 221, 158, .55), rgba(255, 180, 98, .12), transparent 74%);
  filter: blur(6px);
  z-index: 1;
}
.hero-copy {
  position: absolute;
  left: 18px;
  top: calc(var(--safe-top) + 132px);
  z-index: 3;
  width: 58%;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(160, 108, 58, .18);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 3px 8px rgba(120, 70, 30, .08);
}
.hero-name {
  margin-top: 11px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 9.4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .05em;
  color: #3B2618;
  text-shadow: 0 2px 0 rgba(255, 247, 232, .55), 0 8px 18px rgba(126, 74, 30, .16);
}
.hero-realm-line { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 9px;
  background: linear-gradient(180deg, #FFE1B4, #F8C57F);
  border: 1px solid rgba(169, 103, 36, .3);
  color: #764313;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 8px rgba(155, 92, 30, .14);
}
.realm-badge .mp-icon { font-size: 15px; }
.hero-quote {
  margin-top: 13px;
  max-width: 200px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.75;
  color: #684C36;
  text-shadow: 0 1px 0 rgba(255, 248, 236, .5);
}
.hero-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  padding: 13px 15px 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 253, 245, .92), rgba(255, 240, 218, .88));
  border: 1px solid rgba(160, 108, 58, .18);
  box-shadow: 0 10px 24px rgba(110, 60, 22, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-status .between { margin-bottom: 6px; }
.hero-status .label { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.hero-status .value { font-size: 11px; color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 9px; }
.hero-bars .mini { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-3); }
.hero-bars .mini b { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero-bars .mini .bar { flex: 1; }
.hero-lv {
  position: absolute;
  left: 16px;
  top: calc(var(--safe-top) + 84px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-lv .num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: rgba(70, 42, 24, .18);
  letter-spacing: -.04em;
}

.home-body {
  position: relative;
  z-index: 4;
  margin-top: -18px;
  padding: 6px 16px 26px;
  background: linear-gradient(180deg, rgba(255, 246, 231, .96), #FFF4E3 40%, #FFF1DC);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -12px 30px rgba(105, 58, 20, .12);
}
.home-handle {
  width: 42px;
  height: 4px;
  border-radius: 3px;
  background: rgba(140, 94, 50, .18);
  margin: 8px auto 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 84px;
  padding: 11px 4px 8px;
  border-radius: 17px;
  background: linear-gradient(180deg, #FFFCF4, #FFF0DA);
  border: 1px solid rgba(160, 108, 58, .17);
  box-shadow: 0 4px 10px rgba(120, 70, 30, .08);
  transition: transform .15s, box-shadow .15s;
}
.quick:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 4px rgba(120, 70, 30, .08); }
.quick-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #FFF9EE;
  background: linear-gradient(160deg, #FFAB67, var(--orange) 55%, var(--orange-deep));
  box-shadow: 0 4px 9px rgba(233, 102, 29, .24), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.quick-ico .mp-icon { font-size: 21px; }
.quick:nth-child(2) .quick-ico { background: linear-gradient(160deg, #9B87D6, #7A5EB5 55%, #5B418F); box-shadow: 0 4px 9px rgba(122, 94, 181, .24); }
.quick:nth-child(3) .quick-ico { background: linear-gradient(160deg, #7BC6A4, #4C9A7A 55%, #33795D); box-shadow: 0 4px 9px rgba(76, 154, 122, .24); }
.quick:nth-child(4) .quick-ico { background: linear-gradient(160deg, #E88A76, #C94B3C 55%, #9E2E24); box-shadow: 0 4px 9px rgba(201, 75, 60, .24); }
.quick b { font-size: 12px; font-weight: 700; }
.quick span { font-size: 9px; color: var(--ink-3); letter-spacing: .04em; }
.quick.pulse .quick-ico::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 15px;
  border: 2px solid rgba(255, 138, 61, .5);
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.quick:disabled { opacity: .55; }

/* 章节卡 */
.chapter-card { margin-top: 4px; }
.chapter-visual {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: linear-gradient(120deg, #F6D6AC, #E7BFA0);
}
.chapter-visual .art-chapter { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapter-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(46, 30, 20, .68));
}
.chapter-topline {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.chapter-topline .chip { background: rgba(255, 250, 240, .88); }
.chapter-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 2;
  color: #FFF9ED;
}
.chapter-caption h3 { font-family: var(--font-serif); font-size: 21px; letter-spacing: .08em; line-height: 1.2; }
.chapter-caption p { margin-top: 3px; font-size: 11px; color: rgba(255, 246, 230, .78); letter-spacing: .06em; }
.chapter-body { padding: 13px 14px 14px; }
.chapter-body .desc { font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.chapter-foot { margin-top: 11px; display: flex; align-items: center; gap: 10px; }
.chapter-progress-num { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.chapter-progress-num b { color: var(--orange-deep); font-size: 15px; }

/* 札记 */
.journal-list { padding: 4px 14px 13px; }
.journal-item {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(122, 80, 44, .12);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}
.journal-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.journal-dot {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .12);
  flex: none;
}
.journal-item .time { font-size: 10px; color: var(--ink-3); margin-left: 6px; white-space: nowrap; }
.journal-empty { padding: 16px 14px 20px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ------------------------------------------------------------
   历练
   ------------------------------------------------------------ */
.subpage {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 14px) 0 26px;
  background:
    radial-gradient(120% 42% at 88% -2%, rgba(255, 190, 122, .38), transparent 62%),
    linear-gradient(180deg, rgba(255, 247, 234, .88), #FFF4E3 240px, #FFF1DC);
}
.page-head { padding: 0 18px; }
.page-head h1 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: .08em;
  line-height: 1.16;
}
.page-head p { margin-top: 6px; font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.page-head .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.head-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10px;
  color: var(--ink-3);
}
.head-stat b { font-family: var(--font-serif); font-size: 19px; color: var(--orange-deep); }
.progress-strip {
  margin: 14px 18px 0;
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(255, 252, 244, .72);
  border: 1px solid rgba(160, 108, 58, .14);
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-strip .bar { flex: 1; }
.progress-strip b { font-size: 12px; color: var(--ink-2); }

.chapter-list { padding: 4px 16px 0; }
.chapter-block {
  margin-top: 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, #FFFDF6, #FFF2DE);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.chapter-block.locked { opacity: .8; }
.chapter-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  text-align: left;
  transition: background .16s;
}
.chapter-head:active { background: rgba(255, 223, 187, .25); }
.chapter-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(120, 80, 44, .14);
  background: #F3DDBD;
}
.chapter-thumb .art-chapter { width: 100%; height: 100%; }
.chapter-thumb .lock-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 30, 20, .55);
  color: #FFE8C8;
  font-size: 22px;
}
.chapter-head-main { flex: 1; min-width: 0; }
.chapter-head-main h3 { font-family: var(--font-serif); font-size: 16px; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.chapter-head-main p { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.chapter-head-main .mini-progress { margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.chapter-head-main .mini-progress .bar { width: 84px; }
.chapter-head-main .mini-progress span { font-size: 10px; color: var(--ink-3); }
.chapter-head .chev { color: var(--ink-3); transition: transform .2s; }
.chapter-block.open .chapter-head .chev { transform: rotate(90deg); }
.stage-list { padding: 0 10px 10px; display: none; }
.chapter-block.open .stage-list { display: block; }
.stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid transparent;
  transition: background .16s, transform .16s;
}
.stage-row + .stage-row { margin-top: 3px; }
.stage-row:active { transform: scale(.985); }
.stage-row.next { background: linear-gradient(90deg, #FFF0D8, #FFF8EC); border-color: rgba(255, 138, 61, .26); }
.stage-row.locked { opacity: .58; }
.stage-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #FFF3E1;
  border: 1px solid rgba(160, 108, 58, .16);
  color: var(--ink-3);
  font-family: var(--font-serif);
  font-size: 13px;
  flex: none;
}
.stage-row.cleared .stage-no { background: linear-gradient(160deg, #DDF1E6, #B9E0CA); border-color: rgba(76, 154, 122, .3); color: #2F7359; }
.stage-row.next .stage-no { background: linear-gradient(160deg, #FFD9AE, #FFBE84); border-color: rgba(233, 102, 29, .3); color: #8B440F; }
.stage-main { flex: 1; min-width: 0; }
.stage-main b { display: block; font-size: 13px; font-weight: 650; }
.stage-main span { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-side { display: flex; align-items: center; gap: 5px; flex: none; }
.stage-side .mp-icon { font-size: 17px; color: var(--ink-3); }
.stage-row.cleared .stage-side .mp-icon { color: var(--jade); }
.stage-row.next .stage-side .mp-icon { color: var(--orange-deep); }
.stage-row .type-badge { font-size: 9px; }

/* ------------------------------------------------------------
   斩魔 / 组队
   ------------------------------------------------------------ */
.boss-hero {
  position: relative;
  margin: 14px 16px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 30px rgba(60, 26, 10, .24);
  background: #26100E;
}
.boss-hero .art-boss { width: 100%; height: 190px; }
.boss-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(16, 8, 8, .85));
  color: #FFF6E6;
}
.boss-hero-overlay h2 { font-family: var(--font-serif); font-size: 24px; letter-spacing: .1em; }
.boss-hero-overlay p { margin-top: 2px; font-size: 11px; color: rgba(255, 240, 220, .72); }
.boss-hero-stats {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.boss-hero-stats .chip { background: rgba(255, 245, 230, .16); border-color: rgba(255, 245, 230, .2); color: #FFE9C8; }
.boss-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 12px 16px 0;
}
.boss-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, .7);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  transition: transform .15s, background .15s;
}
.boss-tab b { font-size: 12px; color: var(--ink-2); }
.boss-tab.active { background: linear-gradient(180deg, #FFF0D9, #FFE1C0); border-color: rgba(255, 138, 61, .35); color: var(--orange-deep); box-shadow: 0 3px 9px rgba(233, 102, 29, .13); }
.boss-tab.active b { color: var(--orange-dark); }
.boss-tab:active { transform: scale(.96); }
.boss-lore {
  margin: 12px 16px 0;
  padding: 13px 14px;
  border-radius: 17px;
  background: rgba(255, 252, 244, .78);
  border: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.boss-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; padding: 12px 16px 0; }
.boss-actions .btn { min-height: 48px; }
.boss-actions .wide { grid-column: span 2; }
.join-code-row { display: flex; gap: 7px; padding: 8px 16px 0; }
.join-code-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, .9);
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  outline: none;
}
.join-code-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, .16); }
.room-list { padding: 0 16px; }
.room-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  margin-top: 7px;
  border-radius: 14px;
  background: rgba(255, 252, 245, .82);
  border: 1px solid var(--line);
}
.room-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3B2B2A, #211716);
  color: #FFB47A;
  font-size: 19px;
  flex: none;
}
.room-main { flex: 1; min-width: 0; }
.room-main b { font-size: 12px; display: block; }
.room-main span { display: block; font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.room-row .bar { width: 90px; }
.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--jade);
  font-weight: 700;
}
.online-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4C9A7A;
  box-shadow: 0 0 0 3px rgba(76, 154, 122, .16);
  animation: onlinePulse 2s infinite;
}
.online-dot.off { color: var(--ink-3); }
.online-dot.off::before { background: #B9A898; box-shadow: none; animation: none; }
@keyframes onlinePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 房间战斗 */
.room-shell { padding: 0 14px; }
.room-top {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #2E1C19, #1A1111);
  color: #FFEBD2;
  box-shadow: 0 10px 22px rgba(30, 12, 8, .28);
}
.room-top .between { align-items: flex-start; }
.room-top h2 { font-family: var(--font-serif); font-size: 19px; letter-spacing: .08em; }
.room-top .code { font-size: 10px; color: #E9B98C; letter-spacing: .16em; }
.room-boss-bar { margin-top: 8px; }
.room-boss-bar .bar { height: 12px; background: rgba(255, 238, 210, .16); }
.room-boss-bar .bar > i { background: linear-gradient(90deg, #FFB066, #FF6A3D 55%, #C92C1E); box-shadow: 0 0 12px rgba(255, 106, 61, .55); }
.room-boss-bar .between { font-size: 10px; color: #EBC7A0; margin-top: 5px; }
.phase-pip { display: flex; gap: 3px; }
.phase-pip i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 230, 200, .2); }
.phase-pip i.on { background: #FFB066; }
.room-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 13px;
  background: rgba(255, 248, 235, .82);
  border: 1px solid var(--line);
  min-width: 0;
}
.member-card.me { border-color: rgba(255, 138, 61, .45); background: #FFF1DD; }
.member-card.down { opacity: .55; filter: grayscale(.5); }
.member-ava {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  background: #F6DFC0;
  border: 1px solid rgba(120, 80, 44, .14);
}
.member-ava svg { width: 100%; height: 100%; }
.member-main { flex: 1; min-width: 0; }
.member-main b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-main span { display: block; font-size: 9px; color: var(--ink-3); }
.member-hp { margin-top: 3px; height: 4px; }
.member-rank {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--orange-deep);
  flex: none;
}
.member-rank.top { font-size: 15px; color: #B8860B; }
.room-log {
  margin-top: 9px;
  padding: 10px 11px;
  height: 150px;
  overflow-y: auto;
  border-radius: 15px;
  background: linear-gradient(180deg, #241A1A, #171011);
  border: 1px solid rgba(255, 200, 150, .12);
  color: #E9D8C0;
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.room-log .log-line { border-bottom: 1px dashed rgba(255, 255, 255, .06); padding: 5px 0; }
.room-log .log-line.victory, .room-log .log-line.crit { color: #FFD27A; }
.room-log .log-line.down, .room-log .log-line.enemy { color: #FF9E86; }
.room-log .log-line.heal, .room-log .log-line.revive { color: #9FE0BC; }
.room-log .log-line.phase { color: #FFB066; font-weight: 700; }
.room-actions {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 7px;
}
.room-actions .btn { min-height: 58px; flex-direction: column; gap: 2px; padding: 7px 4px; font-size: 12px; }
.room-actions .btn .mp-icon { font-size: 22px; }
.room-actions .cd-mask { font-size: 9px; opacity: .8; }
.room-foot { display: flex; gap: 7px; margin-top: 9px; }
.room-foot .btn { flex: 1; }
.room-reward {
  margin-top: 9px;
  padding: 12px;
  border-radius: 15px;
  background: linear-gradient(160deg, #FFF6DC, #FFE6B8);
  border: 1px solid rgba(216, 168, 62, .35);
  text-align: center;
}
.room-reward h3 { font-family: var(--font-serif); color: #8D6519; font-size: 18px; letter-spacing: .1em; }

/* ------------------------------------------------------------
   修行
   ------------------------------------------------------------ */
.cult-hero {
  position: relative;
  margin: 14px 16px 0;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(130% 100% at 90% 0%, rgba(255, 207, 145, .5), transparent 55%),
    linear-gradient(165deg, #FFFCF4, #FFEDD3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cult-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(172, 120, 62, .16);
  box-shadow: 0 0 0 18px rgba(172, 120, 62, .04), 0 0 0 38px rgba(172, 120, 62, .03);
}
.cult-top { display: flex; gap: 13px; align-items: center; position: relative; z-index: 1; }
.cult-ava {
  width: 86px;
  height: 104px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  background: #F6DFC0;
  border: 1px solid rgba(120, 80, 44, .18);
  box-shadow: 0 7px 14px rgba(120, 70, 30, .15);
}
.cult-ava svg { width: 100%; height: 100%; }
.cult-info h2 { font-family: var(--font-serif); font-size: 23px; letter-spacing: .06em; }
.cult-info .line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cult-info .quote { margin-top: 7px; font-family: var(--font-serif); font-size: 11px; color: var(--ink-3); }
.stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(122, 80, 44, .16);
}
.stat-cell { text-align: center; }
.stat-cell b { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-cell span { display: block; margin-top: 1px; font-size: 9px; color: var(--ink-3); letter-spacing: .08em; }
.realm-road {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.realm-road::-webkit-scrollbar { display: none; }
.realm-node {
  flex: none;
  min-width: 70px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 252, 245, .7);
  border: 1px solid var(--line);
  text-align: center;
  opacity: .55;
}
.realm-node b { display: block; font-size: 11px; }
.realm-node span { display: block; font-size: 9px; color: var(--ink-3); margin-top: 2px; }
.realm-node.done { opacity: .8; background: #EAF5EE; border-color: rgba(76, 154, 122, .25); }
.realm-node.now { opacity: 1; background: linear-gradient(180deg, #FFE4C6, #FFD1A6); border-color: rgba(233, 102, 29, .35); box-shadow: 0 4px 10px rgba(233, 102, 29, .16); }
.realm-node.now b { color: var(--orange-dark); }
.skill-list { padding: 0 16px; }
.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-top: 7px;
  border-radius: 15px;
  background: rgba(255, 252, 245, .82);
  border: 1px solid var(--line);
}
.skill-row.locked { opacity: .5; }
.skill-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #FFD4A8, #FFB97A);
  color: #8A440F;
  flex: none;
}
.skill-ico .mp-icon { font-size: 20px; }
.skill-row.locked .skill-ico { background: #E9DDCB; color: #9A846D; }
.skill-main { flex: 1; min-width: 0; }
.skill-main b { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.skill-main p { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.skill-mp { font-size: 10px; color: var(--blue); font-weight: 700; flex: none; }
.settings-list { padding: 0 16px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  margin-top: 7px;
  border-radius: 15px;
  background: rgba(255, 252, 245, .82);
  border: 1px solid var(--line);
  font-size: 13px;
}
.setting-row .desc { font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.switch {
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 99px;
  background: #E1D3BF;
  border: 1px solid rgba(122, 80, 44, .14);
  transition: background .2s;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #FFFDF7;
  box-shadow: 0 2px 5px rgba(90, 50, 20, .2);
  transition: transform .2s;
}
.switch.on { background: linear-gradient(180deg, #FFA45C, var(--orange-deep)); }
.switch.on::after { transform: translateX(19px); }
.danger-row { margin: 16px; }
.danger-row .btn { width: 100%; color: #A8392C; border-color: rgba(217, 79, 61, .22); }

/* ------------------------------------------------------------
   战斗
   ------------------------------------------------------------ */
body.battle {
  background: #140E12;
}
.battle-screen {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #140E12;
  overflow: hidden;
}
.battle-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 38% at 50% 0%, rgba(255, 140, 70, .16), transparent 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(78, 141, 191, .1), transparent 70%);
  pointer-events: none;
}
.battle-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(var(--safe-top) + 10px) 14px 8px;
}
.battle-top .icon-btn { background: rgba(255, 240, 220, .1); border-color: rgba(255, 240, 220, .18); color: #FFE8C8; box-shadow: none; }
.battle-round { text-align: center; color: #E9C9A2; font-size: 10px; letter-spacing: .16em; }
.battle-round b { display: block; font-family: var(--font-serif); font-size: 13px; color: #FFE8C8; letter-spacing: .08em; }
.battle-tools { display: flex; gap: 6px; align-items: center; }
.battle-tools .btn { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 10px; }
.battle-tools .btn.on { color: #2A1B12; background: linear-gradient(180deg, #FFE0B0, #FFC47D); border-color: transparent; }

.battle-enemy {
  position: relative;
  z-index: 2;
  margin: 0 12px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 190, .12);
  background: #241A1A;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .34);
}
.battle-enemy .art-arena { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.enemy-inner { position: relative; z-index: 2; padding: 12px 14px 14px; }
.enemy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.enemy-name { color: #FFF3E2; font-family: var(--font-serif); font-size: 20px; letter-spacing: .08em; }
.enemy-title { margin-top: 1px; font-size: 10px; color: #E7BE92; letter-spacing: .08em; }
.enemy-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.enemy-art {
  position: relative;
  height: clamp(150px, 25dvh, 220px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 2px 0 -4px;
}
.enemy-art .art-beast {
  width: min(72vw, 300px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45));
  animation: enemyFloat 4.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.enemy-art.cast .art-beast { animation: enemyCast .5s ease; }
.enemy-art.hit .art-beast { animation: hitShake .32s ease; }
@keyframes enemyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes enemyCast { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-18px) scale(1.06); } 100% { transform: translateY(0) scale(1); } }
@keyframes hitShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-1deg); } 55% { transform: translateX(7px) rotate(1deg); } 80% { transform: translateX(-3px); } }
.enemy-hp { margin-top: 2px; }
.enemy-hp .between { color: #F4D8B6; font-size: 10px; margin-bottom: 4px; }
.enemy-hp .bar { height: 11px; background: rgba(255, 238, 210, .18); }
.enemy-hp .bar > i { background: linear-gradient(90deg, #FFB066, #FF6A3D 55%, #C92C1E); box-shadow: 0 0 12px rgba(255, 106, 61, .5); }
.enemy-hp .bar > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 60%);
}
.status-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; min-height: 20px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 236, 210, .14);
  color: #FFD9B0;
  border: 1px solid rgba(255, 236, 210, .14);
}
.status-chip.burn { color: #FFB07A; }
.status-chip.poison { color: #B9E08B; }
.status-chip.stun { color: #FFE58A; }
.status-chip.shield { color: #9BD3FF; }
.status-chip.buff { color: #FFE0A0; }
.status-chip.debuff { color: #E3A9D0; }

.battle-log {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 120px;
  margin: 9px 12px 0;
  padding: 9px 11px 10px;
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 24, 24, .92), rgba(19, 13, 14, .94));
  border: 1px solid rgba(255, 220, 180, .1);
  color: #E9D8C0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.75;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.battle-log .log-line { padding: 4px 0; animation: logIn .26s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.battle-log .log-line.system { color: #B9A78E; font-size: 11.5px; }
.battle-log .log-line.player { color: #FFE6C8; }
.battle-log .log-line.enemy { color: #FFA994; }
.battle-log .log-line.crit { color: #FFD27A; font-weight: 700; }
.battle-log .log-line.heal { color: #A5E0BF; }
.battle-log .log-line.reward { color: #FFD27A; }
.battle-log .log-line .num { color: #FF9B72; font-weight: 700; }
.battle-log .log-line.heal .num { color: #8BE0B0; }
.battle-log .log-divider { margin: 6px 0; border-top: 1px dashed rgba(255, 226, 190, .1); }

.battle-player {
  position: relative;
  z-index: 4;
  margin: 9px 12px calc(10px + var(--safe-bottom));
  padding: 11px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(54, 38, 32, .96), rgba(31, 22, 22, .97));
  border: 1px solid rgba(255, 220, 180, .13);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
.player-line { display: flex; align-items: center; gap: 9px; }
.player-ava {
  width: 46px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: #3A2A24;
  border: 1px solid rgba(255, 226, 190, .18);
}
.player-ava svg { width: 100%; height: 100%; }
.player-info { flex: 1; min-width: 0; }
.player-info .between { font-size: 10px; color: #E9C9A2; }
.player-info .between b { font-family: var(--font-serif); font-size: 13px; color: #FFEBD0; }
.player-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 9px; margin-top: 5px; }
.player-bars .mini { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #CBAE8C; }
.player-bars .mini .bar { flex: 1; height: 6px; background: rgba(255, 238, 210, .14); }
.player-bars .mini .bar.hp > i { background: linear-gradient(90deg, #F47C68, #D94F3D); }
.player-bars .mini .bar.mp > i { background: linear-gradient(90deg, #78C6E0, #4E8DBF); }
.battle-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 5px 2px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 244, 226, .13), rgba(255, 236, 210, .06));
  border: 1px solid rgba(255, 230, 200, .16);
  color: #FFE6C8;
  font-size: 10px;
  font-weight: 700;
  transition: transform .13s, background .13s;
}
.act .mp-icon { font-size: 20px; }
.act:active { transform: scale(.95); background: rgba(255, 230, 200, .18); }
.act.main {
  background: linear-gradient(180deg, #FFA45C, #E9661D);
  border-color: rgba(255, 196, 140, .6);
  box-shadow: 0 4px 0 #A83D0C, 0 6px 14px rgba(233, 102, 29, .3);
  color: #FFF9EE;
  font-size: 12px;
}
.act.main .mp-icon { font-size: 23px; }
.act:disabled { opacity: .38; pointer-events: none; }
.act .sub { font-size: 8px; opacity: .65; font-weight: 400; }
.act.auto-on { background: linear-gradient(180deg, #FFE0B0, #FFC47D); color: #5E3510; border-color: transparent; }

/* 战斗浮动伤害 */
.dmg-float {
  position: absolute;
  z-index: 30;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #FFD27A;
  text-shadow: 0 2px 0 #6E1C0E, 0 6px 16px rgba(0, 0, 0, .45);
  pointer-events: none;
  animation: dmgRise 1s ease-out forwards;
}
.dmg-float.heal { color: #9FE0BC; text-shadow: 0 2px 0 #175239; }
.dmg-float.crit { font-size: 38px; color: #FFF0B0; }
@keyframes dmgRise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
  18% { opacity: 1; transform: translate(-50%, -6px) scale(1.18); }
  55% { opacity: 1; transform: translate(-50%, -34px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -66px) scale(.92); }
}
.crit-flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 240, 180, .3), transparent 55%);
  animation: flashOut .4s ease-out forwards;
}
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }
.battle-screen.shake { animation: screenShake .3s ease; }
@keyframes screenShake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-3px, 2px); } 45% { transform: translate(3px, -2px); } 70% { transform: translate(-2px, -1px); } }

/* 战斗结算 */
.result-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 12, 12, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.result-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 20px 20px;
  border-radius: 26px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 218, 158, .6), transparent 60%),
    linear-gradient(170deg, #FFFDF5, #FFF0D8);
  border: 1px solid rgba(160, 108, 58, .2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
  text-align: center;
}
.result-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(160deg, #FFD98F, #E9A13A);
  color: #6B4210;
  font-size: 32px;
  box-shadow: 0 8px 18px rgba(201, 144, 44, .3), inset 0 2px 0 rgba(255, 255, 255, .4);
}
.result-card h2 { font-family: var(--font-serif); font-size: 27px; letter-spacing: .14em; color: #482D1C; }
.result-card .result-sub { margin-top: 4px; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.result-story {
  margin: 13px 0 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 249, 238, .72);
  border: 1px dashed rgba(140, 96, 52, .22);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
  text-align: left;
}
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.reward-cell {
  padding: 9px 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF9EA, #FFEAC8);
  border: 1px solid rgba(160, 108, 58, .15);
}
.reward-cell b { display: block; font-family: var(--font-serif); font-size: 19px; color: var(--orange-dark); }
.reward-cell span { display: block; font-size: 9px; color: var(--ink-3); margin-top: 1px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.result-actions .btn { min-height: 46px; }

/* ------------------------------------------------------------
   弹层 / 创建角色 / 技能面板
   ------------------------------------------------------------ */
.modal-root { position: relative; z-index: 100; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(34, 20, 12, .52);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  animation: fadeIn .22s ease;
}
.modal-backdrop.center { align-items: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  max-width: 440px;
  max-height: min(88dvh, 780px);
  overflow-y: auto;
  padding: 20px 18px calc(18px + var(--safe-bottom));
  border-radius: 26px 26px 20px 20px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 214, 154, .42), transparent 58%),
    linear-gradient(170deg, #FFFDF5, #FFF2DE 78%);
  border: 1px solid rgba(160, 108, 58, .18);
  box-shadow: 0 24px 60px rgba(37, 20, 8, .34);
  animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1.06);
  -webkit-overflow-scrolling: touch;
}
.modal-backdrop.center .sheet { border-radius: 24px; animation: popIn .26s cubic-bezier(.2, .9, .3, 1.08); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 3px; background: rgba(140, 94, 50, .2); margin: -8px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-family: var(--font-serif); font-size: 21px; letter-spacing: .06em; }
.sheet-head p { margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.sheet-body { margin-top: 14px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { min-height: 46px; }
.sheet-actions .full { grid-column: span 2; }

/* 创建角色 */
.create-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 244, 210, .55), transparent 62%),
    linear-gradient(180deg, rgba(255, 220, 178, .35), rgba(255, 244, 228, .94) 55%, #FFF2DE);
  -webkit-overflow-scrolling: touch;
}
.create-bg { position: fixed; inset: 0; z-index: -1; opacity: .85; }
.create-bg svg { width: 100%; height: 100%; object-fit: cover; }
.create-wrap { max-width: 480px; margin: 0 auto; padding: calc(var(--safe-top) + 24px) 18px calc(24px + var(--safe-bottom)); }
.create-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 251, 242, .76);
  border: 1px solid rgba(160, 108, 58, .2);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--orange-dark);
  font-weight: 700;
}
.create-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: .12em;
  color: #3A2414;
  text-shadow: 0 2px 0 rgba(255, 248, 236, .7), 0 10px 24px rgba(120, 66, 24, .16);
}
.create-sub { margin-top: 8px; font-family: var(--font-serif); font-size: 13px; color: #6E4E36; letter-spacing: .06em; }
.create-preview {
  position: relative;
  margin-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 20%, rgba(255, 247, 222, .9), rgba(255, 224, 188, .55) 60%, rgba(212, 168, 122, .5));
  border: 1px solid rgba(160, 108, 58, .18);
  box-shadow: var(--shadow);
}
.create-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(110, 66, 30, .18));
}
.create-preview .art-portrait { width: 190px; height: auto; filter: drop-shadow(0 12px 18px rgba(90, 48, 16, .22)); }
.reroll-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 252, 245, .9);
  border: 1px solid rgba(160, 108, 58, .22);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 9px rgba(120, 70, 30, .14);
}
.reroll-btn .mp-icon { font-size: 16px; }
.create-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 252, 245, .88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.create-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .06em; margin-bottom: 8px; }
.create-label span { font-weight: 400; color: var(--ink-3); font-size: 10px; letter-spacing: 0; }
.name-input-row { display: flex; gap: 7px; }
.name-input-row input {
  flex: 1;
  min-width: 0;
  height: 45px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: #FFFDF8;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: .1em;
  outline: none;
}
.name-input-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, .14); }
.root-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.root-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .8);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  transition: transform .14s, background .14s;
}
.root-opt .mp-icon { font-size: 21px; }
.root-opt span { font-size: 8px; color: var(--ink-3); font-weight: 400; }
.root-opt.active { color: var(--orange-dark); background: linear-gradient(180deg, #FFF0DA, #FFE0C0); border-color: rgba(255, 138, 61, .45); box-shadow: 0 3px 9px rgba(233, 102, 29, .12); }
.root-opt:active { transform: scale(.94); }
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.origin-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .8);
  text-align: left;
  transition: transform .14s, background .14s;
}
.origin-opt .mp-icon { font-size: 20px; color: var(--ink-3); flex: none; }
.origin-opt b { display: block; font-size: 12px; }
.origin-opt span { display: block; font-size: 8.5px; color: var(--ink-3); line-height: 1.4; margin-top: 1px; }
.origin-opt.active { background: linear-gradient(180deg, #FFF2DF, #FFE4C9); border-color: rgba(255, 138, 61, .4); }
.origin-opt.active .mp-icon { color: var(--orange-deep); }
.origin-opt:active { transform: scale(.97); }
.root-desc { margin-top: 9px; min-height: 34px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 240, 218, .6); font-size: 10.5px; line-height: 1.55; color: var(--ink-2); }
.create-cta { margin-top: 14px; }
.create-cta .btn { min-height: 52px; font-size: 15px; letter-spacing: .18em; }
.create-foot { margin-top: 9px; text-align: center; font-size: 9.5px; color: var(--ink-3); line-height: 1.6; }

/* 技能面板 */
.skill-pick-list { display: grid; gap: 7px; }
.skill-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .85);
  text-align: left;
}
.skill-pick:disabled { opacity: .45; }
.skill-pick:active { transform: scale(.985); }
.skill-pick .skill-ico { width: 42px; height: 42px; }
.skill-pick .main { flex: 1; min-width: 0; }
.skill-pick .main b { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.skill-pick .main p { margin-top: 2px; font-size: 10px; color: var(--ink-3); line-height: 1.45; }
.skill-pick .cost { font-size: 10px; color: var(--blue); font-weight: 700; flex: none; }
.skill-pick .cost.cd { color: var(--ink-3); }

/* Toast */
.toast-root { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: flex; justify-content: center; }
.toast {
  position: absolute;
  top: calc(var(--safe-top) + 58px);
  max-width: 80%;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(44, 29, 20, .92);
  color: #FFF3DE;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
  animation: toastIn .24s ease, toastOut .3s ease 2.2s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* 空状态 / 加载 */
.empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}
.empty .mp-icon { display: inline-block; font-size: 30px; color: rgba(154, 132, 109, .5); margin-bottom: 6px; }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; color: var(--ink-3); font-size: 12px; }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(154, 132, 109, .24);
  border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(180, 140, 100, .1) 25%, rgba(180, 140, 100, .18) 37%, rgba(180, 140, 100, .1) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 安全区 & 响应式 */
@media (min-width: 480px) {
  .home-hero { height: 560px; }
  .hero-portrait { width: 300px; }
}
@media (max-height: 700px) {
  .home-hero { height: 430px; }
  .hero-portrait { width: 220px; }
  .hero-copy { top: calc(var(--safe-top) + 118px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* 滚动条（桌面预览） */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(150, 105, 60, .25); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------
   补充：联机 / 试炼 / 事件 / 载入
   ------------------------------------------------------------ */
.boot-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6C5643;
  font-family: var(--font-serif);
  letter-spacing: .16em;
}
.boot-screen .boot-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(160deg, #FFA45C, #E9661D);
  color: #FFF7E9;
  font-size: 26px;
  box-shadow: 0 12px 26px rgba(233, 102, 29, .28);
}
.boot-screen .boot-title { font-size: 20px; }
.boot-screen .boot-sub { font-size: 10px; color: #9A846D; letter-spacing: .1em; }

.mode-toggle {
  display: flex;
  gap: 4px;
  margin: 14px 16px 0;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255, 249, 238, .72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 3px rgba(120, 70, 30, .06);
}
.mode-toggle button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  border-radius: 11px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s, color .18s, box-shadow .18s, transform .14s;
}
.mode-toggle button .mp-icon { font-size: 18px; }
.mode-toggle button.active {
  color: var(--orange-dark);
  background: linear-gradient(180deg, #FFFDF7, #FFEFDA);
  box-shadow: 0 3px 9px rgba(120, 70, 30, .12);
}
.mode-toggle button:active { transform: scale(.97); }

.host-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .8);
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-3);
}
.host-line img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #E9D8BE; }

.solo-list { padding: 0 16px; }
.solo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 18px;
  background: linear-gradient(165deg, #FFFDF6, #FFF1DD);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.solo-art {
  width: 82px;
  height: 88px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(120, 80, 44, .12);
  background: #2A1A18;
}
.solo-art .art-beast { width: 108%; height: auto; margin-bottom: -8px; }
.solo-main { flex: 1; min-width: 0; }
.solo-main h3 { font-family: var(--font-serif); font-size: 16px; letter-spacing: .05em; }
.solo-main p { font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }
.solo-desc {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.solo-card > .btn { flex: none; }

.event-choices { display: grid; gap: 7px; margin-top: 12px; }
.event-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 108, 58, .2);
  background: linear-gradient(180deg, #FFFDF7, #FFF3E1);
  text-align: left;
  transition: transform .14s, background .14s, border-color .14s;
}
.event-choice:active { transform: scale(.985); border-color: rgba(255, 138, 61, .45); background: #FFF1DC; }
.event-choice .event-choice-main { flex: 1; min-width: 0; }
.event-choice b { display: block; font-size: 13px; }
.event-choice .event-choice-main span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--orange-deep); letter-spacing: .06em; }
.event-choice > .mp-icon { color: var(--ink-3); font-size: 18px; }

.share-code {
  margin: 2px 0 10px;
  padding: 12px;
  border-radius: 15px;
  background: linear-gradient(160deg, #FFE6C4, #FFD3A2);
  border: 1px solid rgba(233, 102, 29, .24);
  text-align: center;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .3em;
  color: #7B3E0F;
  text-indent: .3em;
}

.room-actions { grid-template-columns: repeat(4, 1fr) !important; gap: 6px; }
.room-actions .btn { min-height: 60px; padding: 6px 2px; font-size: 11px; border-radius: 13px; }
.room-actions .btn .mp-icon { font-size: 21px; }
.room-actions .btn .cd-mask { font-size: 8px; opacity: .7; font-weight: 500; }
.room-top .online-dot { font-size: 9px; }
