/* =====================================================================
   Migs Arena – Garderobe / Shop (MigsShop, Präfix .shop-) + Gamepad-Menüfokus (.gp-focus, .gp-toast)
   Eigenständig (funktioniert auch ohne style.css); nutzt dessen Variablen, falls vorhanden.
   ===================================================================== */

.shop-overlay {
  --s-cyan: var(--cyan, #4fe3ff);
  --s-pink: var(--pink, #ff4fd8);
  --s-yellow: var(--yellow, #ffd23f);
  --s-green: var(--green, #5dff9e);
  --s-red: var(--red, #ff5470);
  --s-text: var(--text, #f4f1ff);
  --s-muted: var(--muted, #a49fcf);
  --s-glass: rgba(28, 24, 62, 0.72);
  --s-line: rgba(255, 255, 255, 0.1);
  --s-back: cubic-bezier(.34, 1.56, .64, 1);
  --s-out: cubic-bezier(.2, .9, .25, 1);
  --rc: #9aa4b8;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  color: var(--s-text);
  font-family: var(--font, 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}
.shop-overlay.shop-open { opacity: 1; }
.shop-overlay[hidden], .shop-overlay [hidden] { display: none !important; }
.shop-overlay *, .shop-overlay *::before, .shop-overlay *::after { box-sizing: border-box; }
.shop-overlay button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-overlay button:disabled { cursor: default; }
.shop-overlay h2, .shop-overlay h3, .shop-overlay p { margin: 0; }
.shop-overlay :focus { outline: none; }
.shop-overlay :focus-visible:not(.gp-focus) { outline: 3px solid var(--s-cyan); outline-offset: 2px; }

.shop-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 22% 18%, rgba(178, 107, 255, .28), transparent 62%),
    radial-gradient(ellipse 70% 55% at 88% 92%, rgba(79, 227, 255, .2), transparent 60%),
    linear-gradient(180deg, #1d1546 0%, #120e2c 55%, #0b0918 100%);
}
.shop-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}

.shop-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  transform: translateY(14px) scale(.985);
  transition: transform .4s var(--s-back);
  min-height: 0;
}
.shop-open .shop-shell { transform: none; }

/* ---------- Kopf ---------- */
.shop-head { display: flex; align-items: center; gap: 12px; flex: none; }
.shop-back {
  width: 46px; height: 46px; flex: none;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid var(--s-line) !important;
  font-size: 30px !important; line-height: 1; font-weight: 700;
  display: grid; place-items: center; padding-bottom: 4px !important;
  transition: background .15s, transform .15s var(--s-back);
}
.shop-back:hover { background: rgba(255, 255, 255, .16) !important; transform: scale(1.06); }
.shop-title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; letter-spacing: .01em; min-width: 0; }
.shop-title span:last-child {
  background: linear-gradient(90deg, #fff, var(--s-cyan) 45%, var(--s-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-title-ico { font-size: 26px; filter: drop-shadow(0 0 10px rgba(79, 227, 255, .6)); }
.shop-head-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.shop-level, .shop-coins {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 8, 28, .55); border: 1px solid var(--s-line);
  font-size: 17px; font-weight: 600; white-space: nowrap;
}
.shop-level b { color: var(--s-cyan); }
.shop-coins { border-color: rgba(255, 210, 63, .45); box-shadow: 0 0 18px rgba(255, 210, 63, .15); }
.shop-coins b { color: var(--s-yellow); font-size: 19px; min-width: 2ch; text-align: right; }
.shop-coin-ico { color: var(--s-yellow); text-shadow: 0 0 10px rgba(255, 210, 63, .9); }
.shop-coins.bump { animation: shopBump .5s var(--s-back); }

/* ---------- Tabs ---------- */
.shop-tabs {
  display: flex; gap: 8px; flex: none;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 4px 2px 6px;
  scroll-snap-type: x proximity;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid var(--s-line) !important;
  font-size: 17px; font-weight: 600; color: var(--s-muted) !important;
  scroll-snap-align: start;
  transition: background .15s, color .15s, transform .15s var(--s-back), box-shadow .2s;
}
.shop-tab:hover { color: var(--s-text) !important; transform: translateY(-2px); }
.shop-tab.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(79, 227, 255, .32), rgba(178, 107, 255, .28)) !important;
  border-color: rgba(79, 227, 255, .6) !important;
  box-shadow: 0 6px 22px rgba(79, 227, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.shop-tab-ico { font-size: 20px; }
.shop-tab-cnt { font-size: 12px; font-weight: 600; opacity: .8; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.shop-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--s-pink); box-shadow: 0 0 10px var(--s-pink); animation: shopPulse 1.6s ease-in-out infinite; }
.shop-gp-key {
  display: none; flex: none; align-self: center;
  padding: 4px 9px; border-radius: 8px; font-size: 12px !important; font-weight: 700;
  background: rgba(255, 255, 255, .12) !important; color: var(--s-muted) !important;
}
body.gp-mode .shop-gp-key { display: inline-flex; }

/* ---------- Angebot des Tages ---------- */
.shop-offer {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px !important; border-radius: 18px;
  text-align: left;
  background: linear-gradient(100deg, rgba(255, 122, 69, .22), rgba(255, 79, 216, .18) 50%, rgba(178, 107, 255, .2)) !important;
  border: 1px solid rgba(255, 140, 80, .5) !important;
  overflow: hidden;
  transition: transform .15s var(--s-back), box-shadow .2s;
}
.shop-offer::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%);
  transform: translateX(-100%); animation: shopSheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
.shop-offer:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 122, 69, .3); }
.shop-offer-fire { font-size: 28px; animation: shopFlicker 1.2s ease-in-out infinite; }
.shop-offer-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.shop-offer-txt b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #ffb38a; }
.shop-offer-item { font-size: 19px; font-weight: 700; color: #fff; text-shadow: 0 0 14px var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-offer-item small { font-size: 12px; font-weight: 600; color: var(--s-muted); text-shadow: none; }
.shop-offer-price { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; }
.shop-offer-price s { color: var(--s-muted); }
.shop-offer-price b { font-size: 20px; color: var(--s-yellow); text-shadow: 0 0 10px rgba(255, 210, 63, .7); }
.shop-offer-price i { font-style: normal; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: linear-gradient(180deg, #ff7a45, #ff3d6e); color: #fff; box-shadow: 0 0 12px rgba(255, 90, 80, .6); }
.shop-offer-time { font-size: 14px; font-weight: 600; color: #ffd6c2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-offer.is-owned .shop-offer-price { color: var(--s-green); font-weight: 700; }

/* ---------- Hauptbereich ---------- */
.shop-main {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 16px;
}
.shop-stage {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 38%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--rc) 40%, rgba(255, 255, 255, .08));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.shop-podium {
  position: relative; flex: 1; min-height: 200px;
  display: grid; place-items: center;
}
.shop-rays {
  position: absolute; left: 50%; top: 46%;
  width: 150%; aspect-ratio: 1;
  translate: -50% -50%;   /* nicht transform: sonst dreht rotate den Versatz mit */
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 30%, transparent) 0deg 8deg, transparent 8deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 30%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 30%, transparent 62%);
  opacity: .25;
  animation: shopSpin 26s linear infinite;
  pointer-events: none;
}
.shop-stage.r-epic .shop-rays { opacity: .55; }
.shop-stage.r-legendary .shop-rays { opacity: .85; animation-duration: 14s; }
.shop-ambient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shop-mig {
  position: relative; z-index: 1;
  width: min(78%, 330px); aspect-ratio: 1;
  animation: shopBob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)) drop-shadow(0 0 26px color-mix(in srgb, var(--rc) 55%, transparent));
}
.shop-mig.pop { animation: shopPop .5s var(--s-back), shopBob 2.6s ease-in-out .5s infinite; }
.shop-mig.is-live { animation: none; }            /* MigsRender.drawMigPreview hüpft selbst */
.shop-mig.is-live.pop { animation: shopPop .5s var(--s-back); }
.shop-preview { width: 100%; height: 100%; display: block; }
.shop-mig[data-icon]::after {
  content: attr(data-icon);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(72px, 12vw, 140px);
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
.shop-pedestal {
  position: absolute; left: 50%; bottom: 7%;
  width: 62%; height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--rc) 75%, transparent), transparent 70%);
  filter: blur(4px);
  animation: shopShadow 2.6s ease-in-out infinite;
}
.shop-eq {
  display: none;
  position: absolute; left: 50%; bottom: 13%; z-index: 2;
  transform: translateX(-50%);
  gap: 6px; align-items: flex-end; height: 48px;
}
.shop-stage.is-track .shop-eq { display: flex; }
.shop-eq i { width: 8px; height: 10px; border-radius: 4px; background: linear-gradient(180deg, var(--s-pink), var(--s-cyan)); box-shadow: 0 0 10px var(--rc); }
.shop-stage.is-playing .shop-eq i { animation: shopEq .9s ease-in-out infinite; }
.shop-eq i:nth-child(2) { animation-delay: -.2s !important; }
.shop-eq i:nth-child(3) { animation-delay: -.5s !important; }
.shop-eq i:nth-child(4) { animation-delay: -.1s !important; }
.shop-eq i:nth-child(5) { animation-delay: -.7s !important; }
.shop-eq i:nth-child(6) { animation-delay: -.35s !important; }
.shop-eq i:nth-child(7) { animation-delay: -.6s !important; }
.shop-stage.is-playing .shop-mig { animation: shopBeat .48s ease-in-out infinite; }

