/* ---------- Fonts ---------- */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-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: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-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: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-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: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-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: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */

:root {
  --navy-950: #030820;
  --navy-900: #061033;
  --navy-800: #0a1a4a;
  --navy-700: #10296e;
  --ink: #f4f7ff;
  --ink-2: #c4cfef;
  --ink-3: #8f9dca;
  --line: rgba(150, 180, 255, 0.14);
  --cyan: #2ee6ff;
  --gold: #ffcf4a;
  --green: #4be38c;

  --grad-blue: linear-gradient(180deg, #4ff2ff 0%, #13b4ff 44%, #0b6af0 100%);
  --grad-orange: linear-gradient(180deg, #ffd85c 0%, #ffa11f 48%, #ff6210 100%);
  --grad-green: linear-gradient(180deg, #a2f57a 0%, #46d257 46%, #1f9d3d 100%);
  --grad-text-blue: linear-gradient(180deg, #8af7ff 0%, #1fbfff 52%, #2f7dff 100%);
  --grad-text-orange: linear-gradient(180deg, #ffe58a 0%, #ffad26 52%, #ff7417 100%);

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius-xl: clamp(28px, 3.4vw, 44px);
  --pad: clamp(24px, 4.4vw, 64px);
  --nav-h: 76px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  scrollbar-color: #24479c var(--navy-950);
  background: var(--navy-900);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, ul, dl, dd, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(255, 170, 34, 0.9);
  color: #1c0d00;
}

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

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1f8bff, #0b4fd0);
  border: 3px solid var(--navy-950);
  border-radius: 999px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

.nowrap {
  white-space: nowrap;
}

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

.text-gradient {
  display: inline-block;
  padding: 0 0.04em 0.1em;
  margin-bottom: -0.1em;
  text-shadow: none;
  background: var(--grad-text-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.text-gradient--blue {
  background-image: var(--grad-text-blue);
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--grad-orange);
  --edge: #b5400b;
  --glow: rgba(255, 112, 20, 0.5);
  --ink-shadow: rgba(110, 36, 0, 0.4);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1.5px 0 var(--ink-shadow);
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.14),
    0 5px 0 var(--edge),
    0 16px 28px -10px var(--glow);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out), filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  top: 3px;
  height: 45%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -20% -50%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.5) 50%, transparent 58%);
  transform: translateX(-75%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.14),
    0 7px 0 var(--edge),
    0 22px 34px -12px var(--glow);
}

.btn:hover::after {
  transform: translateX(75%);
}

.btn:active {
  transform: translateY(4px);
  transition-duration: 0.08s;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 1px 0 var(--edge),
    0 8px 16px -10px var(--glow);
}

.btn .icon {
  width: 1.2em;
  height: 1.2em;
  filter: drop-shadow(0 1.5px 0 var(--ink-shadow));
}

.btn--blue {
  --bg: var(--grad-blue);
  --edge: #0a3cad;
  --glow: rgba(0, 140, 255, 0.5);
  --ink-shadow: rgba(0, 40, 120, 0.4);
}

.btn--green {
  --bg: var(--grad-green);
  --edge: #13692b;
  --glow: rgba(60, 210, 90, 0.42);
  --ink-shadow: rgba(0, 70, 20, 0.4);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  text-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}
.btn--glass::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34), 0 18px 34px -14px rgba(0, 0, 0, 0.6);
}
.btn--glass:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.btn--lg {
  min-height: 58px;
  padding: 0.95em 1.75em;
  font-size: 1.14rem;
}

.btn--sm {
  min-height: 42px;
  padding: 0.6em 1.2em;
  font-size: 0.98rem;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.14),
    0 4px 0 var(--edge),
    0 12px 22px -10px var(--glow);
}

