/* ==========================================================================
   Oz Games — otzstore.online
   Dark neon arcade theme · vanilla CSS · no build step
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #06070f;
  --bg-2: #0b0d1c;
  --bg-3: #10132a;
  --ink: #f4f5ff;
  --ink-2: #c9cde8;
  --muted: #8f95bd;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);

  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --red: #ff3b5c;
  --green: #4ade80;

  --grad: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-warm: linear-gradient(120deg, var(--pink) 0%, var(--amber) 100%);

  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(139, 92, 246, 0.55); color: #fff; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Ambient layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}
.aurora__blob--1 {
  top: -25vmax; left: -15vmax;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.40) 0%, rgba(139, 92, 246, 0) 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  top: 10vmax; right: -25vmax;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.30) 0%, rgba(34, 211, 238, 0) 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  bottom: -30vmax; left: 20vmax;
  background: radial-gradient(circle at center, rgba(244, 114, 182, 0.24) 0%, rgba(244, 114, 182, 0) 62%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-10vmax, 14vmax) scale(0.9); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-14vmax, -10vmax) scale(1.2); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 520px;
  height: 520px;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.16) 0%, rgba(34, 211, 238, 0.06) 35%, rgba(0, 0, 0, 0) 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- Typography helpers ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18), 0 0 14px rgba(34, 211, 238, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}
.eyebrow__dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18), 0 0 14px rgba(251, 191, 36, 0.9);
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.section__title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.section__sub {
  margin-top: 16px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head .section__sub { margin-inline: auto; }
.section__head--sub { margin-top: clamp(64px, 9vw, 110px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(139, 92, 246, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: var(--scroll, 0%);
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  transition: width 0.1s linear;
}
.nav.is-scrolled {
  background: rgba(6, 7, 15, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.7);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__mark .brand__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__mark.is-fallback img { display: none; }
.brand__mark.is-fallback .brand__fallback { display: block; }
.brand__name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__name span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.brand--footer .brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.brand--footer .brand__name { font-size: 17px; }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: var(--glass); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--grad);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 12px; right: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(11, 13, 28, 0.92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu:not([hidden]) { display: flex; animation: menuIn 0.35s var(--ease-out); }
.mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: 14px; font-weight: 500; font-size: 17px; }
.mobile-menu a:not(.btn):hover { background: var(--glass); }
.mobile-menu .btn { margin-top: 8px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
  animation: gridShift 12s linear infinite;
}
@keyframes gridShift { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 56px 0; } }

.hero__tiles { position: absolute; inset: 0; pointer-events: none; }
.hero__tiles i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: clamp(14px, 2vw, 26px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--c);
  opacity: 0.55;
  box-shadow: 0 0 24px var(--c), 0 0 60px color-mix(in srgb, var(--c) 40%, transparent);
  animation: tileFloat 9s ease-in-out infinite;
  animation-delay: var(--d);
  will-change: transform;
}
@keyframes tileFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.35; }
  50% { transform: translate3d(12px, -28px, 0) rotate(18deg) scale(1.15); opacity: 0.8; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  font-size: clamp(3.2rem, 8.6vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__title .word { display: block; }
.word--1 { color: var(--ink); text-shadow: 0 0 60px rgba(255, 255, 255, 0.18); }
.word--2 {
  background: linear-gradient(110deg, #c4b5fd 0%, var(--violet) 35%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.45));
}
.word--3 {
  background: linear-gradient(110deg, var(--pink) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(244, 114, 182, 0.4));
}

.hero__sub {
  margin-top: 34px;
  max-width: 520px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  display: flex;
  gap: clamp(22px, 4vw, 44px);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stats span { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Phone mockup */
