/* ==========================================================================
   EMVION NOMAD™ — stylesheet
   Palette: muted plums and lavenders. No neon, no glow — soft depth only.
   ========================================================================== */

:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* dark plums */
  --plum-950: #130d1d;
  --plum-900: #181126;
  --plum-800: #221836;
  --plum-700: #2e2147;

  /* light lilacs — tinted clearly purple, not white */
  --lilac-50: #e7def6;
  --lilac-100: #ddd2f0;
  --lilac-200: #d2c6ea;

  /* violets (accents) */
  --violet-600: #5f4b8b;
  --violet-500: #7a64ab;
  --violet-400: #9580c4;
  --violet-300: #b5a4d9;
  --violet-200: #cfc3e8;

  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --nav-h: 72px;

  /* purple-tinted "whites" — nothing on this site is pure #fff */
  --moon: #f4eefb;
  --moon-dim: #e9e2f5;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth; /* fallback when Lenis isn't loaded */
  scroll-padding-top: var(--nav-h); /* anchored jumps clear the fixed nav */
  -webkit-text-size-adjust: 100%;
}

/* Lenis adds these classes to <html> when it takes over scrolling.
   Native smooth-scroll MUST be off then, or the two animate against
   each other and scrolling feels randomly slow/fast. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--plum-900);
  color: #ede8f6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: page-in 0.7s ease-out;
}
@keyframes page-in { from { opacity: 0; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--violet-500); color: var(--moon); }

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

/* purple scrollbar instead of the default white one */
html { scrollbar-color: var(--plum-700) var(--plum-950); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--plum-950); }
::-webkit-scrollbar-thumb {
  background: var(--plum-700);
  border-radius: 8px;
  border: 2px solid var(--plum-950);
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-500); }

/* ---------- layout helpers ---------- */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 92vw); }

.section {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  scroll-margin-top: var(--nav-h);
}

/* Per-section theme variables — dark and light halves of the site. */
.section--dark {
  background:
    radial-gradient(1100px 420px at 85% -5%, rgba(122, 100, 171, 0.09), transparent 60%),
    var(--plum-900);
  color: #ede8f6;
  --tx: #ede8f6;
  --tx-muted: #a89bc4;
  --panel: var(--plum-800);
  --panel-hover: var(--plum-700);
  --line: rgba(181, 164, 217, 0.14);
  --accent: var(--violet-300);
  --card-shadow: 0 1px 0 rgba(245, 238, 251, 0.04) inset, 0 12px 26px -20px rgba(0, 0, 0, 0.7);
  --card-shadow-hover: 0 1px 0 rgba(245, 238, 251, 0.06) inset, 0 30px 54px -30px rgba(95, 75, 139, 0.55);
}
.section--light {
  background-color: var(--lilac-50);
  background-image:
    radial-gradient(1100px 420px at 15% -5%, rgba(122, 100, 171, 0.07), transparent 60%),
    radial-gradient(rgba(95, 75, 139, 0.05) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
  color: #251a3a;
  --tx: #251a3a;
  --tx-muted: #645a7d;
  --panel: #f0e9fb;
  --panel-hover: #f7f2ff;
  --line: var(--lilac-200);
  --accent: var(--violet-600);
  --card-shadow: 0 2px 8px -5px rgba(60, 40, 95, 0.16), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  --card-shadow-hover: 0 26px 46px -28px rgba(95, 75, 139, 0.42);
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }

h2 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, var(--violet-300));
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transition: width 0.9s var(--ease-out) 0.2s;
}
/* the little rule draws itself in as the section reveals */
.reveal:not(.is-visible) .eyebrow::before { width: 0; }

.section__head { max-width: 660px; margin-bottom: clamp(2.6rem, 5.5vw, 4.2rem); }
.section__head h2 { margin-top: 1rem; }
.section__lede { margin-top: 1.1rem; color: var(--tx-muted); font-size: 1.12rem; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s,
              color 0.35s, background-position 0.55s var(--ease-out), box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: linear-gradient(135deg, var(--violet-500) 0%, var(--violet-400) 100%);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: var(--moon);
  box-shadow: 0 8px 20px -14px rgba(122, 100, 171, 0.75);
}
.btn--solid:hover {
  background-position: 95% 0;
  box-shadow: 0 16px 30px -16px rgba(122, 100, 171, 0.65);
}

