/* "Play through a workday" demo — Figma "How it works demo" 339:6590 (desktop) and 518:3532 (mobile). */

.dm { position: relative; max-width: 1200px; margin: 0 auto; padding: 32px 40px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; scroll-margin-top: calc(var(--nh-header-h, 76px) + 16px); }
.dm [hidden] { display: none; }
.dm-head { display: flex; align-items: flex-start; gap: 40px; min-height: 68px; }
.dm-head__copy { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dm-title { font-weight: 800; font-size: 28px; line-height: normal; letter-spacing: -.42px; color: var(--ink); }
.dm-line { font-size: 16px; line-height: 24px; color: var(--muted); }
.dm-line b { font-weight: 500; color: var(--ink); }
.dm-progress { display: flex; align-items: center; gap: 14px; padding-top: 10px; font-weight: 500; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.dm-segs { display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.dm-segs i { display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--line); transition: width .5s var(--ease-io), background-color .5s var(--ease-io), box-shadow .5s var(--ease-io); }
.dm-segs i.is-done { background: var(--btn); }
.dm-segs i.is-on { width: 44px; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.dm-steps { position: relative; margin-top: 28px; }
.dm-steps.is-sizing { overflow: hidden; transition: height .5s var(--ease-io); }
.dm-step { animation: dm-in .5s var(--ease-io); }
@keyframes dm-in { from { opacity: 0; } to { opacity: 1; } }
.dm-step--picker { max-width: 960px; margin: 0 auto; aspect-ratio: 960 / 664; overflow: hidden; }
.dm-step--picker .nh-d { margin-top: -7.5%; }
.dm-foot { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 24px; }
.dm-spacer { flex: 1 0 0; }
.dm-back { font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.dm-back:hover { color: var(--ink); }
.dm-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-done { font-weight: 500; font-size: 15px; color: var(--muted); }

/* Guidance callouts (mt_nh_call): a flashing arrow and label at the next thing to click. Placed by
   the arrow tip; --l/--r/--u/--d say where the target is. Stages and the shell add is-on. */
.dm-call { --call: color-mix(in srgb, var(--accent) 60%, var(--ink)); position: absolute; z-index: 20; display: flex; align-items: center; gap: 5px; color: var(--call); font-style: normal; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out); }
.dm-call.is-on { opacity: 1; }
.nh-anim .a.dm-call { transition: opacity .35s var(--ease-out); }
.dm-call b { padding: 5px 11px; border-radius: 999px; background: rgba(8, 6, 24, .84); border: 1px solid color-mix(in srgb, var(--call) 60%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); font-family: "Chakra Petch", "DM Sans", sans-serif; font-weight: 700; font-size: 13px; line-height: normal; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; }
.dm-call svg { flex: none; width: 30px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px currentColor); }
.dm-call--u svg, .dm-call--d svg { width: 18px; height: 24px; }
.dm-call--l { transform: translateY(-50%); --nx: -5px; }
.dm-call--r { transform: translate(-100%, -50%); --nx: 5px; }
.dm-call--u { flex-direction: column; gap: 2px; transform: translateX(-50%); --ny: -4px; }
.dm-call--d { flex-direction: column; gap: 2px; transform: translate(-50%, -100%); --ny: 4px; }
.dm-call.is-on b { animation: dm-call-flash 1.4s var(--ease-io) infinite; }
.dm-call.is-on svg { animation: dm-call-flash 1.4s var(--ease-io) infinite, dm-call-nudge .7s var(--ease-io) infinite alternate; }
@keyframes dm-call-flash { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes dm-call-nudge { to { transform: translate(var(--nx, 0), var(--ny, 0)); } }
/* The boss and realm picker scenes stay dark in every realm. */
.dm-boss .dm-call, .dm-picker .dm-call { --call: color-mix(in srgb, var(--accent) 45%, #fff); }

/* Footer buttons: Next (step 4) and Start free (step 5) */
.dm-foot .nh-btn { position: relative; }
.dm-foot__calls { position: absolute; inset: 0; pointer-events: none; }
.dm-foot__calls .dm-call--r { left: -14px; top: 50%; }
.dm-foot__calls .dm-call--u { left: 50%; top: calc(100% + 8px); }
.dm-call--mob { display: none; }
.dm[data-current="5"] .dm-foot { padding-bottom: 50px; } /* room for the callout under Start free */



@media (max-width: 700px) {
	.dm { padding: 0; background: none; border: 0; border-radius: 0; max-width: 350px; }
	.dm-head { flex-direction: column-reverse; gap: 10px; min-height: 0; padding-bottom: 18px; }
	.dm-head__copy { gap: 10px; }
	.dm-title { font-size: 22px; line-height: 28px; letter-spacing: -.33px; }
	.dm-line { font-size: 15px; line-height: 22px; }
	.dm-progress { width: 100%; justify-content: space-between; padding-top: 0; font-size: 13px; }
	.dm-segs { gap: 4.8px; padding: 8px 0; }
	.dm-segs i { width: 22.4px; height: 3.2px; border-radius: 1.6px; }
	.dm-segs i.is-on { width: 35.2px; }
	.dm-steps { margin-top: 0; }
	.dm-step--picker { max-width: 350px; aspect-ratio: 350 / 692; } /* tall enough for the "Tap to enter" callout under the button */
	.dm-step--picker .nh-m { margin-top: -27.43%; }
	.dm-foot { flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; min-height: 0; }
	.dm-done { flex-basis: 100%; order: -1; font-size: 14px; }
	.dm-foot .nh-btn { flex: 1 1 0; padding: 16px 12px; }
	.dm-foot [data-demo-next] { flex: 0 0 179px; padding: 12px 18px; font-size: 15px; }
	.dm[data-current="5"] .dm-spacer { display: none; }
	.dm-call--desk { display: none; }
	.dm-call--mob { display: flex; }
	.dm[data-current="4"] .dm-foot, .dm[data-current="5"] .dm-foot { padding-bottom: 50px; } /* room for the callout under the button */
}

/* @stage-css */
/* ── stage: picker ── */
/* Demo stage 1 — Realm picker (Figma "Realm picker" 79:5154 / "Realm picker · Mobile" 81:5163). */
.dm-picker { --pd: 0ms; --pe: cubic-bezier(0, 0, .58, 1); --acc: #8b5cf6; --acc-dk: #7c3aed; width: 1200px; height: 920px; background: #07061a; border: 1px solid #3a3466; border-radius: 24px; overflow: hidden; color: #fff; user-select: none; touch-action: pan-y; }
.dm-picker--m { width: 350px; height: 800px; border-radius: 20px; }
.dm-picker .pk-t { transition: left var(--pd) var(--pe), top var(--pd) var(--pe), width var(--pd) var(--pe), height var(--pd) var(--pe), transform var(--pd) var(--pe), opacity var(--pd) var(--pe), background-color var(--pd) var(--pe), border-color var(--pd) var(--pe), box-shadow var(--pd) var(--pe), color var(--pd) var(--pe); }
.dm-picker .pk-abs { position: absolute; }

/* Backdrop */
.dm-picker .pk-bg { position: absolute; left: -1px; top: -1px; width: 1200px; height: 920px; opacity: 0; }
.dm-picker--m .pk-bg { width: 350px; height: 800px; }
.dm-picker .pk-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-picker .pk-bg::after { content: ""; position: absolute; inset: 0; background: var(--ov); }
.dm-picker .pk-bg.is-on { opacity: 1; }
.dm-picker .pk-tint { position: absolute; left: -1px; top: -1px; width: 100%; height: 100%; background: var(--acc); mix-blend-mode: color; opacity: .28; }
.dm-picker .pk-glow { position: absolute; left: 109px; top: 559px; width: 980px; height: 300px; border-radius: 50%; background: var(--acc); opacity: .38; filter: blur(75px); }
.dm-picker--m .pk-glow { left: -36px; top: 469px; width: 420px; height: 260px; filter: blur(55px); }
.dm-picker .pk-shade { position: absolute; left: -1px; top: -1px; width: 100%; height: 180px; background: linear-gradient(180deg, rgba(7, 6, 26, .85), rgba(7, 6, 26, 0)); pointer-events: none; }
.dm-picker .pk-spark { position: absolute; border-radius: 50%; box-shadow: 0 0 6px rgba(167, 139, 250, .8); opacity: var(--o1); animation: dm-pk-spark 2.4s cubic-bezier(.42, 0, .58, 1) infinite alternate; }
@keyframes dm-pk-spark { from { transform: translate(0, 0); opacity: var(--o1); } to { transform: translate(var(--dx), var(--dy)); opacity: var(--o2); } }

/* Header (hidden in the demo: Figma Header=false) */
.dm-picker .pk-head { display: none; }
.dm-picker[data-header] .pk-head { display: block; }
.dm-picker .pk-title { position: absolute; left: 447.5px; top: 33px; font-weight: 700; font-size: 34px; white-space: nowrap; }
.dm-picker .pk-subtitle { position: absolute; left: 369.5px; top: 81px; font-size: 14px; color: #a7a3c2; white-space: nowrap; }
.dm-picker .pk-tokens { position: absolute; left: 1020px; top: 29px; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.dm-picker .pk-tokens small { font-weight: 400; font-size: 13px; color: var(--muted); }
.dm-picker .pk-tokens svg { width: 20px; height: 20px; }
.dm-picker .pk-hint { position: absolute; left: 23px; top: 29px; display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(11, 10, 24, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-weight: 500; font-size: 13px; color: #e4e1f5; white-space: nowrap; }
.dm-picker--m .pk-title { left: 62px; top: 59px; font-size: 24px; }
.dm-picker--m .pk-tokens { left: 155px; top: 11px; }
.dm-picker--m .pk-hint { left: 20px; top: 740px; gap: 7px; padding: 5px 12px 5px 10px; font-size: 11.5px; }
.dm-picker .pk-swipe { position: relative; width: 30px; height: 18px; flex-shrink: 0; }
.dm-picker .pk-swipe i { position: absolute; display: block; }
.dm-picker .pk-swipe .tr { left: 4px; top: 8px; width: 22px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 1px; }
.dm-picker .pk-swipe .tl { left: 4px; top: 8px; width: 2px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(191, 168, 255, 0), #bfa8ff); animation: dm-pk-trail 2.2s infinite; }
.dm-picker .pk-swipe .fg { left: 2px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(140, 92, 245, .9); animation: dm-pk-finger 2.2s infinite; }
@keyframes dm-pk-finger { 0%, 22.7% { left: 2px; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 54.5%, 68.2% { left: 18px; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 100% { left: 2px; } }
@keyframes dm-pk-trail { 0%, 22.7% { left: 4px; width: 2px; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 54.5%, 68.2% { left: 6px; width: 14px; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 100% { left: 4px; width: 2px; } }

/* Connector, pill, dots */
.dm-picker .pk-conn { position: absolute; left: 598px; top: 493px; width: 2px; height: 72px; background: var(--acc); }
.dm-picker--m .pk-conn { left: 173px; top: 399px; height: 52px; }
.dm-picker .pk-pill { position: absolute; left: 50%; top: 513px; padding: 8px 15px; border-radius: 99px; background: rgba(11, 10, 24, .92); border: 1px solid #4a4570; font-weight: 600; font-size: 10.5px; letter-spacing: 1.26px; color: #d9d6f0; white-space: nowrap; transform: translateX(-50%); }
.dm-picker--m .pk-pill { top: 413px; padding: 6px 12px; font-size: 9.5px; letter-spacing: 1.14px; }
.dm-picker .pk-dots { position: absolute; left: 559px; top: 897px; display: flex; gap: 8px; }
.dm-picker--m .pk-dots { left: 134px; top: 777px; }
.dm-picker .pk-dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: #4a4570; }
.dm-picker .pk-dots i.is-on { width: 24px; background: var(--acc); }

/* Realm cards (base = center size 300×370; side slots scale via transform) */
.dm-picker .pk-realm { position: absolute; left: 0; top: 0; width: 300px; height: 370px; padding: 0; border: 1px solid #3a3466; border-radius: 18px; background: #0b0a18; overflow: hidden; transform-origin: 0 0; text-align: left; color: #fff; font: inherit; cursor: pointer; }
.dm-picker .pk-realm.is-center { border: 2px solid var(--acc); box-shadow: 0 0 40px var(--acc-glow); cursor: grab; }
.dm-picker .pk-realm.is-locked { background: #121022; }
.dm-picker .pk-realm.is-locked.is-center { border-color: #5b5875; box-shadow: none; }
.dm-picker .pk-realm .art { position: absolute; left: 23px; top: 22px; width: 250px; height: 244px; }
.dm-picker .pk-realm .art img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.dm-picker .pk-realm .art .masked { -webkit-mask: var(--retro-mask) center / 100% 100% no-repeat; mask: var(--retro-mask) center / 100% 100% no-repeat; }
.dm-picker .pk-realm .art .vec { left: 30px; top: 20px; width: 190px; height: 190px; }
.dm-picker .pk-arrow { z-index: 4; }
.dm-picker .pk-arrow.is-sm { z-index: 8; }
.dm-picker .pk-cta, .dm-picker .pk-note, .dm-picker .pk-dots, .dm-picker .pk-head { z-index: 9; }
.dm-picker .pk-cta > span { display: flex; align-items: center; gap: 8px; }
.dm-picker .pk-cta > span[hidden] { display: none; }
.dm-picker .pk-realm .shadow { position: absolute; left: 56.25px; top: 234px; width: 137.5px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .45), rgba(139, 92, 246, 0)); opacity: 0; }
.dm-picker .pk-realm.is-center .shadow { opacity: 1; animation: dm-pk-shadow 1.8s cubic-bezier(.42, 0, .58, 1) infinite alternate; }
.dm-picker .pk-realm.is-center .art .float { animation: dm-pk-float 1.8s cubic-bezier(.42, 0, .58, 1) infinite alternate; }
@keyframes dm-pk-float { to { transform: translateY(-10px); } }
@keyframes dm-pk-shadow { to { transform: scaleX(.818); background: radial-gradient(closest-side, rgba(139, 92, 246, .25), rgba(139, 92, 246, 0)); } }
.dm-picker .pk-realm .meta { position: absolute; left: 22px; top: 290px; display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: #b9b4d6; white-space: nowrap; }
.dm-picker .pk-realm .swords { width: 16px; height: 16px; background: var(--acc); -webkit-mask: var(--swords) center / 100% 100% no-repeat; mask: var(--swords) center / 100% 100% no-repeat; }
.dm-picker .pk-realm .ttl { position: absolute; left: 22px; top: 316px; font-weight: 700; font-size: 24px; white-space: nowrap; }
.dm-picker .pk-badge { position: absolute; display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--acc-dk); font-weight: 600; color: #fff; white-space: nowrap; }
.dm-picker .pk-realm .pk-badge { left: 12px; top: 12px; font-size: 12px; }
.dm-picker .pk-badge img { width: 12px; height: 12px; }
.dm-picker .pk-realm .lock { position: absolute; left: 120px; top: 90px; width: 56px; height: 56px; border-radius: 28px; background: rgba(11, 10, 24, .9); border: 1px solid #77729a; }
.dm-picker .pk-realm .lock img { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; }
.dm-picker .pk-realm .cost { position: absolute; left: 50%; top: 158px; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; background: rgba(11, 10, 24, .92); border: 1px solid #4a4570; font-weight: 600; font-size: 14px; white-space: nowrap; transform: translateX(-50%); }
.dm-picker .pk-realm .cost svg { width: 16px; height: 16px; }
.dm-picker .pk-realm .new { position: absolute; left: 241px; top: 12px; padding: 3px 8px; border-radius: 6px; background: #14532d; font-weight: 600; font-size: 11px; color: #4ade80; }
.dm-picker .pk-realm .soon { position: absolute; left: 50%; top: 129px; padding: 6px 12px; border-radius: 99px; background: rgba(11, 10, 24, .92); border: 1px solid #4a4570; font-weight: 600; font-size: 13px; white-space: nowrap; transform: translateX(-50%); }

/* Dungeon cards (base = center size 250×206) */
.dm-picker .pk-dg { position: absolute; left: 0; top: 0; width: 250px; height: 206px; padding: 0; border: 1px solid #2a2550; border-radius: 14px; background: #0f0d24; overflow: hidden; transform-origin: 0 0; text-align: left; color: #fff; font: inherit; cursor: pointer; }
.dm-picker .pk-dg.is-center { border: 2px solid var(--acc); box-shadow: 0 0 32px var(--acc-glow2); cursor: grab; }
.dm-picker .pk-dg .art { position: absolute; left: 6px; top: 6px; width: 234px; height: 108px; border-radius: 10px; background: #17142e; overflow: hidden; }
.dm-picker .pk-dg .art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-picker .pk-dg .q { position: absolute; left: 106px; top: 6px; font-weight: 700; font-size: 40px; color: #7f74c9; }
.dm-picker .pk-dg .shade { position: absolute; left: 0; top: 40px; width: 100%; height: 68px; background: linear-gradient(180deg, rgba(15, 13, 36, 0), rgba(15, 13, 36, .92)); }
.dm-picker .pk-dg .nm { position: absolute; left: 12px; top: 75px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.dm-picker .pk-dg.is-unx .nm { top: 77px; font-size: 16px; }
.dm-picker .pk-dg .pk-badge { left: 8px; top: 8px; font-size: 10.5px; }
.dm-picker .pk-dg .pk-badge img { width: 11px; height: 11px; }
.dm-picker .pk-dg .shine { position: absolute; left: -140px; top: -50px; width: 70px; height: 220px; transform: rotate(25deg); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); display: none; }
.dm-picker .pk-dg.is-center .shine { display: block; animation: dm-pk-shine 2.7s infinite; }
@keyframes dm-pk-shine { 0%, 59.26% { left: -140px; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 100% { left: 300px; } }
.dm-picker .pk-dg .trk, .dm-picker .pk-dg .fill { position: absolute; left: 10px; top: 126px; height: 6px; border-radius: 3px; }
.dm-picker .pk-dg .trk { width: 200px; background: #2a2650; }
.dm-picker .pk-dg .fill { background: var(--dacc); }
.dm-picker .pk-dg .chest { position: absolute; left: 220px; top: 122px; width: 14px; height: 14px; }
.dm-picker .pk-dg .prog { position: absolute; left: 10px; top: 140px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.dm-picker .pk-dg .reveal { position: absolute; left: 10px; top: 133px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a7a3c2; white-space: nowrap; }
.dm-picker .pk-dg .div { position: absolute; left: 10px; top: 164px; width: 226px; height: 1px; background: #2a2550; }
.dm-picker .pk-dg .row { position: absolute; top: 176px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9c5e0; white-space: nowrap; }
.dm-picker .pk-dg .row img, .dm-picker .pk-dg .reveal img { width: 13px; height: 13px; }
.dm-picker .pk-dg .row.l { left: 10px; }
.dm-picker .pk-dg .row.r { right: 10px; }

/* Locked dungeons (Elemental) */
.dm-picker .pk-lockd { position: absolute; width: 170px; height: 120px; border-radius: 12px; background: rgba(13, 11, 31, .7); border: 1px dashed #3a3466; opacity: 0; pointer-events: none; }
.dm-picker .pk-lockd b { position: absolute; left: 75.5px; top: 23px; font-weight: 700; font-size: 32px; color: #5b5680; }
.dm-picker .pk-lockd img { position: absolute; left: 78px; top: 75.8px; width: 12px; height: 12px; }
.dm-picker--m .pk-lockd { width: 72px; height: 92px; }
.dm-picker--m .pk-lockd b { left: 28px; top: 17.4px; font-size: 25px; }
.dm-picker--m .pk-lockd img { left: 29px; top: 57.9px; }

/* Arrows with tap pulse */
.dm-picker .pk-arrow { position: absolute; width: 44px; height: 44px; padding: 0; border-radius: 22px; background: rgba(11, 10, 24, .85); border: 1px solid #4a4570; cursor: pointer; }
.dm-picker .pk-arrow.is-sm { width: 40px; height: 40px; border-radius: 20px; }
.dm-picker .pk-arrow img { position: absolute; left: 11px; top: 11px; width: 20px; height: 20px; }
.dm-picker .pk-arrow.is-sm img { left: 10px; top: 10px; width: 18px; height: 18px; }
.dm-picker--m .pk-arrow img { left: 13px; top: 13px; width: 16px; height: 16px; }
.dm-picker .pk-arrow .ring { position: absolute; inset: -1px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--acc); background: rgba(140, 92, 245, .22); box-shadow: 0 0 14px rgba(168, 140, 255, .9); animation: dm-pk-pulse 1.45s infinite; pointer-events: none; }
@keyframes dm-pk-pulse { 0%, 24.1% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(0, 0, .58, 1); } 100% { transform: scale(1.59); opacity: 0; } }

/* CTA + note */
.dm-picker .pk-cta { position: absolute; left: 50%; top: 803px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border: 0; border-radius: 12px; background: var(--acc-dk); box-shadow: 0 0 24px var(--acc-glow3); font: inherit; font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; cursor: pointer; transform: translateX(-50%); }
.dm-picker--m .pk-cta { left: 15px; top: 681px; width: 318px; transform: none; }
.dm-picker .pk-cta img, .dm-picker .pk-cta svg { width: 16px; height: 16px; }
.dm-picker .pk-cta.is-short { background: #25213f; box-shadow: none; color: #8c87b0; cursor: default; }
.dm-picker .pk-cta.is-short svg { opacity: .4; }

/* "Enter dungeon" starts the whole game, so once the cards have dealt in it pulses, a hand taps it
   and a "Click to enter" callout points at it (is-call, set by the stage until the visitor enters).
   One 2.6s loop: the hand arrives, taps at 26%, the ring spreads and a sheen crosses the button. */
/* Invisible click target for GTM's real_selected tag (see the picker stage). */
.dm-picker .pk-cta .pk-cta__gtm { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; }
.dm-picker .pk-cta__sheen, .dm-picker .pk-cta__burst, .dm-picker .pk-cta__tap, .dm-picker .pk-cta__call { position: absolute; display: block; font-style: normal; pointer-events: none; }
.dm-picker .pk-cta__sheen { inset: 0; border-radius: inherit; overflow: hidden; }
.dm-picker .pk-cta__sheen::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -40%; width: 26%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); transform: skewX(-20deg); opacity: 0; }
.dm-picker .pk-cta__burst { left: calc(100% - 36px); top: 12px; width: 24px; height: 24px; opacity: 0; }
.dm-picker .pk-cta__tap { left: calc(100% - 37px); top: 22px; width: 30px; height: 34px; opacity: 0; transform-origin: 42% 4%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.dm-picker .pk-cta .pk-cta__burst svg, .dm-picker .pk-cta .pk-cta__tap svg { width: 100%; height: 100%; }
.dm-picker .pk-cta__call { left: calc(100% + 6px); top: -30px; display: flex; align-items: flex-start; gap: 4px; color: color-mix(in srgb, var(--acc) 45%, #fff); opacity: 0; transition: opacity .4s var(--ease-out) .5s; }
.dm-picker .pk-cta .pk-cta__call svg { width: 100px; height: 56px; flex: none; filter: drop-shadow(0 0 6px var(--acc)); }
.dm-picker .pk-cta__call b { margin-top: -12px; font-family: "Chakra Petch", "DM Sans", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 2.2px; text-transform: uppercase; color: #fff; text-shadow: 0 0 14px var(--acc), 0 0 2px var(--acc); white-space: nowrap; }
.dm-picker .pk-cta.is-call { animation: dm-pk-ring 2.6s .6s infinite; }
.dm-picker .pk-cta.is-call .pk-cta__call { opacity: 1; animation: dm-pk-nudge 1.3s var(--ease-io) 1s infinite alternate; }
.dm-picker .pk-cta.is-call .pk-cta__tap { animation: dm-pk-tap 2.6s var(--ease-io) .6s infinite; }
.dm-picker .pk-cta.is-call .pk-cta__burst { animation: dm-pk-burst 2.6s var(--ease-out) .6s infinite; }
.dm-picker .pk-cta.is-call .pk-cta__sheen::before { animation: dm-pk-sheen 2.6s var(--ease-io) .6s infinite; }
.dm-picker .pk-cta:hover .pk-cta__tap, .dm-picker .pk-cta:hover .pk-cta__burst, .dm-picker .pk-cta:focus-visible .pk-cta__tap { animation: none; opacity: 0; }
@keyframes dm-pk-ring { 0%, 26% { box-shadow: 0 0 24px var(--acc-glow3), 0 0 0 0 color-mix(in srgb, var(--acc) 85%, transparent); } 64%, 100% { box-shadow: 0 0 24px var(--acc-glow3), 0 0 0 16px color-mix(in srgb, var(--acc) 0%, transparent); } }
@keyframes dm-pk-nudge { to { transform: translateX(-7px); } }
@keyframes dm-pk-tap { 0% { opacity: 0; transform: translate(18px, 22px); } 16% { opacity: 1; transform: translate(0, 0); } 26% { transform: scale(.84); } 34% { transform: scale(1); } 72% { opacity: 1; transform: translate(0, 0); } 90%, 100% { opacity: 0; transform: translate(12px, 16px); } }
@keyframes dm-pk-burst { 0%, 26% { opacity: 0; transform: scale(.6); } 32% { opacity: 1; } 48%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes dm-pk-sheen { 0%, 40% { left: -40%; opacity: 0; } 42% { opacity: 1; } 70%, 100% { left: 115%; opacity: 0; } }
.dm-picker--m .pk-cta__call { left: 50%; top: calc(100% + 9px); align-items: center; gap: 6px; transform: translateX(-50%); }
.dm-picker--m .pk-cta .pk-cta__call svg { width: 15px; height: 15px; }
.dm-picker--m .pk-cta__call b { margin: 0; font-size: 14px; letter-spacing: 1.8px; }
.dm-picker--m .pk-cta.is-call .pk-cta__call { animation-name: dm-pk-nudge-up; }
.dm-picker .pk-cta.is-call .pk-cta__call b, .dm-picker .pk-cta.is-call .pk-cta__call svg { animation: dm-call-flash 1.4s var(--ease-io) 1s infinite; }
@keyframes dm-pk-nudge-up { from { transform: translateX(-50%); } to { transform: translate(-50%, -4px); } }
@media (prefers-reduced-motion: reduce) {
	.dm-picker .pk-cta.is-call, .dm-picker .pk-cta.is-call .pk-cta__call, .dm-picker .pk-cta.is-call .pk-cta__tap, .dm-picker .pk-cta.is-call .pk-cta__burst, .dm-picker .pk-cta.is-call .pk-cta__sheen::before { animation: none; }
	.dm-picker .pk-cta.is-call .pk-cta__tap { opacity: 1; }
}
.dm-picker .pk-note { position: absolute; left: 50%; top: 865px; display: flex; gap: 4px; font-size: 12px; color: #a7a3c2; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.dm-picker .pk-note.is-short { color: #c9c5e0; }
.dm-picker--m .pk-note { top: 741px; }
.dm-picker--m .pk-note.is-short { font-size: 11.5px; }

.dm-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-picker [data-hidden] { pointer-events: none; }

/* ── stage: work ── */
/* Demo step 2 "Do the work" — Figma Journey work 40:3195 / Journey work · Mobile 64:4073 */
.dm-work { width: 1120px; height: 478px; background: var(--app-bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 90px -30px color-mix(in srgb, var(--btn) 50%, transparent); color: var(--app-ink); }
.dm-work--m { width: 350px; height: 442px; }
.dm-work [data-realm-img] { display: none; }
.dm-work[data-realm="futuristic"] [data-realm-img="futuristic"],
.dm-work[data-realm="minimal"] [data-realm-img="minimal"],
.dm-work[data-realm="retro"] [data-realm-img="retro"] { display: block; }

/* Top bar */
.dm-work__top { position: absolute; left: 0; top: 0; width: 100%; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--hud); overflow: hidden; }
.dm-work--m .dm-work__top { gap: 8px; padding: 0 12px; }
.dm-work__logo { width: 24px; height: 24px; }
.dm-work__wordmark { font-size: 17px; letter-spacing: 1.02px; color: #fff; white-space: nowrap; }
.dm-work__wordmark b { font-weight: 800; color: #9d7bff; }
.dm-work__spacer { flex: 1 0 0; }
.dm-work__tokens { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-weight: 600; font-size: 13px; color: #fff; }
.dm-work__hud { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: border-color var(--d, 0ms) var(--e, ease), box-shadow var(--d, 0ms) var(--e, ease), outline-color var(--d, 0ms) var(--e, ease); outline: .5px solid transparent; }
.dm-work__hud.is-hot { border-color: var(--accent); outline-color: var(--accent); box-shadow: 0 0 30px 2px var(--accent); }
.dm-work__island, .dm-work__hudchest { position: relative; width: 32px; height: 26px; }
.dm-work__hudchest { width: 30px; }
.dm-work__island img, .dm-work__hudchest img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.dm-work__island img.is-cover { object-fit: cover; }
.dm-work__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .15); }
.dm-work__portal { width: 18px; height: 26px; border-radius: 9px 9px 3px 3px; border: 1px solid rgba(201, 160, 255, .8); background: linear-gradient(180deg, #ff6bf2, #451a99); box-shadow: 0 0 12px rgba(191, 102, 255, .8); }
.dm-work__track { position: relative; width: 224px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .88); }
.dm-work--m .dm-work__track { width: 96px; }
.dm-work__bar { left: 0; top: 0; width: 134px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #5c21d6, #9e7aeb); }
.dm-work--m .dm-work__bar { width: 58px; }
.dm-work__bar.is-glow { box-shadow: 0 0 16px 1px var(--accent); }
.dm-work__flash { left: 0; top: 0; width: 100%; height: 12px; border-radius: 6px; background: #fff; opacity: 0; }
.dm-work__spark { left: 125px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #ff4d8d; opacity: 0; }
.dm-work--m .dm-work__spark { left: 49px; }
.dm-work__avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 0 transparent; transition: box-shadow var(--d, 0ms) var(--e, ease); }
.dm-work__avatar img { width: 38px; height: 38px; border-radius: 50%; }
.dm-work__avatar.is-hot { box-shadow: 0 0 0 2px var(--accent), 0 0 14px var(--accent); }

/* Body */
.dm-work__body { position: absolute; left: 0; top: 58px; width: 100%; height: 418px; }
.dm-work--m .dm-work__body { height: 382px; }
.dm-work__side { position: absolute; left: 0; top: 0; width: 224px; height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--app-side); border-right: 1px solid var(--app-line); font-size: 13px; }
.dm-work__ws { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px 6px; font-weight: 700; font-size: 14px; }
.dm-work__ws i { font-style: normal; width: 22px; height: 22px; border-radius: 5px; background: var(--btn); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: var(--btn-ink); }
.dm-work__trial { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 5px; background: color-mix(in srgb, var(--btn) 16%, transparent); font-weight: 700; font-size: 10px; }
.dm-work__trialrow { display: flex; justify-content: space-between; letter-spacing: .6px; }
.dm-work__trialrow span:last-child { letter-spacing: 0; color: var(--accent); }
.dm-work__trialbar { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--app-muted) 34%, transparent); overflow: hidden; }
.dm-work__trialbar span { display: block; width: 26px; height: 3px; background: var(--btn); }
.dm-work__nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; white-space: nowrap; }
.dm-work__nav i { width: 8px; height: 8px; border-radius: 3px; }
.dm-work__nav.is-active { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.dm-work__count { margin-left: auto; padding: 1px 6px; border-radius: 99px; background: var(--btn); font-size: 11px; color: var(--btn-ink); }
.dm-work__projects { padding: 12px 0 4px 6px; font-weight: 700; }

.dm-work__main { position: absolute; left: 224px; top: 0; width: 894px; height: 100%; padding: 18px 20px 22px; }
.dm-work--m .dm-work__main { left: 0; width: 100%; padding: 14px 14px 22px; }
.dm-work__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.dm-work__title { font-weight: 800; font-size: 26px; letter-spacing: -.52px; }
.dm-work--m .dm-work__title { font-size: 22px; letter-spacing: -.44px; }
.dm-work__chip { display: flex; gap: 6px; padding: 5px 10px; border: 1px solid var(--app-line); border-radius: 5px; font-size: 12px; color: var(--app-muted); white-space: nowrap; }
.dm-work__chip b { font-weight: 700; color: var(--app-ink); }
.dm-work__toggle { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--app-line); border-radius: 999px; }
.dm-work__toggle span { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.dm-work__toggle span:first-child { background: var(--btn); }
.dm-work__search { width: 170px; height: 36px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--app-line); border-radius: 12px; font-size: 13px; color: var(--app-muted); }
.dm-work__add { height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 12px; background: var(--btn); font-weight: 700; font-size: 14px; color: var(--btn-ink); }
.dm-work__thead { display: flex; align-items: center; gap: 8px; padding: 0 6px 8px; border-bottom: 1px solid var(--app-line); font-size: 11px; color: var(--app-muted); }
.dm-work__thead span:first-child { width: 40px; }
.dm-work__thead span:nth-child(2) { flex: 1 0 0; }
.dm-work__c--proj { width: 132px; display: flex; justify-content: center; text-align: center; }
.dm-work__c--asg { width: 54px; display: flex; justify-content: center; text-align: center; }
.dm-work__c--size { width: 50px; display: flex; justify-content: center; text-align: center; }
.dm-work__c--due { width: 76px; text-align: center; font-size: 12px; color: var(--app-muted); }
.dm-work__thead .dm-work__c--due { font-size: 11px; }

.dm-work__row, .dm-work__skel { left: 20px; width: 854px; height: 54px; }
.dm-work--m .dm-work__row, .dm-work--m .dm-work__skel { left: 14px; width: 320px; }
.dm-work__row { display: flex; align-items: center; gap: 8px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--app-line); border-radius: 0; background: transparent; text-align: left; opacity: 0; font: inherit; color: inherit; }
.dm-work__row.is-focus { background: color-mix(in srgb, var(--btn) 8%, transparent); border: 1px solid color-mix(in srgb, var(--btn) 45%, transparent); border-radius: 10px; }
button.dm-work__row:not([disabled]) { cursor: pointer; }
button.dm-work__row:focus-visible, .dm-work__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-work__skel i { position: absolute; background: rgba(255, 255, 255, .07); }
.dm-work__check { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dm-work__box { position: relative; width: 19px; height: 19px; border: 1.6px solid var(--app-muted); border-radius: calc(5px * var(--rk, 1)); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.dm-work__row.is-focus .dm-work__box { background: color-mix(in srgb, var(--btn) 10%, transparent); border: 2px solid var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent); }
.dm-work__row.is-done .dm-work__box { background: var(--btn); border-color: var(--btn); box-shadow: none; }
.dm-work__box svg { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; opacity: 0; transition: opacity .2s; }
.dm-work__row.is-done .dm-work__box svg { opacity: 1; }
.dm-work__pulse { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border: 2.5px solid var(--accent); border-radius: calc(10px * var(--rk, 1)); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 90%, transparent)); pointer-events: none; transition: opacity .3s; }
.dm-work__row.is-done .dm-work__pulse { opacity: 0; }
.dm-work__rmain { flex: 1 0 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
.dm-work__name { font-size: 14px; color: var(--app-ink); white-space: nowrap; transition: color .3s; }
.dm-work--m .dm-work__name { flex: 1 0 0; min-width: 0; white-space: normal; }
.dm-work__row.is-done .dm-work__name { color: var(--app-muted); }
.dm-work__tags { margin-left: auto; display: flex; gap: 6px; }
.dm-work__tag { padding: 3px 8px; border-radius: calc(999px * var(--rk, 1)); background: var(--chip); border: 1px solid var(--app-line); font-size: 11px; color: var(--chip-ink); white-space: nowrap; }
.dm-work__pill { padding: 4px 10px; border-radius: calc(999px * var(--rk, 1)); background: var(--pill); font-weight: 700; font-size: 11px; color: var(--pill-ink); white-space: nowrap; }
.dm-work__av { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; color: #fff; }
.dm-work__size { min-width: 26px; height: 26px; padding: 0 6px; border-radius: calc(999px * var(--rk, 1)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; }
.dm-work__note { left: 20px; padding-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--app-muted); white-space: nowrap; opacity: 0; }
.dm-work--m .dm-work__note { left: 14px; }

/* Overlay · Earned (shown from Level up on) */
.dm-work__overlay { left: -1px; top: 57px; width: 1120px; height: 420px; background-color: rgba(5, 3, 16, 0); pointer-events: none; overflow: hidden; }
.dm-work--m .dm-work__overlay { width: 350px; height: 384px; }
.dm-work__overlay.is-live { pointer-events: auto; }
.dm-work__ovglow { left: 190px; top: -160px; width: 740px; height: 740px; opacity: 0; }
.dm-work--m .dm-work__ovglow { left: -38.45px; top: -23.45px; width: 426.9px; height: 426.9px; }
.dm-work__oveyebrow { left: 0; width: 100%; top: 60.5px; text-align: center; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2.6px; color: #c9b6ff; opacity: 0; }
.dm-work--m .dm-work__oveyebrow { top: 78.5px; }
.dm-work__ovheadline { left: 0; width: 100%; top: 89.5px; text-align: center; font-weight: 800; font-size: 38px; letter-spacing: -.76px; color: #fff; white-space: nowrap; opacity: 0; }
.dm-work--m .dm-work__ovheadline { top: 107.5px; font-size: 24px; letter-spacing: -.48px; }
.dm-work__open { left: 490.5px; top: 342.5px; width: 139px; height: 53px; padding: 0; opacity: 0; }
.dm-work--m .dm-work__open { left: 105.5px; top: 288.5px; }
.dm-work__open[disabled] { cursor: default; }

/* Level FX burst, flying chest, hint, tap pulses */
.dm-work__fx { left: 1025px; top: 28px; width: 2px; height: 2px; }
.dm-work--m .dm-work__fx { left: 263px; }
.dm-work__burst { left: -4px; top: -4px; width: 10px; height: 10px; border: 1px solid #bba4ff; border-radius: 50%; opacity: 0; }
.dm-work__sparkdot { border-radius: 50%; opacity: 0; }
.dm-work__pop { left: 1011px; top: 17px; width: 30px; height: 24.55px; opacity: 0; filter: drop-shadow(0 0 0 rgba(187, 164, 255, 0)); }
.dm-work--m .dm-work__pop { left: 249px; }
.dm-work__pop img { width: 100%; height: 100%; object-fit: contain; }
.dm-work__hint { left: 462px; top: 168px; padding: 3px 9px; border-radius: 999px; background: var(--btn); font-weight: 600; font-size: 11px; color: var(--btn-ink); white-space: nowrap; opacity: 0; pointer-events: none; }
.dm-work--m .dm-work__hint { left: 26px; top: 105px; font-size: 10.5px; }
/* The hint chips glow on a loop (their opacity belongs to the scene); on phones an arrow points down at the checkbox. */
.dm-work__hint--call { display: flex; align-items: center; gap: 4px; animation: dm-hint-glow 1.4s var(--ease-io) infinite; }
.dm-work__hint-arrow { width: 9px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; --ny: 2px; animation: dm-call-nudge .7s var(--ease-io) infinite alternate; }
@keyframes dm-hint-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn) 0%, transparent); filter: brightness(1); } 50% { box-shadow: 0 0 14px 2px color-mix(in srgb, var(--btn) 75%, transparent); filter: brightness(1.25); } }
.dm-work__tap { border-radius: 10px; opacity: 0; pointer-events: none; }
.dm-work__tap::before { content: ""; position: absolute; inset: 0; border: 2.5px solid #bfa8ff; border-radius: 10px; filter: drop-shadow(0 0 7px rgba(168, 140, 255, .9)); }
.dm-work__tap.is-loop::before { animation: dm-work-tap 1.46s infinite; }
@keyframes dm-work-tap {
	0%, 24% { inset: 0; opacity: 1; border-width: 2.5px; border-radius: 10px; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
	99.3% { inset: -8px; opacity: 0; border-width: 2px; border-radius: 14px; }
	100% { inset: 0; opacity: 1; }
}
.dm-work__tap--task { left: 257.5px; top: 164.5px; width: 27px; height: 27px; }
.dm-work--m .dm-work__tap--task { left: 27.5px; top: 128.5px; }
.dm-work__tap--open { left: 489.5px; top: 381.5px; width: 139px; height: 53px; }
.dm-work--m .dm-work__tap--open { left: 104.5px; top: 327.5px; }
@media (prefers-reduced-motion: reduce) {
	.dm-work__tap.is-loop::before { animation: none; }
}

/* ── stage: boss ── */
/* Demo stage 3 — Boss fight (Figma set 41:2639, mobile 64:4363).
   Needs "Fira Sans Extra Condensed" 800 (reward name): add &family=Fira+Sans+Extra+Condensed:wght@800 to the page font URL. */
.dm-boss { width: 1120px; height: 568px; background: #0b0820; border: 1px solid rgba(139, 92, 246, .45); border-radius: 20px; box-shadow: 0 30px 90px -30px rgba(125, 59, 237, .5); overflow: hidden; color: #fff; }
.dm-boss--m { width: 350px; height: 538px; }
.dm-boss .a, .dm-boss .dm-bh, .dm-boss .dm-arena { position: absolute; }
.dm-boss button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dm-boss button:disabled { cursor: default; }
.dm-boss button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-boss img { display: block; max-width: none; }

/* Header */
.dm-boss .dm-bh { height: 51px; }
.dm-boss .dm-eyebrow { font-size: 12px; letter-spacing: 2.16px; color: #ff8fb3; line-height: normal; white-space: nowrap; }
.dm-boss .dm-title { margin-top: 4px; font-weight: 800; font-size: 24px; line-height: normal; color: #fff; white-space: nowrap; word-spacing: 0; }
.dm-boss--m .dm-title { font-size: 20px; }
.dm-boss .dm-hp { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 16px; line-height: normal; color: #ff8fb3; white-space: nowrap; }
.dm-boss--m .dm-hp { font-size: 13px; }
.dm-boss .dm-hpbar { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dm-boss .dm-hpfill { left: 0; top: 0; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #ff3d80, #ff7a59); }

/* Arena */
.dm-boss .dm-glow { border-radius: 50%; background: rgba(176, 75, 255, .35); }
.dm-boss .dm-chest img, .dm-boss .dm-art img, .dm-boss .dm-tgt img { position: absolute; }
.dm-boss .dm-chest img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dm-boss .dm-art img { left: -9.9%; top: -8.87%; width: 119.8%; height: 116.64%; }
.dm-boss .dm-tgt img { inset: 0; width: 100%; height: 100%; }
.dm-boss .dm-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #ff4d8d; opacity: 0; pointer-events: none; }
.dm-boss--m .dm-ring { border-width: 1.9px; }
.dm-boss .dm-tgt.is-live .dm-ring { animation: dm-boss-target 1.4s cubic-bezier(.42, 0, .58, 1) infinite; }
@keyframes dm-boss-target {
	0% { transform: scale(1); opacity: 1; }
	42.86%, 50% { transform: scale(1.344); opacity: .15; }
	92.86%, 100% { transform: scale(1); opacity: 1; }
}
.dm-boss .dm-dmg { font-family: "Chakra Petch", sans-serif; font-weight: 700; line-height: normal; color: #ff8fb3; white-space: nowrap; opacity: 0; }
.dm-boss .dm-tap { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: 12px; line-height: normal; color: rgba(255, 255, 255, .85); white-space: nowrap; opacity: 0; pointer-events: none; animation: dm-hint-glow 1.4s var(--ease-io) infinite; --btn: #f59e0b; }
.dm-boss .dm-tap__arrow { width: 10px; height: 13px; fill: none; stroke: #fcd34d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; --ny: -3px; animation: dm-call-nudge .7s var(--ease-io) infinite alternate; }

/* Reward reel */
.dm-boss .dm-reel { overflow: hidden; opacity: 0; }
.dm-boss .dm-fade { position: absolute; top: 0; bottom: 0; }
.dm-boss .dm-fade--l { left: 0; background: linear-gradient(90deg, #0b0820, rgba(11, 8, 32, 0)); }
.dm-boss .dm-fade--r { right: 0; background: linear-gradient(90deg, rgba(11, 8, 32, 0), #0b0820); }
.dm-boss .dm-card { position: absolute; top: 0; width: 132px; height: 176px; border: 1px solid var(--rc); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #241d45, #120e26); transition: opacity var(--d, 0ms) var(--e, ease), border-color var(--d, 0ms) var(--e, ease), box-shadow var(--d, 0ms) var(--e, ease); }
.dm-boss .dm-card .art { position: absolute; left: 5px; top: 9px; width: 120px; height: 142px; object-fit: contain; }
.dm-boss .dm-card .art.bg { left: -1px; top: -1px; width: 132px; height: 176px; object-fit: cover; }
.dm-boss .dm-card .shade { position: absolute; left: -1px; top: 119px; width: 132px; height: 56px; background: linear-gradient(180deg, rgba(11, 8, 32, 0), rgba(11, 8, 32, .95)); }
.dm-boss .dm-card .nm { position: absolute; left: 8px; top: 148px; font-weight: 700; font-size: 12px; line-height: normal; color: #fff; white-space: nowrap; }
.dm-boss .dm-card .bar { position: absolute; left: -1px; top: 172px; width: 132px; height: 3px; background: var(--r); }
.dm-boss .dm-card .rar { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 99px; background: rgba(14, 11, 28, .85); border: 1px solid var(--rb); font-weight: 700; font-size: 9px; line-height: normal; color: var(--r); white-space: nowrap; }
.dm-boss .dm-strip--m .dm-card { width: 96px; height: 128px; }
.dm-boss .dm-strip--m .dm-card .art { left: 3px; top: 7px; width: 88px; height: 100px; }
.dm-boss .dm-strip--m .dm-card .art.bg { left: -1px; top: -1px; width: 96px; height: 128px; }
.dm-boss .dm-strip--m .dm-card .shade { top: 83px; width: 96px; height: 44px; }
.dm-boss .dm-strip--m .dm-card .nm { left: 6px; top: 105px; font-size: 10px; }
.dm-boss .dm-strip--m .dm-card .bar { top: 124px; width: 96px; }
.dm-boss .dm-strip--m .dm-card .rar { left: 4px; top: 4px; padding: 1.5px 4.5px; font-size: 7.5px; }
.dm-boss .dm-strip.is-landed .dm-card:not(.is-win) { opacity: .32; }
.dm-boss .dm-strip.is-landed .dm-card.is-win { border: 2px solid #6669fe; box-shadow: 0 0 36px rgba(102, 105, 254, .7); }
.dm-boss .dm-sel { border: 3px solid #fff; border-radius: 16px; opacity: 0; pointer-events: none; transition: opacity var(--d, 0ms) var(--e, ease), border-color var(--d, 0ms) var(--e, ease); }
.dm-boss .dm-sel i { position: absolute; height: 6px; border-radius: 3px; background: #fff; transition: background-color var(--d, 0ms) var(--e, ease); }
.dm-boss .dm-sel.is-win { border-color: #6669fe; }
.dm-boss .dm-sel.is-win i { background: #6669fe; }

/* Reward */
.dm-boss .dm-rcopy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; opacity: 0; }
.dm-boss .dm-rcopy p { margin: 0; white-space: nowrap; line-height: normal; }
.dm-boss .dm-r-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: #b4adc9; }
.dm-boss .dm-r-congrats { font-weight: 700; font-size: 40px; color: #f4f2fa; }
.dm-boss .dm-r-type { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #b4adc9; }
.dm-boss .dm-r-rarity { padding: 3px 10px; border-radius: 7px; background: #6669fe; font-weight: 600; font-size: 15px; color: #fff; }
.dm-boss .dm-r-name { font-family: "Fira Sans Extra Condensed", "DM Sans", sans-serif; font-weight: 800; font-size: 44px; color: #f4f2fa; }
.dm-boss .dm-r-desc { width: 440px; font-size: 16px; color: #b4adc9; white-space: normal; }
.dm-boss .dm-r-btns { position: relative; flex: none; }
.dm-boss .dm-equip { display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #6b2af2; font-weight: 600; font-size: 18px; color: #fff; }
.dm-boss .dm-equip:not(:disabled):hover { background: #7c3aed; }
.dm-boss .dm-equipped { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; background: #2a2350; font-weight: 600; font-size: 18px; color: #c9b8f5; opacity: 0; }
.dm-boss .dm-rcopy--m { align-items: center; gap: 7px; text-align: center; }
.dm-boss .dm-rcopy--m .dm-r-eyebrow { font-size: 11px; letter-spacing: 1.6px; }
.dm-boss .dm-rcopy--m .dm-r-congrats { font-size: 26px; }
.dm-boss .dm-rcopy--m .dm-r-type { gap: 8px; font-size: 15px; }
.dm-boss .dm-rcopy--m .dm-r-rarity { padding: 2px 9px; font-size: 13px; }
.dm-boss .dm-rcopy--m .dm-r-name { font-size: 32px; }
.dm-boss .dm-rcopy--m .dm-r-desc { width: 300px; font-size: 14px; }
.dm-boss .dm-rcopy--m .dm-equip, .dm-boss .dm-rcopy--m .dm-equipped { font-size: 16px; }
.dm-boss .dm-rart { border: 2px solid rgba(102, 105, 254, .8); border-radius: 20px; box-shadow: 0 0 44px rgba(102, 105, 254, .55); opacity: 0; }
.dm-boss .dm-rart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.dm-boss .dm-pulse { border: 2.5px solid #bfa8ff; border-radius: 10px; filter: drop-shadow(0 0 7px rgba(168, 140, 255, .9)); opacity: 0; pointer-events: none; }
.dm-boss .dm-pulse.is-live { animation: dm-boss-tap 1.46s cubic-bezier(0, 0, .58, 1) infinite; }
@keyframes dm-boss-tap {
	0%, 23.97% { transform: scale(1); opacity: 1; border-width: 2.5px; }
	99.3% { transform: scale(1.07, 1.32); opacity: 0; border-width: 2px; }
	100% { transform: scale(1); opacity: 0; }
}

/* Footer */
.dm-boss .dm-status { margin: 0; font-weight: 700; font-size: 16px; line-height: normal; color: #fff; white-space: nowrap; }
.dm-boss--m .dm-status { white-space: normal; }
.dm-boss .dm-strikes { display: flex; gap: 8px; }
.dm-boss--m .dm-strikes { margin-top: 6px; transition: opacity .4s; }
.dm-boss .dm-strikes i { display: block; width: 28px; height: 10px; border-radius: 5px; background: #3ee6ff; transition: opacity .35s cubic-bezier(0, 0, .58, 1); }

@media (prefers-reduced-motion: reduce) {
	.dm-boss .dm-tgt.is-live .dm-ring, .dm-boss .dm-pulse.is-live { animation: none; }
	.dm-boss .dm-pulse.is-live { opacity: 1; }
}

/* ── stage: locker ── */
/* Demo stage 4 — Avatar builder (Figma 288:6255 desktop, 288:6953 mobile) */
.dm-locker { width: 1120px; height: 714px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.dm-locker__preview { border-radius: 20px; background: #0b0820; overflow: hidden; }
.dm-locker__layer { position: absolute; opacity: 0; transition: opacity .3s var(--ease-out); }
.dm-locker__layer.is-on { opacity: 1; }
.dm-locker.is-instant .dm-locker__layer, .dm-locker.is-instant .dm-locker__sel { transition: none; }
.dm-locker__bgimg { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-locker__skin { left: 90px; top: 40px; width: 260px; height: 400px; object-fit: contain; }
.dm-locker__pet { position: absolute; left: 286px; top: 306px; width: 140px; height: 140px; border-radius: 18px; background: rgba(11, 8, 32, .85); border: 1px solid rgba(255, 255, 255, .15); overflow: hidden; }
.dm-locker__pet .dm-locker__layer { left: 7px; top: 7px; width: 124px; height: 124px; object-fit: contain; }
.dm-locker__title { font-weight: 800; font-size: 26px; line-height: normal; color: var(--ink); white-space: nowrap; }
.dm-locker__sub { width: 574px; font-size: 15px; line-height: normal; color: var(--muted); }
.dm-locker__legend { width: 574px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dm-locker__legend-h, .dm-locker__label { font-size: 12px; letter-spacing: 1.92px; color: var(--accent); white-space: nowrap; line-height: normal; }
.dm-locker__tier { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; line-height: normal; white-space: nowrap; }
.dm-locker__tier img { width: 8px; height: 8px; }

.dm-locker__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 108px; height: 130px; cursor: pointer; }
.dm-locker__tile:disabled { cursor: default; }
.dm-locker__thumb { position: relative; display: block; width: 108px; height: 108px; border-radius: 14px; background: #0b0820; overflow: hidden; flex-shrink: 0; }
.dm-locker__ti { position: absolute; left: 6px; top: 6px; width: 96px; height: 96px; object-fit: contain; }
.dm-locker__ti--cover { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-locker__bar { position: absolute; left: 0; top: 105px; width: 100%; height: 3px; }
.dm-locker__sel { position: absolute; inset: 0; border: 3px solid #a78bfa; border-radius: 14px; opacity: 0; transition: opacity .3s var(--ease-out); }
.dm-locker__tile.is-sel .dm-locker__sel { opacity: 1; }
.dm-locker__rar { position: absolute; left: 6px; top: 6px; padding: 2.5px 7px; border-radius: 99px; background: rgba(14, 11, 28, .86); border: 1px solid; font-weight: 700; font-size: 9px; line-height: normal; white-space: nowrap; }
.dm-locker__new { position: absolute; left: 67px; top: 82px; padding: 2.5px 6px; border-radius: 99px; background: var(--btn); font-weight: 700; font-size: 9px; line-height: normal; letter-spacing: .54px; color: var(--btn-ink); }
.dm-locker__name { font-weight: 600; font-size: 12px; line-height: normal; color: var(--ink); white-space: nowrap; }
.dm-locker__tile:focus-visible { outline: none; }
.dm-locker__tile:focus-visible .dm-locker__thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Mobile: the step shows the component through a 350×560 scroll window. Figma crops out
   the component's 371–526px band (title, intro line, rarity legend), so the rows sit 155px higher. */
.dm-locker--m { width: 350px; height: 560px; background: var(--surface); border: 0; border-radius: 20px; overflow: hidden; }
.dm-locker--m::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 20px; pointer-events: none; }
.dm-locker__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 20px; }
.dm-locker__scroll::-webkit-scrollbar { display: none; }
.dm-locker__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dm-locker__card { position: relative; width: 350px; height: 847px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.dm-locker--m .dm-locker__skin { left: 40px; top: 24px; width: 190px; height: 290px; }
.dm-locker--m .dm-locker__pet { left: 192px; top: 212px; width: 110px; height: 110px; }
.dm-locker--m .dm-locker__pet .dm-locker__layer { left: 6px; top: 6px; width: 96px; height: 96px; }
.dm-locker--m .dm-locker__tile { gap: 5.16px; width: 92.88px; height: 111.04px; }
.dm-locker--m .dm-locker__thumb { width: 92.88px; height: 92.88px; border-radius: 12.04px; }
.dm-locker--m .dm-locker__ti { left: 5.16px; top: 5.16px; width: 82.56px; height: 82.56px; }
.dm-locker--m .dm-locker__ti--cover { left: 0; top: 0; width: 100%; height: 100%; }
.dm-locker--m .dm-locker__bar { top: 89.88px; }
.dm-locker--m .dm-locker__sel { border-width: 2.58px; border-radius: 12.04px; }
.dm-locker--m .dm-locker__rar { padding: 2.15px 6.02px; font-size: 7.74px; }
.dm-locker--m .dm-locker__new { left: 51.88px; top: 66.88px; }
.dm-locker--m .dm-locker__name { font-size: 10.32px; }

/* ── stage: board ── */
/* Demo step 5 — Leaderboard (Figma set 369:7030, mobile 516:2397) */
.dm-board { width: 1120px; height: 526px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); }
.dm-board p, .dm-board span, .dm-board img, .dm-board__tabs, .dm-board__cols, .dm-board__you { position: absolute; white-space: nowrap; line-height: normal; }
.dm-board .c { transform: translateX(-50%); }
.dm-board .m { color: var(--muted); }

.dm-board__title { left: 23px; top: 21px; font-weight: 800; font-size: 26px; letter-spacing: -.39px; }
.dm-board__vsep { left: 198px; top: 25px; width: 1px; height: 28px; background: var(--line); }
.dm-board__season { left: 215px; top: 26px; font-weight: 600; font-size: 18px; }
.dm-board__current { left: 303px; top: 30px; padding: 3px 8px; border-radius: 999px; background: var(--pill); font-weight: 600; font-size: 11px; color: var(--accent); }

.dm-board__tabs { left: 823px; top: 19px; display: flex; gap: 8px; }
.dm-board .dm-board__tab { position: relative; width: 132px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--chip); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color .4s var(--ease-io), border-color .4s var(--ease-io), color .4s var(--ease-io); }
.dm-board .dm-board__tab.is-on { background: var(--pill); border-color: var(--accent); color: var(--ink); cursor: default; }
.dm-board .dm-board__tab.is-call { border-color: var(--accent); color: var(--ink); animation: dm-tab-ring 1.6s var(--ease-out) infinite; }
@keyframes dm-tab-ring { 0%, 20% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 80%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } }
.dm-board .dm-board__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dm-board__section { left: 23px; top: 83px; font-weight: 700; font-size: 17px; }
.dm-board__cols { left: -1px; top: 115px; width: 1120px; height: 36px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.dm-board__cols span { top: 10px; }

.dm-board__you { left: 15px; top: 157px; width: 1088px; height: 62px; border-radius: 14px; background: var(--btn); box-shadow: 0 8px 24px color-mix(in srgb, var(--btn) 45%, transparent); color: var(--btn-ink); font-weight: 700; font-size: 15px; overflow: hidden; }
.dm-board__you span { top: 21px; }
.dm-board__you .dm-board__rank { font-size: 16px; }
.dm-board__you .dm-board__youav { left: 78px; top: 11px; width: 40px; height: 40px; object-fit: contain; }
.dm-board__you .dm-board__youname { font-weight: 600; }
.dm-board__you .dm-board__delta { top: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 11.5px; opacity: 0; }

.dm-board__toast { right: 23px; top: 85px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent); font-weight: 700; font-size: 13.5px; color: var(--ink); opacity: 0; }
.dm-board .dm-board__toast img { position: static; width: 14px; height: 9.33px; margin: -.83px -1px -.5px; }

.dm-board__row { left: -1px; width: 1120px; height: 54px; border-top: 1px solid var(--line); opacity: 0; }
.dm-board__row span { top: 17px; font-size: 14px; }
.dm-board__row .dm-board__badge { left: 39px; top: 9px; width: 40px; height: 34px; object-fit: contain; }
.dm-board__row .dm-board__rk { left: 50px; font-weight: 600; color: var(--muted); }
.dm-board__row .dm-board__av { left: 94px; top: 9px; width: 34px; height: 34px; object-fit: contain; }
.dm-board__row .dm-board__name { left: 140px; font-weight: 600; font-size: 14.5px; }

/* Mobile (350 × 420) */
.dm-board--m { width: 350px; height: 420px; }
.dm-board--m .dm-board__title { left: 15px; top: 17px; font-size: 18.72px; letter-spacing: -.28px; }
.dm-board--m .dm-board__season { left: 15px; top: 47px; font-size: 12.96px; }
.dm-board--m .dm-board__current { left: 80px; top: 47.6px; padding: 2.4px 6.4px; font-size: 8.8px; }
.dm-board--m .dm-board__cols { top: 79px; width: 350px; height: 24px; font-size: 9.375px; }
.dm-board--m .dm-board__cols span { top: 5px; }
.dm-board--m .dm-board__you { left: 7px; top: 105px; width: 334px; height: 52px; font-size: 13.5px; }
.dm-board--m .dm-board__you span { top: 17px; }
.dm-board--m .dm-board__you .dm-board__rank { font-size: 13.6px; }
.dm-board--m .dm-board__you .dm-board__youav { left: 48px; top: 9px; width: 34px; height: 34px; }
.dm-board--m .dm-board__you .dm-board__delta { top: 17.8px; padding: 1.7px 5.95px; font-size: 9.775px; }
.dm-board--m .dm-board__toast { right: 13px; top: 23px; gap: 6.4px; padding: 6.4px 11.2px 6.4px 9.6px; border-width: .8px; box-shadow: 0 0 17.6px color-mix(in srgb, var(--accent) 50%, transparent); font-size: 10.8px; }
.dm-board--m .dm-board__toast img { width: 11.2px; height: 7.47px; margin: -.67px -.8px -.4px; }
.dm-board--m .dm-board__row { width: 350px; height: 48px; }
.dm-board--m .dm-board__row span { top: 15px; font-size: 12.32px; }
.dm-board--m .dm-board__row .dm-board__badge { left: 14px; top: 9.4px; width: 32px; height: 27.2px; }
.dm-board--m .dm-board__row .dm-board__rk { left: 22px; top: 15.5px; font-size: 11.9px; }
.dm-board--m .dm-board__row .dm-board__av { left: 52px; top: 9.06px; width: 27.88px; height: 27.88px; }
.dm-board--m .dm-board__row .dm-board__name { left: 90px; top: 14.5px; font-size: 12.76px; }
.dm-board--m .dm-board__row .dm-board__rating { left: 238px; }
/* @stage-css-end */

/* Guidance loops stop for reduced motion (kept last so it wins over the stage rules above). */
@media (prefers-reduced-motion: reduce) {
	.dm-call.is-on b, .dm-call.is-on svg, .dm-work__hint--call, .dm-work__hint-arrow, .dm-boss .dm-tap, .dm-boss .dm-tap__arrow, .dm-board .dm-board__tab.is-call, .dm-picker .pk-cta.is-call .pk-cta__call b, .dm-picker .pk-cta.is-call .pk-cta__call svg { animation: none; }
}
