/* =====================================================================
   SHOP SCENE — revealed behind the curtains, not layered as a modal.
   ===================================================================== */
.shop-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 20, 30, 0.55), transparent 60%),
    linear-gradient(180deg, #1a0508, #0a0203 60%, #000);
}
.shop-screen.open { display: block; }

.shop-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-deep);
}

.shop-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  color: var(--gold-bright);
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(255, 217, 77, 0.55), 0 3px 0 #000;
}

.shop-wallet { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-wallet-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold-deep);
}
.shop-wallet-item strong { color: var(--gold-bright); }

.shop-close {
  appearance: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #a4141f;
  background: linear-gradient(180deg, #8a0f18, #4d060c);
  color: #ffd7d7;
  transition: transform 0.15s ease, background 0.15s ease;
}
.shop-close:hover { transform: scale(1.05); background: linear-gradient(180deg, #c81b28, #6b0d14); }

.shop-note {
  margin: 16px 0 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #d9a9ad;
  max-width: 70ch;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, rgba(60, 10, 16, 0.9), rgba(20, 3, 6, 0.95));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.shop-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 217, 77, 0.2);
}

.shop-card-icon { font-size: 2rem; line-height: 1; }
.shop-card-icon img { width: 40px; height: 40px; object-fit: contain; }

.shop-card-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.shop-card-blurb { font-size: 0.7rem; line-height: 1.5; color: #d9a9ad; flex: 1; }

.shop-card-buy {
  appearance: none;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #b8860b, #7a4f10);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.shop-card-buy:hover:not(:disabled) { transform: scale(1.03); background: linear-gradient(180deg, #e0a81c, #9a6413); }
.shop-card-buy:disabled { opacity: 0.45; cursor: not-allowed; }
.shop-card.unaffordable { opacity: 0.72; }

/* Rarity tinting for the chest cards so the tiers read at a glance. */
.shop-card[data-chest="bronze"] { border-color: #a9713b; }
.shop-card[data-chest="silver"] { border-color: #b9c6cf; }
.shop-card[data-chest="gold"]   { border-color: var(--gold-bright); }
.shop-card[data-chest="mythic"] {
  border-color: var(--violet-mid);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 22px rgba(var(--violet-mid-rgb), 0.35);
}

/* =====================================================================
   GAIN RECEIPTS — "+120 coins" flying up when something is awarded.
   ===================================================================== */
.gain-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  overflow: hidden;
}

.gain-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--gold);
  box-shadow: 0 0 24px rgba(255, 217, 77, 0.5);
  white-space: nowrap;
  animation: gainFly 1500ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.gain-chip[data-kind="spins"] { border-color: var(--cyan); box-shadow: 0 0 24px var(--cyan-glow); }
.gain-chip[data-kind="xp"]    { border-color: #4be07a; box-shadow: 0 0 24px rgba(75, 224, 122, 0.5); }
.gain-chip[data-kind="item"]  { border-color: var(--violet-mid); box-shadow: 0 0 24px rgba(var(--violet-mid-rgb), 0.5); }

@keyframes gainFly {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  30%  { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .gain-chip { animation-duration: 900ms; }
}

/* =====================================================================
   DAILY GIFT — deep red royal-carpet treatment with a gold banner.
   No dismiss affordance anywhere: no ✕, no click-outside, no Escape.
   The only way out is COLLECT, and the server keeps re-sending the gift
   until that claim actually lands.
   ===================================================================== */
.daily-gift {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, rgba(70, 6, 12, 0.92), rgba(0, 0, 0, 0.96));
  backdrop-filter: blur(3px);
}
.daily-gift.open { display: flex; }

.daily-gift-modal {
  position: relative;
  width: min(560px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 76px 30px 34px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  /* Vertical nap stripes read as carpet pile rather than flat red. */
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 12px),
    linear-gradient(180deg, #9c111d 0%, #6d0b14 45%, #40060c 100%);
  box-shadow:
    0 0 0 6px rgba(138, 90, 18, 0.45),
    0 22px 60px rgba(0, 0, 0, 0.85),
    inset 0 0 90px rgba(0, 0, 0, 0.5);
  animation: giftIn 620ms cubic-bezier(0.16, 1.05, 0.3, 1.35) both;
}

@keyframes giftIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.86); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.daily-gift-rays {
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 217, 77, 0.14) 0deg 6deg,
    transparent 6deg 12deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%);
  mask-image: radial-gradient(circle, #000 10%, transparent 60%);
  animation: showcaseSpin 22s linear infinite;
  pointer-events: none;
}

/* Ribbon banner, notched at both ends. */
.daily-gift-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 74%;
  padding: 13px 40px;
  background: linear-gradient(180deg, #f2c14a, #c98f16 55%, #8a5a12);
  border: 2px solid #5d3a09;
  border-radius: var(--radius-xs);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.daily-gift-banner-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 3.4vw, 1.5rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #3b2405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.daily-gift-headline {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.95rem, 3.1vw, 1.28rem);
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}
.daily-gift-headline strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-size: 1.18em;
  text-shadow: 0 0 16px rgba(255, 217, 77, 0.75);
}

/* The reward icons row — a tile per reward, with its amount. */
.daily-gift-icons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.gift-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 217, 77, 0.45);
  animation: giftIconPop 520ms cubic-bezier(0.2, 1.3, 0.35, 1.2) both;
}
/* Staggered so they land one after another rather than all at once. */
.gift-icon:nth-child(1) { animation-delay: 220ms; }
.gift-icon:nth-child(2) { animation-delay: 360ms; }
.gift-icon:nth-child(3) { animation-delay: 500ms; }
.gift-icon:nth-child(4) { animation-delay: 640ms; }