.btn--ghost {
  border: 1px solid rgba(181, 164, 217, 0.35);
  color: var(--violet-200);
}
.btn--ghost:hover {
  border-color: var(--violet-300);
  color: var(--moon);
  background: rgba(149, 128, 196, 0.08);
}

.btn--arrow::after {
  content: "→";
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn--arrow:hover::after { transform: translateX(4px); }

/* click feedback — !important so it wins over the JS magnetic transform */
.btn:active,
.contact-pill:active,
.nav__links a:active,
.game-card--playable:active,
.mini-link:active,
.hero__scroll:active {
  transform: scale(0.96) !important;
  transition-duration: 0.08s;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  animation: nav-in 0.7s var(--ease-out) both;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-12px); } }
.nav.is-scrolled {
  background: rgba(19, 13, 29, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(181, 164, 217, 0.12);
  box-shadow: 0 10px 30px -18px rgba(10, 6, 18, 0.55);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet-200), var(--violet-400), var(--violet-200));
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.9s var(--ease-out);
}
.wordmark:hover em { background-position: 100% 0; }
.wordmark sup {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--violet-300);
  margin-left: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: #c9bfdd;
  transition: color 0.3s, transform 0.3s var(--ease-out);
  padding: 0.3rem 0;
}
.nav__links a:hover { color: var(--moon); transform: translateY(-1px); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a.is-active { color: var(--moon); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__links .nav__cta {
  border: 1px solid rgba(181, 164, 217, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  color: var(--violet-200);
}
.nav__links .nav__cta:hover {
  border-color: var(--violet-300);
  color: var(--moon);
  background: rgba(149, 128, 196, 0.1);
}
.nav__links .nav__cta::after { display: none; }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.6rem;
    z-index: 2;
  }
  .nav__toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #ede8f6;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 4vw 1.4rem;
    background: rgba(19, 13, 29, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(181, 164, 217, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .nav.menu-open .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__links a { padding: 0.55rem 0; font-size: 1rem; }
  .nav__links .nav__cta { margin-top: 0.4rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
}

.hero__backdrop { position: absolute; inset: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.blob--1 {
  width: 58vw; height: 58vw;
  background: #342457;
  top: -18%; left: -12%;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.blob--2 {
  width: 44vw; height: 44vw;
  background: #4a3a74;
  bottom: -22%; right: -8%;
  opacity: 0.7;
  animation: drift-b 34s ease-in-out infinite alternate;
}
.blob--3 {
  width: 30vw; height: 30vw;
  background: #261c44;
  top: 30%; right: 28%;
  animation: drift-c 24s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(7vw, 5vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-6vw, -6vh) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-4vw, 7vh) scale(0.94); } }

/* dashed wandering path with waypoints — slowly drifts */
.hero__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__path-line {
  fill: none;
  stroke: rgba(181, 164, 217, 0.16);
  stroke-width: 2;
  stroke-dasharray: 5 13;
  stroke-linecap: round;
  animation: path-drift 60s linear infinite;
}
@keyframes path-drift { to { stroke-dashoffset: -720; } }
.hero__path-dot {
  fill: rgba(181, 164, 217, 0.3);
  animation: dot-pulse 3.6s ease-in-out infinite alternate;
}
.hero__path-dot:nth-of-type(2) { animation-delay: 1.2s; }
.hero__path-dot:nth-of-type(3) { animation-delay: 2.4s; }
/* symmetric via alternate — the waypoints breathe, never jump */
@keyframes dot-pulse { from { opacity: 0.35; } to { opacity: 1; } }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.55rem;
  will-change: transform;
}

.hero__title {
  font-size: clamp(3rem, 9.2vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet-200), var(--violet-400), var(--violet-200));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 9s ease-in-out infinite alternate;
}
@keyframes gradient-pan {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.hero__title sup {
  font-size: 0.28em;
  font-weight: 400;
  color: var(--violet-300);
  vertical-align: super;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.55;
  color: #c3b8df;
  max-width: 36ch;
}
.hero__tagline strong { color: #ede8f6; font-weight: 600; }

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

/* staggered entrance on page load */
.hero-fade {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 130ms + 150ms);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  margin-left: -14px; /* center the 28px chevron without using transform */
  z-index: 1;
  color: rgba(181, 164, 217, 0.5);
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--violet-300); }
.hero__scroll-chevron {
  display: block;
  width: 28px;
  height: 28px;
  animation: scroll-bob 2.4s ease-in-out infinite;
}
/* symmetric (0% = 100%) so it bobs forever with no jump */
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.2rem;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: var(--violet-300);
  box-shadow: var(--card-shadow-hover);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-300));
  opacity: 0.7;
  transition: width 0.45s var(--ease-out), opacity 0.45s;
}
.stat:hover::before { width: 54px; opacity: 1; }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: transform 0.45s var(--ease-out);
  transform-origin: left center;
}
.stat:hover .stat__value { transform: translateX(4px); }
.stat__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-500);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.stat__cap {
  font-size: 0.78rem;
  color: var(--tx-muted);
  opacity: 0.75;
}

