/* Current release: Web Alpha 0.14.5 CACHE9 */
:root {
  --bg: #12100d;
  --bg-soft: #1a1712;
  --panel: rgba(33, 29, 22, 0.93);
  --panel-2: rgba(44, 38, 28, 0.9);
  --paper: #e8dfc7;
  --paper-muted: #b9ad91;
  --line: rgba(206, 182, 126, 0.25);
  --gold: #c9a75f;
  --gold-bright: #e6c879;
  --red: #9e3d35;
  --red-bright: #c45748;
  --jade: #6f9b83;
  --danger: #cf6a5a;
  --success: #7ca789;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  color: var(--paper);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(129, 89, 47, .17), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(88, 111, 91, .12), transparent 28%),
    linear-gradient(150deg, #100e0b 0%, #17130e 52%, #0e0d0b 100%);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.ink {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
  opacity: .18;
  border-radius: 50%;
}
.ink-a { width: 480px; height: 480px; left: -240px; top: 25%; background: radial-gradient(circle, #805f38, transparent 68%); }
.ink-b { width: 420px; height: 420px; right: -220px; bottom: 8%; background: radial-gradient(circle, #375c49, transparent 68%); }

.topbar {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196,87,72,.7);
  color: #e1b7a7;
  background: rgba(118, 38, 32, .25);
  box-shadow: inset 0 0 0 3px rgba(18,16,13,.75);
  font-size: 23px;
}
.brand strong { display: block; font-size: 22px; letter-spacing: .18em; font-weight: 600; }
.brand small { display: block; margin-top: 3px; color: var(--paper-muted); letter-spacing: .08em; }
.account-area { display: flex; align-items: center; gap: 10px; color: var(--paper-muted); font-size: 14px; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 145px);
  margin: 0 auto;
  padding: 34px 0 40px;
}
.loading-screen { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--paper-muted); }
.loader-ring { width: 42px; height: 42px; border: 2px solid rgba(201,167,95,.18); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.hero-copy, .auth-panel, .create-panel, .panel, .character-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(28px, 5vw, 58px); position: relative; overflow: hidden; }
.hero-copy::after { content: "仙"; position: absolute; right: -15px; bottom: -55px; font-size: 220px; color: rgba(201,167,95,.035); line-height: 1; }
.eyebrow { color: var(--gold); letter-spacing: .28em; font-size: 13px; }
.hero-copy h1 { margin: 18px 0 14px; font-size: clamp(38px, 6vw, 72px); font-weight: 500; letter-spacing: .12em; line-height: 1.08; }
.hero-copy p { margin: 0; max-width: 550px; color: var(--paper-muted); font-size: 17px; line-height: 1.9; }
.world-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.world-note span { display: block; color: var(--paper-muted); font-size: 12px; }
.world-note strong { display: block; margin-top: 5px; color: var(--paper); font-size: 16px; font-weight: 500; }

.auth-panel, .create-panel { padding: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { border: 0; color: var(--paper-muted); background: transparent; padding: 13px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--gold-bright); border-bottom-color: var(--gold); }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--paper-muted); font-size: 14px; }
.field input, .field select {
  width: 100%;
  border: 1px solid rgba(206,182,126,.28);
  background: rgba(8, 8, 7, .42);
  color: var(--paper);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,167,95,.1); }
