/* v6-missions.css — Missions tab: Daily · Weekly · Milestones, chest, streak.
   Prefix ms-. Dark UI; champagne #D4B98A only on mission Claim (and the
   hold sheet's single action). Selected tab is neutral white; numbers white. */
#tab-missions .v6-title { font-size: 24px; }
.ms-wrap { padding: 2px 0 16px; }
.ms-wrap button, .ms-hold button { font-family: 'Manrope', sans-serif; cursor: pointer; }
.ms-body { animation: ms-in .22s ease-out; }
@keyframes ms-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ms-caps { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: #8A8178; }

/* guest banner */
.ms-guest { margin: 12px 16px 0; padding: 12px 12px 12px 14px; border-radius: 14px; background: #1F1F22; border: 1px solid #2E2E33; }
.ms-gt { display: flex; align-items: center; gap: 10px; }
.ms-gt b { font-size: 13.5px; font-weight: 800; color: #F2EFEA; }
.ms-guest p { margin: 4px 0 0; font-size: 11.5px; font-weight: 600; line-height: 1.45; color: #A79F94; }
.ms-gr { display: flex; justify-content: flex-end; margin-top: 10px; }
.ms-ghost {
  height: 34px; padding: 0 12px; border-radius: 10px; background: #26262A; border: 1px solid #3A3A40;
  color: #F2EFEA; font-size: 12px; font-weight: 800;
}

/* segmented tabs: selected = neutral white */
.ms-tabs { display: flex; gap: 3px; padding: 3px; margin: 12px 16px 0; border-radius: 12px; background: #1F1F22; border: 1px solid #2E2E33; }
.ms-tabs button {
  flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 0; background: none;
  color: #A79F94; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background .18s, color .18s;
}
.ms-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tabs button.on { background: #F2EFEA; color: #111113; }
.ms-tdot { width: 6px; height: 6px; border-radius: 3px; background: #F2EFEA; flex: none; }
.ms-tabs button.on .ms-tdot { background: #111113; }

.ms-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 16px 10px; font-size: 12px; font-weight: 700; color: #7A7268; font-variant-numeric: tabular-nums; }
.ms-meta .hi { color: #F2EFEA; font-weight: 800; }
.ms-mr { display: inline-flex; align-items: center; gap: 10px; }
.ms-link { background: none; border: 0; padding: 4px 0; color: #F2EFEA; font-size: 12px; font-weight: 800; }
.ms-ends { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #A79F94; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-soon { margin: 2px 18px 10px; font-size: 12.5px; font-weight: 600; color: #7A7268; }
.ms-err { margin: 0 16px 10px; font-size: 12px; font-weight: 600; color: #F06464; }
.ms-sec { display: flex; justify-content: space-between; align-items: center; margin: 16px 18px 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #A79F94; }
.ms-secr { letter-spacing: 0; font-size: 11.5px; color: #7A7268; font-variant-numeric: tabular-nums; }

/* progress bars: white fill, green once complete; fill from empty on paint */
.ms-bar { position: relative; height: 6px; border-radius: 3px; background: #2E2E33; overflow: hidden; }
.ms-bar.lg { height: 8px; border-radius: 4px; }
.ms-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #F2EFEA; animation: ms-fill .52s cubic-bezier(.22,.8,.3,1); }
.ms-bar i.ok { background: #3FBF7F; }
@keyframes ms-fill { from { width: 0; } }

/* mission chest */
.ms-chest { margin: 0 16px 12px; padding: 12px 14px; border-radius: 16px; background: #1F1F22; border: 1px solid #2E2E33; }
.ms-chest.ready { border-color: #45454C; }
.ms-body > .ms-chest:first-child, .ms-body > .ms-soon:first-child { margin-top: 12px; }
.ms-chr { display: flex; align-items: flex-start; gap: 12px; }
.ms-chi { display: inline-flex; flex: none; transform-origin: 50% 100%; }
.ms-chest.pv .ms-chi { opacity: .55; }
.ms-chi.wig { animation: ms-wig 4.2s ease-in-out infinite; }
@keyframes ms-wig {
  0%, 15%, 100% { transform: rotate(0); }
  2.5% { transform: rotate(-5deg); } 5% { transform: rotate(4.5deg); } 7.5% { transform: rotate(-3deg); }
  10% { transform: rotate(2deg); } 12.5% { transform: rotate(-1deg); }
}
.ms-chb { flex: 1; min-width: 0; }
.ms-chh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-chh b { font-size: 12.5px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; }
.ms-chs { margin-top: 3px; font-size: 12px; font-weight: 600; color: #A79F94; line-height: 1.35; }
.ms-ctrack { position: relative; margin-top: 12px; }
.ms-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #1F1F22; }
.ms-tls { display: flex; margin-top: 6px; }
.ms-tls > div { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.ms-tl { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 11px; font-weight: 800; color: #A79F94; font-variant-numeric: tabular-nums; }
.ms-tl em { font-style: normal; font-size: 10.5px; color: #7A7268; margin-right: 2px; }
.ms-tl.r { color: #F2EFEA; }
.ms-tl.o { color: #7A7268; }
.ms-cho { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ms-cho .ms-rw { flex: 1; margin-top: 0; }
.ms-open, .ms-collect {
  flex: none; min-width: 84px; height: 36px; padding: 0 16px; border-radius: 11px; border: 0;
  background: #F2EFEA; color: #111113; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* mission cards */
.ms-list { display: flex; flex-direction: column; gap: 10px; margin: 0 16px; }
.ms-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: #1F1F22; border: 1px solid #2E2E33; transition: border-color .2s, opacity .2s;
}
.ms-card.ready { border-color: #45454C; }
.ms-card.pv { opacity: .55; pointer-events: none; }
.ms-card.locked { opacity: .6; }
.ms-cb { flex: 1; min-width: 0; }
.ms-cn { font-size: 14.5px; font-weight: 800; color: #F2EFEA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-cd { margin-top: 2px; font-size: 12px; font-weight: 600; color: #A79F94; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-br { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.ms-br .ms-bar { flex: 1; }
.ms-br b { font-size: 11.5px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-rw { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; }
.ms-rw.dim { color: #A79F94; }
.ms-rw.dim .ms-gc img { opacity: .6; }
.ms-gc { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ms-ul { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #A79F94; white-space: nowrap; }
.ms-tier { font-size: 11px; font-weight: 700; color: #7A7268; }
.ms-held { padding: 2px 7px; border-radius: 6px; background: #26262A; border: 1px solid #3A3A40; font-size: 10.5px; font-weight: 800; color: #A79F94; }
.ms-tr { flex: none; display: flex; align-items: center; justify-content: center; animation: ms-pop .26s cubic-bezier(.34,1.56,.64,1); }
@keyframes ms-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.ms-cf { font-size: 12.5px; font-weight: 800; color: #A79F94; font-variant-numeric: tabular-nums; }
.ms-lock { width: 28px; display: inline-flex; justify-content: center; color: #7A7268; }
.ms-claim {
  min-width: 78px; height: 36px; padding: 0 14px; border-radius: 11px; border: 0; background: #D4B98A; color: #15120D;
  font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.ms-claim:disabled, .ms-open:disabled, .ms-collect:disabled { opacity: .5; cursor: default; }
.ms-done { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ms-dck { width: 28px; height: 28px; border-radius: 14px; background: rgba(63,191,127,.14); display: flex; align-items: center; justify-content: center; }
.ms-done em { font-style: normal; font-size: 10px; font-weight: 800; color: #7A7268; }
.ms-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(21,18,13,.3); border-top-color: #15120D; animation: ms-rot .7s linear infinite; }
.ms-spin.dk { border-color: rgba(17,17,19,.3); border-top-color: #111113; }
@keyframes ms-rot { to { transform: rotate(360deg); } }

/* daily streak (neutral: champagne stays on Claim) */
.ms-streak { margin: 4px 16px 0; padding: 14px; border-radius: 16px; background: #1F1F22; border: 1px solid #2E2E33; }
.ms-list + .ms-streak { margin-top: 14px; }
.ms-sth { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.ms-std { margin-top: 3px; font-size: 17px; font-weight: 800; color: #F2EFEA; }
.ms-days { display: flex; gap: 4px; margin-top: 10px; }
.ms-day {
  flex: 1; min-width: 0; padding: 7px 0; border-radius: 10px; background: #26262A; border: 1px solid #2E2E33;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ms-day.cur { background: #303036; border-color: #45454C; }
.ms-day em { font-style: normal; font-size: 9.5px; font-weight: 800; color: #7A7268; }
.ms-day b { font-size: 10px; font-weight: 800; color: #F2EFEA; white-space: nowrap; }
.ms-day.past b { color: #7A7268; }
.ms-d7 { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 800; color: #F2EFEA; }
.ms-stf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: #A79F94; }
.ms-stf b { color: #F2EFEA; font-variant-numeric: tabular-nums; }
.ms-got { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #A79F94; }

/* guest hold sheet */
.ms-hold { padding: 8px 18px 6px; color: #F2EFEA; font-family: 'Manrope', sans-serif; }
.ms-hh { display: flex; align-items: center; gap: 12px; }
.ms-hh b { font-size: 17px; font-weight: 800; }
.ms-hold > p { margin: 8px 0 14px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #A79F94; }
.ms-hold .ms-caps { margin-bottom: 8px; }
.ms-hrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: #26262A; border: 1px solid #2E2E33; }
.ms-hrow > b { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-hrow .ms-rw { margin-top: 0; justify-content: flex-end; }
.ms-primary { display: block; width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 12px; background: #D4B98A; color: #15120D; font-size: 15px; font-weight: 800; }
.ms-notnow { display: block; margin: 6px auto 0; padding: 8px 12px; border: 0; background: none; color: #A79F94; font-size: 13px; font-weight: 700; }

.ms-empty { margin: 8px 16px 0; padding: 28px 16px; border-radius: 14px; border: 1px dashed #2E2E33; text-align: center; color: #A79F94; font-size: 13px; font-weight: 600; }
.ms-retry { margin: 24px 16px; text-align: center; }
.ms-retry p { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: #A79F94; }
.ms-retry .ms-ghost { width: 160px; height: 42px; }
.ms-legal { margin: 16px 16px 0; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.5; color: #7A7268; }

@media (prefers-reduced-motion: reduce) {
  .ms-body, .ms-bar i, .ms-tr, .ms-chi.wig { animation: none; }
}
@media (max-width: 380px) {
  .ms-days { gap: 3px; }
  .ms-day b { font-size: 9px; }
}
