@charset "UTF-8";
/* ============================================================== */
/*  Yfrit Games — art-led site styles                             */
/*                                                                */
/*  Dark, game-first design system. Game art carries the colour;  */
/*  per-game accents swap via the `--accent` custom property.      */
/* ============================================================== */
/* ------------------------------------------ */
/*            RESPONSIVE BREAKPOINTS
/* ------------------------------------------ */
/*
 * Single source of truth for the site's responsive breakpoints.
 *
 * The scale is aligned with the Bootstrap 4 grid that the markup already uses
 * (col-sm/md/lg/xl), plus an extra `xs` step for small phones. Use the mixins
 * below instead of hand-writing @media queries so every breakpoint stays
 * consistent across the codebase.
 *
 *   @include media-down(lg) { ... }   // applies at <  992px  (max-width 991.98)
 *   @include media-up(md)   { ... }   // applies at >= 768px  (min-width 768)
 */
/* ------------------------------------------------------------------ */
/*  DESIGN TOKENS                                                      */
/*  Dark, art-led system. Colour comes from the game art; the chrome  */
/*  stays quiet. Per-game accents are swapped via the `--accent` var.  */
/* ------------------------------------------------------------------ */
:root {
  /* Surfaces — near-black with a faint cosmic violet, to sit under
     Reburn's purple/gold key art without fighting it. */
  --bg: #0f0b16;
  --bg-elev: #161121;
  --bg-elev-2: #1d1729;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  /* Hairlines */
  --line: rgba(240, 236, 252, 0.09);
  --line-strong: rgba(240, 236, 252, 0.17);
  /* Text — kept bright for contrast on the dark surfaces */
  --text: #f4f1f8;
  --text-soft: #d6d0e3;
  --text-dim: #b2aac6;
  /* Brand + game accents */
  --gold: #f6b24e; /* Reburn / studio warm accent + CTAs */
  --gold-soft: #ffd79b;
  --gold-deep: #d4862a;
  --violet: #a585ff; /* Primateria / the Yfrit "Y" */
  --violet-deep: #6f43d6;
  --magenta: #e95ba6; /* Reburn cosmic secondary */
  --cyan: #5ec7e6; /* Primateria butterflies */
  --green: #8fd154; /* Dual Snake */
  /* The active accent — overridden per section/card. Defaults to the
     flagship (Reburn) gold. */
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-deep: var(--gold-deep);
  /* Type */
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Clash Display', 'Satoshi', 'Arial Black', system-ui, sans-serif;
  /* Geometry */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--accent), 0 12px 40px -12px rgba(0, 0, 0, 0.8);
  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* ------------------------------------------------------------------ */
/*  BASE — reset, typography, layout primitives                        */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset anchor scrolling so the sticky nav doesn't cover headings. */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

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

::-moz-selection {
  background: var(--accent);
  color: #1a1206;
}

::selection {
  background: var(--accent);
  color: #1a1206;
}

/* Headings -------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.8rem);
}

p {
  color: var(--text-soft);
}

/* Layout primitives ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Section intro (eyebrow + title + lead) --------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head p {
  margin-top: 1.1rem;
  font-size: 1.1rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

/* Scroll reveal. Progressive enhancement: content is visible by default
   and only starts hidden when JS is present (html.js), so no-JS users and
   crawlers always see it. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Utility --------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.accent {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/*  COMPONENTS — buttons, pills, store rows                            */
