/* ==========================================================================
   Pishko Tech Studio
   Fonts are self-hosted (assets/fonts) so no visitor data goes to Google.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/silkscreen-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/silkscreen-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0b0914;
  --bg-2: #100d1c;
  --surface: #151125;
  --surface-2: #1c1731;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ff;
  --muted: #aaa3c7;
  --dim: #7a7399;

  --violet: #8b6dff;
  --pink: #ff5fa8;
  --amber: #ffbf5e;
  --teal: #5ef0c8;
  --grad-text: linear-gradient(100deg, #a58bff 0%, #ff6fb0 50%, #ffc56b 100%);
  --grad-brand: linear-gradient(135deg, #7c5cff 0%, #ff4f9a 55%, #ffb547 100%);
  --grad-btn: linear-gradient(120deg, #6b45ff, #d62a76);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: #ff4f9a; color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 4px 4px 0 rgba(255, 191, 94, 0.3);
}
.eyebrow.no-mark::before { display: none; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

h2 {
  font-size: clamp(2rem, 1.05rem + 3.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.2em;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }

.btn-lg { padding: 1em 1.5em; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 0.6em 1em; font-size: 0.9rem; border-radius: 10px; }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 5px 0 #3a1a63, 0 18px 40px -16px rgba(255, 79, 154, 0.7);
}
.btn-primary:hover { box-shadow: 0 7px 0 #3a1a63, 0 22px 46px -16px rgba(255, 79, 154, 0.85); }
.btn-primary:active { box-shadow: 0 2px 0 #3a1a63, 0 10px 30px -16px rgba(255, 79, 154, 0.7); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }

.btn-accent {
  background: var(--accent);
  color: #0b0914;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 40%, #000);
}
.btn-accent:hover { box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 40%, #000); }
.btn-accent:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 40%, #000); }

.btn-store {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  padding-inline: 1em;
}
.btn-store:hover { background: rgba(255, 255, 255, 0.09); border-color: color-mix(in srgb, var(--accent, #fff) 55%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 9, 20, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.is-scrolled {
  background: rgba(11, 9, 20, 0.86);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 28px);
  font-weight: 600;
  font-size: 0.97rem;
}
.nav-links > a:not(.btn) {
  position: relative;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 2px;
  background: var(--grad-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42rem 30rem at 12% 8%, rgba(124, 92, 255, 0.28), transparent 65%),
    radial-gradient(36rem 28rem at 88% 30%, rgba(255, 79, 154, 0.22), transparent 65%),
    radial-gradient(30rem 22rem at 70% 100%, rgba(255, 181, 71, 0.16), transparent 70%);
}
.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: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 15%, transparent 75%);
}

/* Pixel sparkles */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff;
  opacity: 0.7;
  animation: twinkle 3.6s ease-in-out infinite;
}
.spark:nth-child(2n) { animation-delay: -1.2s; background: var(--amber); box-shadow: 0 -4px 0 var(--amber), 0 4px 0 var(--amber), -4px 0 0 var(--amber), 4px 0 0 var(--amber); }
.spark:nth-child(3n) { animation-delay: -2.3s; background: var(--teal); box-shadow: 0 -4px 0 var(--teal), 0 4px 0 var(--teal), -4px 0 0 var(--teal), 4px 0 0 var(--teal); }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 .eyebrow { line-height: 1.5; }
.hero-title {
  display: block;
  font-size: clamp(2.3rem, 0.9rem + 4.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-title .grad-text { display: inline; }
.lead a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.lead a:hover { text-decoration-color: var(--pink); }

.lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.hero-stats dt {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(94, 240, 200, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 240, 200, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(94, 240, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 240, 200, 0); }
}

/* Floating icon cluster */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 80s linear infinite;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 154, 0.35), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-icon {
  --size: 40%;
  --rot: 0deg;
  position: absolute;
  width: var(--size);
  aspect-ratio: 1 / 1;
  transform: rotate(var(--rot));
  animation: float 7s ease-in-out infinite;
  transition: filter 0.3s;
}
.hero-icon-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23%;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
  box-shadow:
    0 30px 60px -22px color-mix(in srgb, var(--accent) 80%, transparent),
    0 12px 24px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1.2);
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-icon:hover .hero-icon-inner { transform: scale(1.06) rotate(calc(var(--rot) * -1)); }
.hero-icon-tag {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%) rotate(calc(var(--rot) * -1));
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(11, 9, 20, 0.88);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-icon:nth-child(1) { --size: 46%; --rot: -8deg; top: 4%; left: 6%; animation-delay: 0s; }
.hero-icon:nth-child(2) { --size: 38%; --rot: 7deg; top: 24%; right: 2%; animation-delay: -2.4s; }
.hero-icon:nth-child(3) { --size: 35%; --rot: -4deg; bottom: 4%; left: 30%; animation-delay: -4.6s; }
.hero-icon:nth-child(4) { --size: 24%; --rot: 10deg; bottom: 20%; left: 0; animation-delay: -1.3s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-group { display: flex; flex: none; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.marquee-item.is-genre { color: var(--dim); font-weight: 500; }
.marquee-item::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--grad-brand);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: end;
  gap: 20px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { margin-top: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(18px, 2.4vw, 28px);
}

.game-card {
  --accent: #ff5fa8;
  --accent-2: #8b6dff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%, var(--surface) 60%);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.35s, box-shadow 0.35s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--accent) 90%, transparent);
}

.game-banner {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 45%, #120e22), color-mix(in srgb, var(--accent) 35%, #120e22));
}
.game-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 6%, var(--surface)) 100%);
  pointer-events: none;
}

