/* ============================================================
   QUEMACHINA-MC · Shop
   ============================================================ */

body.is-shop {
  background:
    radial-gradient(1100px 560px at 50% -6%, #123a7a 0%, transparent 62%),
    var(--navy-0);
}

main.shop {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.2rem 5rem;
}

/* Shop-lokale Tokens */
main.shop {
  --card-radius: 14px;
  --accent-gold-1: #ffe08a;
  --accent-gold-2: var(--gold);
  --accent-blue-1: #8fd4ff;
  --accent-blue-2: #3f9be6;
  --ok: #56d04e;
}

/* ── Hero ──────────────────────────────────────────────── */
.shop-hero {
  text-align: center;
  padding: 3.4rem 1rem 2rem;
  max-width: 760px; margin: 0 auto;
}
.shop-hero-kicker {
  display: inline-block; margin-bottom: 0.9rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--cyan-2);
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(55,107,193,0.14);
  border: 1px solid rgba(55,107,193,0.3);
}
.shop-hero-title {
  font-size: 2.8rem; font-weight: 900; margin: 0 0 0.7rem;
  color: #fff; letter-spacing: -1px; line-height: 1.05;
}
.shop-hero-lead {
  color: var(--text-dim); font-size: 1.03rem; line-height: 1.6;
  margin: 0 auto; max-width: 620px;
}
.shop-hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem;
  align-items: center; justify-content: center;
  margin-top: 1.4rem; font-size: 0.82rem; color: var(--text-dim);
}
.shop-hero-trust .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(159,180,212,0.5);
}

/* ── Kategorie-Tabs ────────────────────────────────────── */
.shop-cats {
  display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 2.6rem; padding: 0.35rem;
  width: fit-content;
  background: rgba(8,22,55,0.6);
  border: 1px solid rgba(55,107,193,0.25);
  border-radius: 12px;
}
.shop-cat {
  appearance: none; cursor: pointer;
  border: none; background: transparent;
  color: var(--text-dim); font: inherit; font-weight: 700; font-size: 0.9rem;
  padding: 0.55rem 1.3rem; border-radius: 9px;
  transition: background .15s, color .15s;
}
.shop-cat:hover { color: #fff; background: rgba(55,107,193,0.14); }
.shop-cat.active {
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028;
}

/* ── Sektionen ─────────────────────────────────────────── */
.shop-section { margin-bottom: 3.4rem; }
.shop-section.is-hidden { display: none; }
.shop-section-head { margin-bottom: 1.5rem; }
.shop-section-title {
  font-size: 1.5rem; font-weight: 900; color: #fff;
  margin: 0 0 0.25rem; letter-spacing: -0.3px;
}
.shop-section-desc {
  margin: 0; color: var(--text-dim); font-size: 0.92rem;
}
.shop-section-desc code, .shop-card-perks code {
  background: rgba(118,223,240,0.12); color: var(--cyan-3);
  padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.85em;
}

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

/* ── Produkt-Karte (opsucht-Look: Art oben, Body, Foot) ─── */
.shop-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0f2652 0%, #0a1730 100%);
  border: 1px solid rgba(55,107,193,0.28);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .18s ease, border-color .16s ease;
}
.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(117,188,241,0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 34px rgba(63,155,230,0.18);
}
/* Akzent je Produkt */
.shop-card[data-accent="gold"]:hover {
  border-color: rgba(236,198,83,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 40px rgba(236,198,83,0.22);
}
.shop-card.is-featured {
  border-color: rgba(236,198,83,0.5);
  box-shadow: inset 0 1px rgba(255,240,180,0.18), 0 0 0 1px rgba(236,198,83,0.18);
}

/* Art-Panel (großes Icon oben, heller Verlauf → dunkel) */
.shop-card-art {
  position: relative;
  height: 128px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(280px 130px at 50% -10%, rgba(117,188,241,0.28), transparent 70%),
    linear-gradient(180deg, #163a76 0%, #0d213f 100%);
  border-bottom: 1px solid rgba(55,107,193,0.25);
}
.shop-card[data-accent="gold"] .shop-card-art {
  background:
    radial-gradient(280px 130px at 50% -10%, rgba(236,198,83,0.32), transparent 70%),
    linear-gradient(180deg, #2a3566 0%, #12224a 100%);
}
.shop-card-icon {
  width: 66px; height: 66px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
.shop-card-qty {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  background: rgba(3,10,26,0.65); border: 1px solid rgba(117,188,241,0.35);
  padding: 0.12rem 0.5rem; border-radius: 999px; backdrop-filter: blur(2px);
}

.shop-card-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; color: #1a1028;
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  padding: 0.24rem 0.6rem; border-radius: 6px;
  box-shadow: 0 3px 10px rgba(236,198,83,0.4);
}
.shop-card-flag.is-value {
  color: #04121f;
  background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-blue-2));
  box-shadow: 0 3px 10px rgba(63,155,230,0.4);
}

.shop-card-main { padding: 1rem 1.15rem 0.4rem; flex-grow: 1; }
.shop-card-name {
  font-size: 1.22rem; font-weight: 800; color: #fff; margin: 0 0 0.15rem;
}
.shop-card-tag { font-size: 0.8rem; color: var(--cyan-2); margin: 0 0 0.85rem; }
.shop-card-perks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.42rem;
}
.shop-card-perks li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.86rem; color: var(--text); line-height: 1.35;
}
.shop-card-perks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(86,208,78,0.16);
  box-shadow: inset 0 0 0 1px rgba(86,208,78,0.5);
}
.shop-card-perks li::after {
  content: ""; position: absolute; left: 4.5px; top: 6px;
  width: 3px; height: 6px; border: solid var(--ok);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.shop-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.9rem 1.15rem 1.15rem;
}
.shop-card-price {
  font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -0.5px;
}
.shop-card-price .cur { font-size: 0.9rem; font-weight: 700; color: var(--text-dim); margin-right: 2px; }

