/* 神明的游戏 · 视觉系统
 * 深空、旧金、羊皮纸；神秘神圣风。
 */
:root {
  --bg: #08080e;
  --bg-2: #0d0d15;
  --panel: #13131d;
  --panel-2: #191824;
  --panel-3: #211f2d;
  --ink: #ece7dc;
  --ink-soft: #c9c2b5;
  --muted: #8f899c;
  --muted-2: #6d687b;
  --gold: #d8b56a;
  --gold-2: #f0d9a3;
  --gold-3: #8b6a32;
  --line: rgba(216, 181, 106, .16);
  --line-soft: rgba(255, 255, 255, .06);
  --danger: #d66d6d;
  --ok: #79c7a5;
  --blue: #82a9d9;
  --purple: #a78bd8;
  --radius: 18px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 700px at 18% 8%, rgba(88, 63, 130, .22), transparent 60%),
    radial-gradient(900px 600px at 82% 88%, rgba(122, 88, 42, .16), transparent 60%),
    radial-gradient(700px 500px at 70% 10%, rgba(36, 85, 92, .12), transparent 60%),
    #06060b;
  display: grid;
  place-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 22% 42%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.4px 1.4px at 33% 18%, rgba(240,217,163,.85), transparent),
    radial-gradient(1px 1px at 48% 70%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 61% 26%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 77% 58%, rgba(216,181,106,.7), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 14% 82%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 54% 92%, rgba(240,217,163,.5), transparent);
}
body::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(216,181,106,.025) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(216,181,106,.02) 79px 80px);
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(216,181,106,.3); color: #fff; }
::-webkit-scrollbar { width: 0; height: 0; }

.stage {
  position: relative;
  width: min(100vw, 456px);
  height: min(940px, 100dvh);
  z-index: 2;
}
.phone {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(130% 60% at 50% -10%, rgba(76, 58, 105, .28), transparent 60%),
    radial-gradient(100% 50% at 100% 100%, rgba(110, 76, 36, .10), transparent 60%),
    var(--bg);
  border: 1px solid rgba(216, 181, 106, .18);
  border-radius: 38px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .018), 0 40px 120px rgba(0,0,0,.75), inset 0 0 80px rgba(0,0,0,.25);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(0,0,0,.35);
}
.app { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; min-width: 0; min-height: 0; }
#screen { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; min-width: 0; width: 100%; scroll-behavior: smooth; }
.screen { min-height: 100%; width: 100%; min-width: 0; padding: 10px 18px 100px; animation: fadeUp .35s ease both; }
.screen.flush { padding: 0 0 70px; }
.screen.room-screen { padding: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ---------- 基础组件 ---------- */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }
.gold { color: var(--gold-2); }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.small { font-size: 11px; } .tiny { font-size: 9px; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }
.hr-gold { height: 1px; background: linear-gradient(90deg, transparent, rgba(216,181,106,.35), transparent); margin: 18px 0; }

.eyebrow { color: var(--gold); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 7px; opacity: .85; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .08em; line-height: 1.2; }
h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .06em; }
h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .04em; }
h4 { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
p { line-height: 1.65; font-size: 13px; color: var(--ink-soft); }

.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 2px 16px; }
.screen-head h1 { font-size: 32px; }
.screen-head .head-sub { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 5px; }
.back-head { display: flex; align-items: center; gap: 10px; padding: 14px 0 8px; }
.back-head .title { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ink-soft); border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
  transition: .2s ease; flex: none;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--line); background: rgba(216,181,106,.07); }
.icon-btn.dark { background: rgba(0,0,0,.25); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 18px; border-radius: 12px;
  background: linear-gradient(135deg, #f0d9a3, #d8b56a 55%, #b08a44);
  color: #17120a; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  border: 1px solid rgba(255, 240, 200, .3);
  box-shadow: 0 8px 24px rgba(179, 136, 58, .18), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .16s ease, filter .16s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .38; filter: grayscale(.5); pointer-events: none; }
.btn-sm { min-height: 34px; padding: 0 13px; border-radius: 9px; font-size: 11px; }
.btn-xs { min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 10px; letter-spacing: .04em; }
.btn-block { width: 100%; }
.btn-ghost { background: rgba(255,255,255,.035); color: var(--ink-soft); border: 1px solid var(--line-soft); box-shadow: none; font-weight: 500; }
.btn-ghost:hover { color: var(--gold-2); border-color: var(--line); }
.btn-outline { background: transparent; border: 1px solid rgba(216,181,106,.45); color: var(--gold-2); box-shadow: none; font-weight: 500; }
.btn-danger { background: rgba(214,109,109,.12); border: 1px solid rgba(214,109,109,.35); color: #e69b9b; box-shadow: none; font-weight: 500; }
.btn-quiet { background: none; color: var(--muted); border: 0; box-shadow: none; padding: 0 6px; min-height: 30px; }
.btn-quiet:hover { color: var(--gold-2); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.025);
  color: var(--ink-soft); font-size: 10px; white-space: nowrap; letter-spacing: .03em;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--fc, var(--gold)); box-shadow: 0 0 8px var(--fc, var(--gold)); }
