/* 八字流日运势 — 墨金设计系统 */

:root {
  color-scheme: var(--scheme);
  --scheme: dark;

  /* 色彩 */
  --bg: #0b0c10;
  --bg-2: #101218;
  --panel: #14161d;
  --panel-2: #171a22;
  --line: #262933;
  --line-soft: rgba(230, 215, 178, 0.1);
  --ivory: #eae4d4;
  --ivory-dim: #c6bfae;
  --muted: #a39d8e;
  --faint: #a19b8c;
  --gold: #d0ad66;
  --gold-hi: #ecd5a0;
  --gold-deep: #97783c;
  --gold-dim: rgba(201, 164, 92, 0.13);
  --red: #e0795f;
  --red-dim: rgba(217, 106, 85, 0.13);
  --tao: #df8fa9;

  /* 金色语义分身 */
  --gold-ink: var(--gold-hi);
  --gold-edge: rgba(201, 164, 92, 0.45);
  --red-edge: rgba(217, 106, 85, 0.45);
  --tao-dim: rgba(216, 132, 159, 0.14);
  --on-gold: #140d04;
  --on-red: #160a06;

  /* 评语五档 */
  --tier-0: #ecd5a0;
  --tier-1: #dcb877;
  --tier-2: var(--ivory-dim);
  --tier-3: #d99a5e;
  --tier-4: var(--red);

  /* 五行 */
  --wx-mu: #4fae6d;
  --wx-huo: #e05e45;
  --wx-tu: #85621f;
  --wx-jin: #ca8a04;
  --wx-shui: #4a9bd8;

  /* 字体 */
  --font-body: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "BiauKai",
    "Noto Serif CJK SC", "Songti SC", "SimSun", serif;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 21px;
  --fs-xl: 32px;

  /* 圆角按组件角色 */
  --r-chip: 6px;
  --r-input: 8px;
  --r-btn: 8px;
  --r-tile: 10px;
  --r-panel: 14px;

  --pad: 20px;
  --gap-sec: 36px;
}

/* ---------- 亮色主题：宣纸墨金 ---------- */
[data-theme="light"] {
  --scheme: light;
  /*bg mod by user*/
  --bg: #ffffff;
  --bg-2: #eae4d5;
  --panel: #fbf8f1;
  --panel-2: #f1ecdf;
  --line: #857c66;
  --line-soft: rgba(74, 60, 28, 0.14);
  --ivory: #2b2619;
  --ivory-dim: #4a4234;
  --muted: #5f574a;
  --faint: #736c5d;
  --gold: #9c7c33;
  --gold-hi: #7a5c1e;
  --gold-deep: #5d4718;
  --gold-dim: rgba(156, 124, 51, 0.14);
  --gold-ink: #7a5c1e;
  --gold-edge: rgba(122, 92, 30, 0.45);
  --red: #b04432;
  --red-dim: rgba(176, 68, 50, 0.12);
  --red-edge: rgba(176, 68, 50, 0.45);
  --tao: #a5486b;
  --tao-dim: rgba(165, 72, 107, 0.12);
  --on-gold: #140d04;
  --on-red: #fbf8f1;
  --tier-0: #7a5c1e;
  --tier-1: #8a6a26;
  --tier-2: var(--ivory-dim);
  --tier-3: #a15c1e;
  --tier-4: var(--red);
  --wx-mu: #2a7442;
  --wx-huo: #bb3f27;
  /*mod by user*/
  --wx-tu: #856247;
  --wx-jin: #ca8a04;
  --wx-shui: #1d639c;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- 骨架 ---------- */

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 48px);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-kai);
}

