/* Sleek Studios — shared styles */

@font-face {
  font-family: "Momo Trust Sans";
  src: url("../fonts/MomoTrustSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #161616;
  --black-4: #1c1c1c;
  --black-5: #242428;
  --line: #2a2a2e;
  --silver: #c0c0c6;
  --silver-bright: #e4e4e8;
  --silver-dim: #a8a8b0;
  --silver-mute: #77777f;
  --white: #ffffff;
  --radius: 16px;
  --wrap: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--silver);
  font-family: "Momo Trust Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--silver); color: var(--black); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Logo mark (tinted silver from the white PNG) ---------- */
.mark {
  display: inline-block;
  aspect-ratio: 420 / 350;
  background: var(--silver);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: height .3s cubic-bezier(.2, .7, .2, 1);
  border-bottom: 1px solid var(--black-4);
}
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself
   would trap the fixed-position mobile menu inside the header's box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* No animations while the window is being resized (stops the menu flashing). */
.resizing *, .resizing *::before, .resizing *::after { transition: none !important; }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.22em;
  color: var(--silver-bright);
  white-space: nowrap;
}
.site-header .brand .mark { width: 38px; }
.footer-brand .brand .mark { width: 30px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver-dim);
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.scrolled .site-header { height: 60px; }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--silver-mute), var(--white));
  transform-origin: left; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
.nav .btn { margin-left: 8px; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--black); }
.nav .btn[aria-disabled="true"], .nav .btn[aria-disabled="true"]:hover { color: var(--silver-mute); background: var(--black-4); border-color: var(--black-5); cursor: default; transform: none; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--silver-bright);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px;
  border-radius: 999px;
  line-height: 1.2; text-align: center;
  max-width: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--silver-bright); color: var(--black); }
.btn-primary:hover { background: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--silver-bright); }
.btn-ghost:hover { border-color: var(--silver-mute); background: var(--black-3); }
.btn-sm { min-height: 38px; padding: 9px 18px; font-size: 12px; }
.btn[aria-disabled="true"] {
  background: var(--black-4); color: var(--silver-mute); border-color: var(--black-5);
  cursor: not-allowed; transform: none;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--black-4); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.eyebrow {
  display: block;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--silver-mute);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--silver-bright);
}
.lead { font-size: 18px; color: var(--silver-dim); max-width: 560px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero::before {
  /* faint diagonal bars echoing the logo */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-56deg, transparent 0 46px, rgba(255,255,255,0.012) 46px 92px);
  -webkit-mask: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  -webkit-user-select: none; user-select: none;
}
.float { animation: float 3s ease-in-out infinite alternate; will-change: transform; backface-visibility: hidden; }
@keyframes float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -16px, 0); }
}
.hero .mark { width: 96px; display: block; }