.stats__note {
  margin-top: 2rem;
  color: var(--tx-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 0.5rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 28s) linear infinite;
}
/* spacing via margin, not gap, so the two duplicated halves are EXACTLY the
   same width — translateX(-50%) then wraps with no seam jump. (With flex
   `gap`, -50% lands half a gap off and the row visibly hitches each loop.) */
.marquee__track > * { margin-right: 1.4rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--reverse .marquee__track { animation-direction: reverse; }
.partners__rows .marquee + .marquee { margin-top: 1.2rem; }

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 86px;
  padding: 1.5rem 2.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.partner-tile:hover { border-color: var(--violet-400); transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.partner-tile img {
  max-height: 42px;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.8;
  transition: filter 0.35s, opacity 0.35s;
}
.partner-tile:hover img { filter: none; opacity: 1; }
.partner-tile span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--violet-200);
  white-space: nowrap;
}

.partners-soon {
  color: var(--tx-muted);
  font-style: italic;
}

/* ==========================================================================
   GAMES
   ========================================================================== */
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
}
.game-card--playable:hover,
.game-card--playable:focus-within {
  transform: translateY(-6px);
  border-color: var(--violet-400);
  box-shadow: var(--card-shadow-hover);
}
.game-card--playable:focus-within { outline: 2px solid var(--violet-500); outline-offset: 3px; }

/* invisible link covering the whole card — the main "play" click target.
   The small link buttons sit on a higher layer, so they stay clickable. */
.game-card__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.game-card__play:focus { outline: none; }

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--plum-700);
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.5s ease;
}
.game-card:hover .game-card__media img { transform: scale(1.05); }

/* hover overlay over the cover — link buttons lower-left, live stats
   lower-right. Slides up on hover/focus, always visible on touch. */
.game-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 2.2rem 0.8rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(19, 13, 29, 0.88) 60%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.game-card:hover .game-card__overlay,
.game-card:focus-within .game-card__overlay {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .game-card__overlay { opacity: 1; transform: none; }
}

.game-card__links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.game-card__stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  color: #e7e1f3;
  background: rgba(34, 24, 54, 0.75);
  border: 1px solid rgba(181, 164, 217, 0.22);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s, color 0.3s;
}
.mini-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.mini-link img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.mini-link:hover {
  transform: translateY(-2px);
  border-color: var(--violet-300);
  background: var(--plum-700);
  color: var(--moon);
}

/* PNG brand badges — every icon renders as the same-size circle.
   "cover" icons (Roblox, X) fill the whole button; the Discord glyph
   sits on its brand color, recolored white via filter. */
.mini-link--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mini-link--cover:hover { border-color: var(--violet-300); background: rgba(34, 24, 54, 0.75); }
.mini-link--discord { background: #5865f2; border-color: rgba(244, 238, 251, 0.25); }
.mini-link--discord img { filter: brightness(0) invert(1); }
.mini-link--discord:hover { background: #6a76f4; border-color: rgba(244, 238, 251, 0.45); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e7e1f3;
  background: rgba(34, 24, 54, 0.75);
  border: 1px solid rgba(181, 164, 217, 0.22);
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(181, 164, 217, 0.5); }
.chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }
.chip--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ad6a2;
  animation: live-pulse 2.2s ease-in-out infinite;
}