@keyframes giftIconPop {
  0%   { opacity: 0; transform: scale(0.3) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gift-icon-art { font-size: 2.1rem; line-height: 1; }
.gift-icon-art img { width: 44px; height: 44px; object-fit: contain; }
.gift-icon-amount {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
}
.gift-icon-name {
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0cfd2;
}

.daily-gift-streak {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #f0cfd2;
  margin-bottom: 18px;
}

.daily-gift-collect {
  position: relative;
  appearance: none;
  cursor: pointer;
  padding: 15px 52px;
  border-radius: var(--radius-sm);
  border: 2px solid #5d3a09;
  background: linear-gradient(180deg, #f2c14a, #c98f16 55%, #8a5a12);
  color: #3b2405;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 4px;
  box-shadow: 0 6px 0 #5d3a09, 0 12px 26px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  animation: collectPulse 1.7s ease-in-out infinite;
}
.daily-gift-collect:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #5d3a09, 0 16px 30px rgba(0, 0, 0, 0.7); }
.daily-gift-collect:active { transform: translateY(4px); box-shadow: 0 2px 0 #5d3a09, 0 6px 14px rgba(0, 0, 0, 0.6); }
.daily-gift-collect:disabled { opacity: 0.6; cursor: wait; animation: none; }

@keyframes collectPulse {
  0%, 100% { box-shadow: 0 6px 0 #5d3a09, 0 12px 26px rgba(0, 0, 0, 0.6); }
  50%      { box-shadow: 0 6px 0 #5d3a09, 0 12px 26px rgba(0, 0, 0, 0.6), 0 0 34px rgba(255, 217, 77, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .daily-gift-modal, .gift-icon { animation-duration: 200ms; }
  .daily-gift-rays, .daily-gift-collect { animation: none; }
}

/* =====================================================================
   CHEST — built from three boxes rather than an image, so the rarity
   tint and the lid-opening animation are both driven by [data-tier].
   ===================================================================== */
.chest-overlay,
.levelup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1350;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(3px);
}
.chest-overlay.open,
.levelup-overlay.open { display: flex; }

.chest-modal,
.levelup-modal {
  position: relative;
  width: min(520px, 96vw);
  padding: 34px 26px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dim);
  background: linear-gradient(180deg, var(--panel-bg-2), var(--panel-bg));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  animation: giftIn 480ms cubic-bezier(0.16, 1.05, 0.3, 1.3) both;
}

.chest-rays,
.levelup-rays {
  position: absolute;
  inset: -50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(34, 227, 255, 0.12) 0deg 6deg,
    transparent 6deg 12deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  animation: showcaseSpin 18s linear infinite;
  pointer-events: none;
}

.chest-title {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 22px;
  color: var(--cyan-bright);
  text-shadow: 0 0 14px var(--cyan-glow);
}

/* ---------- Chest artwork ----------
   One closed-chest illustration per rarity. Because the art has no
   separate lid, opening is staged as: shake -> flash -> the chest
   blows outward while a burst of light expands through it. */
.chest-visual {
  position: relative;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  width: min(300px, 72vw);
  margin: 0 auto 14px;
  display: block;
  padding: 0;
  line-height: 0;
  animation: chestIdle 1.6s ease-in-out infinite;
}
.chest-visual:disabled { cursor: default; }

@keyframes chestIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-5px) rotate(-1.5deg); }
  75%      { transform: translateY(-5px) rotate(1.5deg); }
}

.chest-img {
  width: 100%;
  height: auto;
  display: block;
  /* Rarity-tinted bloom, set per tier below. */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7))
          drop-shadow(0 0 22px var(--chest-aura, rgba(255, 217, 77, 0.55)));
  transition: transform 420ms cubic-bezier(0.3, 1.4, 0.4, 1), filter 420ms ease;
}

