/* 炉子规则、投料附言、删除炉子、隐私说明 */

/* ---------- 规则面板（主人页） ---------- */
.rules { background: linear-gradient(180deg, var(--paper-hi), var(--paper)); }
.rules__cats { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.rules__cats legend { padding: 0; width: 100%; }
.rules__cats .chips { margin-top: 0; }

/* 分类开关：开着的是实心贴纸 ✓，关掉的变成虚线空签 +（图标等宽，切换时不挤动别的签） */
.chip--toggle { display: inline-flex; align-items: center; gap: 5px; }
.chip--toggle::before {
  content: "✓";
  display: inline-block;
  width: 0.9em;
  text-align: center;
  font-size: 0.85em;
  font-weight: 900;
}
.chip--toggle.is-picked::before { animation: pop-in 0.25s var(--ease-pop); }
.chip--toggle:not(.is-picked) {
  color: var(--ink-faint);
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.chip--toggle:not(.is-picked)::before { content: "+"; }

/* 开关行 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fffdf7;
  cursor: pointer;
}
.switch-row__text b { display: block; font-size: var(--text-sm); font-weight: 900; }
.switch-row__text small { display: block; margin-top: 2px; font-size: var(--text-2xs); color: var(--ink-soft); }
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-lo);
  box-shadow: inset 0 2px 0 rgba(43, 28, 24, 0.12);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-hi);
  transition: transform 0.22s var(--ease-pop);
}
.switch:checked { background: var(--ember-400); }
.switch:checked::after { transform: translateX(22px); }
.switch:focus-visible { outline: 3px solid var(--ember-500); outline-offset: 2px; }

/* ---------- 投料页：主人的留言、附言 ---------- */
.owner-note { margin: 0 0 14px; background: #fff3c9; rotate: -0.6deg; animation: pop-in 0.4s var(--ease-pop) 0.2s backwards; }
.bubble__avatar--owner {
  font-family: var(--font-letter);
  font-size: var(--text-base);
  font-weight: 900;
  color: var(--paper-hi);
  background: linear-gradient(180deg, var(--clay-light), var(--clay));
}
.field__opt {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--paper-lo);
}
.my-note, .family__note {
  margin: 10px 0 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-soft);
}
.family__note { margin-top: 2px; }

/* ---------- 删除炉子：放在页面最下面，不抢眼 ---------- */
.danger-zone { margin-top: 30px; text-align: center; }
.link-btn--quiet {
  color: var(--sky-dim);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration-style: solid;
  text-decoration-color: rgba(125, 133, 187, 0.5);
}
.link-btn--quiet[aria-expanded="true"] { color: var(--sky-muted); }
.danger-card {
  margin-top: 8px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  text-align: left;
  background: #ffe6dc;
  box-shadow: 0 4px 0 var(--ink);
  animation: pop-in 0.3s var(--ease-pop);
}
.danger-card__text { margin: 0 0 14px; font-size: var(--text-sm); font-weight: 700; line-height: 1.6; color: #6e1f10; }
.btn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-split .btn { min-height: 48px; font-size: var(--text-sm); letter-spacing: 0.04em; }
.btn--danger {
  color: #fff;
  background: linear-gradient(180deg, #e0573f, var(--seal));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 4px 0 var(--ink);
}

/* ---------- 页脚 ---------- */
.footer__link { display: inline-block; margin-top: 8px; padding: 4px 6px; color: var(--sky-muted) !important; }

/* ---------- 隐私说明 ---------- */
.privacy__title {
  margin: 6px 0 0;
  font-family: var(--font-letter);
  font-size: var(--text-hero);
  line-height: 1.2;
  color: #fff3dc;
}
.privacy__lede { margin: 10px auto 0; max-width: 20em; font-size: var(--text-sm); color: var(--sky-muted); text-wrap: balance; }
.privacy { font-size: var(--text-sm); line-height: 1.75; }
.privacy .paper__title { margin: 22px 0 8px; font-size: var(--text-lg); }
.privacy .paper__title:first-child { margin-top: 0; }
.privacy p { margin: 0; }
.privacy__list { margin: 0; padding-left: 1.2em; }
.privacy__list li + li { margin-top: 6px; }
.privacy__list b { color: var(--clay-dark); }
.privacy__tip { margin-top: 18px; background: #fff3c9; }

/* ---------- 「轮到你」卡片（投完料之后） ---------- */
.make-own {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 190, 102, 0.55), transparent 60%),
    linear-gradient(180deg, var(--paper-hi), var(--paper));
  box-shadow: var(--pop-lg), 0 0 0 4px var(--ember-400), 0 18px 40px -16px rgba(255, 122, 47, 0.75);
}
.make-own .paper__title { margin-bottom: 8px; }
.make-own__hook { margin: 0 0 6px; font-size: var(--text-sm); font-weight: 700; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.make-own__luck {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 900;
  background: var(--legend);
  box-shadow: 0 2px 0 var(--ink);
  rotate: -1.5deg;
}
.make-own__wishes { margin-top: 12px; }
.make-own__wishes .chip { display: inline-flex; align-items: center; text-decoration: none; }
.make-own__btn { margin-top: 16px; }

/* ---------- 投料人回访：你走之后 ---------- */
.followup__line { margin: 6px 0 0; font-size: var(--text-sm); font-weight: 700; color: var(--ink-soft); }
.followup__line--big { margin-top: 0; font-family: var(--font-letter); font-size: var(--text-lg); font-weight: 900; color: var(--ink); }

/* ---------- 分阶段小揭晓 ---------- */
.teaser-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: teaser; }
.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 2px dashed var(--paper-edge);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.6);
}
.teaser__label { font-size: var(--text-xs); font-weight: 900; color: var(--ink-soft); }
.teaser__lock { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 800; color: var(--ink-faint); }
.teaser__lock svg { width: 13px; height: 13px; }
.teaser.is-open { border: 2px solid var(--ink); background: #fff8e0; box-shadow: 0 3px 0 var(--ink); }
.teaser__value { font-family: var(--font-letter); font-size: var(--text-base); font-weight: 900; color: var(--clay-dark); }

/* ---------- 新动静 ---------- */
.news-banner {
  margin: 0 auto 14px;
  padding: 9px 14px;
  max-width: 26em;
  border: 2px solid var(--ink);
  border-radius: 14px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ember-300);
  box-shadow: 0 3px 0 var(--ink);
  rotate: -0.8deg;
}

/* ---------- 首页「我的炉子」 ---------- */
.mine .paper__title { margin-bottom: 10px; }
.mine__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mine__item {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: #fffdf7;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.1s var(--ease-out), box-shadow 0.1s;
}
.mine__item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.mine__item:focus-visible { outline: 3px solid var(--ember-500); outline-offset: 2px; }
.mine__role { font-size: var(--text-2xs); font-weight: 900; letter-spacing: 0.1em; color: var(--ember-700); }
.mine__wish { font-family: var(--font-letter); font-size: var(--text-base); font-weight: 900; line-height: 1.4; }
.mine__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--text-xs); font-weight: 700; color: var(--ink-soft); }
.mine__meta .tier-badge { padding: 0 8px; font-size: var(--text-2xs); box-shadow: 0 1px 0 var(--ink); }
.mine__open { color: var(--clay); }
.mine__item.is-revealed { background: linear-gradient(110deg, #fff6d3, #ffe7a8); }
.mine__news { margin-top: 4px; font-size: var(--text-xs); font-weight: 900; color: var(--seal); }
.mine__item.has-news::after {
  content: "";
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--seal);
  animation: pop-in 0.4s var(--ease-pop);
}
