/* =========================================================
   EMOJI CATCH – FULL CSS (neutral theme: fits Lili + Rico)
   Place this file next to l2.html:
   Hilar/apps/magische_welt/lili/catch.css
   ========================================================= */

:root{
  --catch-bg: rgba(10, 10, 20, 0.78);
  --catch-window: rgba(20, 20, 40, 0.94);
  --catch-border: rgba(255, 255, 255, 0.18);

  /* Neutral neon (works on both pages) */
  --catch-accent-aqua: rgba(0, 242, 255, 0.95);
  --catch-accent-pink: rgba(255, 0, 255, 0.75);

  --catch-shadow: 0 22px 54px rgba(0,0,0,0.78);
}

/* ===== Overlay ===== */
.magic-overlay{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--catch-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* ===== Window ===== */
.magic-window{
  background: var(--catch-window);
  border: 2px solid var(--catch-border);
  border-radius: 34px;
  padding: 22px;
  width: 90%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--catch-shadow);
}

/* ===== Header ===== */
.magic-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: white;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.magic-title{
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255,255,255,0.08);
}

.magic-close{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: white;
  font-size: 22px;
  line-height: 1;
}

/* ===== Body ===== */
.magic-body{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ===== Game Zone ===== */
#catch-zone{
  width: 100%;
  height: 320px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,0.28);
}

#c-hint{
  position: absolute;
  width: 100%;
  text-align: center;
  top: 42%;
  color: white;
  opacity: 0.55;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Footer ===== */
.catch-footer{
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.magic-stats{
  color: white;
  font-size: 18px;
  margin: 8px 0 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.magic-start-btn{
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, var(--catch-accent-pink), var(--catch-accent-aqua));
  box-shadow: 0 0 16px rgba(255,0,255,0.25), 0 0 18px rgba(0,242,255,0.18);
}

/* ===== Falling Items ===== */
.catch-item{
  position: absolute;
  top: -60px;
  font-size: 42px;
  cursor: pointer;
  user-select: none;
  transform: translateY(0);
  transition: transform 2.6s linear;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
}

.catch-item.fall{
  transform: translateY(380px);
}
/* Felugró szintlépés üzenet */
.level-popup {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(0, 242, 255, 0.9);
  color: #000;
  padding: 15px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 24px;
  z-index: 100;
  opacity: 0;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.level-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Az elemek esése */
.catch-item.fall {
  transform: translateY(400px); /* Kicsit növeltem, hogy biztosan kiessen */
}

/* Tiltott kijelölés, hogy ne kéküljön be a szöveg klikkeléskor */
.catch-item {
  user-select: none;
  -webkit-user-select: none;
}