/* Expanding ring of light, hidden until the chest is opened. */
.chest-burst {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.15);
  border-radius: 50%;
  background: radial-gradient(circle,
    #fff 0%,
    var(--chest-aura, rgba(255, 217, 77, 0.9)) 35%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
}

/* --- the open sequence --- */
.chest-overlay.shaking .chest-visual {
  animation: chestShake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes chestShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10%      { transform: translateX(-8px) rotate(-3deg); }
  20%      { transform: translateX(8px) rotate(3deg); }
  30%      { transform: translateX(-10px) rotate(-4deg); }
  40%      { transform: translateX(10px) rotate(4deg); }
  50%      { transform: translateX(-12px) rotate(-5deg); }
  60%      { transform: translateX(12px) rotate(5deg); }
  70%      { transform: translateX(-8px) rotate(-3deg); }
  80%      { transform: translateX(6px) rotate(2deg); }
  90%      { transform: translateX(-3px) rotate(-1deg); }
}

.chest-overlay.opened .chest-visual { animation: none; }

.chest-overlay.opened .chest-img {
  transform: scale(1.14);
  filter: drop-shadow(0 0 30px #fff)
          drop-shadow(0 0 70px var(--chest-aura, rgba(255, 217, 77, 0.9)));
}

.chest-overlay.opened .chest-burst {
  animation: chestBurst 900ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes chestBurst {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.15); }
  22%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(2.6); }
}

