/* ภารกิจ - daily / weekly missions and the bounty board (client-debug/js/missions.js, src/map/missions.js,
   db-midgard/missions_db.yml; Noh 2026-11-06 21:54 "ทำมาให้หมดเลย"): its entries (the classic menu bar, the phone menu's
   tile) shown only once the server said it has the system (<html class="ms-sys">), their count while a reward waits
   (<html class="ms-claim">); the window - a guild's night board: dark glass cards with gold trim, the bounty a parchment
   WANTED poster pinned on it. The same look in every theme: its buttons and boxes under #win-mission (above the RO
   theme's own). Linked by client/index.html and client-debug/index.html after style.css. */

html:not(.ms-sys) .ms-entry, html:not(.ms-sys) .mh-grid [data-w="!mission"] { display: none !important; }
.ms-entry { position: relative; }
.ms-entry .ms-n:empty { display: none; }
/* the button beside the minimap (ui.js buildMapButtons, Noh 2026-11-06 23:41 "เอาไอคอน บนก็ได้นะ"): a gold tile, its count */
.sb-ic.sb-mission { border-color: #8a5a10; color: #fff; background: linear-gradient(#ffe7a3, #f0a92b 52%, #b8730f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(255, 250, 225, 0.6); }
#map-btns .map-btn.map-mission .ms-n { top: -3px; right: 7px; }
.ms-entry .ms-n { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; font: 700 10px/15px system-ui, sans-serif;
	font-style: normal; color: #fff; text-align: center; background: #ff3b3b; box-shadow: 0 0 0 1.5px #fff; pointer-events: none; }

/* the quest window's button to the missions (systems.js quest foot) */
.win-quest button.ms-qbtn { font-weight: 700; }
.win-quest .ms-qbtn .ms-tn { margin-left: 4px; }

#win-mission { --ms-gold: #ffd36b; --ms-amber: #ff9f3a; --ms-ink: #e9edff; --ms-dim: #aab3dc; --ms-line: rgba(150, 170, 255, 0.22); --ms-ok: #63e6a8; }
#win-mission .win-body { padding: 0; overflow: auto; background: #0b0f26; }
.ms { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; min-height: 300px; color: var(--ms-ink); font-size: 13px; line-height: 1.4;
	background: radial-gradient(ellipse 90% 60% at 50% -10%, #2b3a86 0%, rgba(43, 58, 134, 0) 70%), radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 159, 58, 0.14), rgba(255, 159, 58, 0) 70%),
		linear-gradient(180deg, #151b42 0%, #0c1029 100%); }
.ms::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
	background: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 9%, #fff, transparent), radial-gradient(1.4px 1.4px at 46% 6%, #ffe9b0, transparent),
		radial-gradient(1px 1px at 91% 31%, #cfd8ff, transparent), radial-gradient(1px 1px at 4% 52%, #fff, transparent), radial-gradient(1.2px 1.2px at 63% 3%, #fff, transparent); }
.ms > * { position: relative; }
.ms-loading { align-items: center; justify-content: center; }
.ms-wait { margin: 0; padding: 30px 12px; text-align: center; color: var(--ms-dim); }
.ms-loading .ms-wait::before { content: '★'; display: block; font-size: 28px; color: var(--ms-gold); animation: ms-spin 2.4s linear infinite; margin-bottom: 6px; }
.ms-svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-svg .f { fill: currentColor; fill-opacity: 0.22; }

/* ---- the header: the clock, the streak, the points ---- */
.ms-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ms-clock { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--ms-line); background: rgba(8, 11, 32, 0.6); white-space: nowrap; }
.ms-clock .ms-svg { width: 17px; height: 17px; color: var(--ms-gold); }
.ms-clock span { font-size: 12px; color: var(--ms-dim); }
.ms-left { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.ms-streak { justify-self: center; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 159, 58, 0.25);
	background: linear-gradient(90deg, rgba(255, 120, 40, 0.1), rgba(255, 200, 80, 0.06)); }
.ms-streak b { font-size: 13px; white-space: nowrap; color: #ffd9a8; }
.ms-fire { font-size: 17px; filter: grayscale(1) brightness(0.8); }
.ms-streak.on .ms-fire { filter: drop-shadow(0 0 6px rgba(255, 130, 30, 0.9)); animation: ms-flick 1.6s ease-in-out infinite; }
.ms-streak.on b { color: #ffe2b8; text-shadow: 0 0 10px rgba(255, 140, 40, 0.6); }
.ms-pips { display: flex; gap: 3px; }
.ms-pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 170, 80, 0.5); box-sizing: border-box; }
.ms-pips i.on { border-color: #ffb347; background: radial-gradient(circle at 40% 35%, #fff3c4, #ff9f3a 60%, #e0561c); box-shadow: 0 0 6px rgba(255, 140, 40, 0.8); }
.ms-pts { display: flex; align-items: baseline; gap: 5px; padding: 5px 12px; border-radius: 12px; border: 1px solid rgba(180, 140, 255, 0.35); background: linear-gradient(120deg, rgba(150, 110, 255, 0.22), rgba(90, 60, 200, 0.12)); white-space: nowrap; }
.ms-pts i { font-style: normal; color: #d8c4ff; }
.ms-pts b { font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ms-pts small { font-size: 11px; color: #cdbdf7; }
.ms-pts.ms-gain { animation: ms-gain 1.2s ease-out; }

/* ---- the tabs ---- */
.ms-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(5, 7, 22, 0.55); border: 1px solid var(--ms-line); }
#win-mission .ms .ms-tabs button { position: relative; flex: 1; height: auto; min-height: 0; padding: 7px 10px; border: 0; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ms-dim);
	background: none; box-shadow: none; text-shadow: none; }
#win-mission .ms .ms-tabs button.on { color: #2a1700; background: linear-gradient(180deg, #fff0c2, #ffd36b 50%, #f2a73a); box-shadow: 0 0 14px rgba(255, 190, 80, 0.35); }
#win-mission .ms .ms-tabs button:not(.on):hover { color: #fff; background: rgba(120, 130, 255, 0.14); }
.ms-tn { display: inline-block; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font: 700 11px/17px system-ui, sans-serif; font-style: normal; color: #fff; background: #ff3b3b; vertical-align: 1px; }

/* ---- the panes ---- */
.ms-pane { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ms-day { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; align-items: start; }
.ms-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ms-rrnote { align-self: flex-end; font-size: 11.5px; color: #c9d1ff; opacity: 0.85; }
.ms-rrnote.off { opacity: 0.5; }
.ms-wnote { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ms-dim); }
.ms-wnote .ms-svg { width: 16px; height: 16px; color: var(--ms-gold); }

/* a mission */
.ms-card { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
	border: 1px solid var(--ms-line); background: linear-gradient(160deg, rgba(40, 50, 120, 0.55), rgba(14, 18, 50, 0.75)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ms-ic { display: grid; place-items: center; width: 46px; height: 46px; padding: 9px; box-sizing: border-box; border-radius: 13px; color: #cfd8ff;
	background: radial-gradient(circle at 35% 30%, rgba(160, 175, 255, 0.35), rgba(40, 46, 120, 0.6)); border: 1px solid rgba(160, 175, 255, 0.3); }
.ms-ic.k-kill { color: #ff9a8a; } .ms-ic.k-brute { color: #ffc98a; } .ms-ic.k-insect { color: #b9f08a; } .ms-ic.k-undead { color: #c7c2ff; } .ms-ic.k-demon { color: #ff8ac0; }
.ms-ic.k-poring { color: #ffa6c8; } .ms-ic.k-online { color: #8ad8ff; } .ms-ic.k-attend { color: #8affc6; } .ms-ic.k-refine { color: #ffe08a; } .ms-ic.k-boss { color: #ffd36b; } .ms-ic.k-days { color: #ffb36b; }
.ms-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ms-name { font-size: 14px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.ms-bar { position: relative; height: 16px; border-radius: 8px; overflow: hidden; background: rgba(4, 6, 20, 0.7); border: 1px solid rgba(150, 165, 255, 0.2); }
.ms-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #4f7dff, #8f6bff); box-shadow: 0 0 10px rgba(120, 110, 255, 0.6); transition: width 0.5s ease-out; }
.ms-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 700; line-height: 14px; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.ms-rw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 3px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.07); }
.ms-chip > i { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 8px; font: 800 9.5px/1 system-ui, sans-serif; font-style: normal; }
.ms-chip b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ms-chip small { font-size: 10.5px; opacity: 0.75; }
.ms-chip.z > i { color: #4a2c00; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc93a 60%, #c9861a); }
.ms-chip.x > i { color: #06331f; background: linear-gradient(180deg, #a5ffd2, #3fd18c); }
.ms-chip.p > i { color: #fff; background: linear-gradient(180deg, #c2a2ff, #7a4cf0); }
.ms-chip.it { cursor: pointer; padding-left: 2px; }
.ms-chip.it:hover { border-color: rgba(255, 211, 107, 0.6); }
.ms-chip.it .ic, .ms-chip.it img { width: 18px; height: 18px; }
.ms-chip.it .ic { display: inline-grid; place-items: center; overflow: hidden; border-radius: 4px; font-size: 9px; }
.ms-act { display: flex; align-items: center; justify-content: flex-end; }
#win-mission .ms button.ms-btn { height: auto; min-height: 0; padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; text-shadow: none; cursor: pointer;
	border: 1px solid rgba(160, 175, 255, 0.45); color: #e8edff; background: rgba(40, 48, 120, 0.7); box-shadow: none; }
#win-mission .ms button.ms-btn:hover:not(:disabled) { border-color: #c8d1ff; background: rgba(70, 80, 170, 0.8); }
#win-mission .ms button.ms-btn:disabled { opacity: 0.55; cursor: default; }
#win-mission .ms button.ms-claimb { border-color: #ffe39a; color: #2a1600; background: linear-gradient(180deg, #fff1c2, #ffd36b 45%, #f0a531); box-shadow: 0 0 16px rgba(255, 190, 70, 0.5), inset 0 1px 0 #fff; animation: ms-call 1.8s ease-in-out infinite; }
#win-mission .ms button.ms-claimb:hover:not(:disabled) { background: linear-gradient(180deg, #fff6d6, #ffdc82 45%, #f5b049); }
#win-mission .ms button.ms-claimb:disabled { animation: none; color: #5a4a2a; background: linear-gradient(180deg, #d8ceb0, #b8a477); box-shadow: none; }
#win-mission .ms button.ms-claimb.big { padding: 10px 18px; font-size: 14px; }
#win-mission .ms button.ms-rrb { font-weight: 700; color: #cfd8ff; }
.ms-gotb { padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: var(--ms-ok); background: rgba(99, 230, 168, 0.1); border: 1px solid rgba(99, 230, 168, 0.3); white-space: nowrap; }
/* done: gold trim, the bar full and shining; claimed: quiet */
.ms-card.ok { border-color: rgba(255, 211, 107, 0.75); background: linear-gradient(160deg, rgba(110, 80, 30, 0.55), rgba(30, 22, 50, 0.85)); box-shadow: 0 0 18px rgba(255, 190, 70, 0.28), inset 0 1px 0 rgba(255, 240, 200, 0.2); }
.ms-card.ok .ms-ic { color: #ffe39a; border-color: rgba(255, 211, 107, 0.7); background: radial-gradient(circle at 35% 30%, rgba(255, 230, 160, 0.45), rgba(120, 70, 10, 0.6)); }
.ms-card.ok .ms-bar i, .ms-poster.ok .ms-bar i, .ms-bonus.ok .ms-bar i { background: linear-gradient(90deg, #ffb347, #ffe08a, #ffb347); background-size: 200% 100%; animation: ms-shine 1.6s linear infinite; box-shadow: 0 0 10px rgba(255, 190, 70, 0.8); }
.ms-card.got { opacity: 0.66; }
.ms-card.got .ms-bar i { background: linear-gradient(90deg, #2fb879, #63e6a8); box-shadow: none; }
.ms-card.got .ms-ic { color: var(--ms-ok); }

/* the bounty: a WANTED poster pinned on the board */
.ms-poster { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 14px; color: #3b230c; text-align: center; transform: rotate(-1.2deg);
	background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(120, 70, 20, 0.25), transparent 60%), linear-gradient(170deg, #f6e6bf, #e6c98d 70%, #d7b16e);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(120, 70, 20, 0.35);
	clip-path: polygon(0 2%, 6% 0, 18% 1.5%, 33% 0, 50% 1.2%, 66% 0, 82% 1.6%, 94% 0, 100% 2.5%, 99% 20%, 100% 40%, 98.8% 60%, 100% 80%, 99% 98%, 92% 100%, 75% 98.6%, 58% 100%, 40% 98.8%, 22% 100%, 7% 98.5%, 0 100%, 1% 80%, 0 60%, 1.2% 40%, 0 20%); }
.ms-pin { position: absolute; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb3a0, #d6301a 60%, #7a1408); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
.ms-pin.l { left: 10px; } .ms-pin.r { right: 10px; }
.ms-wanted { font: 900 27px/1 Georgia, 'Times New Roman', serif; letter-spacing: 0.12em; color: #8e1c0e; text-shadow: 0 1px 0 rgba(255, 240, 210, 0.7); }
.ms-wsub { margin-top: -2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #6a4318; }
#win-mission .ms button.ms-mug { display: grid; place-items: center; width: 96px; height: 96px; margin: 4px 0 2px; padding: 0; border: 3px solid #5a3a14; border-radius: 4px; cursor: pointer;
	background: radial-gradient(circle at 50% 40%, #fff7e0, #e0c48c); box-shadow: inset 0 0 14px rgba(90, 58, 20, 0.45); overflow: hidden; }
.ms-mug img { max-width: 84px; max-height: 84px; image-rendering: pixelated; }
.ms-mug i { font: 900 26px/1 Georgia, serif; font-style: normal; color: #5a3a14; }
.ms-mname { font: 800 17px/1.2 Georgia, 'Times New Roman', serif; color: #2a1606; overflow-wrap: anywhere; }
.ms-mlv { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #f6e6bf; background: #6a3d12; }
.ms-where { font-size: 12px; font-weight: 700; color: #4a2c0e; }
.ms-where small { font-weight: 500; opacity: 0.7; }
.ms-poster .ms-bar { align-self: stretch; margin-top: 4px; border-color: rgba(90, 58, 20, 0.5); background: rgba(90, 58, 20, 0.25); }
.ms-poster .ms-bar i { background: linear-gradient(90deg, #a8321c, #e0602e); box-shadow: none; }
.ms-poster .ms-bar span { color: #fff; }
.ms-bounty { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 2px; }
.ms-bounty > span { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #6a4318; }
.ms-poster .ms-chip { border-color: rgba(90, 58, 20, 0.3); background: rgba(90, 58, 20, 0.14); }
.ms-poster .ms-chip b { color: #2a1606; }
.ms-poster .ms-act { justify-content: center; margin-top: 6px; }
.ms-poster .ms-gotb { color: #1d6a43; background: rgba(40, 140, 90, 0.15); border-color: rgba(40, 140, 90, 0.4); }
.ms-stamp { position: absolute; right: 8px; top: 92px; padding: 2px 10px; border: 3px solid rgba(190, 30, 20, 0.85); border-radius: 6px; font: 900 18px/1.2 Georgia, serif; letter-spacing: 0.06em;
	color: rgba(190, 30, 20, 0.9); transform: rotate(-16deg); mix-blend-mode: multiply; pointer-events: none; animation: ms-stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.ms-poster.got .ms-stamp { border-color: rgba(30, 120, 70, 0.85); color: rgba(30, 120, 70, 0.9); }
.ms-poster.none { gap: 8px; padding: 22px 14px; }
.ms-poster.none p { margin: 0; font-size: 13px; }
.ms-bpane { display: flex; justify-content: center; padding: 4px 0; }
.ms-bpane .ms-poster { width: min(300px, 100%); }

/* the all-daily / all-weekly bonus */
.ms-bonus { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border-radius: 14px; border: 1px dashed rgba(255, 211, 107, 0.45);
	background: linear-gradient(120deg, rgba(255, 211, 107, 0.12), rgba(120, 90, 255, 0.1)); }
.ms-bonus.ok { border-style: solid; border-color: #ffd36b; box-shadow: 0 0 20px rgba(255, 190, 70, 0.35); background: linear-gradient(120deg, rgba(255, 211, 107, 0.28), rgba(255, 140, 40, 0.14)); }
.ms-bonus.got { opacity: 0.72; border-style: solid; border-color: rgba(99, 230, 168, 0.4); }
.ms-bh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ms-bh b { font-size: 13.5px; color: #ffe7b0; }
.ms-checks { display: flex; gap: 4px; }
.ms-checks i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-size: 11px; font-weight: 900; font-style: normal; color: #062a18; border: 1.5px solid rgba(255, 211, 107, 0.5); box-sizing: border-box; }
.ms-checks i.on { border-color: #63e6a8; background: #63e6a8; }
.ms-brow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ms-snote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #ffd9a8; }
.ms-snote.hot { font-weight: 700; color: #fff0c2; }

/* a claim: the card's glow, a ring and sparks, what came floating up (on the window: missions.js after) */
.ms-fx { animation: ms-glow 1.4s ease-out; }
.ms-float { position: absolute; z-index: 30; width: 0; height: 0; pointer-events: none; }
.ms-float span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-size: 15px; font-weight: 900; color: #fff3c4;
	text-shadow: 0 0 8px rgba(255, 170, 40, 0.95), 0 2px 2px #000; animation: ms-up 1.8s ease-out both; }
.ms-ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #ffd36b; box-shadow: 0 0 20px #ffb347; animation: ms-ring 0.9s ease-out both; }
.ms-spark { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff6d0; box-shadow: 0 0 6px #ffb347; animation: ms-spark 0.9s cubic-bezier(0.15, 0.75, 0.3, 1) both; }

/* ---- the phone (missions.js: the body .ms-ph when isPhone() - one screen, nothing to scroll: the poster its own tab) ---- */
html.mhud .win.win-mission { --wk: 1; transform: none; }
html.mhud.mh-land .win.win-mission { width: min(520px, 62vw) !important; }
.ms.ms-ph { gap: 8px; padding: 10px; min-height: 0; }
.ms-ph .ms-top { grid-template-columns: auto auto; grid-template-areas: "clock pts" "streak streak"; gap: 6px; }
.ms-ph .ms-clock { grid-area: clock; padding: 5px 10px; }
.ms-ph .ms-pts { grid-area: pts; justify-self: end; padding: 4px 10px; }
.ms-ph .ms-pts b { font-size: 15px; }
.ms-ph .ms-streak { grid-area: streak; justify-self: stretch; justify-content: center; padding: 4px 10px; }
#win-mission .ms-ph .ms-tabs button { padding: 9px 4px; font-size: 14px; }
.ms-ph .ms-list { gap: 6px; }
.ms-ph .ms-card { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
.ms-ph .ms-ic { width: 40px; height: 40px; padding: 8px; border-radius: 11px; }
.ms-ph .ms-name { font-size: 13.5px; }
.ms-ph .ms-main { gap: 4px; }
#win-mission .ms-ph button.ms-btn { padding: 10px 11px; font-size: 13px; }
.ms-ph .ms-bonus { padding: 9px 11px; gap: 6px; }
.ms-ph .ms-wnote { font-size: 12px; }
.ms-ph .ms-poster { transform: none; padding: 16px 16px 16px; }
#win-mission .ms-ph button.ms-mug { width: 110px; height: 110px; }

@media (max-width: 760px) and (min-width: 701px) { .ms-day { grid-template-columns: minmax(0, 1fr) 210px; } }

@keyframes ms-spin { to { transform: rotate(360deg); } }
@keyframes ms-flick { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes ms-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes ms-call { 0%, 100% { box-shadow: 0 0 10px rgba(255, 190, 70, 0.35), inset 0 1px 0 #fff; } 50% { box-shadow: 0 0 22px rgba(255, 190, 70, 0.8), inset 0 1px 0 #fff; } }
@keyframes ms-glow { 0% { box-shadow: 0 0 0 rgba(255, 211, 107, 0); } 20% { box-shadow: 0 0 34px rgba(255, 211, 107, 0.95), 0 0 0 3px rgba(255, 233, 170, 0.9); } 100% { box-shadow: 0 0 0 rgba(255, 211, 107, 0); } }
@keyframes ms-up { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
@keyframes ms-ring { 0% { opacity: 0; transform: scale(0.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes ms-spark { 0% { opacity: 0; transform: translate(0, 0) scale(1.3); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }
@keyframes ms-gain { 0% { box-shadow: 0 0 0 rgba(180, 140, 255, 0); } 25% { box-shadow: 0 0 26px rgba(190, 150, 255, 0.95); border-color: #e3d4ff; } 100% { box-shadow: 0 0 0 rgba(180, 140, 255, 0); } }
@keyframes ms-stamp { 0% { opacity: 0; transform: rotate(-16deg) scale(2.2); } 100% { opacity: 1; transform: rotate(-16deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.ms-fire, .ms-card.ok .ms-bar i, .ms-poster.ok .ms-bar i, #win-mission .ms button.ms-claimb, .ms-fx, .ms-float span, .ms-ring, .ms-spark, .ms-stamp { animation: none !important; }
}

/* วาร์ปไปทำภารกิจ (Noh 2026-11-07 11:33 / 11:36; missionwarp.js): "🌀 วาร์ป" on a card / the poster, the maps of a mission */
.ms-card .ms-act { flex-direction: column; align-items: stretch; gap: 6px; }
.ms-poster .ms-act { gap: 8px; flex-wrap: wrap; }
#win-mission .ms button.ms-wpb, #win-mission .ms button.ms-wpgo { border-color: #8fe3ff; color: #062a3a; background: linear-gradient(180deg, #d4f6ff, #6fd2f5 55%, #2aa3d6); box-shadow: 0 0 10px rgba(90, 200, 255, 0.35); }
#win-mission .ms button.ms-wpb:hover:not(:disabled), #win-mission .ms button.ms-wpgo:hover:not(:disabled) { background: linear-gradient(180deg, #e6fbff, #8adcf8 55%, #3cb0e0); }
#win-mission .ms button.ms-wpb.off, #win-mission .ms button.ms-wpgo.off { color: #3c4a55; border-color: #8b98a3; background: linear-gradient(180deg, #d9dee3, #aab4bd); box-shadow: none; }
.ms-wp { display: flex; flex-direction: column; gap: 8px; }
.ms-wph { display: flex; align-items: center; gap: 10px; }
.ms-wpt { display: flex; flex-direction: column; min-width: 0; }
.ms-wpt b { font-size: 15px; color: #fff; }
.ms-wpt span { font-size: 12.5px; color: #c9d3ff; }
#win-mission .ms button.ms-wpback { flex: none; padding: 7px 12px; }
.ms-wpnote { margin: 0; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; color: #ffe2a8; background: rgba(255, 170, 60, 0.12); border: 1px solid rgba(255, 190, 90, 0.4); }
.ms-wplist { display: flex; flex-direction: column; gap: 7px; }
.ms-wprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(160, 175, 255, 0.22); }
.ms-wpm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ms-wpn b { font-size: 14px; color: #fff; }
.ms-wpn small { margin-left: 6px; font-size: 11.5px; color: #9fb0e8; }
.ms-wpmobs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ms-wpmob { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px 2px 2px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.1); }
.ms-wpmob .ic, .ms-wpmob img, .ms-wpmob canvas { width: 24px; height: 24px; flex: none; }
.ms-wpmob em { font-style: normal; font-size: 12px; color: #e8edff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-wpmob em small { color: #a9b6e6; font-size: 11px; }
.ms-wpmob.boss { border-color: rgba(255, 140, 120, 0.55); }
.ms-wpmob.boss em small { color: #ffb3a2; }
.ms-wpfoot { margin: 2px 0 0; font-size: 11.5px; color: #9fb0e8; text-align: center; }
/* (a phone: one screen - the card's buttons side by side, its warp a 🌀 over a small "วาร์ป") */
.ms-ph .ms-card .ms-act { flex-direction: row; align-items: center; }
#win-mission .ms-ph .ms-card button.ms-wpb { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 10px; line-height: 1.15; }
.ms-ph .ms-card .ms-wpl { font-size: 10.5px; font-weight: 800; }
/* (Season Pass on: แต้มภารกิจ a button that opens it - the points raise its level) */
#win-mission .ms .ms-pts-sp { cursor: pointer; }
#win-mission .ms .ms-pts-sp:hover { border-color: rgba(210, 180, 255, 0.8); background: linear-gradient(120deg, rgba(170, 130, 255, 0.34), rgba(110, 80, 220, 0.2)); }