.hero__visual { display: flex; justify-content: center; }
.phone {
  --phone-accent: #ff3b5c;
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 9 / 19;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
.phone__glow {
  position: absolute;
  inset: 8% -25% -5%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--phone-accent) 0%, transparent 60%);
  opacity: 0.55;
  filter: blur(30px);
  transition: background 0.8s;
  z-index: 0;
}
.phone__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2d45, #101223 60%, #1b1e33);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px var(--phone-accent);
  transition: box-shadow 0.8s;
}
.phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  width: 34%; height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05060c;
  z-index: 4;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0b17;
}
.phone__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16% 12%;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.phone__bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(28px) saturate(1.6);
  opacity: 0.85;
  transform: scale(1.2);
}
.phone__slide picture { position: relative; z-index: 1; width: 100%; }
.phone__art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.9) translateY(10px);
  transition: transform 1.2s var(--ease-out);
}
.phone__slide.is-active { opacity: 1; }
.phone__slide.is-active .phone__art { transform: scale(1) translateY(0); }
.phone__label-text { transition: opacity 0.3s; }
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.phone__label {
  position: absolute;
  left: 20px; right: 20px; bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone__label-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.phone__label-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone__label-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.phone__ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.phone__ring--1 { width: 150%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.phone__ring--2 { width: 190%; aspect-ratio: 1; border-color: rgba(255, 255, 255, 0.07); animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  width: 26px; height: 42px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  opacity: 0.8;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--violet); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }

/* ---------- Game cards ---------- */
.games__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}