/* Rarity palettes — border, aura and ray colour per tier. */
.chest-overlay[data-tier="bronze"] .chest-modal { border-color: #a9713b; }
.chest-overlay[data-tier="bronze"] { --chest-aura: rgba(205, 127, 50, 0.75); }

.chest-overlay[data-tier="silver"] .chest-modal { border-color: #b9c6cf; }
.chest-overlay[data-tier="silver"] { --chest-aura: rgba(219, 228, 234, 0.8); }
.chest-overlay[data-tier="silver"] .chest-rays {
  background: repeating-conic-gradient(from 0deg, rgba(219, 228, 234, 0.18) 0deg 6deg, transparent 6deg 12deg);
}

.chest-overlay[data-tier="gold"] .chest-modal { border-color: var(--gold-bright); }
.chest-overlay[data-tier="gold"] { --chest-aura: rgba(255, 217, 77, 0.85); }
.chest-overlay[data-tier="gold"] .chest-rays {
  background: repeating-conic-gradient(from 0deg, rgba(255, 217, 77, 0.2) 0deg 6deg, transparent 6deg 12deg);
}

.chest-overlay[data-tier="mythic"] .chest-modal {
  border-color: var(--violet-mid);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(var(--violet-mid-rgb), 0.4);
}
.chest-overlay[data-tier="mythic"] { --chest-aura: rgba(var(--violet-mid-rgb), 0.85); }
.chest-overlay[data-tier="mythic"] .chest-rays {
  background: repeating-conic-gradient(from 0deg, rgba(var(--violet-mid-rgb), 0.22) 0deg 6deg, transparent 6deg 12deg);
}

@media (prefers-reduced-motion: reduce) {
  .chest-visual { animation: none; }
  .chest-overlay.shaking .chest-visual { animation: none; }
  .chest-overlay.opened .chest-burst { animation-duration: 300ms; }
}

.chest-hint {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.chest-rewards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 10px;
  margin-bottom: 16px;
}

.chest-done,
.levelup-continue {
  position: relative;
  appearance: none;
  cursor: pointer;
  padding: 13px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  background: linear-gradient(180deg, var(--cyan-deep), #06616f);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 3px;
  transition: transform 0.15s ease;
}
.chest-done:hover,
.levelup-continue:hover { transform: scale(1.05); }
.chest-done[hidden] { display: none; }


/* --- A LIMITED CARD, OUT OF SEASON -----------------------------------
   Not removed from the shelf: a card that vanishes reads as a bug, and a
   date is a reason to come back. Dimmed the way a level-locked card is,
   with its own frost badge so the two locks are distinguishable at a
   glance — one is "play more", the other is "wait". */
.shop-card.is-season-locked { opacity: 0.72; }
.shop-card.is-season-locked .shop-card-icon { filter: grayscale(0.55) brightness(0.85); }
.shop-card-lock-season {
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.92), rgba(40, 110, 190, 0.92));
  color: #061826;
}
.shop-card.is-season-locked .shop-card-buy {
  background: linear-gradient(180deg, #6f8ba8, #46617c);
  color: #eaf4ff;
  box-shadow: none;
  letter-spacing: 0.06em;
}

/* =====================================================================
   SHOP TABS AND SUB-HEADINGS
   ---------------------------------------------------------------------
   The catalogue outgrew a single scroller. Tabs carry the top level and
   a heading carries each group inside it, so a player can find the
   chests without knowing the word "chest" — which is what a search-only
   shop asked of them.
   ===================================================================== */
.shop-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border-dim, rgba(255, 255, 255, 0.16));
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-family: "Orbitron", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.shop-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.shop-tab.is-active {
  color: #2a1c02;
  border-color: var(--gold-bright, #ffd94d);
  background: linear-gradient(180deg, #ffe9a3, var(--gold, #ffd94d));
}
.shop-tab-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.58rem;
  color: inherit;
}
.shop-tab.is-active .shop-tab-count { background: rgba(0, 0, 0, 0.18); }

/* A group heading inside a tab. Spans the grid so the cards below it
   read as belonging to it rather than flowing around it. */
.shop-subhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 2px 2px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.shop-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-dim, rgba(255,255,255,0.16)), transparent);
}
.shop-subhead i {
  font-style: normal;
  font-size: 0.58rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.shop-subhead:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .shop-tab { min-height: 36px; padding: 0 11px; font-size: 0.6rem; }
}

/* The 268px row minimum belonged to the CARD, not to the row. With it on
   grid-auto-rows every implicit row is 268px tall — including the one
   holding a sub-heading, which came out as 266px of empty space above
   each group. Moved onto the card, the cards are unchanged and the
   heading row is finally the height of a heading. */
/* Set through arcade.css's own variable rather than by overriding the
   property: arcade.css loads later and would win the property outright,
   but it only READS this token, so defining it here settles it whatever
   the sheet order. */
.shop-grid { --shop-card-min-h: auto; }
.shop-grid .shop-card { min-height: 268px; }
