/* ==========================================================================
   Binx.tv — main stylesheet
   Design tokens lifted from newsletter.binx.tv so the two domains read as
   one product. Do not drift these values apart.
   ========================================================================== */

:root {
  /* Brand — matches newsletter.binx.tv/style.css */
  --orange: #f57a3f;
  --yellow: #f7b442;
  --grey: #343740;
  --bg: #1f2026;

  /* Derived surface scale */
  --bg-deep: #16171c;
  --bg-raise: #26272f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.11);

  /* Text */
  --text: #ffffff;
  --text-soft: #d9dae0;
  --text-mute: #9a9ca7;

  /* Motion + shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t: 0.25s var(--ease);

  --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 12px 35px rgba(245, 122, 63, 0.4);

  --maxw: 1180px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* height:auto is REQUIRED, not cosmetic. Every <img> carries width/height
   attributes (to reserve space and prevent layout shift), and those act as
   presentational hints — so any rule that sets only `width` would otherwise
   pin the height to the attribute value and distort the image. Rules that
   genuinely want a fixed box override this with object-fit. */
img { max-width: 100%; display: block; height: auto; }
a { color: var(--orange); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--yellow); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Ambient background — ember canvas + vignette, fixed behind everything
   -------------------------------------------------------------------------- */

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
  z-index: 1;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

/* Pages whose main heading sits in a section head (games, about) still need a
   real <h1> for SEO and screen readers — size it like an h2 so the visual
   hierarchy is unchanged. */
.section-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 62ch;
}
.section-head--center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t), border-color var(--t);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--yellow);
  color: #221a10;
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(247, 180, 66, 0.55);
}

.btn--ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--glass-hi);
  color: var(--text);
  border-color: var(--orange);
  transform: translateY(-3px);
}

.btn--sm { padding: 11px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.section-head--center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(22, 23, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* The wordmark lives in the image — there is no adjacent text, so the logo
   carries the brand on its own and gets a little more height for it. */
.nav__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
/* width:auto pairs with the fixed height; the width attribute would
   otherwise stretch the logo. */
.nav__brand img {
  height: 34px;
  width: auto;
  transition: opacity var(--t);
}
.nav__brand:hover img { opacity: 0.8; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav__links a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-block: 6px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Home hero — featured game
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 4px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  margin-bottom: 22px;
  background: rgba(245, 122, 63, 0.14);
  border: 1px solid rgba(245, 122, 63, 0.4);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero__tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(245, 122, 63, 0.65);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(245, 122, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 122, 63, 0); }
}

.hero__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: perspective(1200px) rotateY(-5deg);
  transition: transform 0.5s var(--ease);
}
.hero__art:hover { transform: perspective(1200px) rotateY(0deg) translateY(-6px); }
.hero__art img { width: 100%; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(245, 122, 63, 0.16), transparent 55%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Game cards
   -------------------------------------------------------------------------- */

.grid-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--glass-hi);
  border-color: rgba(245, 122, 63, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.card__media {
  position: relative;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: var(--bg-deep);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.card a.card__title:hover { color: var(--yellow); }

.card__desc {
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card__price { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.card__link { font-weight: 700; font-size: 0.9rem; }

/* Status pill */
.pill {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  border: 1px solid transparent;
}
.pill--coming-soon { background: rgba(245, 122, 63, 0.92); color: #fff; }
.pill--early-access { background: rgba(247, 180, 66, 0.92); color: #241a08; }
.pill--free { background: rgba(70, 190, 120, 0.92); color: #06240f; }
.pill--released { background: rgba(20, 21, 26, 0.82); color: var(--text-soft); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Filters (games.html)
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
}
.filter:hover { background: var(--glass-hi); color: var(--text); }
.filter[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Game detail page
   -------------------------------------------------------------------------- */

.gamehero {
  position: relative;
  padding: 56px 0 0;
}

.gamehero__banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 6.2;
  background: var(--bg-deep);
}
.gamehero__banner img { width: 100%; height: 100%; object-fit: cover; }
.gamehero__banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 23, 28, 0.92) 4%, rgba(22, 23, 28, 0.15) 62%);
}

.gamehero__meta { padding-top: 34px; }
.gamehero__meta h1 { margin-bottom: 14px; }
.gamehero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 22px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 18px 0;
  margin-bottom: 6px;
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-mute);
}
.facts div { display: flex; gap: 8px; }
.facts dt { font-weight: 400; }
.facts dd { color: var(--text); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
}

.prose { max-width: 68ch; }
.prose p { color: var(--text-soft); margin-bottom: 20px; font-size: 1.03rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .closer {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}

.features { list-style: none; display: grid; gap: 14px; }
.features li {
  position: relative;
  padding-left: 34px;
  color: var(--text-soft);
}
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line);
  transition: transform var(--t), border-color var(--t);
}
.shots img:hover { transform: scale(1.015); border-color: rgba(245, 122, 63, 0.5); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   The Vault — subscribe blocks
   -------------------------------------------------------------------------- */

.vault {
  position: relative;
  padding: clamp(40px, 5vw, 60px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(245, 122, 63, 0.17), transparent 58%),
    var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.vault--inline { padding: clamp(28px, 3.5vw, 38px); }

.vault h2, .vault h3 { margin-bottom: 14px; }
.vault .lede { margin-bottom: 30px; }

.perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 30px 0 34px;
}
.perk {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform var(--t), background var(--t);
}
.perk:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.09); }
.perk b { display: block; font-size: 0.98rem; margin-bottom: 5px; }
.perk span { font-size: 0.87rem; color: var(--text-mute); line-height: 1.55; }
.perk .ico { font-size: 1.5rem; display: block; margin-bottom: 10px; }