/* ---------- Clickable hero logo: shimmer on hover, shatters on click ---------- */
.mark-btn {
  display: block; margin: 0 auto 36px; padding: 6px;
  background: none; border: 0; border-radius: 12px;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.mark-btn:focus-visible { outline: 1px solid var(--silver-mute); outline-offset: 6px; }
.mark-btn .mark {
  background: linear-gradient(110deg, var(--silver) 40%, #ffffff 50%, var(--silver) 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
}
.mark-btn:hover, .mark-btn:focus-visible { transform: scale(1.06) rotate(-2deg); }
.mark-btn:hover .mark, .mark-btn:focus-visible .mark { animation: mark-shimmer 1.4s cubic-bezier(.45, 0, .2, 1) infinite; }
.mark-btn:active { transform: scale(0.94); }
@keyframes mark-shimmer {
  0% { background-position: 100% 0; }
  70%, 100% { background-position: 0 0; }
}
.mark-btn.broken { pointer-events: none; }
.mark-btn.broken .mark { visibility: hidden; }
.mark-btn.reform .mark { animation: mark-reform .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mark-reform {
  0% { opacity: 0; transform: scale(.2) rotate(-25deg); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
/* Shards fly over the whole page, above everything, then are removed */
.shard-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.shard {
  position: absolute;
  background: var(--silver);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
  will-change: transform, opacity;
}
.shard-flash {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(220,228,255,0.35) 35%, transparent 70%);
}
.hero-tagline {
  margin-top: 30px;
  font-size: clamp(13px, 2.2vw, 16px);
  letter-spacing: 0.42em; margin-right: -0.42em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.hero .divider { width: 80px; height: 1px; background: var(--line); margin: 28px auto 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 1px; height: 48px;
  background: linear-gradient(var(--silver-mute), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ---------- Glint title ----------
   1. Entrance: letters rise in from a soft blur, staggered.
   2. Sheen: one soft band of light sweeps across the whole word, every 8s.
      Each letter clips the same gradient, offset by its position (--x, set by
      site.js) so the band reads as one continuous highlight.
   3. Twinkle: a single burst at the final letter as the light leaves. */
@property --sweep { syntax: "<number>"; inherits: true; initial-value: -1.5; }
.glint-title {
  font-weight: 600;
  font-size: clamp(22px, 8.2vw, 88px);
  line-height: 1.3;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  color: #b8b8bf;
  white-space: nowrap;
}
.glint-title .m { display: inline-block; }
.glint-title .l {
  position: relative;
  display: inline-block;
  animation: letter-in 1s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(0.15s + var(--i) * 0.045s);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(0.28em); filter: blur(10px); }
}
.sheen-ready .glint-title { animation: sheen 8s infinite 1.2s; }
.sheen-ready .glint-title .l {
  background: linear-gradient(105deg, #b8b8bf 42%, #f6f6f9 46.5%, #ffffff 48%, #ffffff 52%, #f6f6f9 53.5%, #b8b8bf 58%) no-repeat;
  background-size: calc(var(--tw) * 2.5) 100%;
  background-position: calc(var(--sweep) * var(--tw) - var(--x)) 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes sheen {
  0% { --sweep: -1.5; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  30%, 100% { --sweep: 0; }
}
/* Twinkle on the last letter only, timed to when the sheen passes it */
.glint-title .m:last-child .l::before,
.glint-title .m:last-child .l::after {
  content: "";
  position: absolute;
  top: var(--sy, 0.06em);
  right: var(--sx, 0.15em);
  width: 0; height: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: 8s ease-out 2.48s infinite;
}
.glint-title .m:last-child .l::after { animation-name: specks; transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); }
.glint-title .m:last-child .l::before { animation-name: specks-faint; transform: rotate(var(--r2, 0deg)) scale(calc(2.1 - var(--s, 1))); }
@keyframes specks {
  0% {
    opacity: 0;
    box-shadow: 0 0 1px 0.04em #fff, 0 0 1px 0.025em #e4ebff, 0 0 1px 0.03em #fff, 0 0 1px 0.02em #dfe6ff;
  }
  0.8% { opacity: 1; }
  6%, 100% {
    opacity: 0;
    box-shadow: 0.27em -0.27em 1px 0.024em #fff, 0.38em -0.31em 1px 0.017em #e4ebff,
                0.2em -0.33em 1px 0.021em #fff, 0.34em -0.19em 1px 0.015em #dfe6ff;
  }
}
@keyframes specks-faint {
  0%, 0.3% {
    opacity: 0;
    box-shadow: 0 0 2px 0.02em rgba(210,222,255,0.8), 0 0 2px 0.018em rgba(255,255,255,0.8), 0 0 2px 0.015em rgba(210,222,255,0.8);
  }
  1.3% { opacity: 0.8; }
  7%, 100% {
    opacity: 0;
    box-shadow: 0.42em -0.4em 2px 0.014em rgba(210,222,255,0.8), 0.5em -0.35em 2px 0.012em rgba(255,255,255,0.8),
                0.35em -0.48em 2px 0.01em rgba(210,222,255,0.8);
  }
}
/* Logo and buttons ease in around the title */
.mark-btn { animation: fade-down .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-actions { animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) .75s backwards; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--black-4);
  border-bottom: 1px solid var(--black-4);
  background: var(--black-2);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  display: block;
  padding: 22px 36px;
}
.marquee-track span::after {
  content: ""; display: block; width: 26px; aspect-ratio: 420 / 350; background: var(--silver-mute);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Game cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.games-grid.featured { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--line); }
.card-art { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.art-inner.art-img, .game-art .art-inner.art-img { object-fit: cover; width: 100%; height: 100%; padding: 0; background: none; }
.card:hover .art-inner { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--silver-bright); color: var(--black);
}
.badge.soon { background: rgba(10,10,10,0.75); color: var(--silver-bright); border: 1px solid var(--line); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 21px; font-weight: 600; letter-spacing: 0.04em; color: var(--silver-bright); }
.card-tag { font-size: 14px; color: var(--silver-mute); margin-top: 4px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 22px;
  border: 1px solid var(--black-4); border-radius: 12px;
  container-type: inline-size; /* text below scales with the box width */
}
.stat { padding: 10px clamp(6px, 3cqi, 12px); min-width: 0; }
.stat + .stat { border-left: 1px solid var(--black-4); }
/* Never wrap: labels and values shrink to fit instead of breaking onto two lines. */
.stat dt, .stat dd { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.stat dt { font-size: min(10px, 3.2cqi); letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver-mute); }
.stat dd { font-size: min(15px, 5.6cqi); font-weight: 600; color: var(--silver-bright); margin-top: 2px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1 1 auto; }

/* Generated placeholder art: dark tile, tinted glow, logo bars, title */
.art-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 22px;
  background:
    radial-gradient(120% 90% at 80% 10%, hsla(var(--h, 230), 40%, 55%, 0.28), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, hsla(var(--h, 230), 30%, 40%, 0.18), transparent 70%),
    linear-gradient(160deg, #18181c, #0b0b0d);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.art-inner::before {
  content: "";
  position: absolute; right: -8%; top: 8%;
  width: 62%; aspect-ratio: 420 / 350;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
.art-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position .9s ease;
}
.card:hover .art-inner::after { background-position: 0 0; }
.art-name {
  position: relative; z-index: 1;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.05;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--silver-bright);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* ---------- Games page controls ---------- */
.page-head { padding: 96px 0 48px; }
.page-head .lead { margin-top: 18px; max-width: none; } /* only wraps when the screen is too narrow */
.controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--black-4);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 38px; padding: 8px 18px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-dim); cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { color: var(--white); border-color: var(--silver-mute); }
.chip[aria-pressed="true"] { background: var(--silver-bright); border-color: var(--silver-bright); color: var(--black); }
.chip .count { opacity: 0.6; margin-left: 6px; }
.select {
  height: 38px; padding: 0 40px 0 16px; border-radius: 999px;
  background: var(--black-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a8a8b0' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat;
  border: 1px solid var(--line);
  font-size: 13px; color: var(--silver-dim);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.empty { padding: 80px 0; text-align: center; color: var(--silver-mute); }

/* ---------- Why / features ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--black-4); border: 1px solid var(--black-4); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--black); padding: 32px 30px; }
.pillar-num { font-size: 12px; letter-spacing: 0.28em; color: var(--silver-mute); }
.pillar h3 { font-size: 20px; font-weight: 600; color: var(--silver-bright); margin: 40px 0 10px; letter-spacing: 0.03em; }
.pillar p { font-size: 15px; color: var(--silver-dim); }

/* ---------- Engine split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.split .lead { margin-top: 22px; }
.split .btns { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.engine-panel {
  position: relative;
  border: 1px solid var(--black-4); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--black-3), var(--black));
  padding: 36px;
  overflow: hidden;
}
.engine-panel::before {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 260px; aspect-ratio: 420 / 350;
  background: rgba(255,255,255,0.03);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
.spec-list { list-style: none; position: relative; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--black-4);
  font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--silver-mute); }
.spec-list b { color: var(--silver-bright); font-weight: 600; text-align: right; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .h2 { max-width: 760px; margin: 0 auto; }
.cta .lead { margin: 20px auto 0; }
.cta .btns { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Game detail ---------- */
.game-hero { padding: 64px 0 96px; }
.back { display: inline-flex; gap: 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-mute); margin-bottom: 36px; }
.back:hover { color: var(--white); }
.game-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.game-art.wide { aspect-ratio: 16 / 9; }
.game-art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--black-4); }
.game-art .art-name { font-size: clamp(30px, 5vw, 56px); }
.game-art .art-inner { padding: 36px; }
.game-info h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 600; line-height: 1.02; color: var(--silver-bright); letter-spacing: 0.03em; }
.game-info .card-tag { font-size: 17px; margin-top: 10px; }
.game-info .desc { color: var(--silver-dim); font-size: 16px; margin-top: 24px; }
.game-info .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0; }
.game-info .stat { padding: 16px 18px; }
.game-info .stat:nth-child(3), .game-info .stat:nth-child(4) { border-top: 1px solid var(--black-4); }
.game-info .stat:nth-child(3) { border-left: 0; }
.game-info .stat dd { font-size: min(20px, 4.6cqi); }
.game-info .stat dt { font-size: min(10px, 2.6cqi); }
.features { list-style: none; margin-bottom: 36px; }
.features li { display: flex; gap: 14px; padding: 10px 0; color: var(--silver-dim); font-size: 15px; }
.features li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--silver-mute); margin-top: 12px; }
.game-info .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; padding-bottom: 120px; }
.contact-aside .lead { margin-top: 20px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px 0 0;
  background: linear-gradient(150deg, var(--black-3), var(--black-2) 60%);
  border: 1px solid var(--black-4); border-radius: var(--radius);
  transition: border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
/* faint logo bars in the corner */
.contact-card::before {
  content: ""; position: absolute; right: 18px; top: 50%; height: 72%; aspect-ratio: 420 / 350;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), background .3s ease;
  pointer-events: none;
}
/* light sweep on hover */
.contact-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  transition: background-position .9s ease;
}
.contact-card:not(.is-static):hover { border-color: var(--line); transform: translateY(-2px); }
.contact-card:not(.is-static):hover::after { background-position: 0 0; }
.contact-card:not(.is-static):hover::before { transform: translate(-6px, -50%); background: rgba(255, 255, 255, 0.05); }
.cc-link {
  position: relative; z-index: 1;
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0 18px 18px;
}
.cc-icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--black); border: 1px solid var(--black-5);
  color: var(--silver);
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.cc-icon img { width: 22px; height: 22px; }
.contact-card:not(.is-static):hover .cc-icon { color: var(--white); border-color: var(--silver-mute); background: var(--black-3); }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver-mute); }
.cc-value { font-size: 17px; color: var(--silver-bright); margin-top: 2px; overflow-wrap: anywhere; }
.cc-arrow {
  margin-left: auto; font-size: 18px; color: var(--silver-mute);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
.contact-card:hover .cc-arrow { transform: translate(3px, -3px); color: var(--white); }
.cc-copy {
  position: relative; z-index: 1; flex: none;
  min-height: 34px; padding: 6px 14px; border-radius: 999px;
  background: var(--black); border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-dim); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cc-copy:hover { color: var(--white); border-color: var(--silver-mute); }
.cc-copy.copied { background: var(--silver-bright); border-color: var(--silver-bright); color: var(--black); }
.form {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--black-3), var(--black-2) 55%);
  border: 1px solid var(--black-4); border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
