/* ==========================================================================
   晨曦谷 Dawnvale — UI 样式
   设计语言：半透明深色毛玻璃 + 金色点缀 · 轻幻想 · 圆角 · 衬线中文标题
   ========================================================================== */

:root {
  --gold: #e3c77b;
  --gold-strong: #f0d896;
  --gold-dim: rgba(227, 199, 123, 0.45);
  --panel: rgba(20, 24, 38, 0.82);
  --panel-light: rgba(36, 42, 64, 0.72);
  --line: rgba(227, 199, 123, 0.28);
  --ink: #eef0e9;
  --ink-dim: #b9bfae;
  --r3: #5aa7d6;
  --r4: #a678e0;
  --r5: #e3a94d;
  --hp: #e35b5b;
  --stamina: #f4d35e;
  --radius: 12px;
  --serif: 'Songti SC', 'STSong', 'Noto Serif SC', serif;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0d16; }
#app { position: fixed; inset: 0; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#ui {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
  font-family: var(--sans);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  font-size: 14px;
}
#ui * { box-sizing: border-box; }
#ui .hidden { display: none !important; }

/* ---------- 通用按钮 ---------- */
#ui button {
  appearance: none; -webkit-appearance: none;
  font-family: var(--sans);
  border: none; background: none; color: inherit; cursor: pointer;
  outline: none;
}
.btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  color: var(--ink);
  font-size: 15px; letter-spacing: .14em;
  transition: all .18s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(227, 199, 123, .16);
  box-shadow: 0 0 16px rgba(227, 199, 123, .3);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn.primary {
  background: linear-gradient(180deg, var(--gold-strong), #c9a24a);
  color: #251d09; font-weight: 600; border-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #fbe7ab, #d8b25c); box-shadow: 0 0 20px rgba(227,199,123,.5); }
.btn.small { padding: 6px 16px; font-size: 13px; letter-spacing: .08em; }
.btn.danger { border-color: rgba(227,91,91,.5); }
.btn.danger:hover { background: rgba(227,91,91,.18); border-color: #e35b5b; box-shadow: 0 0 14px rgba(227,91,91,.3); }
.btn:disabled { opacity: .32; cursor: not-allowed; filter: grayscale(.7); }

/* ---------- 内联图标（线性描边 · 随字色） ---------- */
.ui-ic {
  width: 1.1em; height: 1.1em; flex: none;
  display: inline-block; vertical-align: -0.16em;
  stroke: currentColor; fill: none;
  pointer-events: none;
}
.btn .ui-ic { margin-right: .55em; vertical-align: -0.18em; }
.menu-buttons .btn .ui-ic { color: var(--gold-strong); }
.menu-buttons .btn.primary .ui-ic,
.btn.primary .ui-ic { color: inherit; }
.btn.small .ui-ic { margin-right: .4em; }

/* ==========================================================================
   主菜单
   ========================================================================== */
#main-menu {
  position: absolute; inset: 0; z-index: 100; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(10,16,34,.35) 0%, rgba(10,14,30,.25) 40%, rgba(10,14,28,.72) 100%),
    center/cover no-repeat url('../assets/ui/menu_bg.jpg'),
    linear-gradient(165deg, #1a2340, #34284c);
  overflow: hidden;
  animation: menuKen 26s ease-in-out infinite alternate;
}
@keyframes menuKen { from { background-size: auto, 108% auto, auto; background-position: center, 46% 42%, center; } to { background-size: auto, 118% auto, auto; background-position: center, 54% 58%, center; } }
#main-menu .glow-orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle, rgba(255, 236, 190, .8), rgba(255, 236, 190, 0) 70%);
  animation: orbFloat 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .55; }
  50% { transform: translateY(-34px) scale(1.15); opacity: .95; }
}
#main-menu .menu-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(6, 8, 16, .55) 100%);
}
.menu-title-block { text-align: center; position: relative; margin-bottom: 56px; animation: menuIn 1s ease both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.menu-title {
  font-family: var(--serif);
  font-size: 84px; font-weight: 700; letter-spacing: .22em; margin: 0 0 14px .22em;
  background: linear-gradient(180deg, #fff7e2 10%, var(--gold) 55%, #b98d3e 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(227, 199, 123, .35));
}
.menu-sub {
  font-family: var(--serif); font-size: 17px; letter-spacing: .5em; margin-left: .5em;
  color: rgba(240, 232, 210, .82);
}
.menu-sub::before, .menu-sub::after { content: '—'; color: var(--gold-dim); margin: 0 14px; }
.menu-buttons { display: flex; flex-direction: column; gap: 16px; width: 264px; animation: menuIn 1s .25s ease both; }
.menu-buttons .btn { width: 100%; padding: 13px 0; font-size: 16px; }
.menu-foot {
  position: absolute; bottom: 22px; width: 100%; text-align: center;
  font-size: 12px; letter-spacing: .18em; color: rgba(233, 236, 226, .38);
}

/* ==========================================================================
   HUD
   ========================================================================== */
#hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }

/* ---- 小地图（左上） ---- */
#minimap-box { position: absolute; top: 18px; left: 18px; text-align: center; }
#minimap {
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 0 4px rgba(10, 13, 22, .45), 0 4px 18px rgba(0, 0, 0, .5);
  background: rgba(14, 18, 30, .6);
  display: block;
}
#area-name {
  display: inline-block; margin-top: 8px; padding: 3px 16px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .22em;
  color: #f2ecd9; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---- 任务追踪器（右上） ---- */
#quest-tracker {
  position: absolute; top: 18px; right: 18px; width: 272px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px 12px;
  transition: opacity .3s;
}
#quest-tracker .qt-name {
  font-family: var(--serif); font-size: 14px; letter-spacing: .12em; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
#quest-tracker .qt-name::before { content: '◆'; font-size: 10px; }
#quest-tracker .qt-text { margin-top: 6px; font-size: 14px; color: var(--ink); }
#quest-tracker .qt-dist { color: var(--gold); font-size: 12px; margin-left: 6px; }
#quest-tracker .qt-hint { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--ink-dim); }

/* ---- 队伍（右侧中） ---- */
#party-col {
  position: absolute; right: 18px; top: 50%; transform: translateY(-58%);
  display: flex; flex-direction: column; gap: 16px;
}
.party-slot { position: relative; width: 66px; text-align: center; transition: transform .15s; }
.party-slot .avatar {
  position: relative; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  transition: all .18s ease;
}
.party-slot .avatar .elem-badge {
  position: absolute; top: -4px; left: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(12, 15, 26, .9); font-size: 10px; line-height: 18px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .3);
}
.party-slot .keyhint {
  position: absolute; top: -2px; right: 0; width: 16px; height: 16px; border-radius: 4px;
  font-size: 10px; line-height: 15px; color: var(--gold);
  background: rgba(12, 15, 26, .85); border: 1px solid var(--gold-dim);
}
.party-slot .mini-hp {
  width: 46px; height: 4px; margin: 6px auto 0; border-radius: 2px;
  background: rgba(0, 0, 0, .55); overflow: hidden; border: 1px solid rgba(255,255,255,.14);
}
.party-slot .mini-hp i { display: block; height: 100%; background: linear-gradient(90deg, #d8544f, #f08a63); transition: width .25s; }
.party-slot.active .avatar {
  width: 62px; height: 62px; font-size: 26px;
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(227, 199, 123, .65), 0 3px 12px rgba(0, 0, 0, .5);
}
.party-slot.active { transform: translateX(-4px); }
.party-slot.dead .avatar { filter: grayscale(1) brightness(.55); }

/* ---- 血条 / 体力条（底部中偏右） ---- */
#vitals { position: absolute; bottom: 34px; left: 50%; transform: translateX(-14%); width: 330px; }
#hp-bar {
  position: relative; height: 18px; border-radius: 9px;
  background: rgba(8, 10, 18, .72); border: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
#hp-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #b8332e, #e35b5b 55%, #f2926b);
  border-radius: 9px 3px 3px 9px;
  transition: width .22s ease;
}
#hp-text {
  position: absolute; inset: 0; text-align: center; line-height: 17px;
  font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
#stamina-bar {
  margin-top: 7px; height: 7px; width: 78%; margin-left: 11%;
  border-radius: 4px; background: rgba(8, 10, 18, .66); border: 1px solid rgba(255,255,255,.16);
  overflow: hidden; opacity: 0; transition: opacity .45s ease;
}
#stamina-bar.show { opacity: 1; transition: opacity .12s ease; }
#stamina-fill { height: 100%; background: linear-gradient(90deg, #d9b543, var(--stamina)); transition: width .08s linear; }
#stamina-bar.low #stamina-fill { background: linear-gradient(90deg, #d94343, #f07d5e); }