/* Form */
.subform { max-width: 560px; }
.subform--wide { max-width: none; }

.subform__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.subform__row .field { flex: 1 1 240px; }
.subform__row .btn { flex: 0 0 auto; }

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t), background var(--t);
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(0, 0, 0, 0.45);
}

/* Listmonk bot honeypot — must exist in the DOM, must stay empty, must be
   unreachable for humans and assistive tech. */
.nonce {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.subform__note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--text-mute);
}

.subform__msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  font-weight: 600;
  display: none;
}
.subform__msg.is-shown { display: block; }
.subform__msg.is-ok {
  background: rgba(70, 190, 120, 0.14);
  border: 1px solid rgba(70, 190, 120, 0.45);
  color: #8ff0b6;
}
.subform__msg.is-err {
  background: rgba(240, 90, 90, 0.14);
  border: 1px solid rgba(240, 90, 90, 0.45);
  color: #ffb3b3;
}

.is-busy { opacity: 0.6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(30px, 4vw, 44px);
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(245, 122, 63, 0.2), transparent 60%),
    var(--bg-raise);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t);
}
.modal__close:hover { background: var(--glass-hi); color: var(--text); }

.modal__box h3 { margin-bottom: 12px; }
.modal__box p { color: var(--text-soft); margin-bottom: 24px; font-size: 0.98rem; }

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

.footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(16, 17, 21, 0.72);
  backdrop-filter: blur(10px);
}

/* Flex rather than fixed grid tracks: the number of columns changes as link
   groups are added or removed in data/site-links.json. */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 46px;
  padding: 64px 0 46px;
}
.footer__top > div { flex: 1 1 150px; }
.footer__brand { flex: 1 1 270px; }

/* width:auto pairs with the fixed height — the width attribute would
   otherwise stretch the logo. Same reason .nav__brand img sets it. */
.footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--text-mute); font-size: 0.92rem; max-width: 38ch; }

.footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--text-mute); font-size: 0.92rem; }
.footer ul a:hover { color: var(--orange); }

/* Resiliency Network — a distinct initiative, so it gets its own band rather
   than being buried in a link list. */
.footer__resiliency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
  padding: 26px;
  margin: 6px 0 30px;
  border-radius: var(--r);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(247, 180, 66, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}
.footer__resiliency h3 { margin-bottom: 7px; }
.footer__resiliency p {
  color: var(--text-mute);
  font-size: 0.9rem;
  max-width: 52ch;
  line-height: 1.6;
}
/* Stacked, site above Discord, both matched to the widest label. */
.footer__resiliency-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}
.footer__resiliency-actions .btn { white-space: nowrap; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__legal a { color: var(--text-mute); }
.footer__legal a:hover { color: var(--orange); }

.footer__sub {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.footer__sub .subform__row { max-width: 520px; }
.footer__sub h4 { margin-bottom: 14px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Utility / misc pages
   -------------------------------------------------------------------------- */

.center-page {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 0;
}
.center-page .inner { max-width: 620px; }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--orange);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { transform: none; order: -1; }
  .split { grid-template-columns: 1fr; }
  .footer__brand { flex-basis: 100%; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    background: rgba(20, 21, 26, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav__links a { display: block; padding: 15px 0; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .btn { width: 100%; }

  .gamehero__banner { aspect-ratio: 16 / 9; }
  .shots { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .footer__top { gap: 34px; }
  .footer__top > div { flex-basis: 100%; }
  .footer__resiliency { flex-direction: column; align-items: flex-start; }
  .footer__resiliency-actions { width: 100%; }
  .footer__resiliency-actions .btn { flex: 1 1 auto; }
  .subform__row { flex-direction: column; }
  .subform__row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #embers { display: none; }
}
