:root {
  --bg: #12121a;
  --surface: #1a1a26;
  --surface-top: #20202e;
  --border: #2c2c3b;
  --border-soft: #24242f;
  --text: #f2f2f5;
  --muted: #9a9ab0;
  --faint: #6f6f88;
  --accent: #7c6cff;
  --accent-soft: #b7a8ff;
  --content-width: 1080px;
  --radius: 14px;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  /* Sayfanın üstünde sabit duran yumuşak ışık; ek görsel dosyası gerektirmez. */
  background:
    radial-gradient(48rem 26rem at 12% -6%, rgba(124, 108, 255, 0.28), transparent 62%),
    radial-gradient(40rem 24rem at 92% 2%, rgba(96, 170, 255, 0.14), transparent 60%),
    radial-gradient(56rem 30rem at 70% 105%, rgba(124, 108, 255, 0.1), transparent 65%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: inherit;
}

/* Layout */

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Hero */

.hero {
  padding: clamp(2.75rem, 8vw, 5rem) 0 clamp(2.25rem, 6vw, 3.5rem);
}

.hero__lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

/* Zemin ve kenarlık SVG'nin içinde; burada yalnız boyut ve parıltı verilir. */
.hero__mark {
  display: block;
  flex-shrink: 0;
  width: clamp(52px, 9vw, 68px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(124, 108, 255, 0.45));
}

.hero__wordmark {
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__wordmark span {
  background: linear-gradient(100deg, var(--accent-soft), var(--accent) 55%, #5ac8fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section heading */

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-count {
  font-size: 0.8125rem;
  color: var(--faint);
}

/* Games grid */

.games-grid {
  display: grid;
  gap: 1.25rem;
  /* Üst sınır var: tek oyun varken kart tüm satırı kaplayıp yalnız görünmesin. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 360px));
}

.games-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, var(--surface-top), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #3b3563;
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.9);
}

.game-card__head {
  display: flex;
  flex: 1;
  gap: 1rem;
  align-items: flex-start;
}

.game-card__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 19px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.85);
}

.game-card__icon--fallback {
  display: grid;
  place-items: center;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: hsl(var(--hue) 70% 88%);
  background: linear-gradient(
    135deg,
    hsl(var(--hue) 45% 28%),
    hsl(calc(var(--hue) + 40) 45% 18%)
  );
}

.game-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.game-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.game-card__blurb {
  font-size: 0.9375rem;
  color: var(--muted);
}

.game-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.game-card__link {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.game-card__link--store {
  color: #fff;
  background: linear-gradient(180deg, #8d7eff, #6d5cf0);
  box-shadow: 0 8px 20px -10px rgba(124, 108, 255, 0.9);
}

.game-card__link--store:hover {
  filter: brightness(1.12);
}

.game-card__link--legal {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.game-card__link--legal:hover {
  color: var(--text);
  border-color: #3b3563;
}

.game-card__soon {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Link değil, durum etiketi: gerçek "Play" butonundan daha sakin durmalı. */
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Support ve placeholder ana sayfa */

/* main öğesinin kendisi: flex:1 aldığı için içerik dikeyde ortalanır. */
.support,
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.support__label,
.placeholder__note {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.support__email {
  max-width: 100%;
  font-size: clamp(1.125rem, 5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
  text-decoration: none;
  /* Uzun adres dar ekranda taşmasın. */
  overflow-wrap: anywhere;
}

.support__email:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-soft);
  font-size: 0.875rem;
  color: var(--faint);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .game-card__link {
    transition: none;
  }

  .game-card:hover {
    transform: none;
  }
}