/* genre badge from Roblox, top-left of the cover */
.game-card__genre {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e7e1f3;
  background: rgba(19, 13, 29, 0.72);
  border: 1px solid rgba(181, 164, 217, 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.game-card__body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

/* favorites / server size / last updated — filled from Roblox */
.game-card__meta {
  font-size: 0.8rem;
  color: var(--tx-muted);
  opacity: 0.85;
}
.game-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tx);
  transition: color 0.35s;
}
.game-card:hover .game-card__body h3 { color: var(--accent); }
.game-card__body p {
  font-size: 0.93rem;
  color: var(--tx-muted);
  flex: 1;
}
.game-card__cta {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.game-card__cta::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.35s var(--ease-out);
}
.game-card:hover .game-card__cta::after { transform: translateX(5px); }

/* text cover — used by projects with no Roblox page and no image yet */
.game-card__text-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background:
    radial-gradient(420px 200px at 80% -10%, rgba(149, 128, 196, 0.25), transparent 70%),
    linear-gradient(135deg, var(--plum-700), #463263);
  background-size: 150% 150%, 180% 180%;
  /* slow living gradient for in-dev covers; alternate keeps it seamless */
  animation: cover-drift 14s ease-in-out infinite alternate;
}
@keyframes cover-drift {
  from { background-position: 0% 0%, 100% 0%; }
  to   { background-position: 100% 100%, 0% 100%; }
}
.game-card__text-cover span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--violet-200);
  text-align: center;
  text-wrap: balance;
}

/* shown instead of "Play on Roblox" on unreleased projects */
.game-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx-muted);
}
.game-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-400);
  animation: live-pulse 2.2s ease-in-out infinite;
}

/* teaser cards shown while the games list is empty */
.game-card--teaser { cursor: default; }
.game-card--teaser .game-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(125deg, #e8e0f4 0%, #f7f2fd 50%, #e3daf1 100%);
  background-size: 200% 200%;
  /* `alternate` eases the gradient across and then back instead of snapping
     to the start — a calm breathing loop with no teleport */
  animation: teaser-breathe 9s ease-in-out infinite alternate;
}
@keyframes teaser-breathe {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.teaser-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--violet-300);
  opacity: 0.55;
  /* the gentle bob uses the standalone `translate` property; hover uses
     `scale`/`rotate` — separate properties, so the float and the hover pop
     compose instead of one animation clobbering the other's transform */
  transition: scale 0.5s var(--ease-out), rotate 0.5s var(--ease-out), opacity 0.5s;
  animation: teaser-float 5s ease-in-out infinite alternate;
}
@keyframes teaser-float {
  from { translate: 0 -4px; }
  to   { translate: 0 4px; }
}
.game-card--teaser:hover { border-color: var(--violet-300); }
.game-card--teaser:hover .teaser-mark { scale: 1.12; rotate: -4deg; opacity: 0.82; }
.teaser-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: rgba(248, 244, 253, 0.92);
  border: 1px solid var(--lilac-200);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ---------- games: top 3 + collapsible "show all" ---------- */
.games-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}
.games-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  padding: 0.75rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s,
              background 0.35s, color 0.35s, box-shadow 0.35s;
}
.games-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--violet-400);
  color: var(--violet-600);
  background: var(--panel-hover);
  box-shadow: 0 16px 30px -22px rgba(95, 75, 139, 0.5);
}
.games-toggle__chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.4s var(--ease-out);
}
.games-toggle[aria-expanded="true"] .games-toggle__chevron { transform: rotate(180deg); }
.games-toggle:active { transform: scale(0.97); transition-duration: 0.08s; }

/* the collapsible cards fade in with a gentle stagger as the section opens */
.games-more .game-card {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.games-more.is-open .game-card {
  opacity: 1;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* the extra games tween open via grid-template-rows 0fr -> 1fr — animates
   height with no hard-coded pixel value, so any number of rows works */
.games-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease-out), opacity 0.45s ease;
}
.games-more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.games-more__inner {
  overflow: hidden;
  min-height: 0;
}
.games-more #gamesGridMore { padding-top: 1.6rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
#about .container--narrow { position: relative; }