.shop-info { position: relative; z-index: 2; padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.shop-rarity {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rc); text-shadow: 0 0 12px color-mix(in srgb, var(--rc) 70%, transparent);
}
.shop-name { font-size: 32px; font-weight: 700; line-height: 1.05; }
.shop-desc { color: var(--s-muted); font-size: 16px; min-height: 2.6em; line-height: 1.3; }
.shop-actions { display: flex; gap: 10px; margin-top: 6px; }
.shop-action, .shop-listen, .shop-btn, .shop-egg-buy {
  position: relative;
  min-height: 54px; padding: 12px 20px !important;
  border-radius: 18px;
  font-size: 19px !important; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff !important;
  background: linear-gradient(180deg, #4b4580, #352f66) !important;
  box-shadow: 0 5px 0 #1f1a45, 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .12s, box-shadow .12s, filter .15s;
}
.shop-action { flex: 1; }
.shop-action:not(:disabled):hover, .shop-listen:hover, .shop-btn:not(:disabled):hover, .shop-egg-buy:hover { filter: brightness(1.12); transform: translateY(-2px); }
.shop-action:not(:disabled):active, .shop-listen:active, .shop-btn:not(:disabled):active, .shop-egg-buy:active { transform: translateY(3px); box-shadow: 0 2px 0 #1f1a45; }
.shop-action.is-buy, .shop-btn-go { background: linear-gradient(180deg, #5dff9e, #18b866) !important; color: #06281a !important; box-shadow: 0 5px 0 #0b6b3a, 0 10px 26px rgba(93, 255, 158, .3); }
.shop-action.is-buy b { color: #06281a; }
.shop-action.is-buy s { opacity: .6; font-size: 15px; }
.shop-action.is-equip { background: linear-gradient(180deg, #4fe3ff, #1593b8) !important; color: #032434 !important; box-shadow: 0 5px 0 #0c5f78, 0 10px 26px rgba(79, 227, 255, .3); }
.shop-action.is-egg { background: linear-gradient(180deg, #ff8ae0, #a23bff) !important; box-shadow: 0 5px 0 #5a1a8a, 0 10px 26px rgba(255, 79, 216, .3); }
.shop-action.is-poor, .shop-egg-buy.is-poor { filter: saturate(.55) brightness(.92); }
.shop-action:disabled { background: rgba(255, 255, 255, .08) !important; color: var(--s-muted) !important; box-shadow: none; }
.shop-action.is-done { color: var(--s-green) !important; }
.shop-listen { flex: none; background: linear-gradient(180deg, #ff8ae0, #c23bd6) !important; box-shadow: 0 5px 0 #6a1a7a; }
.shop-nope { animation: shopNope .4s ease; }

/* ---------- Liste ---------- */
.shop-list { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.shop-filters { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; }
.shop-chip {
  padding: 7px 14px !important; border-radius: 999px;
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--s-line) !important;
  font-size: 15px !important; font-weight: 600; color: var(--s-muted) !important;
  transition: background .15s, color .15s;
}
.shop-chip.active { background: rgba(79, 227, 255, .2) !important; border-color: rgba(79, 227, 255, .6) !important; color: #fff !important; }
.shop-progress { margin-left: auto; font-size: 14px; color: var(--s-muted); }
.shop-grid {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  grid-auto-rows: max-content;   /* sonst schrumpfen die Zeilen auf die Containerhöhe (Karten haben overflow:hidden) */
  gap: 12px;
  align-content: start;
  padding: 8px 8px 24px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
  overscroll-behavior: contain;
}
.shop-grid::-webkit-scrollbar { width: 8px; }
.shop-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.shop-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--s-muted); font-size: 18px; }

.shop-card {
  position: relative;
  display: flex !important; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 8px 10px !important;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) !important;
  border: 2px solid color-mix(in srgb, var(--rc) 45%, transparent) !important;
  text-align: center;
  overflow: hidden;
  transition: transform .15s var(--s-back), border-color .15s, box-shadow .2s;
  animation: shopCardIn .35s var(--s-out) both;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 16px color-mix(in srgb, var(--rc) 40%, transparent); }
.shop-card.is-sel {
  border-color: var(--rc) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc) 40%, transparent), 0 0 26px color-mix(in srgb, var(--rc) 65%, transparent);
  transform: translateY(-2px);
}
.shop-card.r-epic { box-shadow: inset 0 0 22px color-mix(in srgb, var(--rc) 25%, transparent); }
.shop-card.r-legendary::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--shop-a, 0deg), #ffb800, #fff6c8, #ff7a45, #ffb800, #fff6c8, #ffb800);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: shopSpinVar 3s linear infinite;
  pointer-events: none;
}
.shop-card.r-legendary::after, .shop-card.r-epic::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: shopSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
.shop-card.r-epic::after { animation-duration: 5.5s; opacity: .7; }
.shop-card-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.shop-thumb { width: 100%; height: 100%; display: block; }
.shop-card-ico {
  position: absolute; right: 2px; top: 2px;
  font-size: 20px; line-height: 1;
  padding: 4px; border-radius: 10px; background: rgba(10, 8, 28, .55);
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
.shop-card-name { font-size: 15px; font-weight: 600; line-height: 1.15; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card-tag { font-size: 13px; font-weight: 600; color: var(--s-muted); white-space: nowrap; }
.shop-card.is-buy .shop-card-tag { color: var(--s-yellow); }
.shop-card.is-buy.is-poor .shop-card-tag { color: #ff9aa9; }
.shop-card.is-offer .shop-card-tag { color: #ffb38a; }
.shop-card.is-eq .shop-card-tag { color: var(--s-green); }
.shop-card.is-owned .shop-card-tag { color: var(--s-cyan); }
.shop-card.is-locked .shop-card-art { filter: grayscale(.55) brightness(.62); }
.shop-card.is-locked.is-unlock .shop-card-art { filter: grayscale(.2) brightness(.55) blur(.4px); }
.shop-card-gem {
  position: absolute; left: 9px; top: 9px; width: 10px; height: 10px;
  background: var(--rc); transform: rotate(45deg); border-radius: 2px;
  box-shadow: 0 0 8px var(--rc);
}
.shop-badge {
  position: absolute; left: 6px; top: 22px;
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: var(--s-pink); color: #fff; box-shadow: 0 0 12px var(--s-pink);
  transform: rotate(-8deg);
  animation: shopPop .5s var(--s-back) both, shopPulse 1.8s ease-in-out .5s infinite;
}
.shop-badge-offer { left: auto; right: 6px; top: 6px; background: linear-gradient(180deg, #ff7a45, #ff3d6e); box-shadow: 0 0 12px rgba(255, 90, 80, .7); transform: rotate(6deg); }
.shop-card.is-eq::before { content: '✓'; position: absolute; right: 8px; bottom: 34px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--s-green); color: #06281a; box-shadow: 0 0 10px rgba(93, 255, 158, .7); }
.shop-card.is-eq.r-legendary::before { content: ''; }

/* Musik-Karten */
.shop-grid.is-music { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shop-grid.is-music .shop-card-art { aspect-ratio: 4 / 3; }
.shop-track-ico { font-size: 54px; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--rc) 70%, transparent)); }
.shop-track-mood { position: absolute; bottom: 6px; left: 0; right: 0; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--s-muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Mystery-Ei ---------- */
.shop-eggview {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr minmax(300px, 460px);
  gap: 18px; align-items: center;
  overflow-y: auto; overflow-x: hidden;
}
.shop-egg-stage { position: relative; height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.shop-egg-rays {
  position: absolute; left: 50%; top: 48%; width: min(130%, 820px); aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 138, 224, .25) 0deg 7deg, transparent 7deg 20deg, rgba(79, 227, 255, .22) 20deg 27deg, transparent 27deg 40deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%); mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: shopSpin 30s linear infinite;
}
.shop-egg-idle { position: relative; width: min(56%, 280px); animation: shopEggIdle 4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 138, 224, .55)) drop-shadow(0 22px 26px rgba(0, 0, 0, .45)); }
.shop-egg-svg, .shop-egg-fx { width: 100%; height: auto; display: block; overflow: visible; }
.shop-egging .shop-egg-idle, .shop-egging .shop-egg-rays, .shop-egging .shop-egg-shadow { visibility: hidden; }
.shop-egg-shadow { position: relative; width: min(34%, 190px); height: 26px; margin-top: -4px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); }
.shop-egg-panel {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 138, 224, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.shop-egg-h { font-size: 38px; font-weight: 700; background: linear-gradient(90deg, #fff, #ff8ae0 40%, #b98cff 70%, #4fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-egg-p { color: var(--s-muted); font-size: 17px; line-height: 1.35; }
.shop-egg-p b { color: #fff; }
.shop-odds { display: grid; gap: 6px; }
.shop-odd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); font-size: 16px; }
.shop-odd i { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.shop-odd span { color: var(--rc); font-weight: 700; }
.shop-odd b { margin-left: auto; font-variant-numeric: tabular-nums; }
.shop-egg-buy { width: 100%; font-size: 22px !important; min-height: 62px; background: linear-gradient(180deg, #ff8ae0, #a23bff) !important; box-shadow: 0 6px 0 #5a1a8a, 0 12px 32px rgba(255, 79, 216, .35); }
.shop-egg-buy b { color: #fff6c8; }
.shop-egg-note { text-align: center; font-size: 14px; color: var(--s-muted); }
.shop-excl-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 6px; }
.shop-excl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-excl-it { position: relative; width: 56px; height: 56px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 2px solid color-mix(in srgb, var(--rc) 55%, transparent); }
.shop-excl-it canvas { width: 100%; height: 100%; display: block; filter: brightness(.35) saturate(.4); }
.shop-excl-it.is-own canvas { filter: none; }
.shop-excl-it span { position: absolute; right: -4px; top: -6px; font-size: 18px; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; }
.shop-excl-it em { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--s-green); color: #06281a; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.shop-excl-it:not(.is-own)::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, .8); }

/* ---------- Ei-Animation ---------- */
.shop-eggfx {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(40, 20, 80, .82), rgba(5, 3, 15, .95));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: shopFade .3s ease both;
  overflow: hidden;
  cursor: pointer;
}
.shop-eggfx-rays {
  position: absolute; left: 50%; top: 45%; width: 180vmax; height: 180vmax;
  translate: -50% -50%; scale: .2; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 55%, transparent) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 18%, transparent 46%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 18%, transparent 46%);
  transition: scale .8s var(--s-out), opacity .5s;
  animation: shopSpin 12s linear infinite;
  pointer-events: none;
}
.shop-eggfx-egg {
  position: absolute; left: 50%; top: 45%;
  width: min(46vmin, 280px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .35)) drop-shadow(0 24px 26px rgba(0, 0, 0, .5));
  transition: filter .4s;
  animation: shopEggIn .5s var(--s-back) both;
}
.shop-eggfx-egg svg { animation: shopWobble .5s ease-in-out infinite; transform-origin: 50% 90%; }
.shop-eggfx.s1 .shop-eggfx-egg svg { animation-duration: .32s; }
.shop-eggfx.s2 .shop-eggfx-egg { filter: drop-shadow(0 0 32px color-mix(in srgb, var(--rc) 70%, #fff)) drop-shadow(0 24px 26px rgba(0, 0, 0, .5)); }
.shop-eggfx.s2 .shop-eggfx-egg svg { animation: shopWobbleHard .22s ease-in-out infinite; }
.shop-eggfx.s3 .shop-eggfx-egg { filter: drop-shadow(0 0 60px var(--rc)) drop-shadow(0 0 20px #fff); }
.shop-eggfx.s3 .shop-eggfx-egg svg { animation: shopShake .09s linear infinite; }
.shop-eggfx.s4 .shop-eggfx-rays { opacity: .35; scale: .45; }
.shop-crack { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s ease-out; filter: drop-shadow(0 0 6px var(--rc)); }
.shop-eggfx.s1 .c1, .shop-eggfx.s2 .c2, .shop-eggfx.s3 .c3 { stroke-dashoffset: 0; }
.shop-eggfx.s3 .shop-crack { stroke: #fff; }
.shop-egg-top, .shop-egg-bot { transition: transform .7s cubic-bezier(.2, .8, .3, 1), opacity .6s .15s; transform-box: fill-box; transform-origin: 50% 100%; }
.shop-eggfx.burst .shop-eggfx-egg { animation: none; filter: none; }
.shop-eggfx.burst .shop-eggfx-egg svg { animation: none; }
.shop-eggfx.burst .shop-egg-top { transform: translate(-30px, -220px) rotate(-38deg); opacity: 0; }
.shop-eggfx.burst .shop-egg-bot { transform: translate(24px, 160px) rotate(18deg); opacity: 0; }
.shop-eggfx.burst .shop-egg-cracks, .shop-eggfx.burst .shop-egg-full { opacity: 0; transition: opacity .05s; }
.shop-eggfx.burst .shop-eggfx-rays { opacity: 1; scale: 1; }
.shop-eggfx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff, color-mix(in srgb, var(--rc) 70%, #fff) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.shop-eggfx.burst .shop-eggfx-flash { animation: shopFlash .9s ease-out both; }
.shop-reveal {
  position: relative; z-index: 2;
  display: none; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 20px; max-width: 92vw;
  cursor: default;
}
.shop-eggfx.burst .shop-reveal { display: flex; animation: shopRevealIn .7s var(--s-back) .18s both; }
.shop-reveal-rar {
  font-size: clamp(34px, 7vw, 72px); font-weight: 700; letter-spacing: .04em; line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px var(--rc), 0 0 42px var(--rc), 0 4px 0 color-mix(in srgb, var(--rc) 60%, #000);
  text-transform: uppercase;
}
.shop-eggfx.r-legendary .shop-reveal-rar { background: linear-gradient(180deg, #fff6c8, #ffd23f 55%, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px #ffb800) drop-shadow(0 0 40px rgba(255, 184, 0, .7)); text-shadow: none; animation: shopPulseBig 1.2s ease-in-out infinite; }
.shop-reveal-art { width: min(52vmin, 300px); aspect-ratio: 1; animation: shopBob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 30px var(--rc)); }
.shop-reveal-cv { width: 100%; height: 100%; display: block; }
.shop-reveal-name { font-size: clamp(26px, 4.5vw, 40px); font-weight: 700; }
.shop-reveal-sub { font-size: 17px; color: var(--s-muted); }
.shop-fresh { color: var(--s-green); }
.shop-dupe { color: var(--s-yellow); }
.shop-reveal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.shop-btn { min-width: 150px; }
.shop-btn-ghost { background: rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
.shop-eggfx-skip { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); font-size: 15px !important; color: var(--s-muted) !important; opacity: .8; animation: shopPulse 2s ease-in-out infinite; }
.shop-eggfx.burst .shop-eggfx-skip { display: none; }

/* ---------- Bestätigung ---------- */
.shop-confirm {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; padding: 16px;
  background: rgba(5, 3, 15, .7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: shopFade .2s ease both;
}
.shop-confirm-card {
  width: min(400px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 24px 22px 22px; border-radius: 26px;
  background: linear-gradient(180deg, #2a2360, #1a1540);
  border: 2px solid color-mix(in srgb, var(--rc) 65%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 40%, transparent), 0 30px 60px rgba(0, 0, 0, .5);
  animation: shopRevealIn .4s var(--s-back) both;
}
.shop-confirm-cv { width: 130px; height: 130px; filter: drop-shadow(0 0 18px var(--rc)); }
.shop-confirm-h { font-size: 26px; font-weight: 700; }
.shop-confirm-p { color: var(--s-muted); font-size: 16px; line-height: 1.4; }
.shop-confirm-p b { color: #ffb38a; }
.shop-confirm-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 10px; }
.shop-confirm-btns .shop-btn { width: 100%; }

/* ---------- Effekte, Toasts, Fuß ---------- */
.shop-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.shop-toasts { position: absolute; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.shop-toast {
  padding: 12px 18px; border-radius: 16px;
  background: rgba(28, 24, 62, .96); border: 1px solid rgba(79, 227, 255, .4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 20px rgba(79, 227, 255, .18);
  font-size: 16px; font-weight: 600; text-align: center;
  animation: shopToastIn .35s var(--s-back) both;
  transition: opacity .35s, transform .35s;
}
.shop-toast.out { opacity: 0; transform: translateY(-10px); }
.shop-foot { display: none; flex: none; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--s-muted); padding-top: 2px; }
body.gp-mode .shop-foot { display: flex; }
.shop-foot .k { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-right: 4px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; }
.shop-foot .k.a { background: #3fbf5f; } .shop-foot .k.y { background: #e0b020; }
.shop-foot-y { display: none; } .shop-overlay[data-tab="music"] .shop-foot-y { display: inline; } .shop-foot .k.b { background: #e0485c; } .shop-foot .k.x { background: #3d8bff; }
.shop-quake { animation: shopQuake .45s ease; }

/* ---------- responsiv ---------- */
@media (max-width: 820px) {
  .shop-shell { gap: 8px; padding-left: calc(10px + env(safe-area-inset-left, 0px)); padding-right: calc(10px + env(safe-area-inset-right, 0px)); }
  .shop-title { font-size: 22px; }
  .shop-title-ico { display: none; }
  .shop-level { display: none; }
  .shop-tab { padding: 8px 12px; font-size: 15px; }
  .shop-tab-cnt { display: none; }
  .shop-offer { gap: 10px; padding: 8px 12px !important; }
  .shop-offer-time { display: none; }
  .shop-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; }
  .shop-stage { flex-direction: row; align-items: center; border-radius: 22px; }
  .shop-podium { flex: none; width: 40%; min-height: 0; aspect-ratio: 1; max-width: 190px; }
  .shop-mig { width: 92%; }
  .shop-info { flex: 1; padding: 12px 14px 12px 0; gap: 4px; min-width: 0; }
  .shop-name { font-size: 22px; }
  .shop-desc { font-size: 14px; min-height: 0; }
  .shop-action, .shop-listen { min-height: 46px; font-size: 16px !important; padding: 8px 12px !important; border-radius: 14px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 4px 2px 18px; }
  .shop-card-name { font-size: 13px; }
  .shop-card-tag { font-size: 12px; }
  .shop-eggview { grid-template-columns: 1fr; align-content: start; }
  .shop-egg-stage { min-height: 220px; height: auto; }
  .shop-egg-idle { width: min(42%, 180px); }
  .shop-egg-panel { padding: 16px; }
  .shop-egg-h { font-size: 30px; }
}
@media (max-width: 420px) {
  .shop-offer-txt b { display: none; }
  .shop-offer-fire { font-size: 22px; }
  .shop-offer-item { font-size: 16px; }
  .shop-offer-price s { display: none; }
}
@media (max-height: 560px) and (min-width: 600px) {
  .shop-main { grid-template-columns: minmax(220px, 300px) 1fr; }
  .shop-desc { min-height: 0; }
  .shop-offer { padding: 6px 12px !important; }
}

/* ---------- Animationen ---------- */
@property --shop-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes shopSpinVar { to { --shop-a: 360deg; } }
@keyframes shopSpin { to { rotate: 360deg; } }
@keyframes shopBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-10px) scale(.985, 1.02); } }
@keyframes shopShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.85); opacity: .7; } }
@keyframes shopPop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes shopBump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes shopPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes shopPulseBig { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes shopSheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes shopFlicker { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.12) rotate(4deg); } }
@keyframes shopEq { 0%, 100% { height: 10px; } 50% { height: 46px; } }
@keyframes shopBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05, .96); } }
@keyframes shopCardIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shopNope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes shopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shopToastIn { from { opacity: 0; transform: translateY(-12px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes shopEggIdle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(2deg); } }
@keyframes shopEggIn { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes shopWobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes shopWobbleHard { 0%, 100% { transform: rotate(-9deg) scale(1.02); } 50% { transform: rotate(9deg) scale(.98, 1.03); } }
@keyframes shopShake { 0% { transform: translate(-3px, 1px) rotate(-3deg); } 25% { transform: translate(3px, -2px) rotate(3deg); } 50% { transform: translate(-2px, 2px) rotate(-2deg); } 75% { transform: translate(2px, -1px) rotate(2deg); } 100% { transform: translate(-3px, 1px) rotate(-3deg); } }
@keyframes shopFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shopRevealIn { from { opacity: 0; transform: scale(.35) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes shopQuake { 0%, 100% { transform: none; } 15% { transform: translate(-7px, 3px); } 30% { transform: translate(6px, -4px); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); } }

@media (prefers-reduced-motion: reduce) {
  .shop-overlay *, .shop-overlay *::before, .shop-overlay *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Gamepad-Menüfokus (MigsGamepadUI) – gut sichtbarer Neon-Rahmen
   ===================================================================== */
.gp-focus {
  outline: 3px solid #4fe3ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px rgba(79, 227, 255, .22), 0 0 26px 4px rgba(79, 227, 255, .6), 0 0 52px rgba(255, 79, 216, .35) !important;
  animation: gpFocusPulse 1.3s ease-in-out infinite !important;
  scroll-margin: 24px;
}
input.gp-focus, select.gp-focus, textarea.gp-focus { outline-offset: 1px !important; }
@keyframes gpFocusPulse {
  0%, 100% { outline-color: #4fe3ff; box-shadow: 0 0 0 7px rgba(79, 227, 255, .22), 0 0 26px 4px rgba(79, 227, 255, .6), 0 0 52px rgba(255, 79, 216, .25); }
  50% { outline-color: #ff8ae0; box-shadow: 0 0 0 9px rgba(255, 79, 216, .2), 0 0 32px 6px rgba(255, 79, 216, .55), 0 0 60px rgba(79, 227, 255, .3); }
}
body.gp-mode { cursor: none; }
body.gp-mode * { cursor: none !important; }
.gp-toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 2000;
  transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 18px;
  background: rgba(28, 24, 62, .96); color: #f4f1ff;
  border: 1px solid rgba(79, 227, 255, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(79, 227, 255, .25);
  font: 600 16px var(--font, 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  max-width: 92vw;
}
.gp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gp-toast small { color: #a49fcf; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .gp-focus { animation: none !important; } }