.brand svg { width: 22px; height: 22px; align-self: center; }
.brand svg .ring, .brand svg .s { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.brand svg .dot { fill: var(--gold); }

.brand-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-sub {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.3em;
  font-family: var(--font-body);
}

footer {
  margin-top: var(--gap-sec);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: var(--fs-xs);
  line-height: 1.8;
}

footer p { margin: 0 0 8px; }

/* ---------- 通用控件 ---------- */

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

.btn-primary {
  display: inline-block;
  width: 100%;
  min-height: 48px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: 0.2em;
  border-radius: var(--r-btn);
  padding: 10px 20px;
  transition: background 0.2s ease-out, transform 0.15s ease-out;
}
.btn-primary:hover { background: var(--gold-hi); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ivory-dim);
  font-size: var(--fs-sm);
  transition: border-color 0.2s ease-out, color 0.2s ease-out;
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--ivory); }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-btn);
  color: var(--ivory-dim);
  transition: background 0.2s ease-out;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ivory); }
.icon-btn:disabled { opacity: 0.35; }

#btn-theme .i-sun { display: none; }
[data-theme="light"] #btn-theme .i-sun { display: inline; }
[data-theme="light"] #btn-theme .i-moon { display: none; }

:focus-visible {
  outline: 2px dashed var(--gold-ink);
  outline-offset: 3px;
}

::selection { background: var(--gold-dim); color: var(--gold-hi); }

/* ---------- 表单 ---------- */

.setup { padding-top: 8px; }

.setup h1 {
  font-family: var(--font-kai);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 28px 0 8px;
}

.setup .lead {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0 0 28px;
  max-width: 46ch;
}

.field { margin-bottom: 20px; }

.field > label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  margin-bottom: 8px;
}

.field input[type="date"],
.field input[type="time"],
.field input[type="text"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ivory);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: border-color 0.2s ease-out;
}
.field input:hover { border-color: var(--gold-deep); }

.field input:disabled { opacity: 0.4; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.gender fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}
.gender legend {
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  padding: 0;
  margin-bottom: 8px;
}
.gender .opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.2s ease-out, color 0.2s ease-out;
}
.gender .opt:has(input:checked) {
  border-color: var(--gold);
  color: var(--ivory);
  background: var(--gold-dim);
}
.gender .opt input { accent-color: var(--gold); width: 16px; height: 16px; }

.form-error {
  color: var(--red);
  font-size: var(--fs-sm);
  margin: 12px 0 0;
}

.form-note {
  color: var(--faint);
  font-size: var(--fs-xs);
  margin: 16px 0 0;
}

/* ---------- 命主切换 ---------- */

.master-bar { margin-top: 20px; }

.master-strip { display: flex; flex-wrap: wrap; gap: 8px; }

.master-chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: border-color 0.2s ease-out, color 0.2s ease-out, background 0.2s ease-out;
}
.master-chip:hover { border-color: var(--gold-deep); color: var(--ivory); }
.master-chip.cur {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-ink);
  font-weight: 600;
}
.master-chip.new { border-style: dashed; }

/* ---------- 日期栏 ---------- */

.daybar { margin-top: 28px; }

.daybar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daybar-main {
  flex: 1;
  text-align: center;
  background: none;
  border: 1px dashed transparent;
  border-radius: var(--r-tile);
  padding: 4px 8px;
  transition: border-color 0.2s ease-out;
}
.daybar-main:hover { border-color: var(--line); }

.daybar-d { font-size: var(--fs-lg); font-weight: 600; }
.daybar-l {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-kai);
  letter-spacing: 0.08em;
}

.jieqi-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  color: var(--gold-hi);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-chip);
  font-family: var(--font-body);
  vertical-align: 1px;
}

.today-link {
  display: block;
  margin: 8px auto 0;
  color: var(--gold-ink);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  padding: 6px 12px;
}
.today-link:hover { text-decoration: underline; }

.daypicker {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
}
.daypicker.open { grid-template-rows: 1fr; }
.daypicker > div { overflow: hidden; }
.daypicker-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}
.daypicker-inner input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ivory);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
}

/* ---------- 总评 ---------- */

.verdict {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  padding: var(--pad);
  display: flex;
  gap: 20px;
  align-items: center;
}