/* ------------------------------------------------------------------ */
/* Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn i,
.btn svg {
  font-size: 1.15em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #1a1206;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 65%, transparent);
}

.btn--primary:hover {
  box-shadow: 0 16px 38px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn--ghost {
  /* Dark translucent backing so it stays readable over bright key art. */
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.btn--sm {
  padding: 0.7em 1.25em;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* Status badge — solid, high-contrast, reads on top of busy art ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.8em;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(8, 6, 12, 0.82);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

/* Store / platform row -------------------------------------------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.2em;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.store-btn i {
  font-size: 1.3em;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.store-btn:hover i {
  color: var(--accent);
}

.store-btn small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Inline text link with arrow ------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  color: var(--accent-soft);
}

.link-arrow i,
.link-arrow svg {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover i,
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/*  NAV — transparent over the hero, solid on scroll                   */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

/* Always-on top scrim so the transparent nav stays legible over the bright
   hero art before any scroll; it fades out once the solid bg kicks in. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 4, 11, 0.72) 0%, rgba(6, 4, 11, 0.3) 45%, transparent 100%);
  transition: opacity var(--dur) var(--ease);
}

.nav.is-scrolled::before {
  opacity: 0;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav__links a {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 1.15rem;
  border: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}

/* Hamburger ------------------------------------------------------- */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span {
  top: 50%;
  translate: 0 -50%;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

/* Mobile ---------------------------------------------------------- */
@media screen and (max-width: 991.98px) {
  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav__actions .btn span {
    display: none; /* keep only icon on small screens */
  }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav.is-open {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom-color: transparent;
  }
  .nav__links a {
    padding: 0.95rem 0.5rem;
    font-size: 1.05rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__toggle span {
    background: transparent;
  }
  .nav.is-open .nav__toggle span::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
  }
  .nav.is-open .nav__toggle span::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
  }
}
@media screen and (max-width: 575.98px) {
  .nav__actions .nav__icon {
    display: none;
  }
}
/* ------------------------------------------------------------------ */
/*  HERO — Primateria: Reburn flagship                                 */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background art + cinematic scrim --------------------------------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 42%;
     object-position: center 42%;
  animation: heroDrift 30s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}
/* Layered gradients: darken left for legibility, fade base at bottom,
   and a warm glow bleeding up from the CTA area. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1; /* above the <img> (which paints above a -1 scrim), below the copy */
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, color-mix(in srgb, var(--bg) 45%, transparent) 58%, transparent 84%), linear-gradient(0deg, var(--bg) 8%, transparent 42%), color-mix(in srgb, var(--bg) 8%, transparent);
}

/* Content --------------------------------------------------------- */
.hero__content {
  position: relative;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__inner {
  max-width: 660px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.78);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 1.4rem 0 0.5rem;
}

.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.hero__title-sup {
  display: block;
  font-family: var(--font-body);
  font-size: 0.26em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin-bottom: 0.5em;
}

.hero__title-main {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  background: linear-gradient(180deg, #fff 8%, var(--gold-soft) 52%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Kill the inherited .hero__inner text-shadow: on background-clip:text it
     bleeds through the letters as a black glow. The dark panel gives contrast. */
  text-shadow: none;
}

.hero__tagline {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  color: var(--text);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.hero__meta strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* Scroll cue ------------------------------------------------------ */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.55);
  transition: color 0.25s var(--ease);
}

.hero__scroll:hover {
  color: #fff;
}

.hero__scroll span {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  100% {
    opacity: 0;
  }
}
@media screen and (max-width: 767.98px) {
  .hero__scroll {
    display: none;
  }
}
/* ------------------------------------------------------------------ */
/*  REBURN DEEP-DIVE — alternating feature blocks                      */
/* ------------------------------------------------------------------ */
.reburn {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-deep: var(--gold-deep);
  background: radial-gradient(80% 60% at 85% 0%, color-mix(in srgb, var(--violet-deep) 18%, transparent), transparent 60%), radial-gradient(70% 50% at 0% 100%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 60%), var(--bg);
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

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

.feature__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  background: var(--bg-elev);
}