.game-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 215px 1fr;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.game-card::before {
  /* cursor spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.game-card::after {
  /* gradient border on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), transparent 40%, transparent 60%, rgba(var(--accent-rgb), 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.game-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 30px 80px -30px rgba(var(--accent-rgb), 0.55), 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.game-card:hover::before, .game-card:hover::after { opacity: 1; }

.game-card__media {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background: #0a0b17;
  display: grid;
  place-items: center;
  padding: 26px;
}
.game-card__bg {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(34px) saturate(160%);
  opacity: 0.55;
  transform: scale(1.1);
  transition: transform 1s var(--ease-out), opacity 0.6s;
}
.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(6, 7, 15, 0.55) 100%);
  pointer-events: none;
}
.game-card__art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(30px);
  transition: transform 0.6s var(--ease-out);
}
.game-card:hover .game-card__art { transform: translateZ(50px) scale(1.05) rotate(-2deg); }
.game-card:hover .game-card__bg { transform: scale(1.2); opacity: 0.75; }
.game-card__initial {
  display: none;
  position: relative;
  z-index: 1;
  width: 150px; height: 150px;
  border-radius: 22%;
  place-items: center;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.35));
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
}
.game-card.no-art .game-card__art, .game-card.no-art .game-card__bg { display: none; }
.game-card.no-art .game-card__initial { display: grid; }
.game-card.no-art .game-card__media { background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.35), transparent 60%), #0a0b17; }

.pill {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(6, 7, 15, 0.65);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill--soon i { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.pill--new { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.8); }
.pill--new i { background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 1.6s ease-in-out infinite; }

.game-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
}
.game-card__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.game-card__title::after {
  content: "";
  display: block;
  width: 36px; height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width 0.5s var(--ease-out);
}
.game-card:hover .game-card__title::after { width: 64px; }
.game-card__desc { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1; }

.store-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.store-row--single { grid-template-columns: minmax(0, 200px); }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  line-height: 1.1;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  min-width: 0;
}
.store-btn .icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-btn small { font-size: 9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), 0.6);
}
.store-btn--disabled { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.store-btn--disabled:hover { transform: none; background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); box-shadow: none; }

.game-card--soon .game-card__art { filter: saturate(0.85); }

/* Featured (newest) card — full width */
.game-card.game-card--featured { grid-column: 1 / -1; grid-template-columns: minmax(340px, 42%) 1fr; }
.game-card--featured .game-card__media { min-height: 380px; }
.game-card--featured .game-card__art { max-width: 260px; }
.game-card--featured .game-card__body { justify-content: center; padding: clamp(28px, 3.4vw, 48px); }
.game-card--featured .game-card__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.game-card--featured .game-card__desc { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 600px; flex: 0; }
.game-card--featured .store-row { grid-template-columns: repeat(2, minmax(0, 210px)); margin-top: 28px; }
.game-card--featured .store-btn { padding: 12px 16px; }
.game-card--featured .store-btn .icon { width: 24px; height: 24px; }
.game-card--featured .store-btn span { font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}


/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__copy { position: sticky; top: calc(var(--nav-h) + 40px); }
.about__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.65; max-width: 480px; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.features { display: grid; gap: 16px; }
.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 22px;
  align-items: start;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background-color 0.4s;
}
.feature:hover { transform: translateX(8px); border-color: var(--line-2); }
.feature__icon {
  grid-row: 1 / span 2;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 30px -8px var(--accent);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { grid-column: 2; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.feature p { grid-column: 2; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Follow ---------- */
.follow__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(44px, 7vw, 90px) clamp(22px, 5vw, 70px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
}
.follow__glow {
  position: absolute;
  inset: -90% -45%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.28), transparent 40%),
    radial-gradient(circle at 60% 20%, rgba(244, 114, 182, 0.22), transparent 35%);
  animation: glowSpin 24s linear infinite;
  pointer-events: none;
}
@keyframes glowSpin { to { transform: rotate(360deg); } }
.follow__card > * { position: relative; }
.follow__card .follow__glow { position: absolute; z-index: 0; opacity: 0.9; }
.follow__card .section__sub { margin-inline: auto; }

.socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px 22px;
  border-radius: var(--radius);
  background: rgba(6, 7, 15, 0.45);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.45s, background-color 0.4s;
}
.social .icon {
  width: 30px; height: 30px;
  fill: var(--ink);
  transition: fill 0.4s, transform 0.45s var(--ease-spring);
  margin-bottom: 8px;
}
.social__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.social__handle { font-size: 13px; color: var(--muted); }
.social:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), 0.7);
}
.social:hover .icon { fill: var(--accent); transform: scale(1.15) rotate(-6deg); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
}
.footer__links { display: flex; justify-content: center; gap: 6px; }
.footer__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color 0.3s, background-color 0.3s; }
.footer__links a:hover { color: var(--ink); background: var(--glass); }
.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.footer__socials .icon { width: 16px; height: 16px; fill: var(--ink-2); }
.footer__socials a:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--glass-2); }
.footer__copy { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.7);
  display: grid;
  place-items: center;
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { transform: none; opacity: 1; }
.to-top[hidden] { display: grid; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Icon helper ---------- */
.icon { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
/* keep tilt transform separate from reveal transform on cards */
.game-card[data-reveal] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(26px); }
.game-card[data-reveal].is-visible { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0); }
.hero__title .word[data-reveal] { transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .game-card { grid-template-columns: 200px 1fr; }
  .game-card.game-card--featured { grid-template-columns: 300px 1fr; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { margin-top: 48px; }
  .phone { width: min(240px, 58vw); }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__copy { position: static; }
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav .btn--sm { display: none; }
  .games__grid { grid-template-columns: 1fr; }
  .game-card, .game-card.game-card--featured { grid-template-columns: 220px 1fr; }
  .game-card--featured .game-card__media { min-height: 250px; }
  .game-card--featured .game-card__body { padding: clamp(20px, 2.2vw, 28px); }
  .game-card--featured .game-card__art { max-width: 180px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .game-card, .game-card.game-card--featured { grid-template-columns: 1fr; }
  .game-card__media, .game-card--featured .game-card__media { min-height: 0; aspect-ratio: 16 / 9; padding: 18px; }
  .game-card--featured .store-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card--featured .store-btn { padding: 9px 12px; }
  .game-card--featured .store-btn .icon { width: 20px; height: 20px; }
  .game-card--featured .store-btn span { font-size: 13px; }
  .game-card__media::after { background: linear-gradient(180deg, transparent 60%, rgba(6, 7, 15, 0.6) 100%); }
  .game-card__art, .game-card--featured .game-card__art { max-width: 120px; }
  .store-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { gap: 22px; }
  .feature { grid-template-columns: 52px 1fr; gap: 16px; }
  .feature__icon { width: 52px; height: 52px; border-radius: 14px; }
  .feature__icon svg { width: 24px; height: 24px; }
  .scroll-cue { display: none; }
  .cursor-glow { display: none; }
}
@media (max-width: 400px) {
  .store-row, .game-card--featured .store-row { grid-template-columns: 1fr; }
}

/* Touch devices: no tilt, no hover-only effects */
@media (hover: none) {
  .game-card, .phone { transform: none !important; }
  .cursor-glow { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .game-card[data-reveal] { transform: none; }
  #bg-canvas, .aurora, .cursor-glow, .hero__tiles { display: none; }
  .marquee__track { animation: none; }
}
