:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #1d1b17;
  --sub: #7d776b;
  --faint: #a9a396;
  --line: #ece7de;
  --accent: #a8382c;
  --accent-soft: #f7edeb;
  --gold: #a98a52;
  --green: #49745b;
  --warn: #a26a2c;
  --bad: #8f3a3a;
  --shadow: 0 6px 22px rgba(45, 38, 26, 0.06);
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.page { min-height: 100vh; max-width: 560px; margin: 0 auto; position: relative; padding-bottom: 84px; }
.page.no-tab { padding-bottom: 32px; }
.content { padding: 0 20px 24px; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px;
  background: linear-gradient(to bottom, var(--bg) 78%, rgba(250,249,246,0));
}
.topbar h1 { font-size: 16px; font-weight: 500; flex: 1; text-align: center; letter-spacing: .5px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:active { background: #f2eee7; }

/* brand / auth */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 36px 28px 48px; max-width: 520px; margin: 0 auto;
}
.brand { text-align: center; margin-bottom: 34px; }
.brand-mark {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  border: 1px solid rgba(168,56,44,.35); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; background: #fff;
  box-shadow: 0 4px 18px rgba(168,56,44,.08);
}
.brand-mark svg { width: 30px; height: 30px; }
.role { font-size: 10px; color: var(--gold); border: 1px solid #e6dcc8; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.brand h1 { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: 6px; text-indent: 6px; }
.brand p { color: var(--sub); font-size: 12.5px; letter-spacing: 2px; margin-top: 8px; }

.seg {
  display: flex; background: #f1ede6; border-radius: 12px; padding: 4px; margin-bottom: 22px;
}
.seg button {
  flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 9px;
  color: var(--sub); font-size: 14px; cursor: pointer; transition: .2s;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 7px; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field textarea { resize: none; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(168,56,44,.55); box-shadow: 0 0 0 3px rgba(168,56,44,.07);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d776b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; border: 0; border-radius: 13px; padding: 13px 16px;
  font-size: 15px; letter-spacing: 1px; cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(168,56,44,.18); }
.btn-primary:active { transform: translateY(1px); background: #963227; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:active { background: #f6f2ea; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 10px; margin-top: 22px; }

.hint { font-size: 12px; color: var(--faint); line-height: 1.7; }
.hint.center { text-align: center; }

/* home */
.home-head { padding: 26px 0 6px; }
.home-head .date { font-size: 12.5px; color: var(--sub); letter-spacing: 1px; }
.home-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-top: 6px; letter-spacing: 3px; }
.home-head .sub { color: var(--sub); font-size: 13px; margin-top: 6px; }

.feature-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); transition: .18s;
}
.feature:active { transform: scale(.985); }
.feature .tile {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none;
}
.feature .tile svg { width: 23px; height: 23px; }
.feature .txt { flex: 1; min-width: 0; }
.feature .txt h3 { font-size: 15.5px; font-weight: 500; letter-spacing: .5px; }
.feature .txt p { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.feature .arrow { color: #c9c3b7; flex: none; }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 2px; }
.section-head a { font-size: 12px; color: var(--sub); }

.record-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 2px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.record-item:last-child { border-bottom: 0; }
.badge {
  width: 38px; height: 38px; flex: none; border-radius: 11px; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); letter-spacing: 0;
}
.badge.t { background: #eef2ee; color: var(--green); }
.badge.f { background: #f6f1e6; color: var(--gold); }
.record-item .info { flex: 1; min-width: 0; }
.record-item .info h4 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-item .info p { font-size: 12px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-item .time { font-size: 11.5px; color: var(--faint); flex: none; }
.empty { text-align: center; color: var(--faint); font-size: 12.5px; padding: 26px 0; }

/* tabbar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 7px; color: var(--faint); font-size: 10.5px; letter-spacing: .5px;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { color: var(--accent); }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-title { font-size: 13px; color: var(--sub); letter-spacing: 1px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--accent); opacity: .6; }

/* mbti */
.progress-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--sub); margin: 8px 0 8px; }
.progress { height: 4px; background: #eee9e0; border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .25s ease; }

.question-wrap { padding: 34px 4px 10px; }
.question-no { font-family: var(--serif); color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.question-text { font-family: var(--serif); font-size: 21px; line-height: 1.7; margin: 12px 0 30px; letter-spacing: 1px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .15s;
}
.opt:active { border-color: rgba(168,56,44,.5); background: var(--accent-soft); }
.opt .dot {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #d8d2c6; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff;
}
.opt.sel .dot { background: var(--accent); border-color: var(--accent); }
.opt.sel { border-color: rgba(168,56,44,.45); background: var(--accent-soft); }
.opt span { font-size: 14.5px; }

.result-hero { text-align: center; padding: 26px 0 20px; }
.result-hero .code { font-family: var(--serif); font-size: 44px; letter-spacing: 6px; color: var(--accent); }
.result-hero .name { font-family: var(--serif); font-size: 19px; margin-top: 4px; letter-spacing: 3px; }
.result-hero .tag { color: var(--sub); font-size: 12.5px; margin-top: 8px; letter-spacing: 1px; }

.dim { margin-bottom: 14px; }
.dim:last-child { margin-bottom: 0; }
.dim .dim-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.dim .dim-head b { font-weight: 500; }
.dim .dim-head .pct { color: var(--accent); }
.dim .track { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: #eee9e0; }
.dim .track i { display: block; height: 100%; }
.dim .track i.l { background: var(--accent); }
.dim .track i.r { background: #d9d3c6; }
.dim .dim-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 4px; }

.kv { font-size: 13.5px; color: var(--ink); line-height: 1.8; }
.kv p + p { margin-top: 2px; }
.desc { font-size: 14px; color: #3d3a33; line-height: 1.85; }

.ul { margin: 0; padding: 0; list-style: none; }
.ul li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.8; }
.ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.ul li + li { margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { font-size: 12px; padding: 5px 11px; border-radius: 20px; background: #f5f1ea; color: #6c665a; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 7px 14px;
  font-size: 13px; color: var(--sub); cursor: pointer; transition: .15s;
}
.chip.on { border-color: rgba(168,56,44,.5); color: var(--accent); background: var(--accent-soft); }
.chip:active { transform: scale(.97); }

/* tarot */
.tarot-stage { display: flex; gap: 12px; justify-content: center; padding: 18px 0 8px; }
.tcard {
  width: 92px; height: 148px; border-radius: 10px; position: relative;
  perspective: 700px; flex: none;
}
.tcard .inner {
  position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.22,.75,.3,1);
}
.tcard.flip .inner { transform: rotateY(180deg); }
.tcard .face, .tcard .back {
  position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(168,56,44,.25); overflow: hidden;
}
.tcard .back { background: repeating-linear-gradient(45deg, #fbf7f2, #fbf7f2 5px, #f4ede3 5px, #f4ede3 10px); }
.tcard .back::after {
  content: "心"; font-family: var(--serif); font-size: 26px; color: rgba(168,56,44,.3);
  border: 1px solid rgba(168,56,44,.22); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tcard .face { background: #fff; transform: rotateY(180deg); padding: 8px 6px; text-align: center; }
.tcard .face .pos { font-size: 10px; color: var(--faint); letter-spacing: 1px; }
.tcard .face .nm { font-family: var(--serif); font-size: 15px; margin: 6px 0 2px; line-height: 1.3; }
.tcard .face .ori { font-size: 10px; color: var(--accent); }
.tcard .face .sym { font-family: var(--serif); font-size: 20px; color: var(--gold); margin-top: 6px; }
.tcard.flip .face .sym { animation: fadeIn .5s .3s both; }

.tarot-reading .titem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tarot-reading .titem:last-child { border-bottom: 0; }
.titem .ti-head { display: flex; align-items: baseline; gap: 8px; }
.titem .ti-head .pos { font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.titem .ti-head .nm { font-family: var(--serif); font-size: 16px; }
.titem .ti-head .ori { font-size: 11px; color: var(--faint); }
.titem p { font-size: 13px; color: #44403a; margin-top: 6px; line-height: 1.8; }
.titem .kw { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.titem .kw span { font-size: 11px; color: var(--gold); background: #f8f3e9; padding: 2px 8px; border-radius: 10px; }

/* fengshui */
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 108px; height: 108px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--serif); font-size: 28px; line-height: 1; }
.ring .num span { font-size: 10.5px; color: var(--sub); margin-top: 3px; letter-spacing: 1px; }
.ring-side .gz { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; }
.ring-side .lv { font-size: 12.5px; margin-top: 4px; }
.ring-side p { font-size: 11.5px; color: var(--sub); margin-top: 6px; line-height: 1.7; }

.score-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sbar .sh { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.sbar .sh b { font-weight: 500; }
.sbar .st { height: 6px; border-radius: 4px; background: #eee9e0; overflow: hidden; }
.sbar .st i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c9a86c, var(--accent)); }

.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.cell {
  border-radius: 10px; padding: 9px 4px; text-align: center; background: #f7f4ee;
  border: 1px solid transparent; min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.cell .d { font-size: 11px; color: var(--sub); letter-spacing: 1px; }
.cell .s { font-size: 9.5px; color: var(--faint); letter-spacing: .5px; }
.cell .v { font-family: var(--serif); font-size: 13px; }
.cell .sc { font-size: 10px; color: var(--faint); }
.cell.center { background: #f2ece1; border-color: #e6dcc9; }
.cell.current { outline: 2px solid rgba(168,56,44,.5); outline-offset: -2px; }
.lv-best { background: #eef5ef !important; border-color: #d7e7da !important; }
.lv-good { background: #f4f7f0 !important; border-color: #e2ead9 !important; }
.lv-warn { background: #faf3e8 !important; border-color: #f0e2cb !important; }
.lv-bad { background: #f9eeee !important; border-color: #eed9d9 !important; }

.level-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

/* fengshui · 多因子 */
.fs-sec { margin-top: 20px; }
.fs-sec-title { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 1.5px; margin: 0 0 10px 2px; }
.fs-sec .card { padding-top: 16px; padding-bottom: 16px; }
.fgroup + .fgroup { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.fg-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 9px; }
.fg-label { font-size: 13px; letter-spacing: .5px; }
.fg-label em { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 8px; }
.fg-hint { font-size: 10.5px; color: var(--faint); }
.frow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; padding-bottom: 2px; }
.fr-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fr-name { font-size: 13px; }
.fr-name em { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 6px; }
.fr-score { font-family: var(--serif); font-size: 17px; }
.frow .st { height: 5px; border-radius: 3px; background: #eee9e0; overflow: hidden; }
.frow .st i { display: block; height: 100%; border-radius: 3px; }
.fr-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--sub); margin-top: 5px; }
.fr-note { font-size: 11px; color: var(--faint); line-height: 1.7; margin-top: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { background: #f8f5ef; border-radius: 12px; padding: 12px; }
.mini .k { font-size: 11px; color: var(--sub); letter-spacing: 1px; }
.mini .v { font-family: var(--serif); font-size: 18px; margin-top: 2px; }
.mini .t { font-size: 11px; color: var(--faint); margin-top: 3px; }

.note { font-size: 11px; color: var(--faint); line-height: 1.75; }
.note-box { background: #f7f3ea; border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.note-box h4 { font-size: 12px; color: var(--warn); margin-bottom: 4px; letter-spacing: 1px; }

/* me */
.me-head { display: flex; align-items: center; gap: 14px; padding: 24px 0 18px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; flex: none;
}
.me-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 1px; }
.me-head .uname { font-size: 12px; color: var(--sub); margin-top: 2px; }
.me-head .role { font-size: 10.5px; color: var(--gold); border: 1px solid #e6dcc8; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 6px; text-align: center; }
.stat b { font-family: var(--serif); font-size: 21px; display: block; font-weight: 500; }
.stat span { font-size: 10.5px; color: var(--sub); letter-spacing: 1px; }

.filter-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.filter-tabs button {
  border: 0; background: transparent; padding: 6px 4px; font-size: 13px; color: var(--sub);
  border-bottom: 2px solid transparent; cursor: pointer;
}
.filter-tabs button.on { color: var(--ink); border-color: var(--accent); }

/* sheet */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 20, .38); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s both;
}
.sheet {
  background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 8px 20px calc(26px + env(safe-area-inset-bottom));
  animation: slideUp .24s cubic-bezier(.2,.8,.3,1) both;
}
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: #dcd6c9; margin: 8px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.sheet-close { border: 0; background: #f0ece4; width: 30px; height: 30px; border-radius: 50%; color: var(--sub); font-size: 15px; cursor: pointer; }

/* admin */
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.astat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.astat b { font-family: var(--serif); font-size: 24px; font-weight: 500; display: block; }
.astat span { font-size: 11px; color: var(--sub); letter-spacing: 1px; }
.astat .sub { font-size: 10.5px; color: var(--faint); margin-top: 2px; }

.user-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.user-row:last-child { border-bottom: 0; }
.user-row .uav {
  width: 38px; height: 38px; border-radius: 50%; background: #f1ede5; color: var(--sub);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none;
}
.user-row .uinfo { flex: 1; min-width: 0; }
.user-row .uinfo h4 { font-size: 14px; font-weight: 500; }
.user-row .uinfo p { font-size: 11px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .ucount { font-size: 11px; color: var(--sub); text-align: right; flex: none; }
.user-row .ucount b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--ink); }

.search-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.search-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px;
  background: #fff; outline: none;
}
.search-row input:focus { border-color: rgba(168,56,44,.5); }
.search-row .btn { width: auto; padding: 10px 18px; border-radius: 12px; font-size: 13.5px; }

/* toast / loader */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  background: rgba(32, 28, 22, .92); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .22s; z-index: 80; max-width: 82vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 70px 0; color: var(--faint); font-size: 12.5px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #e8e2d7; border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.shuffle-txt { font-family: var(--serif); letter-spacing: 3px; color: var(--gold); font-size: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(26px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-in { animation: riseIn .38s both; }
.stagger > * { animation: riseIn .4s both; }
.stagger > *:nth-child(2) { animation-delay: .05s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; }
.stagger > *:nth-child(5) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
