:root {
  --purple-bg: #5b2a7e;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --font-brand: "Baloo 2", system-ui, sans-serif;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--purple-bg);
  color: var(--text-light);
  font-family: var(--font-brand);
  text-align: center;
}

.header {
  padding: 2rem 1.5rem 0;
}

.logo {
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: skewX(-6deg);
}

.logo--small {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* --- Oyun vitrini --- */

.showcase {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 3rem;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.showcase__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.showcase__info.is-swapping {
  animation: info-fade 0.35s ease;
}

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

.game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.4rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.game-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.game-description {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.store-badge img {
  height: 3.25rem;
  display: block;
}

/* The Google Play PNG has transparent padding of ~16.4% of the image height
   on every side (41px of 250px); it is scaled up and the padding is cropped
   with negative margin so the visible badge matches the App Store badge. */
[data-role="google-play"] img {
  height: 4.84rem;
  margin: -0.795rem;
}

.store-badge:hover {
  opacity: 0.85;
}

/* --- Fan kart destesi --- */

.showcase__deck {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2rem;
}

.game-card {
  position: relative;
  width: clamp(9.5rem, 16vw, 12rem);
  aspect-ratio: 9 / 16;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: var(--font-brand);
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:not(:first-child) {
  margin-left: -3.5rem;
}

.game-card:nth-child(1) {
  transform: rotate(-7deg) translateY(0.75rem);
}

.game-card:nth-child(2) {
  transform: rotate(0deg);
}

.game-card:nth-child(3) {
  transform: rotate(7deg) translateY(0.75rem);
}

.game-card:hover,
.game-card:focus-visible {
  z-index: 2;
}

.game-card:nth-child(1):hover,
.game-card:nth-child(1):focus-visible {
  transform: rotate(-7deg) translateY(0);
}

.game-card:nth-child(2):hover,
.game-card:nth-child(2):focus-visible {
  transform: rotate(0deg) translateY(-0.75rem);
}

.game-card:nth-child(3):hover,
.game-card:nth-child(3):focus-visible {
  transform: rotate(7deg) translateY(0);
}

.game-card.game-card--active {
  z-index: 3;
  border-color: var(--text-light);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.game-card:nth-child(1).game-card--active {
  transform: rotate(-7deg) translateY(-1.75rem);
}

.game-card:nth-child(2).game-card--active {
  transform: rotate(0deg) translateY(-2.5rem);
}

.game-card:nth-child(3).game-card--active {
  transform: rotate(7deg) translateY(-1.75rem);
}

.game-card__art {
  flex: 1;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.game-card__art--one {
  background: url("assets/car-stack-splash.png") center / cover no-repeat;
}

.game-card__art--two {
  background: linear-gradient(160deg, #c85499, #5b1f4c);
}

.game-card__art--three {
  background: linear-gradient(160deg, #5470c8, #1f2d68);
}

.game-card__label {
  font-size: 0.9rem;
  font-weight: 800;
  padding-bottom: 0.25rem;
}

@media (max-width: 860px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem 3rem;
  }

  .showcase__deck {
    order: -1;
    padding: 2.5rem 0 1rem;
  }

  .game-card {
    width: clamp(6rem, 24vw, 9rem);
  }

  .game-card:not(:first-child) {
    margin-left: -1.75rem;
  }
}

.footer {
  padding: 2rem 1.5rem 2rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__contact {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer__contact a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 0.75rem;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__links {
  font-size: 0.8rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.75rem;
}

.footer__links a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Yasal sayfalar (privacy, terms) --- */

.legal {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: left;
  line-height: 1.7;
}

.legal .back-btn {
  display: inline-block;
  background-color: var(--text-light);
  color: var(--purple-bg);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border-bottom: none;
  text-decoration: none;
  margin-bottom: 2rem;
}

.legal .back-btn:hover {
  opacity: 0.85;
}

.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal a {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
}

.legal a:hover {
  border-bottom-color: var(--text-light);
}
