:root {
  --background: #0a0a0a;
  --surface: #12140d;
  --surface-low: #0d0f08;
  --surface-card: #1a1c15;
  --surface-card-high: #292b23;
  --border: #34382d;
  --border-strong: #545a48;
  --text: #e9e8dc;
  --muted: #c5c8b4;
  --dim: #8f9380;
  --primary: #d3f683;
  --primary-soft: #b7d96a;
  --cyan: #82fded;
  --amber: #ffb95e;
  --container: 1440px;
  --page-pad: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.site-background-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--background);
  opacity: 0.28;
}

.site-background-motion::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 14%, rgba(211, 246, 131, 0.09), transparent 28%),
    radial-gradient(circle at 82% 54%, rgba(130, 253, 237, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.64));
}

.site-background-motion__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: rgba(13, 15, 8, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--container));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 130px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand__logo--dark {
  display: none;
}

.brand__logo--light {
  display: block;
}

.brand__text {
  display: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav__link,
.site-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.site-nav__link--active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.hero,
.portfolio-section,
.licensing-section,
.contact-section,
.site-footer,
.legal-hero,
.legal-content {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.portfolio-section,
.licensing-section,
.contact-section {
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  gap: 78px;
  align-items: center;
  min-height: 680px;
  padding: 86px var(--page-pad) 96px;
}

.hero__copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(211, 246, 131, 0.35);
}

.eyebrow--badge {
  margin-bottom: 28px;
  padding: 6px 10px;
  border: 1px solid #3f4835;
  background: rgba(18, 20, 13, 0.58);
}

.eyebrow--badge span {
  width: 8px;
  height: 8px;
}

.accent-text {
  color: var(--primary);
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 620px;
  font-size: 3.45rem;
}

h2 {
  font-size: 3.25rem;
}

.section-heading h2 {
  font-size: 2.75rem;
}

.hero__intro {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface-low);
}

.button--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-showcase {
  position: relative;
  min-height: 430px;
}

.hero-showcase--motion {
  display: grid;
  align-items: center;
  min-height: 520px;
}

.hero-motion {
  position: relative;
  width: min(100%, 700px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  background: var(--surface-low);
  isolation: isolate;
}

.hero-motion::before,
.hero-motion::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
}

.hero-motion::before {
  background:
    linear-gradient(90deg, var(--background) 0%, rgba(10, 10, 10, 0) 28%),
    linear-gradient(180deg, rgba(10, 10, 10, 0) 58%, var(--background) 100%);
}

.hero-motion::after {
  border: 1px solid rgba(84, 90, 72, 0);
  box-shadow: inset 0 0 120px rgba(10, 10, 10, 0.62);
}

.hero-motion__canvas,
.hero-motion__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-motion__canvas {
  display: block;
  z-index: 1;
}

.hero-motion__fallback {
  display: grid;
  place-items: center;
  z-index: 2;
  background:
    radial-gradient(circle at 52% 48%, rgba(211, 246, 131, 0.13), transparent 34%),
    radial-gradient(circle at 58% 58%, rgba(183, 217, 106, 0.12), transparent 42%),
    var(--surface-low);
}

.hero-motion.is-ready .hero-motion__fallback {
  display: none;
}

.hero-motion__ring,
.hero-motion__play,
.hero-motion__particle {
  position: absolute;
  display: block;
}

.hero-motion__ring {
  border: 2px solid rgba(211, 246, 131, 0.55);
  transform: rotate(24deg);
}

.hero-motion__ring--one {
  width: 42%;
  height: 42%;
}

.hero-motion__ring--two {
  width: 58%;
  height: 58%;
  opacity: 0.52;
  transform: rotate(-18deg);
}

.hero-motion__play {
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 34px solid var(--primary);
  filter: drop-shadow(0 0 24px rgba(211, 246, 131, 0.35));
  transform: translateX(4px);
}

.hero-motion__particle {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(211, 246, 131, 0.44);
}

.hero-motion__particle--one {
  left: 30%;
  top: 24%;
}

.hero-motion__particle--two {
  right: 26%;
  bottom: 28%;
}

.game-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
  overflow: hidden;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
}

.game-card__play {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.64);
  box-shadow: 0 0 28px rgba(211, 246, 131, 0.22);
}

.game-card__play::before {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--primary);
  content: "";
  transform: translateX(2px);
}

.game-card__genre {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-section {
  padding: 78px var(--page-pad) 92px;
  background: var(--surface-low);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  display: grid;
  min-height: 0;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.game-card:hover {
  border-color: rgba(211, 246, 131, 0.68);
  filter: saturate(1.05);
  transform: translateY(-2px);
}

.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-card-high);
  overflow: hidden;
}

