:root {
  --bg:    #0C0B08;
  --cream: #F2EDE3;
  --gold:  #EDB111;
  --muted: rgba(242, 237, 227, 0.38);
  --rule:  rgba(242, 237, 227, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== OPENING ANIMATION ====== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.flag-icon { animation: fade-up  0.7s ease-out 0.25s both; }
.wordmark  { animation: fade-up  0.8s ease-out 0.45s both; }
.tagline   { animation: fade-up  0.7s ease-out 0.60s both; }
.stats     { animation: fade-up  0.6s ease-out 0.73s both; }
.sub-stats { animation: fade-up  0.6s ease-out 0.76s both, glow-pulse 3s ease-in-out 1.36s infinite; }
.games     { animation: fade-up  0.6s ease-out 0.84s both; }
.dl-label  { animation: fade-up  0.5s ease-out 0.92s both; }
.badges    { animation: fade-up  0.6s ease-out 1.00s both; }
footer     { animation: fade-in  0.6s ease-out 1.10s both; }
.sun-bg    { animation: fade-in  1.4s ease-out 0.60s both; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ====== BACKGROUND PHOTO (kilim / taş mimari) ====== */
.bg-photo {
  position: fixed;
  inset: 0;
  background: url('https://firebasestorage.googleapis.com/v0/b/kurdish-app-ea16a.firebasestorage.app/o/images%2Flessons%2Fls_unit3_l2_PLACEHOLDER%2Fres_black_adj_manual_1779847368066.png?alt=media&token=8c1128de-1425-4f72-ac64-ea697330b9dd') center center / cover no-repeat;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
  /* Vignette — kenarlar görünsün, tam orta daha açık */
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, rgba(0,0,0,0.6) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

/* ====== KURDISH SUN WATERMARK ====== */
.sun-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.sun-bg svg {
  width: min(80vmin, 640px);
  height: min(80vmin, 640px);
  color: var(--gold);
  opacity: 0.108;
}

/* ====== MAIN CONTENT ====== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
  gap: 0;
}

.flag-icon {
  display: flex;
  flex-direction: column;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1.25rem;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.fi-red   { flex: 1; background: #D21034; }
.fi-white { flex: 1; background: #FFFFFF; position: relative; display: flex; align-items: center; justify-content: center; }
.fi-green { flex: 1; background: #009A44; }

.fi-sun {
  position: absolute;
  width: 62px;
  height: 62px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wordmark {
  width: min(520px, 86vw);
  height: auto;
  display: block;
  margin-bottom: 0.25rem;
  border-radius: 16px;
}


.tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--gold);
  opacity: 0.92;
  margin-bottom: 1rem;
}

/* ====== STATS ====== */
.stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(242, 237, 227, 0.04);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 1.5rem;
  gap: 4px;
}

.stat strong {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #FFD566;
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 12px rgba(255, 200, 60, 0.7),
    0 0 32px rgba(255, 180, 20, 0.4),
    0 0 60px rgba(237, 177, 17, 0.2);
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 200, 60, 0.6),
      0 0 28px rgba(255, 180, 20, 0.35),
      0 0 55px rgba(237, 177, 17, 0.18);
  }
  50% {
    text-shadow:
      0 0 16px rgba(255, 215, 80, 0.9),
      0 0 42px rgba(255, 190, 30, 0.55),
      0 0 80px rgba(237, 177, 17, 0.32);
  }
}

.sub-ornament {
  font-size: 0.55rem;
  opacity: 0.8;
  animation: ornament-spin 8s linear infinite;
  display: inline-block;
}

@keyframes ornament-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.stat-rule {
  width: 1px;
  height: 36px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ====== GAME CARDS ====== */
.games {
  display: flex;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid rgba(237, 177, 17, 0.25);
  border-radius: 12px;
  background: rgba(237, 177, 17, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.game-card::before,
.game-card::after {
  content: '◆';
  position: absolute;
  font-size: 0.35rem;
  color: var(--gold);
  opacity: 0.5;
}

.game-card::before { top: -5px; left: 50%; transform: translateX(-50%); }
.game-card::after  { bottom: -5px; left: 50%; transform: translateX(-50%); }

.game-card:hover {
  border-color: rgba(237, 177, 17, 0.5);
  background: rgba(237, 177, 17, 0.09);
}

.game-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.game-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
}

/* ====== DOWNLOAD LABEL ====== */
.dl-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 72vw);
  margin-bottom: 1rem;
}

.dl-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 237, 227, 0.18), transparent);
}

.dl-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #FFD566;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 10px rgba(255, 200, 60, 0.65),
    0 0 28px rgba(255, 180, 20, 0.35),
    0 0 55px rgba(237, 177, 17, 0.18);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ====== STORE BADGES ====== */
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  color: white;
  min-width: 152px;
  transition: border-color 0.15s, background 0.15s;
}

.badge:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.28);
}

.badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.badge-text small {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.03em;
  line-height: 1;
}

.badge-text strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ====== FOOTER ====== */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--cream);
}

/* ====== MOBILE ====== */
@media (max-width: 480px) {
  body { overflow: auto; }

  .stats {
    gap: 0;
  }

  .stat {
    padding: 0.75rem 1rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
  }
}