/* ---- 技能图标（右下） ---- */
#skills { position: absolute; right: 34px; bottom: 30px; display: flex; align-items: flex-end; gap: 18px; }
.skill-btn { position: relative; border-radius: 50%; }
.skill-btn .sk-body {
  position: absolute; inset: 3px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(90, 100, 140, .95), rgba(22, 26, 44, .96) 75%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .6);
}
.skill-btn .sk-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.skill-btn .sk-icon { font-size: 26px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.skill-btn .sk-key {
  position: absolute; bottom: -3px; right: -1px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(10, 13, 22, .92); border: 1px solid var(--gold-dim);
  font-size: 11px; line-height: 18px; text-align: center; color: var(--gold); z-index: 3;
}
.skill-btn .sk-cd {
  position: absolute; inset: 3px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000;
  visibility: hidden;
}
.skill-btn .sk-sub {
  position: absolute; inset: 3px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gold-strong); text-shadow: 0 1px 3px #000;
  visibility: hidden; pointer-events: none;
}
#skill-e { width: 64px; height: 64px; }
#skill-q { width: 82px; height: 82px; }
#skill-q .sk-icon { font-size: 34px; }
#skill-q.ready .sk-ring { animation: burstPulse 1.6s ease-in-out infinite; }
#skill-q.ready .sk-body { box-shadow: inset 0 0 14px rgba(227, 199, 123, .45), inset 0 0 10px rgba(0,0,0,.4); }
@keyframes burstPulse {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(227, 199, 123, .45); }
  50% { box-shadow: 0 0 24px 7px rgba(240, 216, 150, .85); }
}

