/* ═══════════════════════════════════════════════════════════════════════════
   STAUBI — Cases (Übersicht + CS:GO-Style Opening)
   ═══════════════════════════════════════════════════════════════════════════ */

/* (.lc-pill ist in main.css definiert — der Header nutzt sie auf allen Seiten) */

/* ─── Details-Modal (Übersicht) ─────────────────────────────────────────── */
.cases-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 95;
  align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(8,6,14,.82);
  backdrop-filter: blur(10px);
}
.cases-modal.show { display: flex; }
.cases-modal-box {
  width: 100%; max-width: 620px; max-height: 88vh;
  display: flex; flex-direction: column;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #1c1a26 0%, #141119 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 70px -12px rgba(0,0,0,.7);
  overflow: hidden;
  animation: cm-in .22s ease;
}
@keyframes cm-in { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cases-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cases-modal-thumb {
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: .7rem; overflow: hidden;
  background: rgba(34, 192, 141,.1);
  border: 1px solid rgba(111, 227, 186,.25);
  display: flex; align-items: center; justify-content: center;
}
.cases-modal-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cases-modal-close {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); cursor: pointer;
  transition: all .15s ease;
}
.cases-modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.cases-modal-body { padding: 1.1rem; overflow-y: auto; flex: 1; }
.cases-modal-foot { padding: .9rem 1.1rem; border-top: 1px solid rgba(255,255,255,.07); }