.field-hint { margin: 0; color: var(--paper-muted); font-size: 12px; line-height: 1.6; }
.primary-btn, .ghost-btn, .danger-btn {
  min-height: 46px;
  border: 1px solid transparent;
  padding: 11px 18px;
  transition: transform .15s, background .2s, border-color .2s;
}
.primary-btn { color: #17120b; background: linear-gradient(135deg, #d3b36b, #b58a40); border-color: #dfc177; font-weight: 700; }
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(135deg, #e1c47b, #c59b50); }
.ghost-btn { color: var(--paper); background: transparent; border-color: var(--line); }
.ghost-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-bright); }
.danger-btn { color: #edc4bd; background: rgba(112, 39, 32, .2); border-color: rgba(196,87,72,.45); }
.full { width: 100%; }
.form-error { display: none; padding: 12px 14px; color: #f1c1b7; background: rgba(120,40,32,.25); border: 1px solid rgba(196,87,72,.38); font-size: 14px; line-height: 1.55; }
.form-error.show { display: block; }

.notice-card { max-width: 650px; margin: 50px auto; padding: 34px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.notice-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 28px; }
.notice-card h2 { margin: 0 0 12px; font-weight: 500; }
.notice-card p { color: var(--paper-muted); line-height: 1.8; }

.create-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.lore-panel { padding: 36px; border: 1px solid var(--line); background: rgba(22,19,15,.78); }
.lore-panel h2 { margin-top: 0; font-weight: 500; font-size: 30px; }
.lore-panel p { color: var(--paper-muted); line-height: 1.9; }
.lore-list { display: grid; gap: 12px; margin-top: 26px; }
.lore-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.lore-item b { color: var(--gold); }
.gender-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gender-option { position: relative; }
.gender-option input { position: absolute; opacity: 0; pointer-events: none; }
.gender-option label { display: block; padding: 14px 8px; text-align: center; border: 1px solid var(--line); color: var(--paper-muted); cursor: pointer; }
.gender-option input:checked + label { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,167,95,.08); }

.dashboard { display: grid; gap: 22px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dashboard-head h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: .1em; }
.dashboard-head p { margin: 7px 0 0; color: var(--paper-muted); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid var(--line); color: var(--gold-bright); background: rgba(201,167,95,.07); font-size: 13px; }
.character-card { padding: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.identity { display: flex; gap: 20px; align-items: center; }
.avatar-seal { width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-bright); background: rgba(201,167,95,.08); font-size: 34px; box-shadow: inset 0 0 0 5px rgba(18,16,13,.85); }
.identity h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: .08em; }
.identity-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--paper-muted); font-size: 14px; }
.realm-block { border-left: 1px solid var(--line); padding-left: 24px; display: grid; align-content: center; }
.realm-block span { color: var(--paper-muted); }
.realm-block strong { margin-top: 5px; color: var(--gold-bright); font-size: 28px; font-weight: 500; }
.realm-block small { margin-top: 8px; color: var(--paper-muted); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { min-height: 112px; padding: 18px; border: 1px solid var(--line); background: var(--panel-2); }
.metric span { color: var(--paper-muted); font-size: 13px; }
.metric strong { display: block; margin-top: 10px; font-size: 25px; font-weight: 500; }
.metric small { display: block; margin-top: 5px; color: var(--paper-muted); }

.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.panel { padding: 24px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title h3 { margin: 0; font-weight: 500; font-size: 20px; }
.progress-label { display: flex; justify-content: space-between; color: var(--paper-muted); font-size: 13px; margin-bottom: 8px; }
.progress-track { height: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #80673b, var(--gold-bright)); }
.attribute-list { display: grid; gap: 12px; margin-top: 20px; }
.attribute-row { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed rgba(206,182,126,.17); }
.attribute-row span { color: var(--paper-muted); }
.attribute-row strong { font-weight: 500; }
.path-cards { display: grid; gap: 12px; }
.path-card { padding: 15px; border: 1px solid var(--line); background: rgba(13,12,10,.3); }
.path-card span { color: var(--paper-muted); font-size: 12px; }
.path-card strong { display: block; margin-top: 5px; color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.path-card p { margin: 8px 0 0; color: var(--paper-muted); font-size: 13px; line-height: 1.6; }

.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 20px 26px; border-left: 1px solid var(--line); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--bg-soft); border-radius: 50%; }
.timeline-item time { color: var(--gold); font-size: 12px; }
.timeline-item h4 { margin: 5px 0; font-weight: 500; }
.timeline-item p { margin: 0; color: var(--paper-muted); line-height: 1.6; font-size: 14px; }
.empty-state { padding: 30px 12px; text-align: center; color: var(--paper-muted); }
.locked-action { padding: 18px; border: 1px dashed rgba(206,182,126,.25); text-align: center; color: var(--paper-muted); }
.locked-action strong { display: block; color: var(--paper); margin-bottom: 7px; }

.toast { position: fixed; z-index: 180; right: 22px; bottom: 24px; max-width: min(420px, calc(100% - 44px)); padding: 14px 17px; background: #241f18; color: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(124,167,137,.55); }
.toast.error { border-color: rgba(207,106,90,.65); }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal { width: min(560px, 100%); padding: 34px; border: 1px solid var(--gold); background: #1d1913; box-shadow: var(--shadow); text-align: center; }
.modal-seal { width: 70px; height: 70px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--red-bright); color: #e1b7a7; font-size: 32px; }
.modal h2 { margin: 0 0 12px; font-weight: 500; }
.modal p { color: var(--paper-muted); line-height: 1.8; }
.birth-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.birth-result div { padding: 15px; border: 1px solid var(--line); }
.birth-result span { color: var(--paper-muted); font-size: 12px; }
.birth-result strong { display: block; margin-top: 6px; color: var(--gold-bright); font-size: 19px; }

.footer { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 24px; display: flex; justify-content: space-between; color: rgba(185,173,145,.65); font-size: 12px; border-top: 1px solid rgba(206,182,126,.12); }

@media (max-width: 860px) {
  .hero-grid, .create-layout, .character-card, .content-grid { grid-template-columns: 1fr; }
  .realm-block { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .world-note { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .brand small { display: none; }
  .brand strong { font-size: 18px; }
  .brand-seal { width: 40px; height: 40px; }
  .app-shell { padding-top: 20px; }
  .hero-copy, .auth-panel, .create-panel, .panel, .character-card, .lore-panel { padding: 20px; }
  .hero-copy h1 { font-size: 42px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 100px; }
  .identity { align-items: flex-start; }
  .avatar-seal { width: 66px; height: 66px; font-size: 27px; flex: 0 0 auto; }
  .identity h2 { font-size: 24px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .birth-result { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 6px; }
}

/* Web Alpha 0.3 · 自动修炼 */
.live-badge { gap: 8px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #8ab894; box-shadow: 0 0 0 5px rgba(138,184,148,.10); animation: cultivationPulse 1.7s ease-in-out infinite; }
@keyframes cultivationPulse { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
.cultivation-metric strong { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.offline-gain { padding: 18px 22px; border: 1px solid rgba(201,167,95,.42); background: rgba(201,167,95,.075); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.offline-gain div { display: grid; gap: 5px; }
.offline-gain span { color: var(--paper-muted); font-size: 13px; }
.offline-gain strong { color: var(--gold-bright); font-size: 20px; font-weight: 500; }
.offline-gain p { margin: 0; color: var(--paper-muted); text-align: right; font-size: 13px; line-height: 1.65; }
.cultivation-core { padding: 18px; border: 1px solid var(--line); background: rgba(13,12,10,.32); }
.cultivation-core > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.cultivation-core span { color: var(--paper-muted); font-size: 13px; }
.cultivation-core strong { color: var(--gold-bright); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cultivation-core p { margin: 10px 0 0; color: var(--paper-muted); font-size: 13px; line-height: 1.65; }
.rate-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 14px; border: 1px solid var(--line); background: var(--line); }
.rate-breakdown > div { padding: 12px 14px; background: var(--panel-2); display: flex; justify-content: space-between; gap: 12px; }
.rate-breakdown span { color: var(--paper-muted); font-size: 12px; }
.rate-breakdown strong { font-size: 13px; font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.compact-list { margin-top: 16px; }
.technique-card { border-color: rgba(122,155,111,.34); }
.opportunity-card { border-color: rgba(174,126,70,.48); background: rgba(174,126,70,.055); }
.empty-state.small { padding: 18px 10px; font-size: 13px; }

@media (max-width: 650px) {
  .offline-gain { align-items: flex-start; flex-direction: column; }
  .offline-gain p { text-align: left; }
  .rate-breakdown { grid-template-columns: 1fr; }
  .cultivation-core > div { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* Web Alpha 0.4 · 机缘与突破 */
.progression-grid { grid-template-columns: 1fr 1fr; }
.progression-panel { min-height: 390px; }
.breakthrough-card { display: grid; gap: 18px; }
.breakthrough-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line); background: rgba(13,12,10,.32); }
.breakthrough-heading span { color: var(--paper-muted); font-size: 13px; }
.breakthrough-heading strong { display: block; margin-top: 5px; color: var(--gold-bright); font-size: 24px; font-weight: 500; }
.chance-orb { width: 92px; height: 92px; flex: 0 0 auto; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(201,167,95,.06); }
.chance-orb small { color: var(--paper-muted); }
.chance-orb b { margin-top: 4px; color: var(--gold-bright); font-size: 21px; font-weight: 500; }
.breakthrough-meta { display: grid; gap: 8px; color: var(--paper-muted); font-size: 13px; line-height: 1.6; }
.opportunity-scene { display: grid; gap: 14px; }
.opportunity-scene h4 { margin: 0; color: var(--gold-bright); font-size: 25px; font-weight: 500; }
.opportunity-scene > p { margin: 0; color: var(--paper-muted); line-height: 1.9; }
.opportunity-choices { display: grid; gap: 10px; margin-top: 4px; }
.opportunity-choice { width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: rgba(13,12,10,.34); color: var(--paper); text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.opportunity-choice:hover:not(:disabled) { border-color: var(--gold); background: rgba(201,167,95,.08); transform: translateY(-1px); }
.opportunity-choice strong { display: block; font-weight: 500; }
.opportunity-choice small { display: block; margin-top: 6px; color: var(--gold); line-height: 1.5; }
.opportunity-expire { color: var(--paper-muted); }
.opportunity-waiting { min-height: 290px; display: grid; place-items: center; align-content: center; gap: 13px; text-align: center; color: var(--paper-muted); }
.opportunity-waiting strong { color: var(--paper); font-size: 21px; font-weight: 500; }
.opportunity-waiting p { max-width: 390px; margin: 0; line-height: 1.7; }
.opportunity-waiting > span { color: var(--gold-bright); font-size: 24px; font-variant-numeric: tabular-nums; }
.dao-orbit { position: relative; width: 82px; height: 82px; border: 1px solid rgba(201,167,95,.35); border-radius: 50%; animation: daoSpin 8s linear infinite; }
.dao-orbit::before { content: "机"; position: absolute; inset: 15px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); font-size: 22px; animation: daoSpinReverse 8s linear infinite; }
.dao-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dao-orbit i:nth-child(1) { left: 50%; top: -4px; }
.dao-orbit i:nth-child(2) { right: 4px; bottom: 12px; }
.dao-orbit i:nth-child(3) { left: 2px; bottom: 16px; }
@keyframes daoSpin { to { transform: rotate(360deg); } }
@keyframes daoSpinReverse { to { transform: rotate(-360deg); } }
.rarity-common { color: var(--paper-muted); }
.rarity-uncommon { color: #9abf9f; border-color: rgba(111,155,131,.5); }
.rarity-rare { color: #91aede; border-color: rgba(110,139,193,.5); }
.rarity-epic { color: #c4a0db; border-color: rgba(151,105,184,.55); }
.result-detail { margin: 18px 0; padding: 14px; border: 1px solid var(--line); color: var(--gold-bright); background: rgba(201,167,95,.06); }
.failure-seal { border-color: var(--danger); color: var(--danger); }

@media (max-width: 860px) {
  .progression-grid { grid-template-columns: 1fr; }
  .progression-panel { min-height: auto; }
}
@media (max-width: 560px) {
  .breakthrough-heading { align-items: flex-start; }
  .chance-orb { width: 78px; height: 78px; }
}


/* Web Alpha 0.5 · 手机界面重构 */
.dashboard-reforge { display: grid; gap: 16px; padding-bottom: 96px; }
.hero-hud { position: sticky; top: 8px; z-index: 4; backdrop-filter: blur(8px); }
.hero-hud-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero-avatar { width: 70px; height: 70px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 30px; background: linear-gradient(180deg, rgba(201,167,95,.18), rgba(201,167,95,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.hero-copy h1 { margin: 4px 0 8px; font-size: 34px; font-weight: 500; }
.hero-meta-line { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); color: var(--paper-muted); background: rgba(13,12,10,.25); font-size: 12px; }
.hero-chip.realm { color: var(--gold-bright); border-color: rgba(206,182,126,.34); }
.hero-side-actions { display: grid; justify-items: end; gap: 10px; }
.hero-sync-btn { min-width: 108px; min-height: 40px; padding: 0 14px; }
.hud-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.hud-pill { min-height: 88px; padding: 14px; border: 1px solid var(--line); background: rgba(13,12,10,.32); display: grid; align-content: center; gap: 5px; }
.hud-pill.primary { border-color: rgba(206,182,126,.42); background: linear-gradient(180deg, rgba(201,167,95,.1), rgba(13,12,10,.4)); }
.hud-pill span { color: var(--paper-muted); font-size: 12px; }
.hud-pill strong { color: var(--paper); font-size: 26px; line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-pill.primary strong { color: var(--gold-bright); }
.hud-pill small { color: var(--gold); font-size: 12px; }
.section-nav { display: flex; gap: 10px; overflow-x: auto; margin-top: 16px; padding-bottom: 2px; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: 0 0 auto; min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); color: var(--paper-muted); background: rgba(13,12,10,.25); font-size: 13px; }
.section-nav a:hover { color: var(--gold-bright); border-color: var(--gold); }
.cultivation-focus-panel .panel-title { margin-bottom: 14px; }
.cultivation-focus-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: center; }
.cultivation-visual { padding: 22px 16px; border: 1px solid var(--line); background: radial-gradient(circle at center, rgba(201,167,95,.12), rgba(13,12,10,.24) 60%, rgba(13,12,10,.36)); display: grid; place-items: center; gap: 14px; }
.aura-ring { width: 164px; height: 164px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.36); border-radius: 50%; box-shadow: 0 0 0 12px rgba(201,167,95,.04), inset 0 0 40px rgba(201,167,95,.08); }
.aura-inner { width: 118px; height: 118px; border-radius: 50%; border: 1px solid rgba(206,182,126,.28); display: grid; place-items: center; color: var(--gold-bright); font-size: 40px; background: rgba(13,12,10,.46); }
.focus-caption { text-align: center; color: var(--paper-muted); font-size: 13px; line-height: 1.75; max-width: 220px; }
.cultivation-focus-main { display: grid; gap: 14px; }
.focus-stat { padding: 18px; border: 1px solid var(--line); background: rgba(13,12,10,.28); display: grid; gap: 6px; }
.focus-stat span { color: var(--paper-muted); font-size: 13px; }
.focus-stat strong { color: var(--gold-bright); font-size: 34px; font-weight: 500; line-height: 1.06; font-variant-numeric: tabular-nums; }
.focus-stat small { color: var(--paper-muted); font-size: 13px; }
.progress-label.compact { margin-bottom: 6px; }
.progress-track.compact { height: 10px; }
.offline-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid rgba(201,167,95,.35); background: rgba(201,167,95,.06); }
.offline-inline strong { color: var(--gold-bright); font-size: 16px; }
.offline-inline span { color: var(--paper-muted); font-size: 12px; }
.rate-breakdown.mobile-tight { margin-top: 0; }
.attribute-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.attribute-mini-grid > div { padding: 14px; border: 1px solid var(--line); background: rgba(13,12,10,.26); display: grid; gap: 5px; }
.attribute-mini-grid span { color: var(--paper-muted); font-size: 12px; }
.attribute-mini-grid strong { color: var(--paper); font-size: 18px; font-weight: 500; }
.info-section .panel-title, .mobile-panel-card .panel-title { margin-bottom: 14px; }
.mobile-card-stack { display: grid; gap: 12px; }
.double-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mobile-bottom-nav { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 8; width: min(560px, calc(100% - 20px)); display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; border: 1px solid rgba(206,182,126,.24); background: rgba(21,17,12,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.mobile-bottom-nav a { min-height: 44px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.16); color: var(--paper-muted); font-size: 12px; }
.mobile-bottom-nav a:hover { color: var(--gold-bright); border-color: rgba(206,182,126,.38); }

@media (max-width: 860px) {
  .cultivation-focus-layout, .double-panel-grid, .hud-strip, .attribute-mini-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cultivation-focus-layout { grid-template-columns: 1fr; }
  .hero-hud { position: static; }
}
@media (max-width: 560px) {
  .topbar { width: calc(100% - 20px); padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .account-area { width: 100%; justify-content: flex-end; }
  .app-shell { width: calc(100% - 16px); padding-top: 12px; }
  .footer { display: none; }
  .dashboard-reforge { gap: 12px; padding-bottom: 92px; }
  .panel, .hero-hud { padding: 16px; }
  .hero-hud-top { align-items: flex-start; flex-direction: column; }
  .hero-id { width: 100%; align-items: flex-start; gap: 12px; }
  .hero-avatar { width: 58px; height: 58px; font-size: 24px; }
  .hero-copy { min-width: 0; }
  .hero-copy h1 { font-size: 28px; margin-bottom: 6px; }
  .eyebrow { font-size: 11px; }
  .hero-meta-line { gap: 6px; }
  .hero-chip { min-height: 24px; padding: 0 8px; font-size: 11px; }
  .hero-side-actions { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .hero-sync-btn { min-width: 0; width: 100%; min-height: 36px; font-size: 13px; }
  .hud-strip { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
  .hud-pill { min-height: 72px; padding: 10px 12px; }
  .hud-pill strong { font-size: 20px; }
  .hud-pill small { font-size: 11px; }
  .section-nav { gap: 8px; margin-top: 12px; }
  .section-nav a { min-height: 30px; padding: 0 10px; font-size: 12px; }
  .cultivation-focus-layout { gap: 12px; }
  .cultivation-visual { padding: 18px 12px; }
  .aura-ring { width: 128px; height: 128px; box-shadow: 0 0 0 8px rgba(201,167,95,.04), inset 0 0 30px rgba(201,167,95,.08); }
  .aura-inner { width: 92px; height: 92px; font-size: 32px; }
  .focus-caption { max-width: none; font-size: 12px; }
  .focus-stat { padding: 14px; }
  .focus-stat strong { font-size: 28px; }
  .offline-inline { align-items: flex-start; flex-direction: column; }
  .rate-breakdown.mobile-tight { grid-template-columns: 1fr; gap: 1px; }
  .rate-breakdown.mobile-tight > div { padding: 10px 12px; }
  .attribute-mini-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
  .attribute-mini-grid > div { padding: 10px 12px; }
  .attribute-mini-grid strong { font-size: 16px; }
  .path-card { padding: 14px; }
  .path-card strong { font-size: 20px; }
  .double-panel-grid { grid-template-columns: 1fr; gap: 12px; }
  .progression-panel { min-height: auto; }
  .breakthrough-heading { padding: 14px; gap: 14px; }
  .breakthrough-heading strong { font-size: 22px; }
  .chance-orb { width: 74px; height: 74px; }
  .opportunity-scene h4 { font-size: 22px; }
  .opportunity-choice { padding: 13px 14px; }
  .timeline-item { padding-bottom: 16px; }
  .timeline-item p { font-size: 13px; }
  .mobile-bottom-nav { display: grid; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}


/* Web Alpha 0.5 · 参考移动修仙游戏的信息架构：紧凑 HUD、主修炼区、固定底栏 */
.mobile-screen-hidden { display: none !important; }
.mobile-tab-button { border: 0; background: transparent; color: var(--paper-muted); min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px 2px; }
.mobile-tab-button b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.24); border-radius: 50%; color: var(--paper-muted); font-size: 12px; font-weight: 500; }
.mobile-tab-button span { font-size: 11px; }
.mobile-tab-button.active { color: var(--gold-bright); background: rgba(201,167,95,.08); }
.mobile-tab-button.active b { color: var(--gold-bright); border-color: var(--gold); background: rgba(201,167,95,.09); }

@media (min-width: 601px) {
  [data-mobile-screen] { display: block !important; }
  .double-panel-grid [data-mobile-screen] { display: block !important; }
}

@media (max-width: 600px) {
  :root { font-size: 13px; }
  body { background: linear-gradient(180deg, #100e0b 0%, #17130e 56%, #0f0d0a 100%); }
  .ink { display: none; }
  .topbar {
    position: sticky; top: 0; z-index: 20; width: 100%; margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 7px) 10px 7px;
    border-bottom: 1px solid rgba(206,182,126,.18); background: rgba(17,14,10,.94); backdrop-filter: blur(12px);
  }
  .brand { gap: 8px; min-width: 0; }
  .brand-seal { width: 30px; height: 30px; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(18,16,13,.75); }
  .brand strong { font-size: 15px; letter-spacing: .12em; white-space: nowrap; }
  .brand small { display: none; }
  .account-area { width: auto; min-width: 0; gap: 6px; font-size: 10px; }
  .account-area > span { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-area .ghost-btn { min-height: 28px; padding: 3px 8px; font-size: 11px; }
  .app-shell { width: 100%; min-height: calc(100vh - 46px); padding: 8px 8px calc(74px + env(safe-area-inset-bottom, 0px)); }
  .dashboard-reforge { gap: 8px; padding-bottom: 0; }
  .panel, .hero-hud { padding: 10px; box-shadow: none; }
  .hero-hud { position: static; border-color: rgba(206,182,126,.3); }
  .hero-hud-top { flex-direction: row; align-items: center; gap: 8px; }
  .hero-id { gap: 9px; min-width: 0; flex: 1; }
  .hero-avatar { width: 42px; height: 42px; font-size: 18px; }
  .hero-copy { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .hero-copy::after { display: none; }
  .hero-copy h1 { margin: 1px 0 3px; font-size: 19px; letter-spacing: .06em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eyebrow { font-size: 9px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .hero-meta-line { gap: 4px; flex-wrap: nowrap; overflow: hidden; }
  .hero-chip { min-height: 19px; padding: 0 5px; font-size: 9px; white-space: nowrap; }
  .hero-side-actions { width: auto; display: grid; gap: 5px; justify-items: end; }
  .live-badge { min-height: 21px; padding: 2px 6px; font-size: 9px; }
  .hero-sync-btn { width: auto; min-width: 54px; min-height: 27px; padding: 2px 7px; font-size: 10px; }
  .hud-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
  .hud-pill { min-height: 55px; padding: 7px 6px; gap: 2px; text-align: center; }
  .hud-pill span { font-size: 9px; }
  .hud-pill strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-pill small { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section-nav { display: none; }

  .panel-title { margin-bottom: 8px; }
  .panel-title h3 { font-size: 15px; }
  .badge { min-height: 21px; padding: 2px 6px; font-size: 9px; }
  .cultivation-focus-layout { grid-template-columns: 105px minmax(0,1fr); gap: 8px; align-items: stretch; }
  .cultivation-visual { min-height: 160px; padding: 10px 6px; gap: 7px; }
  .aura-ring { width: 88px; height: 88px; box-shadow: 0 0 0 5px rgba(201,167,95,.04), inset 0 0 24px rgba(201,167,95,.08); }
  .aura-inner { width: 62px; height: 62px; font-size: 23px; }
  .focus-caption { font-size: 9px; line-height: 1.45; }
  .cultivation-focus-main { gap: 7px; min-width: 0; }
  .focus-stat { padding: 9px; gap: 2px; }
  .focus-stat span { font-size: 9px; }
  .focus-stat strong { font-size: 21px; }
  .focus-stat small { font-size: 9px; line-height: 1.4; }
  .progress-label { font-size: 9px; margin-bottom: 4px; }
  .progress-track, .progress-track.compact { height: 7px; }
  .offline-inline { padding: 7px 8px; gap: 3px; flex-direction: column; align-items: flex-start; }
  .offline-inline strong { font-size: 11px; }
  .offline-inline span { font-size: 9px; }
  .rate-breakdown.mobile-tight { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
  .rate-breakdown.mobile-tight > div { padding: 6px 7px; min-width: 0; }
  .rate-breakdown.mobile-tight span { font-size: 8px; }
  .rate-breakdown.mobile-tight strong { font-size: 10px; white-space: nowrap; }
  .attribute-mini-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin-top: 8px; }
  .attribute-mini-grid > div { padding: 6px 4px; text-align: center; gap: 2px; }
  .attribute-mini-grid span { font-size: 8px; }
  .attribute-mini-grid strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .double-panel-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .progression-panel { min-height: auto; }
  .breakthrough-card { gap: 9px; }
  .breakthrough-heading { padding: 9px; gap: 8px; }
  .breakthrough-heading span { font-size: 9px; }
  .breakthrough-heading strong { font-size: 17px; }
  .chance-orb { width: 58px; height: 58px; }
  .chance-orb small { font-size: 8px; }
  .chance-orb b { font-size: 14px; }
  .breakthrough-meta { gap: 3px; font-size: 9px; }
  .primary-btn, .ghost-btn, .danger-btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }

  .mobile-card-stack { gap: 7px; }
  .path-card { padding: 9px; }
  .path-card span { font-size: 9px; }
  .path-card strong { margin-top: 3px; font-size: 15px; }
  .path-card p { margin-top: 4px; font-size: 10px; line-height: 1.55; }
  .opportunity-scene { gap: 8px; }
  .opportunity-scene h4 { font-size: 17px; }
  .opportunity-scene > p { font-size: 10px; line-height: 1.6; }
  .opportunity-choices { gap: 6px; }
  .opportunity-choice { padding: 9px 10px; }
  .opportunity-choice strong { font-size: 12px; }
  .opportunity-choice small { margin-top: 3px; font-size: 9px; }
  .opportunity-waiting { min-height: 210px; gap: 8px; }
  .opportunity-waiting strong { font-size: 15px; }
  .opportunity-waiting p { font-size: 10px; }
  .opportunity-waiting > span { font-size: 17px; }
  .dao-orbit { width: 62px; height: 62px; }
  .dao-orbit::before { inset: 11px; font-size: 16px; }
  .timeline { gap: 0; }
  .timeline-item { padding: 0 0 10px 16px; }
  .timeline-item::before { width: 6px; height: 6px; left: -3px; }
  .timeline-item span { font-size: 9px; }
  .timeline-item p { margin-top: 2px; font-size: 10px; line-height: 1.5; }

  .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; width: 100%; left: 0; bottom: 0; transform: none;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid rgba(206,182,126,.25);
    background: rgba(18,15,11,.97); box-shadow: 0 -8px 30px rgba(0,0,0,.32);
  }
}

/* Web Alpha 0.6 · 功法、储物与洞府补给 */
.foundation-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.resource-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 8px; padding: 10px 12px; border: 1px solid rgba(206,182,126,.24); background: rgba(201,167,95,.05); }
.resource-inline span { color: var(--paper-muted); font-size: 12px; }
.resource-inline strong { color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.technique-manage-list { display: grid; gap: 10px; }
.manage-card { padding: 14px; border: 1px solid var(--line); background: rgba(13,12,10,.3); display: grid; gap: 9px; }
.manage-card.equipped { border-color: rgba(206,182,126,.4); background: linear-gradient(180deg, rgba(201,167,95,.075), rgba(13,12,10,.34)); }
.manage-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.manage-card-head > div { min-width: 0; }
.manage-card-head span { color: var(--paper-muted); font-size: 11px; }
.manage-card-head strong { display: block; margin-top: 3px; color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.manage-card-head strong small { color: var(--paper-muted); font-size: 11px; }
.manage-card > p { margin: 0; color: var(--paper); font-size: 12px; }
.manage-description { color: var(--paper-muted); font-size: 11px; line-height: 1.55; }
.manage-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 8px; }
.manage-actions button { min-height: 36px; }
.effect-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 8px; margin-top: 12px; }
.effect-strip article { padding: 10px 12px; border: 1px solid rgba(206,182,126,.2); background: rgba(201,167,95,.045); display: grid; gap: 3px; }
.effect-strip span, .effect-strip small { color: var(--paper-muted); font-size: 10px; }
.effect-strip strong { color: var(--gold-bright); font-size: 13px; font-weight: 500; }
.supply-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; border: 1px solid rgba(206,182,126,.38); background: linear-gradient(135deg, rgba(201,167,95,.1), rgba(13,12,10,.34)); }
.supply-card > div { min-width: 0; }
.supply-card span { color: var(--paper-muted); font-size: 11px; }
.supply-card strong { display: block; margin-top: 3px; color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.supply-card p { margin: 4px 0 0; color: var(--paper-muted); font-size: 11px; }
.supply-card button { min-width: 118px; }
.inventory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.inventory-card { position: relative; min-height: 116px; padding: 12px; border: 1px solid var(--line); background: rgba(13,12,10,.3); display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.inventory-card.rarity-uncommon, .inventory-card.rarity-rare, .inventory-card.rarity-epic { border-color: rgba(206,182,126,.33); }
.inventory-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.35); border-radius: 50%; color: var(--gold-bright); background: rgba(201,167,95,.08); font-size: 17px; }
.inventory-copy { min-width: 0; }
.inventory-copy > span { color: var(--paper-muted); font-size: 10px; }
.inventory-copy strong { display: block; margin-top: 3px; color: var(--paper); font-size: 15px; font-weight: 500; }
.inventory-copy strong small { color: var(--gold-bright); font-size: 11px; }
.inventory-copy p { margin: 4px 0 0; color: var(--paper-muted); font-size: 10px; line-height: 1.5; }
.inventory-use-btn { min-width: 60px; min-height: 34px; padding: 6px 10px; }
.mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 600px) {
  .foundation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-bottom: 7px; }
  .foundation-grid .path-card { min-height: 82px; }
  .resource-inline { margin: 7px 0 6px; padding: 7px 8px; }
  .resource-inline span { font-size: 9px; }
  .resource-inline strong { font-size: 14px; }
  .technique-manage-list { gap: 6px; }
  .manage-card { padding: 8px; gap: 5px; }
  .manage-card-head { gap: 6px; }
  .manage-card-head span { font-size: 8px; }
  .manage-card-head strong { margin-top: 2px; font-size: 13px; }
  .manage-card-head strong small { font-size: 8px; }
  .manage-card > p { font-size: 9px; }
  .manage-description { font-size: 8px; line-height: 1.4; }
  .manage-actions { gap: 5px; }
  .manage-actions button { min-height: 31px; padding: 5px 6px; font-size: 9px; }
  .effect-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 7px; }
  .effect-strip article { padding: 6px 7px; }
  .effect-strip span, .effect-strip small { font-size: 8px; }
  .effect-strip strong { font-size: 10px; }
  .supply-card { grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 8px; margin-bottom: 7px; }
  .supply-card span { font-size: 8px; }
  .supply-card strong { margin-top: 2px; font-size: 13px; }
  .supply-card p { margin-top: 2px; font-size: 8px; line-height: 1.4; }
  .supply-card button { min-width: 76px; min-height: 32px; padding: 5px 7px; font-size: 9px; }
  .inventory-grid { grid-template-columns: 1fr; gap: 6px; }
  .inventory-card { min-height: 78px; padding: 8px; grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; }
  .inventory-icon { width: 32px; height: 32px; font-size: 13px; }
  .inventory-copy > span { font-size: 8px; }
  .inventory-copy strong { margin-top: 2px; font-size: 12px; }
  .inventory-copy strong small { font-size: 8px; }
  .inventory-copy p { margin-top: 2px; font-size: 8px; line-height: 1.4; }
  .inventory-use-btn { min-width: 48px; min-height: 30px; padding: 4px 7px; font-size: 9px; }
  .mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); padding-left: 2px; padding-right: 2px; }
  .mobile-tab-button { min-height: 48px; padding: 3px 0; }
  .mobile-tab-button b { width: 23px; height: 23px; font-size: 10px; }
  .mobile-tab-button span { font-size: 9px; }
}


/* Web Alpha 0.6.2 · 所有设备统一采用紧凑手机布局 */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #100e0b 0%, #17130e 56%, #0f0d0a 100%);
}
.ink { display: none; }
.topbar,
.app-shell,
.footer {
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(env(safe-area-inset-top, 0px) + 7px) 10px 7px;
  border-bottom: 1px solid rgba(206,182,126,.18);
  background: rgba(17,14,10,.96);
  backdrop-filter: blur(12px);
}
.brand { gap: 8px; min-width: 0; }
.brand-seal { width: 30px; height: 30px; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(18,16,13,.75); }
.brand strong { font-size: 15px; letter-spacing: .12em; white-space: nowrap; }
.brand small { display: none; }
.account-area { width: auto; min-width: 0; gap: 6px; font-size: 10px; }
.account-area > span { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-area .ghost-btn { min-height: 28px; padding: 3px 8px; font-size: 11px; }
.app-shell { min-height: calc(100vh - 46px); padding: 8px 8px calc(74px + env(safe-area-inset-bottom, 0px)); }
.footer { display: none; }
.hero-grid,
.create-layout,
.character-card,
.content-grid,
.progression-grid,
.double-panel-grid { grid-template-columns: 1fr; gap: 8px; }
.hero-copy,
.auth-panel,
.create-panel,
.panel,
.character-card,
.lore-panel,
.hero-hud { padding: 10px; box-shadow: none; }
.hero-grid .hero-copy { padding: 16px; }
.hero-grid .hero-copy h1 { margin: 8px 0 7px; font-size: 29px; line-height: 1.18; }
.hero-grid .hero-copy p { font-size: 11px; line-height: 1.65; }
.world-note { margin-top: 12px; padding-top: 10px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.world-note span { font-size: 8px; }
.world-note strong { margin-top: 2px; font-size: 11px; }
.auth-panel, .create-panel { padding: 14px; }
.tabs { margin-bottom: 13px; }
.tab { padding: 9px; font-size: 12px; }
.form-stack { gap: 11px; }
.field { gap: 5px; }
.field label { font-size: 11px; }
.field input, .field select { padding: 10px 11px; font-size: 14px; }
.field-hint { font-size: 9px; line-height: 1.5; }
.create-panel h2, .lore-panel h2 { font-size: 21px; margin: 8px 0 10px; }
.lore-panel p { font-size: 10px; line-height: 1.65; }
.lore-list { gap: 5px; margin-top: 10px; }
.lore-item { padding: 8px 0; font-size: 10px; }
.gender-option label { padding: 10px 5px; font-size: 11px; }
.notice-card { margin: 20px auto; padding: 20px 14px; }
.notice-card p { font-size: 11px; line-height: 1.65; }
.dashboard-reforge { gap: 8px; padding-bottom: 0; }
.hero-hud { position: static; border-color: rgba(206,182,126,.3); }
.hero-hud-top { flex-direction: row; align-items: center; gap: 8px; }
.hero-id { gap: 9px; min-width: 0; flex: 1; }
.hero-avatar { width: 42px; height: 42px; font-size: 18px; }
.hero-copy { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.hero-copy::after { display: none; }
.hero-copy h1 { margin: 1px 0 3px; font-size: 19px; letter-spacing: .06em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { font-size: 9px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hero-meta-line { gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.hero-chip { min-height: 19px; padding: 0 5px; font-size: 9px; white-space: nowrap; }
.hero-side-actions { width: auto; display: grid; gap: 5px; justify-items: end; }
.live-badge { min-height: 21px; padding: 2px 6px; font-size: 9px; }
.hero-sync-btn { width: auto; min-width: 54px; min-height: 27px; padding: 2px 7px; font-size: 10px; }
.hud-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.hud-pill { min-height: 55px; padding: 7px 6px; gap: 2px; text-align: center; }
.hud-pill span { font-size: 9px; }
.hud-pill strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-pill small { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-nav { display: none; }
.panel-title { margin-bottom: 8px; }
.panel-title h3 { font-size: 15px; }
.badge { min-height: 21px; padding: 2px 6px; font-size: 9px; }
.cultivation-focus-layout { grid-template-columns: 105px minmax(0,1fr); gap: 8px; align-items: stretch; }
.cultivation-visual { min-height: 160px; padding: 10px 6px; gap: 7px; }
.aura-ring { width: 88px; height: 88px; box-shadow: 0 0 0 5px rgba(201,167,95,.04), inset 0 0 24px rgba(201,167,95,.08); }
.aura-inner { width: 62px; height: 62px; font-size: 23px; }
.focus-caption { font-size: 9px; line-height: 1.45; }
.cultivation-focus-main { gap: 7px; min-width: 0; }
.focus-stat { padding: 9px; gap: 2px; }
.focus-stat span { font-size: 9px; }
.focus-stat strong { font-size: 21px; }
.focus-stat small { font-size: 9px; line-height: 1.4; }
.progress-label { font-size: 9px; margin-bottom: 4px; }
.progress-track, .progress-track.compact { height: 7px; }
.offline-inline { padding: 7px 8px; gap: 3px; flex-direction: column; align-items: flex-start; }
.offline-inline strong { font-size: 11px; }
.offline-inline span { font-size: 9px; }
.rate-breakdown.mobile-tight { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
.rate-breakdown.mobile-tight > div { padding: 6px 7px; min-width: 0; }
.rate-breakdown.mobile-tight span { font-size: 8px; }
.rate-breakdown.mobile-tight strong { font-size: 10px; white-space: nowrap; }
.attribute-mini-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.attribute-mini-grid > div { padding: 6px 4px; text-align: center; gap: 2px; }
.attribute-mini-grid span { font-size: 8px; }
.attribute-mini-grid strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progression-panel { min-height: auto; }
.breakthrough-card { gap: 9px; }
.breakthrough-heading { padding: 9px; gap: 8px; }
.breakthrough-heading span { font-size: 9px; }
.breakthrough-heading strong { font-size: 17px; }
.chance-orb { width: 58px; height: 58px; }
.chance-orb small { font-size: 8px; }
.chance-orb b { font-size: 14px; }
.breakthrough-meta { gap: 3px; font-size: 9px; }
.primary-btn, .ghost-btn, .danger-btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.mobile-card-stack { gap: 7px; }
.path-card { padding: 9px; }
.path-card span { font-size: 9px; }
.path-card strong { margin-top: 3px; font-size: 15px; }
.path-card p { margin-top: 4px; font-size: 10px; line-height: 1.55; }
.opportunity-scene { gap: 8px; }
.opportunity-scene h4 { font-size: 17px; }
.opportunity-scene > p { font-size: 10px; line-height: 1.6; }
.opportunity-choices { gap: 6px; }
.opportunity-choice { padding: 9px 10px; }
.opportunity-choice strong { font-size: 12px; }
.opportunity-choice small { margin-top: 3px; font-size: 9px; }
.opportunity-waiting { min-height: 210px; gap: 8px; }
.opportunity-waiting strong { font-size: 15px; }
.opportunity-waiting p { font-size: 10px; }
.opportunity-waiting > span { font-size: 17px; }
.dao-orbit { width: 62px; height: 62px; }
.dao-orbit::before { inset: 11px; font-size: 16px; }
.timeline { gap: 0; }
.timeline-item { padding: 0 0 10px 16px; }
.timeline-item::before { width: 6px; height: 6px; left: -3px; }
.timeline-item span { font-size: 9px; }
.timeline-item p { margin-top: 2px; font-size: 10px; line-height: 1.5; }
.foundation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-bottom: 7px; }
.foundation-grid .path-card { min-height: 82px; }
.resource-inline { margin: 7px 0 6px; padding: 7px 8px; }
.resource-inline span { font-size: 9px; }
.resource-inline strong { font-size: 14px; }
.technique-manage-list { gap: 6px; }
.manage-card { padding: 8px; gap: 5px; }
.manage-card-head { gap: 6px; }
.manage-card-head span { font-size: 8px; }
.manage-card-head strong { margin-top: 2px; font-size: 13px; }
.manage-card-head strong small { font-size: 8px; }
.manage-card > p { font-size: 9px; }
.manage-description { font-size: 8px; line-height: 1.4; }
.manage-actions { gap: 5px; }
.manage-actions button { min-height: 31px; padding: 5px 6px; font-size: 9px; }
.effect-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 7px; }
.effect-strip article { padding: 6px 7px; }
.effect-strip span, .effect-strip small { font-size: 8px; }
.effect-strip strong { font-size: 10px; }
.supply-card { grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 8px; margin-bottom: 7px; }
.supply-card span { font-size: 8px; }
.supply-card strong { margin-top: 2px; font-size: 13px; }
.supply-card p { margin-top: 2px; font-size: 8px; line-height: 1.4; }
.supply-card button { min-width: 76px; min-height: 32px; padding: 5px 7px; font-size: 9px; }
.inventory-grid { grid-template-columns: 1fr; gap: 6px; }
.inventory-card { min-height: 78px; padding: 8px; grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; }
.inventory-icon { width: 32px; height: 32px; font-size: 13px; }
.inventory-copy > span { font-size: 8px; }
.inventory-copy strong { margin-top: 2px; font-size: 12px; }
.inventory-copy strong small { font-size: 8px; }
.inventory-copy p { margin-top: 2px; font-size: 8px; line-height: 1.4; }
.inventory-use-btn { min-width: 48px; min-height: 30px; padding: 4px 7px; font-size: 9px; }
[data-mobile-screen] { display: block; }
[data-mobile-screen].mobile-screen-hidden,
.double-panel-grid [data-mobile-screen].mobile-screen-hidden { display: none !important; }
.mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: min(520px, 100%);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid rgba(206,182,126,.25);
  background: rgba(18,15,11,.97);
  box-shadow: 0 -8px 30px rgba(0,0,0,.32);
}
.mobile-tab-button { min-height: 48px; padding: 3px 0; }
.mobile-tab-button b { width: 23px; height: 23px; font-size: 10px; }
.mobile-tab-button span { font-size: 9px; }

@media (max-width: 360px) {
  .cultivation-focus-layout { grid-template-columns: 92px minmax(0,1fr); }
  .cultivation-visual { min-height: 150px; }
  .aura-ring { width: 76px; height: 76px; }
  .aura-inner { width: 54px; height: 54px; font-size: 20px; }
  .hud-pill strong { font-size: 13px; }
}

/* Web Alpha 0.6.3 · 手机防溢出 + 桌面宽屏重构 */
html, body { overflow-x: clip; }
#app, .dashboard-reforge, .hero-hud, .panel, .hero-hud-top, .hero-id,
.cultivation-focus-layout, .cultivation-focus-main, .double-panel-grid,
.hud-strip, .rate-breakdown, .attribute-mini-grid, .breakthrough-heading {
  min-width: 0;
  max-width: 100%;
}
img, svg, canvas { max-width: 100%; }
button, .badge, .hero-chip { max-width: 100%; }
.progress-label > *, .attribute-row > *, .rate-breakdown > div > * { min-width: 0; }

/* 手机：严格按视口宽度排版，任何信息不得撑出屏幕 */
@media (max-width: 760px) {
  .topbar, .app-shell, .footer { width: 100%; max-width: 100%; }
  .app-shell { padding-left: 6px; padding-right: 6px; }
  .dashboard-reforge { width: 100%; }
  .hero-hud-top { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .hero-side-actions { min-width: 0; }
  .hero-sync-btn { min-width: 0; white-space: nowrap; }
  .hero-meta-line { flex-wrap: wrap; overflow: visible; }
  .hero-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hud-strip { width: 100%; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hud-pill { min-width: 0; overflow: hidden; }
  .hud-pill strong, .hud-pill small { max-width: 100%; }
  .cultivation-focus-layout { grid-template-columns: 82px minmax(0,1fr); width: 100%; }
  .cultivation-visual { min-width: 0; padding-left: 3px; padding-right: 3px; }
  .aura-ring { width: 70px; height: 70px; }
  .aura-inner { width: 50px; height: 50px; font-size: 20px; }
  .focus-caption { overflow-wrap: anywhere; }
  .focus-stat strong { font-size: clamp(17px, 5.4vw, 21px); white-space: nowrap; }
  .progress-label { gap: 8px; }
  .progress-label strong { text-align: right; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rate-breakdown.mobile-tight { grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .rate-breakdown.mobile-tight > div { overflow: hidden; gap: 5px; }
  .rate-breakdown.mobile-tight span,
  .rate-breakdown.mobile-tight strong { overflow: hidden; text-overflow: ellipsis; }
  .attribute-mini-grid { width: 100%; }
  .breakthrough-heading { grid-template-columns: minmax(0,1fr) auto; }
  .chance-orb { flex-basis: 54px; width: 54px; height: 54px; }
  .mobile-bottom-nav { width: 100%; left: 0; bottom: 0; transform: none; border-left: 0; border-right: 0; border-bottom: 0; }
}

/* 很窄的手机进一步压缩，不隐藏关键数据 */
@media (max-width: 390px) {
  .hero-avatar { width: 38px; height: 38px; }
  .hero-copy h1 { font-size: 17px; }
  .live-badge { font-size: 8px; padding-inline: 4px; }
  .hero-sync-btn { font-size: 9px; padding-inline: 5px; }
  .hud-pill { padding-inline: 3px; }
  .hud-pill strong { font-size: 13px; }
  .cultivation-focus-layout { grid-template-columns: 72px minmax(0,1fr); gap: 6px; }
  .aura-ring { width: 62px; height: 62px; }
  .aura-inner { width: 44px; height: 44px; font-size: 18px; }
}

/* 电脑和平板横屏：专用宽屏仪表盘，不再把手机界面缩成细柱 */
@media (min-width: 761px) {
  body { overflow-x: hidden; }
  .topbar, .app-shell, .footer {
    width: min(1280px, calc(100% - 48px));
    max-width: none;
  }
  .topbar { position: relative; padding: 16px 0 12px; background: transparent; backdrop-filter: none; }
  .brand-seal { width: 42px; height: 42px; font-size: 21px; }
  .brand strong { font-size: 21px; }
  .brand small { display: block; }
  .account-area { font-size: 13px; }
  .account-area > span { max-width: 240px; }
  .account-area .ghost-btn { min-height: 36px; padding: 7px 13px; font-size: 13px; }
  .app-shell { min-height: calc(100vh - 110px); padding: 22px 0 90px; }
  .footer { display: flex; }

  .dashboard-reforge {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
    gap: 18px;
    align-items: start;
    padding-bottom: 30px;
  }
  .dashboard-reforge > .hero-hud { grid-column: 1 / -1; }
  #cultivationSection { grid-column: 1; grid-row: 2; }
  #opportunitySection { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: 1fr; gap: 18px; }
  #talentSection { grid-column: 1; grid-row: 3; }
  #inventorySection { grid-column: 1; grid-row: 4; }
  #historySection { grid-column: 2; grid-row: 4; }

  .hero-hud, .panel { padding: 20px; box-shadow: 0 16px 50px rgba(0,0,0,.24); }
  .hero-hud-top { gap: 20px; }
  .hero-avatar { width: 68px; height: 68px; font-size: 29px; }
  .hero-copy h1 { font-size: 30px; margin: 3px 0 8px; }
  .eyebrow { font-size: 12px; }
  .hero-meta-line { flex-wrap: wrap; overflow: visible; gap: 7px; }
  .hero-chip { min-height: 26px; padding: 0 9px; font-size: 12px; }
  .hero-side-actions { display: flex; align-items: center; gap: 10px; }
  .live-badge { min-height: 32px; padding: 5px 10px; font-size: 12px; }
  .hero-sync-btn { min-width: 92px; min-height: 36px; font-size: 12px; }
  .hud-strip { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
  .hud-pill { min-height: 84px; padding: 14px; text-align: left; }
  .hud-pill span { font-size: 12px; }
  .hud-pill strong { font-size: 23px; }
  .hud-pill small { font-size: 11px; }
  .section-nav { display: flex; margin-top: 14px; gap: 8px; }
  .section-nav a { padding: 7px 13px; font-size: 12px; }

  .panel-title { margin-bottom: 15px; }
  .panel-title h3 { font-size: 21px; }
  .badge { min-height: 27px; padding: 4px 9px; font-size: 12px; }
  .cultivation-focus-layout { grid-template-columns: 220px minmax(0,1fr); gap: 18px; }
  .cultivation-visual { min-height: 330px; padding: 24px 15px; }
  .aura-ring { width: 150px; height: 150px; }
  .aura-inner { width: 104px; height: 104px; font-size: 38px; }
  .focus-caption { max-width: 180px; font-size: 13px; line-height: 1.75; }
  .cultivation-focus-main { gap: 13px; }
  .focus-stat { padding: 18px; }
  .focus-stat span { font-size: 12px; }
  .focus-stat strong { font-size: 35px; }
  .focus-stat small { font-size: 12px; }
  .progress-label { font-size: 12px; }
  .rate-breakdown.mobile-tight { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; }
  .rate-breakdown.mobile-tight > div { padding: 12px 13px; }
  .rate-breakdown.mobile-tight span { font-size: 11px; }
  .rate-breakdown.mobile-tight strong { font-size: 12px; }
  .attribute-mini-grid { gap: 9px; margin-top: 13px; }
  .attribute-mini-grid > div { min-height: 66px; padding: 12px; }
  .attribute-mini-grid span { font-size: 11px; }
  .attribute-mini-grid strong { font-size: 17px; }
  .progression-panel { min-height: 0; }
  .breakthrough-heading { padding: 15px; }
  .breakthrough-heading strong { font-size: 23px; }
  .chance-orb { width: 82px; height: 82px; }
  .mobile-bottom-nav { display: none !important; }
  [data-mobile-screen],
  [data-mobile-screen].mobile-screen-hidden,
  .double-panel-grid [data-mobile-screen].mobile-screen-hidden { display: block !important; }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .topbar, .app-shell, .footer { width: min(900px, calc(100% - 28px)); }
  .dashboard-reforge { grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 12px; }
  .cultivation-focus-layout { grid-template-columns: 170px minmax(0,1fr); }
  .cultivation-visual { min-height: 290px; }
}

/* Web Alpha 0.6.4 · 电脑端采用手机界面等比例放大 */
@media (min-width: 1024px) {
  .topbar,
  .app-shell,
  .footer {
    width: min(760px, calc(100% - 48px));
    max-width: 760px;
  }

  .topbar {
    position: relative;
    padding: 16px 0 12px;
    background: transparent;
    backdrop-filter: none;
  }

  .brand-seal { width: 42px; height: 42px; font-size: 20px; }
  .brand strong { font-size: 19px; letter-spacing: .14em; }
  .brand small { display: block; font-size: 11px; }
  .account-area { font-size: 12px; }
  .account-area > span { max-width: 210px; }
  .account-area .ghost-btn { min-height: 34px; padding: 6px 12px; font-size: 12px; }

  .app-shell {
    min-height: calc(100vh - 105px);
    padding: 16px 0 104px;
  }
  .footer { display: none; }

  .hero-grid,
  .create-layout,
  .character-card,
  .content-grid,
  .progression-grid,
  .double-panel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-grid .hero-copy,
  .auth-panel,
  .create-panel,
  .lore-panel {
    padding: 24px;
  }
  .hero-grid .hero-copy h1 { font-size: 48px; }
  .hero-grid .hero-copy p { font-size: 15px; }
  .world-note strong { font-size: 15px; }

  .dashboard-reforge {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    padding-bottom: 0;
  }
  .dashboard-reforge > *,
  .dashboard-reforge > .hero-hud,
  #cultivationSection,
  #talentSection,
  #inventorySection,
  #opportunitySection,
  #historySection {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  #opportunitySection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel,
  .hero-hud {
    padding: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,.28);
  }
  .hero-hud { position: static; }
  .hero-hud-top { flex-direction: row; align-items: center; gap: 14px; }
  .hero-id { gap: 13px; }
  .hero-avatar { width: 58px; height: 58px; font-size: 25px; }
  .hero-hud .hero-copy { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .hero-hud .hero-copy h1 { margin: 2px 0 6px; font-size: 27px; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hero-meta-line { flex-wrap: wrap; gap: 6px; overflow: visible; }
  .hero-chip { min-height: 25px; padding: 0 8px; font-size: 11px; }
  .hero-side-actions { width: auto; display: grid; gap: 7px; justify-items: end; }
  .live-badge { min-height: 26px; padding: 3px 8px; font-size: 10px; }
  .hero-sync-btn { min-width: 76px; min-height: 33px; padding: 5px 10px; font-size: 11px; }

  .hud-strip { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 13px; }
  .hud-pill { min-height: 76px; padding: 11px 9px; gap: 3px; text-align: center; }
  .hud-pill span { font-size: 11px; }
  .hud-pill strong { font-size: 20px; }
  .hud-pill small { font-size: 10px; }
  .section-nav { display: none; }

  .panel-title { margin-bottom: 12px; }
  .panel-title h3 { font-size: 19px; }
  .badge { min-height: 25px; padding: 3px 8px; font-size: 10px; }

  .cultivation-focus-layout {
    grid-template-columns: 150px minmax(0,1fr);
    gap: 13px;
    align-items: stretch;
  }
  .cultivation-visual { min-height: 235px; padding: 17px 10px; gap: 10px; }
  .aura-ring { width: 124px; height: 124px; }
  .aura-inner { width: 88px; height: 88px; font-size: 32px; }
  .focus-caption { max-width: 130px; font-size: 11px; line-height: 1.65; }
  .cultivation-focus-main { gap: 10px; }
  .focus-stat { padding: 14px; gap: 4px; }
  .focus-stat span { font-size: 11px; }
  .focus-stat strong { font-size: 29px; }
  .focus-stat small { font-size: 11px; }
  .progress-label { font-size: 10px; }
  .progress-track, .progress-track.compact { height: 8px; }
  .offline-inline { padding: 10px 11px; }
  .offline-inline strong { font-size: 14px; }
  .offline-inline span { font-size: 10px; }
  .rate-breakdown.mobile-tight { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .rate-breakdown.mobile-tight > div { padding: 9px 10px; }
  .rate-breakdown.mobile-tight span { font-size: 10px; }
  .rate-breakdown.mobile-tight strong { font-size: 11px; }
  .attribute-mini-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 11px; }
  .attribute-mini-grid > div { min-height: 56px; padding: 9px 7px; text-align: center; }
  .attribute-mini-grid span { font-size: 10px; }
  .attribute-mini-grid strong { font-size: 15px; }

  .foundation-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .path-card { padding: 13px; }
  .path-card span { font-size: 10px; }
  .path-card strong { font-size: 18px; }
  .path-card p { font-size: 11px; }
  .manage-card { padding: 12px; gap: 8px; }
  .manage-card-head span { font-size: 10px; }
  .manage-card-head strong { font-size: 16px; }
  .manage-card-head strong small { font-size: 10px; }
  .manage-card > p { font-size: 11px; }
  .manage-description { font-size: 10px; }
  .manage-actions button { min-height: 36px; padding: 7px 9px; font-size: 11px; }

  .inventory-card { min-height: 92px; padding: 12px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; }
  .inventory-icon { width: 40px; height: 40px; font-size: 17px; }
  .inventory-copy > span { font-size: 10px; }
  .inventory-copy strong { font-size: 15px; }
  .inventory-copy p { font-size: 10px; }
  .inventory-use-btn { min-width: 58px; min-height: 34px; font-size: 11px; }

  .timeline-item { padding: 0 0 15px 22px; }
  .timeline-item time { font-size: 10px; }
  .timeline-item h4 { font-size: 15px; }
  .timeline-item p { font-size: 12px; line-height: 1.65; }

  body .dashboard-reforge [data-mobile-screen].mobile-screen-hidden,
  body .dashboard-reforge .double-panel-grid [data-mobile-screen].mobile-screen-hidden {
    display: none !important;
  }
  body .dashboard-reforge [data-mobile-screen]:not(.mobile-screen-hidden) {
    display: block !important;
  }

  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    width: min(760px, calc(100% - 48px));
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(206,182,126,.24);
    border-bottom: 0;
    background: rgba(18,15,11,.97);
    box-shadow: 0 -10px 35px rgba(0,0,0,.38);
  }
  .mobile-tab-button { min-height: 62px; padding: 5px 0; }
  .mobile-tab-button b { width: 31px; height: 31px; font-size: 13px; }
  .mobile-tab-button span { font-size: 11px; }
}


/* Web Alpha 0.6.5 · 电脑随窗口等比例放大 + 同名持续加成合并 */
:root {
  --desktop-ui-scale: 1;
  --desktop-stage-width: 760px;
}
.page-scale-stage,
.page-scale-content {
  width: 100%;
}

@media (min-width: 1024px) {
  body {
    overflow-x: hidden;
  }
  .page-scale-stage {
    width: var(--desktop-stage-width);
    margin: 0 auto;
  }
  .page-scale-content {
    width: 760px;
    zoom: var(--desktop-ui-scale);
  }
  .page-scale-content .topbar,
  .page-scale-content .app-shell,
  .page-scale-content .footer {
    width: 100%;
    max-width: none;
  }
  .effect-strip article strong {
    display: block;
    overflow-wrap: anywhere;
  }
}

/* V0.7.0 · 仙历、寿元与轮回 */
.hero-copy .eyebrow b { color: var(--gold-bright); font-weight: 500; }
.hero-chip b { color: inherit; font-weight: 500; }
#timeCountdownText { white-space: normal; line-height: 1.35; }
.death-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.death-scroll, .reincarnation-panel { padding: 28px; }
.death-scroll { text-align: center; background: linear-gradient(180deg, rgba(113,37,31,.13), rgba(13,12,10,.46)); }
.death-seal { width: 78px; height: 78px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--red-bright); color: #e1b7a7; font-size: 34px; box-shadow: inset 0 0 28px rgba(139,45,38,.15); }
.death-scroll h1 { margin: 10px 0 12px; color: var(--paper); font-weight: 500; }
.death-scroll > p { margin: 0; color: var(--paper-muted); line-height: 1.85; }
.death-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.death-stats > div { min-height: 78px; padding: 13px; border: 1px solid var(--line); background: rgba(13,12,10,.34); display: grid; align-content: center; gap: 5px; }
.death-stats span { color: var(--paper-muted); font-size: 11px; }
.death-stats strong { color: var(--gold-bright); font-size: 17px; font-weight: 500; }
.time-law-note { margin-top: 16px; padding: 13px; border-left: 2px solid var(--gold); background: rgba(201,167,95,.07); display: grid; gap: 5px; text-align: left; }
.time-law-note strong { color: var(--gold-bright); font-weight: 500; }
.time-law-note span, .reincarnation-intro { color: var(--paper-muted); font-size: 12px; line-height: 1.7; }
.reincarnation-intro { margin: 0 0 16px; }
.legacy-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.legacy-choice { position: relative; cursor: pointer; }
.legacy-choice input { position: absolute; opacity: 0; pointer-events: none; }
.legacy-choice span { min-height: 88px; padding: 12px 8px; border: 1px solid var(--line); background: rgba(13,12,10,.3); display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.legacy-choice b { color: var(--paper); font-size: 13px; font-weight: 500; }
.legacy-choice small { color: var(--paper-muted); font-size: 10px; }
.legacy-choice input:checked + span { border-color: var(--gold); background: rgba(201,167,95,.11); transform: translateY(-1px); }
.legacy-choice input:checked + span b { color: var(--gold-bright); }

@media (max-width: 900px) {
  .death-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .death-scroll, .reincarnation-panel { padding: 17px 12px; }
  .death-seal { width: 58px; height: 58px; font-size: 25px; }
  .death-stats { gap: 6px; }
  .death-stats > div { min-height: 63px; padding: 8px 5px; }
  .death-stats strong { font-size: 13px; }
  .legacy-choice-grid { gap: 5px; }
  .legacy-choice span { min-height: 75px; padding: 8px 4px; }
  .legacy-choice b { font-size: 10px; }
  .legacy-choice small { font-size: 8px; }
}

/* Web Alpha 0.8.0 · 功法体系 V2 */
.technique-v2-root { display: grid; gap: 10px; }
.technique-slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.technique-slot { min-height: 76px; padding: 10px; border: 1px dashed rgba(206,182,126,.23); background: rgba(13,12,10,.24); display: grid; align-content: center; gap: 3px; }
.technique-slot.filled { border-style: solid; border-color: rgba(206,182,126,.48); background: linear-gradient(180deg,rgba(201,167,95,.09),rgba(13,12,10,.32)); }
.technique-slot span, .technique-slot small { color: var(--paper-muted); font-size: 10px; }
.technique-slot strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.technique-rule-note { padding: 10px 12px; border-left: 2px solid rgba(206,182,126,.58); background: rgba(201,167,95,.055); display: grid; gap: 3px; }
.technique-rule-note strong { color: var(--gold-bright); font-size: 12px; font-weight: 500; }
.technique-rule-note span { color: var(--paper-muted); font-size: 10px; line-height: 1.55; }
.technique-grade { display: inline-flex; width: fit-content; padding: 2px 6px; border: 1px solid rgba(206,182,126,.25); }
.technique-grade.grade-yellow { color: #d7bd70; }
.technique-grade.grade-mystic { color: #a8bfd9; }
.technique-grade.grade-earth { color: #c49a73; }
.technique-grade.grade-heaven { color: #cfb2df; }
.technique-grade.grade-immortal { color: #d9e8dd; text-shadow: 0 0 8px rgba(217,232,221,.2); }
.technique-progress-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; color: var(--paper-muted); font-size: 10px; }
.technique-progress { height: 7px; }
.technique-progress-hint { color: var(--paper-muted); font-size: 10px; }
.technique-combination-section { display: grid; gap: 8px; margin-top: 2px; }
.subsection-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid rgba(206,182,126,.16); }
.subsection-title strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; }
.subsection-title span { color: var(--paper-muted); font-size: 10px; }
.technique-combination-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.combination-card { padding: 10px 11px; border: 1px solid var(--line); background: rgba(13,12,10,.28); display: grid; gap: 4px; opacity: .68; }
.combination-card.active { opacity: 1; border-color: rgba(206,182,126,.48); background: linear-gradient(145deg,rgba(201,167,95,.1),rgba(13,12,10,.32)); }
.combination-card > span { color: var(--paper-muted); font-size: 9px; }
.combination-card.active > span { color: var(--gold-bright); }
.combination-card strong { color: var(--paper); font-size: 13px; font-weight: 500; }
.combination-card p { margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.5; }
.combination-card small { color: var(--gold-bright); font-size: 9px; }

@media (max-width: 600px), (min-width: 1024px) {
  .technique-v2-root { gap: 6px; }
  .technique-slot-grid { gap: 5px; }
  .technique-slot { min-height: 57px; padding: 6px; }
  .technique-slot span, .technique-slot small { font-size: 7px; }
  .technique-slot strong { font-size: 10px; }
  .technique-rule-note { padding: 7px 8px; }
  .technique-rule-note strong { font-size: 9px; }
  .technique-rule-note span { font-size: 8px; line-height: 1.4; }
  .technique-progress-copy, .technique-progress-hint { font-size: 8px; }
  .technique-combination-grid { gap: 5px; }
  .combination-card { padding: 7px; }
  .combination-card > span, .combination-card small { font-size: 7px; }
  .combination-card strong { font-size: 10px; }
  .combination-card p { font-size: 8px; line-height: 1.4; }
  .subsection-title strong { font-size: 11px; }
  .subsection-title span { font-size: 8px; }
}

/* Web Alpha 0.9.0 · 洞府经营 */
.cave-system-root { display: grid; gap: 12px; }
.cave-headline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(206,182,126,.24); background: linear-gradient(145deg,rgba(111,155,131,.11),rgba(13,12,10,.34)); }
.cave-headline > div:first-child { display: grid; gap: 4px; }
.cave-headline span { color: var(--paper-muted); font-size: 10px; }
.cave-headline strong { color: var(--gold-bright); font-size: 13px; font-weight: 500; }
.cave-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.cave-resource-card { padding: 11px; border: 1px solid var(--line); background: rgba(13,12,10,.3); display: grid; gap: 5px; }
.cave-resource-card > span { color: var(--paper-muted); font-size: 10px; }
.cave-resource-card > strong { color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.cave-resource-card > strong small { color: var(--paper-muted); font-size: 10px; font-weight: 400; }
.cave-resource-card p { min-height: 31px; margin: 0; color: var(--paper-muted); font-size: 9px; line-height: 1.55; }
.cave-progress { height: 6px; }
.cave-building-grid, .cave-recipe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cave-building-card, .alchemy-recipe-card { padding: 12px; border: 1px solid var(--line); background: rgba(13,12,10,.28); display: grid; gap: 8px; }
.cave-building-card p, .alchemy-recipe-card p { margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.55; }
.cave-building-card > button { justify-self: end; min-width: 86px; }
.cave-cost, .alchemy-recipe-card > small { color: var(--paper-muted); font-size: 9px; line-height: 1.5; }
.alchemy-recipe-card.locked { opacity: .58; }
.alchemy-actions { display: grid; grid-template-columns: minmax(88px,.45fr) minmax(0,1fr); gap: 7px; }
.alchemy-actions select { min-width: 0; border: 1px solid rgba(206,182,126,.28); background: rgba(8,8,7,.42); color: var(--paper); padding: 8px; }
.alchemy-active-card { padding: 14px; border: 1px solid rgba(196,87,72,.35); background: linear-gradient(145deg,rgba(158,61,53,.1),rgba(13,12,10,.34)); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.alchemy-active-card.ready { border-color: rgba(206,182,126,.52); background: linear-gradient(145deg,rgba(201,167,95,.12),rgba(13,12,10,.34)); }
.alchemy-active-card > div { display: grid; gap: 4px; }
.alchemy-active-card span { color: var(--paper-muted); font-size: 10px; }
.alchemy-active-card strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; }
.alchemy-active-card p { margin: 0; color: var(--paper-muted); font-size: 10px; }
.alchemy-active-card p b { color: var(--paper); font-weight: 500; }

@media (max-width: 600px), (min-width: 1024px) {
  .cave-system-root { gap: 7px; }
  .cave-headline { padding: 8px; }
  .cave-headline span { font-size: 8px; }
  .cave-headline strong { font-size: 10px; }
  .cave-resource-grid { gap: 5px; }
  .cave-resource-card { padding: 7px; gap: 3px; }
  .cave-resource-card > span { font-size: 8px; }
  .cave-resource-card > strong { font-size: 13px; }
  .cave-resource-card > strong small { font-size: 7px; }
  .cave-resource-card p { min-height: 0; font-size: 7px; line-height: 1.4; }
  .cave-building-grid, .cave-recipe-grid { gap: 5px; }
  .cave-building-card, .alchemy-recipe-card { padding: 7px; gap: 5px; }
  .cave-building-card p, .alchemy-recipe-card p { font-size: 8px; }
  .cave-cost, .alchemy-recipe-card > small { font-size: 7px; }
  .alchemy-actions { grid-template-columns: 72px minmax(0,1fr); gap: 4px; }
  .alchemy-actions select { padding: 5px; font-size: 8px; }
  .alchemy-active-card { padding: 8px; }
  .alchemy-active-card span, .alchemy-active-card p { font-size: 8px; }
  .alchemy-active-card strong { font-size: 10px; }
}

@media (max-width: 430px) {
  .cave-resource-grid, .cave-building-grid, .cave-recipe-grid { grid-template-columns: 1fr; }
  .cave-headline, .alchemy-active-card { align-items: stretch; flex-direction: column; }
  .cave-headline .resource-inline, .alchemy-active-card button { width: 100%; }
}

/* Web Alpha 0.9.1 · 天命榜 */
.destiny-ranking-root { display: grid; gap: 11px; }
.ranking-board-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(206,182,126,.30); background: rgba(13,12,10,.32); }
.ranking-board-tab { min-width: 0; min-height: 58px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 8px 5px; border: 0; border-right: 1px solid rgba(206,182,126,.18); background: transparent; color: var(--paper-muted); font: inherit; cursor: pointer; }
.ranking-board-tab:last-child { border-right: 0; }
.ranking-board-tab strong { color: inherit; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.ranking-board-tab small { color: var(--paper-muted); font-size: 8px; }
.ranking-board-tab:hover { color: var(--gold-bright); background: rgba(201,167,95,.06); }
.ranking-board-tab.active { color: var(--gold-bright); background: linear-gradient(180deg,rgba(201,167,95,.15),rgba(201,167,95,.05)); box-shadow: inset 0 -2px 0 var(--gold); }
.ranking-board-tab.pending:not(.active) { opacity: .72; }
.ranking-unopened { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px 18px; border: 1px dashed rgba(206,182,126,.28); background: radial-gradient(circle at 50% 40%,rgba(201,167,95,.09),transparent 42%),rgba(13,12,10,.24); text-align: center; }
.ranking-unopened-seal { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.45); border-radius: 50%; color: var(--gold-bright); font-family: var(--font-serif); font-size: 24px; background: rgba(201,167,95,.07); }
.ranking-unopened strong { color: var(--gold-bright); font-size: 17px; font-weight: 500; }
.ranking-unopened p { max-width: 420px; margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.7; }
.destiny-ranking-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid rgba(206,182,126,.22); background: linear-gradient(145deg,rgba(86,73,122,.12),rgba(13,12,10,.34)); }
.destiny-ranking-head > div { min-width: 0; display: grid; gap: 3px; }
.destiny-ranking-head span, .destiny-ranking-head small { color: var(--paper-muted); font-size: 10px; }
.destiny-ranking-head strong { color: var(--gold-bright); font-size: 15px; font-weight: 500; }
.destiny-champion { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(206,182,126,.48); background: radial-gradient(circle at 12% 50%,rgba(201,167,95,.18),transparent 32%),linear-gradient(145deg,rgba(201,167,95,.1),rgba(13,12,10,.36)); }
.destiny-champion.self { box-shadow: inset 0 0 0 1px rgba(126,190,162,.26); }
.destiny-champion-seal { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-family: var(--font-serif); font-size: 22px; background: rgba(201,167,95,.08); box-shadow: 0 0 20px rgba(201,167,95,.12); }
.destiny-champion > div:last-child { min-width: 0; display: grid; gap: 3px; }
.destiny-champion span { color: var(--gold); font-size: 10px; }
.destiny-champion strong { color: var(--paper); font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.destiny-champion p { margin: 0; color: var(--paper-muted); font-size: 11px; line-height: 1.55; }
.destiny-ranking-list { display: grid; gap: 6px; }
.destiny-ranking-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(13,12,10,.28); }
.destiny-ranking-row.self { border-color: rgba(126,190,162,.52); background: linear-gradient(145deg,rgba(92,150,124,.11),rgba(13,12,10,.3)); }
.destiny-rank-medal { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(206,182,126,.24); border-radius: 50%; color: var(--paper-muted); font-size: 11px; }
.destiny-ranking-row.rank-1 .destiny-rank-medal { color: #f1d98a; border-color: #c9a75f; background: rgba(201,167,95,.12); }
.destiny-ranking-row.rank-2 .destiny-rank-medal { color: #d2d7dd; border-color: rgba(210,215,221,.55); background: rgba(180,190,204,.08); }
.destiny-ranking-row.rank-3 .destiny-rank-medal { color: #d1a17a; border-color: rgba(209,161,122,.55); background: rgba(183,124,84,.08); }
.destiny-rank-main { min-width: 0; display: grid; gap: 4px; }
.destiny-rank-main > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.destiny-rank-main strong { color: var(--paper); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.destiny-rank-main p { margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.5; }
.self-mark { flex: 0 0 auto; padding: 2px 5px; border: 1px solid rgba(126,190,162,.45); color: #a8d8c1; font-size: 8px; }
.destiny-rank-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.destiny-rank-side span { color: var(--paper-muted); font-size: 9px; }
.destiny-rank-side strong { color: var(--gold-bright); font-size: 10px; font-weight: 500; white-space: nowrap; }
.destiny-ranking-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 3px; }
.destiny-ranking-footer span, .destiny-ranking-footer small { color: var(--paper-muted); font-size: 10px; }
.ranking-notice { padding: 16px; border: 1px dashed rgba(206,182,126,.28); background: rgba(13,12,10,.24); display: grid; gap: 8px; justify-items: start; }
.ranking-notice strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; }
.ranking-notice p { margin: 0; color: var(--paper-muted); font-size: 11px; line-height: 1.6; }

/* 六项底部导航 */
.mobile-bottom-nav { grid-template-columns: repeat(6, minmax(0,1fr)); }

@media (max-width: 600px), (min-width: 1024px) {
  .destiny-ranking-root { gap: 7px; }
  .ranking-board-tab { min-height: 50px; padding: 6px 3px; }
  .ranking-board-tab strong { font-size: 12px; }
  .ranking-board-tab small { font-size: 7px; }
  .ranking-unopened { min-height: 190px; padding: 22px 12px; }
  .destiny-ranking-head { padding: 8px; }
  .destiny-ranking-head span, .destiny-ranking-head small { font-size: 8px; }
  .destiny-ranking-head strong { font-size: 11px; }
  .destiny-champion { grid-template-columns: 42px minmax(0,1fr); gap: 8px; padding: 9px; }
  .destiny-champion-seal { width: 38px; height: 38px; font-size: 17px; }
  .destiny-champion span { font-size: 8px; }
  .destiny-champion strong { font-size: 14px; }
  .destiny-champion p { font-size: 8px; }
  .destiny-ranking-list { gap: 4px; }
  .destiny-ranking-row { grid-template-columns: 30px minmax(0,1fr) auto; min-height: 55px; gap: 7px; padding: 7px; }
  .destiny-rank-medal { width: 27px; height: 27px; font-size: 9px; }
  .destiny-rank-main strong { font-size: 10px; }
  .destiny-rank-main p { font-size: 8px; }
  .destiny-rank-side span { font-size: 7px; }
  .destiny-rank-side strong { font-size: 8px; }
  .destiny-ranking-footer span, .destiny-ranking-footer small { font-size: 8px; }
  .mobile-bottom-nav { grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
}

@media (max-width: 430px) {
  .destiny-ranking-row { grid-template-columns: 28px minmax(0,1fr); }
  .destiny-rank-side { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; justify-items: stretch; width: 100%; text-align: left; }
  .mobile-tab-button { min-width: 0; }
  .mobile-tab-button b { width: 21px; height: 21px; font-size: 9px; }
  .mobile-tab-button span { font-size: 8px; }
}

/* V0.10.0 NPC关系与红尘录 */
.npc-social-root { display: grid; gap: 11px; }
.npc-social-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid rgba(206,182,126,.22); background: linear-gradient(145deg,rgba(120,66,72,.12),rgba(13,12,10,.34)); }
.npc-social-head > div { display: grid; gap: 3px; min-width: 0; }
.npc-social-head strong { color: var(--gold-bright); font-size: 15px; font-weight: 500; }
.npc-social-head small { color: var(--paper-muted); font-size: 10px; }
.npc-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.npc-contact-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); background: rgba(13,12,10,.3); }
.npc-contact-card.relation-master { border-color: rgba(107,144,202,.52); background: linear-gradient(145deg,rgba(74,103,154,.12),rgba(13,12,10,.32)); }
.npc-contact-card.relation-partner { border-color: rgba(201,112,135,.55); background: linear-gradient(145deg,rgba(156,69,96,.12),rgba(13,12,10,.32)); }
.npc-contact-card.relation-sworn_friend { border-color: rgba(126,190,162,.48); background: linear-gradient(145deg,rgba(80,135,111,.1),rgba(13,12,10,.32)); }
.npc-contact-card.relation-enemy { border-color: rgba(180,78,64,.55); background: linear-gradient(145deg,rgba(133,48,38,.13),rgba(13,12,10,.34)); }
.npc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.npc-card-head > div { display: grid; gap: 2px; min-width: 0; }
.npc-card-head span { color: var(--paper-muted); font-size: 9px; }
.npc-card-head strong { color: var(--paper); font-size: 17px; font-weight: 500; }
.npc-card-head em { flex: 0 0 auto; padding: 3px 7px; border: 1px solid rgba(206,182,126,.28); color: var(--gold-bright); font-size: 9px; font-style: normal; }
.npc-contact-card p { margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.65; }
.npc-contact-card .npc-realm-line { color: var(--paper); }
.npc-score-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.npc-score-grid div { display: grid; gap: 2px; padding: 6px; border: 1px solid rgba(206,182,126,.13); text-align: center; }
.npc-score-grid span { color: var(--paper-muted); font-size: 8px; }
.npc-score-grid strong { color: var(--gold-bright); font-size: 12px; font-weight: 500; }
.npc-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.npc-action-grid button, .npc-bond-actions button { min-height: 34px; padding: 5px 7px; border: 1px solid rgba(206,182,126,.24); background: rgba(206,182,126,.06); color: var(--paper); font: inherit; font-size: 9px; cursor: pointer; }
.npc-action-grid button:hover, .npc-bond-actions button:hover { border-color: rgba(206,182,126,.5); color: var(--gold-bright); }
.npc-action-grid button:disabled { cursor: not-allowed; opacity: .42; }
.npc-bond-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.npc-bond-actions:empty { display: none; }
.npc-bond-actions button { color: var(--gold-bright); }
.npc-cooldown { color: var(--paper-muted); font-size: 9px; }
.npc-event-list { display: grid; gap: 6px; }
.npc-event-list article { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 9px; padding: 9px 10px; border-left: 2px solid rgba(206,182,126,.35); background: rgba(13,12,10,.24); }
.npc-event-list time { grid-row: 1 / span 2; color: var(--paper-muted); font-size: 8px; }
.npc-event-list strong { color: var(--paper); font-size: 11px; font-weight: 500; }
.npc-event-list p { grid-column: 2; margin: 0; color: var(--paper-muted); font-size: 9px; line-height: 1.5; }
.mobile-bottom-nav { grid-template-columns: repeat(7,minmax(0,1fr)); }

@media (max-width: 760px) {
  .npc-social-root { gap: 7px; }
  .npc-social-head { padding: 8px; }
  .npc-social-head strong { font-size: 11px; }
  .npc-social-head small { font-size: 8px; }
  .npc-contact-grid { grid-template-columns: 1fr; gap: 5px; }
  .npc-contact-card { gap: 6px; padding: 8px; }
  .npc-card-head strong { font-size: 14px; }
  .npc-contact-card p { font-size: 9px; }
  .npc-action-grid button, .npc-bond-actions button { min-height: 31px; font-size: 8px; }
  .mobile-bottom-nav { grid-template-columns: repeat(7,minmax(0,1fr)) !important; gap: 1px; }
  .mobile-tab-button { min-width: 0; padding-left: 1px; padding-right: 1px; }
  .mobile-tab-button span { font-size: 7px; }
}

/* V0.11.0 宗门体系 */
.sect-system-root { display: grid; gap: 11px; }
.sect-system-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(206,182,126,.25); background: linear-gradient(145deg,rgba(73,105,89,.13),rgba(13,12,10,.34)); }
.sect-system-head > div { min-width: 0; display: grid; gap: 3px; }
.sect-system-head span, .sect-system-head small { color: var(--paper-muted); font-size: 10px; }
.sect-system-head strong { color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.sect-system-head.position-master { border-color: rgba(201,167,95,.56); background: radial-gradient(circle at 10% 50%,rgba(201,167,95,.15),transparent 35%),rgba(13,12,10,.34); }
.sect-system-head.position-elder, .sect-system-head.position-true { border-color: rgba(107,144,202,.46); }
.sect-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sect-choice-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); background: rgba(13,12,10,.3); }
.sect-choice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sect-choice-head > div { display: grid; gap: 2px; }
.sect-choice-head span, .sect-choice-card small { color: var(--paper-muted); font-size: 9px; }
.sect-choice-head strong { color: var(--paper); font-size: 17px; font-weight: 500; }
.sect-choice-head em { padding: 3px 6px; border: 1px solid rgba(206,182,126,.24); color: var(--gold-bright); font-size: 8px; font-style: normal; }
.sect-choice-card p { margin: 0; color: var(--paper-muted); font-size: 10px; line-height: 1.6; }
.sect-choice-card .sect-motto { color: var(--gold); }
.sect-choice-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--paper-muted); font-size: 9px; }
.sect-create-card { display: grid; gap: 10px; padding: 13px; border: 1px solid rgba(206,182,126,.28); background: linear-gradient(145deg,rgba(117,80,45,.1),rgba(13,12,10,.32)); }
.sect-create-card > div:first-child { display: grid; gap: 3px; }
.sect-create-card strong { color: var(--gold-bright); font-size: 15px; font-weight: 500; }
.sect-create-card small { color: var(--paper-muted); font-size: 9px; }
.sect-create-fields { display: grid; grid-template-columns: 1fr 1.5fr .65fr; gap: 7px; }
.sect-create-fields label { display: grid; gap: 4px; }
.sect-create-fields span { color: var(--paper-muted); font-size: 9px; }
.sect-create-fields input, .sect-create-fields select { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid rgba(206,182,126,.22); background: rgba(8,7,6,.55); color: var(--paper); font: inherit; font-size: 10px; }
.sect-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.sect-summary-grid > div { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); background: rgba(13,12,10,.26); }
.sect-summary-grid span, .sect-summary-grid small { color: var(--paper-muted); font-size: 8px; }
.sect-summary-grid strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; }
.sect-summary-grid button { margin-top: 3px; min-height: 30px; border: 1px solid rgba(206,182,126,.24); background: rgba(206,182,126,.06); color: var(--paper); font: inherit; font-size: 8px; cursor: pointer; }
.sect-summary-grid button:disabled { opacity: .45; cursor: not-allowed; }
.sect-doctrine-card { padding: 10px 12px; border-left: 2px solid rgba(206,182,126,.45); background: rgba(13,12,10,.24); }
.sect-doctrine-card strong { color: var(--paper); font-size: 11px; font-weight: 500; }
.sect-doctrine-card p { margin: 4px 0; color: var(--paper-muted); font-size: 10px; line-height: 1.55; }
.sect-doctrine-card small { color: var(--paper-muted); font-size: 8px; }
.sect-task-grid, .sect-building-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.sect-task-card, .sect-building-card { display: grid; gap: 7px; padding: 11px; border: 1px solid var(--line); background: rgba(13,12,10,.28); }
.sect-task-card.completed { opacity: .72; }
.sect-task-card > div, .sect-building-card > div { display: grid; gap: 2px; }
.sect-task-card span, .sect-building-card span { color: var(--paper-muted); font-size: 8px; }
.sect-task-card strong, .sect-building-card strong { color: var(--paper); font-size: 13px; font-weight: 500; }
.sect-task-card p, .sect-building-card p { margin: 0; color: var(--paper-muted); font-size: 9px; line-height: 1.55; }
.sect-task-card small, .sect-building-card small { color: var(--gold); font-size: 8px; line-height: 1.45; }
.sect-task-card button, .sect-building-card button { justify-self: end; min-height: 32px; padding: 5px 9px; border: 1px solid rgba(206,182,126,.24); background: rgba(206,182,126,.06); color: var(--paper); font: inherit; font-size: 8px; cursor: pointer; }
.sect-task-card button:disabled, .sect-building-card button:disabled { opacity: .4; cursor: not-allowed; }
.sect-event-list { display: grid; gap: 6px; }
.sect-event-list article { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 9px; padding: 9px 10px; border-left: 2px solid rgba(126,190,162,.38); background: rgba(13,12,10,.24); }
.sect-event-list time { grid-row: 1 / span 2; color: var(--paper-muted); font-size: 8px; }
.sect-event-list strong { color: var(--paper); font-size: 11px; font-weight: 500; }
.sect-event-list p { grid-column: 2; margin: 0; color: var(--paper-muted); font-size: 9px; line-height: 1.5; }
.mobile-bottom-nav { grid-template-columns: repeat(8,minmax(0,1fr)); }

@media (max-width: 760px) {
  .sect-system-root { gap: 7px; }
  .sect-system-head { padding: 8px; }
  .sect-system-head strong { font-size: 14px; }
  .sect-system-head span, .sect-system-head small { font-size: 8px; }
  .sect-choice-grid, .sect-task-grid, .sect-building-grid { grid-template-columns: 1fr; gap: 5px; }
  .sect-choice-card, .sect-task-card, .sect-building-card { padding: 8px; gap: 6px; }
  .sect-create-fields { grid-template-columns: 1fr; }
  .sect-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .sect-summary-grid > div { padding: 7px; }
  .mobile-bottom-nav { grid-template-columns: repeat(8,minmax(0,1fr)) !important; gap: 0; }
  .mobile-tab-button { padding-left: 0; padding-right: 0; }
  .mobile-tab-button b { font-size: 12px; }
  .mobile-tab-button span { font-size: 6px; }
}


/* V0.11.2 · 机缘入口并入修炼页 */
.cultivation-visual.opportunity-entry {
  position: relative;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cultivation-visual.opportunity-entry:hover,
.cultivation-visual.opportunity-entry:focus-visible {
  border-color: rgba(218,185,102,.72);
  background: radial-gradient(circle at center, rgba(201,167,95,.18), rgba(13,12,10,.27) 60%, rgba(13,12,10,.38));
  box-shadow: 0 0 0 2px rgba(201,167,95,.08), 0 12px 34px rgba(0,0,0,.2);
  outline: none;
}
.cultivation-visual.opportunity-entry:active { transform: translateY(1px); }
.cultivation-visual.opportunity-entry.has-opportunity {
  border-color: rgba(218,185,102,.82);
  background: radial-gradient(circle at center, rgba(218,185,102,.22), rgba(94,56,24,.18) 58%, rgba(13,12,10,.4));
  box-shadow: inset 0 0 32px rgba(218,185,102,.09), 0 0 22px rgba(218,185,102,.08);
}
.opportunity-entry.has-opportunity .aura-ring { animation: opportunityEntryPulse 1.8s ease-in-out infinite; }
@keyframes opportunityEntryPulse {
  0%,100% { filter: brightness(.92); transform: scale(.98); }
  50% { filter: brightness(1.18); transform: scale(1.02); }
}
.opportunity-auto-mark {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 14px);
  padding: 3px 7px;
  border: 1px solid rgba(206,182,126,.24);
  color: var(--paper-muted);
  background: rgba(10,8,6,.52);
  font-size: 9px;
  white-space: nowrap;
}
.opportunity-auto-mark.ready { color: var(--gold-bright); border-color: rgba(218,185,102,.56); }
.opportunity-entry-copy { display: grid; gap: 4px; width: 100%; }
.opportunity-entry-copy strong { color: var(--paper); font-size: 13px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.opportunity-entry-copy span { color: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.opportunity-entry-copy small { color: var(--paper-muted); font-size: 9px; }
.breakthrough-only-grid { grid-template-columns: 1fr; }
.opportunity-modal { position: relative; width: min(680px, 100%); max-height: min(86vh, 760px); overflow: auto; text-align: left; }
.opportunity-modal .panel-title { padding-right: 38px; }
.modal-close-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(206,182,126,.28);
  background: rgba(13,12,10,.62);
  color: var(--paper-muted);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close-button:hover { color: var(--gold-bright); border-color: rgba(206,182,126,.58); }
.mobile-bottom-nav { grid-template-columns: repeat(7,minmax(0,1fr)); }

@media (max-width: 760px) {
  .opportunity-auto-mark { top: 5px; padding: 2px 4px; font-size: 6px; }
  .opportunity-entry-copy { gap: 2px; }
  .opportunity-entry-copy strong { font-size: 8px; line-height: 1.3; }
  .opportunity-entry-copy span { font-size: 8px; }
  .opportunity-entry-copy small { font-size: 6px; }
  .opportunity-modal-backdrop { padding: 9px; align-items: end; }
  .opportunity-modal { width: 100%; max-height: 88vh; padding: 18px 14px 20px; }
  .opportunity-modal .opportunity-waiting { min-height: 230px; }
  .mobile-bottom-nav { grid-template-columns: repeat(7,minmax(0,1fr)) !important; }
}

/* V0.11.2 自动机缘V3：机轮始终推演 */
.opportunity-entry .aura-ring{animation:none}.opportunity-entry .aura-ring::before{animation:spin 12s linear infinite}.opportunity-entry .aura-inner{animation:none}.result-box.danger{border-color:rgba(192,72,72,.45)}


/* V0.11.3 · 恢复境界突破实时进度显示函数，无视觉规则变更 */


/* V0.11.5 · 机缘轮视觉修正与结果摘要模式 */
.opportunity-wheel { position: relative; width: 164px; height: 164px; display: grid; place-items: center; }
.opportunity-wheel-outer { position: absolute; inset: 0; border: 1px solid rgba(206,182,126,.38); border-radius: 50%; box-shadow: 0 0 0 12px rgba(201,167,95,.04), inset 0 0 42px rgba(201,167,95,.08); animation: opportunityOuterSpin 12s linear infinite; }
.opportunity-wheel-inner { position: absolute; inset: 22px; border: 1px solid rgba(206,182,126,.26); border-radius: 50%; box-shadow: inset 0 0 20px rgba(201,167,95,.06); }
.opportunity-wheel-core { position: absolute; inset: 44px; border-radius: 50%; border: 1px solid rgba(206,182,126,.3); display: grid; place-items: center; color: var(--gold-bright); font-size: 40px; background: rgba(13,12,10,.46); }
.opportunity-wheel-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px rgba(218,185,102,.55); }
.opportunity-wheel-dot.dot-1 { left: 50%; top: -4px; transform: translateX(-50%); }
.opportunity-wheel-dot.dot-2 { right: 8px; bottom: 24px; }
.opportunity-wheel-dot.dot-3 { left: 10px; bottom: 20px; }
@keyframes opportunityOuterSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.opportunity-entry-copy small { line-height: 1.5; }
.opportunity-summary-panel { min-height: 320px; }
.opportunity-result-summary { width: min(100%, 560px); padding: 16px; border: 1px solid rgba(206,182,126,.24); background: rgba(13,12,10,.34); display: grid; gap: 12px; text-align: left; }
.opportunity-result-summary h4 { margin: 0; color: var(--gold-bright); font-size: 24px; font-weight: 500; }
.opportunity-result-summary p { margin: 0; color: var(--paper); line-height: 1.8; }
.result-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-summary-grid > div { padding: 10px 12px; border: 1px solid rgba(206,182,126,.18); background: rgba(255,255,255,.02); display: grid; gap: 4px; }
.result-summary-grid span { color: var(--paper-muted); font-size: 12px; }
.result-summary-grid strong { color: var(--gold-bright); font-size: 14px; font-weight: 500; line-height: 1.6; }
.inline-countdown { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .opportunity-wheel { width: 88px; height: 88px; }
  .opportunity-wheel-outer { box-shadow: 0 0 0 5px rgba(201,167,95,.04), inset 0 0 24px rgba(201,167,95,.08); }
  .opportunity-wheel-inner { inset: 12px; }
  .opportunity-wheel-core { inset: 22px; font-size: 23px; }
  .opportunity-wheel-dot { width: 5px; height: 5px; }
  .opportunity-wheel-dot.dot-2 { right: 4px; bottom: 12px; }
  .opportunity-wheel-dot.dot-3 { left: 4px; bottom: 12px; }
  .opportunity-result-summary { padding: 10px; gap: 8px; }
  .opportunity-result-summary h4 { font-size: 17px; }
  .opportunity-result-summary p { font-size: 10px; line-height: 1.6; }
  .result-summary-grid { gap: 6px; }
  .result-summary-grid > div { padding: 7px 8px; }
  .result-summary-grid span { font-size: 8px; }
  .result-summary-grid strong { font-size: 10px; }
}

/* V0.11.5 · 机缘轮溢出修正 + 专属功法界面 */
.cultivation-visual.opportunity-entry { overflow: hidden; }
.opportunity-entry { justify-items: center; }
.opportunity-wheel { max-width: 100%; overflow: hidden; }
.opportunity-wheel-outer { box-sizing: border-box; }
.exclusive-technique-root { display: grid; gap: 16px; margin-bottom: 18px; }
.exclusive-overview-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid rgba(206,182,126,.22); background: rgba(255,255,255,.02); }
.exclusive-overview-card > div { display: grid; gap: 4px; }
.exclusive-overview-card span { color: var(--paper-muted); font-size: 13px; }
.exclusive-overview-card strong { color: var(--gold-bright); font-size: 20px; font-weight: 500; }
.exclusive-overview-card small { color: var(--paper); line-height: 1.6; }
.exclusive-technique-card .technique-grade { letter-spacing: .08em; }
.exclusive-technique-list .manage-card-head .badge { border-color: rgba(206,182,126,.25); }
@media (max-width: 760px) {
  .opportunity-entry { padding-inline: 8px; }
  .cultivation-visual.opportunity-entry { min-width: 0; }
  .opportunity-wheel { width: 72px; height: 72px; }
  .opportunity-wheel-outer { box-shadow: 0 0 0 4px rgba(201,167,95,.04), inset 0 0 16px rgba(201,167,95,.06); }
  .opportunity-wheel-inner { inset: 10px; }
  .opportunity-wheel-core { inset: 20px; font-size: 21px; }
  .opportunity-wheel-dot { width: 4px; height: 4px; }
  .opportunity-wheel-dot.dot-2 { right: 4px; bottom: 10px; }
  .opportunity-wheel-dot.dot-3 { left: 4px; bottom: 10px; }
  .exclusive-technique-root { gap: 10px; margin-bottom: 12px; }
  .exclusive-overview-card { padding: 10px; gap: 10px; align-items: flex-start; flex-direction: column; }
  .exclusive-overview-card strong { font-size: 16px; }
}

/* V0.11.5 FINAL · 超窄手机列宽安全尺寸 */
@media (max-width: 760px) {
  .opportunity-entry { box-sizing: border-box; padding-left: 7px; padding-right: 7px; }
  .opportunity-wheel { width: min(56px, 100%); height: min(56px, calc(100vw - 28px)); flex: 0 0 auto; }
  .opportunity-wheel-inner { inset: 8px; }
  .opportunity-wheel-core { inset: 16px; font-size: 18px; }
  .opportunity-wheel-dot { width: 4px; height: 4px; }
  .opportunity-wheel-dot.dot-2 { right: 3px; bottom: 8px; }
  .opportunity-wheel-dot.dot-3 { left: 3px; bottom: 8px; }
  .opportunity-entry-copy { min-width: 0; width: 100%; overflow: hidden; }
  .opportunity-entry-copy strong,
  .opportunity-entry-copy span,
  .opportunity-entry-copy small { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
}

/* V0.11.6 · 机缘正负互斥与概率展示 */
.opportunity-probability-line {
  width: min(100%, 560px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(206,182,126,.18);
  background: rgba(255,255,255,.02);
  color: var(--paper);
}
.opportunity-probability-line span { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.opportunity-probability-line small { width: 100%; color: var(--paper-muted); text-align: center; }
.polarity-grid .polarity-outcome { grid-column: 1 / -1; }
.opportunity-result-summary.auspicious-result { border-color: rgba(201,167,95,.34); }
.opportunity-result-summary.risk-result { border-color: rgba(192,72,72,.36); }
.opportunity-result-summary.risk-result .polarity-outcome strong { color: #e7a9a9; }
@media (max-width:760px) {
  .opportunity-probability-line { padding: 7px 8px; gap: 4px 10px; font-size: 10px; }
  .opportunity-probability-line small { font-size: 8px; }
}

/* V0.11.9 天道动态均衡：入口保持原修炼明细格UI，仅替换文字并增加点击弹窗 */
.rate-breakdown > .heaven-balance-entry {
  appearance: none;
  width: auto;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--panel-2);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.rate-breakdown > .heaven-balance-entry .heaven-balance-entry-text {
  min-width: 0;
  width: 100%;
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.rate-breakdown > .heaven-balance-entry:focus-visible {
  outline: 1px solid rgba(206,182,126,.55);
  outline-offset: -1px;
}

.heaven-balance-modal-backdrop { padding: 12px; }
.heaven-balance-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  text-align: left;
}
.heaven-balance-dialog { position: relative; }
.heaven-balance-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(206,182,126,.55);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: serif;
  font-size: 25px;
  background: rgba(201,167,95,.08);
  box-shadow: 0 0 24px rgba(201,167,95,.12);
}
.heaven-balance-dialog h2 { margin: 5px 38px 5px 0; }
.heaven-balance-reason {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 500;
}
.heaven-balance-lore {
  padding: 15px 16px;
  border-left: 2px solid rgba(201,167,95,.48);
  background: rgba(201,167,95,.045);
}
.heaven-balance-lore p { margin: 0 0 8px; color: var(--paper); line-height: 1.8; }
.heaven-balance-lore p:last-child { margin-bottom: 0; }
.heaven-balance-current {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
}
.heaven-balance-current > span { color: var(--paper-muted); font-size: 12px; }
.heaven-balance-current > strong { grid-row: span 2; font-size: 30px; color: var(--gold-bright); }
.heaven-balance-current > small { color: var(--paper-muted); line-height: 1.5; }
.heaven-balance-meta,
.heaven-balance-rule-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}
.heaven-balance-meta > div,
.heaven-balance-rule-table > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--panel-2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.heaven-balance-meta span,
.heaven-balance-rule-table span { color: var(--paper-muted); font-size: 11px; }
.heaven-balance-meta strong,
.heaven-balance-rule-table strong { color: var(--paper); font-size: 12px; text-align: right; }
.heaven-balance-rule-table { grid-template-columns: repeat(3, minmax(0,1fr)); }
.heaven-balance-note { margin: 14px 0 0; color: var(--paper-muted); font-size: 11px; line-height: 1.65; }
.heaven-balance-dialog.state-heaven_obstruction .heaven-balance-seal,
.heaven-balance-dialog.state-heaven_obstruction .heaven-balance-current > strong { color: #d8a5ae; }
.heaven-balance-dialog.state-dao_balance .heaven-balance-seal,
.heaven-balance-dialog.state-dao_balance .heaven-balance-current > strong { color: #bdd3cb; }

@media (max-width: 760px) {
  .rate-breakdown.mobile-tight > .heaven-balance-entry { padding: 6px 7px; gap: 5px; }
  .rate-breakdown.mobile-tight > .heaven-balance-entry .heaven-balance-entry-text { font-size: 8px; letter-spacing: 0; }
  .heaven-balance-modal-backdrop { align-items: end; padding: 8px; }
  .heaven-balance-modal { width: 100%; max-height: 91vh; padding: 18px 14px 22px; }
  .heaven-balance-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .heaven-balance-rule-table { grid-template-columns: 1fr; }
  .heaven-balance-current > strong { font-size: 26px; }
}

/* V0.11.10：渡劫状态显示在角色名字旁，不改变主布局。 */
.hero-copy h1 .hero-name-status {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink-soft);
  font-size: 0.42em;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.hero-copy h1 .status-severe_injury { color: #a23b32; }
.hero-copy h1 .status-light_injury { color: #a66d22; }
.hero-copy h1 .status-quick_escape,
.hero-copy h1 .status-lucky_escape { color: var(--accent); }

@media (max-width: 560px) {
  .hero-copy h1 .hero-name-status {
    margin-left: 5px;
    padding: 1px 6px;
    font-size: 0.46em;
  }
}

/* V0.11.10 FIX3 · 底部导航每页六项，超出项目左右滑动分页 */
.mobile-bottom-nav { grid-template-columns: none !important; overflow: hidden; }
.mobile-bottom-nav-viewport {
  width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: auto; overscroll-behavior-x: contain;
  touch-action: pan-x; scrollbar-width: none;
}
.mobile-bottom-nav-viewport::-webkit-scrollbar { display: none; }
.mobile-bottom-nav-track {
  display: flex;
  width: calc(var(--nav-page-count, 1) * 100%);
  min-width: calc(var(--nav-page-count, 1) * 100%);
}
.mobile-bottom-nav-page {
  flex: 0 0 calc(100% / var(--nav-page-count, 1));
  min-width: calc(100% / var(--nav-page-count, 1));
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.mobile-bottom-nav-page .mobile-tab-button { min-width: 0; }
.mobile-bottom-nav-pager {
  position: absolute; left: 50%; top: 3px; z-index: 2; display: flex; gap: 4px;
  transform: translateX(-50%); pointer-events: none;
}
.mobile-bottom-nav-pager i {
  width: 4px; height: 4px; border-radius: 50%; background: rgba(206,182,126,.28);
  transition: width .18s ease, background .18s ease;
}
.mobile-bottom-nav-pager i.active { width: 11px; border-radius: 999px; background: var(--gold); }
@media (max-width: 760px), (min-width: 1024px) { .mobile-bottom-nav { padding-top: 9px; } }

/* CACHE132 · PC 底部导航支持鼠标按住横拖与滚轮分页 */
@media (min-width: 1024px) {
  .mobile-bottom-nav-viewport {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .mobile-bottom-nav-viewport.is-mouse-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .mobile-bottom-nav-viewport.is-mouse-dragging .mobile-tab-button {
    pointer-events: none;
  }
}


.market-lore{padding:14px 16px;margin:14px 0;border-left:3px solid var(--gold,#b69052);background:rgba(166,125,65,.08)}.market-form{display:grid;gap:10px}.market-form label{display:grid;gap:5px;font-size:.9rem}.market-form input,.market-form select{width:100%;padding:10px 12px;border:1px solid rgba(120,100,70,.28);border-radius:10px;background:var(--panel-bg,#fff);color:inherit}.market-summary{margin-bottom:12px}

/* V0.12.0 FIX1 市坊控件 */
.path-card label{display:grid;gap:5px;margin-top:8px;font-size:.88rem}.path-card select{width:100%;padding:9px 10px;border:1px solid rgba(120,100,70,.28);border-radius:9px;background:var(--panel-bg,#fff);color:inherit}.market-summary .path-card p{margin:4px 0}.market-form button:disabled{opacity:.48;cursor:not-allowed}


/* V0.13.0 · 修为圆满与天劫感悟 */
.cultivation-full-notice,.cultivation-full-inline{border:1px solid rgba(190,145,63,.45);background:rgba(190,145,63,.10);padding:12px 14px;border-radius:10px;color:var(--paper-muted)}
.cultivation-full-notice strong{display:block;color:var(--gold-bright);margin-bottom:5px}.cultivation-full-notice p{margin:0;line-height:1.7}
.cultivation-full-inline{margin-top:10px;text-align:center;font-size:.9rem}.live-badge.is-full i{animation:none;box-shadow:0 0 0 4px rgba(190,145,63,.12)}
.cultivation-full-market{border-left-color:var(--gold-bright,#d4ad62)}
.breakthrough-card.cultivation-full .progress-fill{box-shadow:0 0 14px rgba(212,173,98,.45)}
@media(max-width:640px){.cultivation-full-notice,.cultivation-full-inline{padding:9px 10px;font-size:.82rem}.breakthrough-meta span{line-height:1.5}}


/* V0.14.2 · 市坊与统一灵石基础布局 */
.bazaar-root { display: grid; gap: 18px; }
.bazaar-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bazaar-entry-button {
  min-width: 0;
  min-height: 112px;
  padding: 14px 10px 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(206, 182, 126, .28);
  border-radius: 2px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(201, 167, 95, .055), transparent 54%),
    rgba(24, 21, 16, .78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.bazaar-entry-button:hover,
.bazaar-entry-button:focus-visible {
  color: var(--gold-bright);
  border-color: rgba(230, 200, 121, .62);
  background:
    linear-gradient(145deg, rgba(201, 167, 95, .11), transparent 58%),
    rgba(28, 24, 18, .9);
}
.bazaar-entry-button > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206, 182, 126, .38);
  color: var(--gold-bright);
  font-size: 16px;
  line-height: 1;
}
.bazaar-entry-button strong { font-size: 18px; font-weight: 500; letter-spacing: .14em; }
.bazaar-entry-button small { color: var(--paper-muted); font-size: 11px; letter-spacing: .06em; }

.bazaar-world-section {
  border: 1px solid rgba(206, 182, 126, .22);
  background: rgba(19, 17, 13, .54);
}
.bazaar-world-heading {
  padding: 13px 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(206, 182, 126, .2);
  background: rgba(201, 167, 95, .035);
}
.bazaar-world-heading > div { display: flex; align-items: baseline; gap: 10px; }
.bazaar-world-heading span,
.bazaar-world-heading small { color: var(--paper-muted); font-size: 11px; }
.bazaar-world-heading h4 { margin: 0; color: var(--gold-bright); font-size: 18px; font-weight: 500; letter-spacing: .12em; }

.world-event-list { display: grid; }
.world-event-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(206, 182, 126, .13);
}
.world-event-row:last-child { border-bottom: 0; }
.world-event-row.is-pinned { background: rgba(201, 167, 95, .045); }
.world-event-row.level-3 { border-left: 2px solid rgba(201, 167, 95, .5); }
.world-event-row.level-4 { border-left: 2px solid rgba(158, 61, 53, .78); }
.world-event-seal {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206, 182, 126, .35);
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
}
.world-event-copy { min-width: 0; }
.world-event-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.world-event-meta strong { min-width: 0; color: var(--gold-bright); font-size: 13px; font-weight: 500; }
.world-event-meta time { flex: 0 0 auto; color: var(--paper-muted); font-size: 10px; }
.world-event-copy p { margin: 5px 0 0; color: var(--paper); font-size: 13px; line-height: 1.72; overflow-wrap: anywhere; }
.world-event-row.is-equipment-enhancement .world-event-seal,
.world-event-row.is-equipment-enhancement .world-event-meta strong,
.world-event-row.is-equipment-enhancement .world-event-meta time,
.world-event-row.is-equipment-enhancement .world-event-copy p {
  color: #ef5f5f;
}
.world-event-footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(206, 182, 126, .14);
}
.world-event-footer span { color: var(--paper-muted); font-size: 10px; }
.world-event-footer .ghost-btn { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.world-events-root > .empty-state { margin: 0; border: 0; border-radius: 0; background: transparent; }

.bazaar-subpage-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(206, 182, 126, .18);
}
.bazaar-subpage-head > div { display: grid; gap: 3px; }
.bazaar-subpage-head strong { color: var(--gold-bright); font-size: 17px; font-weight: 500; }
.bazaar-subpage-head small { color: var(--paper-muted); font-size: 11px; }
.bazaar-subpage .ranking-panel,
.bazaar-subpage #marketPanelHost { min-width: 0; }
.treasure-placeholder {
  min-height: 220px;
  padding: 34px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(206, 182, 126, .2);
  background: rgba(201, 167, 95, .025);
}
.treasure-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206, 182, 126, .42);
  color: var(--gold-bright);
  font-size: 23px;
}
.treasure-placeholder strong { color: var(--gold-bright); font-size: 18px; font-weight: 500; }
.treasure-placeholder p { max-width: 560px; margin: 0; color: var(--paper-muted); line-height: 1.75; }

@media (max-width: 760px) {
  .bazaar-root { gap: 12px; }
  .bazaar-entry-grid { gap: 7px; }
  .bazaar-entry-button { min-height: 91px; padding: 9px 4px 8px; gap: 4px; }
  .bazaar-entry-button > span { width: 28px; height: 28px; font-size: 13px; }
  .bazaar-entry-button strong { font-size: 14px; letter-spacing: .08em; }
  .bazaar-entry-button small { font-size: 9px; letter-spacing: 0; }
  .bazaar-world-heading { padding: 10px; align-items: center; }
  .bazaar-world-heading > div { display: grid; gap: 1px; }
  .bazaar-world-heading h4 { font-size: 16px; }
  .bazaar-world-heading > small { max-width: 124px; text-align: right; line-height: 1.45; }
  .world-event-row { grid-template-columns: 28px minmax(0,1fr); gap: 8px; padding: 11px 10px; }
  .world-event-seal { width: 26px; height: 26px; font-size: 11px; }
  .world-event-meta { align-items: start; }
  .world-event-meta strong { font-size: 12px; }
  .world-event-meta time { font-size: 9px; }
  .world-event-copy p { font-size: 12px; line-height: 1.65; }
  .world-event-footer { padding: 8px 10px; }
  .bazaar-subpage-head { align-items: start; }
  .bazaar-subpage-head .ghost-btn { flex: 0 0 auto; min-height: 34px; padding: 6px 9px; }
  .treasure-placeholder { min-height: 190px; padding: 26px 16px; }
}

@media (max-width: 370px) {
  .bazaar-entry-button small { display: none; }
  .bazaar-entry-button { min-height: 76px; }
  .bazaar-world-heading > small { display: none; }
}

/* B线机缘V4：移动端离线汇总 */
.opportunity-offline-summary-backdrop{padding:18px 12px;align-items:center;overflow:auto}
.opportunity-offline-summary{width:min(560px,100%);max-height:min(88vh,780px);overflow:auto;padding:20px;border-radius:22px}
.offline-summary-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-right:32px}
.offline-summary-header h2{margin:4px 0 0;font-size:clamp(1.35rem,5vw,1.8rem)}
.offline-summary-lead{margin:14px 0;color:var(--muted);line-height:1.65}
.offline-opportunity-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.offline-opportunity-grade{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.035)}
.offline-opportunity-grade b{font-size:.84rem}.offline-opportunity-grade em{font-style:normal;font-weight:800}
.offline-opportunity-polarity{display:flex;gap:10px;margin:10px 0 14px}.offline-opportunity-polarity span{flex:1;text-align:center;padding:9px;border-radius:12px;font-weight:800}
.offline-opportunity-polarity .gain{background:rgba(80,190,130,.12)}.offline-opportunity-polarity .loss{background:rgba(210,90,90,.12)}
.offline-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.offline-summary-card,.offline-summary-total,.offline-summary-effects{padding:14px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.035)}
.offline-summary-card{display:grid;gap:5px}.offline-summary-card>span,.offline-summary-total>span,.offline-summary-effects>span{font-size:.78rem;color:var(--muted);font-weight:800;letter-spacing:.08em}
.offline-summary-card strong{font-size:1rem}.gain-card{border-color:rgba(80,190,130,.28)}.loss-card{border-color:rgba(210,90,90,.28)}
.cultivation-card{margin-top:10px}.cultivation-card strong{font-size:1.15rem}.cultivation-card small{color:var(--muted)}
.offline-summary-total{margin-top:10px;background:linear-gradient(135deg,rgba(211,165,78,.14),rgba(255,255,255,.03))}.offline-summary-total>div{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}.offline-summary-total strong{font-size:1.18rem}
.offline-summary-effects{margin-top:10px}.offline-summary-effects>div{display:grid;gap:6px;margin-top:8px}.offline-summary-effects .gain{color:#81d8a6}.offline-summary-effects .loss{color:#f1a0a0}
.offline-summary-techniques,.offline-summary-permanent{margin-top:10px;padding:14px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.035);display:grid;gap:9px}.offline-summary-techniques>span,.offline-summary-permanent>span{font-size:.78rem;color:var(--muted);font-weight:800;letter-spacing:.08em}.offline-technique-group{display:grid;gap:5px;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.025)}.offline-technique-group>b{font-size:.78rem;color:var(--muted)}.offline-technique-group>span,.offline-summary-permanent>div>span{display:block;line-height:1.55}.offline-summary-permanent>div{display:grid;gap:5px}
.offline-item-row{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.82rem}.offline-opportunity-empty{color:var(--muted)}
.offline-summary-cap{font-size:.8rem;color:var(--muted);line-height:1.55;margin:10px 2px 0}.offline-summary-confirm{width:100%;margin-top:14px;min-height:48px}
@media(max-width:520px){.opportunity-offline-summary-backdrop{padding:0;align-items:flex-end}.opportunity-offline-summary{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:18px 14px calc(18px + env(safe-area-inset-bottom))}.offline-opportunity-grades{grid-template-columns:repeat(2,minmax(0,1fr))}.offline-summary-grid{grid-template-columns:1fr}.offline-summary-total>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.offline-summary-header{position:sticky;top:-18px;z-index:2;padding-top:16px;padding-bottom:10px;background:var(--panel-bg,#111)} }

/* B线：洞府藏经架与功法书 */
.technique-library-title { margin-top: 2px; }
.technique-library-note {
  margin: -4px 0 2px;
  padding: 9px 11px;
  border-left: 2px solid rgba(206,182,126,.5);
  color: var(--paper-muted);
  background: rgba(201,167,95,.045);
  font-size: 11px;
  line-height: 1.65;
}
.technique-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.technique-book-card { align-items: stretch; min-height: 150px; }
.technique-book-card .inventory-copy { display: grid; align-content: center; gap: 4px; min-width: 0; }
.technique-book-card .inventory-copy > p { margin: 2px 0; }
.technique-book-card .inventory-icon {
  align-self: center;
  border-color: rgba(206,182,126,.42);
  color: var(--gold-bright);
  background: radial-gradient(circle,rgba(201,167,95,.12),rgba(201,167,95,.025));
}
.technique-book-card.exclusive-book { border-color: rgba(212,173,98,.42); background: linear-gradient(145deg,rgba(201,167,95,.07),rgba(13,12,10,.3)); }
.technique-book-card.locked { opacity: .82; }
.technique-book-effect,.technique-book-reward,.technique-book-lock { display:block; line-height:1.55; overflow-wrap:anywhere; }
.technique-book-effect { color: var(--paper); }
.technique-book-reward { color: var(--gold); }
.technique-book-lock { color: #d6a09a; }
.technique-book-action { align-self:center; min-width:72px; }
@media (max-width: 760px) {
  .technique-book-grid { grid-template-columns: 1fr; }
  .technique-book-card { min-height: 0; grid-template-columns: 36px minmax(0,1fr) auto; padding: 10px; }
  .technique-book-action { min-width:64px; padding-left:9px; padding-right:9px; }
  .technique-library-note { font-size: 10px; padding: 8px 9px; }
}
@media (max-width: 380px) {
  .technique-book-card { grid-template-columns: 32px minmax(0,1fr); }
  .technique-book-action { grid-column: 1 / -1; width: 100%; }
}

/* V0.15.3 FIX1 · 普通功法五槽 */
.technique-slot.locked { opacity: .52; border-style: dotted; }
.technique-slot-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.technique-slot-actions select {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(206,182,126,.28);
  background: rgba(8,8,7,.52);
  color: var(--paper);
}
.technique-slot-actions select:disabled { opacity: .55; }
@media (max-width: 600px) {
  .technique-slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .technique-slot-actions { grid-template-columns: minmax(0,1fr); }
  .technique-slot-actions select { padding: 7px 8px; font-size: 9px; }
}

/* V0.15.4 FIX5 CACHE25：珍宝阁购买即时入包与可用状态同步 */
.focus-stat-button {
  width: 100%;
  appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(203, 173, 91, .22);
  background: linear-gradient(135deg, rgba(58, 49, 29, .32), rgba(15, 14, 11, .12));
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.focus-stat-button:hover,
.focus-stat-button:focus-visible {
  border-color: rgba(224, 193, 104, .68);
  background: linear-gradient(135deg, rgba(77, 64, 34, .42), rgba(22, 19, 13, .18));
  outline: none;
}
.focus-stat-button:active { transform: scale(.995); }

.breakthrough-pill-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(199, 167, 77, .36);
  background: rgba(87, 68, 28, .13);
}
.breakthrough-pill-selector > div:first-child { display: grid; gap: 3px; }
.breakthrough-pill-selector > div:first-child span { color: var(--muted); font-size: .82rem; }
.breakthrough-pill-selector > div:first-child strong { color: var(--gold); }
.breakthrough-pill-selector > div:first-child small { color: var(--muted); }
.breakthrough-pill-selector > p { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: .82rem; }
.breakthrough-pill-selector.is-empty { opacity: .72; }
.breakthrough-pill-controls,
.treasure-quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(199, 167, 77, .35);
  background: rgba(0, 0, 0, .18);
}
.breakthrough-pill-controls button,
.treasure-quantity-stepper button {
  width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
}
.breakthrough-pill-controls b { min-width: 40px; text-align: center; color: var(--text); }

.rate-detail-backdrop { align-items: flex-end; }
.rate-detail-modal {
  width: min(680px, calc(100vw - 20px));
  max-height: min(88vh, 900px);
  overflow-y: auto;
  text-align: left;
}
.rate-detail-total {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 15px;
  margin: 12px 0;
  border: 1px solid rgba(215, 183, 91, .42);
  background: rgba(86, 67, 25, .16);
}
.rate-detail-total span { color: var(--muted); }
.rate-detail-total strong { color: var(--gold); font-size: clamp(1.45rem, 5vw, 2.25rem); }
.rate-detail-section {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(188, 168, 113, .2);
  background: rgba(255, 255, 255, .018);
}
.rate-detail-section h3,
.rate-detail-section summary { margin: 0 0 8px; color: var(--gold-soft); font-weight: 600; cursor: pointer; }
.rate-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(188, 168, 113, .13);
}
.rate-detail-row:last-child { border-bottom: 0; }
.rate-detail-row span { display: grid; color: var(--soft); }
.rate-detail-row span small { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.rate-detail-row strong { flex: 0 0 auto; color: var(--text); text-align: right; }
.rate-detail-row.subtotal { margin-top: 3px; border-top: 1px solid rgba(199, 167, 77, .28); border-bottom: 0; }
.rate-detail-empty { padding: 8px 0; color: var(--muted); }
.rate-detail-formula {
  margin-top: 12px;
  padding: 13px;
  line-height: 1.7;
  border: 1px solid rgba(199, 167, 77, .32);
  color: var(--soft);
  background: rgba(0, 0, 0, .18);
  overflow-wrap: anywhere;
}
.rate-detail-formula strong { color: var(--gold); }

.treasure-shop-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid rgba(199, 167, 77, .27);
}
.treasure-shop-head > div:first-child { display: grid; gap: 4px; }
.treasure-shop-head span { color: var(--muted); }
.treasure-shop-grid { display: grid; gap: 12px; }
.treasure-item-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(199, 167, 77, .27);
  background: linear-gradient(135deg, rgba(76, 57, 23, .15), rgba(8, 8, 7, .1));
}
.treasure-item-seal {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(218, 181, 77, .66);
  color: var(--gold);
  font-size: 1.35rem;
}
.treasure-item-copy { display: grid; gap: 5px; }
.treasure-item-copy span,
.treasure-item-copy small { color: var(--muted); }
.treasure-item-copy p { margin: 0; color: var(--soft); line-height: 1.55; }
.treasure-purchase { display: grid; gap: 8px; justify-items: end; }
.treasure-purchase > strong { color: var(--gold); white-space: nowrap; }
.treasure-quantity-stepper input {
  width: 46px;
  min-height: 36px;
  border: 0;
  border-inline: 1px solid rgba(199, 167, 77, .28);
  background: transparent;
  color: var(--text);
  text-align: center;
}

@media (min-width: 761px) {
  .rate-detail-backdrop { align-items: center; }
}
@media (max-width: 600px) {
  .breakthrough-pill-selector { grid-template-columns: 1fr; }
  .breakthrough-pill-controls { justify-self: start; }
  .breakthrough-pill-selector > p { grid-column: 1; }
  .rate-detail-modal { width: 100%; max-height: 91vh; border-radius: 14px 14px 0 0; }
  .rate-detail-row { align-items: start; }
  .treasure-shop-head { align-items: stretch; flex-direction: column; }
  .treasure-item-card { grid-template-columns: auto minmax(0, 1fr); }
  .treasure-purchase { grid-column: 1 / -1; width: 100%; justify-items: stretch; }
  .treasure-purchase > strong { white-space: normal; }
  .treasure-quantity-stepper { width: fit-content; }
}


/* B模块候选：洞府真实界面与当前玩家物品入格（基线 V0.15.4_AB12_CACHE25） */
.cave-system-b01 { gap: 10px; }
.cave-scene-b01 {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(173,150,99,.38);
  background:
    radial-gradient(ellipse at 50% 61%, rgba(174,151,93,.13) 0 10%, rgba(76,91,66,.085) 22%, transparent 46%),
    radial-gradient(ellipse at 50% 4%, rgba(160,137,82,.08), transparent 38%),
    linear-gradient(180deg, rgba(11,13,11,.99), rgba(16,18,14,.98) 48%, rgba(8,9,8,.995));
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.78),
    inset 0 -100px 130px rgba(0,0,0,.53),
    inset 0 42px 85px rgba(0,0,0,.43);
}
.cave-scene-b01::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8% -5% -4%;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 0 34%, rgba(3,5,4,.22) 35% 47%, rgba(2,3,3,.79) 65%, rgba(1,2,2,.97) 79%),
    radial-gradient(ellipse at 16% 54%, rgba(55,57,45,.28), transparent 37%),
    radial-gradient(ellipse at 84% 51%, rgba(48,52,42,.25), transparent 38%);
  pointer-events: none;
}
.cave-scene-b01::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -8%; right: -8%; bottom: -19%; height: 47%;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background:
    radial-gradient(ellipse at 50% 0, rgba(189,160,91,.105), transparent 35%),
    repeating-linear-gradient(166deg, rgba(147,133,95,.035) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(35,37,31,.94), rgba(7,8,7,.99) 70%);
  box-shadow: inset 0 16px 28px rgba(0,0,0,.48), 0 -1px rgba(201,167,95,.12);
  pointer-events: none;
}
.cave-rock-arch-b01 {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(103deg, rgba(5,7,6,.92) 0 8%, transparent 18% 80%, rgba(5,7,6,.92) 92%),
    linear-gradient(77deg, rgba(10,12,10,.86) 0 7%, transparent 17% 82%, rgba(9,11,9,.9) 93%),
    repeating-linear-gradient(117deg, transparent 0 46px, rgba(191,167,112,.025) 47px 48px, transparent 49px 88px);
  opacity: .96;
}
.cave-rock-arch-b01::before,
.cave-rock-arch-b01::after {
  content: "";
  position: absolute;
  top: -12%;
  width: 27%;
  height: 78%;
  background:
    repeating-linear-gradient(164deg, rgba(184,165,116,.035) 0 1px, transparent 1px 15px),
    linear-gradient(110deg, rgba(32,35,29,.98), rgba(8,10,8,.96));
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.65));
}
.cave-rock-arch-b01::before {
  left: -7%;
  clip-path: polygon(0 0,100% 0,77% 18%,92% 36%,67% 52%,84% 69%,55% 100%,0 100%);
}
.cave-rock-arch-b01::after {
  right: -7%;
  transform: scaleX(-1);
  clip-path: polygon(0 0,100% 0,77% 18%,92% 36%,67% 52%,84% 69%,55% 100%,0 100%);
}
.cave-stalactites-b01 {
  position: absolute;
  z-index: 2;
  left: 21%; right: 21%; top: 0; height: 76px;
  pointer-events: none;
  background:
    linear-gradient(169deg, transparent 0 17%, rgba(12,14,12,.98) 18% 24%, transparent 25%) 3% 0 / 23% 100% no-repeat,
    linear-gradient(190deg, transparent 0 18%, rgba(7,9,8,.98) 19% 31%, transparent 32%) 31% 0 / 23% 88% no-repeat,
    linear-gradient(171deg, transparent 0 14%, rgba(11,13,11,.98) 15% 27%, transparent 28%) 58% 0 / 19% 96% no-repeat,
    linear-gradient(188deg, transparent 0 18%, rgba(8,10,8,.98) 19% 29%, transparent 30%) 84% 0 / 21% 78% no-repeat;
  opacity: .92;
}
.cave-spirit-veins-b01 {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .72;
}
.cave-spirit-veins-b01 i {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(123,160,127,.22) 20%, rgba(216,191,123,.48) 52%, rgba(108,150,121,.16) 79%, transparent);
  box-shadow: 0 0 7px rgba(127,166,132,.16);
  animation: caveVeinFlowB01 5.8s ease-in-out infinite alternate;
}
.cave-spirit-veins-b01 i:nth-child(1) { left: 8%; top: 39%; width: 35%; transform: rotate(17deg); }
.cave-spirit-veins-b01 i:nth-child(2) { right: 7%; top: 35%; width: 36%; transform: rotate(160deg); animation-delay: -1.9s; }
.cave-spirit-veins-b01 i:nth-child(3) { left: 31%; bottom: 24%; width: 39%; transform: rotate(-3deg); animation-delay: -3.4s; }
.cave-spirit-veins-b01 i::after {
  content: "";
  position: absolute;
  left: 49%; top: -2px; width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(224,201,139,.72);
  box-shadow: 0 0 10px rgba(224,201,139,.55);
}
.cave-scene-mist-b01 {
  position: absolute;
  z-index: 2;
  left: 13%; right: 13%; bottom: 12%; height: 31%;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(210,213,191,.105), transparent 68%),
    linear-gradient(90deg, transparent, rgba(125,151,126,.04), transparent);
  filter: blur(10px);
  animation: caveMistB01 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.cave-scene-lines-b01 {
  position: absolute;
  z-index: 2;
  left: 35%; right: 35%; top: 17%; bottom: 23%;
  border-top: 1px solid rgba(181,158,105,.13);
  border-left: 1px solid rgba(181,158,105,.09);
  border-right: 1px solid rgba(181,158,105,.09);
  border-radius: 48% 48% 10% 10% / 35% 35% 8% 8%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.12), transparent 18% 82%, rgba(0,0,0,.12)),
    linear-gradient(180deg, rgba(123,143,116,.025), rgba(185,159,92,.035) 68%, rgba(0,0,0,.12));
  box-shadow:
    inset 20px 0 28px rgba(0,0,0,.14),
    inset -20px 0 28px rgba(0,0,0,.14),
    inset 0 -18px 26px rgba(192,163,91,.028);
  opacity: .78;
  pointer-events: none;
}
.cave-scene-lines-b01::before {
  content: "";
  position: absolute;
  left: -9%; right: -9%; bottom: -10%; height: 18%;
  border-top: 1px solid rgba(201,167,95,.18);
  background: linear-gradient(180deg,rgba(43,44,37,.34),rgba(8,9,8,.12));
  clip-path: polygon(7% 22%,20% 4%,80% 4%,93% 22%,100% 100%,0 100%);
  box-shadow: 0 -7px 15px rgba(0,0,0,.25);
}
.cave-lantern-b01 {
  position: absolute;
  z-index: 4;
  top: 47%;
  width: 22px; height: 38px;
  border: 1px solid rgba(178,145,75,.28);
  background: linear-gradient(180deg, rgba(43,35,21,.7), rgba(8,9,8,.82));
  box-shadow: 0 0 18px rgba(194,157,75,.07);
  opacity: .65;
  pointer-events: none;
}
.cave-lantern-b01.left { left: 31.2%; }
.cave-lantern-b01.right { right: 31.2%; }
.cave-lantern-b01::before,
.cave-lantern-b01::after { content:""; position:absolute; left:5px; right:5px; height:1px; background:rgba(205,174,101,.33); }
.cave-lantern-b01::before { top:6px; }
.cave-lantern-b01::after { bottom:6px; }
.cave-lantern-b01 i {
  position:absolute; inset:10px 7px;
  border-radius:50%;
  background:rgba(222,177,72,.34);
  box-shadow:0 0 12px rgba(222,177,72,.34);
  animation:caveLanternB01 3.8s ease-in-out infinite alternate;
}
.cave-lantern-b01.right i { animation-delay:-1.8s; }
.cave-building-orbit-b01 { position: absolute; z-index: 6; inset: 18px; }
.cave-scene-building-b01 {
  position: absolute;
  width: min(29%, 190px);
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(184,159,104,.31);
  color: var(--paper);
  background:
    repeating-linear-gradient(165deg, rgba(203,184,137,.018) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, rgba(39,40,34,.93), rgba(11,13,11,.89));
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.62), 0 8px 18px rgba(0,0,0,.18);
  transition: border-color .18s, transform .18s, background .18s;
}
button.cave-scene-building-b01:hover {
  border-color: rgba(222,193,121,.65);
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(57,55,42,.96), rgba(12,14,12,.92));
}
.cave-scene-building-b01.locked { opacity: .38; filter: grayscale(.25); }
.cave-scene-building-b01.pos-1 { left: 0; top: 4px; }
.cave-scene-building-b01.pos-2 { right: 0; top: 4px; }
.cave-scene-building-b01.pos-3 { left: 0; top: 50%; transform: translateY(-50%); }
.cave-scene-building-b01.pos-4 { right: 0; top: 50%; transform: translateY(-50%); }
button.cave-scene-building-b01.pos-3:hover, button.cave-scene-building-b01.pos-4:hover { transform: translateY(calc(-50% - 2px)); }
.cave-scene-building-b01.pos-5 { left: 0; bottom: 0; }
.cave-scene-building-b01.pos-6 { right: 0; bottom: 0; }
.cave-building-glyph-b01 {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(192,164,102,.37);
  color: var(--gold-bright);
  background: radial-gradient(circle,rgba(191,161,92,.085),rgba(12,14,12,.34));
  box-shadow: inset 0 0 12px rgba(201,167,95,.04);
  font-size: 18px;
}
.cave-building-copy-b01 { min-width: 0; display: grid; gap: 3px; }
.cave-building-copy-b01 strong { overflow: hidden; color: var(--paper); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cave-building-copy-b01 small { color: var(--paper-muted); font-size: 9px; }
.cave-meditation-b01 {
  position: absolute;
  z-index: 5;
  left: 50%; top: 48%;
  width: 186px; height: 190px;
  transform: translate(-50%,-50%);
  display: grid; place-items: center;
}
.cave-stone-platform-b01 {
  position: absolute;
  left: 12%; right: 12%; bottom: 9%; height: 31%;
  border: 1px solid rgba(178,153,96,.26);
  border-radius: 50%;
  transform: perspective(190px) rotateX(63deg);
  background:
    radial-gradient(ellipse, rgba(189,161,93,.12), transparent 54%),
    repeating-radial-gradient(ellipse, transparent 0 12px, rgba(183,159,101,.045) 13px 14px, transparent 15px 23px),
    linear-gradient(180deg, rgba(50,50,41,.92), rgba(13,15,13,.98));
  box-shadow: 0 10px 26px rgba(0,0,0,.58), inset 0 0 22px rgba(195,166,96,.05);
}
.cave-stone-platform-b01::after {
  content:"";
  position:absolute;
  left:9%; right:9%; top:39%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(203,177,111,.25),transparent);
}
.cave-meditation-ring-b01 {
  position: absolute;
  inset: 12px 24px 34px;
  border: 0;
  border-radius: 46% 46% 25% 25%;
  background:
    radial-gradient(ellipse at 50% 57%, rgba(195,169,101,.095), transparent 54%),
    linear-gradient(180deg, transparent 18%, rgba(126,158,128,.025) 62%, transparent);
  box-shadow: inset 0 -18px 28px rgba(130,160,129,.025);
  animation: caveAuraB01 4.8s ease-in-out infinite alternate;
}
.cave-meditation-ring-b01::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 7%; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(130,165,132,.32),transparent);
  box-shadow: 0 0 7px rgba(130,165,132,.14);
}
.cave-meditation-figure-b01 {
  position: relative;
  z-index: 2;
  top: 8px;
  width: 96px; height: 116px;
  filter: drop-shadow(0 10px 11px rgba(0,0,0,.8));
  animation: caveMeditateB01 4.6s ease-in-out infinite alternate;
}
.cave-meditation-figure-b01 i { position: absolute; left: 38px; top: 3px; width: 22px; height: 24px; border-radius: 50%; background: #080907; }
.cave-meditation-figure-b01 i::before { content: ""; position: absolute; left: 7px; top: -13px; width: 8px; height: 16px; border-radius: 55% 55% 30% 30%; background: #080907; }
.cave-meditation-figure-b01 b { position: absolute; left: 26px; top: 25px; width: 46px; height: 63px; background: linear-gradient(180deg,#0a0b09,#050605); clip-path: polygon(34% 0,66% 0,88% 26%,100% 76%,69% 100%,31% 100%,0 76%,12% 26%); }
.cave-meditation-figure-b01 span { position: absolute; left: 2px; bottom: 4px; width: 92px; height: 44px; background: #050605; clip-path: polygon(0 70%,31% 22%,40% 4%,50% 27%,60% 4%,69% 22%,100% 70%,72% 100%,28% 100%); }
.cave-scene-caption-b01 {
  position: absolute;
  z-index: 7;
  left: 31%; right: 31%; bottom: 17px;
  display: grid; gap: 4px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
}
.cave-scene-caption-b01 strong { color: var(--gold-bright); font-size: 16px; font-weight: 500; letter-spacing: .12em; }
.cave-scene-caption-b01 span { color: var(--paper-muted); font-size: 9px; }
.cave-resource-strip-b01 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.cave-resource-card-b01 { min-width: 0; padding: 10px; border: 1px solid rgba(206,182,126,.23); background: linear-gradient(145deg,rgba(49,42,30,.72),rgba(15,15,13,.88)); }
.cave-resource-card-b01 > span { display: block; color: var(--paper-muted); font-size: 9px; }
.cave-resource-card-b01 > strong { display: block; margin-top: 5px; color: var(--paper); font-size: 13px; font-weight: 500; }
.cave-resource-card-b01 > strong small { color: var(--paper-muted); font-size: 9px; }
.cave-resource-track-b01 { height: 4px; margin-top: 8px; overflow: hidden; background: rgba(255,255,255,.055); }
.cave-resource-track-b01 i { display: block; height: 100%; background: linear-gradient(90deg,var(--gold),var(--gold-bright)); }
.cave-storage-b01 { border: 1px solid rgba(206,182,126,.28); background: rgba(12,13,11,.58); }
.cave-storage-head-b01 { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(206,182,126,.22); background: linear-gradient(90deg,rgba(117,81,39,.15),transparent 74%); }
.cave-storage-head-b01 strong { color: var(--paper); font-size: 14px; font-weight: 500; }
.cave-storage-head-b01 span { color: var(--paper-muted); font-size: 9px; }
.cave-storage-grid-b01 { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; padding: 9px; }
.cave-item-slot-b01 { position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; border: 1px solid rgba(151,145,127,.4); color: var(--paper); background: radial-gradient(circle at 50% 40%,rgba(201,167,95,.11),transparent 52%),linear-gradient(145deg,rgba(40,39,34,.94),rgba(13,14,12,.98)); box-shadow: inset 0 0 0 2px rgba(0,0,0,.48); }
button.cave-item-slot-b01 { transition: transform .15s,border-color .15s,filter .15s; }
button.cave-item-slot-b01:hover { transform: translateY(-2px); filter: brightness(1.08); border-color: rgba(230,200,121,.7); }
.cave-item-slot-b01.rarity-uncommon { border-color: rgba(92,151,121,.72); box-shadow: inset 0 0 15px rgba(71,138,106,.16); }
.cave-item-slot-b01.rarity-rare { border-color: rgba(80,127,170,.78); box-shadow: inset 0 0 15px rgba(72,113,158,.19); }
.cave-item-slot-b01.rarity-epic { border-color: rgba(132,91,157,.8); box-shadow: inset 0 0 16px rgba(116,72,148,.21); }
.cave-item-slot-b01.rarity-legendary { border-color: rgba(191,145,60,.85); box-shadow: inset 0 0 18px rgba(190,139,48,.24); }
.cave-item-slot-b01.empty { display: grid; place-items: center; color: rgba(201,167,95,.055); font-size: 24px; }
.cave-item-aura-b01 { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle,rgba(230,212,148,.14),transparent 69%); }
.cave-item-svg { position: absolute; left: 17%; top: 5%; width: 66%; height: 58%; filter: drop-shadow(0 4px 4px rgba(0,0,0,.72)); }
.cave-item-svg.large { position: static; width: 82%; height: 82%; margin: 9%; }
.cave-item-svg .paper-fill { fill: #d8cfac; }
.cave-item-svg .paper-line { fill: none; stroke: #ddd6bb; stroke-width: 1.5; }
.cave-item-svg .jade-light { fill: #63c8cf; stroke: #d7ffff; stroke-width: 1.2; }
.cave-item-svg .jade-fill { fill: #70a88d; }
.cave-item-svg .jade-line { fill: none; stroke: #78ad91; stroke-width: 1.8; }
.cave-item-svg .celadon-fill { fill: #b7c5a7; stroke: #e4ead5; stroke-width: 1.2; }
.cave-item-svg .bronze-fill { fill: #8b6037; stroke: #c99a58; stroke-width: 1.2; }
.cave-item-svg .ore-fill { fill: #536063; stroke: #aebbbc; stroke-width: 1.2; }
.cave-item-svg .ink-fill { fill: #2e251d; }
.cave-item-svg .red-fill { fill: #874039; }
.cave-item-svg .red-line { fill: none; stroke: #9b493d; stroke-width: 1.7; }
.cave-item-svg .gold-fill { fill: #cda84f; }
.cave-item-svg .gold-line { fill: none; stroke: #dec071; stroke-width: 1.5; }
.cave-item-svg .mist-line { fill: none; stroke: #b9cfbf; stroke-width: 2.6; stroke-linecap: round; opacity: .82; }
.cave-item-corner-b01 { position: absolute; z-index: 2; left: 3px; top: 3px; min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; border: 1px solid rgba(220,199,132,.45); color: #e5cf86; background: rgba(9,10,9,.86); font-size: 8px; }
.cave-item-corner-b01.bound { color: #d9d1ab; }
.cave-item-corner-b01.quest { color: #e0a198; border-color: rgba(170,70,61,.7); }
.cave-item-corner-b01.rare { color: #ead38c; }
.cave-item-name-b01 { position: absolute; left: 4px; right: 4px; bottom: 24px; overflow: hidden; color: rgba(242,232,204,.86); font-size: 8px; text-align: center; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.cave-item-type-b01 { position:absolute; left:4px; right:4px; bottom:13px; overflow:hidden; color:rgba(161,184,165,.88); font-size:7px; text-align:center; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 3px #000; }
.cave-item-slot-b01.technique-book-slot-v1 { background:radial-gradient(circle at 50% 32%,rgba(92,151,121,.15),transparent 50%),linear-gradient(145deg,rgba(37,42,35,.96),rgba(11,13,11,.99)); }
.cave-item-quantity-b01 { position: absolute; right: 4px; bottom: 1px; color: #fff2c6; font-family: Arial,sans-serif; font-size: 10px; text-shadow: 0 1px 3px #000,0 0 3px #000; }
.cave-storage-overflow-b01 { margin: 0; padding: 7px 10px; border-top: 1px solid rgba(206,182,126,.15); color: var(--paper-muted); font-size: 9px; }
.cave-storage-pager-b01 { min-height: 38px; display: grid; grid-template-columns: 86px 1fr 86px; align-items: center; gap: 7px; padding: 6px 9px; border-top: 1px solid rgba(206,182,126,.18); }
.cave-storage-pager-b01 button { min-height: 28px; border: 1px solid rgba(206,182,126,.25); color: var(--paper-muted); background: rgba(201,167,95,.045); font-size: 9px; }
.cave-storage-pager-b01 span { color: var(--paper-muted); font-size: 9px; text-align: center; }
.cave-action-bar-b01 { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; }
.cave-action-bar-b01 button { min-height: 42px; }
.cave-workbench-b01 { position: relative; padding: 13px; border: 1px solid rgba(206,182,126,.3); background: rgba(17,16,13,.95); }
.cave-workbench-close-b01 { position: absolute; z-index: 2; right: 8px; top: 7px; width: 28px; height: 28px; border: 1px solid rgba(206,182,126,.28); color: var(--paper-muted); background: rgba(9,9,8,.65); }
.cave-workbench-tabs-b01 { display: flex; gap: 5px; margin: 0 34px 12px 0; }
.cave-workbench-tabs-b01 button { min-width: 64px; min-height: 30px; border: 1px solid rgba(206,182,126,.26); color: var(--paper-muted); background: rgba(201,167,95,.045); font-size: 10px; }
.cave-workbench-tabs-b01 button:hover { color: var(--gold-bright); border-color: rgba(230,200,121,.55); }
.cave-building-card.focused { border-color: rgba(230,200,121,.72); box-shadow: inset 0 0 20px rgba(201,167,95,.1); }
.cave-item-detail-modal-b01 { width: min(470px,calc(100% - 20px)); }
.cave-item-detail-head-b01 { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 13px; align-items: center; }
.cave-item-detail-icon-b01 { aspect-ratio: 1; border: 1px solid rgba(206,182,126,.42); background: radial-gradient(circle,rgba(201,167,95,.13),transparent 62%),rgba(13,14,12,.76); }
.cave-item-detail-icon-b01.rarity-uncommon { border-color: rgba(92,151,121,.72); }
.cave-item-detail-icon-b01.rarity-rare { border-color: rgba(80,127,170,.78); }
.cave-item-detail-icon-b01.rarity-epic { border-color: rgba(132,91,157,.8); }
.cave-item-detail-icon-b01.rarity-legendary { border-color: rgba(191,145,60,.85); }
.cave-item-detail-head-b01 span { color: var(--paper-muted); font-size: 10px; }
.cave-item-detail-head-b01 h3 { margin: 4px 0; color: var(--gold-bright); font-size: 20px; font-weight: 500; }
.cave-item-detail-head-b01 strong { color: var(--paper); font-size: 12px; font-weight: 500; }
.cave-item-detail-tags-b01 { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.cave-item-detail-tags-b01 span { padding: 3px 7px; border: 1px solid rgba(206,182,126,.28); color: var(--paper-muted); background: rgba(201,167,95,.055); font-size: 9px; }
.cave-item-detail-description-b01 { margin: 12px 0 0; padding: 10px; border-left: 2px solid rgba(201,167,95,.45); color: var(--paper-muted); background: rgba(0,0,0,.15); font-size: 11px; line-height: 1.7; }
.cave-item-detail-effect-b01 { margin-top: 10px; padding: 10px; border: 1px solid rgba(111,155,131,.32); background: rgba(75,120,96,.08); }
.cave-item-detail-effect-b01 strong { color: #afd0bd; font-size: 10px; }
.cave-item-detail-effect-b01 p { margin: 4px 0 0; color: var(--paper); font-size: 11px; line-height: 1.65; }
.cave-item-detail-source-b01 { display: block; margin-top: 9px; color: var(--paper-muted); font-size: 9px; }
.cave-item-detail-actions-b01 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.cave-item-detail-actions-b01 > :only-child { grid-column: 1 / -1; }

/* V1.0 · 洞天幽居：洞窟、灵脉、石台、仙府、隐修与经营感 */
.cave-depth-shrine-v1 {
  position:absolute; z-index:2; left:38%; right:38%; top:7%; height:54%;
  border:1px solid rgba(166,148,104,.12); border-radius:46% 46% 12% 12% / 32% 32% 10% 10%;
  background:
    radial-gradient(ellipse at 50% 42%,rgba(72,104,83,.12),transparent 46%),
    linear-gradient(180deg,rgba(9,13,11,.78),rgba(20,24,18,.36) 63%,rgba(4,6,5,.82));
  box-shadow:inset 22px 0 34px rgba(0,0,0,.42),inset -22px 0 34px rgba(0,0,0,.42),0 0 32px rgba(0,0,0,.28);
  pointer-events:none;
}
.cave-depth-shrine-v1::before { content:"";position:absolute;left:25%;right:25%;top:9%;bottom:9%;border-left:1px solid rgba(194,171,111,.12);border-right:1px solid rgba(194,171,111,.12);background:repeating-linear-gradient(180deg,transparent 0 21px,rgba(194,171,111,.035) 22px 23px); }
.cave-depth-shrine-v1 span { position:absolute;left:50%;top:9%;transform:translateX(-50%);writing-mode:vertical-rl;padding:8px 4px;border:1px solid rgba(194,171,111,.16);color:rgba(222,197,132,.64);font-size:10px;letter-spacing:.28em;background:rgba(8,10,8,.55);text-shadow:0 0 10px rgba(215,182,102,.24); }
.cave-waterfall-v1 { position:absolute;z-index:2;right:28%;top:17%;width:5%;height:48%;opacity:.54;filter:blur(.25px);pointer-events:none; }
.cave-waterfall-v1::before { content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(151,196,183,.13),rgba(203,222,208,.2),rgba(121,170,159,.08),transparent);clip-path:polygon(38% 0,72% 0,62% 34%,84% 60%,55% 100%,18% 100%,38% 62%,22% 34%);animation:caveWaterfallV1 4.6s linear infinite; }
.cave-waterfall-v1 i { position:absolute;left:-70%;right:-70%;bottom:-6%;height:12%;border-radius:50%;border-top:1px solid rgba(170,207,193,.25);box-shadow:0 0 12px rgba(127,178,159,.16);animation:caveWaterRippleV1 3.8s ease-out infinite; }
.cave-pond-v1 { position:absolute;z-index:2;left:28%;right:28%;bottom:5%;height:22%;border-radius:50%;transform:perspective(260px) rotateX(68deg);background:radial-gradient(ellipse,rgba(109,158,143,.13),rgba(25,45,38,.08) 52%,transparent 73%);border:1px solid rgba(132,174,158,.13);box-shadow:inset 0 0 22px rgba(128,175,158,.09),0 0 18px rgba(0,0,0,.42);animation:cavePondGlowV1 5.4s ease-in-out infinite alternate;pointer-events:none; }
.cave-stairs-v1 { position:absolute;z-index:4;left:43%;right:43%;bottom:13%;height:22%;display:grid;align-content:end;gap:3px;perspective:180px;pointer-events:none; }
.cave-stairs-v1 i { display:block;height:9px;border:1px solid rgba(172,151,101,.16);background:linear-gradient(180deg,rgba(67,66,53,.72),rgba(15,17,14,.91));box-shadow:0 4px 7px rgba(0,0,0,.35); }
.cave-stairs-v1 i:nth-child(1){margin:0 20%;}.cave-stairs-v1 i:nth-child(2){margin:0 14%;}.cave-stairs-v1 i:nth-child(3){margin:0 7%;}.cave-stairs-v1 i:nth-child(4){margin:0;}
.cave-bonsai-v1 { position:absolute;z-index:4;right:25%;bottom:13%;width:50px;height:70px;opacity:.6;filter:drop-shadow(0 5px 7px rgba(0,0,0,.6));pointer-events:none; }
.cave-bonsai-v1::before { content:"";position:absolute;left:20px;bottom:14px;width:9px;height:35px;border-radius:60% 20% 60% 20%;background:#11170f;transform:rotate(12deg); }
.cave-bonsai-v1 i,.cave-bonsai-v1 b { position:absolute;border-radius:55%;background:radial-gradient(circle at 45% 40%,rgba(102,138,99,.32),rgba(24,44,29,.88));box-shadow:0 0 10px rgba(83,128,91,.08); }
.cave-bonsai-v1 i{left:0;top:10px;width:38px;height:28px}.cave-bonsai-v1 b{right:0;top:0;width:34px;height:26px}.cave-bonsai-v1::after{content:"";position:absolute;left:9px;right:8px;bottom:4px;height:13px;border-radius:50%;background:linear-gradient(180deg,#413b2b,#171811);border:1px solid rgba(172,151,101,.22)}
.cave-qi-wisps-v1 { position:absolute;z-index:3;inset:0;pointer-events:none;overflow:hidden; }
.cave-qi-wisps-v1 i { position:absolute;width:66px;height:28px;border-top:1px solid rgba(136,188,165,.24);border-radius:50%;filter:drop-shadow(0 0 5px rgba(119,174,150,.12));opacity:0;animation:caveQiWispV1 7s ease-in-out infinite; }
.cave-qi-wisps-v1 i:nth-child(1){left:34%;bottom:31%;animation-delay:0s}.cave-qi-wisps-v1 i:nth-child(2){right:33%;bottom:27%;animation-delay:-2.4s;transform:scaleX(-1)}.cave-qi-wisps-v1 i:nth-child(3){left:47%;bottom:45%;animation-delay:-4.8s;width:42px}
.cave-fireflies-v1 { position:absolute;z-index:5;inset:0;pointer-events:none; }
.cave-fireflies-v1 i { position:absolute;width:3px;height:3px;border-radius:50%;background:#e8d58c;box-shadow:0 0 8px rgba(232,213,140,.76);opacity:0;animation:caveFireflyV1 var(--d,5.5s) ease-in-out var(--delay,0s) infinite; }
.cave-fireflies-v1 i:nth-child(1){left:34%;bottom:30%;--d:5.2s}.cave-fireflies-v1 i:nth-child(2){left:41%;bottom:26%;--d:6.1s;--delay:-1.1s}.cave-fireflies-v1 i:nth-child(3){right:37%;bottom:32%;--d:5.7s;--delay:-2s}.cave-fireflies-v1 i:nth-child(4){right:31%;bottom:23%;--d:6.5s;--delay:-3.2s}.cave-fireflies-v1 i:nth-child(5){left:48%;bottom:42%;--d:4.8s;--delay:-1.8s}.cave-fireflies-v1 i:nth-child(6){right:46%;bottom:48%;--d:6.8s;--delay:-4.2s}
.cave-spirit-veins-b01 i:nth-child(4){left:47%;top:18%;width:8%;height:55%;transform:rotate(2deg);background:linear-gradient(180deg,transparent,rgba(129,177,154,.17),rgba(221,197,127,.45),rgba(111,159,137,.08),transparent);animation:caveCentralVeinV1 5s ease-in-out infinite alternate;}
.cave-meditation-b01::before { content:"";position:absolute;left:44%;top:-12%;width:12%;height:66%;border-radius:50%;background:linear-gradient(180deg,transparent,rgba(130,180,158,.14),rgba(224,200,126,.24),transparent);filter:blur(3px);animation:caveCultivationBreathV1 4.2s ease-in-out infinite; }

@keyframes caveMistB01 { from { transform: translateX(-2%) scale(.96); opacity: .55; } to { transform: translateX(2%) scale(1.04); opacity: .92; } }
@keyframes caveVeinFlowB01 { from { opacity: .32; filter: brightness(.85); } to { opacity: .92; filter: brightness(1.28); } }
@keyframes caveLanternB01 { from { opacity: .42; transform: scale(.88); } to { opacity: .9; transform: scale(1.08); } }
@keyframes caveAuraB01 { from { opacity: .55; transform: scale(.975); } to { opacity: .9; transform: scale(1.02); } }
@keyframes caveMeditateB01 { from { transform: translateY(1px); } to { transform: translateY(-4px); } }

@keyframes caveWaterfallV1 { 0%{transform:translateY(-5%);opacity:.34}50%{opacity:.74}100%{transform:translateY(6%);opacity:.34} }
@keyframes caveWaterRippleV1 { 0%{transform:scale(.55);opacity:.65}100%{transform:scale(1.35);opacity:0} }
@keyframes cavePondGlowV1 { from{opacity:.48;filter:brightness(.8)}to{opacity:.86;filter:brightness(1.16)} }
@keyframes caveQiWispV1 { 0%{opacity:0;transform:translate3d(-18px,10px,0) scale(.75)}35%{opacity:.65}100%{opacity:0;transform:translate3d(28px,-62px,0) scale(1.16)} }
@keyframes caveFireflyV1 { 0%{opacity:0;transform:translate(0,8px) scale(.6)}25%{opacity:.95}70%{opacity:.45}100%{opacity:0;transform:translate(12px,-62px) scale(1.2)} }
@keyframes caveCentralVeinV1 { from{opacity:.22;filter:blur(.4px) brightness(.82)}to{opacity:.82;filter:blur(.2px) brightness(1.22)} }
@keyframes caveCultivationBreathV1 { 0%,100%{opacity:.26;transform:scaleY(.92)}50%{opacity:.72;transform:scaleY(1.08)} }

@media (max-width: 760px) {
  .cave-scene-b01 { min-height: 374px; }
  .cave-scene-building-b01 { width: 30%; min-height: 68px; grid-template-columns: 32px minmax(0,1fr); gap: 5px; padding: 6px; }
  .cave-building-glyph-b01 { width: 29px; height: 29px; font-size: 14px; }
  .cave-building-copy-b01 strong { font-size: 9px; }
  .cave-building-copy-b01 small { font-size: 7px; }
  .cave-meditation-b01 { width: 146px; height: 154px; }
  .cave-lantern-b01 { display: none; }
  .cave-meditation-figure-b01 { transform: scale(.82); }
  .cave-scene-caption-b01 { left: 29%; right: 29%; bottom: 13px; }
  .cave-scene-caption-b01 strong { font-size: 11px; }
  .cave-resource-strip-b01 { gap: 4px; }
  .cave-resource-card-b01 { padding: 7px 5px; }
  .cave-resource-card-b01 > span { font-size: 7px; }
  .cave-resource-card-b01 > strong { font-size: 9px; }
  .cave-storage-grid-b01 { grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; padding:4px; }
  .cave-item-slot-b01 { min-height:0; aspect-ratio:1; }
  .cave-item-name-b01 { display:block; left:2px; right:2px; bottom:17px; font-size:6px; }
  .cave-item-type-b01 { left:2px; right:2px; bottom:9px; font-size:5px; }
  .cave-item-quantity-b01 { right:2px; font-size:7px; }
  .cave-item-corner-b01 { left:1px; top:1px; min-width:10px; height:10px; padding:0 2px; font-size:5px; }
  .cave-action-bar-b01 { gap: 5px; }
  .cave-action-bar-b01 button { min-height: 38px; padding-left: 4px; padding-right: 4px; font-size: 10px; }
}
@media (max-width: 430px) {
  .cave-scene-b01 { min-height: 342px; }
  .cave-building-orbit-b01 { inset: 9px; }
  .cave-scene-building-b01 { width: 31%; min-height: 59px; grid-template-columns: 26px minmax(0,1fr); padding: 4px; }
  .cave-building-glyph-b01 { width: 24px; height: 24px; font-size: 12px; }
  .cave-building-copy-b01 small { display: none; }
  .cave-meditation-b01 { width: 122px; height: 132px; }
  .cave-meditation-figure-b01 { transform: scale(.7); }
  .cave-scene-caption-b01 strong { font-size: 9px; letter-spacing: .06em; }
  .cave-scene-caption-b01 span { font-size: 7px; }
  .cave-storage-head-b01 { padding: 7px; }
  .cave-storage-head-b01 strong { font-size: 11px; }
  .cave-storage-head-b01 span { font-size: 7px; }
}

/* V0.15.5 FIX1 CACHE27 · 元神战斗属性界面（属性值接入中） */
.primordial-spirit-panel-v0155 { overflow: hidden; }
.yuanshen-shell-v0155 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(206,182,126,.25);
  background:
    radial-gradient(circle at 50% 42%,rgba(201,167,95,.13),transparent 31%),
    linear-gradient(180deg,rgba(15,13,9,.95),rgba(8,7,5,.98));
}
.yuanshen-stage-v0155 {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(145px,.9fr) minmax(250px,1.35fr) minmax(145px,.9fr);
  grid-template-rows: repeat(3,1fr);
  align-items: center;
  gap: 12px;
  padding: 24px 18px 64px;
  isolation: isolate;
}
.yuanshen-beam-field-v0155,
.yuanshen-beam-field-v0155::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}
.yuanshen-beam-field-v0155 {
  z-index: -2;
  opacity: .58;
  background: conic-gradient(from 200deg at 50% 45%,transparent 0 7%,rgba(215,183,100,.06) 8% 10%,transparent 11% 21%,rgba(215,183,100,.035) 22% 24%,transparent 25% 39%,rgba(215,183,100,.05) 40% 42%,transparent 43% 100%);
  filter: blur(4px);
  animation: yuanshen-beams-v0155 14s ease-in-out infinite alternate;
}
.yuanshen-beam-field-v0155::before {
  background: radial-gradient(ellipse at 50% 43%,rgba(215,183,100,.13),transparent 34%);
  animation: yuanshen-breathe-v0155 3.8s ease-in-out infinite;
}
.yuanshen-stat-card-v0155 {
  position: relative;
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(206,182,126,.34);
  color: var(--paper);
  background: rgba(15,13,9,.84);
  text-align: left;
  overflow: hidden;
  transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.yuanshen-stat-card-v0155::before,
.yuanshen-stat-card-v0155::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: .75;
}
.yuanshen-stat-card-v0155::before { left: 5px; top: 5px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.yuanshen-stat-card-v0155::after { right: 5px; bottom: 5px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.yuanshen-stat-card-v0155:hover,
.yuanshen-stat-card-v0155:focus-visible,
.yuanshen-stat-card-v0155.active {
  transform: translateY(-2px);
  border-color: rgba(236,207,139,.72);
  box-shadow: inset 0 0 24px rgba(201,167,95,.05),0 0 22px rgba(201,167,95,.07);
}
.yuanshen-stat-card-v0155.left-1 { grid-column: 1; grid-row: 1; }
.yuanshen-stat-card-v0155.left-2 { grid-column: 1; grid-row: 2; }
.yuanshen-stat-card-v0155.left-3 { grid-column: 1; grid-row: 3; }
.yuanshen-stat-card-v0155.right-1 { grid-column: 3; grid-row: 1; }
.yuanshen-stat-card-v0155.right-2 { grid-column: 3; grid-row: 2; }
.yuanshen-stat-card-v0155.right-3 { grid-column: 3; grid-row: 3; }
.yuanshen-sigil-v0155 {
  position: relative;
  width: 60px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206,182,126,.4);
  color: var(--gold-bright);
  font-size: 30px;
  background: radial-gradient(circle,rgba(201,167,95,.08),transparent 62%),rgba(8,7,5,.42);
  text-shadow: 0 0 12px rgba(201,167,95,.35);
}
.yuanshen-sigil-v0155::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(206,182,126,.2);
  border-radius: 50%;
  animation: yuanshen-rotate-cw-v0155 10s linear infinite;
}
.yuanshen-stat-copy-v0155 { min-width: 0; display: grid; gap: 7px; }
.yuanshen-stat-copy-v0155 strong { color: var(--gold-bright); font-size: 18px; font-weight: 500; letter-spacing: .1em; }
.yuanshen-stat-copy-v0155 i { display: block; height: 1px; background: linear-gradient(90deg,rgba(206,182,126,.48),transparent); }
.yuanshen-stat-copy-v0155 small { color: var(--paper-muted); white-space: nowrap; }
.yuanshen-stat-copy-v0155 b { color: var(--gold); font-weight: 500; }
.yuanshen-core-v0155 {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.yuanshen-mandala-v0155 {
  position: relative;
  width: min(100%,340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.yuanshen-halo-v0155 {
  position: absolute;
  inset: 24%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(242,217,139,.42),rgba(215,183,100,.17) 38%,transparent 70%);
  filter: blur(7px);
  animation: yuanshen-halo-v0155 3.2s ease-in-out infinite;
}
.yuanshen-ring-v0155,
.yuanshen-orbit-v0155 { position: absolute; border-radius: 50%; }
.yuanshen-ring-v0155 { border: 1px solid rgba(215,183,100,.46); }
.yuanshen-ring-v0155::before,
.yuanshen-ring-v0155::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(242,217,139,.75);
}
.yuanshen-ring-v0155::before { left: 12%; top: 18%; }
.yuanshen-ring-v0155::after { right: 14%; bottom: 16%; }
.yuanshen-ring-v0155.outer { inset: 4%; border-style: dashed; border-color: rgba(215,183,100,.22); animation: yuanshen-rotate-cw-v0155 22s linear infinite; }
.yuanshen-ring-v0155.middle { inset: 13%; border-color: rgba(242,217,139,.56); animation: yuanshen-rotate-ccw-v0155 14s linear infinite; }
.yuanshen-ring-v0155.inner { inset: 22%; border-color: rgba(215,183,100,.36); animation: yuanshen-rotate-cw-v0155 10s linear infinite; }
.yuanshen-orbit-v0155 { inset: 8%; border: 1px dotted rgba(215,183,100,.3); animation: yuanshen-rotate-ccw-v0155 28s linear infinite; }
.yuanshen-orbit-v0155::before,
.yuanshen-orbit-v0155::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle,#fff3bd 0 18%,#d7b764 30%,transparent 72%);
  box-shadow: 0 0 14px rgba(242,217,139,.62);
}
.yuanshen-orbit-v0155::before { left: 5%; top: 47%; }
.yuanshen-orbit-v0155::after { right: 10%; top: 20%; }
.yuanshen-rays-v0155 {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  opacity: .58;
  background: repeating-conic-gradient(from 0deg,rgba(215,183,100,.08) 0deg 1deg,transparent 2deg 20deg);
  -webkit-mask-image: radial-gradient(circle,transparent 0 32%,#000 48%,transparent 74%);
  mask-image: radial-gradient(circle,transparent 0 32%,#000 48%,transparent 74%);
  animation: yuanshen-rotate-cw-v0155 36s linear infinite;
}
.yuanshen-cultivator-wrap-v0155 {
  position: relative;
  z-index: 3;
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 0 12px rgba(215,183,100,.2));
  animation: yuanshen-levitate-v0155 4s ease-in-out infinite;
}
.yuanshen-cultivator-v0155 { width: 100%; height: 100%; overflow: visible; }
.yuanshen-cultivator-v0155 .body { fill: #090806; stroke: rgba(215,183,100,.42); stroke-width: 1.2; }
.yuanshen-cultivator-v0155 .meridian {
  fill: none;
  stroke: rgba(242,217,139,.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  filter: drop-shadow(0 0 4px rgba(242,217,139,.7));
  animation: yuanshen-meridian-v0155 3.2s linear infinite;
}
.yuanshen-cultivator-v0155 .dantian {
  fill: rgba(242,217,139,.95);
  filter: drop-shadow(0 0 10px rgba(242,217,139,.95));
  transform-origin: center;
  animation: yuanshen-dantian-v0155 1.8s ease-in-out infinite;
}
.yuanshen-particle-v0155 {
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0d98e;
  box-shadow: 0 0 9px rgba(240,217,142,.72);
  opacity: 0;
  animation: yuanshen-qi-v0155 var(--duration,5s) ease-in-out var(--delay,0s) infinite;
}
.yuanshen-particle-v0155.p1 { left:34%;bottom:24%;--duration:4.6s;--delay:.4s; }
.yuanshen-particle-v0155.p2 { left:61%;bottom:22%;--duration:5.2s;--delay:1.2s; }
.yuanshen-particle-v0155.p3 { left:26%;bottom:34%;--duration:5.8s;--delay:2.1s; }
.yuanshen-particle-v0155.p4 { left:70%;bottom:37%;--duration:4.9s;--delay:2.8s; }
.yuanshen-particle-v0155.p5 { left:48%;bottom:18%;--duration:6.2s;--delay:3.6s; }
.yuanshen-core-copy-v0155 { position: relative; z-index: 4; margin-top: -18px; text-align: center; }
.yuanshen-core-copy-v0155 h4 { margin: 0; color: var(--gold-bright); font-size: 23px; font-weight: 500; letter-spacing: .11em; }
.yuanshen-core-copy-v0155 p { margin: 9px 0 5px; color: var(--paper-muted); }
.yuanshen-core-copy-v0155 span { display:block; color:#bcae8a; font-size:12px; letter-spacing:.12em; }
.yuanshen-core-copy-v0155 em { display:inline-block; margin-top:10px; padding:5px 10px; border:1px solid rgba(206,182,126,.3); color:var(--gold); font-size:11px; font-style:normal; letter-spacing:.08em; background:rgba(201,167,95,.05); }
.yuanshen-detail-v0155 {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(206,182,126,.2);
  color: var(--paper-muted);
  font-size: 12px;
  text-align: center;
}
@keyframes yuanshen-rotate-cw-v0155 { to { transform:rotate(360deg); } }
@keyframes yuanshen-rotate-ccw-v0155 { to { transform:rotate(-360deg); } }
@keyframes yuanshen-levitate-v0155 { 0%,100%{transform:translateY(3px) scale(1)}50%{transform:translateY(-6px) scale(1.018)} }
@keyframes yuanshen-halo-v0155 { 0%,100%{opacity:.52;transform:scale(.96)}50%{opacity:1;transform:scale(1.08)} }
@keyframes yuanshen-breathe-v0155 { 0%,100%{opacity:.35}50%{opacity:.75} }
@keyframes yuanshen-beams-v0155 { 0%{transform:scale(1) rotate(-2deg);opacity:.4}100%{transform:scale(1.035) rotate(2deg);opacity:.72} }
@keyframes yuanshen-qi-v0155 { 0%{opacity:0;transform:translate3d(0,10px,0) scale(.6)}20%{opacity:.9}70%{opacity:.55}100%{opacity:0;transform:translate3d(14px,-115px,0) scale(1.2)} }
@keyframes yuanshen-meridian-v0155 { to { stroke-dashoffset:-80; } }
@keyframes yuanshen-dantian-v0155 { 0%,100%{opacity:.7;transform:scale(.78)}50%{opacity:1;transform:scale(1.25)} }
@media (max-width: 620px) {
  .yuanshen-stage-v0155 { min-height:0; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto; gap:6px; padding:10px 7px 58px; }
  .yuanshen-core-v0155 { grid-column:1 / 4; grid-row:auto; order:1; min-height:294px; }
  .yuanshen-stat-card-v0155.left-1,
  .yuanshen-stat-card-v0155.left-2,
  .yuanshen-stat-card-v0155.left-3,
  .yuanshen-stat-card-v0155.right-1,
  .yuanshen-stat-card-v0155.right-2,
  .yuanshen-stat-card-v0155.right-3 { grid-column:auto;grid-row:auto; }
  .yuanshen-stat-card-v0155.left-1 { order:2; }
  .yuanshen-stat-card-v0155.left-2 { order:3; }
  .yuanshen-stat-card-v0155.right-1 { order:4; }
  .yuanshen-stat-card-v0155.right-2 { order:5; }
  .yuanshen-stat-card-v0155.right-3 { order:6; }
  .yuanshen-stat-card-v0155.left-3 { order:7; }
  .yuanshen-stat-card-v0155 { aspect-ratio:1 / .92; min-height:0; grid-template-columns:1fr; align-content:center; justify-items:center; gap:4px; padding:6px 4px; text-align:center; }
  .yuanshen-sigil-v0155 { width:36px;font-size:19px; }
  .yuanshen-stat-copy-v0155 { width:100%;gap:3px;justify-items:center; }
  .yuanshen-stat-copy-v0155 strong { font-size:12px;letter-spacing:.04em; }
  .yuanshen-stat-copy-v0155 i { width:74%;background:linear-gradient(90deg,transparent,rgba(206,182,126,.42),transparent); }
  .yuanshen-stat-copy-v0155 small { max-width:100%;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap; }
  .yuanshen-stat-copy-v0155 b { font-size:9px; }
  .yuanshen-mandala-v0155 { width:min(100%,257px); }
  .yuanshen-core-copy-v0155 h4 { font-size:16px; }
  .yuanshen-core-copy-v0155 p { margin-top:7px; font-size:10px; }
  .yuanshen-core-copy-v0155 span { font-size:9px; }
  .yuanshen-detail-v0155 { left:8px;right:8px;bottom:7px;font-size:9px; }
}
@media (prefers-reduced-motion: reduce) {
  .cave-scene-b01 *,
  .cave-scene-b01 *::before,
  .cave-scene-b01 *::after,
  .yuanshen-shell-v0155 *,
  .yuanshen-shell-v0155 *::before,
  .yuanshen-shell-v0155 *::after { animation-duration:.001ms !important;animation-iteration-count:1 !important; }
  .yuanshen-particle-v0155 { display:none; }
}


/* Legacy regression marker retained: V0.15.4 FIX4 CACHE24 */

/* ============================================================
   B-COMBAT01 · 五行战力榜与挑战战报候选界面
   ============================================================ */
.battle-ranking-rule-bcombat01 {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(201,167,95,.3);
  border-left: 3px solid rgba(201,167,95,.7);
  background: linear-gradient(90deg,rgba(201,167,95,.09),rgba(14,13,11,.18));
}
.battle-ranking-rule-bcombat01 strong { color: var(--gold-bright); font-size: 12px; font-weight: 500; }
.battle-ranking-rule-bcombat01 span { color: var(--paper-muted); font-size: 10px; line-height: 1.65; }
.battle-ranking-row-bcombat01 { min-height: 92px; }
.battle-element-mark-bcombat01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  margin-left: 7px;
  padding: 0 5px;
  border: 1px solid rgba(206,182,126,.36);
  color: var(--gold-bright);
  background: rgba(201,167,95,.07);
  font-size: 9px;
  font-weight: 500;
  vertical-align: 1px;
}
.battle-element-mark-bcombat01.element-metal { color:#e7e1cd; border-color:rgba(219,215,199,.5); }
.battle-element-mark-bcombat01.element-wood { color:#96c5a2; border-color:rgba(94,163,111,.55); }
.battle-element-mark-bcombat01.element-water { color:#94bdd7; border-color:rgba(86,141,177,.58); }
.battle-element-mark-bcombat01.element-fire { color:#e6a18e; border-color:rgba(183,79,61,.62); }
.battle-element-mark-bcombat01.element-earth { color:#d3b47b; border-color:rgba(167,125,65,.62); }

.spirit-root-chip-v1 { white-space: nowrap; }
.hero-spirit-element-v1 { margin-left:1px; font-weight:500; }
.hero-spirit-element-v1.element-none { color:#bdaF8c; }
.hero-spirit-element-v1.element-metal { color:#e4dfcf; }
.hero-spirit-element-v1.element-wood { color:#79b78b; }
.hero-spirit-element-v1.element-water { color:#79add1; }
.hero-spirit-element-v1.element-fire { color:#e06f5f; text-shadow:0 0 7px rgba(194,64,49,.22); }
.hero-spirit-element-v1.element-earth { color:#d0aa68; }
.battle-rank-stats-bcombat01 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 5px;
}
.battle-rank-stats-bcombat01 span {
  color: #a99f8b;
  font-size: 9px;
  white-space: nowrap;
}
.battle-rank-challenge-bcombat01 { min-width: 68px; margin-top: 6px; padding: 7px 10px; }

.battle-challenge-backdrop-bcombat01 { z-index: 80; overflow-y: auto; align-items: start; }
.battle-challenge-modal-bcombat01 {
  position: relative;
  width: min(900px,100%);
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow: auto;
  padding: 28px;
  text-align: left;
  border-color: rgba(206,182,126,.72);
  background:
    radial-gradient(circle at 50% 0,rgba(110,91,48,.14),transparent 34%),
    linear-gradient(160deg,#1d1913,#121310 75%);
}
.battle-challenge-modal-bcombat01 > h3 { margin: 0 0 16px; color:var(--gold-bright); text-align:center; font-weight:500; letter-spacing:.16em; }
.battle-challenge-modal-bcombat01 .modal-seal { text-align:center; }
.battle-versus-grid-bcombat01,
.battle-playback-head-bcombat01 {
  display: grid;
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
  gap: 12px;
  align-items: stretch;
}
.battle-combatant-card-bcombat01 {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(206,182,126,.28);
  background: rgba(8,9,8,.28);
}
.battle-combatant-card-bcombat01 > span { color:#918874; font-size:9px; letter-spacing:.18em; }
.battle-combatant-card-bcombat01 > strong { color:var(--gold-bright); font-size:17px; font-weight:500; }
.battle-combatant-card-bcombat01 > small { color:#b8ad96; font-size:10px; line-height:1.55; }
.battle-combatant-card-bcombat01 > p { margin:5px 0 0; color:#aaa18d; font-size:10px; line-height:1.75; }
.battle-combatant-stats-bcombat01 { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-top:5px; }
.battle-combatant-stats-bcombat01 i {
  padding:5px 6px;
  border:1px solid rgba(206,182,126,.15);
  color:#c9bea5;
  background:rgba(201,167,95,.035);
  font-size:9px;
  font-style:normal;
}
.battle-versus-mark-bcombat01 {
  align-self:center;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid rgba(162,60,49,.62);
  color:#e8b5a0;
  background:rgba(116,39,32,.13);
  font-size:18px;
  font-weight:500;
  transform:rotate(45deg);
}
.battle-versus-mark-bcombat01::first-letter { transform:rotate(-45deg); }
.battle-element-relation-bcombat01 {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:12px;
  padding:9px 12px;
  border:1px solid rgba(85,132,112,.34);
  background:rgba(50,102,80,.08);
  text-align:center;
}
.battle-element-relation-bcombat01 strong { color:#b7d6c3; font-weight:500; }
.battle-element-relation-bcombat01 span { color:#a89f8b; font-size:10px; }
.battle-risk-note-bcombat01 {
  display:grid;
  gap:5px;
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(160,65,54,.4);
  border-left:3px solid rgba(160,65,54,.75);
  background:rgba(112,41,34,.1);
}
.battle-risk-note-bcombat01 strong { color:#efc1ae; font-weight:500; }
.battle-risk-note-bcombat01 p { margin:0; color:#d1c4ac; font-size:12px; line-height:1.7; }
.battle-risk-note-bcombat01 small { color:#918875; font-size:9px; line-height:1.6; }
.battle-playback-modal-bcombat01 { width:min(920px,100%); }
.battle-playback-controls-bcombat01 {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  margin:12px 0 9px;
}
.battle-playback-controls-bcombat01 .active { border-color:var(--gold); color:var(--gold-bright); }
.battle-log-bcombat01 {
  display:grid;
  gap:8px;
  max-height:52vh;
  overflow:auto;
  padding:10px;
  border:1px solid rgba(206,182,126,.2);
  background:rgba(5,6,5,.3);
  scroll-behavior:smooth;
}
.battle-action-bcombat01 {
  display:grid;
  gap:6px;
  padding:11px 12px;
  border:1px solid rgba(206,182,126,.19);
  border-left:3px solid rgba(201,167,95,.44);
  background:linear-gradient(90deg,rgba(201,167,95,.045),rgba(0,0,0,.06));
}
.battle-action-bcombat01.is-finisher { border-color:rgba(171,69,56,.52); border-left-color:#ad5546; background:rgba(112,38,32,.1); }
.battle-action-bcombat01 header { display:flex; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(206,182,126,.12); padding-bottom:5px; }
.battle-action-bcombat01 header span { color:#918875; font-size:9px; }
.battle-action-bcombat01 header strong { color:var(--gold-bright); font-size:11px; font-weight:500; }
.battle-action-bcombat01 p { margin:0; color:#c1b6a0; font-size:11px; line-height:1.7; }
.battle-element-line-bcombat01 { color:#9fc7b0 !important; }
.battle-damage-line-bcombat01,
.battle-hp-line-bcombat01 { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.battle-damage-line-bcombat01 strong { color:#e7bd93; font-size:13px; }
.battle-damage-line-bcombat01 span,
.battle-hp-line-bcombat01 span { color:#8e8573; font-size:9px; }
.battle-hp-line-bcombat01 { padding:6px 8px; background:rgba(0,0,0,.2); }
.battle-hp-line-bcombat01 strong { color:#d8ceb8; font-size:11px; }
.battle-low-health-bcombat01 { color:#dda795; }
.battle-defeated-bcombat01 { color:#efc097; font-weight:500; }
.battle-settlement-bcombat01 { display:grid; justify-items:center; gap:10px; padding:20px 12px 8px; text-align:center; }
.battle-settlement-bcombat01 h3 { margin:0; color:var(--gold-bright); font-weight:500; letter-spacing:.12em; }
.battle-settlement-bcombat01 p { margin:0; }
.battle-settlement-bcombat01 > small { color:#938b79; font-size:9px; line-height:1.6; }
.battle-reward-grid-bcombat01 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; width:100%; }
.battle-reward-grid-bcombat01 > div { display:grid; gap:4px; padding:10px; border:1px solid rgba(206,182,126,.22); background:rgba(201,167,95,.045); }
.battle-reward-grid-bcombat01 span { color:#918875; font-size:9px; }
.battle-reward-grid-bcombat01 strong { color:#e3d09a; font-size:13px; }

@media (max-width:720px) {
  .battle-ranking-row-bcombat01 { min-height:0; }
  .battle-challenge-backdrop-bcombat01 { padding:8px; }
  .battle-challenge-modal-bcombat01 { max-height:calc(100vh - 16px); padding:23px 12px 15px; }
  .battle-versus-grid-bcombat01,
  .battle-playback-head-bcombat01 { grid-template-columns:1fr; gap:7px; }
  .battle-versus-mark-bcombat01 { width:36px; height:36px; margin:auto; font-size:13px; }
  .battle-combatant-card-bcombat01 { padding:10px; }
  .battle-log-bcombat01 { max-height:48vh; padding:6px; }
  .battle-action-bcombat01 { padding:9px; }
  .battle-damage-line-bcombat01,
  .battle-hp-line-bcombat01 { align-items:flex-start; flex-direction:column; gap:3px; }
  .battle-reward-grid-bcombat01 { grid-template-columns:1fr; }
}
.battle-self-summary-bcombat01 {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.battle-self-summary-bcombat01 > div {
  display:grid;
  gap:3px;
  padding:9px 10px;
  border:1px solid rgba(85,145,116,.3);
  background:rgba(60,113,87,.07);
}
.battle-self-summary-bcombat01 span { color:#8f8a78; font-size:9px; }
.battle-self-summary-bcombat01 strong { color:#c3d9ca; font-size:12px; font-weight:500; }
@media (max-width:620px) { .battle-self-summary-bcombat01 { grid-template-columns:1fr 1fr; } }
.battle-blocked-reason-bcombat01 { color:#e3a18e !important; font-weight:500; }

@media (max-width:420px){.cave-storage-grid-b01{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:3px}.cave-item-svg{left:18%;top:3%;width:64%;height:55%}.cave-item-name-b01{font-size:5.5px}.cave-item-type-b01{font-size:4.8px}.cave-item-quantity-b01{font-size:6.5px}}

/* V1.0 FIX1: mobile Yuan-shen core reduced to 90%; cave storage restored to 6x6. */

/* V1.0 FIX2: ranked-battle privacy and separate battle-report popup. */
.battle-combatant-card-compact-fix2 {
  min-height: 0;
  align-content: start;
}
.battle-combatant-public-fix2 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin-top: 10px;
}
.battle-combatant-public-fix2 i {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(183,155,88,.28);
  background: rgba(12,11,9,.34);
  color: #c6bda8;
  font-style: normal;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
.battle-combatant-public-fix2 b {
  color: #817965;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .12em;
}
.battle-report-backdrop-fix2 {
  z-index: 85;
}
.battle-report-modal-fix2 {
  width: min(860px,100%);
  border-color: rgba(206,182,126,.58);
  box-shadow: 0 24px 70px rgba(0,0,0,.72), inset 0 0 48px rgba(201,167,95,.035);
}
.battle-report-title-fix2 {
  margin: 0 0 14px;
  color: var(--gold-bright);
  text-align: center;
  font-weight: 500;
  letter-spacing: .18em;
}
@media (max-width:620px) {
  .battle-combatant-public-fix2 { grid-template-columns: 1fr; gap: 4px; }
  .battle-combatant-public-fix2 i { padding: 5px 4px; }
  .battle-report-modal-fix2 { max-height: calc(100vh - 14px); padding: 22px 10px 12px; }
}

/* V1.0 FIX3: compact duel summary, expanded battle log, compact controls. */
.battle-report-modal-fix2.battle-playback-modal-bcombat01 {
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  gap: 8px;
  height: min(860px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 24px 14px 12px;
}
.battle-report-modal-fix2 .battle-report-title-fix2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.battle-duel-summary-fix3 {
  display: grid;
  grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr);
  align-items: stretch;
  gap: 7px;
  min-height: 0;
}
.battle-duel-combatant-fix3 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(54px,.7fr);
  grid-template-areas:
    "label stats"
    "name stats";
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(183,155,88,.28);
  background: rgba(12,11,9,.34);
}
.battle-duel-combatant-fix3.is-opponent { text-align: right; }
.battle-duel-side-label-fix3 {
  grid-area: label;
  color: #817965;
  font-size: 8px;
  letter-spacing: .12em;
}
.battle-duel-combatant-fix3 > strong {
  grid-area: name;
  overflow: hidden;
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.battle-duel-combatant-fix3 .battle-duel-stat-fix3:first-of-type { align-self: end; }
.battle-duel-stat-fix3 {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  color: #c7bea9;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}
.battle-duel-stat-fix3 b { color: #817965; font-weight: 400; }
.battle-duel-stat-fix3 em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.battle-duel-versus-fix3 {
  align-self: center;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(162,60,49,.62);
  color: #e8b5a0;
  background: rgba(116,39,32,.13);
  font-size: 13px;
  transform: rotate(45deg);
}
.battle-duel-versus-fix3::first-letter { transform: rotate(-45deg); }
.battle-log-bcombat01.battle-log-fix3 {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.battle-playback-controls-bcombat01.battle-controls-fix3 {
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(206,182,126,.14);
}
.battle-controls-fix3 button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.battle-controls-fix3 [data-battle-skip] { flex: 0 1 auto; }

@media (max-width:620px) {
  .battle-report-modal-fix2.battle-playback-modal-bcombat01 {
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    gap: 6px;
    padding: 20px 7px 7px;
  }
  .battle-report-modal-fix2 .battle-report-title-fix2 { font-size: 14px; }
  .battle-duel-summary-fix3 { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 4px; }
  .battle-duel-combatant-fix3 {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "name" "stats";
    gap: 2px;
    padding: 6px 5px;
    text-align: center;
  }
  .battle-duel-combatant-fix3.is-opponent { text-align: center; }
  .battle-duel-combatant-fix3 > strong { font-size: 13px; }
  .battle-duel-stat-fix3 {
    grid-column: 1;
    justify-content: center;
    gap: 4px;
    font-size: 8px;
  }
  .battle-duel-stat-fix3 + .battle-duel-stat-fix3::before { content: "·"; color: #655f51; margin-right: 1px; }
  .battle-duel-versus-fix3 { width: 26px; height: 26px; font-size: 10px; }
  .battle-log-bcombat01.battle-log-fix3 { padding: 5px; }
  .battle-playback-controls-bcombat01.battle-controls-fix3 { gap: 4px; padding-top: 5px; }
  .battle-controls-fix3 button { min-height: 31px; padding: 4px 9px; font-size: 10px; }
}


/* V1.2 CACHE37 · 只给“雷/冰/风”属性字着色，容器与其余文字保持原UI颜色。 */
.mutation-attribute-v12 { font: inherit; font-weight: 600; }
.mutation-attribute-v12.mutation-thunder { color:#a879ff; text-shadow:0 0 8px rgba(132,79,230,.34); }
.mutation-attribute-v12.mutation-ice { color:#72c7ff; text-shadow:0 0 8px rgba(65,151,220,.26); }
.mutation-attribute-v12.mutation-wind { color:#f4f5f2; text-shadow:0 0 7px rgba(255,255,255,.18); }
.mutation-attribute-v12.mutation-none { color:inherit; text-shadow:none; }
.mutation-badge-v12 {
  display:inline-flex;align-items:center;gap:1px;height:18px;margin-left:5px;padding:0 5px;
  border:1px solid rgba(206,182,126,.24);background:rgba(255,255,255,.025);
  color:var(--paper-muted);font-size:9px;font-weight:500;vertical-align:1px;
}
.battle-talent-line-v12 { color:#cdb9e8; font-size:10px; line-height:1.55; }

/* V1.7.9 CACHE59 UIFIX3 · 元神手机端常驻人物属性栏（独立于装备槽卡片） */
.yuanshen-live-rail-v178{display:none}
@media (max-width:620px){
  .yuanshen-stage-v0155{position:relative;padding-top:10px}
  .yuanshen-core-v0155{min-height:378px}
  .yuanshen-live-rail-v178{
    position:absolute;
    z-index:8;
    top:42px;
    width:clamp(64px,19vw,100px);
    height:264px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:8px;
    pointer-events:none;
  }
  .yuanshen-live-rail-v178.left{left:7px}
  .yuanshen-live-rail-v178.right{right:7px}
  .yuanshen-live-row-v178{
    position:relative;
    min-height:74px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:8px 6px;
    border:1px solid rgba(206,182,126,.3);
    background:linear-gradient(180deg,rgba(17,14,9,.88),rgba(7,7,5,.78));
    box-shadow:inset 0 0 18px rgba(201,167,95,.035),0 5px 18px rgba(0,0,0,.22);
    text-align:center;
    overflow:hidden;
  }
  .yuanshen-live-rail-v178.left .yuanshen-live-row-v178{border-left:2px solid rgba(218,184,91,.72)}
  .yuanshen-live-rail-v178.right .yuanshen-live-row-v178{border-right:2px solid rgba(218,184,91,.72)}
  .yuanshen-live-row-v178::after{
    content:"";
    position:absolute;
    left:18%;right:18%;bottom:0;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(232,205,128,.45),transparent);
  }
  .yuanshen-live-row-v178 span{
    color:#b8aa86;
    font-size:10px;
    line-height:1.15;
    letter-spacing:.08em;
    white-space:nowrap;
  }
  .yuanshen-live-row-v178 span::after{content:"："}
  .yuanshen-live-row-v178 strong{
    color:#ecd17f;
    font-size:clamp(13px,3.4vw,17px);
    line-height:1.1;
    font-weight:600;
    font-variant-numeric:tabular-nums;
    text-shadow:0 0 9px rgba(224,190,93,.2);
    white-space:nowrap;
  }
  .yuanshen-live-row-v178 small{
    display:block;
    color:#80775f;
    font-size:6.5px;
    line-height:1.25;
    white-space:normal;
  }
  .yuanshen-live-row-v178.attack strong{color:#edbd7f}
  .yuanshen-live-row-v178.defense strong{color:#d9d0aa}
  .yuanshen-live-row-v178.vitality strong{color:#c99a91}
  .yuanshen-live-row-v178.agility strong{color:#a8cbbb}
  .yuanshen-live-row-v178.power strong{color:#f0d68b}
  .yuanshen-live-row-v178.bonus strong{color:#c9a4e7}
}
@media (max-width:390px){
  .yuanshen-core-v0155{min-height:345px}
  .yuanshen-live-rail-v178{top:35px;height:238px;width:62px;gap:6px}
  .yuanshen-live-rail-v178.left{left:4px}.yuanshen-live-rail-v178.right{right:4px}
  .yuanshen-live-row-v178{min-height:68px;padding:6px 3px}
  .yuanshen-live-row-v178 span{font-size:8px}
  .yuanshen-live-row-v178 strong{font-size:12px}
  .yuanshen-live-row-v178 small{font-size:5.5px}
}


/* V1.7.9 CACHE59 UIFIX3 · 元神间距与功法道卷手机排版 */
#primordialSpiritRootV1 .yuanshen-stage-v0155{
  padding-bottom:14px;
}
#primordialSpiritRootV1 .yuanshen-detail-v0155{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  min-height:30px;
  margin:0 10px 5px;
  padding:6px 9px;
  border-top:1px solid rgba(206,182,126,.18);
  line-height:1.45;
}
.technique-book-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  min-width:96px;
  align-content:center;
}
.technique-book-actions button{
  width:100%;
  min-width:0;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  line-height:1.2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.technique-book-redeem{min-height:40px;padding:8px 10px}
@media(max-width:760px){
  #primordialSpiritRootV1 .yuanshen-stage-v0155{padding-bottom:7px}
  #primordialSpiritRootV1 .yuanshen-detail-v0155{
    min-height:24px;
    margin:0 7px 3px;
    padding:4px 7px;
    font-size:8px;
  }
  .equipment-backpack-inline-bequipment01{margin-top:3px!important}
  .technique-book-card{
    grid-template-columns:36px minmax(0,1fr)!important;
    align-items:center;
  }
  .technique-book-actions{
    grid-column:1 / -1;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    min-width:0;
    gap:6px;
    margin-top:3px;
  }
  .technique-book-actions button{
    min-height:40px;
    padding:7px 8px;
    font-size:12px;
  }
}
@media(max-width:380px){
  .technique-book-card{grid-template-columns:32px minmax(0,1fr)!important}
  .technique-book-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .technique-book-action,.technique-book-redeem{grid-column:auto!important;width:100%!important}
  .technique-book-actions button{font-size:11px;padding-inline:5px}
}

/* V1.7.9 CACHE59 CAVEUI1 · 洞府底部功能区默认显示 */
.cave-workbench-b01[hidden],
.cave-workbench-b01 [data-cave-workbench-panel][hidden] {
  display: none !important;
}
.cave-workbench-tabs-b01 button.active {
  color: var(--gold-bright);
  border-color: rgba(230,200,121,.62);
  background: rgba(201,167,95,.12);
}

/* CACHE85 · 宗门独占视图：进入宗门后隐藏角色HUD与其他游戏区，把可用空间交给B-SECT03。 */
body.sect-focus-mode{overflow-x:hidden}
.dashboard-reforge.sect-focus-mode{display:block!important;width:100%!important;max-width:none!important;padding:0 0 92px!important}
.dashboard-reforge.sect-focus-mode>.hero-hud,
.dashboard-reforge.sect-focus-mode>[data-mobile-screen]:not([data-mobile-screen="sect"]),
.dashboard-reforge.sect-focus-mode>.double-panel-grid,
.dashboard-reforge.sect-focus-mode>#opportunitySection{display:none!important}
.dashboard-reforge.sect-focus-mode>#sectSystemSection{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:8px!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:calc(100dvh - 100px)}
.dashboard-reforge.sect-focus-mode>#sectSystemSection>.panel-title{display:none!important}
.dashboard-reforge.sect-focus-mode>#sectSystemSection #sectV2RootBSect01{width:100%;max-width:none;min-height:calc(100dvh - 112px)}
@media(min-width:761px){.dashboard-reforge.sect-focus-mode{padding:8px 12px 104px!important}.dashboard-reforge.sect-focus-mode>#sectSystemSection{padding:0!important}}

/* CACHE113 battle hit/evasion playback */
.battle-action-bcombat01.is-miss-v210{border-color:rgba(132,167,202,.38)}
.battle-miss-line-v210{margin:8px 0;padding:9px 10px;border-left:3px solid rgba(132,167,202,.75);background:rgba(52,78,101,.16);color:#b7cbe0;font-size:12px;line-height:1.6}

/* V2.5.0 CACHE139 · 洞府六框直达：炼丹/藏经/建筑/灵兽改为主景弹窗，取消底部重复工作台 */
.cave-scene-feature-entry-b01 { cursor: pointer; }
.cave-scene-feature-locked-b01 { cursor: default; user-select: none; }
.cave-action-bar-compact-b01 { grid-template-columns: 1.15fr 1fr; }
.cave-feature-backdrop-b01 { z-index: 42; padding: 16px; }
.cave-feature-modal-b01 {
  position: relative;
  width: min(900px, 96vw);
  max-height: min(88vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(206,182,126,.46);
  background:
    radial-gradient(circle at 72% 12%,rgba(128,154,106,.08),transparent 28%),
    linear-gradient(145deg,rgba(24,23,18,.99),rgba(10,11,9,.995));
  text-align: left;
  box-shadow: 0 22px 60px rgba(0,0,0,.72), inset 0 0 0 1px rgba(0,0,0,.72);
}
.cave-feature-modal-b01::before,
.cave-feature-modal-b01::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: .72;
}
.cave-feature-modal-b01::before { left: 7px; top: 7px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.cave-feature-modal-b01::after { right: 7px; bottom: 7px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.cave-feature-close-b01 { z-index: 5; right: 14px; top: 14px; }
.cave-feature-head-b01 {
  position: sticky;
  z-index: 4;
  top: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 64px 15px 18px;
  border-bottom: 1px solid rgba(206,182,126,.23);
  background: linear-gradient(90deg,rgba(112,78,36,.18),rgba(18,18,14,.97) 54%,rgba(13,15,12,.98));
  box-shadow: 0 9px 22px rgba(0,0,0,.28);
}
.cave-feature-seal-b01 {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210,181,112,.48);
  color: var(--gold-bright);
  background: radial-gradient(circle,rgba(201,167,95,.12),rgba(10,11,9,.5));
  font-size: 23px;
  box-shadow: inset 0 0 16px rgba(201,167,95,.05), 0 0 16px rgba(201,167,95,.04);
}
.cave-feature-head-b01 > div { min-width: 0; }
.cave-feature-head-b01 > div > span { color: var(--gold); font-size: 10px; letter-spacing: .15em; }
.cave-feature-head-b01 h3 { margin: 3px 0 1px; color: var(--paper); font-size: 23px; font-weight: 500; letter-spacing: .12em; }
.cave-feature-head-b01 p { margin: 0; color: var(--paper-muted); font-size: 10px; }
.cave-feature-body-b01 {
  position: relative;
  z-index: 2;
  max-height: calc(min(88vh, 920px) - 94px);
  overflow: auto;
  padding: 18px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(206,182,126,.4) rgba(255,255,255,.03);
}
.cave-feature-body-b01 > .subsection-title:first-child { margin-top: 0; }
.cave-feature-body-b01 .cave-building-grid,
.cave-feature-body-b01 .cave-recipe-grid { margin-bottom: 2px; }
.cave-feature-body-b01 #spiritBeastRootV267 { min-height: 220px; }
.cave-feature-body-b01 .sbv267-shell { margin: 0; }
.cave-feature-body-b01 .technique-library-v1,
.cave-feature-body-b01 .technique-library-panel,
.cave-feature-body-b01 [class*="technique-library"] { max-width: none; }

@media (max-width: 760px) {
  .cave-feature-backdrop-b01 { padding: 10px; align-items: center; }
  .cave-feature-modal-b01 { width: calc(100vw - 20px); max-height: 86vh; }
  .cave-feature-head-b01 { min-height: 78px; grid-template-columns: 45px minmax(0,1fr); gap: 10px; padding: 12px 52px 11px 12px; }
  .cave-feature-seal-b01 { width: 40px; height: 40px; font-size: 18px; }
  .cave-feature-head-b01 > div > span { font-size: 8px; }
  .cave-feature-head-b01 h3 { font-size: 18px; }
  .cave-feature-head-b01 p { font-size: 8px; }
  .cave-feature-body-b01 { max-height: calc(86vh - 78px); padding: 12px; }
  .cave-feature-close-b01 { right: 9px; top: 9px; }
  .cave-action-bar-compact-b01 { grid-template-columns: 1fr 1fr; }
}
