/* Reference-aligned itemshop and profile. Always contain bitmap art in its box. */
.shop-banner {
  display: grid;
  grid-template-columns: 33% minmax(0, 1fr) 25%;
  align-items: stretch;
  min-height: 218px;
  background: radial-gradient(ellipse at 5% 25%, #a3661538, transparent 54%), linear-gradient(110deg, #13170c, #080e14 68%);
}
.shop-banner .shop-illustration {
  width: auto;
  min-width: 0;
  display: grid;
  align-self: stretch;
  position: relative;
  isolation: isolate;
}
.shop-illustration .treasure.treasure-image {
  position: absolute;
  inset: 6px 4px;
  width: calc(100% - 8px);
  height: calc(100% - 12px);
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  object-position: center 68%;
  transform: none;
  filter: drop-shadow(0 4px 12px #ffc73126);
}
.shop-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(140deg, #ffd62910, transparent 52%), repeating-linear-gradient(145deg, transparent 0 45px, #eab72406 46px 48px, transparent 49px 80px);
}
.shop-banner .shop-banner-copy { min-width: 0; padding: 20px 8px 22px 0; }
.shop-banner h2 { font-size: clamp(21px, 1.6vw, 25px); line-height: 1.13; letter-spacing: -.35px; }
.shop-banner p { font-size: 11px; line-height: 1.65; }
.shop-banner .payment-preview {
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  align-self: center;
  gap: 12px;
  margin: 18px 0;
  padding: 4px 13px 4px 22px;
  border-left: 1px solid #ffffff14;
}
.payment-brand { display: flex; align-items: center; gap: 9px; color: #dce4f2; font-size: 15px; font-weight: 700; white-space: nowrap; margin-bottom: 5px; }
.paybylink-mark { width: 23px; height: 23px; flex-shrink: 0; }
.payment-method { display: flex; align-items: center; gap: 10px; font-size: 10px; line-height: 1.3; color: #b8c2d4; white-space: nowrap; }
.payment-method-icon { width: 18px; height: 18px; flex-shrink: 0; color: #919fb8; }
.payment-method em { color: #f3d222; font-size: inherit; font-style: normal; }
.payment-preview .payment-state { font-size: 6px; line-height: 1.2; color: #7f8a9a; margin-top: -1px; }

.profile-panel {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 15px;
  row-gap: 8px;
  padding: 13px 15px 9px;
}
.profile-panel > .section-mini-heading { grid-column: 1 / -1; grid-row: 1; padding-bottom: 8px; border-bottom: 1px solid #ffffff0b; }
.profile-edit { padding: 3px 7px; background: #dfc82e0b; border-radius: 4px; font-size: 9px; }
.profile-panel .profile-main { display: contents; }
.profile-panel .avatar-stage { grid-column: 1; grid-row: 2 / 4; width: 85px; height: 136px; align-self: center; display: grid; place-items: center; }
.profile-panel .minecraft-avatar { margin: 0; transform: none; filter: drop-shadow(0 6px 3px #0005); }
.profile-panel .mc-arm { transform: none; }
.profile-panel .profile-info { grid-column: 2; grid-row: 2; min-width: 0; align-self: center; }
.profile-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.profile-name > .icon { width: 16px; height: 16px; color: #ffdf24; flex-shrink: 0; }
.profile-name strong { color: #edf0f6; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.profile-panel .profile-caption { display: flex; align-items: center; gap: 4px; margin: 2px 0 0 23px; font-size: 8px; color: #58de65; }
.profile-caption .live-dot { width: 4px; height: 4px; }
.profile-panel .wallet-line { flex-direction: row; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; }
.profile-panel .wallet-line b { font-size: 14px; font-weight: 650; }
.profile-panel .wallet-line small { font-size: 9px; }
.profile-panel .wallet-line .button { min-height: 30px; font-size: 9px; padding: 8px 12px; }
.profile-panel .profile-stats { grid-column: 2; grid-row: 3; margin: 0; text-align: left; align-self: end; }
.profile-panel .profile-stats > div { padding-left: 11px; }
.profile-panel .profile-stats > div:first-child { padding-left: 0; }
.profile-panel .profile-stats small { font-size: 8px; white-space: nowrap; }
.profile-panel .profile-stats b { font-size: 10px; }

@media (min-width: 1001px) and (max-width: 1240px) {
  .shop-banner { grid-template-columns: 31% minmax(0, 1fr) 26%; }
  .shop-banner .payment-preview { padding-left: 13px; padding-right: 8px; gap: 11px; }
  .payment-brand { font-size: 13px; gap: 7px; }
  .payment-method { font-size: 9px; gap: 8px; }
  .shop-banner p { font-size: 10px; }
  .profile-panel { grid-template-columns: 74px minmax(0, 1fr); column-gap: 11px; padding-left: 12px; padding-right: 12px; }
  .profile-panel .avatar-stage { width: 74px; }
  .profile-panel .wallet-line .button { padding: 7px 8px; font-size: 8px; }
  .profile-panel .profile-stats small { font-size: 7px; }
  .profile-panel .profile-stats > div { padding-left: 7px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .main-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-banner { grid-template-columns: 32% minmax(0, 1fr) 26%; }
  .profile-panel { grid-template-columns: 85px minmax(0, 1fr); }
  .profile-panel .profile-info { max-width: 400px; width: 100%; }
  .profile-panel .profile-stats { max-width: 400px; width: 100%; }
}
@media (max-width: 760px) {
  .shop-banner { grid-template-columns: 34% minmax(0, 1fr); min-height: 0; }
  .shop-banner .shop-banner-copy { padding: 21px 13px 23px 0; }
  .shop-banner h2 { font-size: clamp(19px, 5vw, 24px); }
  .shop-banner p { font-size: 10px; }
  .shop-banner p br { display: none; }
  .shop-banner .button { font-size: 11px; min-height: 39px; padding: 11px 13px; }
  .shop-banner .payment-preview { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; border-left: 0; border-top: 1px solid #ffffff14; margin: 0 16px 15px; padding: 14px 0 0; }
  .payment-brand { grid-column: 1 / -1; margin-bottom: 2px; font-size: 15px; }
  .payment-preview .payment-state { grid-column: 1 / -1; margin-top: 2px; font-size: 7px; }
  .payment-method { font-size: 9px; gap: 8px; }
  .profile-panel { min-height: 218px; grid-template-columns: 81px minmax(0, 1fr); padding: 14px; column-gap: 13px; }
  .profile-panel .avatar-stage { width: 81px; height: 137px; }
  .profile-panel .profile-stats small { font-size: 7px; }
  .profile-panel .profile-stats > div { padding-left: 7px; }
}
@media (max-width: 380px) {
  .shop-banner { grid-template-columns: 31% minmax(0, 1fr); }
  .shop-banner h2 { font-size: 19px; }
  .shop-banner .button { font-size: 10px; padding: 10px 12px; }
  .profile-panel { grid-template-columns: 69px minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  .profile-panel .avatar-stage { width: 69px; }
  .profile-panel .wallet-line .button { padding: 7px 8px; font-size: 8px; }
  .profile-panel .wallet-line b { font-size: 12px; }
  .profile-name strong { font-size: 12px; }
  .profile-panel .profile-stats small { font-size: 6px; }
}