.btn__app {
  width: 32px;
  height: 32px;
  margin-left: -0.55em;
  border-radius: 10px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s, box-shadow 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 13, 44, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 16px 40px -18px rgba(0, 0, 0, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
}

.brand__mark {
  width: 50px;
  filter: drop-shadow(0 4px 10px rgba(0, 110, 255, 0.35));
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__stec,
.brand__games {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand__stec {
  background-image: var(--grad-text-blue);
}
.brand__games {
  background-image: var(--grad-text-orange);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav__links a.is-active {
  color: #fff;
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--grad-orange);
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav__toggle .icon {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}

.nav__toggle .icon--close {
  opacity: 0;
  transform: rotate(-90deg);
}

.nav.is-open .nav__toggle .icon--open {
  opacity: 0;
  transform: rotate(90deg);
}

.nav.is-open .nav__toggle .icon--close {
  opacity: 1;
  transform: none;
}

.nav__mobile {
  position: absolute;
  inset: 100% 0 auto;
  display: none;
  padding: 6px 0 22px;
  background: rgba(5, 13, 44, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav__mobile nav {
  display: grid;
  gap: 4px;
}

.nav__mobile a:not(.btn) {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__mobile .btn {
  margin-top: 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: max(660px, 100svh);
  padding: calc(var(--nav-h) + 24px) 0 150px;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    var(--grain),
    radial-gradient(40% 46% at 18% 50%, rgba(0, 160, 255, 0.3), transparent 70%),
    radial-gradient(40% 46% at 84% 52%, rgba(255, 128, 24, 0.24), transparent 70%),
    radial-gradient(72% 56% at 50% 36%, rgba(34, 78, 214, 0.6), transparent 72%),
    linear-gradient(180deg, #08194d 0%, #061033 74%, var(--navy-900) 100%);
  background-size: 200px 200px, auto, auto, auto, auto;
  background-blend-mode: soft-light, normal, normal, normal, normal;
}

.hero__rays {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 150vmax;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.06) 0deg 5deg, rgba(255, 255, 255, 0) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.55) 22%, transparent 58%);
  mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.55) 22%, transparent 58%);
  animation: spin 160s linear infinite;
}

.hero__sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 24% 22% at 50% 70%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 24% 22% at 50% 70%, transparent 55%, #000 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  background: linear-gradient(180deg, rgba(6, 16, 51, 0), var(--navy-900));
  pointer-events: none;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  max-width: 1500px;
  margin-inline: auto;
  pointer-events: none;
}

.floater {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  translate: calc(-50% + var(--mx, 0) * var(--depth, 0.5) * -28px) calc(-50% + var(--my, 0) * var(--depth, 0.5) * -22px);
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 22px 26px rgba(0, 4, 30, 0.5));
  animation:
    pop-in 1s var(--ease-spring) var(--in, 0.35s) both,
    bob var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  transition: translate 1s var(--ease-out);
  will-change: transform;
}

.floater--king {
  --in: 0.25s;
}

.floater--cat {
  --in: 0.4s;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  line-height: 0;
}

.hero__logo img {
  width: clamp(230px, 31vw, 420px);
  filter: drop-shadow(0 26px 40px rgba(0, 6, 40, 0.55));
  animation: logo-in 1.1s var(--ease-spring) both, float 6s ease-in-out 1.1s infinite;
}

.hero__title {
  max-width: 14ch;
  margin-top: clamp(10px, 2.2vh, 24px);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 10, 50, 0.45);
  animation: rise 1s var(--ease-out) 0.25s both;
}

.hero__title .text-gradient {
  filter: drop-shadow(0 3px 0 rgba(120, 40, 0, 0.35));
}

.hero__lead {
  max-width: 34em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  text-wrap: balance;
  animation: rise 1s var(--ease-out) 0.38s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-top: 30px;
  animation: rise 1s var(--ease-out) 0.5s both;
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  z-index: 3;
  height: clamp(120px, 13vw, 170px);
  margin-top: -96px;
  overflow: hidden;
  pointer-events: none;
}

.ticker__band {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding: 11px 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 18px 36px -14px rgba(0, 0, 0, 0.6);
}

.ticker__band--orange {
  background: var(--grad-orange);
  rotate: 2.4deg;
  translate: 0 -78%;
}

.ticker__band--blue {
  background: var(--grad-blue);
  rotate: -2deg;
  translate: 0 -22%;
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.ticker__group span {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__group svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--navy-900);
  opacity: 0.85;
}

/* ---------- Marquee (ticker + garage) ---------- */

.js [data-marquee].is-looping {
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}

.js [data-marquee="reverse"].is-looping {
  animation-direction: reverse;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 128px);
}

.games {
  padding-top: clamp(48px, 7vw, 96px);
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .games {
    overflow-x: clip;
  }
}

.studio {
  padding-bottom: clamp(80px, 9vw, 120px);
}