.shop-card-btn {
  appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028; font-weight: 800; font-size: 0.88rem;
  padding: 0.6rem 1.2rem; border-radius: 9px;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.shop-card[data-accent="blue"] .shop-card-btn {
  background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-blue-2));
  color: #04121f;
}
.shop-card-btn:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(236,198,83,0.4);
}
.shop-card[data-accent="blue"] .shop-card-btn:hover {
  box-shadow: 0 6px 18px rgba(63,155,230,0.45);
}

/* ── Premium-Kaufleiste (unter der Vergleichstabelle) ──── */
.shop-buy-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; max-width: 820px; margin: 1.4rem auto 0;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(180deg, #12285a 0%, #0a1730 100%);
  border: 1px solid rgba(236,198,83,0.5);
  border-radius: var(--card-radius);
  box-shadow: inset 0 1px rgba(255,240,180,0.15), 0 0 34px rgba(236,198,83,0.14);
}
.shop-buy-bar-info { display: flex; align-items: center; gap: 0.9rem; }
.shop-buy-bar-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.shop-buy-bar-name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.shop-buy-bar-tag { font-size: 0.82rem; color: var(--cyan-2); }
.shop-buy-bar-action { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.shop-buy-bar-price {
  font-size: 1.6rem; font-weight: 900; color: var(--gold); letter-spacing: -0.5px;
}
.shop-buy-bar-price .cur { font-size: 0.95rem; font-weight: 700; color: var(--text-dim); margin-right: 2px; }
.shop-buy-bar .shop-card-btn { font-size: 0.95rem; padding: 0.7rem 1.5rem; }

/* ── Tooltips in der Vergleichstabelle (eigenes Layout, ohne .md-typeset) ── */
.shop-compare tbody td[data-tip] { position: relative; cursor: help; }
.shop-compare tbody td[data-tip]:first-child::after {
  content: " ⓘ"; font-size: 0.6rem;
  color: rgba(205,234,253,0.2); margin-left: 0.25rem; transition: color .2s;
}
.shop-compare tbody tr:hover td[data-tip]:first-child::after { color: rgba(118,223,240,0.55); }
.shop-compare tbody td[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: #071a3a; color: rgba(219,230,245,0.95);
  font-size: 0.74rem; font-weight: 400;
  padding: 0.55rem 0.9rem; border-radius: 8px;
  border: 1px solid rgba(55,107,193,0.35);
  z-index: 100; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-width: 300px; min-width: 180px;
  white-space: normal; line-height: 1.5; text-align: left;
  opacity: 0; animation: tooltipFadeIn .15s ease-out forwards;
}
@keyframes tooltipFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Footer-Notiz ──────────────────────────────────────── */
.shop-foot {
  text-align: center; margin: 3rem auto 0; max-width: 620px;
  font-size: 0.84rem; color: var(--text-dim); line-height: 1.6;
}
.shop-foot p { margin: 0.2rem 0; }
.shop-foot a { color: var(--cyan-2); text-decoration: none; font-weight: 700; }
.shop-foot a:hover { color: var(--gold); }

/* ── Vergleichstabelle (unverändert im Kern) ───────────── */
.shop-compare-wrap {
  max-width: 820px; margin: 0 auto;
  border-radius: var(--card-radius); overflow: hidden;
  border: 1px solid rgba(55,107,193,0.25);
  background: linear-gradient(180deg, #0f2652 0%, #0a1730 100%);
}
.shop-compare {
  width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0;
}
.shop-compare thead th {
  padding: 0.85rem 0.7rem; font-weight: 700; font-size: 0.8rem;
  text-align: center; background: rgba(55,107,193,0.14);
  border-bottom: 1px solid rgba(55,107,193,0.2);
  color: rgba(205,234,253,0.7); vertical-align: middle;
}
.shop-compare th.compare-feature-col { text-align: left; width: 52%; }
.shop-compare th.compare-spieler-col { width: 24%; }
.shop-compare th.compare-premium-col { width: 24%; color: var(--gold); }
.shop-compare tbody td {
  padding: 0.62rem 0.7rem; border-bottom: 1px solid rgba(55,107,193,0.1);
  vertical-align: middle;
}
.shop-compare tbody td:first-child {
  color: rgba(219,230,245,0.9); padding-left: 1.2rem; text-align: left;
}
.shop-compare tbody td:nth-child(2),
.shop-compare tbody td:nth-child(3) { text-align: center; font-weight: 600; }
.shop-compare tbody td:nth-child(3) { background: rgba(236,198,83,0.03); }
.shop-compare tbody tr:hover { background: rgba(55,107,193,0.06); }
.shop-compare .compare-section-row td {
  background: rgba(55,107,193,0.16) !important; font-weight: 700 !important;
  font-size: 0.72rem !important; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan-2) !important; padding: 0.6rem 1rem !important; text-align: left !important;
}
.shop-compare .val-yes { color: var(--ok); font-size: 1rem; }
.shop-compare .val-no  { color: rgba(239,83,80,0.55); font-size: 1rem; }
.shop-compare .val-premium { color: var(--gold); font-weight: 700; }
.shop-compare .val-normal  { color: rgba(219,230,245,0.45); }
.shop-compare .compare-note { font-size: 0.78em; color: var(--text-dim); }
.shop-compare .compare-note::before { content: "("; }
.shop-compare .compare-note::after  { content: ")"; }

/* ── Kauf-Overlay ──────────────────────────────────────── */
.shop-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.shop-modal.is-open { display: flex; }
.shop-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,9,24,0.74); backdrop-filter: blur(5px);
  animation: shopFade .16s ease;
}
.shop-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, #0f2652 0%, #0a1730 100%);
  border: 1px solid rgba(236,198,83,0.4);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: shopPop .18s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes shopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shopPop  { from { opacity: 0; transform: translateY(14px) scale(.97); }
                      to   { opacity: 1; transform: none; } }

