body {
  margin: 0;
  background: #111;
  color: white;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

/* ================= MEMES ================= */

.memes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.meme-row {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90vw;
  max-width: 420px;
  padding: 0 8px;
  box-sizing: border-box;
}

.meme-row.top {
  top: 12px;
}

.meme-row.bottom {
  bottom: 12px;
}

.meme-row img {
  max-width: 30vw;
  max-height: 90px;
  object-fit: contain;
  border-radius: 10px;
}

#meme-top-fixed {
  width: 80px; 
  max-width: none; 
}

/* Seiten */
.side-meme {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  max-width: 22vw;
  max-height: 140px;
}

#meme-left { left: 8px; }
#meme-right { right: 8px; }

/* ================= GESCHENK ================= */

.gift-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.gift-box {
  width: 160px;
  height: 120px;
  margin: 0 auto 12px;
  perspective: 800px;
  position: relative;
}

.box {
  width: 100%;
  height: 100%;
  background: #c0392b;
  border-radius: 0 0 10px 10px;
}

.lid {
  position: absolute;
  top: -40px;
  width: 100%;
  height: 40px;
  background: #e74c3c;
  transform-origin: bottom;
  transition: transform 0.8s ease;
}

.gift-box.open .lid {
  transform: rotateX(120deg);
}

button {
  padding: 12px 18px;
  font-size: 1.1rem;
  border-radius: 10px;
  background: hotpink;
  border: none;
  cursor: pointer;
}

/* ================= TEXT ================= */

.gift-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.gift-text h2,
.gift-text p {
  margin: 6px 0;
}

/* Animation für „Springen“ */
@keyframes popUp {
  0% {
    transform: translate(-50%, 50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -10%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.gift-text.show {
  display: flex;
  animation: popUp 0.8s ease forwards;
}

/* ================= KONFETTI ================= */

canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
  .meme-row img { max-width: 32vw; max-height: 70px; }
  .side-meme { max-width: 30vw; max-height: 100px; }
}

