@font-face {
  font-family: Roboto-Regular;
  src: url(fonts/db378f0f3e7e0e7d5142.woff) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto-Bold;
  src: url(fonts/0a4c9541dcd80a3c7eb4.woff) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: PassionOne-Bold;
  src: url(fonts/2ee528f2d76f9d1ce178.woff) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f1320;
  --card: #181d2f;
  --text: #eaf0ff;
  --accent: #4f8cff;
  --accent-2: #00d3a7;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, sans-serif;
  background: url(assets/background.webp) no-repeat center center;
  background-size: cover;
  color: var(--text);
  position: relative;
}

/* Mobil arka plan görseli */
@media (max-width: 768px) {
  body {
    background: url(assets/mobile/MobPopupBG.webp) no-repeat bottom center;
    background-size: cover;
  }

  .main-container__elements {
    background-image: url(assets/mobile/Symbols1.webp) !important;;
  }
}

/* Arka plan sembolü */
.main-container__elements {
  background-image: url(assets/Symbols.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Sayfa yapısı */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(35px, 3.5vw, 36px);
  font-family: Roboto-Bold, sans-serif;
  letter-spacing: 2px;
  color: #ffb400;
}
.hero p {
  margin: 0;
  opacity: 0.85;
  color: #ffb400;
  font-family: Roboto-Regular, sans-serif;
  font-size: 20px;
}

/* Kutular */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 18px;
  width: min(720px, 92vw);
}
.gift {
  background: linear-gradient(180deg, #ffb400 0%, #c18500 100%);
  border: 1px solid #2a3357;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift:hover {
  transform: translateY(-4px);
  border-color: #3952a3;
}
.box {
  width: 60%;
  max-width: 260px;
  display: block;
  animation: sparkle 2s infinite alternate;
  transform-origin: center;
}

/* Parıltı */
@keyframes sparkle {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.7); }
  100% { filter: brightness(1); }
}

/* Pulse animasyonu */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.8s ease-in-out;
}

/* Popup */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 998;
}
.popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 999;
}
.popup-img {
  max-width: min(560px, 92vw);
  border-radius: 12px;
  display: block;
  height: auto;
}
.hidden {
  display: none !important;
}

#popupLink {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1111; /* Above popup background, below content */
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: var(--width, 12px);
    height: var(--height, 6px);
    background: #fff;
    opacity: 1;
    transform-origin: center;
    will-change: transform, opacity; /* Optimize performance */
}

/* Color variations */
.confetti:nth-child(6n) { background: #ff0000; }
.confetti:nth-child(6n + 1) { background: #00ff00; }
.confetti:nth-child(6n + 2) { background: #0000ff; }
.confetti:nth-child(6n + 3) { background: #ffff00; }
.confetti:nth-child(6n + 4) { background: #ff00ff; }
.confetti:nth-child(6n + 5) { background: #00ffff; }