.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .55rem;
}
@media (min-width: 480px) { .cm-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 640px) { .cm-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.cm-item {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .7rem .5rem;
  border-radius: .8rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.cm-item.rare { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.045); }
.cm-item-img {
  width: 3.4rem; height: 3.4rem;
  border-radius: .6rem;
  background: radial-gradient(ellipse at 50% 35%, rgba(34, 192, 141,.14), rgba(13, 14, 16,.5));
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cm-item.rare .cm-item-img { background: radial-gradient(ellipse at 50% 35%, rgba(251,191,36,.16), rgba(13, 14, 16,.5)); }
.cm-item-img img { width: 78%; height: 78%; object-fit: contain; }
.cm-item-img i { color: rgba(255,255,255,.4); font-size: 1.2rem; }
.cm-item-name { font-size: .68rem; line-height: 1.15; color: rgba(255,255,255,.8); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-item-cat {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: .1rem .4rem; border-radius: .35rem; border: 1px solid;
}
.cm-item-cat.coins    { color: #6fe3ba; border-color: rgba(111, 227, 186,.35); background: rgba(34, 192, 141,.1); }
.cm-item-cat.cash     { color: #6ee7b7; border-color: rgba(110,231,183,.3);  background: rgba(16,185,129,.1); }
.cm-item-cat.physical { color: #fcd34d; border-color: rgba(252,211,77,.35);  background: rgba(251,191,36,.1); }

/* ─── Opening: Reel ─────────────────────────────────────────────────────── */
.reel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(34, 192, 141,.14) 0%, transparent 60%),
    linear-gradient(180deg, #14121b 0%, #0f0d16 100%);
  height: 172px;
  user-select: none;
}
@media (min-width: 768px) { .reel-viewport { height: 208px; } }

/* Abdunkelnde Seiten-Fades */
.reel-viewport::before,
.reel-viewport::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 3;
  pointer-events: none;
}
.reel-viewport::before { left: 0;  background: linear-gradient(90deg,  rgba(13, 14, 16,.92), transparent); }
.reel-viewport::after  { right: 0; background: linear-gradient(-90deg, rgba(13, 14, 16,.92), transparent); }

/* Vertikale Mittellinie mit Pfeilen */
.reel-marker {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fbbf24, #6fe3ba 50%, #fbbf24);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(111, 227, 186,.8);
}
.reel-marker::before,
.reel-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.reel-marker::before { top: 0;    border-top: 10px solid #fbbf24; }
.reel-marker::after  { bottom: 0; border-bottom: 10px solid #fbbf24; }

/* Schlussphase des Spins: Marker glüht kräftiger + pulsiert → Nervenkitzel */
.reel-viewport.slowing .reel-marker {
  animation: marker-tense .55s ease-in-out infinite;
}
.reel-viewport.slowing::after,
.reel-viewport.slowing::before { /* Seiten-Fades bleiben, hier nur no-op-Absicherung */ }
@keyframes marker-tense {
  0%, 100% { box-shadow: 0 0 14px rgba(111, 227, 186,.8); filter: brightness(1); }
  50%      { box-shadow: 0 0 26px rgba(251,191,36,.95); filter: brightness(1.35); }
}
/* dezenter goldener Schein von der Mitte in der Schlussphase */
.reel-viewport.slowing {
  box-shadow: inset 0 0 60px rgba(251,191,36,.10);
}

.reel-strip {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.reel-tile {
  flex: 0 0 auto;
  width: 116px;
  height: 136px;
  margin: 0 5px;
  border-radius: .8rem;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) { .reel-tile { width: 148px; height: 168px; margin: 0 6px; } }

.reel-tile img { width: 62%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.reel-tile .tile-name {
  font-size: .62rem;
  line-height: 1.15;
  text-align: center;
  color: rgba(255,255,255,.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) { .reel-tile .tile-name { font-size: .72rem; } }

/* Golden-Star (Mystery) Tile */
.reel-tile.golden {
  border-color: rgba(251,191,36,.55);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(251,191,36,.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(251,191,36,.10), rgba(251,191,36,.02));
  box-shadow: inset 0 0 24px rgba(251,191,36,.12);
}
.reel-tile.golden .tile-star {
  font-size: 2.3rem;
  color: #fbbf24;
  filter: drop-shadow(0 0 12px rgba(251,191,36,.75));
  animation: star-pulse 1.6s ease-in-out infinite;
}
.reel-tile.golden .tile-name { color: #fcd34d; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@keyframes star-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px  rgba(251,191,36,.55)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(251,191,36,.95)); }
}

/* Gewinner-Tile-Highlight nach dem Stopp */
.reel-tile.winner {
  border-color: rgba(111, 227, 186,.9);
  box-shadow: 0 0 0 2px rgba(111, 227, 186,.5), 0 0 32px rgba(34, 192, 141,.6);
  animation: winner-glow .9s ease-in-out infinite alternate;
}
@keyframes winner-glow {
  from { box-shadow: 0 0 0 2px rgba(111, 227, 186,.45), 0 0 22px rgba(34, 192, 141,.45); }
  to   { box-shadow: 0 0 0 3px rgba(111, 227, 186,.85), 0 0 44px rgba(34, 192, 141,.85); }
}

/* ─── Result-Reveal (Card-Flip für Golden-Items) ────────────────────────── */
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10,8,16,.86);
  backdrop-filter: blur(10px);
}
.result-overlay.show { display: flex; }

.result-scene { perspective: 1200px; }
.result-card {
  position: relative;
  width: min(320px, 84vw);
  min-height: 380px;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.result-card.flipped { transform: rotateY(900deg); } /* 2.5 Umdrehungen → Spin-Effekt */

.result-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.result-face.front {
  border: 1px solid rgba(251,191,36,.55);
  background:
    radial-gradient(ellipse at 50% 25%, rgba(251,191,36,.24) 0%, transparent 70%),
    linear-gradient(180deg, #201b10 0%, #16131d 100%);
  box-shadow: 0 0 60px rgba(251,191,36,.35);
}
.result-face.front .big-star {
  font-size: 4.5rem;
  color: #fbbf24;
  filter: drop-shadow(0 0 24px rgba(251,191,36,.9));
  animation: star-pulse 1.2s ease-in-out infinite;
}
.result-face.front img.big-star-img {
  width: 130px; height: 130px; object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(251,191,36,.9));
  animation: star-pulse 1.2s ease-in-out infinite;
}
/* Inhalt der Rückseite — wird während des Spins geblurt und am Ende scharf */
.result-face.back .back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  will-change: filter;
}

.result-face.back {
  transform: rotateY(180deg);
  border: 1px solid rgba(111, 227, 186,.55);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(34, 192, 141,.28) 0%, transparent 70%),
    linear-gradient(180deg, #1d1830 0%, #14121b 100%);
  box-shadow: 0 0 60px rgba(34, 192, 141,.4);
}
.result-face.back img.prize-img {
  width: 120px; height: 120px; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}

/* einfache "Shine"-Bahn über der Ergebnis-Karte */
.result-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.09) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 2.4s linear infinite;
  pointer-events: none;
}
@keyframes shine { from { background-position: 200% 0; } to { background-position: -60% 0; } }

/* ─── Case-Inhalt (Item-Liste unter dem Reel) ───────────────────────────── */
.loot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .6rem;
}
@media (min-width: 640px)  { .loot-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .loot-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: .8rem; } }

.loot-card {
  position: relative;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #1b1925 0%, #15131d 100%);
  padding: .9rem .6rem .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.loot-card:hover { transform: translateY(-3px); border-color: rgba(62, 214, 163,.4); }
/* EINHEITLICHER Item-Background: alle Bilder sitzen im gleichen runden Slot,
   egal wie das hochgeladene Bild selbst aussieht → kein "Durcheinander". */
.loot-thumb {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(34, 192, 141,.18) 0%, rgba(18,15,24,.9) 72%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 18px rgba(0,0,0,.4);
}
.loot-thumb img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,.45)); }
.loot-thumb i { color: rgba(255,255,255,.4); font-size: 1.5rem; }
.loot-name {
  font-size: .75rem; md-font-size: .8rem; font-weight: 600; line-height: 1.2;
  color: rgba(255,255,255,.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 1.8rem;
}
/* Rare-Items: gleicher Base-Background, nur goldener Slot + dezenter Rahmen */
.loot-card.rare-gold { border-color: rgba(251,191,36,.35); }
.loot-card.rare-gold .loot-thumb {
  background: radial-gradient(circle at 50% 38%, rgba(251,191,36,.22) 0%, rgba(18,15,24,.9) 72%);
  border-color: rgba(251,191,36,.4);
}
.loot-card.rare-gold::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(251,191,36,.08);
  pointer-events: none;
}
.content-count {
  display: inline-flex; align-items: center;
  padding: .18rem .6rem; border-radius: 999px;
  background: rgba(34, 192, 141,.12); border: 1px solid rgba(111, 227, 186,.3);
  color: #a5f0d3; font-size: .68rem; font-weight: 700;
}

.cat-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .5rem;
  border-radius: .45rem;
  border: 1px solid;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.cat-chip.coins    { color: #6fe3ba; border-color: rgba(111, 227, 186,.4); background: rgba(34, 192, 141,.1); }
.cat-chip.cash     { color: #6ee7b7; border-color: rgba(110,231,183,.35); background: rgba(16,185,129,.1); }
.cat-chip.physical { color: #fcd34d; border-color: rgba(252,211,77,.4);  background: rgba(251,191,36,.1); }

/* Spin-Button deaktiviert-Zustand */
.btn-mint[disabled], .btn-ghost[disabled] { opacity: .45; pointer-events: none; }

/* reduzierte Motion — der Reel-Slide bleibt (Kern des Case-Openings), nur der
   3D-Karten-Spin wird auf einen simplen Flip reduziert. WICHTIG: hier KEIN
   `transition: none` auf .reel-strip, sonst springt der Reel ohne Slide direkt
   aufs Ziel — die Slide-Dauer steuert das JS. */
@media (prefers-reduced-motion: reduce) {
  .result-card { transition: transform .3s ease; }
  .result-card.flipped { transform: rotateY(180deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÜBERSICHT — jede Case in eigener Box, Panel drumherum
   (--hc = Highlight-Farbe der jeweiligen Case; nur Glow, nicht der Button)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dezentes Panel um alle Cases */
.hc-panel {
  border-radius: 1.4rem;
  padding: 1.25rem 1rem;
  background: rgba(20,17,27,.45);
  border: 1px solid rgba(255,255,255,.05);
}
@media (min-width: 768px) { .hc-panel { padding: 1.75rem 1.5rem; } }

/* Viererreihen */
.hc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 1.25rem;
}
@media (min-width: 560px)  { .hc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px)  { .hc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; } }
@media (min-width: 1150px) { .hc-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; } }

/* Jede Case in einer eigenen Box — neutral, KEIN farbiges Highlight */
.hc-card {
  --hc: #22c08d;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem .9rem 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #1b1926 0%, #14121c 100%);
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.hc-card:hover {
  border-color: rgba(255,255,255,.14);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}

/* Bühne: Case-Bild + Front-Item übereinander */
.hc-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .78;
  display: flex; align-items: center; justify-content: center;
}

/* Glow in der Highlight-Farbe hinter dem Front-Item — faded sanft ein */
.hc-halo {
  position: absolute;
  width: 72%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--hc) 60%, transparent) 0%, transparent 68%);
  filter: blur(26px);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.hc-card:hover .hc-halo { opacity: .9; transform: scale(1.05); }

/* Die Kiste — bleibt gleich groß, glüht in ihrer Highlight-Farbe und dunkelt
   beim Hover SANFT ab (der farbige Glow bleibt dabei erhalten, wird stärker). */
.hc-case {
  position: relative;
  z-index: 1;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: brightness(1) saturate(1)
          drop-shadow(0 0 16px color-mix(in srgb, var(--hc) 45%, transparent))
          drop-shadow(0 14px 28px rgba(0,0,0,.5));
  transition: filter .45s ease;
}
.hc-card:hover .hc-case {
  filter: brightness(.45) saturate(.85)
          drop-shadow(0 0 28px color-mix(in srgb, var(--hc) 95%, transparent))
          drop-shadow(0 14px 28px rgba(0,0,0,.6));
}
.hc-case-ph { font-size: 3.2rem; color: rgba(62, 214, 163,.35); z-index: 1; }

/* Das Front-Item — wächst per TRANSITION (kein Sprung), danach übernimmt
   die Float-Animation mit passendem Delay nahtlos ab scale(1.10). */
.hc-front {
  position: absolute;
  z-index: 2;
  width: 72%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  transform: scale(.88);
  opacity: .92;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
  transition: transform .45s cubic-bezier(.2,.8,.2,1),
              filter .45s ease,
              opacity .45s ease;
  pointer-events: none;
}
.hc-card:hover .hc-front {
  transform: scale(1.10);
  opacity: 1;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--hc) 85%, transparent))
          drop-shadow(0 12px 22px rgba(0,0,0,.5));
  /* Delay = Dauer der Transition → Animation setzt exakt dort an, wo sie endet */
  animation: hc-float 2.6s ease-in-out .45s infinite;
}
@keyframes hc-float {
  0%, 100% { transform: scale(1.10) translateY(0); }
  50%      { transform: scale(1.13) translateY(-9px); }
}