.dial { position: relative; width: 132px; height: 132px; flex: none; }
.dial svg { width: 100%; height: 100%; display: block; }
.dial .track { stroke: var(--line); }
.dial .arc {
  stroke: var(--gold);
  transition: stroke-dasharray 0.7s cubic-bezier(0.25, 0.7, 0.3, 1);
}
.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dial-label { font-size: 10px; color: var(--faint); letter-spacing: 0.2em; }
.dial-score { font-family: var(--font-kai); font-size: 40px; font-weight: 700; line-height: 1; }
.dial-tier { font-family: var(--font-kai); font-size: var(--fs-sm); letter-spacing: 0.2em; }
.tier-0 { color: var(--tier-0); }
.tier-1 { color: var(--tier-1); }
.tier-2 { color: var(--tier-2); }
.tier-3 { color: var(--tier-3); }
.tier-4 { color: var(--tier-4); }

.verdict-side { flex: 1; min-width: 0; }

.verdict-summary {
  margin: 0 0 12px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ivory);
}

.gz-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.gz-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.gz-tag b {
  font-family: var(--font-kai);
  font-size: var(--fs-sm);
}

.notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.note-chip {
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border-radius: var(--r-chip);
}
.note-chip.chong { background: var(--red-dim); color: var(--red); }
.note-chip.he { background: var(--gold-dim); color: var(--gold-hi); }
.note-chip.xing { background: var(--red-dim); color: var(--red); }
.note-chip.gui { background: var(--gold-dim); color: var(--gold-hi); }
.note-chip.tao { background: var(--tao-dim); color: var(--tao); }
.note-chip.fu { background: var(--panel-2); color: var(--ivory-dim); }
.note-chip.sanhe { background: var(--gold-dim); color: var(--gold-hi); }

/* ---------- 分栏区 ---------- */

section.block { margin-top: var(--gap-sec); }

h2.sec {
  font-family: var(--font-kai);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.24em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
h2.sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

/* 分项运势 */
.scale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.scale-row + .scale-row { border-top: 1px solid var(--line-soft); }

.scale-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 92px;
  flex: none;
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
}
.scale-head svg { width: 17px; height: 17px; color: var(--gold-hi); flex: none; }

.meter { flex: 1; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.meter-fill {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  width: 0;
  transition: width 0.6s cubic-bezier(0.25, 0.7, 0.3, 1);
}

.scale-val {
  width: 34px;
  text-align: right;
  font-family: var(--font-kai);
  font-size: var(--fs-sm);
  color: var(--ivory);
  flex: none;
}

/* 宜忌 */
.advice-cols { display: grid; gap: 16px; }

.advice-line { display: flex; gap: 12px; align-items: flex-start; }

.advice-mark {
  font-family: var(--font-kai);
  font-size: var(--fs-lg);
  font-weight: 700;
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-chip);
}
.advice-mark.yi { color: var(--on-gold); background: var(--gold); }
.advice-mark.ji { color: var(--on-red); background: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }

.chip {
  font-size: var(--fs-sm);
  padding: 5px 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  color: var(--ivory-dim);
}
.chip.yi { border-color: var(--gold-edge); color: var(--gold-hi); }
.chip.ji { border-color: var(--red-edge); color: var(--red); }

.lucky-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.lucky-line b { color: var(--ivory); font-weight: 600; }
.lucky-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid var(--line);
}

/* 未来七日 */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 400px) {
  .week-strip { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .day-tile { flex: 1 0 64px; scroll-snap-align: start; }
}

.day-tile {
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ivory-dim);
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
}
.day-tile:hover { border-color: var(--gold-deep); }
.day-tile.cur {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.day-tile .dw { font-size: var(--fs-xs); color: var(--muted); }
.day-tile .dgz { font-family: var(--font-kai); font-size: var(--fs-sm); }
.day-tile .ds { font-family: var(--font-kai); font-size: var(--fs-lg); font-weight: 700; line-height: 1; }
.day-tile small { font-size: 10px; color: var(--faint); }

/* 命盘 */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 14px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pillar.day { border-color: var(--gold-deep); background: var(--gold-dim); }

.pillar .pl {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.2em;
}
.pillar .pss { font-size: 11px; color: var(--faint); min-height: 16px; }
.pillar .pg, .pillar .pz {
  font-family: var(--font-kai);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}
.pillar .ph {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--faint);
  min-height: 16px;
  letter-spacing: 0.05em;
}
.pillar .ph b { font-weight: inherit; }
.pillar .pnull {
  font-size: var(--fs-xs);
  color: var(--faint);
  padding: 18px 0 12px;
}

