/* 越越吃啥 · 设计系统（多人房间版）
   暖白底 #fffdf4 / 深炭 #33302b / 瓜红 #e63b2e
   纯平色块，无渐变，无玻璃拟态 */

:root {
  --bg: #fffdf4;
  --ink: #33302b;
  --accent: #e63b2e;
  --accent-dark: #b02018;
  --hair: rgba(51, 48, 43, .12);
  --ease-in: cubic-bezier(.37, .16, .12, 1);
  --ease-hover: cubic-bezier(.52, .08, .18, 1);
  --ease-screen: cubic-bezier(.7, 0, .3, 1);
  --font: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: #33302b; color: #fffaf3; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

#app {
  max-width: 420px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  min-height: 100vh;
}

/* ---------- 屏幕切换 ---------- */
.screen { display: none; }
.screen.active {
  display: block;
  animation: screenIn .45s var(--ease-screen) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 入场 stagger ---------- */
.rise { animation: rise .5s var(--ease-in) both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }
.d4 { animation-delay: .4s; }
.d5 { animation-delay: .5s; }
.d6 { animation-delay: .6s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 字体层级 ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}
h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.sub { font-size: 15px; opacity: .72; margin-bottom: 28px; }
.meta { font-size: 13px; opacity: .6; margin-top: 4px; }
.hint { font-size: 12px; opacity: .5; margin-top: 10px; text-align: center; }
.msg  { font-size: 13px; color: var(--accent); min-height: 20px; margin-top: 10px; }
.num  { font-variant-numeric: tabular-nums; }

.hairline { height: 1px; background: var(--hair); margin: 22px 0; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: .6;
  margin-bottom: 2px;
}
.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  transition: border-color .15s var(--ease-hover);
}
.field input:focus { border-bottom-color: var(--accent); }
.field input::placeholder { color: rgba(51, 48, 43, .35); }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 15px 0;
  margin-top: 8px;
  cursor: pointer;
  transition: background .15s var(--ease-hover);
  box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { background: var(--accent-dark); box-shadow: 0 1px 0 var(--accent-dark); transform: translateY(3px); }
.btn-primary:disabled { opacity: .35; cursor: default; }
.btn-primary:disabled:hover { background: var(--accent); }

.btn-text {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  margin-top: 4px;
  cursor: pointer;
  transition: color .15s var(--ease-hover);
}
.btn-text:hover { color: var(--accent-dark); }
.btn-text:disabled { color: rgba(51, 48, 43, .35); cursor: default; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(51, 48, 43, .35);
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .15s var(--ease-hover), color .15s var(--ease-hover);
}
.btn-outline:hover { border-color: var(--ink); }

/* ---------- 分享卡片区 ---------- */
.share-card {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0 6px;
}
#qrCanvas {
  width: 108px;
  height: 108px;
  flex: none;
  image-rendering: pixelated;
}
.share-side { min-width: 0; }
.share-tip { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.share-link {
  font-size: 12px;
  opacity: .55;
  word-break: break-all;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 参与者 ---------- */
.who {
  font-size: 13px;
  opacity: .6;
  padding: 10px 0 0;
  word-break: break-all;
}

/* ---------- 投池列表 ---------- */
.pool { list-style: none; }
.pool li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  animation: rise .4s var(--ease-in) both;
}
.pool li:last-child { border-bottom: none; }
.pool .p-name { font-size: 16px; font-weight: 700; }
.pool .p-by { font-size: 13px; opacity: .55; }
.empty { font-size: 14px; opacity: .5; padding: 18px 0; }

/* ---------- 转盘 ---------- */
.wheel-wrap {
  position: relative;
  margin: 28px auto 0;
  width: min(92vw, 380px);
}
#wheel { display: block; width: 100%; height: auto; }
.pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--accent);
  filter: drop-shadow(0 2px 2px rgba(150, 58, 30, .35));
  z-index: 2;
}
.pointer.tick { animation: tickpulse .18s var(--ease-hover); }
@keyframes tickpulse {
  50% { transform: translateX(-50%) scale(1.35); }
}

.skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  opacity: .7;
  margin-top: 22px;
  cursor: pointer;
}
.skip input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ---------- 揭晓浮层 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 48, 43, .38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
}
.overlay[hidden] { display: none; }
.reveal-card {
  width: min(420px, 100%);
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  padding: 30px 24px 40px;
  box-shadow: 0 -10px 32px rgba(51, 48, 43, .18);
  animation: slideUp .5s var(--ease-screen) both;
}
@keyframes slideUp {
  from { transform: translateY(60%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.win-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  word-break: break-all;
}

/* ---------- 结果分享卡 ---------- */
.result-card {
  background: #fffdf4;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 18px 0 26px;
}
.rc-meal { font-size: 14px; font-weight: 700; opacity: .6; margin-bottom: 18px; }
.rc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 6px;
}
.rc-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  word-break: break-all;
}
.rc-by { font-size: 14px; opacity: .6; margin-top: 6px; margin-bottom: 4px; }
.rc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}
.rc-row span:first-child { opacity: .55; }
.rc-foot {
  font-size: 12px;
  letter-spacing: .1em;
  opacity: .45;
  text-align: center;
}

/* ---------- 昵称门 ---------- */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.gate[hidden] { display: none; }
.gate-card {
  width: min(420px, 100%);
  animation: rise .5s var(--ease-in) both;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease-hover), transform .2s var(--ease-hover);
  z-index: 40;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 360px) {
  h1 { font-size: 30px; }
  .rc-name { font-size: 28px; }
  .share-card { flex-direction: column; text-align: center; }
}

/* ---------- 组局人管理链接（视觉弱化） ---------- */
.mgr {
  margin-top: 14px;
  border-top: 1px solid var(--hair);
  padding-top: 12px;
}
.mgr-tip { font-size: 12px; opacity: .55; margin-bottom: 6px; }
.mgr-link {
  font-size: 11px;
  opacity: .4;
  word-break: break-all;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.btn-inline { width: auto; padding: 6px 0; margin: 0; font-size: 13px; }

/* ---------- 模糊态（投池阶段遮蔽店名） ---------- */
.p-name.p-blind { opacity: .8; font-weight: 700; display: inline-flex; align-items: center; }
.p-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- 饭局回顾（极简评价） ---------- */
.rv-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.rv-btns { display: flex; gap: 10px; margin-bottom: 18px; }
.btn-rate {
  flex: 1;
  border: 1px solid rgba(51, 48, 43, .35);
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: border-color .15s var(--ease-hover), background .15s var(--ease-hover), color .15s var(--ease-hover);
}
.btn-rate:hover { border-color: var(--ink); }
.btn-rate.sel { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.review .btn-outline { width: 100%; padding: 12px 0; font-size: 14px; }
.rv-summary { font-size: 15px; font-weight: 700; margin-top: 6px; }
.rv-list { list-style: none; margin-top: 6px; }
.rv-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  animation: rise .4s var(--ease-in) both;
}
.rv-list li:last-child { border-bottom: none; }
.rv-nick { font-size: 13px; font-weight: 700; flex: none; }
.rv-text { font-size: 14px; opacity: .75; word-break: break-all; }

/* ---------- 我的常吃（个人收藏夹） ---------- */
.favs { margin-bottom: 18px; }
.favs-label {
  font-size: 12px;
  font-weight: 600;
  opacity: .55;
  margin-bottom: 8px;
}
.favs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(51, 48, 43, .35);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .15s var(--ease-hover);
}
.chip:hover { border-color: var(--ink); }
.chip-x {
  opacity: .3;
  font-size: 14px;
  line-height: 1;
  transition: opacity .15s var(--ease-hover);
}
.chip-x:hover { opacity: .85; }

.fav-save,
.fav-save-sm {
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s var(--ease-hover);
  padding: 0;
}
.fav-save:hover,
.fav-save-sm:hover { opacity: 1; }
.fav-save { display: block; font-size: 13px; font-weight: 600; margin-top: 8px; }
.fav-save-sm { font-size: 12px; margin-left: 10px; }

/* ---------- 品牌区（logo + 口号） ---------- */
.brand { text-align: center; margin-bottom: 30px; }
.brand-logo {
  width: 112px;
  height: 112px;
  border-radius: 26px; /* 图本身已是圆角透明，此处仅兜底 */
}
.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 14px;
}
.brand-slogan { font-size: 13px; opacity: .55; margin-top: 4px; }

/* 结果分享卡里的小号 logo（截图发群有品牌感） */
.rc-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