/* Name + kurze Beschreibung */
.hc-name {
  margin-top: .5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}
.hc-desc {
  margin-top: .2rem;
  font-size: .73rem;
  color: rgba(255,255,255,.42);
  text-align: center;
  line-height: 1.3;
  min-height: 1.9rem;
}

/* Fuß: Preis links, Öffnen-Button rechts (einheitliche Farbe für alle Cases) */
.hc-foot {
  margin-top: .8rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
/* Preis als Box — gleiche Form/Größe wie der Öffnen-Button */
.hc-price {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem;
  border-radius: .55rem;
  font-family: 'Sora', sans-serif;
  font-size: .78rem; font-weight: 800;
  color: #fbbf24;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.32);
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease;
}
.hc-card:hover .hc-price {
  background: rgba(251,191,36,.18);
  border-color: rgba(251,191,36,.5);
}
.hc-price i { font-size: .7rem; }
.hc-free { color: #34d399; letter-spacing: .06em; }
/* Gratis-Case: Box in Grün statt Gold */
.hc-price:has(.hc-free) {
  color: #34d399;
  background: rgba(52,211,153,.1);
  border-color: rgba(52,211,153,.32);
}
.hc-card:hover .hc-price:has(.hc-free) {
  background: rgba(52,211,153,.18);
  border-color: rgba(52,211,153,.5);
}

.hc-open {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem;
  border-radius: .55rem;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  color: #a5f0d3;
  background: rgba(34, 192, 141,.14);
  border: 1px solid rgba(62, 214, 163,.38);
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hc-card:hover .hc-open {
  background: linear-gradient(135deg, #22c08d, #17a578);
  border-color: rgba(62, 214, 163,.6);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(34, 192, 141,.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CASE-SEITE (/case/:slug) — Showroom
   ═══════════════════════════════════════════════════════════════════════════ */
.cp-showroom {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 768px) { .cp-showroom { min-height: 500px; } }

.cp-bg {
  position: absolute; inset: 0;
  background: url('/img/cases/background_new.jpg') center center / cover no-repeat;
  z-index: 0;
}
.cp-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--hc) 18%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 14, 16,.55) 0%, rgba(13, 14, 16,.25) 40%, rgba(13, 14, 16,.9) 100%);
}

/* Podest mit Case + Front-Item */
.cp-podium {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem;
  transition: opacity .35s ease, transform .35s ease;
}
.cp-podium.hidden-during-spin { opacity: 0; transform: scale(.9); pointer-events: none; }

.cp-case-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: min(420px, 82vw);
  height: min(280px, 52vw);
}
.cp-halo {
  position: absolute;
  width: 85%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--hc) 60%, transparent) 0%, transparent 68%);
  filter: blur(30px);
  opacity: .7;
  animation: cp-halo-pulse 3.4s ease-in-out infinite;
}
@keyframes cp-halo-pulse { 0%,100% { opacity:.5; transform:scale(.95);} 50% { opacity:.85; transform:scale(1.06);} }

