.topup-art {
  --scene: url("topup-treasury.webp");
}

.topup-cta {
  display: inline-grid;
  place-items: center;
  width: 15rem;
  max-width: 100%;
  min-height: 3.25rem;
  border-radius: 2rem;
  background: #053b34 url("topup-cta.webp") center / 100% 100% no-repeat;
  color: #fff2da;
  text-decoration: none;
  font-weight: 700;
}

.topup-cta:hover { filter: brightness(1.12); }
.topup-cta:focus-visible { outline: 2px solid #f3c87d; outline-offset: 4px; }

.topup-packages {
  max-width: 54rem;
  margin: 2rem auto 0;
  scroll-margin-top: 9rem;
}

.topup-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.topup-offers li {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #141a20;
}

.topup-offers strong { font-size: 1.25rem; }
.topup-offers bdi { color: var(--gold); }
.topup-offers span, .topup-packages ol { color: var(--muted); line-height: 1.8; }

.topup-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.store-catalog { margin: 2.5rem 0; scroll-margin-top: 9rem; }
.store-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-filters button {
  background: #151c24;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: #f7ead5;
  padding: .55rem .85rem;
  font: inherit;
  cursor: pointer;
}
.store-filters button[aria-pressed="true"] { background: #e9bd73; color: #18130e; }
.store-catalog [role="status"] { color: var(--muted); font-size: .95rem; }
.store-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .8rem;
  list-style: none;
  padding: 0;
}
.store-products li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: .2rem .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #141a20;
}
.store-products img { grid-row: span 2; border: 1px solid #8b6945; border-radius: .45rem; }
.store-products span { grid-column: 2; color: var(--gold); font-size: .95rem; }
.store-more[hidden] { display: none; }
.store-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.store-heading .topup-cta { width: 10rem; min-height: 2.6rem; }
.store-note { color: var(--muted); }
.store-return { color: #9beac7; }
.store-products li { scroll-margin-top: 9rem; }
.store-products li:target { border-color: #e9bd73; }
.store-products img { grid-row: 1 / span 2; }
.store-products .item-description { grid-column: 1 / -1; margin: .35rem 0; color: var(--muted); line-height: 1.5; }
.store-products .item-buy { grid-column: 1 / -1; justify-self: start; min-height: 2.4rem; color: #f9e7c5; }
.topup-offers .bonus-offer { border-color: #a97b41; background: linear-gradient(145deg, #2a2116, #151b22); }
.topup-offers .suggested-offer { border-style: dashed; }

.topup-actions .button, .topup-cta, .store-products .item-buy, .store-catalog .store-more {
  border: 0;
  border-radius: 0;
  background: transparent url("store-garnet-button.webp") center / 100% 100% no-repeat;
  color: #fff2d7;
  font-weight: 700;
  filter: none;
  text-shadow: 0 1px 2px #16080a;
}
.topup-actions .button:hover, .topup-cta:hover, .store-products .item-buy:hover, .store-catalog .store-more:hover {
  filter: brightness(1.22);
}
.topup-actions .button:focus-visible, .store-products .item-buy:focus-visible, .store-more:focus-visible {
  outline: 2px solid #edc081;
  outline-offset: 3px;
}
.store-filters button[aria-pressed="true"] {
  color: #fff5ef;
  border-color: #ea6667;
  background: #8f2330;
}
.store-products {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.store-products li {
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .45rem .7rem;
  background: linear-gradient(145deg, #1d2029, #11151c 80%);
  padding: .9rem;
}
.store-products img { grid-column: 1; grid-row: 1 / span 2; }
.store-products strong { grid-column: 2; grid-row: 1; align-self: center; }
.store-products li > span:not(.item-duration) {
  grid-column: 3;
  grid-row: 1;
  white-space: nowrap;
  color: #ffe1a7;
}
.store-products .item-description {
  grid-column: 2 / -1;
  grid-row: 2;
  margin: 0 0 .2rem;
}
.store-products .item-duration {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  color: #d8bb83;
  font-size: .85rem;
}
.store-products .item-buy {
  grid-column: 3;
  grid-row: 3;
  justify-self: stretch;
  min-width: 5.5rem;
  padding: .55rem 1rem;
}
@media (max-width: 390px) {
  .store-products li > span:not(.item-duration) { grid-column: 2; grid-row: 2; }
  .store-products .item-description { grid-row: 3; }
  .store-products .item-duration, .store-products .item-buy { grid-row: 4; }
}

.topup-signin {
  margin-block: 1rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid #624532;
  border-radius: 1rem;
  background: #15171d;
}
.topup-signin h3 { margin-block: 0 .5rem; }
.topup-signin form:not([hidden]) {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .8rem;
}
.topup-signin label { flex: 1 1 12rem; }
.topup-signin input {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .75rem;
  border: 1px solid #74563e;
  border-radius: .5rem;
  background: #0d1015;
  color: inherit;
  font: inherit;
}
.topup-signin a { color: #f5bf76; text-decoration: underline; }
.topup-signin [hidden] { display: none; }

/* Reuse the download page's red and gold artwork for the store's primary actions. */
.topup-art {
  border-color: #6b4939;
  box-shadow: 0 18px 45px #0004;
}
.topup-actions { gap: .75rem; }
.topup-actions .button.ghost,
.store-catalog .store-more {
  background: #191b24;
  border: 1px solid #715b49;
  border-radius: .65rem;
  color: #f5dfbc;
  min-height: 2.75rem;
}
.topup-actions .topup-cta,
.store-heading .topup-cta,
.topup-signin .topup-cta,
.store-products .item-buy {
  background: transparent url("download-button.webp") center / 100% 100% no-repeat;
  border: 1px solid transparent;
  border-radius: .45rem;
  color: #fff4dd;
  min-height: 3.15rem;
  text-shadow: 0 1px 4px #30040c;
}
.topup-actions .topup-cta { width: auto; padding-inline: 1.5rem; }
.store-heading .topup-cta { width: auto; padding-inline: 1rem; }
.store-catalog {
  padding: clamp(.9rem, 2.5vw, 1.75rem);
  border: 1px solid #493b35;
  border-radius: 1rem;
  background: #0f1219;
}
.store-heading h2 { margin: 0; }
.store-note { line-height: 1.65; }
.store-filters {
  gap: .45rem;
  padding-block: .25rem .7rem;
  border-bottom: 1px solid #433533;
}
.store-filters button {
  min-height: 2.75rem;
  color: #e6d9cc;
  background: #1b1d26;
  border-color: #49404a;
}
.store-filters button[aria-pressed="true"] {
  color: #ffebca;
  border-color: #b88c64;
  background: #3b2b29;
}
.store-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.store-products li {
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: .65rem;
  background: linear-gradient(155deg, #24212b, #171923 70%);
  border-color: #534047;
}
.store-products img { grid-row: 1; }
.store-products strong { align-self: center; }
.store-products .item-description { grid-column: 1 / -1; color: #e0d0c1; }
.store-products .item-buy { min-width: 7rem; padding-inline: 1.25rem; }
.store-products .item-duration { grid-column: 1 / 3; }
.store-products li > span:not(.item-duration) {
  align-self: center;
  background: #332722;
  border-radius: .4rem;
  padding: .22rem .4rem;
  color: #ffdda8;
}
@media (max-width: 480px) {
  .topup-actions .topup-cta, .topup-actions .button.ghost { flex: 1 1 auto; }
  .store-products li {
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
  }
  .store-products img { grid-row: 1 / span 2; align-self: center; }
  .store-products strong { grid-column: 2 / -1; }
  .store-products li > span:not(.item-duration) { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .store-products .item-description { grid-row: 3; }
  .store-products .item-duration, .store-products .item-buy { grid-row: 4; }
}