.wx-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.wx-bar span { height: 100%; }

.wx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.wx-legend b { color: var(--ivory); font-weight: 600; }

.chart-line {
  margin: 20px 0 0;
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  line-height: 1.9;
}
.chart-line b { color: var(--ivory); }
.chart-line .fy {
  color: var(--gold-hi);
  font-family: var(--font-kai);
}

/* ---------- 大运 ---------- */

#yun-start { margin: 0 0 12px; }

.yun-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.yun-strip, .week-strip { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.yun-strip::-webkit-scrollbar, .week-strip::-webkit-scrollbar { height: 6px; }
.yun-strip::-webkit-scrollbar-thumb, .week-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.yun-strip::-webkit-scrollbar-track, .week-strip::-webkit-scrollbar-track { background: transparent; }

.yun-tile {
  flex: 0 0 88px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 10px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.yun-tile.cur { border-color: var(--gold); background: var(--gold-dim); }
.yun-tile .yg {
  display: flex;
  gap: 2px;
  font-family: var(--font-kai);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
}
.yun-tile .ya { font-size: var(--fs-xs); color: var(--ivory-dim); }
.yun-tile .yy { font-size: 10px; color: var(--faint); }

/* ---------- 四层合参 ---------- */

.combine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.combine-head .cs { font-family: var(--font-kai); font-size: var(--fs-xl); font-weight: 700; line-height: 1; }
.combine-head .ct { font-family: var(--font-kai); letter-spacing: 0.2em; }

.layer-row { padding: 14px 0; }
.layer-row + .layer-row { border-top: 1px solid var(--line-soft); }

.layer-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.layer-name {
  width: 44px;
  flex: none;
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  letter-spacing: 0.1em;
}
.layer-gz {
  display: flex;
  gap: 2px;
  font-family: var(--font-kai);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
}
.layer-ss { font-size: var(--fs-xs); color: var(--muted); }
.layer-tag { font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-chip); }
.layer-tag.fav { background: var(--gold-dim); color: var(--gold-ink); }
.layer-tag.unfav { background: var(--red-dim); color: var(--red); }
.layer-tag.mid { background: var(--panel-2); color: var(--ivory-dim); }
.layer-score {
  margin-left: auto;
  font-family: var(--font-kai);
  font-size: var(--fs-md);
  color: var(--ivory);
}
.layer-row .notes { margin-top: 8px; }
.layer-text {
  margin: 8px 0 0;
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  line-height: 1.8;
}

.combine-line {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--ivory);
  line-height: 1.9;
}

/* ---------- 更新提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%) translateY(8px);
  background: var(--panel-2);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-btn);
  color: var(--ivory);
  padding: 10px 20px;
  font-size: var(--fs-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 进场动效 ---------- */

.fade-swap { animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-swap { animation: none; }
  .dial .arc, .meter-fill, .toast { transition: none; }
}

/* ---------- 宽屏 ---------- */

@media (min-width: 720px) {
  .setup h1 { margin-top: 40px; font-size: 40px; }
  .verdict { padding: 28px; }
  .dial { width: 160px; height: 160px; }
  .dial-score { font-size: 52px; }
  .pillars { gap: 12px; }
  .pillar .pg, .pillar .pz { font-size: 36px; }
}

@media (max-width: 420px) {
  .verdict { flex-direction: column; align-items: stretch; text-align: center; }
  .dial { margin: 0 auto; }
  .gz-tags, .notes { justify-content: center; }
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillar .pg, .pillar .pz { font-size: 24px; }
}