.shop-modal-x {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  appearance: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.8);
  font-size: 0.95rem; line-height: 1; transition: background .15s, color .15s;
}
.shop-modal-x:hover { background: rgba(0,0,0,0.5); color: #fff; }

.shop-modal-art {
  position: relative; height: 118px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(360px 150px at 50% -20%, rgba(236,198,83,0.32), transparent 72%),
    linear-gradient(180deg, #2a3566 0%, #12224a 100%);
  border-bottom: 1px solid rgba(236,198,83,0.22);
}
.shop-modal-art[data-accent="blue"] {
  background:
    radial-gradient(360px 150px at 50% -20%, rgba(117,188,241,0.32), transparent 72%),
    linear-gradient(180deg, #163a76 0%, #0d213f 100%);
}
.shop-modal-icon {
  width: 76px; height: 76px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.shop-modal-body { padding: 1.3rem 1.4rem 1.5rem; }
.shop-modal-title {
  margin: 0 0 0.15rem; text-align: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
}
.shop-modal-sub {
  text-align: center; color: var(--cyan-2);
  font-size: 0.85rem; margin-bottom: 1rem;
}
.shop-modal-perks {
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.42rem;
}
.shop-modal-perks li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.87rem; color: var(--text); line-height: 1.35;
}
.shop-modal-perks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(86,208,78,0.16);
  box-shadow: inset 0 0 0 1px rgba(86,208,78,0.5);
}
.shop-modal-perks li::after {
  content: ""; position: absolute; left: 4.5px; top: 6px;
  width: 3px; height: 6px; border: solid var(--ok);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.shop-modal-perks code {
  background: rgba(118,223,240,0.12); color: var(--cyan-3);
  padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.85em;
}

.shop-modal-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.75rem 0; margin-bottom: 0.9rem;
  border-top: 1px solid rgba(55,107,193,0.18);
  border-bottom: 1px solid rgba(55,107,193,0.18);
}
.shop-modal-price-label {
  font-size: 0.82rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px;
}
.shop-modal-price { font-size: 1.5rem; font-weight: 900; color: var(--gold); }

.shop-modal-field { display: block; margin-bottom: 1rem; }
.shop-modal-field > span {
  display: block; font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 0.35rem; font-weight: 600;
}
.shop-modal-field input {
  width: 100%; box-sizing: border-box;
  background: rgba(3,10,26,0.6);
  border: 1px solid rgba(55,107,193,0.35);
  border-radius: 9px; color: #fff; font: inherit;
  padding: 0.65rem 0.8rem; transition: border-color .15s, box-shadow .15s;
}
.shop-modal-field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(236,198,83,0.18);
}

.shop-modal-status {
  min-height: 1.1rem; margin: 0 0 0.7rem;
  font-size: 0.82rem; line-height: 1.35; text-align: center;
}
.shop-modal-status.is-error { color: #ff8a80; }
.shop-modal-status.is-info  { color: var(--cyan-2); }

.shop-modal-buy {
  position: relative; width: 100%;
  appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028; font-weight: 800; font-size: 1rem;
  padding: 0.82rem 1rem; border-radius: 11px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.shop-modal-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(236,198,83,0.4); }
.shop-modal-buy:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.shop-modal-buy.is-loading .shop-modal-buy-label { visibility: hidden; }
.shop-modal-spinner {
  display: none; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(26,16,40,0.35); border-top-color: #1a1028;
  border-radius: 50%; animation: shopSpin .7s linear infinite;
}
.shop-modal-buy.is-loading .shop-modal-spinner { display: block; }
@keyframes shopSpin { to { transform: rotate(360deg); } }

.shop-modal-fineprint {
  margin: 0.8rem 0 0; text-align: center;
  font-size: 0.72rem; color: var(--text-dim);
}

@media (max-width: 600px) {
  .shop-hero-title { font-size: 2.1rem; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-compare { font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   opsucht-Stil: Name-Gate · Spieler-Leiste (3D-Render) · Warenkorb-Drawer
   ══════════════════════════════════════════════════════════════════════ */

/* ── Name-Gate (Vollbild-Overlay beim ersten Öffnen) ─────────────────── */
.shop-gate {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(18,58,122,0.65) 0%, transparent 60%),
    rgba(2,7,20,0.94);
  backdrop-filter: blur(6px);
}
body.shop-gate-open { overflow: hidden; }
body.shop-gate-open .shop-gate { display: flex; }
.shop-gate-panel {
  width: 100%; max-width: 440px; text-align: center;
  background: linear-gradient(180deg, #0f2652 0%, #0a1730 100%);
  border: 1px solid rgba(236,198,83,0.4); border-radius: 20px;
  padding: 2.2rem 1.8rem 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  animation: shopPop .2s cubic-bezier(.2,.9,.3,1.2);
}
.shop-gate-render {
  height: 150px; margin: 0 auto 1rem;
  display: flex; align-items: flex-end; justify-content: center;
}
.shop-gate-render img { height: 150px; width: auto; image-rendering: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.shop-gate-render .shop-render-ph {
  width: 70px; height: 120px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(55,107,193,0.12) 0 10px, rgba(55,107,193,0.05) 10px 20px);
  border: 1px dashed rgba(55,107,193,0.35);
}
.shop-gate-title { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 900; color: #fff; }
.shop-gate-sub { margin: 0 0 1.3rem; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.shop-gate-field { display: block; text-align: left; margin-bottom: 1rem; }
.shop-gate-field > span { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.35rem; font-weight: 600; }
.shop-gate-field input {
  width: 100%; box-sizing: border-box; text-align: center;
  background: rgba(3,10,26,0.6); border: 1px solid rgba(55,107,193,0.35);
  border-radius: 10px; color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700;
  padding: 0.75rem 0.8rem; letter-spacing: 0.5px;
  transition: border-color .15s, box-shadow .15s;
}
.shop-gate-field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(236,198,83,0.18);
}
.shop-gate-status { min-height: 1.1rem; margin: 0 0 0.7rem; font-size: 0.82rem; text-align: center; }
.shop-gate-status.is-error { color: #ff8a80; }
.shop-gate-btn {
  width: 100%; appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028; font-weight: 800; font-size: 1rem;
  padding: 0.82rem 1rem; border-radius: 11px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.shop-gate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(236,198,83,0.4); }
.shop-gate-btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.shop-gate-fineprint { margin: 0.9rem 0 0; font-size: 0.72rem; color: var(--text-dim); }

/* ── Shop-Topbar: Marke links, Login/Spieler + Warenkorb rechts oben ──── */
.shop-topbar {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.2rem 0;
}
.shop-topbar-brand {
  font-weight: 900; font-size: 1rem; letter-spacing: 0.5px; color: #fff;
  text-decoration: none; opacity: 0.9;
}
.shop-topbar-brand:hover { color: var(--cyan-2); }
.shop-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }

/* Login-Button (sichtbar, solange nicht angemeldet) */
.shop-login-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.88rem;
  padding: 0.5rem 1rem; border-radius: 10px;
  background: rgba(55,107,193,0.16); color: var(--cyan-2); border: 1px solid rgba(55,107,193,0.35);
  transition: background .15s, color .15s;
}
.shop-login-btn:hover { background: rgba(55,107,193,0.28); color: #fff; }
body.shop-authed .shop-login-btn { display: none; }

/* Spieler-Chip (sichtbar, wenn angemeldet) */
.shop-player {
  display: none; position: relative; align-items: center; gap: 0.55rem;
  padding: 0.3rem 0.5rem 0.3rem 0.35rem; border-radius: 999px;
  background: rgba(8,22,55,0.7); border: 1px solid rgba(55,107,193,0.3);
}
body.shop-authed .shop-player { display: flex; }
.shop-player-render {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(50px 50px at 50% 0, rgba(117,188,241,0.25), transparent 70%), #0d213f;
  display: flex; align-items: flex-end; justify-content: center;
}
.shop-player-render img { width: 30px; height: auto; image-rendering: auto; }
.shop-player-name { font-size: 0.92rem; font-weight: 800; color: #fff; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-player-menu-btn {
  appearance: none; cursor: pointer; border: none; background: none;
  color: var(--text-dim); font-size: 0.85rem; padding: 0 0.2rem;
}
.shop-player-menu-btn:hover { color: #fff; }
.shop-player-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 950;
  min-width: 160px; padding: 0.35rem; border-radius: 10px;
  background: #0e224f; border: 1px solid rgba(55,107,193,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.shop-player-menu.is-open { display: block; }
.shop-player-menu button {
  display: block; width: 100%; text-align: left; appearance: none; cursor: pointer;
  border: none; background: none; color: var(--text); font: inherit; font-size: 0.86rem;
  padding: 0.5rem 0.7rem; border-radius: 7px;
}
.shop-player-menu button:hover { background: rgba(55,107,193,0.18); color: #fff; }

/* Warenkorb-Button (rechts oben, immer sichtbar) */
.shop-cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; appearance: none; cursor: pointer;
  border-radius: 11px; border: 1px solid rgba(236,198,83,0.45);
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028; transition: transform .15s, box-shadow .15s;
}
.shop-cart-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(236,198,83,0.35); }
.shop-cart-btn svg { width: 20px; height: 20px; }
.shop-cart-fab-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #1a1028; color: var(--gold); font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy-0);
}

/* ── Warenkorb-Drawer (rechts) ──────────────────────────────────────── */
.shop-cart {
  position: fixed; inset: 0 0 0 auto; z-index: 1100;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0f2652 0%, #08122b 100%);
  border-left: 1px solid rgba(236,198,83,0.3);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  transform: translateX(100%); transition: transform .22s ease;
}
.shop-cart.is-open { transform: none; }
.shop-cart-backdrop {
  position: fixed; inset: 0; z-index: 1090; background: rgba(2,7,20,0.6);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.shop-cart-backdrop.is-open { opacity: 1; visibility: visible; }
.shop-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(55,107,193,0.22);
}
.shop-cart-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: #fff; }
.shop-cart-x {
  appearance: none; border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.8); font-size: 0.95rem;
}
.shop-cart-x:hover { background: rgba(0,0,0,0.5); color: #fff; }
.shop-cart-items { flex: 1; overflow-y: auto; padding: 0.8rem 1.3rem; }
.shop-cart-empty { text-align: center; color: var(--text-dim); padding: 3rem 1rem; font-size: 0.9rem; }
.shop-cart-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(55,107,193,0.12);
}
.shop-cart-item-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #163a76 0%, #0d213f 100%);
}
.shop-cart-item-icon svg { width: 26px; height: 26px; }
.shop-cart-item-body { flex: 1; min-width: 0; }
.shop-cart-item-name { font-size: 0.92rem; font-weight: 700; color: #fff; }
.shop-cart-item-unit { font-size: 0.78rem; color: var(--text-dim); }
.shop-cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.shop-cart-qty button {
  appearance: none; cursor: pointer; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(55,107,193,0.16); color: #fff; border: 1px solid rgba(55,107,193,0.3);
  font-size: 1rem; line-height: 1; font-weight: 700;
}
.shop-cart-qty button:hover { background: rgba(55,107,193,0.3); }
.shop-cart-qty span { min-width: 20px; text-align: center; font-weight: 700; color: #fff; }
.shop-cart-item-price { font-weight: 800; color: var(--gold); min-width: 62px; text-align: right; }
.shop-cart-item-del {
  appearance: none; border: none; cursor: pointer; background: none;
  color: rgba(239,83,80,0.6); font-size: 1rem; padding: 0 0.2rem;
}
.shop-cart-item-del:hover { color: #ff5252; }
.shop-cart-foot { padding: 1.1rem 1.3rem 1.3rem; border-top: 1px solid rgba(55,107,193,0.22); }
.shop-cart-player {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font-size: 0.85rem; color: var(--text-dim);
}
.shop-cart-player img { width: 22px; height: auto; }
.shop-cart-player b { color: #fff; }
.shop-cart-total-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem;
}
.shop-cart-total-label { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.shop-cart-total { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.shop-cart-status { min-height: 1.1rem; margin: 0 0 0.6rem; font-size: 0.82rem; text-align: center; }
.shop-cart-status.is-error { color: #ff8a80; }
.shop-cart-status.is-info { color: var(--cyan-2); }
.shop-cart-checkout {
  position: relative; width: 100%; appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  color: #1a1028; font-weight: 800; font-size: 1rem; padding: 0.85rem 1rem; border-radius: 11px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.shop-cart-checkout:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(236,198,83,0.4); }
.shop-cart-checkout:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.shop-cart-checkout.is-loading .shop-cart-checkout-label { visibility: hidden; }
.shop-cart-checkout .shop-modal-spinner { display: none; }
.shop-cart-checkout.is-loading .shop-modal-spinner { display: block; }

@media (max-width: 600px) {
  .shop-cart-fab { right: 14px; bottom: 14px; }
}