/* Banner: wide cover art */
.banner-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .8, .2, 1);
}
.game-card:hover .banner-cover img { transform: scale(1.045); }

/* Banner: phone screenshots */
.banner-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 7%;
}
.banner-phones::before,
.banner-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.phone-shot {
  position: relative;
  width: 27%;
  aspect-ratio: 420 / 910;
  margin-inline: -2.5%;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #0d0a18;
  outline: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.phone-shot img { width: 100%; height: 100%; object-fit: cover; }
.phone-shot:nth-child(1) { transform: rotate(-9deg) translateY(10%); }
.phone-shot:nth-child(2) { z-index: 1; transform: translateY(0); }
.phone-shot:nth-child(3) { transform: rotate(9deg) translateY(10%); }
.game-card:hover .phone-shot:nth-child(1) { transform: rotate(-12deg) translate(-6%, 6%); }
.game-card:hover .phone-shot:nth-child(2) { transform: translateY(-4%); }
.game-card:hover .phone-shot:nth-child(3) { transform: rotate(12deg) translate(6%, 6%); }

/* Banner: icon showcase (no art yet) */
.banner-icon {
  display: grid;
  place-items: center;
}
.banner-icon-blur {
  position: absolute;
  inset: -20%;
  background-image: var(--icon);
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(140%);
  opacity: 0.55;
}
.banner-icon-img {
  position: relative;
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 23%;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -1px;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(-6deg);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1.3);
}
.banner-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.game-card:hover .banner-icon-img { transform: rotate(0deg) scale(1.06); }

/* Banner: mystery (upcoming game without art) */
.banner-mystery { display: grid; place-items: center; }
.mystery-mark {
  position: relative;
  font-family: var(--font-pixel);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 60%, #000);
}

.game-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 9, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.game-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.game-status.is-live .dot { animation: pulse 2.2s infinite; }
.game-status.is-soon .dot { background: var(--amber); }
.game-status.is-dev .dot { background: var(--violet); }
.game-status.is-featured { left: auto; right: 14px; color: var(--amber); }

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
}

.game-head { display: flex; align-items: center; gap: 14px; }
.game-icon {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 23%;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-icon.is-placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  color: var(--muted);
}

.game-title {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.game-title a { transition: color 0.2s; }
.game-title a:hover { color: var(--accent); }
.game-genres {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.game-tagline {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.game-desc { color: var(--muted); font-size: 0.99rem; }

.game-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.game-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, #fff);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.game-highlights li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

.game-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 9, 20, 0.35);
  overflow: hidden;
}
.game-facts > div {
  flex: 1 1 0;
  min-width: 84px;
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}
.game-facts > div:first-child { border-left: 0; }
.game-facts dt {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.game-facts dd { margin-top: 3px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.platforms li { display: inline-flex; align-items: center; gap: 6px; }
.platforms svg { width: 15px; height: 15px; }
.platforms-label {
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.game-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Featured card: side-by-side on wide screens */
.game-card.is-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .game-card.is-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .game-card.is-featured .game-banner { aspect-ratio: auto; min-height: 100%; }
  .game-card.is-featured .game-banner::after {
    background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--accent) 6%, var(--surface)) 100%);
  }
  .game-card.is-featured .game-body { justify-content: center; padding: clamp(28px, 3.4vw, 48px); gap: 16px; }
  .game-card.is-featured .game-title { font-size: clamp(1.6rem, 1rem + 1vw, 2.1rem); }
  .game-card.is-featured .game-icon { width: 68px; height: 68px; }
  .game-card.is-featured .game-tagline { font-size: 1.2rem; }
  .game-card.is-featured .game-footer { margin-top: 8px; }
}

.is-upcoming .game-banner img { filter: grayscale(0.4) brightness(0.8); }

