.ghero {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px 16px; align-items: center;
  margin: 18px 0 22px; padding: 18px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 32, 56, .16), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--rule); border-radius: 14px;
}
.gh-logo, .topup .pic {
  display: grid; place-items: center; overflow: hidden;
  background: var(--ink); border: 1px solid var(--rule);
}
.gh-logo { width: 76px; height: 76px; border-radius: 16px; }
.gh-logo img, .topup .pic img { width: 100%; height: 100%; object-fit: cover; }
.gh-logo .mark, .topup .pic .mark {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--display); color: #fff;
  background: linear-gradient(150deg, #4a1c2a, var(--ink-3));
}
.gh-logo .mark { font-size: 2rem; }
.gh-meta { min-width: 0; }
.gh-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.gh-en { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 2px; }
.gh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gh-tags span {
  font-size: .74rem; padding: 2px 9px; border-radius: 6px;
  color: #d8d2e4; background: var(--ink-3); border: 1px solid var(--rule);
}
.gh-warn {
  grid-column: 1 / -1; margin: 0; padding: 10px 13px;
  font-size: .82rem; line-height: 1.7; color: #e4dcea;
  border: 1px solid rgba(255, 107, 122, .38); border-radius: 10px;
  background: rgba(255, 32, 56, .07);
  text-wrap: pretty;
}

#items { margin-bottom: 56px; }
.topup .pic, .topup .step { display: none; }
.shopbar { display: none; }

@media (min-width: 1100px) {
  .ghero { display: none; }
}

@media (max-width: 1099px) {
  .head.has-hero h2, .head.has-hero .tag { display: none; }
  .head.has-hero { margin: 14px 0 0; }
  .note.rail-dupe { display: none; }
}

@media (max-width: 780px) {
  .ghero { margin: 10px 0 18px; padding: 15px; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 13px; }
  .gh-logo { width: 64px; height: 64px; border-radius: 14px; }
  .gh-name { font-size: 1.14rem; }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 9px; }

  .topup.is-item {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 13px;
    transition: border-color .14s, background-color .14s;
  }
  .topup.is-item .pic {
    display: grid; position: relative; flex: none; overflow: visible;
    width: 50px; height: 50px; border-radius: 11px;
  }
  .topup.is-item .pic img, .topup.is-item .pic .mark { border-radius: 10px; overflow: hidden; }
  .topup.is-item .pic .mark { font-size: 1.3rem; }

  .topup.is-item .info {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 10px; row-gap: 2px; padding: 0; flex: 1; min-width: 0;
  }
  .topup.is-item h3 {
    display: block; -webkit-line-clamp: unset; overflow: visible;
    font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere;
  }
  .topup.is-item .row { display: flex; margin: 0; padding: 0; grid-row: 1; grid-column: 2; }
  .topup.is-item .price {
    min-width: 96px; text-align: center;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    font-size: .98rem; background: var(--ink); border: 1px solid var(--rule);
  }
  .topup.is-item .row .btn-hot {
    position: absolute; inset: 0; width: auto; padding: 0;
    opacity: 0; border-radius: inherit;
  }
  .topup.is-item .row .btn-quiet { width: auto; border-radius: 999px; }
  .topup.is-item .lowstock { margin: 0; grid-column: 1; font-size: .72rem; }
  .topup.is-item.is-out .price { display: none; }
  .topup.is-item .soldout { border-radius: 999px; white-space: nowrap; }

  .topup.is-item:active { background-color: var(--ink-3); }
  .topup.is-item:has(.step button:active) { background-color: var(--ink-2); }
  .topup.is-item.in-cart {
    border-color: rgba(255, 32, 56, .7);
    background: linear-gradient(90deg, rgba(255, 32, 56, .12), rgba(255, 32, 56, .03)), var(--ink-2);
  }
  .topup.is-item.in-cart .price, .topup.is-item.in-cart .row .btn-hot { display: none; }
  .topup.is-item.in-cart .step {
    display: flex; align-items: center; gap: 4px; padding: 4px;
    border-radius: 999px; background: var(--ink); border: 1px solid var(--rule);
  }
  .step button {
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    font-size: 1.15rem; font-weight: 700; line-height: 1;
    color: var(--text); background: var(--ink-3);
    -webkit-tap-highlight-color: transparent;
  }
  .step button[data-step="1"] { color: #fff; background: var(--hot); }
  .step button:active { transform: scale(.92); }
  .step b {
    min-width: 30px; text-align: center;
    font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums;
  }

  .shopbar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 10px; right: 10px; z-index: 40;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 16px; border-radius: 16px;
    background: rgba(28, 24, 38, .96); border: 1px solid var(--rule);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .sb-sum { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .sb-sum span { font-size: .72rem; color: var(--muted); }
  .sb-sum strong {
    font-family: var(--mono); font-size: 1.2rem; line-height: 1.2;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .shopbar .btn { flex: none; padding: 11px 14px; font-size: .88rem; }
  .shopbar .btn.is-off { opacity: .45; box-shadow: none; }

  body:has(.shopbar) #items { margin-bottom: 28px; }
  body:has(.shopbar) footer.site { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.shopbar) .helpdesk {
    bottom: calc(92px + env(safe-area-inset-bottom));
    gap: 0; padding: 12px; font-size: 0;
  }
  body:has(.shopbar) .helpdesk svg { width: 24px; height: 24px; }

  #subs {
    position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 20;
    padding-top: 8px; padding-bottom: 8px; margin-bottom: 10px;
    background: rgba(21, 18, 29, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  body:has(.shopbar) .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  body:has(.shopbar) footer.site { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
}

.game-faq { margin-top: 40px; }
.game-faq h2 { font-size: 1.15rem; margin-bottom: 12px; }