.feature__media::after {
  /* subtle inner vignette so plain screenshots feel composed */
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.feature__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature:hover .feature__media img {
  transform: scale(1.04);
}

.feature__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.feature__text h3 {
  margin-bottom: 0.9rem;
}

.feature__text p {
  font-size: 1.05rem;
}

.feature__list {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature__list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.45em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Closing CTA band ------------------------------------------------ */
.cta-band {
  margin-top: clamp(4rem, 8vw, 7rem);
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--bg-elev);
  position: relative;
  overflow: hidden;
}

.cta-band h3 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.cta-band p {
  max-width: 48ch;
  margin: 0 auto 1.8rem;
}

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

@media screen and (max-width: 767.98px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .feature--reverse .feature__media {
    order: 0;
  }
}
/* ------------------------------------------------------------------ */
/*  OUR GAMES — art-led catalogue cards                                */
/* ------------------------------------------------------------------ */
.games {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.game-card--reburn {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-deep: var(--gold-deep);
}

.game-card--primateria {
  --accent: var(--violet);
  --accent-soft: #c9b3ff;
  --accent-deep: var(--violet-deep);
}

.game-card--dual-snake {
  --accent: var(--green);
  --accent-soft: #c2ed9a;
  --accent-deep: #4f9b2f;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--accent) 60%, #000);
}

.game-card__art {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.game-card__art img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transition: transform 0.6s var(--ease);
}

/* The Reburn Steam header is wider than 16:9; bias the crop left so the
   character (not the wordmark edge) stays in frame. */
.game-card--reburn .game-card__art img {
  -o-object-position: 24% center;
     object-position: 24% center;
}

.game-card:hover .game-card__art img {
  transform: scale(1.05);
}

.game-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.game-card__pill {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.7rem;
  gap: 0.5rem;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.game-card__genre {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-card__desc {
  font-size: 0.98rem;
  margin: 0.2rem 0 1.2rem;
  flex: 1;
}

.game-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.game-card__rating {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.game-card__rating strong {
  color: var(--accent-soft);
}

@media screen and (max-width: 991.98px) {
  .games__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}
/* ------------------------------------------------------------------ */
/*  PRIMATERIA SPOTLIGHT + community card showcase                     */
/* ------------------------------------------------------------------ */
.spotlight {
  --accent: var(--violet);
  --accent-soft: #c9b3ff;
  --accent-deep: var(--violet-deep);
  position: relative;
  overflow: hidden;
  background: radial-gradient(75% 80% at 80% 30%, color-mix(in srgb, var(--violet-deep) 26%, transparent), transparent 60%), var(--bg);
}

.spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.spotlight__text h2 {
  margin: 0.6rem 0 1.1rem;
}

.spotlight__text p {
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.spotlight__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.8rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.spotlight__rating b {
  color: var(--accent-soft);
}

/* Fanned hand of community cards ---------------------------------- */
.cardfan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-block: 2.5rem 1rem;
  perspective: 1400px;
}

.cardfan__card {
  --i: 0;
  --rot: 0deg;
  width: clamp(130px, 16vw, 200px);
  aspect-ratio: 1/1;
  margin-inline: -1.4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.85);
  transform: rotate(var(--rot)) translateY(var(--lift, 0));
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  background: var(--bg-elev);
  cursor: pointer;
}

.cardfan__card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.cardfan__card:hover {
  --lift: -28px;
  --rot: 0deg;
  z-index: 5;
  transform: rotate(0deg) translateY(-34px) scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 55%, #000);
}

/* Fan geometry (5 cards) */
.cardfan__card:nth-child(1) {
  --rot: -14deg;
  --lift: 18px;
}

.cardfan__card:nth-child(2) {
  --rot: -7deg;
  --lift: 5px;
}

.cardfan__card:nth-child(3) {
  --rot: 0deg;
  --lift: 0;
}

.cardfan__card:nth-child(4) {
  --rot: 7deg;
  --lift: 5px;
}

.cardfan__card:nth-child(5) {
  --rot: 14deg;
  --lift: 18px;
}

.cardfan__caption {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.cardfan__caption a {
  color: var(--accent-soft);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.25s var(--ease);
}

.cardfan__caption a:hover {
  border-color: var(--accent);
}

@media screen and (max-width: 991.98px) {
  .spotlight__grid {
    grid-template-columns: 1fr;
  }
  .spotlight__media {
    order: -1;
  }
}
@media screen and (max-width: 575.98px) {
  /* On phones the fan becomes a horizontal scroll of upright cards. */
  .cardfan {
    justify-content: flex-start;
    gap: 0.75rem;
    padding-inline: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .cardfan__card {
    margin-inline: 0;
    --rot: 0deg;
    --lift: 0;
    transform: none;
    flex: 0 0 auto;
    width: 150px;
    scroll-snap-align: center;
  }
  .cardfan__card:hover {
    transform: none;
  }
}
/* ------------------------------------------------------------------ */
/*  STUDIO — who Yfrit is                                              */
/* ------------------------------------------------------------------ */
.studio {
  --accent: var(--violet);
  --accent-soft: #c9b3ff;
  text-align: center;
  border-block: 1px solid var(--line);
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--violet-deep) 14%, transparent), transparent 70%), var(--bg-elev);
}

.studio__inner {
  max-width: 760px;
  margin-inline: auto;
}

.studio .eyebrow {
  justify-content: center;
}

.studio .eyebrow::before,
.studio .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.studio h2 {
  margin: 1.1rem 0 1.3rem;
  text-wrap: balance;
}

.studio__lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin-inline: auto;
}

.studio__motto {
  color: var(--accent-soft);
  font-style: italic;
}

.studio__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.studio__stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.studio__stats b {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
}

.studio__stats span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ------------------------------------------------------------------ */
/*  COMMUNITY — Discord + socials                                      */
/* ------------------------------------------------------------------ */
.community {
  text-align: center;
}

.community__card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: radial-gradient(80% 130% at 50% 0%, color-mix(in srgb, var(--violet-deep) 30%, transparent), transparent 65%), radial-gradient(70% 130% at 50% 100%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 65%), var(--bg-elev);
}

.community__card h2 {
  text-wrap: balance;
  margin-bottom: 1rem;
}

.community__card p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}

