/* /products/gamification/missions (partials/sp-missions.hbs, msp-live.hbs; loaded by msp-assets.hbs): the hero (a
   mission card that fills up and pays out; js/missions.js plays it), the side panels (#why flow, #tasks, #rewards), the
   type, rule and design cards, the frames of the four Vibe Studio missions widgets (they bring their own look) and the FAQ.
   Dark navy game panels as on the Badges and Avatars pages. */
:root {
  --msp-bg: #10131f;
  --msp-panel: #181c2c;
  --msp-card: #1d2236;
  --msp-line: #2a3150;
  --msp-text: #c9cee3;
  --msp-muted: #8d93b0;
  --msp-cyan: #11ced7;
  --msp-gold: #f9c440;
  --msp-red: #f15851;
  --msp-green: #3ddc84;
}

/* ------------------------------------------------ shared bits: chips, buttons, progress ring */
.msp-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font: 700 .72rem/1.3 "Lexend Deca", sans-serif; white-space: nowrap; }
.msp-chip i { font-style: normal; font-variant-numeric: tabular-nums; }
.msp-chip.is-time { background: rgba(241, 88, 81, .15); color: #ff8b85; }
.msp-chip.is-lock { background: rgba(181, 108, 255, .16); color: #b179f0; }
.msp-chip.big { padding: .45rem .9rem; font-size: .95rem; }
.msp-btn { display: inline-block; padding: .55rem 1.1rem; border-radius: .6rem; font: 700 .875rem/1.2 "Lexend Deca", sans-serif; }
.msp-btn.is-opt { background: var(--msp-cyan); color: #06262a; }
.msp-btn.is-claim { background: linear-gradient(180deg, #ffe58a, #e0a314); color: #2b1d00; box-shadow: 0 0 0 .35rem rgba(249, 196, 64, .18); }
.msp-ring { --p: 100; position: relative; display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%; background: conic-gradient(var(--msp-cyan) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.msp-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--msp-bg); }
.msp-ring.is-full { background: conic-gradient(var(--msp-gold) 100%, transparent 0); }
/* the icons are rounded tiles: scale the tile up and clip a circle out of its middle, so no corner shows */
.msp-ring_img { position: relative; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; transform: scale(1.2); clip-path: circle(41.5%); }

/* ------------------------------------------------ hero: a mission card fills up, then the reward waits for Claim */
.msp-hero { position: relative; width: 100%; max-width: 34rem; aspect-ratio: 1 / .9; margin: 0 auto; border-radius: 1.25rem; overflow: hidden; background: radial-gradient(70% 60% at 30% 20%, rgba(17, 206, 215, .22), transparent 70%), radial-gradient(60% 60% at 90% 90%, rgba(181, 108, 255, .28), transparent 70%), var(--msp-bg); box-shadow: 0 2rem 4rem rgba(10, 12, 24, .35); font-family: "Lexend Deca", sans-serif; color: #fff; container-type: inline-size; }
.msp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; }
.msp-card { position: absolute; left: 9%; top: 15%; width: 64%; display: flex; flex-direction: column; gap: 3.2cqw; padding: 4cqw; border-radius: 4cqw; background: var(--msp-card); border: 1px solid var(--msp-line); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .5); }
.msp-card_top { display: flex; align-items: center; gap: 3cqw; }
.msp-card_icon { width: 13cqw; height: 13cqw; border-radius: 3cqw; object-fit: cover; flex: none; }
.msp-card_top div { flex: 1; min-width: 0; }
.msp-card_top b { display: block; font-size: clamp(.8rem, 3.6cqw, 1.1rem); }
.msp-card_top span { display: block; font-size: clamp(.62rem, 2.5cqw, .78rem); color: var(--msp-muted); }
.msp-card_tasks { display: flex; flex-direction: column; gap: 2cqw; margin: 0; padding: 0; list-style: none; }
.msp-card_tasks li { display: flex; align-items: center; gap: 2cqw; font-size: clamp(.62rem, 2.6cqw, .82rem); color: var(--msp-text); }
.msp-card_tasks li i { flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 2px solid var(--msp-muted); display: grid; place-items: center; }
.msp-card_tasks li.is-done { color: var(--msp-muted); text-decoration: line-through; }
.msp-card_tasks li.is-done i { border-color: var(--msp-green); background: var(--msp-green); }
.msp-card_tasks li.is-done i::after { content: ""; width: 35%; height: 60%; margin-top: -10%; border: solid #06260f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.msp-card_tasks li span { flex: 1; }
.msp-card_tasks li em { font-style: normal; color: var(--msp-muted); font-variant-numeric: tabular-nums; }
.msp-bar { height: 2cqw; min-height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.msp-bar i { display: block; width: var(--msp-p, 45%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--msp-cyan), #7af3f8); transition: width .9s cubic-bezier(.3, .8, .3, 1); }
.msp-hero.is-done .msp-bar i { background: linear-gradient(90deg, var(--msp-gold), #ffe58a); }
.msp-card_foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.msp-card_foot b { color: var(--msp-gold); font-size: clamp(.7rem, 3cqw, .95rem); }
.msp-claim { padding: 1.6cqw 3.4cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .08); color: var(--msp-muted); font-size: clamp(.62rem, 2.6cqw, .82rem); font-weight: 700; transition: background .3s, color .3s; }
.msp-hero.is-done .msp-claim { background: linear-gradient(180deg, #ffe58a, #e0a314); color: #2b1d00; animation: mspGlow 1.4s ease-in-out infinite; }
.msp-hero.is-claimed .msp-claim { animation: none; background: rgba(61, 220, 132, .18); color: var(--msp-green); }
@keyframes mspGlow { 50% { box-shadow: 0 0 0 .4rem rgba(249, 196, 64, .2); } }
.msp-toast { position: absolute; right: 5%; z-index: 3; display: flex; align-items: center; gap: 2.4cqw; width: 52%; padding: 2.4cqw 3cqw; border-radius: 3cqw; background: rgba(11, 14, 25, .94); border: 1px solid var(--msp-line); box-shadow: 0 1rem 2rem rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-.6rem); transition: opacity .4s, transform .4s; }
.msp-toast.is-a { top: 7%; border-color: rgba(17, 206, 215, .6); }
.msp-toast.is-b { bottom: 8%; border-color: rgba(181, 108, 255, .6); }
.msp-toast.is-on { opacity: 1; transform: none; }
.msp-toast_img { width: 9cqw; height: 9cqw; border-radius: 2cqw; object-fit: cover; flex: none; }
.msp-toast b { display: block; font-size: clamp(.6rem, 2.6cqw, .8rem); }
.msp-toast span { display: block; font-size: clamp(.56rem, 2.2cqw, .7rem); color: var(--msp-muted); line-height: 1.3; }
.msp-coins { position: absolute; left: 50%; top: 70%; z-index: 4; pointer-events: none; }
.msp-coins i { position: absolute; width: 5cqw; height: 5cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f9c440 45%, #c88a10); box-shadow: 0 0 10px rgba(249, 196, 64, .7); opacity: 0; }
.msp-hero.is-claimed .msp-coins i { animation: mspCoin 1.3s ease-out forwards; }
.msp-coins i:nth-child(1) { --x: -18cqw; --y: -22cqw; }
.msp-coins i:nth-child(2) { --x: -6cqw; --y: -30cqw; animation-delay: .08s; }
.msp-coins i:nth-child(3) { --x: 6cqw; --y: -26cqw; animation-delay: .16s; }
.msp-coins i:nth-child(4) { --x: 16cqw; --y: -18cqw; animation-delay: .24s; }
.msp-coins i:nth-child(5) { --x: 24cqw; --y: -30cqw; animation-delay: .32s; }
@keyframes mspCoin { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }

/* ------------------------------------------------ side panels */
.msp-panel { width: 100%; max-width: 34rem; margin: 0 auto; padding: 1.25rem; border-radius: 1rem; background: radial-gradient(120% 90% at 50% 0%, #20263d 0%, var(--msp-bg) 65%); border: 1px solid var(--msp-line); box-shadow: 0 1.5rem 3rem rgba(24, 27, 43, .18); font-family: "Lexend Deca", sans-serif; color: #fff; }
.msp-panel_title { font-size: .8125rem; color: var(--msp-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
/* #why: actions flow into a mission (js/missions.js lights them one by one) */
.msp-flow_grid { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem auto; align-items: center; gap: .5rem; }
.msp-flow_events { display: grid; gap: .55rem; }
.msp-ev { padding: .55rem .75rem; border-radius: .6rem; border: 1px solid var(--msp-line); background: rgba(255, 255, 255, .04); font-size: .82rem; color: var(--msp-muted); transition: border-color .4s, color .4s, background .4s; }
.msp-ev.is-on { border-color: var(--msp-cyan); color: #fff; background: rgba(17, 206, 215, .1); }
.msp-flow_line { height: 2px; background: linear-gradient(90deg, var(--msp-cyan), var(--msp-gold)); position: relative; }
.msp-flow_line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--msp-gold); }
.msp-flow_ring { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.msp-flow_ring .msp-ring { --p: 0; transition: --p .8s; }
.msp-flow_ring b { font-size: .875rem; }
.msp-flow_ring em { font-style: normal; font-size: .75rem; color: var(--msp-gold); font-variant-numeric: tabular-nums; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
/* #tasks: four task kinds */
.msp-tasks { display: grid; gap: .6rem; }
.msp-tk { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: .75rem; background: var(--msp-card); border: 1px solid var(--msp-line); }
.msp-tk > i { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--msp-muted); display: grid; place-items: center; font-style: normal; font-size: .7rem; color: #06260f; }
.msp-tk.is-done > i { border-color: var(--msp-green); background: var(--msp-green); }
.msp-tk b { display: block; font-size: .85rem; font-weight: 600; }
.msp-tk span { display: block; font-size: .7rem; color: var(--msp-cyan); text-transform: uppercase; letter-spacing: .06em; margin-top: .1rem; }
.msp-tk em { font-style: normal; font-size: .78rem; color: var(--msp-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.msp-tk_bar { display: block; height: 5px; margin-top: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .08); text-decoration: none; position: relative; overflow: hidden; }
.msp-tk_bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--msp-cyan); }
.msp-tk_dots { display: flex; gap: .3rem; margin-top: .45rem; text-decoration: none; }
.msp-tk_dots u { width: .7rem; height: .7rem; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.msp-tk_dots u.on { background: var(--msp-cyan); }
/* #rewards: a finished mission pays out */
.msp-pay { display: grid; grid-template-columns: auto 2.5rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.msp-pay_src { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.msp-pay_src b { font-size: .875rem; }
.msp-pay_src em { font-style: normal; font-size: .72rem; color: var(--msp-gold); }
.msp-pay_line { height: 2px; background: linear-gradient(90deg, var(--msp-gold), var(--msp-cyan)); position: relative; }
.msp-pay_line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--msp-cyan); }
.msp-pay_out { display: grid; gap: .45rem; }
.msp-pay_chip { padding: .45rem .7rem; border-radius: .6rem; font-size: .8125rem; font-weight: 600; border: 1px solid var(--k); color: var(--k); background: rgba(255, 255, 255, .04); }

/* ------------------------------------------------ cards on light sections */
.msp-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.msp-types li, .msp-rules li { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border-radius: .875rem; background: #fff; border: 1px solid var(--sp-line, #e3e6f0); }
.msp-types li b, .msp-rules li b { font-weight: 600; }
.msp-types li > span:last-child, .msp-rules li > span { font-size: .9375rem; line-height: 1.5; color: #4a5068; }
.msp-types_ic { position: relative; width: 3.5rem; height: 3.5rem; margin-bottom: .25rem; }
.msp-types_img { width: 100%; height: 100%; border-radius: .9rem; object-fit: cover; }
.msp-types_ic i { position: absolute; right: -.45rem; bottom: -.35rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .18); display: grid; place-items: center; font-style: normal; font-size: .8rem; }
.msp-types_ic.is-lock .msp-types_img { filter: grayscale(.7); }
.msp-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.msp-rules_art { display: flex; align-items: center; justify-content: center; height: 4.5rem; margin-bottom: .25rem; border-radius: .7rem; background: var(--msp-bg); }

/* ------------------------------------------------ the four live demos (each widget brings its own look; the section
   background hints at its theme) */
.msp-sec { position: relative; z-index: 2; background: radial-gradient(90% 60% at 50% 0%, #1b2140 0%, #0d1019 70%); color: #fff; overflow: hidden; }
.msp-sec::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.msp-sec > * { position: relative; }
.msp-sec_head { max-width: 50rem; margin: 0 auto 2.5rem; text-align: center; display: grid; gap: 1rem; }
.msp-sec_head .section_title { margin: 0; color: #fff; }
.msp-sec_head .title_sub { margin: 0; color: var(--msp-text); opacity: 1; }
.msp-sec_kicker { justify-self: center; padding: .3rem .8rem; border-radius: 999px; background: rgba(17, 206, 215, .14); color: var(--msp-cyan); font: 700 .75rem/1.2 "Lexend Deca", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.msp-sec.is-journey { background: radial-gradient(80% 60% at 50% 0%, #2d4a2a 0%, #101a14 70%); }
.msp-sec.is-journey .msp-sec_kicker { background: rgba(249, 196, 64, .15); color: var(--msp-gold); }
.msp-sec.is-game { background: radial-gradient(80% 60% at 50% 0%, #4a2a10 0%, #150c08 70%); }
.msp-sec.is-game .msp-sec_kicker { background: rgba(249, 196, 64, .15); color: var(--msp-gold); }
.msp-sec.is-lobby { background: radial-gradient(80% 60% at 50% 0%, #2c1f5c 0%, #0d0b1f 70%); }
.msp-sec.is-lobby .msp-sec_kicker { background: rgba(181, 108, 255, .18); color: #d2a8ff; }
.msp-widget { width: 100%; max-width: 72rem; min-height: 32rem; margin: 0 auto; }
.msp-widget_err { padding: 3rem 1rem; text-align: center; color: var(--msp-red); }
.msp-try { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 72rem; margin: 1.75rem auto 0; padding: 0; list-style: none; }
.msp-try li { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--msp-text); }
.msp-try b { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(17, 206, 215, .15); color: var(--msp-cyan); font-size: .8rem; }

/* ------------------------------------------------ FAQ: the Webflow look, opened by js/missions.js (this page's Webflow
   interactions know no FAQ items) */
.msp-faq .faq-p-3 { height: 80px; transition: height .35s ease; }
.msp-faq .faq-3 { position: relative; cursor: pointer; }
.msp-faq .faq-icon { inset: 50% 0 auto auto; width: 24px; height: 24px; margin: -12px 0 0; filter: none; }
.msp-faq .faq-icon::before, .msp-faq .faq-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; border-radius: 2px; background: #181b2b; transition: transform .3s; }
.msp-faq .faq-icon::after { transform: rotate(90deg); }
.msp-faq .faq-p-3.is-open .faq-icon::after { transform: rotate(0); }

@media screen and (max-width: 991px) {
  .msp-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msp-try { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 600px) {
  .msp-types, .msp-rules { grid-template-columns: minmax(0, 1fr); }
  .msp-flow_grid, .msp-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .msp-flow_events, .msp-pay_out { width: 100%; }
  .msp-flow_line, .msp-pay_line { width: 2px; height: 1.5rem; }
  .msp-card { left: 6%; width: 74%; }
  .msp-toast { width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .msp-hero *, .msp-sec *, .msp-panel * { animation: none !important; transition: none !important; }
}