.games-error {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.games-error a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Studio ---------- */
.section-studio {
  background:
    radial-gradient(40rem 26rem at 0% 0%, rgba(124, 92, 255, 0.12), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.studio-copy h2 { margin-top: 16px; }
.studio-copy p { margin-top: 20px; color: var(--muted); max-width: 32rem; }
.studio-copy p strong { color: var(--text); font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--pillar-bg, var(--grad-brand));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  color: #fff;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar:nth-child(1) { --pillar-bg: linear-gradient(135deg, #7c5cff, #b04dff); }
.pillar:nth-child(2) { --pillar-bg: linear-gradient(135deg, #ff4f9a, #ff7a6b); }
.pillar:nth-child(3) { --pillar-bg: linear-gradient(135deg, #ff9b3d, #ffbf5e); }
.pillar:nth-child(4) { --pillar-bg: linear-gradient(135deg, #1fb894, #5ef0c8); }
.pillar h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head h2 { margin-top: 16px; }
.faq-head .section-lead { margin-top: 18px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s, background-color 0.25s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.faq-toggle {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--amber);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); font-size: 0.98rem; }
.faq-answer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-left: 1.1rem;
  list-style: square;
}
.faq-answer li::marker { color: var(--amber); }
.faq-answer strong { color: var(--text); font-weight: 600; }
.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
.faq-answer a:hover { text-decoration-color: var(--pink); }

/* ---------- Contact ---------- */
.section-contact { padding-top: 0; }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgba(124, 92, 255, 0.22), transparent 70%) padding-box,
    radial-gradient(26rem 18rem at 100% 100%, rgba(255, 79, 154, 0.16), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-brand) border-box;
  overflow: hidden;
}
.contact-main h2 { margin-top: 16px; }
.contact-main p { margin-top: 16px; color: var(--muted); max-width: 30rem; }
.contact-main .btn { margin-top: 28px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.contact-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 9, 20, 0.45);
}
.contact-note h3 {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-note p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(48px, 7vw, 72px) 0 36px;
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}
.footer-brand p { margin-top: 16px; max-width: 22rem; color: var(--muted); }
.footer-col h3 {
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer-col a { color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.socials svg { width: 18px; height: 18px; }

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.7;
}
.footer-legal p + p { margin-top: 8px; }
.footer-legal .legal-entity { color: var(--muted); }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Prose page (privacy) ---------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 1rem + 3.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.page-hero p { margin-top: 16px; color: var(--muted); }

.prose { max-width: 46rem; padding-bottom: clamp(72px, 10vw, 120px); }
.prose h2 {
  margin-top: 48px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.prose p, .prose ul { margin-top: 14px; color: var(--muted); }
.prose ul { padding-left: 1.2rem; list-style: square; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.prose a:hover { text-decoration-color: var(--pink); }
.prose address { font-style: normal; margin-top: 14px; color: var(--muted); }

/* ---------- /play: link-in-bio page ---------- */
.play-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.play-top {
  display: flex;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
}
.play-top .brand img { width: 34px; height: 34px; border-radius: 9px; }
.play-main {
  flex: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 22px 16px 28px;
}
.play-head { text-align: center; margin-bottom: 20px; }
.play-head h1 {
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.play-head p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

.play-list { display: flex; flex-direction: column; gap: 12px; }
.play-card {
  --accent: #ff5fa8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%),
    var(--surface);
  box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--accent) 90%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.play-card:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.play-card:active { transform: scale(0.98); }
.play-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 23%;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
}
.play-icon img { width: 100%; height: 100%; object-fit: cover; }
.play-icon-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  color: var(--muted);
}
.play-text { display: flex; flex-direction: column; min-width: 0; }
.play-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.play-sub { margin-top: 4px; font-size: 0.86rem; font-weight: 700; color: var(--accent); }
.play-hl {
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.play-get {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 9px 12px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0914;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 40%, #000);
}
.play-get small { margin-top: 3px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.75; }

.play-note { margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--dim); }
.play-more {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.play-more:hover { color: var(--text); }
.play-footer {
  padding: 22px 16px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}
.play-footer p + p { margin-top: 6px; }
.play-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

@media (max-width: 360px) {
  .play-card { gap: 11px; padding: 12px; }
  .play-icon { width: 62px; height: 62px; }
  .play-get { min-width: 60px; padding-inline: 11px; }
}

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin-top: 8px; }
  .section-head { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .hide-sm { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 0.92rem; }
  .hero { padding-top: 32px; }
  .hero-art { max-width: 300px; }
  .spark { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .pillars { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 16px; }
  .hero-stats dd { font-size: 0.98rem; }
  .hero-stats dt { font-size: 0.62rem; }
}

@media (max-width: 340px) {
  .brand-text { display: none; }
}

@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;
  }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