/* compass — the needle turns as you scroll (see main.js) */
.compass {
  position: absolute;
  top: -0.6rem;
  right: 0;
  width: 110px;
  height: 110px;
  fill: none;
  stroke: rgba(181, 164, 217, 0.32);
  stroke-width: 1.5;
}
.compass__needle path {
  fill: rgba(181, 164, 217, 0.42);
  stroke: none;
}
.compass__needle circle {
  fill: var(--plum-900);
  stroke: rgba(181, 164, 217, 0.5);
}
.compass__needle {
  transform-box: fill-box;
  transform-origin: center;
}
@media (max-width: 760px) { .compass { display: none; } }

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.08rem;
  color: #cfc6e2;
  max-width: 62ch;
}

.about__values {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
}
.value {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.value:hover { transform: translateY(-4px); border-color: var(--violet-400); box-shadow: var(--card-shadow-hover); }
.value h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--violet-200);
  margin-bottom: 0.5rem;
  transition: color 0.35s;
}
.value:hover h3 { color: var(--moon); }
.value p { font-size: 0.92rem; color: var(--tx-muted); }

/* ==========================================================================
   FOOTER / CONTACT
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--plum-950);
  color: #ede8f6;
  --tx: #ede8f6;
  --tx-muted: #a89bc4;
  --panel: var(--plum-800);
  --line: rgba(181, 164, 217, 0.14);
  --accent: var(--violet-300);
  --card-shadow: 0 1px 0 rgba(245, 238, 251, 0.04) inset, 0 12px 26px -20px rgba(0, 0, 0, 0.7);
  --card-shadow-hover: 0 1px 0 rgba(245, 238, 251, 0.06) inset, 0 30px 54px -30px rgba(95, 75, 139, 0.55);
  padding: clamp(5rem, 11vw, 8rem) 0 2.4rem;
  scroll-margin-top: var(--nav-h);
}
/* giant outlined wordmark behind the footer content */
.footer::before {
  content: "EMVION NOMAD";
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 10.5rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181, 164, 217, 0.09);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }

.partner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  background: var(--plum-800);
  border: 1px dashed rgba(181, 164, 217, 0.3);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  transition: border-color 0.4s;
}
.partner-cta:hover { border-color: var(--violet-400); }
.partner-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.partner-cta p {
  color: var(--tx-muted);
  max-width: 54ch;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--violet-200);
  background: var(--plum-800);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, color 0.35s;
}
.contact-pill:hover {
  transform: translateY(-3px);
  border-color: var(--violet-400);
  color: var(--moon);
  background: var(--plum-700);
}
.contact-pill .pill-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.contact-pill img.pill-icon {
  object-fit: cover;
  border-radius: 5px;
}
.contact-pill img.pill-icon--glyph {
  object-fit: contain;
  border-radius: 0;
}
.contact-pill svg.pill-icon { fill: currentColor; }

.contact-empty {
  color: var(--tx-muted);
  font-style: italic;
  max-width: 50ch;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(181, 164, 217, 0.12);
  font-size: 0.85rem;
  color: #8f82ad;
}
.footer__legal .to-top {
  color: var(--violet-300);
  transition: color 0.3s;
}
.footer__legal .to-top:hover { color: var(--moon); }

/* ==========================================================================
   CURSOR SPOTLIGHT — soft violet highlight that follows the mouse on cards.
   The --mx / --my variables are set per-card in main.js.
   ========================================================================== */
.stat, .value, .game-card, .partner-tile, .partner-cta { position: relative; }

.stat::after, .value::after, .game-card::after,
.partner-tile::after, .partner-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(149, 128, 196, 0.13),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s;
}
.stat:hover::after, .value:hover::after, .game-card:hover::after,
.partner-tile:hover::after, .partner-cta:hover::after { opacity: 1; }

/* ==========================================================================
   SCROLL REVEALS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-fade, .reveal { opacity: 1; transform: none; }
}
