/* ═══════════ v2 任務 tab（app.js renderMissionBoard） ═══════════ */
body.v2[data-v2] .panel--mission { background: none; color: #16131d; }
body.v2[data-v2] .mission-wrap { padding: 0; background: none; border: 0; box-shadow: none; }
.v2-mission { display: flex; flex-direction: column; gap: 16px; padding-bottom: 12px; color: #16131d; font-family: "Noto Sans HK", system-ui, sans-serif; }
.v2-mission__head { margin: 0 4px; }
.v2-mission__title { margin: 0; font-size: 36px; font-weight: 900; line-height: 1.1; }
.v2-mission__hl { background: #fffdf7; padding: 0 8px; border: 2.5px solid #16131d; box-shadow: 3px 3px 0 #16131d; }
.v2-mission__sub { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #5e5566; }
.v2-mission__label { margin: 4px 4px -4px; }

/* 主線 */
.v2-mmain { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: fcUp .45s cubic-bezier(.2, 1.3, .4, 1) .05s both; }
.v2-mmain__title { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.35; }
.v2-mmain__bar { position: relative; height: 30px; overflow: hidden; background: #fffdf7; border: 2.5px solid #16131d; border-radius: 8px; }
.v2-mmain__fill { height: 100%; border-right: 2.5px solid #16131d; transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
.v2-mmain__bar .v2-num { position: absolute; right: 10px; top: 3px; font-size: 14px; font-weight: 700; }
.v2-mmain__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-mmain--done { background: #ffd23f; }
.v2-mmain__stamp {
  position: absolute; right: 14px; top: 12px; padding: 4px 12px; font-size: 20px; font-weight: 900; letter-spacing: .06em;
  color: #e0341a; border: 3px solid #e0341a; border-radius: 8px; background: rgba(255, 253, 247, .8); transform: rotate(-10deg);
  animation: fcStamp .5s cubic-bezier(.2, 1.2, .4, 1) .3s both;
}

/* 全部完成 */
.v2-mission__clear {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #ff6b35;
  border: 2.5px solid #16131d; border-radius: 12px; box-shadow: 4px 4px 0 #16131d; font-size: 16px;
}
.v2-mission__cheer { width: 48px; height: 76px; flex-shrink: 0; background: url(./images/v2/mascot-cheer.png) 0 0 / 400% 100% no-repeat; image-rendering: pixelated; animation: v2m4 .5s steps(4) infinite; }

/* 微任務卡 */
.v2-mq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v2-mq {
  padding: 12px 14px; background: #fffdf7; border: 2.5px solid #16131d; border-radius: 12px; box-shadow: 4px 4px 0 #16131d;
  transform: rotate(var(--tilt, 0deg)); animation: fcUp .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.v2-mq--active { background: #ffd23f; }
.v2-mq--missed { background: #fffdf7; }
.v2-mq--locked { background: #f4f0e6; border-style: dashed; box-shadow: none; }
.v2-mq--locked .v2-mq__title, .v2-mq--locked .v2-mq__hint { color: #5e5566; }
.v2-mq--done { background: #f4f0e6; box-shadow: 2px 2px 0 #16131d; }
.v2-mq--done .v2-mq__title { text-decoration: line-through; text-decoration-thickness: 2px; color: #5e5566; }
.v2-mq__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v2-mq__time { font-size: 11px; font-weight: 700; }
.v2-mq__phase { padding: 2px 9px; font-size: 11px; font-weight: 900; border: 2px solid #16131d; border-radius: 999px; background: #fffdf7; white-space: nowrap; }
.v2-mq__phase--active { background: #ff6b35; }
.v2-mq__phase--missed { background: #b8a6ff; }
.v2-mq__phase--locked { border-style: dashed; color: #5e5566; }
.v2-mq__title { margin: 6px 0 2px; font-size: 17px; font-weight: 900; line-height: 1.35; }
.v2-mq__hint { margin: 0; font-size: 13px; line-height: 1.5; color: #3b3542; }
.v2-mq__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.v2-mq__gain { padding: 2px 10px; font-size: 14px; font-weight: 700; background: #fffdf7; border: 2px solid #16131d; border-radius: 999px; }
.v2-mq__btn {
  min-height: 42px; padding: 0 16px; font: 900 14px/1 "Noto Sans HK", sans-serif; color: #16131d; cursor: pointer;
  background: #fffdf7; border: 2.5px solid #16131d; border-radius: 10px; box-shadow: 3px 3px 0 #16131d; white-space: nowrap;
}
.v2-mq__btn:active { transform: translate(3px, 3px); box-shadow: none; }
.v2-mq__btn--hot { background: #ff6b35; }
.v2-mq__btn--on { background: #16131d; color: #fffdf7; }
.v2-mq__done { padding: 4px 12px; font-size: 14px; font-weight: 900; color: #e0341a; border: 2.5px solid #e0341a; border-radius: 8px; transform: rotate(-6deg); }
.v2-mq__wait { font-size: 12px; font-weight: 700; color: #5e5566; }

/* 本週儲火 */
.v2-wk { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-wk__head { display: flex; align-items: baseline; justify-content: space-between; }
.v2-wk__count { font-size: 20px; font-weight: 700; }
.v2-wk__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.v2-wk__day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.v2-wk__day .v2-mono { font-size: 10px; }
.v2-wk__cell {
  width: 100%; max-width: 40px; aspect-ratio: 1; display: grid; place-items: center;
  background: #fffdf7; border: 2.5px solid #16131d; border-radius: 8px;
}
.v2-wk__cell b { font-size: 10px; font-weight: 900; background: #fffdf7; padding: 0 2px; border-radius: 3px; }
.v2-wk__cell--both { background: #ff6b35; }
.v2-wk__cell--today { box-shadow: 3px 3px 0 #16131d; outline: 2.5px solid #ffd23f; outline-offset: 2px; }
.v2-wk__reward { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; background: #f4f0e6; border: 2px dashed #16131d; border-radius: 10px; }
.v2-wk__reward--ready { background: #ffd23f; border-style: solid; animation: fcFlip .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.v2-wk__gift { width: 26px; height: 26px; flex-shrink: 0; background: url(./images/v2/coin.png) 0 0 / 800% 100% no-repeat; image-rendering: pixelated; animation: v2m8 .7s steps(8) infinite; }

/* 提醒 */
.v2-remind { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2-remind__txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #5e5566; }
.v2-remind__txt b { font-size: 15px; color: #16131d; }

@media (prefers-reduced-motion: reduce) {
  .v2-mission *, .v2-mq { animation: none !important; }
}