/* ---- 交互提示（左下） ---- */
#interact-hint {
  position: absolute; left: 26px; bottom: 34px;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 22px 8px 10px; font-size: 14px; letter-spacing: .06em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: hintIn .18s ease both;
}
@keyframes hintIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#interact-hint .key {
  width: 26px; height: 26px; border-radius: 7px; text-align: center; line-height: 24px;
  font-weight: 700; color: #251d09;
  background: linear-gradient(180deg, var(--gold-strong), #cfa84e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   伤害数字
   ========================================================================== */
#dmg-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.dmg {
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  white-space: nowrap; will-change: transform, opacity;
  text-shadow: 0 0 4px rgba(0, 0, 0, .8), 0 2px 3px rgba(0, 0, 0, .6);
}
.dmg.crit {
  font-size: 30px;
  -webkit-text-stroke: 1px rgba(20, 8, 2, .85);
  text-shadow: 0 0 10px currentColor, 0 2px 4px rgba(0, 0, 0, .7);
}
.dmg.heal { color: #7dde8a !important; }
.dmg.reaction {
  font-size: 26px; letter-spacing: .1em;
  text-shadow: 0 0 12px currentColor, 0 2px 4px rgba(0, 0, 0, .8);
}

/* ==========================================================================
   横幅 / Toast
   ========================================================================== */
#banner-layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }

.reaction-banner {
  position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .3em;
  padding: 6px 30px 6px 36px;
  text-shadow: 0 0 14px currentColor, 0 2px 4px rgba(0, 0, 0, .7);
  animation: reactIn 1.4s ease both;
}
@keyframes reactIn {
  0% { opacity: 0; transform: translateX(-50%) scale(1.5); }
  16% { opacity: 1; transform: translateX(-50%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.area-banner {
  position: absolute; top: 26%; left: 0; width: 100%; text-align: center;
  font-family: var(--serif); font-size: 44px; letter-spacing: .34em; color: #f5eeda;
  text-shadow: 0 0 26px rgba(227, 199, 123, .8), 0 3px 10px rgba(0, 0, 0, .7);
  animation: areaIn 3.2s ease both;
}
.area-banner small { display: block; font-size: 14px; letter-spacing: .5em; color: var(--gold); margin-top: 12px; }
@keyframes areaIn {
  0% { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  18% { opacity: 1; transform: none; filter: none; }
  80% { opacity: 1; }
  100% { opacity: 0; filter: blur(4px); }
}

.center-banner {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  min-width: 380px; text-align: center; padding: 22px 44px;
  background: var(--panel); border: 1px solid var(--gold-dim); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 34px rgba(227, 199, 123, .22), 0 10px 30px rgba(0, 0, 0, .5);
  animation: bannerIn 4.2s ease both;
}
.center-banner .cb-head { font-family: var(--serif); font-size: 15px; letter-spacing: .4em; color: var(--gold); }
.center-banner .cb-title { font-family: var(--serif); font-size: 28px; letter-spacing: .18em; margin-top: 10px; color: #fbf4e2; }
.center-banner .cb-rewards { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.center-banner .cb-rewards span {
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: rgba(227, 199, 123, .12); border: 1px solid var(--line); color: #efe7cf;
}
@keyframes bannerIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  8% { opacity: 1; transform: translateX(-50%); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

#toast-stack {
  position: absolute; right: 18px; top: 168px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 16px; font-size: 13px; letter-spacing: .04em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  animation: toastIn .25s ease both;
  transition: opacity .3s, transform .3s;
}
.toast.out { opacity: 0; transform: translateX(24px); }
.toast .t-icon { font-size: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   对话
   ========================================================================== */
#dialog-layer { position: absolute; inset: 0; z-index: 50; pointer-events: auto; cursor: pointer; }
#dialog-layer .dlg-gradient {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, .78) 70%);
}
.dlg-box {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
  width: min(860px, 88vw);
  animation: dlgIn .28s ease both;
}
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dlg-name {
  display: inline-block; margin-left: 26px; padding: 5px 26px;
  font-family: var(--serif); font-size: 17px; letter-spacing: .2em; color: var(--gold-strong);
  background: rgba(16, 20, 34, .92); border: 1px solid var(--gold-dim);
  border-radius: 10px 10px 0 0; border-bottom: none;
  position: relative; z-index: 1;
}
.dlg-body {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 20px 30px 24px;
  min-height: 86px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.dlg-text { font-size: 17px; line-height: 1.8; letter-spacing: .04em; color: #f3f0e4; }
.dlg-next {
  position: absolute; right: 18px; bottom: 10px; color: var(--gold);
  font-size: 13px; animation: nextBlink 1s ease-in-out infinite;
}
@keyframes nextBlink { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(3px); } }
.dlg-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; align-items: flex-start; }
.dlg-choices button {
  padding: 8px 22px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--gold-dim); color: var(--ink);
  background: rgba(227, 199, 123, .08); transition: all .15s;
}
.dlg-choices button .ui-ic { width: 1em; height: 1em; color: var(--gold); margin-right: .35em; vertical-align: -0.14em; }
.dlg-choices button:hover { background: rgba(227, 199, 123, .22); border-color: var(--gold); }

/* ==========================================================================
   全屏面板通用框架
   ========================================================================== */
.vpanel {
  position: absolute; inset: 0; z-index: 60; pointer-events: auto;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 700px at 70% 0%, rgba(80, 90, 140, .16), transparent 60%),
    rgba(10, 13, 22, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: panelIn .22s ease both;
}
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }
.vp-head {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 30px 14px;
  border-bottom: 1px solid var(--line);
}
.vp-title {
  font-family: var(--serif); font-size: 24px; letter-spacing: .3em; color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.vp-title .ui-ic { width: 1em; height: 1em; color: var(--gold); opacity: .95; }
.vp-tabs { display: flex; gap: 8px; margin-left: 26px; }
.vp-tabs button {
  padding: 8px 24px; border-radius: 999px; font-size: 14px; letter-spacing: .12em;
  color: var(--ink-dim); border: 1px solid transparent; transition: all .15s;
}
.vp-tabs button:hover { color: var(--ink); }
.vp-tabs button.on {
  color: #251d09; background: linear-gradient(180deg, var(--gold-strong), #cfa84e);
  font-weight: 600;
}
.vp-tabs button .ui-ic { margin-right: .4em; width: 1em; height: 1em; }
.vp-close {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-dim); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.vp-close .ui-ic { width: 17px; height: 17px; vertical-align: 0; stroke-width: 2; }
.vp-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.vp-body { flex: 1; display: flex; min-height: 0; padding: 20px 30px 26px; gap: 22px; }
.vp-keyhint { font-size: 12px; color: var(--ink-dim); letter-spacing: .1em; margin-left: 16px; }

/* ---------- 通用卡片 / 列表 ---------- */
.side-list { width: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.side-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--panel-light); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); cursor: pointer; transition: all .15s; text-align: left;
}
.side-card:hover { border-color: var(--gold-dim); background: rgba(52, 58, 84, .8); }
.side-card.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(227, 199, 123, .25); background: rgba(60, 62, 78, .85); }
.side-card .sc-title { font-size: 15px; color: var(--ink); }
.side-card .sc-sub { font-size: 12px; color: var(--ink-dim); margin-top: 3px; }

.char-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background-size: cover !important; background-position: center top !important;
  border: 2px solid rgba(255, 255, 255, .3);
}
.party-slot .avatar { background-size: cover !important; background-position: center 12% !important; overflow: hidden; }
/* 角色界面全身立绘 */
.char-portrait .cp-art {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 96%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
}
.char-portrait .cp-name, .char-portrait .cp-title, .char-portrait .cp-role { position: relative; z-index: 2; }

/* 滚动条 */
#ui ::-webkit-scrollbar { width: 8px; height: 8px; }
#ui ::-webkit-scrollbar-thumb { background: rgba(227, 199, 123, .3); border-radius: 4px; }
#ui ::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }

/* ==========================================================================
   背包
   ========================================================================== */
.inv-grid {
  flex: 1; overflow-y: auto; align-content: flex-start;
  display: grid; grid-template-columns: repeat(auto-fill, 92px); gap: 12px;
}
.cell {
  position: relative; width: 92px; height: 92px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(58, 64, 92, .55), rgba(28, 32, 50, .8));
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all .13s; padding: 6px;
}
.cell:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.cell.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(227, 199, 123, .35); }
.cell.r3 { border-bottom: 3px solid var(--r3); }
.cell.r4 { border-bottom: 3px solid var(--r4); }
.cell.r5 { border-bottom: 3px solid var(--r5); }
.cell .c-icon { font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.cell .c-name { font-size: 11px; color: var(--ink-dim); margin-top: 5px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .c-count {
  position: absolute; right: 5px; bottom: 4px; font-size: 12px; font-weight: 600;
  color: #fff; text-shadow: 0 1px 3px #000;
}
.cell .c-lv {
  position: absolute; left: 5px; top: 4px; font-size: 10px; color: var(--gold);
  background: rgba(10, 13, 22, .8); padding: 1px 5px; border-radius: 4px;
}
.cell .c-eq {
  position: absolute; right: 4px; top: 4px; font-size: 10px; color: #9fe0a8;
}

.detail-pane {
  width: 320px; flex: none; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.detail-pane .d-empty { color: var(--ink-dim); text-align: center; margin-top: 60px; font-size: 13px; letter-spacing: .2em; }
.d-name { font-family: var(--serif); font-size: 20px; letter-spacing: .1em; }
.d-name.r3 { color: var(--r3); } .d-name.r4 { color: var(--r4); } .d-name.r5 { color: var(--r5); }
.d-stars { color: var(--r5); font-size: 14px; letter-spacing: 3px; margin: 6px 0 2px; }
.d-type { font-size: 12px; color: var(--ink-dim); letter-spacing: .1em; }
.d-sep { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.d-stat { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.d-stat b { color: var(--gold-strong); font-weight: 600; }
.d-sub { font-size: 13px; color: #cfd6c4; padding: 3px 0 3px 12px; position: relative; }
.d-sub::before { content: '·'; position: absolute; left: 2px; color: var(--gold); }
.d-desc { font-size: 13px; line-height: 1.7; color: var(--ink-dim); font-style: italic; }
.d-tag {
  display: inline-block; margin-top: 10px; font-size: 12px; color: #9fe0a8;
  border: 1px solid rgba(159, 224, 168, .4); padding: 2px 10px; border-radius: 999px;
}
.d-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.d-actions .lbl { font-size: 12px; color: var(--ink-dim); letter-spacing: .1em; }

/* ==========================================================================
   角色界面
   ========================================================================== */
.char-portrait {
  flex: 1; min-width: 0; position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 20px;
}
.char-portrait .cp-name, .char-portrait .cp-title, .char-portrait .cp-role {
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.7);
}
.char-portrait .cp-elem {
  position: absolute; font-size: 260px; opacity: .13; filter: blur(1px);
  animation: cpFloat 7s ease-in-out infinite;
}
@keyframes cpFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
.char-portrait .cp-circle {
  width: 190px; height: 190px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 84px; font-weight: 700; color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .6);
  border: 3px solid rgba(255, 255, 255, .4);
  box-shadow: 0 0 46px rgba(255, 255, 255, .18), 0 14px 34px rgba(0, 0, 0, .45);
}
.char-portrait .cp-name {
  margin-top: 8px; font-family: var(--serif); font-size: 40px; letter-spacing: .3em; color: #fdf8ea;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.char-portrait .cp-title {
  margin-top: 10px; font-family: var(--serif); font-size: 15px; letter-spacing: .42em; color: var(--gold);
}
.char-portrait .cp-title::before, .char-portrait .cp-title::after { content: '·'; margin: 0 10px; opacity: .7; }
.char-portrait .cp-role {
  margin-top: 14px; font-size: 12px; color: var(--ink-dim); letter-spacing: .18em;
  border: 1px solid var(--line); padding: 3px 14px; border-radius: 999px;
}

.char-right { width: 400px; flex: none; display: flex; flex-direction: column; min-height: 0; }
.char-right .cr-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.char-right .cr-tabs button {
  flex: 1; padding: 9px 0; font-size: 14px; letter-spacing: .2em;
  color: var(--ink-dim); background: rgba(255, 255, 255, .05);
  border: 1px solid transparent; border-radius: 9px; transition: all .15s;
}
.char-right .cr-tabs button.on { color: var(--gold); border-color: var(--gold-dim); background: rgba(227, 199, 123, .1); }
.char-right .cr-tabs button .ui-ic { width: 1em; height: 1em; margin-right: .35em; vertical-align: -0.14em; }
.char-right .cr-scroll {
  flex: 1; overflow-y: auto; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}

.exp-bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; margin: 8px 0 4px; border: 1px solid rgba(255,255,255,.12); }
.exp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8ec8f0, #bfe6ff); }
.exp-lbl { font-size: 11px; color: var(--ink-dim); text-align: right; }

.skill-row { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .045); margin-bottom: 8px; }
.skill-row .sr-head { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.skill-row .sr-head .tag {
  flex: none; font-size: 11px; color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 1px 8px; border-radius: 999px;
}
.skill-row .sr-desc { font-size: 12px; color: var(--ink-dim); margin-top: 5px; line-height: 1.6; }

.wcard {
  display: flex; gap: 14px; align-items: center; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); margin-bottom: 8px; transition: all .15s;
}
.wcard.clickable { cursor: pointer; }
.wcard.clickable:hover { border-color: var(--gold); background: rgba(227, 199, 123, .1); }
.wcard .w-icon {
  flex: none; width: 50px; height: 50px; border-radius: 10px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 13, 22, .55); border: 1px solid rgba(255, 255, 255, .12);
}
.wcard.r3 .w-icon { border-bottom: 3px solid var(--r3); }
.wcard.r4 .w-icon { border-bottom: 3px solid var(--r4); }
.wcard.r5 .w-icon { border-bottom: 3px solid var(--r5); }
.wcard .w-info { flex: 1; min-width: 0; }
.wcard .w-name { font-size: 14px; }
.wcard .w-sub { font-size: 12px; color: var(--ink-dim); margin-top: 3px; }
.wcard .w-eq { flex: none; font-size: 11px; color: #9fe0a8; }
.wcard .w-eq .ui-ic { width: 1em; height: 1em; margin-right: .2em; vertical-align: -0.12em; }

.relic-slot-row {
  display: flex; gap: 12px; align-items: center; padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); margin-bottom: 8px; cursor: pointer; transition: all .15s;
  text-align: left; width: 100%;
}
.relic-slot-row:hover { border-color: var(--gold); background: rgba(227, 199, 123, .08); }
.relic-slot-row .rs-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 13, 22, .55); border: 1px solid rgba(255, 255, 255, .16);
}
.relic-slot-row.r3 .rs-icon { border-color: var(--r3); }
.relic-slot-row.r4 .rs-icon { border-color: var(--r4); }
.relic-slot-row.r5 .rs-icon { border-color: var(--r5); }
.relic-slot-row .rs-info { flex: 1; min-width: 0; }
.relic-slot-row .rs-name { font-size: 13px; }
.relic-slot-row .rs-main { font-size: 13px; color: var(--gold-strong); margin-top: 2px; }
.relic-slot-row .rs-subs { font-size: 11px; color: var(--ink-dim); margin-top: 3px; line-height: 1.5; }
.relic-slot-row .rs-empty { color: var(--ink-dim); font-size: 13px; }