.section-head {
  max-width: 800px;
  margin: 0 auto clamp(44px, 6vw, 80px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(46, 230, 255, 0.24);
  border-radius: 999px;
  background: rgba(46, 230, 255, 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.eyebrow--orange {
  border-color: rgba(255, 182, 72, 0.28);
  background: rgba(255, 170, 40, 0.09);
  color: #ffb648;
}

.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  text-wrap: pretty;
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 22px;
}

.subhead__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.subhead__text {
  color: rgba(235, 245, 255, 0.72);
  font-weight: 600;
}

/* ---------- Game panels ---------- */

.game {
  position: relative;
  isolation: isolate;
  padding: var(--pad);
  border-radius: var(--radius-xl);
  box-shadow: 0 60px 110px -50px rgba(0, 0, 0, 0.8), 0 30px 60px -36px rgba(0, 0, 0, 0.55);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.game + .game {
  margin-top: clamp(56px, 7vw, 104px);
}

.game::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.game__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}

.game__decor > span {
  position: absolute;
}

.game__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.game__grid--flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.game__grid--flip .game__media {
  order: -1;
}

.game__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.game__meta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.app-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 16px 28px -10px rgba(0, 0, 0, 0.7);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-out infinite;
}

.status--live {
  background: rgba(60, 225, 130, 0.14);
  box-shadow: inset 0 0 0 1px rgba(95, 245, 150, 0.38);
  color: #6dfaa0;
}

.status--dev {
  background: rgba(255, 170, 40, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 100, 0.42);
  color: #ffcf6e;
}

.game__genre {
  color: rgba(230, 238, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 800;
}

.codename {
  margin-bottom: 4px;
  color: rgba(225, 255, 225, 0.6);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.game__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.game__tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.game__desc {
  max-width: 36em;
  margin-top: 16px;
  color: rgba(236, 243, 255, 0.82);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  transition: background-color 0.3s, transform 0.35s var(--ease-spring);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature span {
  display: block;
  margin-top: 3px;
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* King Online Club */

.game--king {
  background:
    radial-gradient(55% 60% at 76% 46%, rgba(78, 146, 255, 0.5), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(255, 205, 80, 0.14), transparent 70%),
    linear-gradient(155deg, #1b48bb 0%, #102d8a 42%, #0a1c5e 100%);
}

.game--king .game__pattern {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='168' viewBox='0 0 168 168'%3E%3Cg fill='white' fill-opacity='.07'%3E%3Cpath transform='translate(18 18) scale(1.2)' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3Cpath transform='translate(102 18) scale(1.2)' d='M12 1.5C9.2 5.6 3 9.2 3 14a4.6 4.6 0 0 0 7.7 3.4c-.3 1.9-1.1 3.5-2.4 5.1h7.4c-1.3-1.6-2.1-3.2-2.4-5.1A4.6 4.6 0 0 0 21 14c0-4.8-6.2-8.4-9-12.5z'/%3E%3Cpath transform='translate(18 102) scale(1.2)' d='M12 1.5l8 10.5-8 10.5L4 12z'/%3E%3Cg transform='translate(102 102) scale(1.2)'%3E%3Ccircle cx='12' cy='7' r='4.4'/%3E%3Ccircle cx='7.1' cy='13.6' r='4.4'/%3E%3Ccircle cx='16.9' cy='13.6' r='4.4'/%3E%3Cpath d='M12 10.5l3.2 12h-6.4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
}

.game--king .game__rays {
  left: 76%;
  top: 50%;
  width: min(1100px, 120%);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 160, 0.09) 0deg 5deg, rgba(255, 232, 160, 0) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 8%, transparent 70%);
  mask-image: radial-gradient(circle closest-side, #000 8%, transparent 70%);
  animation: spin 120s linear infinite;
}

.game--king .game__title {
  background: linear-gradient(180deg, #ffffff 35%, #ffe9a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(3, 14, 70, 0.45));
}

.game--king .game__tagline {
  color: var(--gold);
}

.contracts {
  margin-top: 28px;
}

.contracts__label,
.langs__label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contracts__label {
  margin-bottom: 12px;
}

.contracts__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.contract {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
  outline-offset: 4px;
  cursor: default;
}

.contract__icon {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 66px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 10px 18px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}

.contract__icon img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

.contract__name {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.contract:hover .contract__icon,
.contract:focus-visible .contract__icon {
  transform: translateY(-4px) rotate(-5deg) scale(1.07);
  background: linear-gradient(180deg, rgba(255, 214, 107, 0.42), rgba(255, 214, 107, 0.1));
}

.contract::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  padding: 8px 13px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  translate: -50% 6px;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.3s var(--ease-out);
}

.contract:first-child::after {
  left: 0;
  translate: 0 6px;
}

.contract:last-child::after {
  left: auto;
  right: 0;
  translate: 0 6px;
}

.contract:hover::after,
.contract:focus-visible::after {
  opacity: 1;
  translate: -50% 0;
}

.contract:first-child:hover::after,
.contract:first-child:focus-visible::after,
.contract:last-child:hover::after,
.contract:last-child:focus-visible::after {
  translate: 0 0;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-badge {
  display: block;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
}

.store-badge img {
  width: auto;
  height: 54px;
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}

.langs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.langs__list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.langs__list img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Screenshot carousel */

.showcase {
  --phone-w: clamp(210px, 21vw, 278px);
  --bezel: clamp(8px, 0.8vw, 11px);
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  border-radius: 24px;
}

.showcase:focus-visible {
  outline-offset: 12px;
}

.phones {
  position: relative;
  height: calc(var(--phone-w) * 2.1645 + var(--bezel) * 2);
  perspective: 1800px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.phone img {
  -webkit-user-drag: none;
}

.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--phone-w) + var(--bezel) * 2);
  padding: var(--bezel);
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(150deg, #47527a 0%, #1b2242 38%, #0b0f22 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px rgba(0, 0, 0, 0.55),
    0 44px 70px -28px rgba(0, 0, 0, 0.8);
  translate: -50% 0;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
  cursor: pointer;
}

.phone::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #232a47, #4a5478);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(5, 14, 52, 0.5);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.125);
  background: #0c1a57;
}

.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.phone__screen img {
  width: 100%;
  aspect-ratio: 620 / 1342;
  object-fit: cover;
}

.phone[data-pos="0"] {
  z-index: 5;
  cursor: default;
}

.phone[data-pos="-1"],
.phone[data-pos="1"] {
  z-index: 4;
}

.phone[data-pos="-1"] {
  transform: translateX(-40%) translateZ(-190px) rotateY(24deg);
}

.phone[data-pos="1"] {
  transform: translateX(40%) translateZ(-190px) rotateY(-24deg);
}

.phone[data-pos="-1"]::after,
.phone[data-pos="1"]::after,
.phone[data-pos="-2"]::after,
.phone[data-pos="2"]::after {
  opacity: 1;
}

.phone[data-pos="-2"],
.phone[data-pos="2"] {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.phone[data-pos="-2"] {
  transform: translateX(-70%) translateZ(-380px) rotateY(32deg);
}

.phone[data-pos="2"] {
  transform: translateX(70%) translateZ(-380px) rotateY(-32deg);
}

html:not(.js) .phone:not(:first-child) {
  display: none;
}

.showcase__card,
.showcase__crown {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
  animation: bob 7s ease-in-out infinite;
}

.showcase__card {
  width: clamp(76px, 8.4vw, 118px);
}

.showcase__card--k {
  left: -2%;
  bottom: 20%;
  rotate: -15deg;
}

.showcase__card--q {
  z-index: 1;
  right: -3%;
  top: 8%;
  rotate: 13deg;
  animation-delay: -3.5s;
}

.showcase__crown {
  z-index: 7;
  left: 24%;
  top: -34px;
  width: clamp(70px, 7.4vw, 104px);
  translate: -50% 0;
  rotate: -22deg;
  animation-duration: 6s;
  animation-delay: -1s;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.carousel-nav__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.3s var(--ease-spring);
}

.carousel-nav__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.carousel-nav__arrow[data-prev] .icon {
  rotate: 180deg;
}

.carousel-nav__dots {
  display: flex;
  gap: 8px;
}

.carousel-nav__dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.4s;
}

.carousel-nav__dots button::before {
  content: "";
  position: absolute;
  inset: -12px -5px;
}

.carousel-nav__dots button[aria-current="true"] {
  width: 28px;
  background: var(--gold);
}

/* Project Paws */

.game--paws {
  background:
    radial-gradient(60% 55% at 26% 58%, rgba(96, 226, 128, 0.3), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(255, 170, 50, 0.12), transparent 70%),
    linear-gradient(172deg, #13703f 0%, #0c4f31 36%, #08321f 100%);
}

.game--paws .game__jungle {
  inset: 0 0 auto;
  height: 58%;
  background: url("../img/paws/jungle.webp") center top / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
}

.game--paws .game__pattern {
  inset: 0;
  background: url("../img/paws/pattern.webp") 0 0 / 340px 340px repeat;
  opacity: 0.06;
}

/* Backgrounds have no lazy loading, so these wait for main.js's .is-near (without JS they load as usual). */
.js .game--paws:not(.is-near) .game__jungle,
.js .game--paws:not(.is-near) .game__pattern {
  background-image: none;
}

.game--paws .game__title {
  background: linear-gradient(180deg, #ffffff 35%, #d9ffb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0, 40, 18, 0.5));
}

.game--paws .game__tagline {
  color: #ffc657;
}

.game--paws .feature {
  background: rgba(0, 30, 14, 0.28);
}

.game--paws .feature:hover {
  background: rgba(0, 30, 14, 0.42);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(235, 255, 235, 0.72);
  font-weight: 800;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcf6e;
  box-shadow: 0 0 12px #ffcf6e;
}

.paws-stage {
  position: relative;
  max-width: 600px;
  aspect-ratio: 780 / 720;
  margin-inline: auto;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}

.paws-stage > img {
  position: absolute;
  translate: 0 0 var(--z, 0px);
}

.paws-stage__island {
  left: 0;
  bottom: 0;
  width: 100%;
  filter: drop-shadow(0 34px 40px rgba(0, 20, 8, 0.55));
}

.paws-stage__car {
  --z: 30px;
  left: 9%;
  bottom: 29%;
  width: 40%;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.35));
  animation: idle-rock 3.2s ease-in-out infinite;
}

.paws-stage__hero {
  --z: 60px;
  left: 44%;
  bottom: 27%;
  width: 41%;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.35));
  animation: hop 4.2s var(--ease-out) infinite;
}

.paws-stage__gear {
  --z: 110px;
  filter: drop-shadow(0 16px 18px rgba(0, 10, 0, 0.45));
  animation: bob 7s ease-in-out infinite;
}

.paws-stage__gear--a {
  left: -2%;
  top: 7%;
  width: 22%;
  rotate: -12deg;
}

.paws-stage__gear--b {
  right: 9%;
  top: -2%;
  width: 10%;
  rotate: 8deg;
  animation-delay: -2.5s;
}

.paws-stage__gear--c {
  right: -4%;
  top: 30%;
  width: 18%;
  rotate: 14deg;
  animation-delay: -4.5s;
}

/* Bosses */

.bosses {
  margin-top: clamp(56px, 7vw, 96px);
}

.bosses__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.boss {
  position: relative;
  padding: 12px 12px 18px;
  border-radius: 24px;
  text-align: center;
  background: rgba(2, 24, 12, 0.34);
  background:
    radial-gradient(70% 58% at 50% 40%, color-mix(in srgb, var(--tint) 32%, transparent), transparent 72%),
    rgba(2, 24, 12, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.boss:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 24px 40px -20px rgba(0, 0, 0, 0.7);
}

.boss__art {
  position: relative;
  aspect-ratio: 1 / 0.9;
}

.boss__arena {
  position: absolute;
  left: 3%;
  bottom: 0;
  width: 94%;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.4));
}

.boss__sprite {
  position: absolute;
  left: 50%;
  bottom: 23%;
  width: 54%;
  translate: -50% 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.38));
  transition: transform 0.45s var(--ease-spring);
}

