/* 冰箱剩菜盲盒 · 网页版（赛博朋克主题） */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #0a0e1a;
  color: #e6f7ff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.hidden { display: none !important; }

/* 标题 */
.hero { text-align: center; padding: 36px 0 28px; }
.title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0,240,255,.9), 0 0 30px rgba(0,240,255,.6), 0 0 60px rgba(0,240,255,.35);
  animation: neonFlicker 3.5s infinite;
}
.subtitle { margin-top: 10px; color: #8ea2c8; letter-spacing: 3px; }

@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
}

.neon-pink {
  color: #ff2d78;
  text-shadow: 0 0 10px rgba(255,45,120,.9), 0 0 30px rgba(255,45,120,.6), 0 0 60px rgba(255,45,120,.35);
}

/* 输入卡 */
.input-card {
  background: rgba(20,28,56,.75);
  border: 2px solid rgba(0,240,255,.25);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0,240,255,.08);
  padding: 16px;
}
.input-card textarea {
  width: 100%;
  min-height: 96px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #e6f7ff;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
}
.input-card textarea::placeholder { color: #5b6c8c; }
.input-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.mic-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,240,255,.12);
  border: 1px solid rgba(0,240,255,.4);
  color: #00f0ff; font-size: 13px; cursor: pointer;
}
.mic-btn.active { background: rgba(255,45,120,.18); border-color: #ff2d78; color: #ff2d78; animation: micBlink 1s infinite; }
@keyframes micBlink { 50% { opacity: .5; } }
.char-count { color: #5b6c8c; font-size: 13px; }

/* 主按钮 */
.generate-btn {
  width: 100%; margin-top: 14px;
  padding: 14px 0;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #00f0ff, #b026ff);
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 3px;
  box-shadow: 0 0 30px rgba(0,240,255,.4);
  cursor: pointer;
  transition: transform .15s;
}
.generate-btn:hover { transform: scale(1.01); }
.generate-btn:disabled { opacity: .7; cursor: not-allowed; background: linear-gradient(135deg, #0f8a99, #7a2fb0); }

/* 冒泡的锅 */
.pot-loading { margin-top: 50px; display: flex; flex-direction: column; align-items: center; position: relative; }
.pot { font-size: 72px; animation: potShake .8s infinite; }
@keyframes potShake { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.bubble {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(0,240,255,.8); animation: bubbleUp 1.2s infinite; opacity: 0;
}
.b1 { bottom: 26px; left: 38%; }
.b2 { bottom: 20px; left: 54%; width: 16px; height: 16px; animation-delay: .4s; }
.b3 { bottom: 14px; left: 46%; animation-delay: .8s; }
@keyframes bubbleUp {
  0% { transform: translateY(0) scale(.6); opacity: .9; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}
.pot-text { margin-top: 20px; color: #8ea2c8; font-size: 14px; }

/* 结果 */
.result { margin-top: 36px; }
.dish-name { font-size: 34px; font-weight: 900; text-align: center; letter-spacing: 2px; }
.dish-ingredients { margin-top: 8px; text-align: center; color: #8ea2c8; font-size: 14px; }
.section-title { margin: 28px 0 14px; font-size: 17px; font-weight: 700; color: #00f0ff; }

.steps { list-style: none; }
.steps li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; padding: 14px;
  background: rgba(20,28,56,.75);
  border: 2px solid rgba(0,240,255,.25);
  border-radius: 14px;
}
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #00f0ff, #b026ff);
  color: #0a0e1a; font-weight: 800; text-align: center; line-height: 26px; font-size: 14px;
}

.plating {
  font-style: italic; color: #ffe600; font-size: 16px;
  padding: 14px; border-left: 4px solid #ffe600;
  background: rgba(255,230,0,.06); border-radius: 6px;
}
.warning {
  color: #ff4d4f; font-weight: 700; padding: 14px;
  border: 2px solid rgba(255,77,79,.6); border-radius: 10px;
  background: rgba(255,77,79,.1); text-shadow: 0 0 12px rgba(255,77,79,.6);
}

.rate-row { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.rate-title { color: #8ea2c8; font-size: 14px; }
.rate-btn {
  font-size: 14px; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.rate-good { background: rgba(0,240,160,.15); color: #00f0a0; border: 1px solid rgba(0,240,160,.5); }
.rate-bad { background: rgba(255,45,120,.15); color: #ff2d78; border: 1px solid rgba(255,45,120,.5); }

.poster-btn {
  width: 100%; margin-top: 32px; padding: 14px 0;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #00f0ff, #b026ff);
  color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
}
.share-btn {
  width: 100%; margin-top: 12px; padding: 12px 0;
  background: rgba(255,255,255,.06); color: #00f0ff;
  border: 1px solid rgba(0,240,255,.4); border-radius: 14px; font-size: 15px; cursor: pointer;
}

/* 海报 */
.poster-section { margin-top: 40px; text-align: center; }
#posterCanvas {
  width: 100%; max-width: 420px; height: auto;
  aspect-ratio: 5 / 8; display: block; margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0,240,255,.25);
}
.poster-actions { display: flex; gap: 14px; margin-top: 18px; }
.action-btn {
  flex: 1; padding: 12px 0; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.action-btn.save { background: linear-gradient(135deg, #00f0ff, #b026ff); color: #fff; border: none; }
.action-btn.share { background: rgba(255,255,255,.08); color: #00f0ff; border: 1px solid rgba(0,240,255,.4); }
.tip { margin-top: 12px; color: #6b7f9e; font-size: 13px; }

.footer { margin-top: 50px; text-align: center; color: #4a5a78; font-size: 12px; }

.source-link {
  display: inline-block;
  margin-top: 8px;
  color: #00f0ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 240, 255, .5);
  padding-bottom: 1px;
}
.source-link:hover { color: #ff2d78; border-bottom-color: rgba(255, 45, 120, .5); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
  max-width: 80%; padding: 10px 20px; border-radius: 999px;
  background: rgba(10,14,26,.92); color: #e6f7ff; font-size: 14px;
  border: 1px solid rgba(0,240,255,.4); z-index: 99;
  box-shadow: 0 0 20px rgba(0,240,255,.2);
}


/* 红黑榜 */
.rank-section { margin-top: 48px; }
.rank-title { font-size: 20px; font-weight: 800; color: #ffe600; text-shadow: 0 0 12px rgba(255, 230, 0, .4); }
.rank-sub { margin-top: 4px; color: #5b6c8c; font-size: 13px; }
.rank-scroll {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rank-item {
  flex: 0 0 232px;
  padding: 14px;
  background: rgba(20, 28, 56, .75);
  border: 2px solid rgba(0, 240, 255, .25);
  border-radius: 14px;
  scroll-snap-align: start;
}
.rank-emoji { font-size: 30px; }
.rank-dish { margin-top: 8px; font-size: 16px; font-weight: 700; color: #00f0ff; }
.rank-comment { margin-top: 6px; font-size: 13px; color: #9db1d4; min-height: 40px; }
.rank-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag-good { background: rgba(0, 240, 160, .15); color: #00f0a0; border: 1px solid rgba(0, 240, 160, .5); }
.tag-bad { background: rgba(255, 45, 120, .15); color: #ff2d78; border: 1px solid rgba(255, 45, 120, .5); }


/* ===== 语音输入：声波反馈 ===== */
.mic-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; margin-left: 4px; }
.mic-wave i {
  width: 3px; border-radius: 2px; background: #ff2d78;
  animation: micWave 1s ease-in-out infinite;
}
.mic-wave i:nth-child(1) { animation-delay: 0s; }
.mic-wave i:nth-child(2) { animation-delay: .15s; }
.mic-wave i:nth-child(3) { animation-delay: .3s; }
.mic-wave i:nth-child(4) { animation-delay: .45s; }
.mic-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes micWave { 0%,100% { height: 4px; } 50% { height: 16px; } }
.mic-hint { color: #ff2d78; font-size: 12px; margin-left: 8px; animation: micBlink 1.2s infinite; }

/* ===== 等待动画：食材翻滚 + 蒸汽 ===== */
.pot-scene { position: relative; width: 220px; height: 150px; }
.pot { font-size: 72px; animation: potShake .7s infinite; position: relative; z-index: 2; }
.ing {
  position: absolute; font-size: 28px; z-index: 3;
  animation: ingBounce 1.1s ease-in-out infinite;
}
.i1 { bottom: 34px; left: 44px; animation-delay: 0s; }
.i2 { bottom: 40px; left: 96px; animation-delay: .25s; }
.i3 { bottom: 30px; left: 142px; animation-delay: .5s; }
.i4 { bottom: 44px; left: 172px; animation-delay: .75s; }
@keyframes ingBounce {
  0%,100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-26px) rotate(12deg); }
}
.steam {
  position: absolute; width: 10px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.35); filter: blur(3px);
  animation: steamUp 1.6s infinite; opacity: 0;
}
.s1 { bottom: 96px; left: 78px; animation-delay: 0s; }
.s2 { bottom: 100px; left: 128px; animation-delay: .8s; }
@keyframes steamUp {
  0% { transform: translateY(0) scale(.7); opacity: .7; }
  100% { transform: translateY(-42px) scale(1.3); opacity: 0; }
}
.pot-text { margin-top: 10px; color: #8ea2c8; font-size: 14px; min-height: 22px; text-align: center; }

/* ===== 结果仪式感：超大霓虹菜名 ===== */
.dish-name {
  font-size: 46px !important;
  animation: neonFlicker 3.5s infinite, dishIn .6s ease-out;
}
@keyframes dishIn {
  0% { transform: scale(.7); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

/* ===== 步骤翻牌卡 ===== */
.flip-hint { margin-top: 10px; color: #5b6c8c; font-size: 12px; text-align: center; }
.step-card {
  perspective: 900px;
  margin-bottom: 12px;
  cursor: pointer;
  border-radius: 14px;
}
.step-inner {
  position: relative; width: 100%; height: 96px;
  transition: transform .5s;
  transform-style: preserve-3d;
}
.step-card.flipped .step-inner { transform: rotateY(180deg); }
.step-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 14px;
  background: rgba(20,28,56,.75);
  border: 2px solid rgba(0,240,255,.25);
}
.step-back {
  transform: rotateY(180deg);
  background: rgba(10,18,40,.95);
  border-color: rgba(255,45,120,.45);
  color: #dceaff; font-size: 14px; line-height: 1.7;
  align-items: flex-start;
  overflow-y: auto;
}
.step-emoji { font-size: 30px; }
.step-flip-hint { font-size: 12px; color: #5b6c8c; }

/* ===== 红黑榜：点击看大图 ===== */
.rank-item { cursor: pointer; transition: transform .15s, border-color .15s; }
.rank-item:hover, .rank-item:focus-visible { transform: translateY(-3px); border-color: rgba(255,45,120,.55); }
.rank-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.rank-modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,18,.85); backdrop-filter: blur(4px); }
.rank-modal-card {
  position: relative; width: 100%; max-width: 360px;
  padding: 34px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #1b1038, #0d1230);
  border: 2px solid rgba(0,240,255,.4);
  box-shadow: 0 0 50px rgba(0,240,255,.3);
  text-align: center;
  animation: dishIn .35s ease-out;
}
.rank-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: #8ea2c8; font-size: 26px; cursor: pointer; line-height: 1;
}
.rank-modal-close:hover { color: #ff2d78; }
.rank-modal-emoji { font-size: 64px; }
.rank-modal-dish { margin-top: 12px; font-size: 26px; font-weight: 900; color: #00f0ff; text-shadow: 0 0 16px rgba(0,240,255,.6); }
.rank-modal-tag {
  display: inline-block; margin-top: 12px; padding: 3px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.rank-modal-comment { margin-top: 16px; color: #dceaff; font-size: 14px; line-height: 1.8; text-align: left; }
.rank-modal-foot { margin-top: 18px; color: #5b6c8c; font-size: 12px; }


/* ===== 开盲盒：折叠面板 ===== */
.section-toggle {
  width: 100%; margin: 28px 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 700; color: #00f0ff;
  letter-spacing: 1px; text-align: left; padding: 6px 2px;
  border-bottom: 1px dashed rgba(0,240,255,.25);
  transition: color .15s;
}
.section-toggle:hover { color: #ff2d78; }
.section-toggle .chev { transition: transform .25s; color: #8ea2c8; font-size: 14px; }
.section-toggle.open .chev { transform: rotate(180deg); }
.collapsible { overflow: hidden; animation: dishIn .35s ease-out; }


/* ===== 生存挑战卡 ===== */
.challenge-card {
  margin-top: 20px;
  background: linear-gradient(160deg, rgba(20,28,56,.85), rgba(10,18,40,.9));
  border: 2px solid rgba(255,230,0,.35);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 0 24px rgba(255,230,0,.08);
}
.challenge-stats { display: flex; gap: 8px; }
.stat { flex: 1; text-align: center; background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 4px; }
.stat-icon { font-size: 18px; display: block; }
.stat b { display: block; font-size: 20px; color: #ffe600; }
.stat i { font-style: normal; font-size: 11px; color: #8ea2c8; }
.badge-wall { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 6px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(0,240,255,.12); color: #00f0ff; border: 1px solid rgba(0,240,255,.4);
}
.badge-chip.locked { opacity: .45; filter: grayscale(1); }

/* ===== 风格选择器 ===== */
.style-row { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; }
.style-label { font-size: 12px; color: #8ea2c8; margin-top: 6px; flex-shrink: 0; }
.style-list { display: flex; flex-wrap: wrap; gap: 6px; }
.style-chip {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: rgba(255,255,255,.05); color: #9db1d4; border: 1px solid rgba(255,255,255,.15);
  transition: all .15s; font-family: inherit;
}
.style-chip:hover { border-color: #00f0ff; color: #00f0ff; }
.style-chip.locked { cursor: not-allowed; opacity: .55; }
.style-chip.locked:hover { border-color: rgba(255,255,255,.15); color: #9db1d4; }
.style-chip.selected { background: linear-gradient(135deg,#00f0ff,#b026ff); color: #0a0e1a; border-color: transparent; font-weight: 800; }

/* ===== 积分行 / 甩锅按钮 ===== */
.points-line {
  margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700;
  color: #ffe600; animation: dishIn .5s ease-out;
}
.challenge-btn {
  width: 100%; margin-top: 12px; padding: 12px 0;
  background: rgba(255,230,0,.1); color: #ffe600;
  border: 1px solid rgba(255,230,0,.5); border-radius: 14px; font-size: 15px; cursor: pointer;
}

/* ===== 好友投喂横幅 ===== */
.challenge-banner {
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255,45,120,.18), rgba(176,38,255,.18));
  border: 2px solid rgba(255,45,120,.5);
  border-radius: 16px; padding: 12px 14px;
}
.banner-inner { display: flex; align-items: center; gap: 12px; }
.banner-emoji { font-size: 34px; }
.banner-text { flex: 1; }
.banner-text b { color: #ff2d78; font-size: 16px; }
.banner-text p { color: #dceaff; font-size: 13px; margin-top: 2px; }
.accept-btn {
  flex-shrink: 0; padding: 9px 16px; border: none; border-radius: 12px;
  background: linear-gradient(135deg,#ff2d78,#b026ff); color: #fff;
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
}

/* ===== 剩菜博物馆：症状标签 ===== */
.rank-tabs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.rank-tab {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: rgba(255,255,255,.05); color: #9db1d4; border: 1px solid rgba(255,255,255,.15);
  transition: all .15s; font-family: inherit;
}
.rank-tab.active { background: rgba(255,230,0,.18); color: #ffe600; border-color: rgba(255,230,0,.5); font-weight: 700; }
.rank-tag-mini { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 999px; font-size: 10px; color: #9db1d4; background: rgba(255,255,255,.06); }


/* ===== 玩法速览 ===== */
.guide-section { margin-top: 18px; background: rgba(20,28,56,.6); border: 2rpx solid rgba(255,230,0,.3); border-radius: 16px; border: 2px solid rgba(255,230,0,.3); }
.guide-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; cursor: pointer; color: #ffe600; font-size: 15px; font-weight: 800; font-family: inherit; padding: 14px 16px; }
.guide-toggle .chev { color: #8ea2c8; transition: transform .25s; }
.guide-toggle.open .chev { transform: rotate(180deg); }
.guide-body { padding: 0 16px 16px; animation: dishIn .35s ease-out; }
.guide-block { display: grid; gap: 8px; }
.guide-step { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 12px; }
.guide-step b { color: #00f0ff; margin-right: 8px; }
.guide-step span { color: #dceaff; font-size: 13px; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.guide-tags span { font-size: 12px; color: #ffe600; background: rgba(255,230,0,.08); border: 1px solid rgba(255,230,0,.35); border-radius: 999px; padding: 4px 10px; }


/* ===== 菜谱口味模式 ===== */
.mode-row { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.mode-label { color: #8ea2c8; font-size: 13px; }
.mode-switch { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px; }
.mode-btn { border: none; background: none; color: #9db1d4; font-size: 13px; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.mode-btn.active { background: linear-gradient(135deg,#00f0ff,#b026ff); color: #0a0e1a; font-weight: 800; }


/* ===== 家常菜谱库徽标 ===== */
.lib-badge {
  display: inline-block; margin: 6px auto 0; padding: 3px 14px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #ffe600; background: rgba(255,230,0,.1);
  border: 1px solid rgba(255,230,0,.4);
  width: fit-content;
}

/* ===== 详细菜单按钮 ===== */
.detail-btn {
  width: 100%; margin-top: 14px;
  padding: 13px 0; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,240,255,.16), rgba(176,38,255,.16));
  border: 1px solid rgba(0,240,255,.45);
  color: #00f0ff; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.detail-btn:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(0,240,255,.25); }

/* ===== 详细菜单弹层 ===== */
.detail-modal {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.detail-modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,18,.88); backdrop-filter: blur(4px); }
.detail-modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 86vh; overflow-y: auto;
  padding: 34px 26px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #1b1038, #0d1230);
  border: 2px solid rgba(0,240,255,.4);
  box-shadow: 0 0 50px rgba(0,240,255,.3);
  text-align: left;
  animation: dishIn .35s ease-out;
}
.detail-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: #8ea2c8; font-size: 26px; cursor: pointer; line-height: 1;
}
.detail-modal-close:hover { color: #ff2d78; }
.detail-head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed rgba(0,240,255,.25); }
.detail-name { font-size: 26px; font-weight: 900; color: #00f0ff; text-shadow: 0 0 16px rgba(0,240,255,.5); }
.detail-meta { margin-top: 6px; color: #8ea2c8; font-size: 12px; line-height: 1.7; }
.detail-sec { margin-top: 18px; }
.detail-sec-title { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: #ffe600; }
.detail-ings, .detail-prep, .detail-steps { margin: 0; padding-left: 20px; color: #dceaff; font-size: 14px; line-height: 1.9; }
.detail-ings li, .detail-prep li, .detail-steps li { margin-bottom: 4px; }
.detail-tips {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,240,160,.08); border: 1px solid rgba(0,240,160,.35);
  color: #b8ffe0; font-size: 13px; line-height: 1.8;
}
@media (max-width: 420px) {
  .detail-modal-card { padding: 30px 18px 22px; }
}


/* ===== 红黑榜：查看制作过程 ===== */
.rank-detail-btn {
  width: 100%; margin-top: 14px;
  padding: 11px 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,.14), rgba(176,38,255,.14));
  border: 1px solid rgba(0,240,255,.45);
  color: #00f0ff; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.rank-detail-btn:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(0,240,255,.25); }

/* ===== 新增：主厨形象 / 黑暗指数 / 危险高亮 / 购物清单 / 每日挑战 / 投票 / 音效 / 免责声明 ===== */

/* 主厨形象（加载中 / 结果页） */
.chef-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 56px; line-height: 1;
  transition: transform .3s;
}
.chef-loading {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-size: 52px; z-index: 3;
  animation: chefBounce 1.2s ease-in-out infinite;
}
.chef-result {
  width: 84px; height: 84px; margin: 0 auto 6px; font-size: 48px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  box-shadow: 0 0 22px rgba(0,240,255,.35);
}
.chef-result.sweat { animation: chefShake .5s ease-in-out infinite; }
.chef-result.cool { animation: chefBounce 1.4s ease-in-out infinite; }
@keyframes chefBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes chefShake {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* 黑暗指数 */
.dark-score-box {
  margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.dark-score-head { display: flex; align-items: center; gap: 10px; }
.dark-score-emoji { font-size: 30px; }
.dark-score-meta { flex: 1; display: flex; flex-direction: column; }
.dark-score-label { font-size: 17px; font-weight: 900; }
.dark-score-tip { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.dark-score-num { font-size: 30px; font-weight: 900; font-style: italic; }
.dark-score-bar {
  margin-top: 10px; height: 8px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(90deg, #4ade80, #ffd700 50%, #ff2d55);
}
.dark-score-bar i {
  display: block; height: 100%; width: 0%;
  background: #fff; opacity: .85; border-radius: 6px;
  transition: width .8s cubic-bezier(.2,.9,.3,1.2);
}

/* 危险高亮 */
.danger-box {
  margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,45,85,.16); border: 1px solid rgba(255,45,85,.6);
  color: #ff9aa8; font-size: 13px; line-height: 1.5;
  animation: dangerPulse 1.4s ease-in-out infinite;
}
.danger-box .danger-item { margin: 2px 0; }
@keyframes dangerPulse {
  0%,100% { box-shadow: 0 0 6px rgba(255,45,85,.35); }
  50% { box-shadow: 0 0 18px rgba(255,45,85,.6); }
}

/* 购物清单 */
.shopping-box {
  margin: 8px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,240,255,.08), rgba(176,38,255,.08));
  border: 1px solid rgba(0,240,255,.3);
}
.shopping-head { font-size: 15px; font-weight: 800; color: #00f0ff; margin-bottom: 8px; }
.shopping-sub { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 400; margin-left: 6px; }
.shopping-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shopping-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px; font-size: 13px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  cursor: pointer; user-select: none; transition: all .15s;
}
.shopping-item.checked { text-decoration: line-through; opacity: .55; background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.4); }

/* 每日挑战 */
.daily-card {
  margin: 12px 0; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,180,0,.14), rgba(255,45,85,.12));
  border: 1px solid rgba(255,180,0,.4);
}
.daily-head { display: flex; align-items: center; gap: 10px; }
.daily-emoji { font-size: 30px; }
.daily-text { flex: 1; }
.daily-text b { font-size: 15px; color: #ffd700; }
.daily-text p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.daily-use-btn {
  padding: 7px 14px; border-radius: 20px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ffd700, #ff8a00); color: #1a1030;
  font-weight: 800; font-size: 13px; font-family: inherit;
}
.daily-ings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.daily-ing {
  padding: 5px 12px; border-radius: 16px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.08); border: 1px dashed rgba(255,215,0,.5); color: #ffe9a8;
}

/* 音效开关 */
.sound-row { margin: 6px 0; text-align: center; }
.sound-btn {
  padding: 6px 16px; border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8); font-size: 13px; font-family: inherit;
}
.sound-btn.muted { opacity: .5; }

/* 红黑榜投票 */
.rank-vote-row { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.rank-vote-btn {
  flex: 1; padding: 10px 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.rank-vote-btn.vote-up:hover { background: rgba(74,222,128,.2); border-color: rgba(74,222,128,.6); }
.rank-vote-btn.vote-down:hover { background: rgba(255,45,85,.2); border-color: rgba(255,45,85,.6); }
.rank-vote-btn:disabled { opacity: .45; cursor: default; }

/* 免责声明 */
.disclaimer {
  margin-top: 10px; padding: 0 10px; font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,.38);
}

/* 结果页皮肤：评价后 真香(金) / 已进医院(病号绿) */
.result.skin-gold { border: 1px solid rgba(255,215,0,.7); box-shadow: 0 0 30px rgba(255,215,0,.18); }
.result.skin-sick { border: 1px solid rgba(122,222,140,.6); box-shadow: 0 0 30px rgba(122,222,140,.16); }
.result.skin-gold .dish-name { color: #ffd700; text-shadow: 0 0 18px rgba(255,215,0,.8); }
.result.skin-sick .dish-name { color: #b6f0c0; text-shadow: 0 0 18px rgba(122,222,140,.8); }

/* ===== 主厨人设 ===== */
.persona-row { margin: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.persona-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.persona-btn {
  padding: 7px 14px; border-radius: 18px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8); font-family: inherit; transition: all .15s;
}
.persona-btn.active {
  background: linear-gradient(135deg, rgba(255,45,120,.45), rgba(176,38,255,.45));
  border-color: #ff2d78; color: #fff; font-weight: 800;
}

/* ===== 食材合成实验室 ===== */
.synth-card {
  margin: 12px 0; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(176,38,255,.12), rgba(0,240,255,.08));
  border: 1px solid rgba(176,38,255,.4);
}
.synth-head { display: flex; align-items: center; gap: 10px; }
.synth-emoji { font-size: 30px; }
.synth-text { flex: 1; }
.synth-text b { font-size: 15px; color: #e9b6ff; }
.synth-text p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.synth-slots { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.synth-slot {
  flex: 1; text-align: center; padding: 12px 6px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px dashed rgba(176,38,255,.55);
  color: #e9b6ff; font-size: 14px; font-weight: 800; cursor: pointer;
}
.synth-slot.picked { background: rgba(176,38,255,.25); border-style: solid; }
.synth-plus { font-size: 20px; color: rgba(255,255,255,.6); }
.synth-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.synth-ing {
  padding: 6px 12px; border-radius: 16px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #ddd;
  transition: all .15s;
}
.synth-ing:hover { border-color: #b026ff; color: #e9b6ff; }
.synth-ing.picked { background: rgba(176,38,255,.3); border-color: #b026ff; color: #fff; }
.synth-go {
  margin-top: 12px; width: 100%; padding: 11px 0; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #b026ff, #00f0ff); color: #fff;
  font-size: 15px; font-weight: 800; font-family: inherit;
}
.synth-go:disabled { opacity: .45; cursor: default; }

/* ===== 外卖买菜入口 ===== */
.delivery-row {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.14);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.delivery-label { font-size: 12px; color: rgba(255,255,255,.55); }
.delivery-link {
  padding: 6px 12px; border-radius: 16px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: #fff; transition: transform .15s;
}
.delivery-link.mt { background: rgba(255,193,7,.2); border: 1px solid rgba(255,193,7,.55); color: #ffe9a8; }
.delivery-link.elm { background: rgba(0,145,255,.2); border: 1px solid rgba(0,145,255,.55); color: #bfe0ff; }
.delivery-link.jd { background: rgba(255,45,85,.2); border: 1px solid rgba(255,45,85,.55); color: #ffc2cd; }
.delivery-link:hover { transform: translateY(-1px); }

/* ===== 悬浮买菜按钮（随时可点，安全区适配） ===== */
.buy-fab {
  position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; z-index: 90;
  background: linear-gradient(135deg, #ff8a00, #ff2d78);
  box-shadow: 0 6px 22px rgba(255,45,120,.45);
  transition: transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.buy-fab:hover { transform: scale(1.08); }
.buy-fab:active { transform: scale(.95); }

/* ===== 买菜弹层 ===== */
.buy-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.buy-modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.72); }
.buy-modal-card {
  position: relative; width: 100%; max-width: 360px; padding: 22px 20px 18px;
  border-radius: 20px; background: linear-gradient(160deg, #181b33, #0d1230);
  border: 1px solid rgba(255,138,0,.4); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  max-height: 82vh; overflow-y: auto;
}
.buy-modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  color: rgba(255,255,255,.6); font-size: 22px; cursor: pointer; line-height: 1;
}
.buy-modal-head { font-size: 18px; font-weight: 900; color: #ffd700; }
.buy-modal-sub { font-size: 13px; color: rgba(255,255,255,.6); margin: 6px 0 14px; }
.buy-platform {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 10px;
  border-radius: 14px; text-decoration: none; color: #fff; font-weight: 700; font-size: 15px;
  border: 1px solid rgba(255,255,255,.12); transition: all .15s;
}
.buy-platform:hover { transform: translateY(-1px); }
.buy-platform.mt { background: rgba(255,193,7,.14); border-color: rgba(255,193,7,.5); }
.buy-platform.elm { background: rgba(0,145,255,.14); border-color: rgba(0,145,255,.5); }
.buy-platform.jd { background: rgba(255,45,85,.14); border-color: rgba(255,45,85,.5); }
.buy-p-emoji { font-size: 22px; }
.buy-p-name { flex: 1; }
.buy-p-arrow { font-size: 22px; color: rgba(255,255,255,.5); }
.buy-modal-tip { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.45); text-align: center; }

@media (max-width: 360px) {
  .buy-fab { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; font-size: 23px; }
}

/* ===== ?????????? ===== */
.duel-btn {
  width: 100%; margin-top: 10px;
  padding: 13px 0; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff8a00, #ff2d78);
  color: #fff; font-size: 16px; font-weight: 900; font-family: inherit;
  box-shadow: 0 4px 18px rgba(255,45,120,.35);
  transition: transform .15s, box-shadow .15s;
}
.duel-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,45,120,.5); }
.duel-btn:disabled { opacity: .55; cursor: default; transform: none; }

.duel-view {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.duel-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.88); }
.duel-card {
  position: relative; width: 100%; max-width: 780px; max-height: 94vh;
  display: flex; flex-direction: column;
  border-radius: 20px; background: linear-gradient(160deg, #161a30, #0c1028);
  border: 1px solid rgba(255,138,0,.45); box-shadow: 0 14px 50px rgba(0,0,0,.6);
  overflow: hidden;
}
.duel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.28);
}
.duel-title { font-size: 17px; font-weight: 900; color: #ffd700; }
.duel-close { border: none; background: none; color: rgba(255,255,255,.65); font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px; }
.duel-body { flex: 1; overflow-y: auto; padding: 16px; }

.duel-step { margin-bottom: 14px; }
.duel-hint { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.7; margin-bottom: 10px; }
.duel-input {
  width: 100%; min-height: 84px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #e6f7ff; font-size: 15px; font-family: inherit; outline: none; resize: none;
}
.duel-input::placeholder { color: #5b6c8c; }
.duel-nick-row { display: flex; gap: 8px; margin-bottom: 10px; }
.duel-nick {
  flex: 1; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #e6f7ff; font-size: 14px; font-family: inherit; outline: none;
}
.duel-primary {
  width: 100%; padding: 12px 0; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff8a00, #ff2d78); color: #fff;
  font-size: 15px; font-weight: 900; font-family: inherit;
}
.duel-primary:disabled { opacity: .45; cursor: default; }
.duel-secondary {
  width: 100%; padding: 11px 0; border-radius: 12px; cursor: pointer;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.45);
  color: #00f0ff; font-size: 14px; font-weight: 800; font-family: inherit;
}
.duel-secondary:disabled { opacity: .45; cursor: default; }
.duel-ghost {
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #cfd9ff; font-size: 13px; font-weight: 700; font-family: inherit;
}
.duel-ghost:disabled { opacity: .45; cursor: default; }

.duel-code-box {
  margin: 8px 0 12px; padding: 12px; border-radius: 12px; text-align: center;
  background: rgba(0,240,255,.08); border: 1px dashed rgba(0,240,255,.5);
}
.duel-code { font-size: 30px; font-weight: 900; letter-spacing: 8px; color: #00f0ff; }
.duel-link { font-size: 12px; color: #8ea2c8; word-break: break-all; margin-top: 6px; }
.duel-copy-btn { margin-top: 8px; }

.duel-players { display: flex; gap: 10px; }
.duel-player {
  flex: 1; min-width: 0; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
}
.duel-player.me { border-color: rgba(0,240,255,.55); background: rgba(0,240,255,.08); }
.duel-player .dp-name { font-size: 15px; font-weight: 900; word-break: break-all; }
.duel-player .dp-status { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; line-height: 1.5; word-break: break-all; }
.duel-player.offline { opacity: .55; }

.duel-timer { text-align: center; font-size: 34px; font-weight: 900; color: #ffd700; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.duel-timer.warn { color: #ff2d55; animation: dangerPulse 1s infinite; }

.duel-progress { height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); margin-top: 8px; }
.duel-progress i { display: block; height: 100%; background: linear-gradient(90deg, #00f0ff, #b026ff); transition: width .3s; }

.duel-swap-scene { position: relative; height: 130px; margin: 10px 0; overflow: hidden; border-radius: 14px; background: rgba(0,0,0,.25); }
.duel-bomb { position: absolute; top: 50%; font-size: 40px; line-height: 1; }
.duel-bomb.from-a { left: 6%; animation: bombFly 2.6s ease-in forwards; }
.duel-bomb.from-b { right: 6%; animation: bombFlyRev 2.6s ease-in forwards; }
@keyframes bombFly {
  0% { left: 6%; transform: translateY(-50%) rotate(0); }
  60% { left: 45%; transform: translateY(-70%) rotate(320deg); }
  100% { left: calc(92% - 40px); transform: translateY(-50%) rotate(720deg); }
}
@keyframes bombFlyRev {
  0% { right: 6%; transform: translateY(-50%) rotate(0); }
  60% { right: 45%; transform: translateY(-70%) rotate(-320deg); }
  100% { right: calc(92% - 40px); transform: translateY(-50%) rotate(-720deg); }
}
.duel-boom {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: 56px; line-height: 1; opacity: 0; animation: boomPop .8s 2.2s ease-out forwards;
}
@keyframes boomPop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
  30% { opacity: 1; transform: translate(-50%,-50%) scale(1.3); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.7); }
}
.duel-swap-lines { text-align: center; font-size: 14px; color: #ffd700; margin-top: 8px; min-height: 22px; }

.duel-judge { display: grid; gap: 12px; }
.duel-r-card { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.duel-r-card .rc-name { font-size: 18px; font-weight: 900; color: #ff2d78; text-shadow: 0 0 12px rgba(255,45,120,.4); word-break: break-all; }
.duel-r-card .rc-owner { font-size: 12px; color: #00f0ff; margin-top: 2px; }
.duel-r-card .rc-meta { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; line-height: 1.6; }
.duel-r-card .rc-steps { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #dceaff; line-height: 1.7; }
.duel-r-card .rc-steps li { margin-bottom: 3px; }
.duel-r-card .rc-warn { margin-top: 8px; font-size: 12px; color: #ff9aa8; }

.duel-vote-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.duel-vote-range { flex: 1; accent-color: #ff2d78; }
.duel-vote-num { font-size: 18px; font-weight: 900; color: #ffd700; min-width: 40px; text-align: center; }

.duel-settle { text-align: center; }
.duel-winner-banner {
  padding: 16px; border-radius: 16px; font-size: 19px; font-weight: 900;
  background: linear-gradient(135deg, rgba(255,215,0,.16), rgba(255,138,0,.14));
  border: 1px solid rgba(255,215,0,.5); color: #ffd700;
  animation: settlePulse 1.2s ease-in-out infinite;
}
.duel-winner-banner.tie { background: linear-gradient(135deg, rgba(0,240,255,.14), rgba(176,38,255,.14)); border-color: rgba(0,240,255,.5); color: #00f0ff; }
@keyframes settlePulse { 0%,100% { box-shadow: 0 0 8px rgba(255,215,0,.3); } 50% { box-shadow: 0 0 26px rgba(255,215,0,.6); } }

.duel-penalty { margin: 12px 0; padding: 12px; border-radius: 12px; text-align: left; background: rgba(255,45,85,.1); border: 1px solid rgba(255,45,85,.4); }
.duel-penalty .pn-title { font-size: 14px; font-weight: 900; color: #ff9aa8; margin-bottom: 6px; }
.pn-opt {
  display: flex; align-items: center; gap: 8px; padding: 10px; margin-bottom: 8px;
  border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  cursor: pointer; transition: all .15s;
}
.pn-opt:last-child { margin-bottom: 0; }
.pn-opt:hover { border-color: #ff2d78; }
.pn-opt .pn-emoji { font-size: 20px; }
.pn-opt .pn-text { flex: 1; font-size: 13px; color: #e6f7ff; line-height: 1.6; }
.pn-opt .pn-copy { font-size: 12px; color: #00f0ff; font-weight: 800; flex-shrink: 0; }

.duel-actions { display: flex; gap: 10px; margin-top: 14px; }
.duel-actions .duel-primary, .duel-actions .duel-secondary { flex: 1; }

/* ?????? */
.event-banner {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,180,0,.14); border: 1px solid rgba(255,180,0,.5);
  color: #ffe9a8; font-size: 13px; line-height: 1.5;
  animation: dangerPulse 1.6s ease-in-out infinite;
}
.event-banner .ev-emoji { font-size: 26px; }
.event-banner .ev-name { font-weight: 900; color: #ffd700; }
.event-banner.ev-inspiration {
  background: linear-gradient(135deg, rgba(0,240,255,.16), rgba(176,38,255,.16));
  border-color: rgba(0,240,255,.55); color: #bfe0ff;
}
.event-banner.ev-inspiration .ev-name { color: #00f0ff; }

/* ????? */
.danmaku {
  position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom));
  height: 0; z-index: 60; pointer-events: none; overflow: visible;
}
.danmaku-item {
  position: absolute; bottom: 0; white-space: nowrap;
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(10,14,26,.74); border: 1px solid rgba(0,240,255,.28);
  color: #cfe9ff; box-shadow: 0 2px 10px rgba(0,0,0,.4);
  animation: danmakuFly linear forwards;
  will-change: transform;
}
@keyframes danmakuFly {
  from { transform: translateX(100vw); }
  to { transform: translateX(-110%); }
}

/* ???????? / ???? */
@media (min-width: 768px) {
  .duel-judge { grid-template-columns: 1fr 1fr; }
  .duel-card { max-width: 860px; }
  .duel-body { padding: 20px; }
}
@media (max-width: 420px) {
  .duel-card { max-height: 96vh; }
  .duel-body { padding: 12px; }
  .duel-code { font-size: 24px; letter-spacing: 6px; }
  .duel-timer { font-size: 28px; }
}

/* ????? */
.duel-vote-box {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: rgba(0,240,255,.06); border: 1px solid rgba(0,240,255,.35);
}

/* ?????????????? */
.ev-inspiration-glow {
  box-shadow: 0 0 30px rgba(0,240,255,.35), 0 0 60px rgba(176,38,255,.2);
  border: 1px solid rgba(0,240,255,.6);
}

/* ?????????+????? */
.egg-modal {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.egg-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.78); }
.egg-card {
  position: relative; width: 100%; max-width: 340px; text-align: center;
  padding: 26px 22px 22px; border-radius: 20px;
  background: linear-gradient(160deg, #231a33, #12102b);
  border: 1px solid rgba(255,45,120,.55); box-shadow: 0 12px 44px rgba(0,0,0,.55);
  animation: eggPop .3s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes eggPop {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.egg-emoji { font-size: 52px; }
.egg-title { display: block; margin-top: 10px; font-size: 18px; font-weight: 900; color: #ff2d78; }
.egg-text { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.8; }
.egg-ok {
  margin-top: 16px; width: 100%; padding: 12px 0; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #ff8a00, #ff2d78); color: #fff;
  font-size: 15px; font-weight: 900; font-family: inherit;
}

/* ===== ????? ===== */
.account-bar { text-align: center; margin: -14px 0 18px; }
.account-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.4);
  color: #00f0ff; font-size: 14px; font-weight: 800; font-family: inherit;
  transition: all .15s;
}
.account-btn:hover { background: rgba(0,240,255,.2); transform: translateY(-1px); }
.account-btn.not-logged { color: #ffd700; border-color: rgba(255,215,0,.5); background: rgba(255,215,0,.08); }

.login-modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.8); }
.login-card {
  position: relative; width: 100%; max-width: 340px; text-align: center;
  padding: 28px 22px 22px; border-radius: 20px;
  background: linear-gradient(160deg, #181b33, #0d1230);
  border: 1px solid rgba(0,240,255,.5); box-shadow: 0 12px 44px rgba(0,0,0,.55);
  animation: eggPop .3s cubic-bezier(.2,.9,.3,1.3);
}
.login-emoji { font-size: 52px; }
.login-title { display: block; margin-top: 10px; font-size: 19px; font-weight: 900; color: #00f0ff; text-shadow: 0 0 12px rgba(0,240,255,.5); }
.login-sub { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.7; }
.login-input {
  width: 100%; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(0,240,255,.4);
  color: #e6f7ff; font-size: 16px; font-family: inherit; outline: none; text-align: center;
}
.login-input::placeholder { color: #5b6c8c; }
.login-ok {
  margin-top: 14px; width: 100%; padding: 12px 0; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #00f0ff, #b026ff); color: #fff;
  font-size: 15px; font-weight: 900; font-family: inherit;
}
.login-tip { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.45); }

.rank-user { margin-top: 2px; font-size: 12px; color: rgba(0,240,255,.75); }

.login-err {
  margin-top: 8px; font-size: 13px; color: #ff5a76;
  background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.5);
  padding: 6px 10px; border-radius: 8px;
}
.login-input.error { border-color: #ff2d55; box-shadow: 0 0 10px rgba(255,45,85,.5); animation: loginShake .4s; }
@keyframes loginShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ===== ??????????===== */
.fridge-card {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,190,255,.1), rgba(80,120,255,.08));
  border: 1px solid rgba(0,190,255,.35);
}
.fridge-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fridge-emoji { font-size: 26px; }
.fridge-text { flex: 1; }
.fridge-text b { font-size: 15px; color: #9fd8ff; }
.fridge-text p { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.fridge-toggle { border: none; background: none; color: rgba(255,255,255,.6); font-size: 16px; cursor: pointer; transition: transform .2s; }
.fridge-toggle.open { transform: rotate(180deg); }
.fridge-body { margin-top: 10px; }
.fridge-add { display: flex; gap: 8px; }
.fridge-input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(0,190,255,.4);
  color: #e6f7ff; font-size: 14px; font-family: inherit; outline: none;
}
.fridge-input::placeholder { color: #5b6c8c; }
.fridge-days {
  padding: 8px 6px; border-radius: 10px; font-size: 13px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(0,190,255,.4);
  color: #e6f7ff; font-family: inherit; outline: none;
}
.fridge-add-btn {
  width: 42px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #4a7dff); color: #fff; font-size: 20px; font-weight: 900;
}
.fridge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fridge-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(0,190,255,.1); border: 1px solid rgba(0,190,255,.4); color: #bfe6ff;
}
.fridge-item.expiring { background: rgba(255,90,45,.16); border-color: rgba(255,90,45,.65); color: #ffb59d; animation: dangerPulse 1.4s infinite; }
.fridge-item.expired { opacity: .5; text-decoration: line-through; border-color: rgba(255,255,255,.2); }
.fridge-item .fi-days { font-size: 11px; opacity: .85; }
.fridge-item .fi-del { border: none; background: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 14px; padding: 0 2px; }
.fridge-item .fi-del:hover { color: #ff5a76; }
.fridge-actions { margin-top: 12px; }
.fridge-cook-btn {
  width: 100%; padding: 10px 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #4a7dff); color: #fff;
  font-size: 14px; font-weight: 800; font-family: inherit; border: none;
}
.fridge-empty { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 8px; }

/* ===== ???? ===== */
.nutrition-box {
  margin: 8px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,222,128,.08), rgba(0,190,255,.08));
  border: 1px solid rgba(74,222,128,.35);
}
.nutrition-head { font-size: 15px; font-weight: 800; color: #7dffb0; margin-bottom: 8px; }
.nutrition-body { display: flex; gap: 10px; flex-wrap: wrap; }
.nutrition-item {
  flex: 1; min-width: 90px; text-align: center; padding: 8px 6px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.nutrition-item b { display: block; font-size: 17px; color: #7dffb0; }
.nutrition-item span { font-size: 12px; color: rgba(255,255,255,.6); }

/* ===== ?????? ===== */
.shopping-tools { display: flex; gap: 10px; margin-top: 10px; }
.shop-tool-btn {
  flex: 1; padding: 9px 0; border-radius: 10px; cursor: pointer;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.4);
  color: #00f0ff; font-size: 13px; font-weight: 800; font-family: inherit;
}

/* ===== ?? ===== */
.fav-btn {
  width: 100%; margin-top: 10px; padding: 11px 0; border-radius: 12px; cursor: pointer;
  background: rgba(255,215,0,.1); border: 1px solid rgba(255,215,0,.45);
  color: #ffd700; font-size: 14px; font-weight: 800; font-family: inherit;
}
.fav-btn.faved { background: rgba(255,215,0,.2); border-color: #ffd700; }

.fav-section { margin-top: 48px; }
.fav-title { font-size: 20px; font-weight: 800; color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,.4); }
.fav-sub { margin-top: 4px; color: #8ea2c8; font-size: 13px; }
.fav-tabs { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.fav-tab {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #cfd9ff;
}
.fav-tab.active { background: rgba(255,215,0,.18); border-color: #ffd700; color: #ffd700; }
.fav-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  transition: all .15s;
}
.fav-item:hover { border-color: rgba(255,215,0,.5); transform: translateY(-1px); }
.fav-item .fi-emoji { font-size: 26px; }
.fav-item .fi-main { flex: 1; min-width: 0; }
.fav-item .fi-name { font-size: 15px; font-weight: 900; color: #ffd700; }
.fav-item .fi-meta { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.fav-item .fi-del { border: none; background: none; color: rgba(255,255,255,.4); font-size: 18px; cursor: pointer; }
.fav-item .fi-del:hover { color: #ff5a76; }
.fav-empty { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 10px; }

/* ===== ?????? ===== */
.video-box { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.video-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,45,85,.12), rgba(255,138,0,.1));
  border: 1px solid rgba(255,45,85,.4);
}
.video-info { flex: 1; min-width: 0; }
.video-info b { display: block; font-size: 14px; color: #ffb199; }
.video-info span { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; display: block; }
.video-play {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, #ff2d78, #ff8a00); color: #fff;
  font-size: 14px; font-weight: 900; font-family: inherit;
  box-shadow: 0 4px 14px rgba(255,45,120,.4); transition: transform .15s;
}
.video-play:hover { transform: translateY(-1px); }

/* ===== 厨房生活管家（周计划 / 备菜 / 反向搜索 / 厨房模式 / 带饭标签） ===== */
.tool-card { background: rgba(20,28,56,.75); border: 2px solid rgba(0,240,255,.25); border-radius: 16px; box-shadow: 0 0 24px rgba(0,240,255,.08); padding: 14px 16px; margin-top: 16px; }
.tool-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-emoji { font-size: 26px; }
.tool-text b { font-size: 16px; color: #00f0ff; }
.tool-text p { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(0,240,255,.4); background: rgba(0,240,255,.08); color: #00f0ff; font-size: 13px; font-family: inherit; cursor: pointer; transition: transform .15s; }
.tool-btn:hover { transform: translateY(-1px); }
.tool-btn.primary { background: linear-gradient(135deg, #00b3d6, #00f0ff); color: #06222a; font-weight: 900; border: none; }
.tool-input-row { display: flex; gap: 8px; }
.tool-input { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(0,240,255,.3); border-radius: 12px; color: #e6f7ff; padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; }
.tool-input:focus { border-color: #00f0ff; }
.tool-empty { color: rgba(255,255,255,.45); font-size: 13px; padding: 8px 2px; }

/* 周计划 */
.week-plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.week-day { background: rgba(0,240,255,.06); border: 1px solid rgba(0,240,255,.22); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: transform .15s; }
.week-day:hover { transform: translateY(-2px); border-color: #00f0ff; }
.week-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.week-day-label { color: #ffd166; font-size: 13px; }
.week-day-date { color: rgba(255,255,255,.4); font-size: 11px; }
.week-day-name { font-size: 15px; font-weight: 900; margin-top: 6px; color: #fff; }
.week-day-meta { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.week-day .lunchbox-tag { margin-top: 6px; margin-left: 0; }

/* 买菜清单 */
.week-shop { margin-top: 12px; background: rgba(255,45,120,.06); border: 1px solid rgba(255,45,120,.3); border-radius: 14px; padding: 12px; }
.week-shop-head { font-weight: 900; color: #ffb199; font-size: 14px; margin-bottom: 8px; }
.week-shop-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.week-shop-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.week-shop-item.have { border-color: rgba(0,240,255,.5); color: #00f0ff; }

/* 备菜 */
.prep-list { margin-top: 12px; display: grid; gap: 10px; }
.prep-head { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.prep-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,240,255,.05); border: 1px solid rgba(0,240,255,.2); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.prep-main { min-width: 0; }
.prep-method { display: block; color: #ffd166; font-size: 15px; }
.prep-recipe { font-size: 12px; color: rgba(255,255,255,.6); }
.prep-desc { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.prep-meta { flex-shrink: 0; font-size: 12px; color: #00f0ff; }

/* 反向搜索 */
.reverse-result { margin-top: 12px; }
.reverse-inner { background: rgba(0,240,255,.05); border: 1px solid rgba(0,240,255,.25); border-radius: 14px; padding: 12px 14px; }
.reverse-flag { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.reverse-want { font-size: 13px; color: rgba(255,255,255,.7); }
.reverse-name { font-size: 18px; font-weight: 900; color: #ffd166; margin-top: 6px; }
.reverse-sub { font-size: 13px; color: #00f0ff; margin-top: 4px; }
.reverse-tip { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }
.reverse-inner .tool-btn { margin-top: 10px; }

/* 带饭标签 */
.lunchbox-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.lunchbox-tag.lb-good { background: rgba(0,230,118,.14); color: #00e676; border: 1px solid rgba(0,230,118,.45); }
.lunchbox-tag.lb-ok { background: rgba(255,209,102,.14); color: #ffd166; border: 1px solid rgba(255,209,102,.45); }
.lunchbox-tag.lb-bad { background: rgba(255,45,120,.14); color: #ff6b9d; border: 1px solid rgba(255,45,120,.45); }

/* 厨房模式按钮 */
.kitchen-open-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; border: none; background: linear-gradient(135deg, #00b3d6, #00f0ff); color: #06222a; font-weight: 900; font-size: 15px; font-family: inherit; cursor: pointer; }

/* 厨房模式全屏 */
.kitchen-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; }
.kitchen-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(4,8,20,.96); }
.kitchen-card { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: 20px; max-width: 760px; margin: 0 auto; }
.kitchen-head { display: flex; align-items: center; gap: 10px; }
.kitchen-name { flex: 1; min-width: 0; font-size: 22px; color: #00f0ff; text-shadow: 0 0 14px rgba(0,240,255,.6); }
.kitchen-heat { font-size: 24px; }
.kitchen-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 6px; }
.kitchen-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 4px; min-height: 0; }
.kitchen-counter b { font-size: 16px; color: #ffd166; }
.kitchen-counter span { font-size: 13px; color: rgba(255,255,255,.5); margin-left: 8px; }
.kitchen-step { font-size: clamp(26px, 6vw, 44px); font-weight: 900; line-height: 1.45; color: #fff; margin-top: 18px; max-width: 640px; word-break: break-word; }
.kitchen-video { margin-top: 18px; color: #00f0ff; font-size: 14px; text-decoration: none; border: 1px solid rgba(0,240,255,.4); padding: 8px 16px; border-radius: 999px; }
.kitchen-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: env(safe-area-inset-bottom); }
.kitchen-btn { padding: 16px 10px; border-radius: 16px; border: 1px solid rgba(0,240,255,.35); background: rgba(0,240,255,.08); color: #00f0ff; font-size: 16px; font-weight: 900; font-family: inherit; cursor: pointer; }
.kitchen-btn.kitchen-primary { background: linear-gradient(135deg, #00b3d6, #00f0ff); color: #06222a; border: none; }

/* 桌面端自适应 */
@media (min-width: 768px) {
  .week-plan-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .kitchen-card { padding: 28px 40px; }
  .kitchen-actions { grid-template-columns: repeat(4, 1fr); }
}
/* 菜谱图片（A-Bowl-of-Home 直链） */
.dish-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 10px 0 12px; border: 1px solid rgba(0,240,255,.25); background: rgba(255,255,255,.04); }
.detail-img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; border: 1px solid rgba(0,240,255,.25); background: rgba(255,255,255,.04); }

/* UI 适配防御：超长步骤/矮屏可滚动，图片占位 */
.kitchen-step { max-height: 50vh; overflow-y: auto; }
.dish-img, .detail-img { background: linear-gradient(135deg, rgba(0,240,255,.06), rgba(255,45,120,.06)); }
@media (max-width: 360px) {
  .week-plan-list { grid-template-columns: 1fr; }
  .kitchen-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
}


/* ===== 口味偏好 / AI 优化 / 累积清单 / 步骤计时器 ===== */
.pref-btn { margin-left: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(0,240,255,.4); background: rgba(0,240,255,.08); color: #00f0ff; font-size: 13px; font-family: inherit; cursor: pointer; }
.pref-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 320; }
.pref-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); }
.pref-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 420px); max-height: 82vh; overflow-y: auto; background: #111a38; border: 1px solid rgba(0,240,255,.35); border-radius: 18px; padding: 20px; box-shadow: 0 0 40px rgba(0,240,255,.15); }
.pref-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.pref-title { font-size: 18px; color: #00f0ff; }
.pref-sub { font-size: 12px; color: rgba(255,255,255,.55); margin: 6px 0 14px; }
.pref-group { margin-bottom: 14px; }
.pref-group > b { display: block; font-size: 13px; color: #ffd166; margin-bottom: 8px; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #e6f7ff; font-size: 13px; font-family: inherit; cursor: pointer; }
.pref-chip.active { border-color: #00f0ff; background: rgba(0,240,255,.18); color: #00f0ff; }
.pref-input { width: 100%; margin-top: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(0,240,255,.3); border-radius: 10px; color: #e6f7ff; padding: 8px 10px; font-size: 13px; font-family: inherit; outline: none; }
.pref-actions { display: flex; gap: 10px; margin-top: 6px; }
.pref-save { flex: 1; padding: 11px; border-radius: 12px; border: none; background: linear-gradient(135deg, #00b3d6, #00f0ff); color: #06222a; font-weight: 900; font-family: inherit; cursor: pointer; }
.pref-reset { padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(255,45,120,.5); background: rgba(255,45,120,.1); color: #ff6b9d; font-family: inherit; cursor: pointer; }

.improve-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(0,240,255,.4); background: rgba(0,240,255,.08); color: #00f0ff; font-weight: 900; font-size: 15px; font-family: inherit; cursor: pointer; }
.improve-box { margin-top: 10px; }
.improve-card { background: rgba(0,240,255,.06); border: 1px solid rgba(0,240,255,.25); border-radius: 14px; padding: 12px 14px; }
.improve-card.ai { border-color: rgba(255,209,102,.4); background: rgba(255,209,102,.06); }
.improve-head { font-weight: 900; color: #ffd166; font-size: 15px; margin-bottom: 8px; }
.improve-tip { font-size: 13px; color: rgba(255,255,255,.75); margin: 4px 0; }
.improve-why { font-size: 13px; color: #00f0ff; margin: 4px 0; }
.improve-ings { font-size: 12px; color: rgba(255,255,255,.55); margin: 6px 0; }
.improve-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.accum-card { margin-top: 16px; }
.accum-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.accum-list .week-shop-item { display: inline-flex; align-items: center; gap: 4px; }
.accum-list .fi-del { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 14px; padding: 0 2px; }

.step-timer { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.timer-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0,240,255,.4); background: rgba(0,240,255,.08); color: #00f0ff; font-size: 12px; font-family: inherit; cursor: pointer; }
.timer-disp { color: #ffd166; font-size: 16px; font-variant-numeric: tabular-nums; }

.kitchen-timer { margin-top: 18px; display: flex; align-items: center; gap: 12px; justify-content: center; }
.kitchen-timer-btn { padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(0,240,255,.5); background: rgba(0,240,255,.12); color: #00f0ff; font-size: 16px; font-weight: 900; font-family: inherit; cursor: pointer; }
.kitchen-timer-disp { color: #ffd166; font-size: 26px; font-variant-numeric: tabular-nums; }