.setbox { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.setbox .sb-title { font-size: 13px; color: var(--gold); letter-spacing: .16em; margin-bottom: 8px; }
.setbox .sb-row { font-size: 12px; color: var(--ink-dim); padding: 3px 0; }
.setbox .sb-row.active { color: #9fe0a8; }
.setbox .sb-row.active::before { content: '✓ '; }
.setbox .sb-row.inactive::before { content: '○ '; opacity: .5; }

/* ==========================================================================
   任务日志
   ========================================================================== */
.q-group-title { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--gold); margin: 8px 0 4px 4px; }
.q-state { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid; flex: none; }
.q-state.active { color: var(--gold); border-color: var(--gold-dim); }
.q-state.done { color: #9fe0a8; border-color: rgba(159, 224, 168, .4); }
.q-state.none { color: var(--ink-dim); border-color: rgba(255, 255, 255, .15); }

.q-detail { flex: 1; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 32px; }
.q-detail .qd-type { font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.q-detail .qd-name { font-family: var(--serif); font-size: 27px; letter-spacing: .14em; margin: 8px 0 12px; }
.q-detail .qd-desc { font-size: 14px; line-height: 1.8; color: var(--ink-dim); }
.q-steps { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.q-step { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; align-items: baseline; }
.q-step .qs-dot { flex: none; width: 18px; text-align: center; color: var(--ink-dim); }
.q-step.done { color: var(--ink-dim); text-decoration: line-through; }
.q-step.done .qs-dot { color: #9fe0a8; text-decoration: none; }
.q-step.current { color: var(--gold-strong); }
.q-step.current .qs-dot { color: var(--gold); animation: nextBlink 1.2s infinite; }
.q-step.future { color: rgba(185, 191, 174, .45); }
.q-step .qs-hint { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 3px; text-decoration: none; }
.qd-rewards { margin-top: 22px; }
.qd-rewards .lbl { font-size: 12px; letter-spacing: .2em; color: var(--ink-dim); margin-bottom: 8px; }
.qd-rewards .items { display: flex; gap: 10px; flex-wrap: wrap; }
.qd-rewards .items span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(227, 199, 123, .1); border: 1px solid var(--line); }

/* ==========================================================================
   世界地图
   ========================================================================== */
#wm-stage { flex: 1; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #0c1420; cursor: grab; }
#wm-stage.panning { cursor: grabbing; }
#wm-view { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#wm-view canvas { display: block; image-rendering: auto; }
.wm-marker {
  position: absolute; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  white-space: nowrap; z-index: 2;
}
.wm-marker .m-label {
  font-size: 12px; color: #f3eed9; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.8);
  letter-spacing: .08em;
}
.wm-marker .m-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e4; border: 2px solid rgba(0,0,0,.5); }
.wm-marker.poi .m-dot { background: #d8dff0; }
.wm-marker.npc .m-dot { background: #ffd66b; }
.wm-marker.player { z-index: 5; }
.wm-marker.player .m-arrow {
  width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 20px solid #7fd0ff;
  filter: drop-shadow(0 0 6px rgba(127, 208, 255, .9)) drop-shadow(0 1px 2px #000);
}
.wm-marker.objective { z-index: 4; }
.wm-marker.objective .m-diamond {
  width: 15px; height: 15px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffe9ad, #e3a94d);
  border: 2px solid #fff6dd;
  box-shadow: 0 0 10px rgba(227, 169, 77, .9);
  animation: objPulse 1.4s ease-in-out infinite;
}
@keyframes objPulse { 0%, 100% { box-shadow: 0 0 6px rgba(227,169,77,.7); } 50% { box-shadow: 0 0 16px rgba(255,224,150,1); } }
.wm-marker.objective .m-label { color: var(--gold-strong); }
.wm-marker.wp { pointer-events: auto; cursor: pointer; z-index: 3; }
.wm-marker.wp .m-wp {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #bffff2, #34b8a2 70%);
  border: 2px solid #eafffb; box-shadow: 0 0 10px rgba(80, 220, 195, .8);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  transition: transform .15s;
}
.wm-marker.wp:hover .m-wp { transform: scale(1.25); }
.wm-marker.wp.locked { pointer-events: none; }
.wm-marker.wp.locked .m-wp {
  background: radial-gradient(circle at 34% 30%, #9aa2ae, #4c525e 70%);
  border-color: #8b919c; box-shadow: none; filter: grayscale(.4);
}
.wm-marker.wp.locked .m-label { color: #98a0ab; }
#wm-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 6;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12px;
  color: var(--ink-dim); pointer-events: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#wm-legend .lg { display: flex; align-items: center; gap: 9px; }
#wm-legend .lg i { flex: none; display: inline-block; }
#wm-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 6; pointer-events: none;
  font-size: 12px; color: var(--ink-dim); letter-spacing: .1em;
  background: var(--panel); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
}

/* ==========================================================================
   模态弹窗
   ========================================================================== */
#modal-layer {
  position: absolute; inset: 0; z-index: 80; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 13, .55);
  animation: panelIn .18s ease both;
}
.modal-box {
  min-width: 360px; max-width: min(720px, 88vw); max-height: 82vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--gold-dim); border-radius: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(227, 199, 123, .16), 0 20px 50px rgba(0, 0, 0, .6);
  padding: 26px 34px 28px; text-align: center;
  animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.modal-box h3 {
  margin: 0 0 18px; font-family: var(--serif); font-size: 21px; font-weight: 700;
  letter-spacing: .3em; color: var(--gold);
}
.modal-box .m-text { font-size: 15px; line-height: 1.9; color: var(--ink); }
.modal-box .m-btns { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }

/* 操作说明 */
.controls-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; text-align: left; margin: 0 auto; max-width: 430px; }
.controls-grid .ck {
  font-size: 12px; color: var(--gold-strong); text-align: center;
  background: rgba(227, 199, 123, .1); border: 1px solid var(--gold-dim);
  border-radius: 7px; padding: 4px 10px; letter-spacing: .05em; white-space: nowrap;
}
.controls-grid .cv { font-size: 13px; color: var(--ink-dim); align-self: center; }

/* 宝箱奖励 */
.loot-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 6px 0 4px; }
.loot-card {
  width: 108px; padding: 14px 8px 12px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(66, 72, 100, .6), rgba(26, 30, 48, .9));
  border: 1px solid rgba(255, 255, 255, .14);
  animation: lootIn .4s ease both;
}
@keyframes lootIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.loot-card.r3 { border-color: var(--r3); box-shadow: 0 0 12px rgba(90, 167, 214, .3); }
.loot-card.r4 { border-color: var(--r4); box-shadow: 0 0 14px rgba(166, 120, 224, .4); }
.loot-card.r5 { border-color: var(--r5); box-shadow: 0 0 18px rgba(227, 169, 77, .55); }
.loot-card.r5::before {
  content: ''; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 240, 200, .35) 50%, transparent 60%);
  animation: lootShine 2.2s ease-in-out infinite;
}
@keyframes lootShine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.loot-card .l-icon { font-size: 34px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
.loot-card .l-name { font-size: 12px; margin-top: 8px; color: var(--ink); }
.loot-card .l-sub { font-size: 11px; color: var(--ink-dim); margin-top: 3px; }

/* ==========================================================================
   暂停菜单 / 死亡界面
   ========================================================================== */
#pause-menu {
  position: absolute; inset: 0; z-index: 90; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: rgba(8, 10, 18, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: panelIn .2s ease both;
}
#pause-menu .p-title {
  font-family: var(--serif); font-size: 34px; letter-spacing: .5em; color: var(--gold);
  margin-bottom: 44px; margin-left: .5em;
}
#pause-menu .menu-buttons { animation: none; }