.boss:hover .boss__sprite {
  transform: translateY(-8px) scale(1.08) rotate(-3deg);
}

.boss__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.boss__place {
  margin-top: 2px;
  color: var(--tint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Garage */

.garage {
  margin-top: clamp(52px, 6vw, 84px);
}

.garage__marquee {
  margin-inline: calc(var(--pad) * -1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.garage__marquee::-webkit-scrollbar {
  display: none;
}

.garage__marquee.is-animated {
  overflow: hidden;
}

.garage__track {
  display: flex;
  width: max-content;
  padding: 14px 0 4px;
}

.garage__marquee:hover .garage__track {
  animation-play-state: paused;
}

.car {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: clamp(150px, 15vw, 210px);
  margin-right: clamp(18px, 2.4vw, 34px);
}

.car img {
  width: 100%;
  height: clamp(92px, 9.2vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.42));
  transition: transform 0.4s var(--ease-spring);
}

.car:hover img {
  transform: translateY(-7px) rotate(-3deg) scale(1.06);
}

.car span {
  color: rgba(236, 255, 240, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
}

/* ---------- Studio ---------- */

.studio {
  overflow: hidden;
}

.studio::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1200px, 120vw);
  height: 700px;
  translate: -50% -50%;
  background:
    radial-gradient(40% 50% at 30% 50%, rgba(0, 140, 255, 0.16), transparent 70%),
    radial-gradient(40% 50% at 75% 50%, rgba(255, 140, 30, 0.12), transparent 70%);
  pointer-events: none;
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stat {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
}

.stat dt {
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-text-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat:nth-child(2) .stat__num {
  background-image: var(--grad-text-blue);
}

.stat__note {
  display: block;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.pillars {
  display: grid;
  gap: 16px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px 22px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 44px -28px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.pillar:hover {
  transform: translateX(6px);
  box-shadow: inset 0 0 0 1px rgba(150, 180, 255, 0.26), 0 28px 50px -28px rgba(0, 0, 0, 0.8);
}

.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: var(--pillar-bg);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -4px 0 rgba(0, 0, 0, 0.16),
    0 12px 24px -10px var(--pillar-glow);
  transition: transform 0.45s var(--ease-spring);
}

.pillar:hover .pillar__icon {
  transform: rotate(-6deg) scale(1.05);
}

.pillar__icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

.pillar--blue {
  --pillar-bg: var(--grad-blue);
  --pillar-glow: rgba(0, 140, 255, 0.7);
}

.pillar--orange {
  --pillar-bg: var(--grad-orange);
  --pillar-glow: rgba(255, 120, 20, 0.7);
}

.pillar--green {
  --pillar-bg: var(--grad-green);
  --pillar-glow: rgba(60, 210, 90, 0.6);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
}

.pillar p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 0;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  padding: clamp(36px, 6vw, 84px);
  border-radius: var(--radius-xl);
  background:
    var(--grain),
    linear-gradient(135deg, #10308c 0%, #0b1d5c 48%, #2b1652 100%);
  background-size: 200px 200px, auto;
  background-blend-mode: soft-light, normal;
  box-shadow: 0 60px 110px -50px rgba(0, 0, 0, 0.8), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}

.contact-card__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 70% at 0% 0%, rgba(0, 190, 255, 0.4), transparent 70%),
    radial-gradient(50% 75% at 100% 100%, rgba(255, 136, 24, 0.5), transparent 70%);
}

.contact-card__body {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.contact-card .section-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.contact-card__actions {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.3s var(--ease-spring);
}

.copy-chip__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-chip:hover {
  background: rgba(255, 255, 255, 0.15);
}

.copy-chip:active {
  transform: scale(0.97);
}

.copy-chip .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.copy-chip__done {
  display: none;
  color: var(--green);
}

.copy-chip.is-copied .copy-chip__copy {
  display: none;
}

.copy-chip.is-copied .copy-chip__done {
  display: block;
  opacity: 1;
}

.contact-card__cat {
  position: absolute;
  right: clamp(-10px, 3vw, 60px);
  bottom: -9%;
  width: clamp(220px, 31vw, 430px);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-spring);
}

.contact-card:hover .contact-card__cat {
  transform: rotate(-2deg) translateY(-6px);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: 72px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 8, 32, 0), rgba(3, 8, 32, 0.7));
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand p {
  max-width: 24em;
  margin-top: 14px;
  color: var(--ink-3);
  font-weight: 600;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px clamp(40px, 6vw, 88px);
}

.footer__nav h4 {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__nav .icon {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 52px;
  padding-top: 24px;
  color: var(--ink-3);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer__bottom::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: var(--line);
}

.footer__legal {
  flex: 1 1 360px;
  font-size: 0.76rem;
  opacity: 0.75;
}

.to-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #fff;
  transition: transform 0.3s var(--ease-spring), background-color 0.2s;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  translate: -50% 24px;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.4s var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

/* ---------- Reveal ---------- */

/* Animated on `translate` so the elements keep their own `transform` hovers and transitions. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal-in 1s var(--ease-out) var(--d, 0s) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 36px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Keyframes ---------- */

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 0.4;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(var(--marquee-shift, 50%) * -1));
  }
}

