/* 쇼부카지노 - 가입머니&미션머니 이벤트(/promotions/new-member-mission) 전용. 접두어 ms- (이벤트 머리·카드는 promo.css 의 pm- 를 함께 쓴다) */

/* ───────── 두 칸: 오른쪽에 수령 카드, 휴대폰에서는 수령 카드가 먼저 ───────── */
.ms-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px 24px; align-items: start; }
.ms-main { grid-column: 1; grid-row: 1; min-width: 0; }
.ms-side { grid-column: 2; grid-row: 1; min-width: 0; }
.ms-main > .blk + .blk { margin-top: clamp(34px, 4vw, 52px); }
.ms-main .blk-hd { flex-wrap: nowrap; align-items: flex-end; }
.ms-main .blk-hd > div { flex: 1; min-width: 0; }
.ms-main .blk-hd > .btn, .ms-main .blk-hd > .more { flex: none; }
.ms-flash:empty { display: none; }
.ms-flash { margin-bottom: 18px; display: grid; gap: 10px; }

/* 알림 */
.ms-ok, .ms-alert { margin: 0; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.6; }
.ms-ok { background: rgba(63, 174, 114, .12); box-shadow: inset 0 0 0 1px rgba(63, 174, 114, .35); color: #b9ecd0; }
.ms-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: rgba(200, 64, 42, .12); box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .4); color: #f3c0b6; }
.ms-prog .ms-alert { margin-top: 14px; }

/* ───────── 오늘의 미션비 수령 카드 ───────── */
.ms-claim { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; }
.ms-claim-hd { display: flex; align-items: center; gap: 10px; font: 700 16px/1.3 var(--serif); letter-spacing: -.02em; color: var(--champagne); }
.ms-claim-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, rgba(246, 226, 164, .22), rgba(217, 177, 101, .05) 70%); box-shadow: inset 0 0 0 1px var(--line-2); }
.ms-claim-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ms-claim-amt { display: block; font: 900 clamp(34px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.03em; filter: drop-shadow(0 2px 0 rgba(40, 24, 6, .5)); }
.ms-claim-kv { display: grid; gap: 0; margin: 0; padding: 4px 0; border-block: 1px dashed rgba(217, 177, 101, .18); }
.ms-claim-kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; font-size: 14px; }
.ms-claim-kv dt { color: var(--ivory-3); white-space: nowrap; }
.ms-claim-kv dd { margin: 0; text-align: right; color: var(--ivory); }
.ms-claim-clock { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ivory-2); }
.ms-claim-clock svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ms-claim .btn svg, .ms-prog .btn svg, .ms-actions .btn svg { width: 17px; height: 17px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ms-claim-sub { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ivory-3); }

