/* =========================================================
   Arcade Oven — retro arcade design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* palette */
  --bg: #170b2e;
  --bg-alt: #1f1140;
  --panel: #241454;
  --ink: #f5f1ff;
  --ink-dim: #c3b8e8;
  --color-primary: #ff3d7f;    /* CTAs, buttons, active/status states */
  --color-secondary: #2fe6d9;  /* links, focus states, secondary buttons */
  --color-highlight: #ffd23f;  /* eyebrows, callouts, active dots */
  --color-tertiary: #8c5cff;   /* gradient partner (hero art, CTA band) */

  --border: 3px solid var(--ink);
  --radius: 14px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);

  --font-display: "Press Start 2P", "Courier New", monospace;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(140, 92, 255, 0.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(47, 230, 217, 0.15), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- scanline / crt overlay -------- */
.crt-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.45) 100%);
}

/* -------- headings -------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.6rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); }
h3 { font-size: 0.95rem; }

p { color: var(--ink-dim); margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(255,210,63,0.25);
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-decoration: none;
  padding: 16px 22px;
  border: var(--border);
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn.btn-secondary { background: var(--color-secondary); color: #0a1a2b; }
.btn.btn-highlight { background: var(--color-highlight); color: #201400; }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn.btn-ghost:hover {
  transform: none;
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}
.btn.btn-sm { padding: 11px 16px; font-size: 0.6rem; }

/* -------- nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 11, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(245,241,255,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink);
}

/* Studio logo lockup (icon + wordmark, one image). Falls back to plain
   text if assets/img/logo/logo-lockup-white.png is ever missing. */
.logo-lockup {
  display: block;
  height: 34px;
  width: auto;
}
.logo-lockup-lg { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.62rem;
}
.nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--panel);
  color: var(--color-highlight);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}

/* -------- sections -------- */
section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.05rem; }

#games { background: var(--bg-alt); }

/* -------- hero -------- */
.hero {
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Hero art: gradient card frame. .hero-video holds the always-on Littlehaven
   trailer embed, sized to a normal 16:9 video ratio instead of the old
   square placeholder box. */
.hero-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--color-tertiary), var(--color-primary) 55%, var(--color-highlight));
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.marquee {
  border-top: 3px solid rgba(245,241,255,0.15);
  border-bottom: 3px solid rgba(245,241,255,0.15);
  background: var(--panel);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--color-secondary);
}
.marquee-track span { opacity: 0.85; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- game card -------- */
.game-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.game-card-media {
  position: relative;
  background: linear-gradient(160deg, #2b1a5e, #4a2a86 60%, #ff3d7f);
  min-height: 320px;
  border-right: var(--border);
  overflow: hidden;
}

/* Screenshot slideshow. object-fit: cover so the screenshot always fills
   the whole box (no letterboxing), cropping slightly at the edges instead
   as the card is resized. */
.media-slides { position: absolute; inset: 0; }
.media-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.media-slide.active { opacity: 1; }

/* Game logo, always centred over the media box regardless of screen size
   or which screenshot is showing. */
.media-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  pointer-events: none;
}
.media-logo-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.55)) drop-shadow(0 0 32px rgba(0,0,0,0.35));
}

/* Slideshow dot navigation, only added by JS when there's more than one screenshot */
.media-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.media-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(245,241,255,0.35);
  border: 2px solid rgba(245,241,255,0.55);
}
.media-dot.active { background: var(--color-highlight); border-color: var(--color-highlight); }

/* Click-to-play trailer button and the video it swaps in */
.media-play-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--color-primary);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.media-play-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

.media-video-wrap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
}
.media-video-wrap.active { display: block; }
.media-video-wrap iframe { width: 100%; height: 100%; border: 0; }
.media-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(23,11,46,0.85);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.game-card-body { padding: 36px; display: flex; flex-direction: column; }
.game-card-body h3 { font-size: 1.4rem; color: var(--color-highlight); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-family: var(--font-display);
  font-size: 0.55rem;
  padding: 6px 10px;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: 100px;
}
.tag.tag-status { border-color: var(--color-primary); color: var(--color-primary); }

/* -------- games grid (multiple game cards) -------- */
.games-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border: 2px solid rgba(245,241,255,0.3);
  border-radius: 100px;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.link-chip:hover { border-color: var(--color-highlight); color: var(--color-highlight); }
.link-chip img { width: 24px; height: 24px; flex-shrink: 0; }

.icon-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.icon-link:hover { background: rgba(255,210,63,0.1); }
.icon-link img { width: 28px; height: 28px; }

/* -------- about -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
/* Team hub map (assets/img/about/studio-map.svg). Swap in the data-images
   slideshow pattern used on the game cards instead if you'd rather cycle
   through real team photos later, see the img README. */
.about-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.about-art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------- careers teaser / cta band -------- */
.cta-band {
  border: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--color-tertiary), var(--color-primary));
  box-shadow: var(--shadow-hard);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: rgba(23,11,46,0.85); }

/* -------- careers page -------- */
.role-card {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-hard-sm);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.role-card h3 { margin-bottom: 6px; font-size: 1.05rem; color: var(--ink); }
.role-status {
  font-family: var(--font-display);
  font-size: 0.55rem;
  padding: 8px 12px;
  border-radius: 100px;
  border: 2px solid var(--ink-dim);
  color: var(--ink-dim);
  white-space: nowrap;
}
.role-status.open { border-color: var(--color-secondary); color: var(--color-secondary); }

.open-app-panel {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow-hard-sm);
  padding: 36px;
  text-align: center;
  margin-top: 40px;
}

/* -------- contact form -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  padding: 20px;
}
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--ink-dim);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgba(245,241,255,0.25);
  background: rgba(0,0,0,0.2);
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}
.contact-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li {
  border: 2px solid rgba(245,241,255,0.18);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-info-list .label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--color-highlight);
  display: block;
  margin-bottom: 8px;
}
.contact-info-list a { text-decoration: none; font-weight: 600; }
.contact-info-list a:hover { color: var(--color-secondary); }

/* -------- footer -------- */
.site-footer {
  border-top: 3px solid rgba(245,241,255,0.15);
  padding: 56px 0 40px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-dim);
  border-top: 1px solid rgba(245,241,255,0.12);
  padding-top: 24px;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--color-secondary); }

/* -------- page hero (simple pages) -------- */
.page-hero { padding: 64px 0 40px; }
.page-hero .eyebrow { margin-bottom: 16px; }

/* -------- utility -------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* visually hidden but still reachable — used for the honeypot field */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------- responsive -------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-media { border-right: none; border-bottom: var(--border); min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 10px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .role-card { flex-direction: column; align-items: flex-start; }
}