@keyframes hop {
  0%, 62%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  68% {
    transform: translateY(0) scale(1.06, 0.92);
  }
  78% {
    transform: translateY(-9%) scale(0.96, 1.05);
  }
  88% {
    transform: translateY(0) scale(1.04, 0.95);
  }
}

@keyframes idle-rock {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-0.8deg);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .floater--king {
    --x: 11% !important;
    --w: clamp(130px, 15vw, 200px) !important;
  }

  .floater--cat {
    --x: 89% !important;
    --w: clamp(140px, 16vw, 210px) !important;
  }
}

@media (max-width: 1120px) {
  .floater--hide-md {
    display: none;
  }

  .contracts__list {
    gap: 8px;
  }

  .contract__name {
    font-size: 0.7rem;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-h: 68px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav.is-open .nav__mobile {
    display: block;
    animation: drop-in 0.35s var(--ease-out);
  }

  .game__grid,
  .game__grid--flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .game__grid--flip .game__media {
    order: 0;
  }

  .game__media {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .game--king .game__rays {
    left: 50%;
    top: 74%;
  }

  .showcase {
    --phone-w: clamp(200px, 40vw, 270px);
    margin-top: 40px;
  }

  .studio__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .floater--sm {
    opacity: 0.85;
  }

  .floater--king {
    --x: 13% !important;
    --y: 87% !important;
    --w: 150px !important;
  }

  .floater--cat {
    --x: 87% !important;
    --y: 86% !important;
    --w: 165px !important;
  }

  .contact-card {
    padding-bottom: 0;
  }

  .contact-card__cat {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(300px, 70%);
    margin: 18px 0 -36px auto;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 720px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero__stage .floater--sm {
    display: none;
  }

  .floater--king {
    --x: 15% !important;
    --y: 88% !important;
    --w: 120px !important;
  }

  .floater--cat {
    --x: 85% !important;
    --y: 87% !important;
    --w: 132px !important;
  }

  .hero__actions {
    width: 100%;
    max-width: 380px;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .contracts__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 16px;
  }

  .contract:nth-child(4)::after {
    left: auto;
    right: 0;
    translate: 0 6px;
  }

  .contract:nth-child(4):hover::after,
  .contract:nth-child(4):focus-visible::after {
    translate: 0 0;
  }

  .contract:nth-child(5)::after {
    left: 0;
    translate: 0 6px;
  }

  .contract:nth-child(5):hover::after,
  .contract:nth-child(5):focus-visible::after {
    translate: 0 0;
  }

  .bosses__list {
    grid-auto-columns: 58%;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: calc(var(--pad) * -1);
    padding: 6px var(--pad) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .bosses__list::-webkit-scrollbar {
    display: none;
  }

  .boss {
    scroll-snap-align: start;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 14px 12px 12px;
  }

  .stat__note {
    font-size: 0.78rem;
  }

  .pillar {
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .pillar__icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .contact-card__cat {
    width: min(280px, 80%);
    margin: 24px auto -30px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    flex: none;
  }

  .store-row {
    gap: 10px;
  }

  .store-badge img {
    height: 46px;
  }
}

@media (max-width: 420px) {
  .brand__word {
    font-size: 1.3rem;
  }

  .brand__mark {
    width: 44px;
  }

  .store-badge img {
    height: 43px;
  }

  .phone[data-pos="-1"] {
    transform: translateX(-32%) translateZ(-190px) rotateY(24deg);
  }

  .phone[data-pos="1"] {
    transform: translateX(32%) translateZ(-190px) rotateY(-24deg);
  }

  /* The address stays on one line while it fits (it is about 14.6 times the font size wide), never
     below 14px; past that, the <wbr> in the HTML breaks it before the "@". */
  .copy-chip {
    gap: 8px;
    padding: 8px 16px;
    font-size: clamp(14px, calc((100cqi - 58px) / 14.6), 17px);
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
  }
}