.game-card__play {
  right: 14px;
  top: 14px;
  width: 42px;
  height: 36px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-card:hover .game-card__play {
  opacity: 1;
  transform: translateY(0);
}

.game-card__play::before {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 10px;
}

.game-card__body {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.game-card strong {
  font-size: 1.22rem;
  line-height: 1.12;
}

.licensing-section {
  padding: 84px var(--page-pad) 92px;
  background: var(--background);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.license-card,
.license-note {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-card);
}

.license-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: 26px;
}

.license-card__label {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.license-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.16;
}

.license-card p,
.license-note p {
  margin: 0;
  color: var(--muted);
}

.license-note {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
}

.license-note strong {
  font-size: 1.28rem;
  line-height: 1.22;
}

.contact-section {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 96px var(--page-pad) 108px;
  text-align: center;
}

.contact-section p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-email {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  padding: 0 var(--page-pad);
  background: var(--surface-low);
  border-top: 1px solid var(--border);
}

.site-footer div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  font-size: 18px;
}

.site-footer span {
  color: var(--dim);
  font-size: 12px;
}

.load-error {
  color: var(--amber);
}

.legal-page {
  background: var(--background);
}

.legal-hero {
  padding: 84px var(--page-pad) 58px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: 3.15rem;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.legal-content {
  padding: 58px var(--page-pad) 98px;
}

.legal-content article {
  display: grid;
  gap: 30px;
  max-width: 900px;
}

.legal-section {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

.legal-date {
  color: var(--dim);
  font-size: 0.92rem;
}

.legal-actions {
  margin-top: 38px;
}

@media (max-width: 1080px) {
  :root {
    --page-pad: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 60px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .section-heading h2 {
    font-size: 2.4rem;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .hero-showcase--motion {
    min-height: 420px;
  }

  .hero-motion {
    justify-self: center;
    width: min(100%, 560px);
  }

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

  .license-grid {
    grid-template-columns: 1fr;
  }

  .license-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    min-height: 64px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 14px;
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand__logo {
    width: 96px;
    height: 38px;
  }

  .brand__text {
    font-size: 16px;
  }

  .site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    width: auto;
    min-width: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    flex: 0 0 auto;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .site-nav__link--active {
    padding-bottom: 4px;
  }

  .hero {
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 52px;
  }

  .hero__intro {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .hero__actions {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-showcase {
    min-height: 0;
  }

  .hero-showcase--motion {
    margin-top: 8px;
  }

  .hero-motion {
    width: 100%;
    max-height: 350px;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .hero-motion::before {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 62%, var(--background) 100%);
  }

  .hero-motion::after {
    border-color: var(--border);
    box-shadow: inset 0 0 80px rgba(10, 10, 10, 0.58);
  }

  .contact-email {
    font-size: 1.35rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .game-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 5px;
  }

  .game-card__media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .game-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title genre";
    gap: 12px 16px;
    align-content: start;
    align-items: start;
    padding: 20px 24px 22px;
  }

  .game-card__play {
    left: 50%;
    top: 50%;
    right: auto;
    width: 72px;
    height: 66px;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .game-card__play::before {
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 16px;
  }

  .game-card:hover .game-card__play {
    transform: translate(-50%, -50%);
  }

  .game-card__genre {
    grid-area: genre;
    justify-self: end;
    padding: 0;
    background: transparent;
    color: var(--primary);
  }

  .game-card strong {
    grid-area: title;
    font-size: 1.5rem;
    line-height: 1.12;
  }

  .licensing-section {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .license-grid {
    gap: 14px;
  }

  .license-card {
    padding: 22px;
  }

  .license-note {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .contact-section {
    justify-items: start;
    padding-top: 62px;
    padding-bottom: 74px;
    text-align: left;
  }

  .portfolio-section,
  .licensing-section,
  .contact-section {
    scroll-margin-top: 76px;
  }

  .legal-hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .legal-hero h1 {
    font-size: 2.3rem;
  }

  .legal-content {
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .legal-section h2 {
    font-size: 1.28rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.3rem;
  }

  .site-nav {
    gap: 11px;
  }

  .brand__logo {
    width: 88px;
    height: 35px;
  }

  .site-nav__link {
    font-size: 9.5px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .hero-motion {
    max-height: 320px;
    border-radius: 6px;
  }

  .game-card strong {
    font-size: 1.25rem;
  }

  .game-card__body {
    padding: 18px 20px;
  }
}