.community__discord {
  --accent: #5865f2;
  --accent-soft: #aab1ff;
  --accent-deep: #4049c9;
  font-size: 1.05rem;
  padding: 1.05em 2em;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.socials a:hover {
  transform: translateY(-3px);
  color: var(--accent-soft);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.socials svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: currentColor;
}

/* ------------------------------------------------------------------ */
/*  CONTACT                                                            */
/* ------------------------------------------------------------------ */
.contact {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__intro h2 {
  margin: 0.7rem 0 1rem;
}

.contact__intro p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.contact__direct a:hover {
  color: var(--accent);
}

.contact__direct i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

/* Form ------------------------------------------------------------ */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1/-1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::-moz-placeholder, .field textarea::-moz-placeholder {
  color: var(--text-dim);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-2);
}

.contact__submit {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact__status {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact__status.is-ok {
  color: var(--green);
}

.contact__status.is-error {
  color: #ff8080;
}

@media screen and (max-width: 991.98px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 575.98px) {
  .contact__form {
    grid-template-columns: 1fr;
  }
}
/* ------------------------------------------------------------------ */
/*  FOOTER                                                             */
/* ------------------------------------------------------------------ */
.footer {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background-color: var(--bg);
  /* Atmospheric key art behind a dark wash so the links stay readable. */
  background-image: linear-gradient(180deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 72%, transparent) 55%, color-mix(in srgb, var(--bg) 60%, transparent) 100%), url("../images/footer-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.footer > .container {
  position: relative;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand img {
  height: 30px;
  margin-bottom: 1.1rem;
}

.footer__brand p {
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col a {
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer__bottom a {
  color: var(--text-soft);
}

.footer__bottom a:hover {
  color: var(--accent);
}

@media screen and (max-width: 767.98px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1/-1;
  }
}
@media screen and (max-width: 575.98px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}