.chip em { font-style: normal; color: var(--muted); font-size: 9px; }
.faith-chip { border-color: color-mix(in srgb, var(--fc) 30%, transparent); background: color-mix(in srgb, var(--fc) 8%, transparent); color: color-mix(in srgb, var(--fc) 82%, #fff); }
.destiny-chip { color: var(--dc); border-color: color-mix(in srgb, var(--dc) 24%, transparent); background: color-mix(in srgb, var(--dc) 7%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 5px; padding: 3px 6px; }
.tag.gold { color: var(--gold); border-color: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9px; letter-spacing: .08em; border: 1px solid; }
.pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill-live { color: #8ed8b7; border-color: rgba(121,199,165,.3); background: rgba(121,199,165,.07); }
.pill-active { color: #e9c984; border-color: rgba(216,181,106,.32); background: rgba(216,181,106,.08); }
.pill-wait { color: #d8bd82; border-color: rgba(216,181,106,.24); background: rgba(216,181,106,.05); }
.pill-end { color: var(--muted); border-color: var(--line-soft); background: rgba(255,255,255,.02); }
.pill-full { color: #d79b9b; border-color: rgba(214,109,109,.28); background: rgba(214,109,109,.06); }
.pill-ok { color: #8ed8b7; border-color: rgba(121,199,165,.28); background: rgba(121,199,165,.06); }
.pill-bad { color: #d79b9b; border-color: rgba(214,109,109,.25); background: rgba(214,109,109,.05); }

.grade {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 40px;
  font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .02em;
  border-radius: 9px 9px 12px 12px; border: 1px solid; position: relative;
}
.grade::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 5px; height: 1px; background: currentColor; opacity: .4; }
.grade-sm { width: 26px; height: 30px; font-size: 14px; border-radius: 7px; }
.grade-sm::after { left: 5px; right: 5px; bottom: 3px; }
.grade-ss { color: #f5d98d; border-color: rgba(245,217,141,.6); background: linear-gradient(160deg, rgba(245,217,141,.22), rgba(139,106,50,.08)); box-shadow: 0 0 18px rgba(245,217,141,.14); }
.grade-s { color: #d8b6ff; border-color: rgba(190,150,235,.55); background: rgba(151,106,202,.12); }
.grade-a { color: #9fc6f2; border-color: rgba(130,169,217,.5); background: rgba(130,169,217,.1); }
.grade-b { color: #9ed4ba; border-color: rgba(121,199,165,.45); background: rgba(121,199,165,.09); }
.grade-c { color: #a8a3b8; border-color: rgba(168,163,184,.35); background: rgba(168,163,184,.07); }

.role-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; font-size: 8px; letter-spacing: .08em; border: 1px solid; white-space: nowrap; }
.role-tag.source { color: #f4d993; border-color: rgba(244,217,147,.45); background: rgba(244,217,147,.1); }
.role-tag.deity { color: #cbb0f3; border-color: rgba(203,176,243,.42); background: rgba(203,176,243,.09); }
.role-tag.admin { color: #e9a9a9; border-color: rgba(233,169,169,.36); background: rgba(233,169,169,.08); }
.role-tag.reviewer { color: #9fc6f2; border-color: rgba(159,198,242,.36); background: rgba(159,198,242,.08); }
.role-tag.envoy { color: #8ed8b7; border-color: rgba(142,216,183,.36); background: rgba(142,216,183,.08); }
.role-tag.player { color: var(--muted); border-color: var(--line-soft); background: rgba(255,255,255,.02); }
.verify { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; border-radius: 50%; font-size: 9px; border: 1px solid; }
.verify.source { color: #f4d993; border-color: rgba(244,217,147,.5); }
.verify.deity { color: #cbb0f3; border-color: rgba(203,176,243,.5); }
.verify.admin { color: #e9a9a9; border-color: rgba(233,169,169,.5); }
.verify.reviewer { color: #9fc6f2; border-color: rgba(159,198,242,.5); }

/* 头像 */
.avatar {
  --av: #d8b56a;
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--av) 60%, #fff), transparent 42%),
    radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--av) 30%, #000), transparent 65%),
    #161420;
  border: 1px solid color-mix(in srgb, var(--av) 55%, transparent);
  box-shadow: 0 0 0 3px rgba(0,0,0,.18), inset 0 0 18px color-mix(in srgb, var(--av) 22%, transparent);
}
.avatar::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--av) 25%, transparent); }
.avatar-glyph { font-size: 20px; color: color-mix(in srgb, var(--av) 70%, #fff); text-shadow: 0 0 12px var(--av); font-family: var(--serif); z-index: 1; }
.avatar-xs { width: 26px; height: 26px; } .avatar-xs .avatar-glyph { font-size: 12px; }
.avatar-sm { width: 32px; height: 32px; } .avatar-sm .avatar-glyph { font-size: 15px; }
.avatar-lg { width: 58px; height: 58px; } .avatar-lg .avatar-glyph { font-size: 28px; }
.avatar-xl { width: 82px; height: 82px; } .avatar-xl .avatar-glyph { font-size: 38px; }
.avatar .online { position: absolute; right: 2px; bottom: 2px; width: 8px; height: 8px; border-radius: 50%; background: #79c7a5; border: 2px solid var(--bg); z-index: 2; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.field > label { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.field .hint { font-size: 9px; color: var(--muted-2); line-height: 1.5; }
.input, textarea.input, select.input {
  width: 100%; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 11px 12px; color: var(--ink); outline: none;
  font-size: 13px; transition: .2s ease;
}
.input::placeholder, textarea.input::placeholder { color: #5e596b; }
.input:focus, textarea.input:focus, select.input:focus { border-color: rgba(216,181,106,.45); background: rgba(216,181,106,.035); box-shadow: 0 0 0 3px rgba(216,181,106,.05); }
textarea.input { resize: vertical; min-height: 86px; line-height: 1.6; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8f899c 50%), linear-gradient(135deg, #8f899c 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-actions { display: flex; gap: 9px; margin-top: 14px; }
.form-actions .btn { flex: 1; }
.input-unit { position: relative; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--muted); }
.input-unit .input { padding-right: 42px; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search-box .input { padding-left: 36px; height: 40px; border-radius: 11px; }

.toggle { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line-soft); cursor: pointer; transition: .2s; flex: none; }
.toggle::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; left: 2px; top: 2px; background: #8f899c; transition: .2s; }
.toggle.on { background: rgba(216,181,106,.22); border-color: rgba(216,181,106,.4); }
.toggle.on::after { transform: translateX(18px); background: var(--gold-2); box-shadow: 0 0 10px rgba(240,217,163,.4); }

/* 卡片 */
.card { background: linear-gradient(155deg, rgba(255,255,255,.032), rgba(255,255,255,.012)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card.gold-edge { border-color: rgba(216,181,106,.2); }
.glass { background: rgba(18,17,27,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(216,181,106,.14); }
.progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #8b6a32, var(--gold-2)); border-radius: inherit; }

.empty-state { text-align: center; padding: 50px 24px; color: var(--muted); }
.empty-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); background: rgba(216,181,106,.04); }
.empty-state h4 { color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.empty-state p { font-size: 11px; margin-bottom: 14px; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 54px; width: 100%; min-width: 0; padding: 0 18px; flex: none; z-index: 10; position: relative; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-sigil { width: 28px; height: 28px; color: var(--gold); opacity: .9; }
.brand-sigil .sigil { width: 28px; height: 28px; }
.brand-name { font-family: var(--serif); font-size: 14px; letter-spacing: .18em; color: var(--ink-soft); }
.brand-name em { display: block; font-family: var(--sans); font-size: 7px; letter-spacing: .3em; color: var(--muted-2); font-style: normal; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions .avatar { cursor: pointer; }
.notice-dot { position: relative; }
.notice-dot::after { content: ""; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #d8b56a; box-shadow: 0 0 7px #d8b56a; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  width: 100%; min-width: 0;
  height: 70px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(8,8,14,.55), rgba(8,8,14,.94) 45%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(216,181,106,.10);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #6e697c; font-size: 8px; letter-spacing: .12em; border-radius: 12px; position: relative;
  transition: color .2s ease;
}
.tab .ic { width: 21px; height: 21px; opacity: .8; }
.tab.active { color: var(--gold-2); }
.tab.active .ic { opacity: 1; filter: drop-shadow(0 0 7px rgba(240,217,163,.35)); }
.tab.active::before { content: ""; position: absolute; top: -6px; width: 18px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- 登录 / 注册 ---------- */
.auth {
  height: 100%; overflow-y: auto; padding: 38px 26px 30px; display: flex; flex-direction: column;
  background:
    radial-gradient(80% 40% at 50% 8%, rgba(94, 70, 132, .28), transparent 68%),
    radial-gradient(70% 40% at 50% 100%, rgba(111, 78, 36, .12), transparent 70%);
}
.auth-sigil { display: flex; justify-content: center; margin: 10px 0 8px; }
.auth-sigil .sigil { animation: spin 80s linear infinite; filter: drop-shadow(0 0 22px rgba(216,181,106,.18)); }
.auth h1 { text-align: center; font-size: 38px; letter-spacing: .28em; margin-left: .28em; color: #f0e9db; text-shadow: 0 0 34px rgba(216,181,106,.14); }
.auth-sub { text-align: center; color: var(--muted); font-size: 8px; letter-spacing: .42em; margin: 9px 0 3px; text-transform: uppercase; }
.auth-quote { text-align: center; color: #9f9788; font-family: var(--serif); font-size: 11px; letter-spacing: .12em; margin: 15px 0 22px; }
.auth-card { border-radius: 22px; padding: 17px; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.auth-tab { flex: 1; padding: 10px 0 12px; color: var(--muted); font-size: 12px; letter-spacing: .16em; position: relative; }
.auth-tab.active { color: var(--gold-2); }
.auth-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 24%; right: 24%; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.auth-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.demo-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; }
.demo-btn { color: var(--muted); font-size: 10px; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px dashed rgba(216,181,106,.25); }
.demo-btn:hover { color: var(--gold-2); }
.auth-note { text-align: center; font-size: 8px; color: #5d5868; line-height: 1.7; margin-top: 18px; letter-spacing: .05em; }
.auth-mode { text-align: center; font-size: 10px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.invite-hint { display: flex; gap: 8px; align-items: flex-start; background: rgba(216,181,106,.05); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin: 2px 0 12px; font-size: 9px; color: #b8ae9b; line-height: 1.6; }

/* ---------- 引导 ---------- */
.onboard { height: 100%; overflow-y: auto; padding: 24px 22px 34px; display: flex; flex-direction: column; background: radial-gradient(90% 45% at 50% 0%, rgba(87, 66, 121, .24), transparent 70%); }
.onboard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.steps { display: flex; gap: 6px; align-items: center; }
.step-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.15); }
.step-dot.on { background: var(--gold); box-shadow: 0 0 7px var(--gold); width: 16px; border-radius: 3px; }
.onboard h1 { font-size: 27px; margin: 8px 0 8px; }
.onboard .lead { color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 20px; }
.choice-grid { display: grid; gap: 9px; }
.destiny-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.022); text-align: left; transition: .2s ease; position: relative; overflow: hidden; }
.destiny-card::after { content: ""; position: absolute; right: -20px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--dc) 16%, transparent), transparent 65%); }
.destiny-card .d-glyph { width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--dc) 38%, transparent); display: grid; place-items: center; color: var(--dc); font-size: 21px; flex: none; background: color-mix(in srgb, var(--dc) 7%, transparent); }
.destiny-card .d-name { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .12em; }
.destiny-card .d-motto { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.destiny-card .d-opp { margin-left: auto; font-size: 8px; color: var(--muted-2); text-align: right; line-height: 1.5; }
.destiny-card.sel { border-color: color-mix(in srgb, var(--dc) 55%, transparent); background: color-mix(in srgb, var(--dc) 8%, transparent); }
.destiny-card.sel .d-name { color: #fff; }
.faith-grid { grid-template-columns: 1fr 1fr; }
.faith-card { padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); text-align: left; position: relative; }
.faith-card .f-glyph { color: var(--fc); font-size: 18px; margin-bottom: 8px; display: block; text-shadow: 0 0 12px var(--fc); }
.faith-card .f-name { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: .1em; }
.faith-card .f-motto { display: block; font-size: 8px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.faith-card.sel { border-color: color-mix(in srgb, var(--fc) 55%, transparent); background: color-mix(in srgb, var(--fc) 9%, transparent); }
.prof-grid { grid-template-columns: 1fr 1fr; }
.prof-card { padding: 13px; border-radius: 13px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); text-align: left; }
.prof-card .p-glyph { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); font-size: 16px; margin-bottom: 8px; }
.prof-card .p-name { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: .1em; }
.prof-card .p-sub { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.prof-card.sel { border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 8%, transparent); }
.onboard-foot { margin-top: auto; padding-top: 22px; display: flex; gap: 9px; }
.confirm-card { border-radius: 20px; padding: 20px; text-align: center; border: 1px solid var(--line); background: radial-gradient(90% 70% at 50% 0%, rgba(216,181,106,.1), transparent 70%), rgba(255,255,255,.022); }
.confirm-card .avatar { margin: 0 auto 12px; }
.confirm-card .c-name { font-family: var(--serif); font-size: 26px; letter-spacing: .18em; }
.confirm-card .c-sub { color: var(--muted); font-size: 10px; letter-spacing: .1em; margin-top: 5px; }
.confirm-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.confirm-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px; }
.confirm-stats div { text-align: center; border-right: 1px solid var(--line-soft); }
.confirm-stats div:last-child { border-right: 0; }
.confirm-stats b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-2); font-weight: 500; }
.confirm-stats span { font-size: 8px; color: var(--muted); letter-spacing: .1em; }

/* ---------- 试炼 ---------- */
.mp-invite { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; margin: 0 0 12px; border-radius: 13px; border: 1px solid rgba(216,181,106,.24); background: linear-gradient(135deg, rgba(216,181,106,.1), rgba(106,78,145,.1)); text-align: left; transition: .2s ease; }
.mp-invite:hover { border-color: rgba(216,181,106,.48); background: linear-gradient(135deg, rgba(216,181,106,.15), rgba(106,78,145,.14)); }
.mp-invite .mp-invite-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(216,181,106,.32); display: grid; place-items: center; color: var(--gold-2); background: rgba(216,181,106,.06); flex: none; }
.mp-invite .grow b { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; color: var(--gold-2); font-weight: 500; }
.mp-invite .grow em { display: block; font-style: normal; font-size: 8px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 19px 18px; border: 1px solid rgba(216,181,106,.18); background: radial-gradient(120% 120% at 0% 0%, rgba(106, 78, 145, .28), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(164, 119, 52, .16), transparent 60%), #14121d; margin-bottom: 18px; }
.hero::after { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d8b56a' stroke-width='.6' opacity='.35'%3E%3Ccircle cx='60' cy='60' r='52'/%3E%3Ccircle cx='60' cy='60' r='36'/%3E%3Cpath d='M60 8 67 53 112 60 67 67 60 112 53 67 8 60 53 53Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: contain; opacity: .7; animation: spin 120s linear infinite; pointer-events: none; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h2 { font-size: 23px; max-width: 80%; line-height: 1.35; }
.hero p { font-size: 10px; color: #a9a092; line-height: 1.7; margin: 8px 0 14px; max-width: 82%; }
.hero .hero-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hero .hero-actions { display: flex; gap: 8px; }
.hero .hero-actions .btn { min-height: 34px; font-size: 10px; }
.hero-quote { font-family: var(--serif); color: #d9cfbd; font-size: 13px; line-height: 1.7; letter-spacing: .05em; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 1px 11px; }
.section-title h3 { font-size: 17px; letter-spacing: .1em; }
.section-title .count { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.filter-row .chip { cursor: pointer; height: 29px; }
.filter-row .chip.active { background: rgba(216,181,106,.12); border-color: rgba(216,181,106,.36); color: var(--gold-2); }
.trial-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trial-card { position: relative; padding: 15px 15px 13px; border-radius: 17px; border: 1px solid var(--line-soft); background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); text-align: left; width: 100%; min-width: 0; overflow: hidden; transition: .2s ease; }
.trial-card::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fc, #d8b56a) 10%, transparent), transparent 70%); pointer-events: none; }
.trial-card:hover { border-color: rgba(216,181,106,.25); transform: translateY(-1px); }
.trial-top { display: flex; gap: 10px; align-items: flex-start; }
.trial-top .grade { flex: none; margin-top: 1px; }
.trial-title { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; line-height: 1.3; }
.trial-obj { font-size: 10px; color: var(--muted); line-height: 1.55; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trial-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.trial-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.trial-foot .meta { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); flex: 1 1 180px; min-width: 0; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -7px; border: 2px solid #12121b; box-shadow: none; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .more { margin-left: -7px; width: 28px; height: 28px; border-radius: 50%; background: #1b1926; border: 2px solid #12121b; display: grid; place-items: center; font-size: 8px; color: var(--muted); }
.fab { position: absolute; right: 18px; bottom: 88px; z-index: 35; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f0d9a3, #d8b56a 55%, #a57e3d); color: #17120a; box-shadow: 0 10px 30px rgba(179,136,58,.3), inset 0 1px 0 rgba(255,255,255,.5); }
.fab .ic { width: 23px; height: 23px; }
.fab::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(216,181,106,.22); animation: pulse 3s ease-in-out infinite; }

.memory-strip { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.memory-card { flex: none; width: 200px; padding: 13px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.022); text-align: left; }
.memory-card .m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.memory-card h4 { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }
.memory-card p { font-size: 9px; color: var(--muted); margin-top: 5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memory-card .m-date { font-size: 8px; color: var(--muted-2); margin-top: 8px; letter-spacing: .06em; }
.oracle-banner { display: flex; gap: 10px; padding: 12px 13px; border-radius: 13px; background: linear-gradient(135deg, rgba(216,181,106,.12), rgba(216,181,106,.03)); border: 1px solid rgba(216,181,106,.3); margin-bottom: 15px; position: relative; }
.oracle-banner .o-ico { color: var(--gold); font-size: 18px; line-height: 1; margin-top: 1px; }
.oracle-banner .o-text { font-family: var(--serif); font-size: 12px; color: #e8dcc3; line-height: 1.6; letter-spacing: .04em; }
.oracle-banner .o-meta { font-size: 8px; color: var(--muted); margin-top: 4px; }

/* 试炼详情 */
.trial-hero { padding: 20px 18px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 0 0, color-mix(in srgb, var(--fc) 16%, transparent), transparent 60%), rgba(255,255,255,.025); margin-bottom: 14px; }
.trial-hero .th-top { display: flex; gap: 12px; align-items: flex-start; }
.trial-hero h1 { font-size: 26px; line-height: 1.3; }
.trial-hero .th-obj { color: var(--ink-soft); font-size: 11px; line-height: 1.7; margin-top: 9px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.detail-cell { border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 10px; background: rgba(255,255,255,.018); }
.detail-cell span { display: block; font-size: 8px; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.detail-cell b { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.roster-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.roster-row:last-child { border: 0; }
.roster-row .name { font-size: 12px; }
.roster-row .sub { font-size: 8px; color: var(--muted); margin-top: 2px; }
.trial-actions { display: flex; gap: 8px; margin: 15px 0; }
.trial-actions .btn { flex: 1; }
.review-only { font-size: 9px; color: var(--muted); border: 1px dashed rgba(216,181,106,.25); border-radius: 9px; padding: 9px 10px; line-height: 1.6; background: rgba(216,181,106,.03); }

/* ---------- 排行 ---------- */
.segmented { display: flex; padding: 3px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.02); margin-bottom: 16px; }
.segmented button { flex: 1; height: 32px; border-radius: 8px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.segmented button.active { background: rgba(216,181,106,.14); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(216,181,106,.16); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 12px 0 22px; }
.podium-item { flex: 1; text-align: center; position: relative; }
.podium-item .avatar { margin: 0 auto 7px; }
.podium-item.p1 .avatar { width: 68px; height: 68px; border-color: rgba(240,217,163,.65); box-shadow: 0 0 30px rgba(216,181,106,.18); }
.podium-item.p1 .avatar .avatar-glyph { font-size: 32px; }
.podium-item .p-name { font-family: var(--serif); font-size: 13px; letter-spacing: .06em; }
.podium-item .p-score { font-size: 9px; color: var(--gold); margin-top: 2px; }
.podium-item .p-base { margin-top: 9px; height: 38px; border-radius: 8px 8px 0 0; border: 1px solid var(--line-soft); border-bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); display: flex; align-items: flex-start; justify-content: center; padding-top: 7px; font-family: var(--serif); font-size: 18px; color: var(--muted); }
.podium-item.p1 .p-base { height: 58px; color: var(--gold-2); border-color: rgba(216,181,106,.26); background: linear-gradient(180deg, rgba(216,181,106,.1), transparent); }
.podium-item.p3 .p-base { height: 28px; }
.crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 13px; text-shadow: 0 0 12px rgba(216,181,106,.5); }
.rank-me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; border: 1px solid rgba(216,181,106,.26); background: rgba(216,181,106,.055); margin-bottom: 14px; }
.rank-me .me-label { font-size: 8px; color: var(--gold); letter-spacing: .12em; }
.rank-me .me-score { font-family: var(--serif); font-size: 19px; color: var(--gold-2); }
.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; width: 100%; }
.rank-row:last-child { border: 0; }
.rank-no { width: 24px; text-align: center; font-family: var(--serif); font-size: 14px; color: var(--muted-2); flex: none; }
.rank-no.top { color: var(--gold); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink); }
.rank-sub { font-size: 8px; color: var(--muted); margin-top: 3px; display: flex; gap: 5px; align-items: center; }
.rank-score { text-align: right; flex: none; }
.rank-score b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--gold-2); }
.rank-score span { font-size: 8px; color: var(--muted-2); }
.rank-edit { margin-left: 4px; color: var(--muted); }
.search-wrap { margin: 0 0 12px; }

/* ---------- 交流 ---------- */
.forum-composer { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.022); margin-bottom: 14px; }
.forum-composer .composer-main { flex: 1; min-width: 0; }
.forum-composer textarea { width: 100%; min-height: 38px; max-height: 140px; resize: none; background: none; border: 0; outline: none; font-size: 12px; line-height: 1.6; color: var(--ink); }
.forum-composer textarea::placeholder { color: #625d70; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.composer-tools { display: flex; gap: 5px; align-items: center; }
.composer-tools button { color: var(--muted); padding: 4px; }
.composer-tools button:hover { color: var(--gold); }
.image-preview { position: relative; margin-top: 8px; border-radius: 9px; overflow: hidden; max-height: 150px; }
.image-preview img { width: 100%; display: block; max-height: 150px; object-fit: cover; }
.image-preview button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; color: #fff; }
.post { padding: 15px; border-radius: 15px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.018); margin-bottom: 10px; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.post-head .p-name { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.post-head .p-time { font-size: 8px; color: var(--muted-2); margin-top: 2px; }
.post-body { font-size: 12px; line-height: 1.75; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.post-art { margin-top: 10px; height: 112px; border-radius: 10px; overflow: hidden; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); border: 1px solid rgba(255,255,255,.06); }
.post-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 60%); }
.post-art .pa-glyph { font-family: var(--serif); font-size: 52px; color: rgba(255,255,255,.2); position: relative; text-shadow: 0 0 30px rgba(255,255,255,.2); }
.post-art .pa-quote { position: absolute; bottom: 11px; left: 14px; right: 14px; font-family: var(--serif); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.post-img { margin-top: 10px; border-radius: 10px; overflow: hidden; max-height: 220px; }
.post-img img { width: 100%; display: block; object-fit: cover; max-height: 220px; }
.post-foot { display: flex; align-items: center; gap: 16px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.post-foot button { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.post-foot button.liked { color: #d79b9b; }
.post-foot .ic { width: 13px; height: 13px; }
.post-foot .del { margin-left: auto; }
.comment-list { margin-top: 11px; padding-top: 2px; }
.comment { display: flex; gap: 7px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.035); }
.comment .c-main { flex: 1; min-width: 0; }
.comment .c-name { font-size: 9px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.comment .c-text { font-size: 10px; color: var(--ink-soft); line-height: 1.6; margin-top: 3px; word-break: break-word; }
.comment-form { display: flex; gap: 6px; margin-top: 7px; }
.comment-form .input { height: 33px; padding: 0 10px; border-radius: 8px; font-size: 10px; }

/* ---------- 背包 ---------- */
.bag-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 14px; }
.shard-cell { padding: 9px 8px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.02); text-align: center; }
.shard-cell .s-grade { font-family: var(--serif); font-size: 16px; }
.shard-cell .s-num { font-size: 9px; color: var(--muted); margin-top: 2px; }
.shard-cell.c { color: #a8a3b8; } .shard-cell.b { color: #9ed4ba; } .shard-cell.a { color: #9fc6f2; } .shard-cell.s { color: #d8b6ff; }
.sub-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; overflow-x: auto; }
.sub-tab { padding: 9px 12px 11px; color: var(--muted); font-size: 10px; letter-spacing: .08em; position: relative; white-space: nowrap; }
.sub-tab.active { color: var(--gold-2); }
.sub-tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--gold); box-shadow: 0 0 7px var(--gold); }
.item-card { padding: 13px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.02); margin-bottom: 9px; text-align: left; width: 100%; }
.item-card-head { display: flex; gap: 9px; align-items: flex-start; }
.item-card .it-name { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.item-card .it-desc { font-size: 10px; color: var(--muted); line-height: 1.65; margin-top: 6px; }
.item-card .it-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.item-card .it-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.it-type { font-size: 8px; color: var(--muted-2); letter-spacing: .08em; }
.slot-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 1px 9px; }
.slot-head h4 { font-size: 12px; color: var(--ink-soft); font-weight: 500; letter-spacing: .06em; }
.slot-head span { font-size: 9px; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.slot { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 7px; position: relative; padding: 4px; text-align: center; }
.slot.filled { border-color: rgba(216,181,106,.2); background: rgba(216,181,106,.035); color: var(--ink-soft); }
.slot .slot-glyph { font-size: 18px; color: var(--gold); line-height: 1; }
.slot .slot-name { font-size: 8px; line-height: 1.3; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty::after { content: "+"; font-size: 14px; color: rgba(255,255,255,.12); }
.slot.trash-slot { border-style: dashed; }
.draw-panel { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(90% 80% at 50% 0, rgba(216,181,106,.1), transparent 65%), rgba(255,255,255,.02); text-align: center; }
.draw-orb { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid rgba(216,181,106,.35); display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, rgba(240,217,163,.28), transparent 45%), rgba(20,17,28,.7); box-shadow: 0 0 40px rgba(216,181,106,.12), inset 0 0 30px rgba(0,0,0,.4); position: relative; }
.draw-orb .sigil { width: 70px; height: 70px; opacity: .65; animation: spin 60s linear infinite; }
.draw-panel h3 { font-size: 18px; }
.draw-panel p { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.draw-chances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.chance-cell { border: 1px solid var(--line-soft); border-radius: 9px; padding: 7px 3px; }
.chance-cell b { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold-2); font-weight: 500; }
.chance-cell span { font-size: 7px; color: var(--muted); }
.rate-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 8px; color: var(--muted); }
.rate-row .rate-track { flex: 1; height: 3px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.rate-row .rate-track i { display: block; height: 100%; background: var(--gold); opacity: .6; }
.draw-result { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(216,181,106,.28); background: rgba(216,181,106,.06); animation: fadeUp .3s ease both; }
.draw-result .dr-grade { font-family: var(--serif); font-size: 34px; color: var(--gold-2); line-height: 1; }
.draw-result .dr-name { font-size: 11px; color: var(--ink-soft); margin-top: 5px; }

/* ---------- 个人主页 ---------- */
.profile-cover { position: relative; margin: -10px -18px 0; padding: 28px 18px 18px; min-height: 170px; overflow: hidden; background: radial-gradient(120% 120% at 20% 0, color-mix(in srgb, var(--fc) 30%, transparent), transparent 55%), radial-gradient(100% 100% at 90% 100%, rgba(216,181,106,.12), transparent 55%), #14121d; }
.profile-cover::after { content: ""; position: absolute; right: -50px; top: -30px; width: 210px; height: 210px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d8b56a' stroke-width='.5' opacity='.28'%3E%3Ccircle cx='60' cy='60' r='54'/%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Cpath d='M60 4 66 54 116 60 66 66 60 116 54 66 4 60 54 54Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: contain; animation: spin 140s linear infinite; }
.profile-cover .pc-top { display: flex; justify-content: flex-end; gap: 7px; position: relative; z-index: 1; }
.profile-main { display: flex; gap: 13px; align-items: flex-end; margin-top: 6px; position: relative; z-index: 1; }
.profile-main .avatar { width: 74px; height: 74px; border-width: 2px; box-shadow: 0 0 0 4px rgba(8,8,14,.5), 0 0 28px color-mix(in srgb, var(--fc) 20%, transparent); }
.profile-main .avatar .avatar-glyph { font-size: 34px; }
.profile-name { font-family: var(--serif); font-size: 26px; letter-spacing: .1em; line-height: 1.2; }
.profile-bio { font-size: 10px; color: #b2aa9c; line-height: 1.6; margin-top: 5px; }
.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.profile-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.score-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; background: rgba(255,255,255,.025); }
.score-card span { font-size: 8px; color: var(--muted); letter-spacing: .1em; }
.score-card b { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-2); font-weight: 500; line-height: 1.2; margin-top: 2px; }
.score-card small { font-size: 8px; color: var(--muted-2); }
.profile-progress { margin-top: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.018); }
.profile-progress .pp-row { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-bottom: 6px; }
.stat-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.stat-bar .sb-head { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.stat-bar .sb-head b { color: var(--ink-soft); font-weight: 500; }
.stat-bar .progress { height: 5px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.menu-tile { padding: 13px 8px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.022); display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 9px; letter-spacing: .04em; text-align: center; }
.menu-tile .ic { color: var(--gold); }
.menu-tile:hover { border-color: rgba(216,181,106,.28); background: rgba(216,181,106,.04); }
.menu-tile.locked { opacity: .42; }
.action-list { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.018); margin-top: 14px; }
.action-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; color: var(--ink-soft); font-size: 11px; }
.action-row:last-child { border-bottom: 0; }
.action-row .ic { color: var(--muted); width: 17px; height: 17px; }
.action-row .sub { font-size: 8px; color: var(--muted); margin-top: 2px; }
.action-row .chev { margin-left: auto; color: var(--muted-2); width: 14px; height: 14px; }
.action-row.danger { color: #d79b9b; }

/* ---------- 主持 / 审核 / 源初 ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.admin-tile { padding: 14px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.022); text-align: left; }
.admin-tile .ic { color: var(--gold); margin-bottom: 9px; }
.admin-tile b { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.admin-tile span { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.invite-row { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.02); margin-bottom: 7px; }
.invite-code { font-family: "Consolas", monospace; font-size: 13px; letter-spacing: .12em; color: var(--gold-2); flex: 1; }
.invite-status { font-size: 8px; color: var(--muted); }
.review-card { padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.022); margin-bottom: 9px; }
.review-card .rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.review-card .rc-title { font-family: var(--serif); font-size: 16px; letter-spacing: .05em; }
.review-card .rc-desc { font-size: 10px; color: var(--muted); line-height: 1.65; }
.review-card .rc-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.review-card .rc-foot { display: flex; gap: 7px; margin-top: 11px; }
.review-card .rc-foot .btn { flex: 1; min-height: 32px; font-size: 10px; }
.host-section { border: 1px solid var(--line-soft); border-radius: 14px; padding: 13px; background: rgba(255,255,255,.018); margin-bottom: 10px; }
.host-section h4 { font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.flag-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.035); }
.flag-row:last-child { border: 0; }
.flag-row .fl-name { font-size: 10px; color: var(--ink-soft); }
.flag-row .fl-sub { font-size: 8px; color: var(--muted); margin-top: 2px; }

/* ---------- 聊天室 ---------- */
.room-head { height: 56px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); background: rgba(9,9,15,.86); backdrop-filter: blur(16px); position: relative; z-index: 20; }
.room-head .rt { flex: 1; min-width: 0; }
.room-head .rt-title { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-head .rt-sub { font-size: 8px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.room-tabs { display: flex; gap: 0; padding: 0 10px; border-bottom: 1px solid var(--line-soft); flex: none; overflow-x: auto; background: rgba(10,10,16,.6); }
.room-tab { padding: 10px 12px 11px; color: var(--muted); font-size: 10px; letter-spacing: .08em; position: relative; white-space: nowrap; }
.room-tab.active { color: var(--gold-2); }
.room-tab.active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 1px; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.room-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.room-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 12px; }
.room-pane.chat-pane { padding-bottom: 4px; }
.pinned-msg { display: flex; gap: 7px; align-items: center; padding: 7px 10px; margin: 0 14px 8px; border-radius: 8px; background: rgba(216,181,106,.065); border: 1px solid rgba(216,181,106,.15); font-size: 9px; color: #c8bda8; }
.pinned-msg .ic { width: 12px; height: 12px; color: var(--gold); }
.pinned-msg .pt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-system { text-align: center; font-size: 8px; color: var(--muted-2); line-height: 1.6; margin: 9px 12px; letter-spacing: .04em; }
.msg-system.dice { color: #cbb98f; }
.msg-system.dice b { color: var(--gold-2); font-size: 13px; font-family: var(--serif); }
.msg { display: flex; gap: 8px; margin-bottom: 13px; align-items: flex-start; }
.msg.me { flex-direction: row-reverse; }
.msg .msg-main { max-width: 78%; min-width: 0; }
.msg.me .msg-main { display: flex; flex-direction: column; align-items: flex-end; }
.msg-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 8px; color: var(--muted); }
.msg.me .msg-meta { flex-direction: row-reverse; }
.msg-meta .m-name { font-size: 9px; color: var(--ink-soft); }
.bubble { padding: 9px 11px; border-radius: 4px 13px 13px 13px; background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid var(--line-soft); border-left: 2px solid color-mix(in srgb, var(--fc, #8f899c) 55%, transparent); font-size: 12px; line-height: 1.7; color: #ded8cc; word-break: break-word; white-space: pre-wrap; position: relative; }
.msg.me .bubble { border-radius: 13px 4px 13px 13px; border-left: 1px solid var(--line-soft); border-right: 2px solid color-mix(in srgb, var(--fc, #d8b56a) 55%, transparent); background: linear-gradient(150deg, rgba(216,181,106,.11), rgba(216,181,106,.045)); color: #efe6d4; }
.msg.npc .bubble { border-left-color: #7d8aa8; background: linear-gradient(150deg, rgba(90,110,145,.14), rgba(255,255,255,.018)); font-family: var(--serif); letter-spacing: .02em; }
.msg .m-tools { opacity: 0; transition: .2s; }
.msg:hover .m-tools { opacity: 1; }
.m-tools button { color: var(--muted-2); padding: 2px; }
.chat-bar { flex: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: rgba(9,9,15,.92); backdrop-filter: blur(16px); }
.chat-tools { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.chat-tools button { color: var(--muted); padding: 5px 6px; border-radius: 6px; }
.chat-tools button:hover { color: var(--gold); background: rgba(216,181,106,.06); }
.chat-input-row { display: flex; gap: 7px; align-items: flex-end; }
.chat-input-row textarea { flex: 1; resize: none; min-height: 38px; max-height: 100px; background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 11px; outline: none; font-size: 12px; line-height: 1.5; }
.chat-input-row textarea:focus { border-color: rgba(216,181,106,.35); }
.chat-send { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #f0d9a3, #d8b56a); color: #18120a; display: grid; place-items: center; flex: none; }
.chat-send .ic { width: 18px; height: 18px; }
.emoji-pop { position: absolute; left: 10px; right: 10px; bottom: 92px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,16,25,.98); z-index: 25; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.emoji-pop button { height: 30px; border-radius: 6px; font-size: 16px; }
.emoji-pop button:hover { background: rgba(216,181,106,.1); }

/* 地图 */
.map-pane { padding: 12px; }
.map-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.map-legend { display: flex; gap: 9px; font-size: 8px; color: var(--muted-2); }
.map-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.map-cell { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.018); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 3px; transition: .15s; }
.map-cell .mc-glyph { font-size: 15px; color: var(--muted); line-height: 1; }
.map-cell .mc-name { font-size: 7px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.map-cell.current { border-color: rgba(216,181,106,.55); background: rgba(216,181,106,.12); box-shadow: 0 0 12px rgba(216,181,106,.1); }
.map-cell.current .mc-glyph { color: var(--gold-2); }
.map-cell.selected { border-color: rgba(159,198,242,.5); }
.map-cell.hidden { background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 3px, transparent 3px 6px); }
.map-cell.empty-cell { opacity: .35; border-style: dashed; }
.map-cell .mc-item { position: absolute; top: 2px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.map-detail { margin-top: 11px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.022); }
.map-detail h4 { font-family: var(--serif); font-size: 17px; display: flex; align-items: center; gap: 7px; }
.map-detail p { font-size: 10px; color: var(--muted); line-height: 1.65; margin: 6px 0 10px; }
.map-detail .loc-items { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.loc-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 9px; }
.loc-item .li-glyph { color: var(--gold); }
.loc-item .li-name { flex: 1; }
.san-box { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(214,109,109,.2); background: rgba(214,109,109,.04); margin-bottom: 10px; }
.san-box .san-label { font-size: 8px; color: #d79b9b; letter-spacing: .1em; }
.san-box .san-num { font-family: var(--serif); font-size: 16px; color: #e8b0b0; }
.san-box .progress { flex: 1; height: 5px; }
.san-box .progress > i { background: linear-gradient(90deg, #8f3f4f, #d79b9b); }

/* 战斗 */
.combat-pane { padding: 12px; }
.combat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.combat-head .round { font-family: var(--serif); font-size: 14px; color: var(--gold-2); letter-spacing: .08em; }
.combat-list { display: flex; flex-direction: column; gap: 7px; }
.combatant { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); position: relative; }
.combatant.enemy { border-color: rgba(214,109,109,.16); background: rgba(214,109,109,.035); }
.combatant.dead { opacity: .42; filter: grayscale(.7); }
.combatant .cb-main { flex: 1; min-width: 0; }
.combatant .cb-name { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); }
.combatant .cb-stats { display: flex; gap: 8px; margin-top: 5px; }
.cb-bar { flex: 1; }
.cb-bar .cbb-head { display: flex; justify-content: space-between; font-size: 7px; color: var(--muted); margin-bottom: 2px; }
.cb-bar .track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.cb-bar .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7f3d4a, #d79b9b); }
.cb-bar.sp .track i { background: linear-gradient(90deg, #3d527f, #8fb4e0); }
.combatant .cb-side { font-size: 7px; color: var(--muted-2); position: absolute; top: 6px; right: 8px; letter-spacing: .08em; }
.combat-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 11px; }
.combat-act { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.025); text-align: left; font-size: 9px; color: var(--ink-soft); }
.combat-act .ic { color: var(--gold); width: 15px; height: 15px; flex: none; }
.combat-act small { display: block; font-size: 7px; color: var(--muted); margin-top: 1px; }
.combat-act:disabled { opacity: .35; }
.combat-log { margin-top: 11px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0,0,0,.18); max-height: 130px; overflow-y: auto; }
.combat-log p { font-size: 9px; color: var(--muted); line-height: 1.7; margin: 0; }
.combat-log p.act { color: #cbbf9f; }
.combat-log p.enemy { color: #c99393; }
.combat-log p.system { color: var(--muted-2); text-align: center; }
.dead-note { text-align: center; padding: 20px; color: #d79b9b; font-family: var(--serif); font-size: 14px; letter-spacing: .1em; }

/* 总结算 */
.result-banner { text-align: center; padding: 26px 18px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 0, rgba(216,181,106,.14), transparent 65%), rgba(255,255,255,.02); }
.result-banner .rb-mark { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid rgba(216,181,106,.35); display: grid; place-items: center; color: var(--gold); }
.result-banner h2 { font-size: 24px; }
.result-banner p { font-size: 10px; color: var(--muted); margin-top: 7px; }

/* 弹层 */
.modal-backdrop { position: absolute; inset: 0; z-index: 80; background: rgba(3,3,7,.7); backdrop-filter: blur(7px); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: fadeIn .18s ease both; }
.modal { width: 100%; max-height: 88%; border-radius: 22px; border: 1px solid rgba(216,181,106,.22); background: linear-gradient(170deg, #191722, #100f17); box-shadow: 0 -20px 70px rgba(0,0,0,.55); display: flex; flex-direction: column; animation: slideUp .26s cubic-bezier(.2,.9,.3,1) both; overflow: hidden; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 17px 12px; border-bottom: 1px solid var(--line-soft); flex: none; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 16px 17px; overflow-y: auto; }
.modal-foot { padding: 11px 17px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); flex: none; }
.modal-sheet { max-height: 78%; }
.sheet-list { display: flex; flex-direction: column; }
.sheet-item { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-soft); text-align: left; width: 100%; }
.sheet-item:last-child { border: 0; }
.sheet-item .ic { color: var(--muted); }
.sheet-item.danger { color: #d79b9b; }
.sheet-item.danger .ic { color: #d79b9b; }
.modal-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.modal-copy { font-size: 11px; color: var(--muted); line-height: 1.7; }
.toast { position: absolute; left: 50%; bottom: 94px; transform: translateX(-50%); z-index: 120; padding: 9px 15px; border-radius: 999px; background: rgba(20,18,28,.96); border: 1px solid rgba(216,181,106,.3); color: var(--gold-2); font-size: 10px; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: toastIn .2s ease both; max-width: 82%; text-align: center; }
.toast.error { color: #e6a0a0; border-color: rgba(214,109,109,.35); }

/* 通用列表 */
.dot-list { display: flex; flex-direction: column; gap: 7px; }
.dot-list li { font-size: 10px; color: var(--muted); line-height: 1.65; list-style: none; padding-left: 12px; position: relative; }
.dot-list li::before { content: "◆"; position: absolute; left: 0; top: 0; font-size: 5px; color: var(--gold); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 10px; }
.kv:last-child { border: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; color: var(--ink-soft); text-align: right; }
.warn { border: 1px solid rgba(214,109,109,.24); background: rgba(214,109,109,.05); color: #d9a0a0; font-size: 9px; line-height: 1.65; border-radius: 9px; padding: 9px 10px; }
.good { border: 1px solid rgba(121,199,165,.22); background: rgba(121,199,165,.05); color: #a4d7c2; font-size: 9px; line-height: 1.65; border-radius: 9px; padding: 9px 10px; }
.code { font-family: Consolas, monospace; letter-spacing: .08em; }

input[type="color"] { cursor: pointer; border: 1px solid var(--line-soft); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chat-bar { position: relative; }
.emoji-pop { bottom: calc(100% + 7px); }
.top-actions button.avatar { display: inline-flex; padding: 0; border: 0; background: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .75; transform: scale(1.06); } }

@media (max-width: 720px) {
  body { display: block; background: var(--bg); }
  body::before, body::after { display: none; }
  .stage { width: 100%; height: 100dvh; }
  .phone { border-radius: 0; border: 0; box-shadow: none; }
  .phone::after { display: none; }
}
@media (max-width: 370px) {
  .screen { padding-left: 14px; padding-right: 14px; }
  .tabbar { height: 64px; }
  .auth h1 { font-size: 33px; }
  .screen-head h1 { font-size: 27px; }
  .faith-grid, .prof-grid { grid-template-columns: 1fr; }
  .profile-cover { margin-left: -14px; margin-right: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