#death-screen {
  position: absolute; inset: 0; z-index: 95; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20, 8, 10, .82), rgba(4, 3, 6, .96));
  animation: deathIn 1.4s ease both;
}
@keyframes deathIn { from { opacity: 0; } to { opacity: 1; } }
#death-screen .d-title {
  font-family: var(--serif); font-size: 40px; letter-spacing: .4em; color: #d8c8b0;
  text-shadow: 0 0 24px rgba(180, 60, 60, .5);
  animation: menuIn 1.6s .3s ease both; margin-left: .4em;
}
#death-screen .btn { margin-top: 52px; animation: menuIn 1.2s 1s ease both; }

/* ==========================================================================
   商店
   ========================================================================== */
.vpanel.shop-veil { align-items: center; justify-content: center; }
.shop-box {
  width: min(620px, 90vw); max-height: 80vh; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--gold-dim); border-radius: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(227, 199, 123, .14), 0 20px 50px rgba(0, 0, 0, .6);
  animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.2) both;
  overflow: hidden;
}
.shop-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px 14px 26px; border-bottom: 1px solid var(--line);
}
.shop-coin {
  margin-left: auto; font-size: 15px; color: var(--gold-strong); letter-spacing: .04em;
  background: rgba(227, 199, 123, .1); border: 1px solid var(--gold-dim);
  border-radius: 999px; padding: 5px 16px;
}
.shop-coin b { font-weight: 700; }
.shop-list { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.shop-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  transition: all .15s;
}
.shop-row:hover { border-color: var(--gold-dim); background: rgba(227, 199, 123, .07); }
.shop-row .sh-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 13, 22, .55); border: 1px solid rgba(255, 255, 255, .12);
}
.shop-row .sh-info { flex: 1; min-width: 0; }
.shop-row .sh-name { font-size: 14px; }
.shop-row .sh-sub {
  font-size: 12px; color: var(--ink-dim); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
.shop-row .sh-price { flex: none; font-size: 14px; color: var(--gold-strong); min-width: 70px; text-align: right; }
.shop-row .sh-price.poor { color: #d47d76; }
.shop-foot {
  padding: 10px 22px 14px; text-align: center;
  font-size: 12px; color: var(--ink-dim); letter-spacing: .18em;
  border-top: 1px solid var(--line);
}
