/* Missions + streak panel on the home page. Same raised dark tiles, blue actions and gold accents as the rest of the site. */
.ms-panel { display: grid; gap: 12px; margin-top: 8px; }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-head h2 { margin: 0; font: 400 22px "Lilita One", sans-serif; }
.ms-reset { padding: 5px 10px; border-radius: 99px; background: #22262a; color: #99a0a2; font: 700 12px "DM Sans", sans-serif; }
.ms-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.ms-coin { width: 15px; height: 15px; flex: none; }

/* streak */
.ms-streak { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: #1f2327; box-shadow: 0 4px 0 #111417; }
.ms-streak-top { display: flex; align-items: center; gap: 14px; }
.ms-flame { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #2a2f34; color: #5d656a; transition: color .3s ease, background-color .3s ease; }
.ms-flame svg { width: 30px; height: 30px; }
.ms-flame.lit { background: #3a2e17; color: #f2c14e; }
.ms-days { display: block; color: #fff; font: 400 40px/1 "Lilita One", sans-serif; }
.ms-days-l { color: #99a0a2; font: 700 13px "DM Sans", sans-serif; }
.ms-sub, .ms-next { margin: 0; color: #c3c9cd; font: 600 13px/1.45 "DM Sans", sans-serif; }
.ms-next { color: #f2c14e; }
.ms-streak.risk .ms-sub { color: #f2c14e; }
.ms-steps { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ms-step { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; background: #22262a; opacity: .6; }
.ms-step.reached { opacity: 1; }
.ms-step-day { min-width: 34px; color: #fff; font: 400 16px "Lilita One", sans-serif; }
.ms-step-reward, .ms-reward { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: #e8eaeb; font: 700 13px "DM Sans", sans-serif; }

/* missions */
.ms-list { display: grid; gap: 10px; min-width: 0; }
.ms-list ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-row, .ms-chest, .ms-signin { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #22262a; box-shadow: 0 4px 0 #111417; }
.ms-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ms-title { display: flex; align-items: center; gap: 8px; }
.ms-title b { color: #fff; font: 400 17px/1.15 "Lilita One", sans-serif; letter-spacing: .01em; }
.ms-title em { padding: 2px 7px; border-radius: 6px; background: #3a2e17; color: #f2c14e; font: 700 10.5px "DM Sans", sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.ms-main small, .ms-chest small { color: #99a0a2; font: 600 13px/1.35 "DM Sans", sans-serif; }
.ms-bar { position: relative; height: 20px; margin-top: 4px; overflow: hidden; border-radius: 99px; background: #15181b; }
.ms-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #4d8ee7; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.ms-row.hard .ms-bar i { background: #f2c14e; }
.ms-bar span { position: relative; display: block; padding: 0 10px; color: #fff; font: 700 11.5px/20px "DM Sans", sans-serif; text-shadow: 0 1px 0 #0006; font-variant-numeric: tabular-nums; }
.ms-side { display: flex; flex: none; align-items: center; gap: 12px; }
.ms-side .ms-reward { margin: 0; min-width: 64px; justify-content: flex-end; }
.ms-state { display: inline-grid; place-items: center; min-width: 92px; height: 36px; border-radius: 10px; background: #2a2f34; color: #7d858a; font: 700 12.5px "DM Sans", sans-serif; }
.ms-state.done { background: transparent; color: #6fe0a5; }
.ms-claim { min-width: 92px; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: #4d8ee7; box-shadow: 0 3px 0 #2a5c9f; color: #fff; font: 700 13px "DM Sans", sans-serif; cursor: pointer; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.ms-claim:hover:not(:disabled) { background: #5b9bf0; transform: translateY(-1px); box-shadow: 0 4px 0 #2a5c9f; }
.ms-claim:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #2a5c9f; }
.ms-claim:disabled { opacity: .6; cursor: default; }
.ms-claim.small { min-width: 0; height: 28px; padding: 0 12px; font-size: 12px; }
.ms-row.ready:not(.claimed) { box-shadow: inset 0 0 0 2px #4d8ee7, 0 4px 0 #111417; }
.ms-row.claimed { opacity: .6; }
.ms-chest { background: #2a2f34; }
.ms-chest b { display: block; color: #fff; font: 400 18px "Lilita One", sans-serif; }
.ms-chest.ready { box-shadow: inset 0 0 0 2px #f2c14e, 0 4px 0 #111417; }
.ms-chest.claimed { opacity: .6; }
.ms-signin { color: #c3c9cd; font: 600 14px "DM Sans", sans-serif; }

@media (max-width: 1100px) { .ms-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ms-row, .ms-chest { flex-wrap: wrap; padding: 12px 14px; }
  .ms-side { width: 100%; justify-content: space-between; }
  .ms-side .ms-reward { justify-content: flex-start; }
  .ms-signin { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ms-bar i, .ms-claim, .ms-flame { transition: none; } }

@media (max-width: 1100px) {
  .ms-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ms-step { flex-direction: column; justify-content: center; gap: 2px; min-height: 0; padding: 8px 2px; text-align: center; }
  .ms-step-day { min-width: 0; }
  .ms-step-reward { margin: 0; font-size: 11px; gap: 3px; }
  .ms-step .ms-coin { width: 11px; height: 11px; }
  .ms-step .ms-claim.small { width: 100%; padding: 0; margin-top: 4px; }
  .ms-step .ms-state { min-width: 0; height: auto; font-size: 11px; }
  .ms-streak { padding: 16px; }
}

/* ---- Second pass: cleaner streak card that matches the missions column, white flame, GBucks coin ---- */
.ms-grid { align-items: stretch; }
.ms-coin { width: 16px; height: 16px; }
.ms-streak { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #1f2327; }
.ms-streak-top { gap: 16px; }
.ms-flame { width: 68px; height: 68px; border-radius: 18px; background: #2a2f34; color: #646c72; }
.ms-flame svg { width: 40px; height: 40px; }
.ms-flame.lit { background: #2f353b; color: #fff; }
.ms-days { font-size: 46px; }
.ms-next { color: #8fb8ee; }
.ms-streak.risk .ms-sub { color: #ff8b90; }
.ms-steps { flex: 1; grid-auto-rows: 1fr; gap: 8px; margin: 0; }
.ms-step { opacity: 1; background: #22262a; box-shadow: 0 3px 0 #111417; }
.ms-step:not(.reached) .ms-step-day, .ms-step:not(.reached) .ms-step-reward { opacity: .55; }
.ms-step.reached { background: #2a2f34; }
.ms-step-day { font-size: 17px; }
.ms-row.hard .ms-bar i { background: #e0a93b; }
.ms-row.ready:not(.claimed) { box-shadow: inset 0 0 0 2px #4d8ee7, 0 4px 0 #111417; }
.ms-chest.ready { box-shadow: inset 0 0 0 2px #4d8ee7, 0 4px 0 #111417; }
.ms-list { align-content: stretch; }
@media (max-width: 1100px) { .ms-flame { width: 56px; height: 56px; } .ms-flame svg { width: 32px; height: 32px; } .ms-steps { grid-auto-rows: auto; flex: none; } }

/* Third pass: slim milestone tiles, bigger centred flame. */
.ms-flame { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; }
.ms-flame svg { width: 46px; height: 46px; display: block; margin: 0; }
.ms-steps { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.ms-step { flex: none; height: 52px; min-height: 0; padding: 0 14px; box-shadow: 0 3px 0 #111417; }
@media (max-width: 1100px) { .ms-steps { display: grid; } .ms-step { height: auto; padding: 8px 2px; } .ms-flame { width: 60px; height: 60px; } .ms-flame svg { width: 36px; height: 36px; } }

/* Claimed: a small green tick instead of a word. */
.ms-check { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; margin: 0 31px; border-radius: 50%; background: #1d3a2b; color: #6fe0a5; }
.ms-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ms-step .ms-check { width: 26px; height: 26px; margin: 0; }
.ms-step .ms-check svg { width: 15px; height: 15px; }

/* Claimed tick: solid green badge with a dark tick. */
.ms-check { background: #2fbf71; color: #0e1a13; box-shadow: 0 2px 0 #1c7a47; }
.ms-check svg { stroke-width: 3.4; }