/* faint logo watermark + a thin silver sheen along the top edge */
.form::before {
  content: ""; position: absolute; right: 32px; top: 30px; width: 120px; aspect-ratio: 420 / 350;
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
  pointer-events: none;
}
.form::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent) no-repeat;
  background-size: 40% 100%;
  animation: edge-sheen 6s ease-in-out infinite;
}
@keyframes edge-sheen { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }
.form > * { position: relative; }
.form-head { grid-column: 1 / -1; margin-bottom: 6px; }
.form-title { font-size: 26px; font-weight: 600; color: var(--silver-bright); letter-spacing: 0.02em; }
.form-sub { font-size: 14px; color: var(--silver-mute); margin-top: 4px; }

/* Topic pills */
.pills { grid-column: 1 / -1; border: 0; min-width: 0; }
.pills legend { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver-mute); margin-bottom: 12px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--black);
  font-size: 13px; color: var(--silver-dim);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.pill:hover span { color: var(--white); border-color: var(--silver-mute); }
.pill input:checked + span { background: var(--silver-bright); border-color: var(--silver-bright); color: var(--black); }
.pill input:focus-visible + span { outline: 1px solid var(--silver-mute); outline-offset: 3px; }
.pill:active span { transform: scale(0.96); }

/* Floating-label fields */
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  background: var(--black); border: 1px solid var(--black-5); border-radius: 12px;
  padding: 24px 16px 10px; font-size: 15px; color: var(--silver-bright);
  transition: border-color .25s ease, background .25s ease;
}
.field textarea { min-height: 170px; resize: vertical; padding-bottom: 30px; }
.field.fl label {
  position: absolute; left: 17px; top: 17px;
  font-size: 15px; color: var(--silver-mute);
  pointer-events: none; transform-origin: left top;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), color .25s ease, letter-spacing .25s ease;
}
.field.fl input:focus + label, .field.fl input:not(:placeholder-shown) + label,
.field.fl textarea:focus + label, .field.fl textarea:not(:placeholder-shown) + label {
  transform: translateY(-9px) scale(0.72);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim);
}
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--silver-mute); background: #0d0d0f; }
/* silver line that sweeps in under the active field */
.field::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field.invalid input, .field.invalid textarea { border-color: #7a4a4f; }
.counter { position: absolute; right: 14px; bottom: 10px; font-size: 11px; letter-spacing: 0.08em; color: var(--silver-mute); pointer-events: none; }

.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--silver-mute); flex: 1; min-width: 200px; }
.send { overflow: hidden; }
.send.sending .arrow { animation: arrow-fly .7s cubic-bezier(.5, 0, .2, 1); }
@keyframes arrow-fly {
  0% { transform: none; }
  45% { transform: translateX(40px); opacity: 0; }
  46% { transform: translateX(-30px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--black-4); padding: 72px 0 40px; background: var(--black); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: var(--silver-mute); font-size: 14px; margin-top: 18px; max-width: 320px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver-mute); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 15px; color: var(--silver-dim); transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-link img { width: 22px; height: 22px; opacity: 0.85; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--black-4);
  font-size: 13px; color: var(--silver-mute);
}
.age { display: inline-flex; align-items: center; gap: 12px; max-width: 640px; }
.age b {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--silver-dim); font-size: 11px; font-weight: 600;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .split, .game-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px 16px;
    overflow-y: auto;
    background: var(--black);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; } /* no page scrolling behind the open menu */
  .nav a { font-size: 22px; padding: 18px 0; border-bottom: 1px solid var(--black-4); color: var(--silver-bright); }
  .nav .btn { margin: 28px 0 0; min-height: 52px; font-size: 14px; border-bottom: 0; color: var(--black); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding: 64px 0 96px; }
  .hero .mark { width: 72px; }
  .mark-btn { margin-bottom: 28px; }
  .games-grid.featured { grid-template-columns: 1fr; }
  .pillar h3 { margin-top: 24px; }
  .page-head { padding: 64px 0 32px; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .form-title { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { padding-bottom: env(safe-area-inset-bottom); }
  .brand { font-size: 13px; letter-spacing: 0.18em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .glint-title, .glint-title .l, .glint-title .l::before, .glint-title .l::after,
  .mark-btn, .mark-btn .mark, .hero-actions, .marquee-track, .form::after, .send .arrow { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .art-inner, .art-inner::after { transition: none; }
}


/* =====================  Creative upgrades  ===================== */

/* ---------- Game cards: gentle lift on hover (no tilt) ---------- */
.games-grid .card { transform: translateY(var(--lift, 0px)); transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s ease; }
.card:hover { --lift: -4px; }
.game-art { border-radius: var(--radius); }

/* ---------- Why Sleek: icons + spotlight that follows the cursor ---------- */
.pillar { position: relative; overflow: hidden; transition: background .4s ease; }
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.pillar:hover::before { opacity: 1; }
.pillar > * { position: relative; }
.pillar-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-top: 0; border-radius: 12px;
  border: 1px solid var(--black-5); background: var(--black-2); color: var(--silver);
  transition: color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.pillar:hover .pillar-icon { color: var(--white); border-color: var(--silver-mute); transform: translateY(-3px) rotate(-4deg); }
.pillar h3 { margin-top: 22px; }

/* ---------- CTA: big faint logo with a slow sheen ---------- */
.cta { position: relative; overflow: hidden; }
.cta > .wrap { position: relative; }
.cta-mark {
  position: absolute; left: 50%; top: 50%; width: min(70vw, 620px); aspect-ratio: 420 / 350;
  transform: translate(-50%, -50%);
  background: linear-gradient(110deg, rgba(255,255,255,0.025) 40%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.025) 60%) no-repeat;
  background-size: 300% 100%;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
  animation: mark-sheen 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mark-sheen { 0% { background-position: 100% 0; } 50%, 100% { background-position: 0 0; } }

/* ---------- Page heads: giant outlined backdrop word ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { position: relative; }
.page-word {
  position: absolute; right: -0.04em; bottom: -0.18em;
  font-size: clamp(90px, 19vw, 300px); font-weight: 700; line-height: 1;
  letter-spacing: 0.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--black-4);
  pointer-events: none; -webkit-user-select: none; user-select: none;
}
.page-count {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--silver-dim); letter-spacing: 0.18em;
}
.page-count:empty { display: none; }

/* ---------- Footer: giant outlined wordmark + back to top ---------- */
.site-footer { position: relative; overflow: hidden; }
.footer-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim);
  cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.to-top:hover { color: var(--white); border-color: var(--silver-mute); transform: translateY(-2px); }


@media (max-width: 760px) {
  .scrolled .site-header { height: var(--header-h); }
  .page-word { font-size: 28vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-mark { animation: none; }
}


/* ---------- Game card (v2): art + slim info strip, whole card is the link ---------- */
.card { position: relative; background: var(--black-2); }
.card-art { aspect-ratio: 3 / 4; }
.card-art .art-inner { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art .art-inner { transform: scale(1.05); }
.card .badge { top: 14px; left: 14px; }
.card-info {
  position: relative; z-index: 1; overflow: hidden;
  margin-top: -1px; /* covers the art's last sub-pixel row, which showed as a coloured line when the art zooms */
  padding: 17px 18px 18px;
  background: var(--black-2);
  border-top: 1px solid var(--black-4);
}
/* light that sweeps across the strip on hover */
.card-info::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  transition: background-position .9s ease;
}
.card:hover .card-info::after { background-position: 0 0; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .card-title { font-size: 19px; font-weight: 600; letter-spacing: 0.03em; color: var(--silver-bright); min-width: 0; }
/* the title link stretches over the whole card */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { border-color: var(--silver-mute); }
.card-go {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--silver-dim);
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card-go { background: var(--silver-bright); border-color: var(--silver-bright); color: var(--black); transform: rotate(-45deg); }
.card-play {
  position: relative; z-index: 5; flex: none;
  min-height: 34px; padding: 7px 16px; border-radius: 999px;
  background: var(--silver-bright); color: var(--black);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.card-play:hover { background: var(--white); transform: translateY(-1px); }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin-top: 10px; font-size: 12px; color: var(--silver-mute);
}
.card-meta span { white-space: nowrap; }
.card-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line); margin: 0 10px; vertical-align: middle; }
.card-meta b { font-weight: 600; color: var(--silver-bright); }
@media (prefers-reduced-motion: reduce) {
  .card-go, .card-art .art-inner, .card-info::after { transition: none; }
}


/* ---------- "Built different. Built sleek." (v2) ---------- */
.why-layout { display: grid; grid-template-columns: 1.15fr 1.25fr; gap: 48px; align-items: center; }
.why-head .h2 { font-size: clamp(34px, 4.4vw, 60px); }
.why .pillars { grid-template-columns: repeat(2, 1fr); }
.why .pillar {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 210px; padding: 28px;
  background: linear-gradient(160deg, var(--black-2), var(--black) 70%);
}
.why .pillar h3 { margin: 0; font-size: 22px; }
.why .pillar-icon { width: 54px; height: 54px; border-radius: 14px; }
/* huge faint copy of the icon in the corner */
.pillar-ghost {
  position: absolute !important; right: -26px; bottom: -30px;
  color: rgba(255, 255, 255, 0.035);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), color .5s ease;
  pointer-events: none;
}
.why .pillar:hover .pillar-ghost { transform: translate(-10px, -10px) rotate(-6deg); color: rgba(255, 255, 255, 0.07); }
/* icons draw themselves in, one tile after another */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pillars.in .draw path { animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(0.2s + var(--d, 0) * 0.18s); }
.why .pillar:hover .draw path { animation: redraw .9s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: 0s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.no-js .draw path { stroke-dashoffset: 0; }

@media (max-width: 1000px) {
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .why .pillars { grid-template-columns: 1fr 1fr; }
  .why .pillar { min-height: 150px; padding: 20px; }
  .why .pillar h3 { font-size: 17px; }
  .why .pillar-icon { width: 44px; height: 44px; }
  .pillar-ghost { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw path { stroke-dashoffset: 0; animation: none !important; }
}
