:root {
  --recharge-stage-width: 1920px;
  --recharge-stage-height: 1200px;
  --recharge-scale: 1;
  --recharge-viewport-height: 100svh;
  --recharge-stage-viewport-height: 1200px;
}

@supports (height: 100dvh) {
  :root {
    --recharge-viewport-height: 100dvh;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Microsoft JhengHei', system-ui, sans-serif;
  background: #fff7ec;
  overflow-x: hidden;
  overflow-y: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
}

/* BGM */

.bgm-toggle {
  position: fixed;
  --bgm-scale-compensation: 1;
  right: calc(20px * var(--bgm-scale-compensation));
  bottom: calc(20px * var(--bgm-scale-compensation));
  z-index: 12;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(61, 44, 44, 0.25);
  background: rgba(255, 247, 236, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: scale(var(--bgm-scale-compensation));
  transform-origin: right bottom;
}

.bgm-toggle::before {
  content: '♫';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(61, 44, 44, 0.85);
  font-size: 18px;
  line-height: 1;
}

.bgm-toggle[aria-pressed='false'] {
  opacity: 0.55;
}

.bgm-toggle:focus-visible {
  outline: 2px solid rgba(244, 156, 139, 0.8);
  outline-offset: 3px;
}

.recharge-root {
  position: relative;
  height: 100%;
  background: #fff7ec;
}

.recharge-root::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #fff7ec url('./images/figma/recharge/bg.png') center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.recharge-stage-wrap {
  position: relative;
  width: 100vw;
  height: var(--recharge-viewport-height-px, var(--recharge-viewport-height));
  margin: 0 auto;
  overflow: hidden;
  z-index: 1;
}

.recharge-stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--recharge-stage-width);
  height: var(--recharge-stage-height);
  transform: scale(var(--recharge-scale));
  transform-origin: top left;
}

.recharge-bg {
  position: absolute;
  left: -36px;
  top: -22px;
  width: 1992px;
  height: 1254px;
  pointer-events: none;
  user-select: none;
}

.recharge-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 120px;
  z-index: 3;
}

.recharge-top-bg {
  position: absolute;
  inset: 0 0 auto 0;
  width: 1920px;
  height: 89px;
  pointer-events: none;
  user-select: none;
}

.recharge-top-title {
  position: absolute;
  left: 45px;
  top: 36px;
  width: 345px;
  height: 99px;
  pointer-events: none;
  user-select: none;
}

