:root {
  --ink: #111;
  --ink-soft: #555;
  --paper: #fff;
  --paper-alt: #f5f5f3;
  --line: #e5e5e2;
  --accent: #ffb800;       /* gator eye / radiation yellow */
  --accent-deep: #f59e0b;
  --night: #0e0e0e;
  --night-soft: #1a1a1a;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
ul { list-style: none; margin: 0; padding: 0; }

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

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ffc933; }
.btn--ghost { color: #eee; box-shadow: inset 0 0 0 2px #444; margin-left: 8px; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); color: #fff; }
@media (max-width: 400px) { .btn--ghost { margin: 12px 0 0; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 480px) { .nav__links { gap: 16px; font-size: .95rem; } }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(640px, 100%); }
/* Animated eye: 12-frame sprite cropped from the logo at (500,170) 221x151 of 1620x620 */
.gator { position: relative; display: block; }
.gator__eye {
  position: absolute;
  left: 30.864%; top: 27.419%; width: 13.642%; height: 24.355%;
  background: url("../assets/img/gator-eye-sprite.png") 0 0 / 1200% 100% no-repeat;
  --frame: 0; /* starts closed; js/main.js opens it */
  background-position-x: calc(var(--frame) * 100% / 11);
}
.hero__studios { width: 46%; margin: 18px auto 0; }
.hero__tagline { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink-soft); margin: 32px 0 32px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound__logo { width: min(320px, 80%); margin-bottom: 40px; }
.notfound h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.notfound .hero__tagline { margin: 16px 0 32px; }

/* Featured game (dark band) */
.game { background: var(--night); color: #eee; padding: clamp(64px, 10vw, 110px) 0; }
.game__logo { width: min(560px, 100%); margin-bottom: 48px; }
.game__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .game__grid { grid-template-columns: 1fr; } }
.game__pitch { font-size: 1.1rem; margin: 0 0 20px; color: #d6d6d6; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags li {
  font-size: .85rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid #333; color: #cfcfcf;
}

/* YouTube facade: loads the iframe only on click */
.yt {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.yt:hover img { opacity: .85; }
.yt__play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.yt__play::after {
  content: ""; position: absolute; left: 30px; top: 23px;
  border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--ink);
}
.game__yt-link { display: inline-block; margin-top: 10px; font-size: .85rem; color: #999; text-decoration: none; }
.game__yt-link:hover { color: var(--accent); text-decoration: underline; }
.game__trailer iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 40px;
}
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; background: var(--night-soft);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.04); }

/* Upcoming */
.upcoming { padding: clamp(64px, 10vw, 110px) 0; background: var(--paper-alt); }
.upcoming h2 { margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card__art { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__art--placeholder {
  display: grid; place-items: center;
  font-size: 4rem; font-weight: 800; color: #3a3a3a;
  background: repeating-linear-gradient(-45deg, #161616 0 18px, #1d1d1d 18px 36px);
}
.card__body { padding: 22px 24px 26px; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card__body p { margin: 0 0 16px; color: var(--ink-soft); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent); color: var(--ink);
}

/* About */
.about { padding: clamp(64px, 10vw, 110px) 0; }
.about__lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 720px; margin: 20px 0 48px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; }
.member__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin-bottom: 14px;
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
  background: var(--paper-alt); border: 2px solid var(--line);
  object-fit: cover;
}
.member h3 { font-size: 1.1rem; }
.member p { margin: 2px 0 0; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--night); color: #ddd; padding: 64px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 40px; align-items: end; }
.footer__title { font-size: 1.5rem; margin-bottom: 8px; color: #fff; }
.footer__cta { font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.footer__cta:hover { text-decoration: underline; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; color: #bbb; }
.footer__links a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid #262626; font-size: .9rem; color: #888; }
@media (max-width: 640px) { .footer__inner { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: min(1400px, 94vw); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox__close {
  position: fixed; top: 16px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  background: rgba(255, 255, 255, .15); color: #fff;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }
