/* ── components.css — all UI pieces ── */

/* ════════════════════════════════════
   GAME SECTION (top-left of right panel)
   z:3 — above smoke overlay
   ════════════════════════════════════ */

.game-section {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* SA logo in left panel — prominent wordmark */
.game-logo-left {
  width: 88%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
  /* filter:
    drop-shadow(0 0 40px rgba(220,140,25,0.55))
    drop-shadow(0 0 14px rgba(242,166,36,0.32)); */
  opacity: 0.97;
}

/* CTA block under game logo */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  width: 100%;
  max-width: 340px;
}

.cta-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.09);
  margin-bottom: 0.1rem;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.52rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(242,166,36,0.44);
  border-radius: 7px;
  font: 600 0.86rem/1 var(--font-mono);
  color: var(--cream);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-primary:hover {
  border-color: rgba(242,166,36,0.78);
  color: var(--gold);
}
.btn-primary .arrow-icon { color: var(--gold); font-size: 1rem; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.52rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  font: 500 0.80rem/1 var(--font-mono);
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,0.30);
}
.btn-secondary svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* ── Separator ── */
.divider {
  width: 60%;
  height: 1px;
  background: var(--sep);
  margin: 0;
}

/* ════════════════════════════════════
   STUDIO SECTION (bottom of left panel)
   ════════════════════════════════════ */

.studio-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Studio logo — large, matches PDF proportions */
.studio-logo {
  width: 260px;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: brightness(0) saturate(100%) invert(96%) sepia(8%) saturate(400%) hue-rotate(258deg);
  opacity: 0.75;
}

.studio-tagline {
  font: 500 0.65rem/1 var(--font-mono);
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -0.2rem;
}

.studio-desc {
  font: 400 0.84rem/1.70 var(--font-body);
  color: rgba(240,232,220,0.58);
  max-width: 38ch;
}

/* ── Contact block ── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font: 400 0.78rem/1.55 var(--font-mono);
}

.contact-block .label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
  margin-bottom: 0.08rem;
}

.contact-block a { color: var(--gold); transition: color 0.2s; }
.contact-block a:hover { color: var(--cream); }

.address {
  font: 400 0.72rem/1.60 var(--font-mono);
  color: rgba(240,232,220,0.24);
  margin-top: 0.3rem;
}

/* ── Download links ── */
.downloads { display: flex; flex-direction: row; gap: 1.8rem; align-items: flex-start; }

.dl-link {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: color 0.2s;
}
.dl-link:hover { color: var(--cream); }
.dl-link .dl-title {
  font: 500 0.60rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240,232,220,0.36);
  white-space: nowrap;
}
.dl-link .dl-action {
  font: 600 0.74rem/1 var(--font-mono);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}
.dl-link .arrow { font-size: 0.72rem; }
.dl-link:hover .dl-action { color: var(--cream); }
.dl-link--right { align-items: flex-end; }

/* ── Social icons ── */
.socials { display: flex; gap: 0.6rem; align-items: center; }

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-icon:hover {
  background: rgba(242,166,36,0.12);
  border-color: rgba(242,166,36,0.28);
  color: var(--gold);
}
.social-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* ════════════════════════════════════
   RIGHT PANEL — robot only
   z:1 robot-bg  /  z:2 smoke-overlay
   ════════════════════════════════════ */

.robot-bg {
  position: absolute;
  right: -10%;
  bottom: -10%;
  height: 92%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  filter:
    drop-shadow(0 0 28px rgba(220,120,30,0.18))
    saturate(1.08)
    brightness(1.02);
}

/* ── Signup toast ── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(242,166,36,0.13);
  border: 1px solid rgba(242,166,36,0.38);
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ════════════════════════════════════
   RESPONSIVE — component overrides
   ════════════════════════════════════ */

/* ─── Tablet & large phone (≤ 768px) ─── */
@media (max-width: 768px) {
  .game-logo-left {
    width: 66%;
    max-width: 290px;
  }

  .cta-block {
    max-width: 100%;
  }

  .studio-logo {
    width: 210px;
  }

  .studio-desc {
    max-width: 100%;
    font-size: 0.82rem;
  }

  .downloads {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

}

/* ─── Phone portrait (≤ 480px) ─── */
@media (max-width: 480px) {
  .game-logo-left {
    width: 58%;
    max-width: 230px;
  }

  .studio-logo {
    width: 170px;
  }

  .btn-primary {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }

  .btn-secondary {
    font-size: 0.75rem;
    padding: 0.50rem 0.65rem;
    gap: 0.3rem;
  }

  .studio-desc {
    font-size: 0.80rem;
    line-height: 1.65;
  }

  .contact-block {
    font-size: 0.75rem;
  }

  .address {
    font-size: 0.65rem;
  }

  .dl-link .dl-title {
    font-size: 0.56rem;
  }

  .dl-link .dl-action {
    font-size: 0.70rem;
  }

}

/* ─── Landscape phone (≤ 900px × ≤ 500px) ─── */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .game-logo-left {
    width: 54%;
    max-width: 200px;
  }

  .cta-block {
    max-width: 280px;
  }

  .btn-primary {
    font-size: 0.80rem;
    padding: 0.46rem 0.9rem;
  }

  .btn-secondary {
    font-size: 0.73rem;
    padding: 0.44rem 0.6rem;
  }

  .studio-logo {
    width: 170px;
  }

  .studio-desc {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .contact-block {
    font-size: 0.70rem;
  }

  .address {
    font-size: 0.62rem;
    margin-top: 0.15rem;
  }

  .downloads {
    gap: 1rem;
  }

  .dl-link .dl-title {
    font-size: 0.55rem;
  }

  .dl-link .dl-action {
    font-size: 0.68rem;
  }

  .socials {
    gap: 0.45rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .theme-switcher {
    bottom: 0.5rem;
    right: 0.75rem;
  }
}