.recharge-top-user {
  position: absolute;
  left: 1143px;
  top: 25px;
  width: 271px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recharge-top-uid {
  font-size: 24px;
  color: #ce805e;
  line-height: 1;
  white-space: nowrap;
}

.recharge-top-switch {
  width: 98px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.recharge-top-switch img {
  width: 100%;
  height: 100%;
}

.recharge-top-link {
  position: absolute;
  top: 6px;
  width: 180px;
  height: 64px;
  display: block;
}

.recharge-top-home {
  left: 1467px;
}

.recharge-top-contact {
  left: 1664px;
}

.recharge-top-link img {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: auto;
  height: 21px;
}

.recharge-side {
  position: absolute;
  left: 39px;
  top: 137px;
  width: 282px;
  height: 762px;
  z-index: 2;
}

.recharge-side-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.recharge-side-bg img {
  position: absolute;
  left: -3.91%;
  top: -0.39%;
  width: 373.9%;
  height: 100.39%;
  max-width: none;
}

.recharge-tabs {
  position: absolute;
  left: 25px;
  top: 102px;
  width: 232px;
}

.recharge-tab {
  position: relative;
  width: 232px;
  height: 126px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.recharge-tab+.recharge-tab {
  margin-top: 0;
}

.recharge-tab-img {
  position: absolute;
  left: 11px;
  top: 9px;
  width: 208px;
  height: 107px;
}

.recharge-tab-highlight {
  position: absolute;
  inset: 0;
  width: 232px;
  height: 126px;
  opacity: 0;
  pointer-events: none;
}

.recharge-tab.is-active .recharge-tab-highlight {
  opacity: 1;
}

.recharge-side-coming-soon {
  position: absolute;
  left: 95px;
  top: 550px;
  width: 178px;
  height: 80px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transform-origin: 8px 72px;
  transform: rotate(-4deg) scale(1);
  animation: recharge-coming-soon-breathe 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes recharge-coming-soon-breathe {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }

  50% {
    transform: rotate(-4deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recharge-side-coming-soon {
    animation: none;
  }
}

.recharge-main {
  position: absolute;
  left: 418px;
  top: 148px;
  width: 1265px;
  height: clamp(560px, calc(var(--recharge-stage-viewport-height) - 50px), 2500px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.recharge-main::after {
  content: '';
  display: block;
  height: 120px;
  pointer-events: none;
}

.recharge-main {
  scrollbar-width: none;
}

.recharge-main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.recharge-scroll-proxy {
  position: fixed;
  top: 0;
  right: 0;
  width: 14px;
  height: var(--recharge-viewport-height-px, var(--recharge-viewport-height));
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 9;
}

.recharge-scroll-proxy-spacer {
  width: 1px;
}

.recharge-account-modal[hidden] {
  display: none !important;
}

.recharge-account-modal {
  position: fixed;
  inset: 0;
  z-index: 11;
}

.recharge-account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.recharge-account-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 908px;
  height: 658px;
  transform: translate(-50%, -50%) scale(var(--recharge-scale, 1));
  transform-origin: center;
}

.recharge-account-close {
  position: absolute;
  right: 104px;
  top: 118px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.recharge-account-close-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.recharge-account-modal[data-account-current-view='help'] .recharge-account-close {
  display: none;
}

.recharge-account-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.recharge-account-view {
  position: absolute;
  inset: 0;
  padding: 0;
}

.recharge-account-title {
  position: absolute;
  left: 294px;
  top: 185px;
  width: 308px;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.recharge-account-title-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.recharge-account-title-img[data-fit='cover'] {
  object-fit: cover;
}

.recharge-account-title-img[data-fit='contain'] {
  object-fit: contain;
}

.recharge-account-title-img {
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
}

.recharge-account-form {
  position: absolute;
  left: 191px;
  top: 239px;
  width: 513px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.recharge-account-view[data-account-view='input'] .recharge-account-form {
  height: 138px;
}

.recharge-account-view[data-account-view='confirm'] .recharge-account-form {
  display: none;
}

.recharge-account-field {
  width: 513px;
  height: 59px;
  border-radius: 14px;
  background: #fff0c5;
  position: relative;
}

.recharge-account-field-label {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #de9e81;
  white-space: nowrap;
  width: 48px;
  line-height: 28px;
}

.recharge-account-input {
  position: absolute;
  left: 105px;
  top: 50%;
  transform: translateY(-50%);
  width: 375px;
  height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 24px;
  color: #de9e81;
  line-height: 28px;
  text-align: center;
}

.recharge-account-input::placeholder {
  color: rgba(222, 158, 129, 0.45);
}

.recharge-account-btn {
  position: absolute;
  width: 276px;
  height: 89px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.recharge-account-btn-slice {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.recharge-account-btn-img {
  position: absolute;
  width: 101.09%;
  height: 107.1%;
  left: -5.43%;
  top: -14.78%;
  pointer-events: none;
  user-select: none;
}

.recharge-account-view[data-account-view='input'] .recharge-account-btn {
  position: absolute;
  left: 119px;
  top: 158px;
}

.recharge-account-view[data-account-view='input'] .recharge-account-field {
  position: absolute;
  left: 0;
  top: 48px;
}

.recharge-account-help {
  position: absolute;
  left: 50%;
  top: 494px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #de9e81;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.recharge-account-help-title {
  left: 110px;
  right: 110px;
  top: 128px;
  width: auto;
  height: 40px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recharge-account-help-title-text {
  display: block;
  max-width: 100%;
  padding: 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: #d9886d;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(255, 252, 243, 0.95),
    0 0 10px rgba(255, 245, 220, 0.72);
}

.recharge-account-help-panel {
  position: absolute;
  left: 128px;
  top: 202px;
  width: 650px;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.recharge-account-help-copy {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(235, 184, 136, 0.42);
  background: rgba(255, 249, 231, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: #b26d52;
  font-size: 17px;
  line-height: 1.58;
}

.recharge-account-help-copy p {
  position: relative;
  margin: 0;
  padding-left: 16px;
}

.recharge-account-help-copy p + p {
  margin-top: 10px;
}

.recharge-account-help-copy p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e4906f;
  transform: translateY(-50%);
}

.recharge-account-help-copy p:last-child {
  margin-bottom: 0;
}

.recharge-account-help-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.recharge-account-help-shot {
  width: 184px;
  height: 260px;
  padding: 8px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe8b8 100%);
  border: 2px solid rgba(230, 166, 118, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 20px rgba(220, 157, 112, 0.12);
}

.recharge-account-help-shot-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: contain;
  object-position: center center;
  background: #fff8dc;
  box-shadow: inset 0 0 0 1px rgba(231, 182, 136, 0.32);
}

.recharge-account-help-back {
  align-self: center;
  margin-top: 14px;
  position: relative;
  width: 220px;
  height: 64px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.recharge-account-help-back:focus-visible {
  outline: 2px solid rgba(230, 162, 117, 0.32);
  outline-offset: 4px;
}

.recharge-account-help-back-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.recharge-account-help-back-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #df7b25;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 0 rgba(255, 245, 166, 0.95),
    1px 0 0 rgba(255, 249, 209, 0.86),
    -1px 0 0 rgba(255, 249, 209, 0.86),
    0 -1px 0 rgba(255, 249, 209, 0.86);
  pointer-events: none;
  user-select: none;
}

.recharge-account-error {
  position: absolute;
  left: 50%;
  top: 532px;
  transform: translateX(-50%);
  width: 720px;
  min-height: 22px;
  font-size: 18px;
  color: #d46265;
  text-align: center;
}

.recharge-account-info {
  position: absolute;
  left: 191px;
  top: 239px;
  width: 513px;
  display: grid;
  row-gap: 18px;
}

.recharge-account-info-row {
  position: relative;
  width: 513px;
  height: 59px;
  border-radius: 14px;
  background: #fff0c5;
  font-size: 24px;
  color: #de9e81;
  line-height: 28px;
}

.recharge-account-info-row .k {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  white-space: nowrap;
  font-weight: 500;
}

.recharge-account-info-row .v {
  position: absolute;
  left: 105px;
  top: 50%;
  transform: translateY(-50%);
  width: 375px;
  text-align: center;
  font-weight: 500;
}

[data-account-view='confirm'] .recharge-account-btn {
  position: absolute;
  left: 310px;
  top: 470px;
}


.recharge-category[hidden] {
  display: none !important;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 383px);
  column-gap: 58px;
  row-gap: 39px;
}

.recharge-card {
  position: relative;
  width: 383px;
  height: 408px;
}

.recharge-card-bg {
  position: absolute;
  left: 2px;
  top: 0;
  width: 381px;
  height: 374px;
  pointer-events: none;
  user-select: none;
}

.recharge-card-desc {
  position: absolute;
  left: 21px;
  top: 286px;
  width: 340px;
  min-height: 42px;
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  color: #443833;
}

.recharge-card-pic {
  position: absolute;
  left: 5px;
  top: 44px;
  width: 368px;
  height: 216px;
  pointer-events: none;
  user-select: none;
}

.recharge-card-pic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.recharge-card-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 112px;
  height: 68px;
  pointer-events: none;
  user-select: none;
}

.recharge-card-badge-bg {
  position: absolute;
  inset: 0;
  width: 112px;
  height: 68px;
}

.recharge-card-badge-text {
  position: absolute;
  left: 15px;
  top: 18px;
  transform: translateY(-50%);
  font-size: 21px;
  color: #feffae;
  line-height: 1;
  white-space: nowrap;
}

.recharge-card-badge-icon {
  position: absolute;
  left: 23px;
  top: 31px;
  width: 20px;
  height: 20px;
}

.recharge-card-badge-value {
  position: absolute;
  left: 46px;
  top: 41px;
  transform: translateY(-50%);
  font-size: 17px;
  color: #feffae;
  line-height: 1;
}

.recharge-card-buy {
  position: absolute;
  left: 70px;
  top: 328px;
  width: 256px;
  height: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.recharge-card-buy-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 256px;
  height: 80px;
  pointer-events: none;
  user-select: none;
}

.recharge-card-price-cluster {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: max-content;
  max-width: calc(100% - 30px);
}

.recharge-card-price-main,
.recharge-card-price-old {
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
}

.recharge-card-price-main {
  justify-content: center;
  gap: 1px;
  font-weight: 700;
  font-size: 38px;
  color: #e3742c;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.recharge-card-price-old {
  align-self: flex-start;
  margin-left: 5px;
  gap: 1px;
  font-size: 22px;
  color: #f6ae5a;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.recharge-card-price-currency {
  font-size: 0.62em;
  line-height: 1;
}

.recharge-card-price-old .recharge-card-price-currency {
  font-size: 0.68em;
}

.recharge-card-price-amount {
  line-height: 1;
}

.recharge-card-price-cluster[data-price-density='wide'] .recharge-card-price-main {
  font-size: 35px;
}

.recharge-card-price-cluster[data-price-density='wide'] .recharge-card-price-old {
  font-size: 20px;
}

.recharge-card-price-cluster[data-price-density='compact'] .recharge-card-price-main {
  font-size: 31px;
}

.recharge-card-price-cluster[data-price-density='compact'] .recharge-card-price-old {
  margin-left: 4px;
  font-size: 18px;
}

.recharge-modal[hidden] {
  display: none !important;
}

.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.recharge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.recharge-modal-panel {
  position: absolute;
  left: var(--recharge-modal-left, 50vw);
  top: var(--recharge-modal-top, 50vh);
  width: 1200px;
  height: 760px;
  transform: translate(-50%, -50%) scale(var(--recharge-modal-scale, 1));
  transform-origin: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.recharge-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.recharge-modal-close::before,
.recharge-modal-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  transform-origin: center;
}

.recharge-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.recharge-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.recharge-modal-status {
  position: absolute;
  left: 24px;
  right: 84px;
  top: 22px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
  white-space: pre-wrap;
  line-height: 1.25;
}

.recharge-modal-dropin {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  bottom: 0;
  padding: 14px 18px 18px;
  overflow: auto;
}