.cp-case {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--hc) 65%, transparent))
          drop-shadow(0 18px 36px rgba(0,0,0,.6));
}
.cp-front {
  position: absolute; z-index: 2;
  width: 46%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--hc) 70%, transparent))
          drop-shadow(0 10px 20px rgba(0,0,0,.5));
  animation: cp-front-float 3.2s ease-in-out infinite;
}
@keyframes cp-front-float {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-14px) scale(1.03); }
}

.cp-title {
  margin-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
@media (min-width: 768px) { .cp-title { font-size: 2.4rem; } }
.cp-sub { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .25rem; text-align: center; max-width: 30rem; }

/* Reel im Showroom (nur beim Öffnen sichtbar) */
.cp-reel-wrap {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  display: none;
  padding: 0 1rem;
}
.cp-reel-wrap.active { display: block; animation: cp-reel-in .35s ease; }
@keyframes cp-reel-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.cp-reel-wrap .reel-viewport { max-width: 1100px; margin: 0 auto; background: rgba(10,8,16,.82); backdrop-filter: blur(4px); }

/* ─── Aktionsleiste ─────────────────────────────────────────────────────── */
.cp-actionbar-wrap { max-width: 1100px; margin: -2.2rem auto 0; padding: 0 1rem; position: relative; z-index: 5; }
.cp-actionbar {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: rgba(20,17,27,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.7);
}
.cp-buy {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.6rem;
  border-radius: .7rem;
  border: 1px solid color-mix(in srgb, var(--hc) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hc) 90%, #000), color-mix(in srgb, var(--hc) 65%, #000));
  color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--hc) 80%, transparent);
  transition: transform .15s ease, filter .15s ease;
}
.cp-buy:hover { transform: translateY(-2px); filter: brightness(1.12); }
.cp-buy:active { transform: translateY(0); }
.cp-buy[disabled] { opacity: .5; pointer-events: none; }
.cp-buy-price {
  padding: .15rem .5rem; border-radius: .4rem;
  background: rgba(0,0,0,.28);
  font-family: 'Sora', sans-serif; font-size: .8rem;
}

