/* Fateful Bullet landing page.
   Palette and type come from the game: the HUD navy, the logo's
   blue-to-magenta outline and the amber bullet streak; Teko for display
   (the HUD font) and Nunito Sans for reading. */

@font-face {
  font-family: "Teko";
  src: url("/fonts/teko-var.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0b111b;
  --bg-raised: #111d2d;
  --line: rgba(135, 163, 190, 0.22);
  --text: #f1fbff;
  --muted: #b3c0d1;

  --blue: #2b8cff;
  --violet: #9a5cf0;
  --pink: #ff2fa0;
  --cyan: #23cdff;
  --amber: #ffb53a;

  --logo-grad: linear-gradient(90deg, #1f7ae0, #8a4fe6 52%, #e0218a);
  --streak-grad: linear-gradient(90deg, rgba(43, 140, 255, 0), var(--blue) 16%, var(--pink) 68%, var(--amber));

  --display: "Teko", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --slant: 12px;
  --pad: clamp(20px, 4vw, 48px);
  --gap-section: clamp(72px, 11vw, 144px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.wrap {
  width: min(1200px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

/* ---------- Type ---------- */

h1,
h2 {
  margin: 0;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.eyebrow {
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- Bullet streak (the line through the logo) ---------- */

.streak {
  position: relative;
  width: min(100%, 420px);
  height: 3px;
  margin: 18px 0 22px;
  background: var(--streak-grad);
  border-radius: 2px;
  transform-origin: left center;
}

.streak::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 16px;
  height: 7px;
  translate: 0 -50%;
  background: linear-gradient(90deg, var(--amber), #ffe08a);
  border-radius: 1px 5px 5px 1px;
  box-shadow: 0 0 14px rgba(255, 181, 58, 0.75);
}

.js .streak:not(.streak--hero) {
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s linear;
}

.js .streak.in {
  transform: scaleX(1);
  opacity: 1;
}

.streak--hero {
  animation: fire 0.55s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fire {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ---------- Buttons (slanted like the HUD bars) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 6px 34px 2px;
  background: var(--logo-grad);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: filter 0.15s ease, translate 0.15s ease;
}

.btn:hover {
  filter: brightness(1.14);
  translate: 2px 0;
}

.btn:focus-visible {
  clip-path: none;
}

.btn--ghost {
  position: relative;
  z-index: 0;
  background: none;
  clip-path: none;
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17, 29, 45, 0.82);
  box-shadow: inset 0 0 0 2px rgba(241, 251, 255, 0.5);
  transform: skewX(-12.5deg);
  transition: box-shadow 0.15s ease;
}

.btn--ghost:hover {
  filter: none;
}

.btn--ghost:hover::before {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.btn--small {
  min-height: 40px;
  padding: 4px 22px 0;
  font-size: 1.2rem;
  --slant: 9px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.cta--center {
  justify-content: center;
}

/* ---------- Top bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding-inline: var(--pad);
  background: rgba(11, 17, 27, 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54e08a;
  box-shadow: 0 0 0 0 rgba(84, 224, 138, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 9px rgba(84, 224, 138, 0);
  }
}

.top__nav {
  display: flex;
  gap: 26px;
}

.top__nav a {
  padding: 6px 0 2px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.top__nav a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh, 940px);
  padding: 110px 0 80px;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 17, 27, 0.94) 0%, rgba(11, 17, 27, 0.8) 30%, rgba(11, 17, 27, 0) 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 27, 0) 24%);
}

.hero__logo {
  width: clamp(280px, 40vw, 560px);
  margin-left: -6px;
}

.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 6px 24px rgba(11, 17, 27, 0.6));
}

.hero__copy {
  max-width: 560px;
  margin-top: clamp(20px, 3vw, 36px);
}

.hero__tag {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero__lede {
  margin-bottom: 30px;
  font-size: 1.125rem;
  color: #dbe6f3;
}

.hero__meta {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: var(--gap-section);
}

.hero + .feature {
  margin-top: clamp(40px, 6vw, 80px);
}

.feature--flip .feature__media {
  order: 2;
}

.feature__text p:not(.eyebrow):not(.rules-label) {
  color: var(--muted);
}

.frame {
  padding: 2px;
  background: linear-gradient(135deg, var(--blue), var(--violet) 45%, var(--pink));
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-raised);
  clip-path: polygon(21px 0, 100% 0, 100% calc(100% - 21px), calc(100% - 21px) 100%, 0 100%, 0 21px);
}

/* Endurance bar: five segments, one per move, like the HUD stamina bar. */

.endurance {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 28px;
}

.endurance li {
  padding-top: 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(#ffc83d, #ffb21f) top / 100% 8px no-repeat;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.endurance li:nth-child(n + 4) {
  background-image: linear-gradient(rgba(255, 200, 61, 0.28), rgba(255, 200, 61, 0.28));
}

.rules-label {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips,
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 12px;
}

.chips li,
.slots li {
  padding: 9px 18px 5px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transform: skewX(-12deg);
}

/* ---------- Fighter ---------- */

.fighter {
  position: relative;
  margin-top: var(--gap-section);
  background:
    radial-gradient(60% 90% at 78% 60%, rgba(255, 47, 160, 0.3), rgba(154, 92, 240, 0.16) 45%, rgba(11, 17, 27, 0) 72%),
    linear-gradient(180deg, var(--bg), var(--bg-raised) 30%, var(--bg-raised) 70%, var(--bg));
  overflow: hidden;
}

.fighter__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.fighter__text {
  padding-block: clamp(48px, 8vw, 96px);
}

.fighter__text > p:not(.eyebrow) {
  color: var(--muted);
}

.slots {
  margin-top: 28px;
}

.slots li {
  background: rgba(11, 17, 27, 0.6);
}

.fighter__art {
  align-self: end;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  margin-top: 32px;
  filter: drop-shadow(0 20px 40px rgba(11, 17, 27, 0.55));
}

/* ---------- Arenas / gallery ---------- */

.arenas,
.modes {
  margin-top: var(--gap-section);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head > p:not(.eyebrow) {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  position: relative;
  display: block;
  grid-column: span 2;
  overflow: hidden;
  background: var(--bg-raised);
  text-decoration: none;
}

.shot--lead {
  grid-column: span 4;
  grid-row: span 2;
}

.shot:nth-child(n + 4) {
  grid-column: span 3;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: scale 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shot:hover img {
  scale: 1.035;
}

.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(11, 17, 27, 0.88), rgba(11, 17, 27, 0));
}

/* ---------- Modes ---------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mode {
  padding: 26px 26px 28px;
  background: var(--bg);
  transition: background-color 0.2s ease;
}

.mode:hover {
  background: var(--bg-raised);
}

.mode dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mode dd {
  margin-top: 8px;
  color: var(--muted);
}

.online {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 40px;
}

.online li {
  padding-top: 14px;
  border-top: 2px solid var(--cyan);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.online strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- Closing ---------- */

.closing {
  margin-top: var(--gap-section);
  padding-block: clamp(64px, 10vw, 120px);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(43, 140, 255, 0.2), rgba(11, 17, 27, 0) 70%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
  text-align: center;
}

.closing__inner {
  display: grid;
  justify-items: center;
}

.closing__logo {
  width: min(340px, 70%);
  margin-bottom: 28px;
}

.closing p {
  max-width: 620px;
  margin: 18px 0 32px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 32px 44px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.foot ul {
  display: flex;
  gap: 24px;
}

.foot a {
  color: var(--text);
  text-underline-offset: 4px;
}

.foot a:hover {
  color: var(--cyan);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(5, 9, 15, 0.9);
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close {
  display: block;
  margin: 12px auto 0;
  padding: 10px 26px 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--cyan);
}

/* ---------- Not found page ---------- */

.missed {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: var(--pad);
  text-align: center;
}

.missed img {
  width: min(380px, 80vw);
  margin-bottom: 32px;
}

.missed p {
  margin: 14px 0 30px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .top__nav {
    display: none;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .online {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  /* Portrait key art fills the top of the screen; the logo sits on the sky
     above the fighter and the copy starts below her face. */
  .hero {
    --art-h: 70svh;
    --logo-w: min(62vw, 300px);
    display: block;
    min-height: 0;
    padding: 78px 0 36px;
  }

  .hero__art,
  .hero::before {
    inset: 0 0 auto 0;
    height: var(--art-h);
  }

  .hero__art img {
    object-position: 50% 35%;
  }

  .hero::before {
    height: calc(var(--art-h) + 2px);
    background:
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 3%, rgba(11, 17, 27, 0.86) 22%, rgba(11, 17, 27, 0) 50%),
      linear-gradient(180deg, rgba(11, 17, 27, 0.5) 0%, rgba(11, 17, 27, 0) 24%);
  }

  .hero__logo {
    width: var(--logo-w);
    margin-inline: auto;
  }

  .hero__copy {
    margin-top: max(24px, calc(54svh - 78px - var(--logo-w) * 0.453));
  }

  .hero__lede {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .cta .btn {
    flex: 1 1 220px;
  }

  .feature,
  .fighter__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--flip .feature__media {
    order: 0;
  }

  .fighter__text {
    padding-bottom: 0;
  }

  .fighter__art {
    max-width: 360px;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot,
  .shot--lead,
  .shot:nth-child(n + 4) {
    grid-column: auto;
    grid-row: auto;
  }

  .mode-grid,
  .online {
    grid-template-columns: minmax(0, 1fr);
  }

  .endurance li {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 420px) {
  .status {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .streak:not(.streak--hero) {
    transform: none;
    opacity: 1;
  }
}