/* ---------- 盲盒神秘感 ---------- */
.mystery-tip { font-size: 12.5px; color: var(--accent); opacity: .85; margin: 4px 0 0; }
.pool li.mystery {
  border: 1.5px dashed rgba(230, 59, 46, .45);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff3ee 0%, #ffe9ec 100%);
  align-items: center;
  animation: rise .4s var(--ease-in) both, mysteryBreath 2.4s ease-in-out infinite;
}
.pool li.mystery:last-child { border-bottom: 1.5px dashed rgba(230, 59, 46, .45); }
.mystery-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf4;
  font-size: 14px;
  font-weight: 800;
  margin-right: 8px;
  animation: mysteryWobble 1.8s ease-in-out infinite;
}
@keyframes mysteryBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 59, 46, 0); }
  50% { box-shadow: 0 4px 16px rgba(230, 59, 46, .18); }
}
@keyframes mysteryWobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg) scale(1.12); }
}

/* ---------- 投喂输入卡（店名入口强化） ---------- */
.drop-card {
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 18px 16px 6px;
  background: #fff5f1;
  margin-bottom: 14px;
  animation: dropGlow 2.6s ease-in-out infinite;
}
.drop-card .field { margin-bottom: 12px; }
.drop-card .field label { color: var(--accent); opacity: 1; font-size: 14px; }
.drop-card .field input { border-bottom: 2px solid rgba(230, 59, 46, .35); font-size: 19px; }
.drop-card .field input:focus { border-bottom-color: var(--accent); }
@keyframes dropGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(230, 59, 46, .10); }
  50% { box-shadow: 0 6px 26px rgba(230, 59, 46, .28); }
}

