/* Çanta — mock grid envanter */
.bg {
  --navy: #07101c;
  --panel: #0a1528;
  --slot: #101c30;
  --gold: #f6c445;
  --cream: #f7f1e4;
  --orange: #ff9a2e;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  user-select: none;
}
.bg button { -webkit-tap-highlight-color: transparent; }
.bg svg { display: block; flex-shrink: 0; }

.bg-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  background: var(--panel);
  border-bottom: 1px solid rgba(246, 196, 69, 0.18);
}
.bg-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 900;
  color: #fff;
}
.bg-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bg-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.bg-icon-btn svg { width: 22px; height: 22px; }
.bg-icon-btn:active { transform: scale(0.95); }
.bg-icon-btn.bg-mail,
.bg-icon-btn.bg-settings {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.bg-icon-btn.bg-mail.has-mail {
  filter: drop-shadow(0 0 6px rgba(80, 255, 140, 0.45));
}
.bg-mail-n {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  color: #1a1208;
  background: #ffe56a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.bg-mail-ico-btn,
.bg-settings-ico {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.bg-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 8px;
}
.bg-tab {
  min-height: 36px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.75);
  background: #122036;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bg-tab.on {
  color: #fff;
  background: linear-gradient(180deg, #ffb347 0%, #ff8a1a 55%, #e06a00 100%);
  border-color: rgba(255, 200, 120, 0.55);
  box-shadow:
    0 0 14px rgba(255, 140, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bg-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 7px;
  padding: 4px 10px 12px;
  align-content: start;
  align-items: start;
  justify-items: stretch;
}

/* İkon karesi — Background (renkli zemin) pack ile uyumlu sahne */
.bg-slot {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: start;
  border-radius: 10px;
  padding: 0;
  display: grid;
  place-items: center;
  /* Mavi dolgu yok: asset’in kendi renkli zemini görünsün */
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(165deg, #141c2a 0%, #070b12 100%);
  border: 1.5px solid rgba(160, 175, 200, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
}
.bg-slot.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.55);
  box-shadow: none;
  opacity: 0.45;
  pointer-events: none;
}
.bg-slot img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.bg-slot:active:not(.is-empty) { transform: scale(0.96); }
.bg-slot.is-bg-frame {
  border-width: 2px;
  background: #05080e;
}
.bg-slot.is-bg-frame img {
  width: 100%;
  height: 100%;
  filter: none;
}
.bg-slot.is-bg-frame.rarity-common {
  border-color: #d8dee8;
  box-shadow:
    0 0 0 1px rgba(40, 48, 64, 0.45),
    0 0 10px rgba(220, 228, 240, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.bg-slot.is-bg-frame.rarity-legendary {
  border-color: #e04040;
  box-shadow:
    0 0 0 1px rgba(60, 10, 10, 0.55),
    0 0 14px rgba(220, 48, 48, 0.5),
    inset 0 0 0 1px rgba(255, 160, 140, 0.2);
}
.bg-slot.is-bg-frame.rarity-rare {
  border-color: #f6c445;
  box-shadow:
    0 0 0 1px rgba(80, 50, 0, 0.55),
    0 0 12px rgba(246, 196, 69, 0.45),
    inset 0 0 0 1px rgba(255, 230, 150, 0.2);
}

.bg-slot.rarity-common {
  border-color: #8fa0b8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 6px rgba(140, 160, 190, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.bg-slot.rarity-uncommon {
  border-color: #4eb8ff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(78, 184, 255, 0.28),
    inset 0 0 0 1px rgba(120, 200, 255, 0.14),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.bg-slot.rarity-rare {
  border-color: #f6c445;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 9px rgba(246, 196, 69, 0.36),
    inset 0 0 0 1px rgba(255, 230, 150, 0.18),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
}
.bg-slot.rarity-legendary {
  border-color: #e04040;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(220, 48, 48, 0.42),
    inset 0 0 0 1px rgba(255, 160, 140, 0.2),
    inset 0 0 12px rgba(0, 0, 0, 0.42);
}

/* .bg-lv / .bg-qty → home.css .iq-lv / .iq-qty ile ortak */
.bg-on {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 0 0 0 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  color: #143010;
  background: linear-gradient(180deg, #b6f08a, #6fdc4a);
  border: 1.5px solid #fff;
  border-top: none;
  border-right: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bg-foot {
  flex: 0 0 auto;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0c1830, #081222);
  border-top: 1px solid rgba(246, 196, 69, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bg-cap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-cap-ico svg { width: 18px; height: 18px; }
.bg-cap strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}
.bg-cap.is-over strong {
  color: #ff8f8f;
}
.bg-set-cap.is-over strong {
  color: #ff8f8f;
}
.bg-set-cap.is-over em {
  color: #ffb0b0;
}
.bg-plus {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: #1a2e4a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bg-plus:active { transform: scale(0.94); }

.bg-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bg-btn {
  min-height: 46px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
  border: none;
}
.bg-btn-sell {
  color: #e8f4ff;
  background: linear-gradient(180deg, #3a6aa8, #245088);
  box-shadow: 0 3px 0 #16365c;
}
.bg-btn-sort {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 #c47d08;
}
.bg-btn:active { transform: translateY(1px); }

@media (max-height: 700px) {
  .bg-grid { gap: 6px; }
  .bg-tabs { padding-top: 8px; }
}
@media (min-width: 420px) {
  .bg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* —— Çanta ayarları paneli —— */
.bg-set { position: relative; padding-top: 2px; }
.bg-set-x {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: rgba(247, 241, 228, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bg-set-x:active { transform: scale(0.94); }
.bg-set-head {
  text-align: center;
  margin: 0 28px 14px 0;
}
.bg-set-kicker {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #f6c445;
}
.bg-set-head h2 {
  margin: 4px 0 4px;
  font-size: 20px;
  font-weight: 900;
}
.bg-set-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.55);
}
.bg-set-block {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bg-set-block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 196, 69, 0.9);
}
.bg-set-cap-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.bg-set-cap-top strong { font-size: 16px; font-weight: 900; color: #fff; }
.bg-set-cap-top em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.bg-set-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 6px;
}
.bg-set-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c47d08, #f0a000, #ffe56a);
}
.bg-set-cap small {
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.45);
}
.bg-set-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7f1e4;
}
.bg-set-row strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.bg-set-row em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.5);
}
.bg-set-row:active:not(:disabled) { transform: scale(0.98); }
.bg-set-row:disabled { opacity: 0.45; }
.bg-set-pay {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.bg-set-pay .rw { color: #9fe870; font-size: 13px; }
.bg-set-pay .rw-ico,
.bg-set-pay img.rw-ico { width: 16px; height: 16px; }
.bg-set-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.bg-set-seg-btn {
  min-height: 40px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(247, 241, 228, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-set-seg-btn.on {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 0 #c47d08;
}
.bg-set-toggle .bg-set-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background 0.2s ease;
}
.bg-set-toggle .bg-set-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f7f1e4;
  transition: transform 0.2s ease;
}
.bg-set-toggle.on {
  border-color: rgba(61, 220, 110, 0.35);
  background: rgba(61, 220, 110, 0.1);
}
.bg-set-toggle.on .bg-set-switch {
  background: #3ddc6e;
  border-color: rgba(255, 255, 255, 0.2);
}
.bg-set-toggle.on .bg-set-switch::after {
  transform: translateX(18px);
}
.bg-set-ok { margin-top: 4px; }

/* —— Çanta eşya detay —— */
.bg-item {
  position: relative;
  text-align: center;
  padding-top: 4px;
}
.bg-item-x {
  position: absolute;
  top: -4px;
  right: -2px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: rgba(247, 241, 228, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bg-item-x:active { transform: scale(0.94); }
.bg-item-ico {
  width: 112px;
  height: 112px;
  margin: 8px auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(165deg, #141c2a 0%, #070b12 100%);
  border: 2px solid rgba(246, 196, 69, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bg-item-ico.rarity-common {
  border-color: #8fa0b8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(140, 160, 190, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.bg-item-ico.rarity-uncommon {
  border-color: #4eb8ff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(78, 184, 255, 0.32),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(120, 200, 255, 0.16);
}
.bg-item-ico.rarity-rare {
  border-color: #f6c445;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(246, 196, 69, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 230, 150, 0.2);
}
.bg-item-ico.rarity-legendary {
  border-color: #e04040;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(220, 48, 48, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 160, 140, 0.2);
}
.bg-item-art,
.bg-item-ico img.bg-item-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bg-item-ico.is-bg-frame .bg-item-art,
.bg-item-ico.is-bg-frame img.bg-item-art {
  width: 100%;
  height: 100%;
  filter: none;
}
.bg-item-rar {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bg-item-rar.rarity-common { color: #b0b8c6; }
.bg-item-rar.rarity-uncommon { color: #4eb8ff; }
.bg-item-rar.rarity-rare { color: #f6c445; }
.bg-item-rar.rarity-legendary { color: #ff6a6a; }
.bg-item h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
}
.bg-item-meta {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.6);
}
.bg-item-blurb {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 241, 228, 0.55);
}
.bg-item-buff {
  margin: -6px 0 14px;
  font-size: 12px;
  font-weight: 800;
  color: #f0c14a;
}
.bg-item-fx {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 2px auto 16px;
  padding: 12px 16px 11px;
  width: min(100%, 240px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bg-item-fx-main {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.bg-item-fx-val {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 18px currentColor;
}
.bg-item-fx-label {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}
.bg-item-fx-scope,
.bg-item-fx-live {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}
.bg-item-fx-live {
  color: #7dffb2;
  opacity: 1;
}
.bg-item-fx.is-atk {
  color: #f0c14a;
  background: rgba(240, 193, 74, 0.1);
  border-color: rgba(240, 193, 74, 0.35);
}
.bg-item-fx.is-def {
  color: #8ec0ff;
  background: rgba(110, 168, 255, 0.1);
  border-color: rgba(110, 168, 255, 0.35);
}
.bg-item-fx.is-crit {
  color: #ff9a78;
  background: rgba(255, 120, 90, 0.12);
  border-color: rgba(255, 120, 90, 0.4);
}

/* —— Sandık açılış —— */
.bg-chest {
  position: relative;
  text-align: center;
  padding-top: 4px;
}
.bg-chest-hero {
  width: 120px;
  height: 120px;
  margin: 6px auto 12px;
  display: grid;
  place-items: center;
}
.bg-chest-art,
.bg-chest-hero img.bg-chest-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  animation: bg-chest-pop 0.45s ease-out;
}
@keyframes bg-chest-pop {
  from { transform: scale(0.72); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}
.bg-chest h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
}
.bg-chest-sub {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.bg-chest-rw {
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
}
.bg-chest-drops {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: min(42vh, 280px);
  overflow-y: auto;
  text-align: left;
}
.bg-chest-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-chest-drop.rarity-uncommon { border-color: rgba(78, 184, 255, 0.45); }
.bg-chest-drop.rarity-rare { border-color: rgba(246, 196, 69, 0.55); }
.bg-chest-drop.rarity-legendary { border-color: rgba(220, 48, 48, 0.55); }
.bg-chest-drop-ico,
.bg-chest-drop img.bg-chest-drop-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.bg-chest-drop-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bg-chest-drop-meta strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-chest-drop-meta em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(246, 196, 69, 0.9);
}

/* Posta kutusu */
.bg-mail-sheet {
  position: relative;
  text-align: center;
}
.bg-mail-sub {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.bg-mail-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: min(48vh, 340px);
  overflow-y: auto;
  text-align: left;
}
.bg-mail-empty {
  padding: 18px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.bg-mail-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-mail-row.rarity-uncommon { border-color: rgba(78, 184, 255, 0.45); }
.bg-mail-row.rarity-rare { border-color: rgba(246, 196, 69, 0.55); }
.bg-mail-row.rarity-legendary { border-color: rgba(220, 48, 48, 0.55); }
.bg-mail-ico,
.bg-mail-row img.bg-mail-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.bg-mail-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.bg-mail-meta strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-mail-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}
.bg-mail-take {
  min-width: 52px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0b429);
  border: 0;
}
.bg-mail-take:active { transform: scale(0.96); }
.bg-mail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
