/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   PAGE BACKGROUND
========================= */
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #fde8d6, #f7d1b3);
  overflow-x: hidden;
}

/* SUBTLE DIAGONAL TEXTURE */
.background {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.22) 0px,
    rgba(255,255,255,0.22) 120px,
    transparent 120px,
    transparent 260px
  );
  animation: drift 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  to {
    background-position: 700px 0;
  }
}

/* =========================
   HEADER
========================= */
.page-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 16px 24px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2b1a0e;
}

.page-header p {
  margin-top: 6px;
  opacity: 0.85;
  color: #2b1a0e;
}

/* =========================
   CENTERED IMAGE STAGE
========================= */
.center-stage {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* =========================
   HERO IMAGE (BIGGEST)
========================= */
.hero-img {
  width: 100%;
  max-width: 380px; /* BIGGER THAN OTHERS */
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =========================
   SECONDARY IMAGES
========================= */
.abilities {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.abilities img {
  width: 100%;
  max-width: 340px; /* SMALLER THAN HERO */
}

/* =========================
   GIVEAWAY SECTION
========================= */
.giveaway {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 32px auto 80px;
  padding: 24px;
  text-align: center;
}

.giveaway h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #2b1a0e;
}

.giveaway-text {
  opacity: 0.9;
  margin-bottom: 20px;
  color: #2b1a0e;
}

/* =========================
   OFFERS (SCRIPT SAFE)
========================= */
.offers div {
  margin-bottom: 12px;
}

.offers a {
  display: block;
  padding: 14px;
  background: linear-gradient(135deg, #ffb37a, #ff9654);
  color: #2b1a0e;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offers a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  .hero-img {
    max-width: 300px; /* STILL BIGGEST */
  }

  .abilities img {
    max-width: 100%;
  }
}
/* =========================
   USER INPUTS
========================= */
.user-inputs {
  max-width: 420px;
  margin: 16px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-inputs input {
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.85);
}

.user-inputs input::placeholder {
  color: #6b4a32;
}

/* =========================
   PLATFORMS
========================= */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.platform {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.35);
  color: #2b1a0e;
  backdrop-filter: blur(4px);
}
.platform {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.platform:hover {
  opacity: 1;
}

.user-inputs input.error {
  border: 2px solid #e60012;
  background: rgba(255, 230, 230, 0.9);
}

/* =========================
   PLATFORM DISABLED STATE
========================= */
.platform.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.platform.selected {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6),
              0 10px 24px rgba(0,0,0,0.25);
}
/* =========================
   FORM WARNING
========================= */
.form-warning {
  display: none;
  margin: 10px auto 14px;
  max-width: 420px;
  color: #e60012;
  font-size: 0.85rem;
  font-weight: 600;
}

/* PLATFORM COLORS */
.platform.ps { background: #003791; color: #fff; }
.platform.xbox { background: #107c10; color: #fff; }
.platform.switch { background: #e60012; color: #fff; }
.platform.pc { background: #444; color: #fff; }