/* ---------- 参与者投票状态 ---------- */
.who .who-done { color: #3a9e4b; font-weight: 700; opacity: 1; }
.who .who-half { opacity: .85; }
.who .who-wait { opacity: .4; }

/* ---------- 转盘氛围（全屏光束 + 光晕 + 漂浮美食） ---------- */
.wheel-wrap { z-index: 1; }
.wheel-wrap canvas { position: relative; z-index: 1; }
.wheel-rays {
  position: fixed;
  left: 50%;
  top: 42%;
  width: 160vmax;
  height: 160vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(230, 59, 46, .10) 0deg 9deg, rgba(255, 217, 138, .16) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  animation: raysSpin 11s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.wheel-glow {
  position: fixed;
  left: 50%;
  top: 42%;
  width: 96vmax;
  height: 96vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 94, .20) 0%, rgba(255, 217, 138, .10) 40%, transparent 65%);
  animation: glowPulse 2.2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.wheel-floats {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.wheel-floats span {
  position: absolute;
  bottom: -6%;
  font-size: 26px;
  opacity: 0;
  animation: floatUp 5.2s ease-in infinite;
}
.wheel-floats span:nth-child(1) { left: 6%;  animation-delay: 0s; }
.wheel-floats span:nth-child(2) { left: 22%; animation-delay: 1.1s; }
.wheel-floats span:nth-child(3) { left: 40%; animation-delay: 2.3s; }
.wheel-floats span:nth-child(4) { left: 58%; animation-delay: .6s; }
.wheel-floats span:nth-child(5) { left: 74%; animation-delay: 1.8s; }
.wheel-floats span:nth-child(6) { left: 88%; animation-delay: 3s; }
@keyframes raysSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  15% { opacity: .8; }
  70% { opacity: .65; }
  100% { transform: translateY(-108vh) scale(1.2); opacity: 0; }
}

/* ---------- 结果分享卡 · 庆典海报风 ---------- */
.result-card.fest {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ff6b5e 0%, #f04a3c 45%, #d62f22 100%);
  border: none;
  border-radius: 20px;
  padding: 40px 22px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(214, 47, 34, .35);
}
.result-card.fest .rc-meal { opacity: .9; color: #ffe9a8; margin-bottom: 12px; }
.result-card.fest .rc-name {
  font-size: 44px;
  color: #fff;
  text-shadow: 0 3px 0 rgba(176, 32, 24, .45);
  animation: rcPop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes rcPop {
  0% { transform: scale(.3); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.result-card.fest .rc-by { opacity: .9; color: #fff; }
.rc-medal {
  display: inline-block;
  background: #ffd94d;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 10px;
  box-shadow: 0 2px 0 rgba(176, 32, 24, .35);
}
.rc-stamp {
  position: absolute;
  right: 16px;
  top: 44%;
  transform: rotate(12deg);
  border: 3px solid #fff;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .12em;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: .92;
  background: rgba(214, 47, 34, .3);
}
.rc-panel {
  background: rgba(255, 255, 255, .96);
  color: #333;
  border-radius: 14px;
  padding: 8px 16px;
  margin-top: 24px;
  text-align: left;
}
.result-card.fest .rc-foot { color: rgba(255, 255, 255, .85); opacity: 1; margin-top: 16px; }
.result-card.fest .fav-save { color: #ffe9a8; margin: 10px auto 0; }

/* 纸屑雨 */
.rc-confetti { position: absolute; inset: 0; pointer-events: none; }
.rc-confetti i {
  position: absolute;
  top: -14px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confettiFall linear infinite;
}
.rc-confetti i:nth-child(3n) { background: #ffd94d; }
.rc-confetti i:nth-child(3n+1) { background: #ffb3c7; }
.rc-confetti i:nth-child(3n+2) { background: #fffdf4; }
.rc-confetti i:nth-child(1) { left: 5%;  animation-duration: 3.2s; animation-delay: 0s; }
.rc-confetti i:nth-child(2) { left: 12%; animation-duration: 2.7s; animation-delay: .8s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(3) { left: 19%; animation-duration: 3.8s; animation-delay: 1.6s; }
.rc-confetti i:nth-child(4) { left: 26%; animation-duration: 2.9s; animation-delay: .3s; }
.rc-confetti i:nth-child(5) { left: 33%; animation-duration: 3.6s; animation-delay: 2.1s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(6) { left: 40%; animation-duration: 3.4s; animation-delay: 1.1s; }
.rc-confetti i:nth-child(7) { left: 47%; animation-duration: 2.6s; animation-delay: .5s; }
.rc-confetti i:nth-child(8) { left: 54%; animation-duration: 3.6s; animation-delay: 1.9s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(9) { left: 61%; animation-duration: 3s;   animation-delay: .2s; }
.rc-confetti i:nth-child(10) { left: 68%; animation-duration: 3.9s; animation-delay: 1.4s; }
.rc-confetti i:nth-child(11) { left: 75%; animation-duration: 2.8s; animation-delay: 2.4s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(12) { left: 82%; animation-duration: 3.3s; animation-delay: .9s; }
.rc-confetti i:nth-child(13) { left: 89%; animation-duration: 3.7s; animation-delay: 1.7s; }
.rc-confetti i:nth-child(14) { left: 95%; animation-duration: 2.9s; animation-delay: .6s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(15) { left: 9%;  animation-duration: 3.1s; animation-delay: 2.8s; }
.rc-confetti i:nth-child(16) { left: 23%; animation-duration: 2.5s; animation-delay: 2.2s; }
.rc-confetti i:nth-child(17) { left: 44%; animation-duration: 3.5s; animation-delay: 2.9s; width: 6px; height: 9px; }
.rc-confetti i:nth-child(18) { left: 58%; animation-duration: 3.2s; animation-delay: 2.5s; }
.rc-confetti i:nth-child(19) { left: 72%; animation-duration: 2.7s; animation-delay: 3.2s; }
.rc-confetti i:nth-child(20) { left: 86%; animation-duration: 3.5s; animation-delay: 3.6s; width: 6px; height: 9px; }
@keyframes confettiFall {
  0% { transform: translateY(-14px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(620px) rotate(540deg); opacity: .5; }
}

/* ---------- 催一下横幅 ---------- */
.nudge-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: #fff3c2;
  border: 2px solid #ffb300;
  color: #8a5a00;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 179, 0, .35);
  white-space: nowrap;
}
.nudge-banner .nb-icon { margin-right: 6px; }
.nudge-banner.shake { animation: nudgeShake .5s ease-in-out 3; }
@keyframes nudgeShake {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  20% { transform: translateX(-52%) rotate(-2deg); }
  40% { transform: translateX(-48%) rotate(2deg); }
  60% { transform: translateX(-52%) rotate(-1.5deg); }
  80% { transform: translateX(-48%) rotate(1.5deg); }
}

/* ---------- 投池页精装 ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stat {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b4a3a;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.stat.s-on { color: #2e7d32; border-color: rgba(111, 194, 78, .5); background: #f2fae9; }
.stat.s-on i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fc24e;
  box-shadow: 0 0 0 3px rgba(111, 194, 78, .22);
  animation: onPulse 1.6s infinite;
}
@keyframes onPulse { 50% { box-shadow: 0 0 0 5px rgba(111, 194, 78, .08); } }
.stat.s-done { color: #2e7d32; background: #f2fae9; border-color: rgba(111, 194, 78, .5); }
.stat.s-pool { color: var(--accent-dark); background: #fff0ee; border-color: rgba(230, 59, 46, .3); }

.share-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 24px rgba(214, 47, 34, .10);
}
.share-band {
  background: linear-gradient(90deg, #ff6b5e, #e63b2e);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  letter-spacing: .02em;
}
.share-body { display: flex; gap: 18px; align-items: center; padding: 18px; background: #fff; }
.qr-frame {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  flex: none;
}
#qrCanvas { display: block; }
.share-link { background: #faf6ec; border-radius: 8px; padding: 6px 8px; }

.who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; opacity: 1; padding: 14px 0 0; }
.who-label { font-size: 12.5px; opacity: .5; font-weight: 600; }
.who-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-size: 13px;
}
.who-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.who-mark { font-style: normal; font-size: 11.5px; opacity: .55; }
.who-chip.who-done { border-color: rgba(111, 194, 78, .55); background: #f4fbee; }
.who-chip.who-done .who-mark { color: #3a9e4b; opacity: 1; font-weight: 700; }
.who-chip.who-half .who-mark { color: #b06a10; opacity: .9; }

.pool li.mystery {
  background-image: repeating-linear-gradient(135deg, rgba(230, 59, 46, .05) 0 10px, transparent 10px 20px);
}

/* ---------- 首页精装 ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 36px 0 28px;
  margin: -16px 0 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 217, 77, .28), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(111, 194, 78, .20), transparent 42%),
    linear-gradient(160deg, #fff0ee 0%, #ffe3de 60%, #ffd6cf 100%);
  overflow: hidden;
}
.hero .brand-logo {
  animation: bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(214, 47, 34, .25));
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero .brand-name { font-size: 20px; font-weight: 800; margin-top: 10px; letter-spacing: .06em; opacity: 1; }
.hero .brand-slogan { font-size: 13px; color: var(--accent-dark); opacity: .8; margin-top: 2px; }
.hero-floats span {
  position: absolute;
  font-size: 20px;
  opacity: .55;
  animation: heroDrift 7s ease-in-out infinite;
}
.hero-floats span:nth-child(1) { left: 8%;  top: 18%; animation-delay: 0s; }
.hero-floats span:nth-child(2) { right: 10%; top: 14%; animation-delay: 1.4s; }
.hero-floats span:nth-child(3) { left: 14%; bottom: 16%; animation-delay: 2.6s; }
.hero-floats span:nth-child(4) { right: 14%; bottom: 20%; animation-delay: .8s; }
.hero-floats span:nth-child(5) { left: 48%; top: 8%;  animation-delay: 3.4s; font-size: 16px; }
@keyframes heroDrift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

#s1 h1 .hl {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
#s1 h1 .hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 9px;
  background: rgba(255, 217, 77, .55);
  z-index: -1;
  border-radius: 4px;
}

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -12px 0 26px;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b4a3a;
}
.steps span {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 12px;
}
.steps i { font-style: normal; opacity: .4; }

.field.f-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 12px 16px 8px;
  transition: box-shadow .2s var(--ease-hover), border-color .2s var(--ease-hover);
}
.field.f-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 59, 46, .12);
}
.field.f-card input { border-bottom: none; }

.btn-hero {
  background: linear-gradient(90deg, #ff6b5e, #e63b2e);
  border-radius: 999px;
  font-size: 17px;
  padding: 16px 0;
  box-shadow: 0 6px 0 var(--accent-dark), 0 14px 28px rgba(230, 59, 46, .3);
}
.btn-hero:hover { background: linear-gradient(90deg, #f04a3c, #b02018); }
.btn-hero:active { box-shadow: 0 1px 0 var(--accent-dark); }
