html,
body {
  margin: 0;
  background: transparent;
  font-family: system-ui, Segoe UI, Arial;
}

.wrap {
  position: relative;
  width: 1000px;
  height: 350px;
  overflow: hidden;
}

/* =========================
   SPAWN CARD (Redesign)
   ========================= */

.card {
  --accent: #8b8b8b;
  --accent-glow: rgba(255, 255, 255, 0.12);

  position: absolute;
  left: 20px;
  top: 20px;
  width: 600px;
  min-height: 206px;

  display: flex;
  gap: 18px;
  align-items: center;

  padding: 16px 18px;
  border-radius: 24px;

  background:
    linear-gradient(180deg, rgba(47, 50, 56, 0.95), rgba(35, 38, 44, 0.92));
  border: 3px solid rgba(255, 255, 255, 0.06);
  color: #fff;

  backdrop-filter: blur(8px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px var(--accent-glow);

  transform: translateX(-18px);
  opacity: 0;
  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
  z-index: 10;
}

.card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.15));
  opacity: .95;
  box-shadow: 0 0 12px var(--accent-glow);
}

.card.show {
  opacity: 1;
  transform: translateX(0);
}

.img {
  width: 164px;
  height: 164px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-left: 10px; /* Platz für Accent-Bar */
  flex: 0 0 164px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.img img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.34));
}

.spawn-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spawn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2px;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.timer-pill {
  font-size: 18px;
  padding: 10px 14px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.timer {
  font-weight: 900;
}

.rarity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.03);
}

.hint {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hint b {
  color: #fff;
  font-weight: 900;
}

.shiny {
  filter:
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
}

/* Card-Accent nach Seltenheit (JS setzt rarity-* auf .card) */
.card.rarity-common {
  --accent: #d0d0d0;
  --accent-glow: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.08);
}

.card.rarity-uncommon {
  --accent: #2ecc71;
  --accent-glow: rgba(46, 204, 113, 0.22);
  border-color: rgba(46, 204, 113, 0.28);
}

.card.rarity-rare {
  --accent: #3a9ad9;
  --accent-glow: rgba(58, 154, 217, 0.22);
  border-color: rgba(58, 154, 217, 0.28);
}

.card.rarity-epic {
  --accent: #9b59b6;
  --accent-glow: rgba(155, 89, 182, 0.24);
  border-color: rgba(155, 89, 182, 0.30);
}

.card.rarity-legendary {
  --accent: #e67e22;
  --accent-glow: rgba(230, 126, 34, 0.26);
  border-color: rgba(230, 126, 34, 0.34);
}

.card.rarity-gottheit {
  --accent: #f1c40f;
  --accent-glow: rgba(241, 196, 15, 0.28);
  border-color: rgba(241, 196, 15, 0.36);
}

/* Rarity Badge-Farben (JS setzt rarity-* auf #rarity) */
#rarity.rarity-common {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

#rarity.rarity-uncommon {
  background: rgba(46, 204, 113, 0.16);
  border-color: rgba(46, 204, 113, 0.34);
  color: #caffdf;
}

#rarity.rarity-rare {
  background: rgba(58, 154, 217, 0.16);
  border-color: rgba(58, 154, 217, 0.34);
  color: #d5efff;
}

#rarity.rarity-epic {
  background: rgba(155, 89, 182, 0.18);
  border-color: rgba(155, 89, 182, 0.36);
  color: #f0d9ff;
}

#rarity.rarity-legendary {
  background: rgba(230, 126, 34, 0.18);
  border-color: rgba(230, 126, 34, 0.38);
  color: #ffe1c6;
}

#rarity.rarity-gottheit {
  background: rgba(241, 196, 15, 0.20);
  border-color: rgba(241, 196, 15, 0.40);
  color: #fff2ba;
}

#rarity.rarity-unknown {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eaeaea;
}

/* =========================
   RAID OVERLAY (dein Layout, unverändert)
   ========================= */

.raid-overlay {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 760px;
  pointer-events: none;
  z-index: 30;
  font-family: Arial, Helvetica, sans-serif;
}

.raid-panel {
  border-radius: 22px;
  background: #6df06f;
  /* mockup grün */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
}

.raid-content {
  display: flex;
  align-items: stretch;
  min-height: 220px;
  position: relative;
}

.raid-left {
  flex: 1;
  padding: 18px 18px 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  z-index: 2;
}

.raid-title {
  color: #fff;
  font-weight: 900;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.08),
    0 0 12px rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  max-width: 430px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raid-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.raid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.raid-time {
  color: #fff;
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

/* Boss-HP-Bar (voll -> leer) */
.raid-bar-wrap {
  margin-top: 8px;
}

.raid-bar-bg {
  position: relative;
  height: 34px;
  border-radius: 999px;
  background: #0d0d0d;
  border: 4px solid #000;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.raid-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #16ff1a 0%, #00d600 100%);
  transition: width 180ms linear;
}

/* Optionaler Text auf der Bar
.raid-bar-text {
  margin-top: 4px;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
*/

.raid-join-hint {
  margin-top: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.raid-right {
  width: 290px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.raid-boss-img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  object-position: center bottom;
  margin-right: 8px;
  margin-top: -8px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
  opacity: 0.98;
}

/* Tier-Farben */
.tier-easy {
  background: #4b8f6a;
}

.tier-normal {
  background: #4f72c9;
}

.tier-hard {
  background: #a56a2b;
}

.tier-epic {
  background: #7a44c9;
}

.tier-legendary {
  background: #c94444;
}

/* kleine "appear" animation */
.raid-overlay.raid-enter .raid-panel {
  animation: raidPopIn 180ms ease-out;
}

/* Hintergrund je Raid-Schwierigkeit */
.raid-panel.theme-easy {
  background: linear-gradient(180deg, #6df06f 0%, #58d95b 100%);
}

.raid-panel.theme-normal {
  background: linear-gradient(180deg, #6fa7ff 0%, #4f7fe0 100%);
}

.raid-panel.theme-hard {
  background: linear-gradient(180deg, #ffb25f 0%, #e08a30 100%);
}

.raid-panel.theme-epic {
  background: linear-gradient(180deg, #b97bff 0%, #8f4fe0 100%);
}

.raid-panel.theme-legendary {
  background: linear-gradient(180deg, #ff6f6f 0%, #d84545 100%);
}

@keyframes raidPopIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}