.cp-toggles { display: flex; align-items: center; gap: 1rem; }
.cp-toggle { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; user-select: none; }
.cp-toggle input { display: none; }
.cp-switch {
  width: 2.1rem; height: 1.15rem; border-radius: 999px;
  background: rgba(255,255,255,.12);
  position: relative; flex-shrink: 0;
  transition: background .18s ease;
}
.cp-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: #fff; transition: transform .18s ease;
}
.cp-toggle input:checked + .cp-switch { background: var(--hc); }
.cp-toggle input:checked + .cp-switch::after { transform: translateX(.95rem); }
.cp-toggle-label { font-size: .74rem; color: rgba(255,255,255,.65); white-space: nowrap; }

.cp-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }

/* ─── Überschriften ─────────────────────────────────────────────────────── */
.cp-h2 {
  display: flex; align-items: center; gap: .55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ─── Drops der letzten Tage ────────────────────────────────────────────── */
.drop-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .6rem;
}
@media (min-width: 640px)  { .drop-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1024px) { .drop-row { grid-template-columns: repeat(8, minmax(0,1fr)); gap: .7rem; } }

.drop-card {
  border-radius: .7rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1925 0%, #15131d 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 3px solid #128a65;
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.drop-card:hover { transform: translateY(-3px); }
.drop-card.rare { border-top-color: #fbbf24; }
.drop-head { display: flex; justify-content: flex-start; padding: .35rem .5rem 0; }
.drop-value {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 800; color: #34d399;
  font-family: 'Sora', sans-serif;
}
.drop-card.rare .drop-value { color: #fcd34d; }
.drop-img {
  height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(34, 192, 141,.14), transparent 70%);
}
.drop-card.rare .drop-img { background: radial-gradient(ellipse at 50% 40%, rgba(251,191,36,.16), transparent 70%); }
.drop-img img { max-height: 88%; max-width: 78%; object-fit: contain; }
.drop-img i { color: rgba(255,255,255,.35); font-size: 1.4rem; }
.drop-foot { padding: .4rem .5rem .55rem; border-top: 1px solid rgba(255,255,255,.05); }
.drop-item {
  font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drop-user { font-size: .6rem; color: rgba(255,255,255,.4); margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Kauf-Modal ────────────────────────────────────────────────────────── */
.cp-modal {
  display: none;
  position: fixed; inset: 0; z-index: 95;
  align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(8,6,14,.85);
  backdrop-filter: blur(12px);
}
.cp-modal.show { display: flex; }
.cp-modal-box {
  position: relative;
  width: 100%; max-width: 400px;
  border-radius: 1.3rem;
  padding: 2rem 1.6rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--hc) 22%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #1d1a27 0%, #141119 100%);
  border: 1px solid color-mix(in srgb, var(--hc) 35%, transparent);
  box-shadow: 0 26px 70px -14px rgba(0,0,0,.75),
              0 0 50px -10px color-mix(in srgb, var(--hc) 40%, transparent);
  animation: bm-in .25s cubic-bezier(.2,.9,.3,1);
}
@keyframes bm-in { from { transform: translateY(18px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.cp-modal-close {
  position: absolute; top: .7rem; right: .7rem;
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.6); cursor: pointer; transition: all .15s ease;
}
.cp-modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.cp-modal-art {
  position: relative;
  height: 120px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.cp-modal-halo {
  position: absolute; width: 70%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--hc) 60%, transparent), transparent 70%);
  filter: blur(20px);
}
.cp-modal-art img { position: relative; max-height: 100%; max-width: 80%; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)); }
.cp-modal-title { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.4rem; }
.cp-modal-text { color: rgba(255,255,255,.62); font-size: .85rem; margin-top: .5rem; line-height: 1.5; }
.cp-modal-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.cp-modal-cancel, .cp-modal-confirm {
  flex: 1; padding: .7rem 1rem; border-radius: .7rem;
  font-weight: 700; font-size: .85rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .15s ease;
}
.cp-modal-cancel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.72);
}
.cp-modal-cancel:hover { background: rgba(255,255,255,.1); color: #fff; }
.cp-modal-confirm {
  background: linear-gradient(135deg, color-mix(in srgb, var(--hc) 92%, #000), color-mix(in srgb, var(--hc) 65%, #000));
  border: 1px solid color-mix(in srgb, var(--hc) 55%, transparent);
  color: #fff;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--hc) 85%, transparent);
}
.cp-modal-confirm:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cp-modal-confirm[disabled] { opacity: .55; pointer-events: none; }

/* ─── Mobile: Drops + Kisten-Inhalt als horizontale Slider ──────────────── */
@media (max-width: 767px) {
  .drop-row,
  .loot-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: .6rem;
    padding-bottom: .6rem;
    /* Rand-Bleed, damit die Karten am Bildschirmrand "anschneiden" */
    margin-inline: -1rem;
    padding-inline: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 214, 163,.5) transparent;
  }
  .drop-row > *,
  .loot-grid > * {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
  .drop-row::-webkit-scrollbar,
  .loot-grid::-webkit-scrollbar { height: 4px; }
  .drop-row::-webkit-scrollbar-thumb,
  .loot-grid::-webkit-scrollbar-thumb { background: rgba(62, 214, 163,.5); border-radius: 999px; }
  .drop-row::-webkit-scrollbar-track,
  .loot-grid::-webkit-scrollbar-track { background: transparent; }

  /* Hinweis, dass man wischen kann */
  .cp-h2::after {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
    color: rgba(255,255,255,.3);
    margin-left: auto;
  }
}

/* ─── Cooldown (z.B. Free Case: 1× / 24h) ───────────────────────────────── */
.cp-cooldown {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem 1.4rem;
  border-radius: .7rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
}
.cp-cooldown.hidden { display: none; }
.cp-cooldown > i { color: #fbbf24; font-size: 1.1rem; animation: cd-tick 2s ease-in-out infinite; }
@keyframes cd-tick { 0%,100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }
.cp-cooldown-txt { display: flex; flex-direction: column; line-height: 1.2; }
.cp-cooldown-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); }
.cp-cooldown-time { font-size: 1.15rem; font-weight: 800; color: #fbbf24; letter-spacing: .02em; }

/* Übersichtskarte: gesperrte Case zeigt den Timer statt "Öffnen" */
.hc-open.hc-locked {
  color: #fbbf24;
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.3);
  cursor: default;
}
.hc-card:hover .hc-open.hc-locked {
  background: rgba(251,191,36,.16);
  border-color: rgba(251,191,36,.45);
  color: #fcd34d;
  box-shadow: none;
}
