/* Point charge page (myshop.html), "별밤 모험" look.
   The game's in-game charge window shows this page with the old IE engine (IE11 mode), so this file avoids what IE11
   can't read: no CSS variables, no 8-digit hex colours, no grid, no gap, no min()/max()/clamp(). Colours are the
   same values as the tokens in base.css (gold = the thing to do, moon blue = what is chosen, mint = all good). */

html { background-color: #091230; }
body.ms-body { margin: 0; color: #f1f4ff; background-color: #091230; font-family: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
main { display: block; }
.ms-hide { display: none !important; }
.ms-jua { font-family: Jua, Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-weight: 400; }

/* layout: packs on the left, the payment card on the right; one column below 1080px */
.ms-wrap { padding-bottom: 96px; }
.ms-layout { display: flex; align-items: flex-start; }
.ms-main { flex: 1 1 auto; min-width: 0; }
.ms-side { flex: 0 0 auto; width: 380px; margin-left: 24px; }

.ms-card { position: relative; margin: 0 0 24px; padding: 24px; border-radius: 24px; background-color: #111c40; border: 1px solid #24335f; box-shadow: 0 24px 56px rgba(3, 8, 26, 0.35); }
.ms-card h2 { margin: 0; font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 24px; line-height: 1.3; color: #ffffff; }
.ms-label { display: block; font-size: 13px; font-weight: 700; color: #8f9ac2; line-height: 1.4; }

/* buttons */
.ms-btn { display: inline-block; padding: 11px 18px; border-radius: 14px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ms-btn-moon { background-color: rgba(149, 170, 255, 0.14); color: #dde4ff; border-color: rgba(149, 170, 255, 0.55); }
.ms-btn-moon:hover { background-color: rgba(149, 170, 255, 0.26); border-color: #95aaff; }
.ms-btn-gold { background-color: #ffc94a; color: #2a1a00; box-shadow: 0 10px 22px rgba(255, 201, 74, 0.22), inset 0 -4px 0 rgba(122, 72, 0, 0.22); }
.ms-btn-gold:hover { background-color: #ffd566; }
.ms-btn-ghost { background-color: transparent; color: #b4bedf; border-color: #2e3d70; }
.ms-btn-ghost:hover { color: #ffffff; border-color: #95aaff; }
.ms-btn[disabled] { opacity: 0.55; cursor: progress; }

/* in-game top line: only in the game's charge window */
.ms-ingame-top { display: none; }

/* account line */
.ms-account { display: flex; align-items: center; flex-wrap: wrap; padding: 18px 22px; }
.ms-account-icon { flex: 0 0 auto; width: 56px; height: 56px; margin-right: 14px; border-radius: 18px; background-color: #1b2752; background-image: radial-gradient(circle at 50% 35%, #2c3b75 0%, #18224a 75%); text-align: center; }
.ms-account-icon img { width: 40px; height: 40px; margin-top: 8px; }
.ms-account-text { flex: 1 1 180px; min-width: 0; }
.ms-account-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 1.35; color: #ffffff; }
.ms-account-text small { display: block; font-size: 13px; color: #8f9ac2; }
.ms-balance { flex: 0 0 auto; margin: 0 18px; text-align: right; }
.ms-balance b { display: block; font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 32px; line-height: 1.1; color: #ffd77a; white-space: nowrap; }
.ms-balance b.ms-flash { -webkit-animation: ms-flash 1.4s ease; animation: ms-flash 1.4s ease; }
@-webkit-keyframes ms-flash { 0% { color: #6ee7b7; text-shadow: 0 0 18px rgba(110, 231, 183, 0.8); } 100% { color: #ffd77a; text-shadow: none; } }
@keyframes ms-flash { 0% { color: #6ee7b7; text-shadow: 0 0 18px rgba(110, 231, 183, 0.8); } 100% { color: #ffd77a; text-shadow: none; } }
.ms-account-actions { flex: 0 0 auto; }
.ms-only-game { display: none !important; }

/* packs */
.ms-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.ms-head h2 { margin-right: 12px; }
.ms-currency { display: inline-block; padding: 4px; border-radius: 14px; background-color: #0b1434; border: 1px solid #24335f; white-space: nowrap; }
.ms-cur { display: inline-block; padding: 7px 14px; border: 0; border-radius: 10px; background-color: transparent; color: #b4bedf; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.ms-cur:hover { color: #ffffff; }
.ms-cur.is-on { background-color: #95aaff; color: #0a1230; }

.ms-grid { display: flex; flex-wrap: wrap; margin: -7px; }
.denom-card { position: relative; display: block; flex: 0 0 auto; width: calc(25% - 14px); margin: 7px; padding: 20px 10px 16px; border-radius: 20px; border: 2px solid #24335f; background-color: #0d1738; background-image: linear-gradient(180deg, rgba(149, 170, 255, 0.10) 0%, rgba(149, 170, 255, 0) 65%); color: #f1f4ff; font-family: inherit; text-align: center; cursor: pointer; -webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease, -webkit-transform 0.15s ease; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.denom-card:hover { border-color: rgba(255, 201, 74, 0.7); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.denom-card.active { border-color: #95aaff; background-color: #17234f; box-shadow: 0 0 0 4px rgba(149, 170, 255, 0.20), 0 16px 30px rgba(3, 8, 26, 0.5); }
.denom-card.active .ms-check { display: block; }
.ms-check { display: none; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 12px; background-color: #95aaff; color: #0a1230; font-size: 14px; font-weight: 700; line-height: 24px; text-align: center; }
.ms-pack-tag { position: absolute; top: 10px; left: 10px; padding: 1px 9px; border-radius: 999px; background-color: #ff8fa3; color: #3a0a14; font-size: 12px; font-weight: 700; line-height: 1.6; }
.ms-coin { display: block; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 32px; background-color: #1a2550; background-image: radial-gradient(circle at 50% 38%, #34447f 0%, #1a2550 72%); }
.ms-coin img { display: block; width: 40px; height: 40px; margin: 12px auto 0; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor; }
.ms-pack-points { display: block; font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 26px; line-height: 1.15; color: #ffd77a; white-space: nowrap; }
.ms-pack-points small { font-size: 16px; color: #e8c972; }
.ms-pack-bonus { display: inline-block; margin-top: 7px; padding: 1px 10px; border-radius: 999px; border: 1px solid rgba(110, 231, 183, 0.45); background-color: rgba(110, 231, 183, 0.12); color: #a9f5d4; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ms-pack-bonus.is-base { border-color: transparent; background-color: transparent; color: #8f9ac2; }
.ms-pack-price { display: block; margin-top: 10px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #ffffff; white-space: nowrap; }
.ms-pack-sub { display: block; font-size: 12px; color: #8f9ac2; white-space: nowrap; }

/* payment card */
.ms-rows { margin: 14px 0 0; padding: 0; }
.ms-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #1b2850; }
.ms-row dt { margin: 0; font-size: 15px; color: #b4bedf; }
.ms-row dd { margin: 0; font-size: 17px; font-weight: 700; color: #ffffff; text-align: right; }
.ms-row-total { border-bottom: 0; padding-bottom: 2px; }
.ms-row-total dd { font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 28px; color: #ffd77a; }
.ms-sum-sub { margin: 0; font-size: 13px; color: #8f9ac2; text-align: right; }
.ms-select { height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid #2e3d70; background-color: #0b1434; color: #f1f4ff; font-size: 15px; font-weight: 700; }
.ms-pay { display: block; width: 100%; min-height: 60px; margin-top: 18px; padding: 10px 16px; border: 0; border-radius: 16px; background-color: #ffc94a; color: #2a1a00; font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 21px; line-height: 1.3; cursor: pointer; box-shadow: 0 12px 28px rgba(255, 201, 74, 0.25), inset 0 -4px 0 rgba(122, 72, 0, 0.22); }
.ms-pay:hover { background-color: #ffd566; }
.ms-pay[disabled] { opacity: 0.55; cursor: progress; }

.ms-confirm { margin-top: 14px; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 201, 74, 0.6); background-color: #0b1434; }
.ms-confirm b { display: block; font-size: 17px; color: #ffffff; }
.ms-confirm p { margin: 4px 0 12px; font-size: 15px; color: #ffd77a; }
.ms-confirm .ms-btn { margin-right: 6px; }

.ms-status { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.ms-status b { display: block; font-weight: 700; }
.ms-status span { display: block; font-size: 13px; opacity: 0.9; }
.ms-status.ok { background-color: rgba(110, 231, 183, 0.12); border: 1px solid rgba(110, 231, 183, 0.5); color: #a9f5d4; }
.ms-status.bad { background-color: rgba(255, 143, 163, 0.12); border: 1px solid rgba(255, 143, 163, 0.5); color: #ffc2cd; }
.ms-status.wait { background-color: rgba(255, 201, 74, 0.10); border: 1px solid rgba(255, 201, 74, 0.5); color: #ffd77a; }

.ms-notes { list-style: none; margin: 16px 0 0; padding: 0; font-size: 13px; line-height: 1.6; color: #8f9ac2; }
.ms-notes li { position: relative; margin-top: 3px; padding-left: 12px; }
.ms-notes li:before { content: ""; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 2px; background-color: #5d6a99; }
.ms-notes a { color: #b4bedf; text-decoration: underline; }
.ms-notes a:hover { color: #ffd77a; }

/* recent charges */
.ms-history-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ms-history-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #1b2850; font-size: 14px; }
.ms-history-list li:last-child { border-bottom: 0; }
.ms-h-date { flex: 0 0 auto; width: 92px; color: #8f9ac2; }
.ms-h-what { flex: 1 1 auto; color: #b4bedf; }
.ms-h-pts { flex: 0 0 auto; font-weight: 700; color: #6ee7b7; }
.ms-h-pts.is-use { color: #b4bedf; }
.ms-history-list li.ms-empty { display: block; padding: 14px 0 4px; color: #8f9ac2; text-align: center; border-bottom: 0; }

/* narrower screens */
@media (max-width: 1080px) {
  .ms-layout { display: block; }
  .ms-side { width: auto; margin-left: 0; }
}
@media (max-width: 760px) {
  .denom-card { width: calc(50% - 14px); }
  .ms-card { padding: 18px; border-radius: 20px; margin-bottom: 16px; }
  .ms-account { padding: 16px; }
  .ms-account-text { -ms-flex-preferred-size: calc(100% - 70px); flex-basis: calc(100% - 70px); }
  .ms-balance { flex: 1 1 auto; margin: 12px 0 0; text-align: left; }
  .ms-account-actions { margin-top: 12px; }
  .ms-head h2 { width: 100%; margin: 0 0 10px; }
}
@media (max-width: 380px) {
  .ms-pack-points { font-size: 21px; }
  .ms-pack-price { font-size: 16px; }
  .ms-coin { width: 52px; height: 52px; }
  .ms-coin img { margin-top: 6px; }
}

/* the game's own charge window: no site header, hero or footer; everything compact */
body.ingame-popup #site-header,
body.ingame-popup #site-footer,
body.ingame-popup .ms-hero { display: none !important; }
body.ingame-popup .ms-wrap { max-width: none; margin: 0; padding: 12px 12px 16px; }
body.ingame-popup .ms-layout { display: block; }
body.ingame-popup .ms-side { width: auto; margin-left: 0; }
body.ingame-popup .ms-card { margin-bottom: 12px; padding: 14px; border-radius: 16px; box-shadow: none; }
body.ingame-popup .ms-ingame-top { display: block; margin: 0 2px 10px; }
body.ingame-popup .ms-ingame-top img { height: 34px; width: auto; vertical-align: middle; }
body.ingame-popup .ms-ingame-top b { margin-left: 8px; font-family: Jua, Pretendard, "Malgun Gothic", sans-serif; font-weight: 400; font-size: 20px; color: #ffffff; vertical-align: middle; }
body.ingame-popup .ms-only-game { display: inline-block !important; }
body.ingame-popup .ms-only-web { display: none !important; }
body.ingame-popup .ms-account { padding: 12px 14px; }
body.ingame-popup .ms-account-icon { display: none; }
body.ingame-popup .ms-balance b { font-size: 26px; }
body.ingame-popup .ms-head { margin-bottom: 12px; }
body.ingame-popup .ms-card h2 { font-size: 20px; }
body.ingame-popup .ms-grid { margin: -4px; }
body.ingame-popup .denom-card { width: calc(25% - 8px); margin: 4px; padding: 14px 4px 10px; border-radius: 14px; }
body.ingame-popup .ms-coin { width: 44px; height: 44px; margin-bottom: 6px; }
body.ingame-popup .ms-coin img { margin-top: 2px; }
body.ingame-popup .ms-pack-points { font-size: 19px; }
body.ingame-popup .ms-pack-price { margin-top: 6px; font-size: 15px; }
@media (max-width: 540px) {
  body.ingame-popup .denom-card { width: calc(50% - 8px); }
}
/* in the game window the payment card sticks to the bottom, so the pay button is always in sight */
body.ingame-popup .ms-wrap { padding-bottom: 168px; }
body.ingame-popup .ms-summary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; padding: 10px 12px 12px; border-radius: 16px 16px 0 0; border-width: 1px 0 0 0; box-shadow: 0 -12px 30px rgba(3, 8, 26, 0.65); }
body.ingame-popup .ms-summary h2,
body.ingame-popup .ms-sum-sub,
body.ingame-popup .ms-summary .ms-notes { display: none; }
body.ingame-popup .ms-rows { display: flex; margin: 0; }
body.ingame-popup .ms-row { display: block; -ms-flex: 1 1 0%; flex: 1 1 0%; padding: 0 6px; border: 0; text-align: center; }
body.ingame-popup .ms-row dt { font-size: 12px; }
body.ingame-popup .ms-row dd { font-size: 16px; text-align: center; }
body.ingame-popup .ms-row-total dd { font-size: 20px; }
body.ingame-popup .ms-select { height: 30px; font-size: 14px; }
body.ingame-popup .ms-pay { min-height: 46px; margin-top: 8px; font-size: 18px; }
body.ingame-popup .ms-confirm,
body.ingame-popup .ms-status { margin-top: 8px; padding: 10px 12px; }
.ms-notes-ingame { display: none; }
body.ingame-popup .ms-notes-ingame { display: block; margin: 4px 4px 0; }