/* ───────── 단계 진행표 ───────── */
.ms-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ms-steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.ms-sn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(217, 177, 101, .08); box-shadow: inset 0 0 0 1px var(--line-2); font: 800 16px/1 var(--serif); color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.ms-sn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ms-sb { min-width: 0; }
.ms-sl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 14px/1.3 var(--sans); color: var(--ivory-3); }
.ms-ss { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font: 700 12px/1 var(--sans); background: rgba(196, 181, 151, .12); color: var(--ivory-2); }
.ms-sb strong { display: block; margin-top: 4px; font: 800 20px/1.3 var(--serif); letter-spacing: -.02em; color: var(--ivory); }
.ms-sb p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ivory-3); }
.ms-si { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); opacity: .7; }
.ms-si svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ms-steps li[data-state="done"] .ms-sn { background: var(--gold-btn); color: #1d1408; box-shadow: none; }
.ms-steps li[data-state="done"] .ms-ss { background: rgba(217, 177, 101, .16); color: var(--gold-hi); }
.ms-steps li[data-state="current"], .ms-steps li[data-state="pending"] { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 40px -18px rgba(217, 177, 101, .55); }
.ms-steps li[data-state="current"] .ms-sn, .ms-steps li[data-state="pending"] .ms-sn { color: var(--gold-hi); box-shadow: inset 0 0 0 2px var(--gold); }
.ms-steps li[data-state="current"] .ms-ss { background: rgba(217, 177, 101, .16); color: var(--gold-hi); }
.ms-steps li[data-state="pending"] .ms-ss { background: rgba(77, 142, 240, .16); color: #9cc0ff; }
.ms-steps li[data-state="ready"] { box-shadow: inset 0 0 0 1px rgba(63, 174, 114, .55), 0 0 40px -18px rgba(63, 174, 114, .5); }
.ms-steps li[data-state="ready"] .ms-sn { color: #8fdcb0; box-shadow: inset 0 0 0 2px #3fae72; }
.ms-steps li[data-state="ready"] .ms-ss { background: rgba(63, 174, 114, .16); color: #8fdcb0; }
.ms-steps li[data-state="review"] .ms-ss, .ms-steps li[data-state="ended"] .ms-ss { background: rgba(200, 64, 42, .16); color: #f3a395; }
.ms-steps li[data-state="waiting"] .ms-sb strong, .ms-steps li[data-state="ended"] .ms-sb strong { color: var(--ivory-2); }

/* ───────── 나의 미션 진행 ───────── */
.ms-prog { display: grid; gap: 16px; padding: 24px; }
.ms-ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ms-pt { margin: 0; font: 700 22px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.ms-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; font: 700 13px/1 var(--sans); background: rgba(196, 181, 151, .12); color: var(--ivory-2); }
.ms-badge[data-state="current"], .ms-badge[data-state="done"] { background: rgba(217, 177, 101, .16); color: var(--gold-hi); }
.ms-badge[data-state="ready"] { background: rgba(63, 174, 114, .16); color: #8fdcb0; }
.ms-badge[data-state="pending"] { background: rgba(77, 142, 240, .16); color: #9cc0ff; }
.ms-badge[data-state="review"], .ms-badge[data-state="ended"] { background: rgba(200, 64, 42, .16); color: #f3a395; }
.ms-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-nums > div { min-width: 0; padding: 16px 18px; border-radius: 12px; background: rgba(8, 6, 4, .45); box-shadow: inset 0 0 0 1px var(--line); }
.ms-nums span { display: block; font-size: 13px; color: var(--ivory-3); }
.ms-nums strong, .ms-nums b { display: block; margin-top: 6px; font: 800 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ms-nums b { color: var(--ivory); }
.ms-funds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ms-funds > div { min-width: 0; padding: 12px 14px; border-radius: 10px; background: rgba(217, 177, 101, .05); box-shadow: inset 0 0 0 1px var(--line); }
.ms-funds dt { font-size: 12.5px; color: var(--ivory-3); }
.ms-funds dd { margin: 5px 0 0; font: 700 16px/1.3 var(--sans); color: var(--ivory); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ms-funds dd small { display: block; margin-top: 3px; font: 500 12.5px/1.3 var(--sans); color: var(--ivory-3); }
.ms-plabel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; color: var(--ivory-2); }
.ms-plabel b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ms-prog .prog { height: 10px; }
.ms-pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; margin-top: -6px; font-size: 13.5px; color: var(--ivory-3); }
.ms-pfoot strong { font: 800 18px/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ms-hint { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ivory-3); }
.ms-txt { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ivory-2); }
.ms-link { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ms-actions .ms-hint { flex-basis: 100%; }
.ms-track { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.ms-track > span:not(.ms-ta) { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(217, 177, 101, .08); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ivory); }
.ms-ta { display: grid; place-items: center; color: var(--gold); }
.ms-ta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-abandon { display: grid; gap: 12px; }
.ms-demo { display: grid; gap: 10px; }
.ms-demo p { margin: 0; }

/* ───────── 롤링 계산 ───────── */
.ms-calc { display: grid; gap: 10px; padding: 24px; }
.ms-ct { margin: 0; font: 700 20px/1.3 var(--serif); letter-spacing: -.03em; color: var(--champagne); }
.ms-cf { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(217, 177, 101, .08); box-shadow: inset 0 0 0 1px var(--line); font: 700 15px/1.6 var(--sans); color: var(--gold-hi); }
.ms-cb { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ivory-2); }
.ms-cs { display: block; font: 700 16px/1.6 var(--serif); color: var(--ivory); }

/* ───────── 미션 머니로 쓸 수 있는 게임 ───────── */
.ms-games { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ms-game { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.ms-game:hover, .ms-game:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .55), 0 20px 40px -26px rgba(217, 177, 101, .55); }
.ms-game-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, rgba(246, 226, 164, .22), rgba(217, 177, 101, .05) 70%); box-shadow: inset 0 0 0 1px var(--line-2); }
.ms-game-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ms-game-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ms-game-tx b { font: 700 17px/1.3 var(--serif); letter-spacing: -.02em; color: var(--ivory); }
.ms-game-tx em { margin-left: 6px; font: 600 12.5px/1 var(--sans); font-style: normal; color: var(--gold); }
.ms-game-tx small { font-size: 13.5px; line-height: 1.6; color: var(--ivory-3); }

/* ───────── 선물 거래 안내 ───────── */
.ms-gsteps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ms-gsteps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.ms-gn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-btn); color: #1d1408; font: 900 17px/1 var(--serif); }
.ms-gsteps h3 { margin: 4px 0 0; font: 700 18px/1.35 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.ms-gsteps p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); }

/* ───────── 인정 내역·유의사항 ───────── */
.ms-et { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ivory-3); }
.ms-evt td { white-space: normal; }
.ms-terms { display: grid; gap: 14px; }
.ms-terms ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.ms-terms li { font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); }
.ms-terms li::marker { color: var(--gold); }
.ms-terms-ft { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--ivory-3); }
.ms-upd { margin: 12px 2px 0; font-size: 12.5px; color: var(--ivory-3); }

/* ───────── 실연동에서 진행 중인 미션이 없을 때 ───────── */
.ms-none .ms-hx, .ms-none .ms-side { display: none; }
.ms-none .ms-split { grid-template-columns: minmax(0, 1fr); }
.ms-none .ms-main { grid-column: 1; }
.ms-none-box { display: grid; gap: 14px; padding: 30px 26px; }
.ms-games-note { display: grid; gap: 8px; }
.ms-games-note p { margin: 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 1240px) {
  .ms-split { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
}
@media (max-width: 1100px) {
  .ms-split { grid-template-columns: minmax(0, 1fr); }
  .ms-side, .ms-main { grid-column: 1; }
  .ms-side { grid-row: 1; }
  .ms-main { grid-row: 2; }
  .ms-claim.sticky { position: static; }
}
@media (max-width: 760px) {
  .ms-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 14px; }
  .ms-sn { width: 40px; height: 40px; font-size: 14.5px; }
  .ms-si { display: none; }
  .ms-sb strong { font-size: 18px; }
  .ms-prog, .ms-calc { padding: 18px 16px; }
  .ms-nums, .ms-funds { grid-template-columns: minmax(0, 1fr); }
  .ms-funds { gap: 8px; }
  .ms-funds > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .ms-funds dd { margin: 0; text-align: right; }
  .ms-gsteps li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 16px; }
  .ms-gn { width: 40px; height: 40px; }
  .ms-game { align-items: flex-start; padding: 14px; gap: 12px; }
  .ms-game-ic { width: 42px; height: 42px; }
  .ms-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ms-actions .btn-sm { flex: 1 1 auto; }
  .ms-claim { padding: 22px 18px 20px; }
}
