:root {
  --bg: #070920;
  --bg-deep: #04051a;
  --panel: rgba(16, 18, 52, 0.72);
  --panel-solid: #10123a;
  --text: #eef2ff;
  --muted: #a9b0d6;
  --cyan: #5ee7ff;
  --blue: #4f8bff;
  --violet: #a77bff;
  --magenta: #d06bff;
  --line: rgba(140, 150, 255, 0.18);
  --sage: #7fae9c;
  --yellow: #f6c453;
  --neon: linear-gradient(110deg, var(--cyan), var(--blue) 45%, var(--violet) 75%, var(--magenta));
  --glow: 0 0 18px rgba(94, 231, 255, 0.25), 0 0 42px rgba(167, 123, 255, 0.18);
  --container: 1180px;
  --display: Montserrat, "Arial Black", sans-serif;
  --tech: Orbitron, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(79, 139, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 65%, rgba(167, 123, 255, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.svg-defs { position: absolute; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px; background: var(--cyan); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.section { position: relative; padding: 110px 0; }
.text-gradient { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Neon frame: gradient border with a soft glow */
.neon-frame { position: relative; border-radius: 16px; background: var(--panel); box-shadow: var(--glow); }
.neon-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--neon);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #1d5fff, #6a3dff 60%, #b44dff);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(94, 231, 255, 0.7), 0 0 26px rgba(106, 61, 255, 0.55);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 0 0 1.5px var(--cyan), 0 0 36px rgba(140, 90, 255, 0.75); }
.button-arrow { clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); border-radius: 0; padding-inline: 38px; }
.button-arrow span { font-size: 30px; line-height: 0.7; font-weight: 400; }
.button-ghost { background: rgba(10, 12, 40, 0.6); box-shadow: inset 0 0 0 1.5px rgba(167, 123, 255, 0.65); border-radius: 999px; }
.button-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 22px rgba(94, 231, 255, 0.3); }
.button-small { min-height: 40px; padding: 8px 20px; font-size: 14px; border-radius: 999px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Section headings: spaced label between two glowing lines, as on the poster */
.section-heading { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-heading p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.lined-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--cyan);
  font-family: var(--tech);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(94, 231, 255, 0.45);
}
.lined-heading::before, .lined-heading::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, var(--blue)); }
.lined-heading::after { transform: scaleX(-1); }
.drag-note { color: var(--violet); white-space: nowrap; }

/* Header */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 70px; transition: background 0.25s, box-shadow 0.25s; }
.site-header.scrolled { background: rgba(6, 7, 28, 0.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 0.02em; }
.brand-name span { margin-left: 4px; font-family: var(--tech); font-weight: 700; font-size: 12px; letter-spacing: 0.3em; color: var(--violet); }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--cyan); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; background: transparent; border: 0; cursor: pointer; }
.menu-line { position: absolute; left: 10px; width: 24px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.menu-line:nth-child(1) { top: 14px; }
.menu-line:nth-child(2) { top: 21px; }
.menu-line:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(720px, 100svh, 1000px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
/* Poster artwork band across the top, fading into the page */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: max(31vw, 400px);
  background:
    linear-gradient(180deg, rgba(7, 9, 32, 0.35), rgba(7, 9, 32, 0.1) 30%, rgba(7, 9, 32, 0.55) 70%, var(--bg)),
    url("../assets/branding/hero-art.webp") center top / cover no-repeat;
}
.hero-grid-floor {
  position: absolute;
  z-index: -1;
  inset: auto -20% 0;
  height: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(79, 139, 255, 0.22) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(79, 139, 255, 0.22) 0 1px, transparent 1px 70px);
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask: linear-gradient(0deg, #000 10%, transparent 85%);
  mask: linear-gradient(0deg, #000 10%, transparent 85%);
}
.pixels i { position: absolute; z-index: -1; width: 18px; height: 18px; background: var(--violet); opacity: 0.55; box-shadow: 0 0 14px rgba(167, 123, 255, 0.7); }
.pixels i:nth-child(1) { top: 22%; left: 8%; }
.pixels i:nth-child(2) { top: calc(22% + 18px); left: calc(8% + 18px); background: var(--blue); }
.pixels i:nth-child(3) { top: 34%; right: 9%; width: 24px; height: 24px; }
.pixels i:nth-child(4) { top: calc(34% + 24px); right: calc(9% - 24px); width: 24px; height: 24px; background: var(--blue); opacity: 0.35; }
.pixels i:nth-child(5) { top: 62%; left: 14%; width: 12px; height: 12px; background: var(--blue); }
.pixels i:nth-child(6) { top: 70%; right: 16%; width: 14px; height: 14px; background: var(--magenta); opacity: 0.4; }
.pixels i:nth-child(7) { top: 15%; right: 30%; width: 10px; height: 10px; }
.pixels i:nth-child(8) { top: 50%; left: 4%; width: 22px; height: 22px; opacity: 0.25; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Emji, the mascot: scaled evenly only, never boxed, recoloured or mirrored.
   The sage glow follows his outline so he reads on the dark background. */
.emji { display: block; height: auto; filter: drop-shadow(0 0 22px rgba(127, 174, 156, 0.35)); user-select: none; }
.hero-title-row { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px); }
.emji-hero { flex: none; width: clamp(240px, 22vw, 300px); aspect-ratio: 1; object-fit: contain; background: transparent; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark-top {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 168px);
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffffff 0%, #eef6ff 38%, #8deeff 62%, #3aa8ff 85%, #5b6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(94, 231, 255, 0.35));
}
.wordmark-bottom {
  margin-top: 0.08em;
  padding-left: 0.5em;
  font-family: var(--tech);
  font-weight: 700;
  font-size: clamp(34px, 6.6vw, 86px);
  letter-spacing: 0.5em;
  background: linear-gradient(100deg, #7c4dff, #a77bff 45%, #d06bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(167, 123, 255, 0.5));
}
.spaced-label { margin-top: 22px; padding-left: 0.6em; font-family: var(--tech); font-size: clamp(11px, 1.6vw, 17px); font-weight: 500; letter-spacing: 0.6em; text-transform: uppercase; }
.glow-rule { display: block; width: 130px; height: 3px; margin: 20px 0 22px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 14px var(--violet); }
.hero-tagline { max-width: 640px; font-size: clamp(18px, 2.2vw, 25px); line-height: 1.45; color: #dfe4ff; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.location { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--muted); font-size: 15px; letter-spacing: 0.14em; }
.location svg, .contact-line svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; }
.trust-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.trust-bar > span { font-family: var(--tech); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet); }
.trust-bar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.trust-bar li { font-family: var(--display); font-weight: 800; font-size: 18px; color: rgba(238, 242, 255, 0.78); }

/* About */
.about { padding-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 56px; max-width: 980px; }
.emji-about { width: clamp(180px, 22vw, 260px); }
.lined-heading-left::before { display: none; }
.about-copy p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.emji-callout { padding: 16px 20px; border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; background: rgba(127, 174, 156, 0.08); color: var(--text) !important; }
.emji-callout strong { color: var(--yellow); }

/* Services */
.services { padding-top: 70px; }
.emji-coding { width: clamp(140px, 14vw, 180px); margin: 0 auto 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  padding: 40px 26px 30px;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid rgba(120, 140, 255, 0.35);
  border-radius: 16px;
  text-align: center;
  background: var(--panel-solid);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.service-art, .service-card-code::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.7) hue-rotate(10deg);
  transition: opacity 0.3s, transform 0.5s;
}
.service-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 46, 0.55), rgba(10, 10, 40, 0.92) 70%); }
.service-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.service-card:hover .service-art { opacity: 0.5; transform: scale(1.05); }
.service-card-code::before {
  content: "";
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(94, 231, 255, 0.14) 22px 24px),
    linear-gradient(90deg, transparent 10%, rgba(167, 123, 255, 0.25) 10% 40%, transparent 40% 52%, rgba(94, 231, 255, 0.2) 52% 72%, transparent 72%);
  opacity: 0.6;
}
.service-icon { width: 84px; height: 84px; margin-bottom: 22px; fill: none; stroke: url(#neon); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(94, 231, 255, 0.55)); }
.service-card h3 { font-size: 22px; font-weight: 700; }
.service-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Games carousel */
.carousel-stage { position: relative; height: 430px; overflow: hidden; perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; }
.carousel-stage.is-dragging { cursor: grabbing; }
.carousel-track { position: absolute; top: 30px; left: 50%; width: 0; height: 100%; transform-style: preserve-3d; }
.carousel-card {
  position: absolute;
  top: 0;
  left: -130px;
  width: 260px;
  height: 360px;
  overflow: hidden;
  border: 1.5px solid rgba(120, 140, 255, 0.35);
  border-radius: 16px;
  background: #05061a;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), filter 0.45s, border-color 0.3s, box-shadow 0.3s;
}
.carousel-stage.is-dragging .carousel-card { transition: none; }
.carousel-card.is-center { border-color: var(--cyan); box-shadow: var(--glow); }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel-label { position: absolute; inset: auto 0 0; padding: 50px 18px 16px; background: linear-gradient(180deg, transparent, rgba(5, 6, 26, 0.95)); font-size: 19px; font-weight: 700; }
.carousel-label small { display: block; color: var(--cyan); font-size: 13px; font-weight: 500; }

/* Process */
.banner {
  position: relative;
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 20px 40px;
  text-align: center;
  font-size: clamp(17px, 2.2vw, 23px);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  background: linear-gradient(110deg, rgba(29, 95, 255, 0.25), rgba(167, 123, 255, 0.25));
  box-shadow: inset 0 0 0 1.5px rgba(94, 231, 255, 0.55);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px; border-top: 2px solid; border-image: var(--neon) 1; background: linear-gradient(180deg, rgba(79, 139, 255, 0.08), transparent); }
.steps span { font-family: var(--tech); font-size: 13px; color: var(--violet); letter-spacing: 0.2em; }
.steps h3 { margin-top: 6px; font-size: 22px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.tech-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
.tech-row li { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--tech); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* FAQ */
.faq-inner { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color 0.2s; }
.faq-list details[open] { border-color: rgba(94, 231, 255, 0.55); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; padding: 20px 24px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--cyan); font-family: var(--tech); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact-copy { position: relative; }
.contact-copy h2 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
.contact-copy > p { margin: 18px 0 30px; color: var(--muted); font-size: 18px; }
.contact-line { display: flex; align-items: center; gap: 14px; width: fit-content; margin-top: 14px; padding: 12px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 17px; }
a.contact-line:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 5, 26, 0.75);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form select option { background: var(--panel-solid); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.18); }
.form-wide { grid-column: 1 / -1; }
/* Emji stands left of the button so his pointing arm aims at it */
.form-send { display: flex; align-items: center; gap: 4px; }
.emji-point { flex: none; width: 108px; margin: -18px 0 -10px -6px; }
.form-send .button { flex: 1; }
.form-note { color: var(--muted); font-size: 13px; text-align: center; }
.form-note[data-state="success"] { color: var(--sage); font-size: 15px; font-weight: 600; }
.form-note[data-state="error"] { color: var(--yellow); font-size: 15px; font-weight: 600; }
/* Hidden spam trap: real visitors never see or tick it */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button[disabled] { opacity: 0.7; cursor: wait; }

/* Footer */
.footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer nav a { color: var(--muted); font-size: 15px; }
.footer nav a:hover { color: var(--cyan); }
.footer p { color: var(--muted); font-size: 14px; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--muted); transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .fill { fill: currentColor; stroke: none; }
.footer-parent { color: var(--text); font-weight: 600; }
.footer-parent:hover { color: var(--cyan); }

/* Games carousel cards are links */
.carousel-card { display: block; color: inherit; }
.carousel-more { margin-top: 10px; text-align: center; }

/* Game cards (All games page, More games) */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.game-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1.5px solid rgba(120, 140, 255, 0.35); border-radius: 16px; background: #05061a; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.game-card:hover img { transform: scale(1.04); }
.game-card-label { position: absolute; inset: auto 0 0; padding: 46px 18px 14px; background: linear-gradient(180deg, transparent, rgba(5, 6, 26, 0.95)); font-size: 19px; font-weight: 700; }
.game-card-label small { display: block; color: var(--cyan); font-size: 13px; font-weight: 500; }
.page-games .section-heading h1 { justify-content: center; }
.genre-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -16px 0 40px; }
.genre-filter button { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.genre-filter button span { margin-left: 4px; font-family: var(--tech); font-size: 12px; color: var(--violet); }
.genre-filter button:hover { border-color: rgba(94, 231, 255, 0.5); color: var(--text); }
.genre-filter button.active { border-color: var(--cyan); background: linear-gradient(110deg, rgba(29, 95, 255, 0.28), rgba(167, 123, 255, 0.2)); color: var(--text); box-shadow: var(--glow); }
/* Featured projects: first card large, the rest smaller beside and below it */
.featured-heading { margin-top: 8px; }
.all-heading { margin-top: 56px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 20px; margin-bottom: 8px; }
.featured-card { position: relative; display: block; overflow: hidden; border: 1.5px solid rgba(120, 140, 255, 0.4); border-radius: 18px; background: #05061a; isolation: isolate; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.featured-card.is-lead { grid-column: span 2; grid-row: span 2; border-color: var(--cyan); box-shadow: var(--glow); }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.5s; }
.featured-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 26, 0.92)); }
.featured-card.is-lead::after { background: linear-gradient(180deg, transparent 25%, rgba(5, 6, 26, 0.75) 55%, rgba(5, 6, 26, 0.96)); }
.featured-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.featured-card:hover img { transform: scale(1.04); }
.featured-meta { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-tags span { padding: 3px 10px; border-radius: 999px; background: rgba(127, 174, 156, 0.22); border: 1px solid rgba(127, 174, 156, 0.55); color: #d6ebe2; font-size: 12px; font-weight: 600; }
.featured-meta strong { font-size: 19px; line-height: 1.2; }
.featured-card.is-lead .featured-meta { padding: 26px 28px; gap: 10px; }
.featured-card.is-lead .featured-meta strong { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 38px); }
.featured-summary { max-width: 560px; color: #d3d8f2; font-size: 16px; }
.featured-cta { color: var(--cyan); font-size: 14px; font-weight: 700; }
.featured-card:not(.is-lead) .featured-cta { display: none; }
.games .featured-grid { margin-top: 8px; }
.featured-grid.is-wide { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; }
.originals-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); grid-auto-rows: 270px; }
.original-card { border-color: rgba(246, 196, 83, 0.55); }
.original-card:hover { border-color: var(--yellow); box-shadow: 0 0 26px rgba(246, 196, 83, 0.35); }
.original-card .featured-meta strong { font-size: 21px; }
.original-type { color: var(--yellow); font-size: 14px; font-weight: 600; }
.featured-spaced { margin-top: 52px; }
.home-subheading { display: flex; align-items: center; gap: 16px; margin: 40px 0 18px; font-family: var(--tech); font-size: 18px; letter-spacing: 0.2em; color: var(--yellow); }
.home-subheading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(246, 196, 83, 0.5), transparent); }
.more-heading { margin: 56px 0 0; text-align: center; color: var(--muted); font-family: var(--tech); font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase; }
.year-group + .year-group { margin-top: 44px; }
.year-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-family: var(--tech); font-size: 22px; letter-spacing: 0.2em; color: var(--yellow); }
.year-heading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(246, 196, 83, 0.5), transparent); }
.game-card[hidden], .year-group[hidden] { display: none; }
.games-index { padding-top: 120px; }

/* Game page */
.game-hero { position: relative; padding: 110px 0 60px; overflow: hidden; isolation: isolate; }
.game-hero-bg { position: absolute; z-index: -1; inset: -40px; background: center / cover no-repeat; filter: blur(40px) brightness(0.35) saturate(1.2); }
.game-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg)); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.back-link:hover { color: var(--cyan); }
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.game-cover { overflow: hidden; }
.game-cover img { width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips li { padding: 5px 14px; border: 1px solid rgba(127, 174, 156, 0.5); border-radius: 999px; background: rgba(127, 174, 156, 0.1); color: #cfe3da; font-size: 13px; font-weight: 600; }
.game-info h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; }
.game-description { margin-top: 18px; color: #d3d8f2; font-size: 18px; }
.game-description p + p { margin-top: 12px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.game-video, .game-gallery, .more-games { padding: 50px 0; }
.game-video .lined-heading, .game-gallery .lined-heading, .more-games .lined-heading { margin-bottom: 30px; }
.game-video-frame { width: 100%; max-width: 960px; margin: 0 auto; overflow: hidden; }
.game-video-frame video { width: 100%; max-height: 70vh; border-radius: 16px; background: #000; }
.game-video-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.game-video-item { margin: 0; }
.game-video-item.is-main, .game-video-list > .game-video-frame { grid-column: 1 / -1; }
.game-video-item figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; }
.game-contribution { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; background: rgba(127, 174, 156, 0.08); }
.game-contribution h2 { font-family: var(--tech); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }
.game-contribution ul { display: grid; gap: 8px; margin-top: 12px; }
.game-contribution li { position: relative; padding-left: 22px; color: #dfe4ff; }
.game-contribution li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--yellow); box-shadow: 0 0 8px rgba(246, 196, 83, 0.6); }
.game-video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { padding: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1.5px solid var(--line); border-radius: 12px; background: #05061a; cursor: zoom-in; transition: border-color 0.2s, box-shadow 0.2s; }
.gallery-item:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 4, 18, 0.9); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: var(--glow); }
.lightbox button { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(6, 7, 28, 0.85); box-shadow: inset 0 0 0 1.5px rgba(94, 231, 255, 0.6); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close { top: -16px; right: -16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }
.more-games-link { margin-top: 30px; text-align: center; }
.game-cta { padding: 40px 0 90px; }
.game-cta-inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: left; }
.game-cta h2 { font-family: var(--display); font-weight: 900; font-size: 28px; }
.game-cta p { color: var(--muted); }

/* Team */
.team { padding-bottom: 20px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.team-card { flex: 0 1 250px; padding: 26px 22px 24px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--panel); text-align: center; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.team-card:hover { transform: translateY(-4px); border-color: rgba(127, 174, 156, 0.7); box-shadow: 0 0 26px rgba(127, 174, 156, 0.25); }
.team-photo, .team-avatar { width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; }
.team-photo { object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sage); }
.team-avatar { position: relative; }
.team-avatar img { width: 100%; height: 100%; }
.team-avatar span { position: absolute; right: -4px; bottom: 2px; min-width: 40px; padding: 4px 8px; border-radius: 999px; background: var(--yellow); color: #141a1f; font-family: var(--tech); font-size: 13px; font-weight: 700; }
.team-card h3 { font-size: 20px; }
.team-role { margin-top: 4px; color: var(--sage); font-weight: 600; }
.team-line { margin-top: 10px; color: var(--muted); font-size: 15px; }
.team-links { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-size: 14px; }
.team-links a { color: var(--cyan); }
.team-card-link { display: block; color: inherit; }
.team-cta { display: inline-block; margin-top: 14px; padding: 7px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(94, 231, 255, 0.55); color: var(--cyan); font-size: 14px; font-weight: 600; transition: background 0.2s; }
.team-card-link:hover .team-cta { background: rgba(94, 231, 255, 0.12); }

/* Internship */
.intern-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.intern-copy > p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.intern-copy h3 { margin-top: 28px; font-size: 20px; }
.intern-status { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(169, 176, 214, 0.15); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.intern-status.is-open { background: rgba(246, 196, 83, 0.14); color: var(--yellow); }
.intern-roles { display: grid; gap: 10px; margin-top: 14px; }
.intern-roles li { position: relative; padding-left: 26px; }
.intern-roles li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--sage); box-shadow: 0 0 10px rgba(127, 174, 156, 0.7); }
.intern-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 0; }
.intern-facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.intern-facts dt { color: var(--violet); font-family: var(--tech); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.intern-facts dd { margin: 4px 0 0; }
.intern-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px; }
.intern-form h3 { grid-column: 1 / -1; font-family: var(--display); font-weight: 900; font-size: 26px; }
.intern-form label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.intern-form input, .intern-form select, .intern-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: rgba(4, 5, 26, 0.75); color: var(--text); font-size: 16px; }
.intern-form select option { background: var(--panel-solid); }
.intern-form input:focus, .intern-form select:focus, .intern-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.18); }
.intern-closed { padding: 34px; text-align: center; }
.emji-think { width: 150px; margin: 0 auto 14px; }
.intern-closed h3 { font-size: 24px; }
.intern-closed p { margin-top: 10px; color: var(--muted); }
.intern-closed a { color: var(--cyan); }

/* 404 page */
.not-found { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 110px 16px 60px; text-align: center; }
.emji-shock { width: clamp(170px, 24vw, 240px); }
.not-found-code { font-family: var(--tech); font-size: 15px; letter-spacing: 0.5em; color: var(--yellow); }
.not-found h1 { max-width: 640px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; }
.not-found h1 + p { margin-bottom: 14px; color: var(--muted); font-size: 18px; }

/* Tablet */
@media (max-width: 960px) {
  .section { padding: 84px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .game-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .intern-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-title-row { flex-direction: column-reverse; gap: 0; }
  .emji-hero { width: clamp(150px, 30vw, 220px); }
  .about-grid { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
  .about-copy .lined-heading-left::before { display: block; }
  .emji-callout { border-left: 0; border-top: 3px solid var(--sage); border-radius: 0 0 12px 12px; }
}

/* Mobile */
@media (max-width: 720px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: fixed; inset: 70px 0 0; display: flex; flex-direction: column; gap: 6px; padding: 28px 16px; background: rgba(6, 7, 28, 0.97); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; }
  .site-header:has(.mobile-nav.open) { background: rgba(6, 7, 28, 0.97); }
  .hero { padding-top: 96px; }
  .emji-hero { width: 140px; }
  .emji-about { width: 170px; }
  .emji-point { width: 76px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-card-label { padding: 36px 12px 10px; font-size: 15px; }
  .game-card-label small { font-size: 12px; }
  .game-hero { padding-top: 90px; }
  .game-actions .button { flex: 1 1 100%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-video-list { grid-template-columns: 1fr; }
  .featured-grid, .featured-grid.is-wide, .originals-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .featured-card.is-lead { grid-row: span 2; }
  .featured-card.is-lead .featured-meta { padding: 16px; }
  .featured-summary { display: none; }
  .featured-meta { padding: 10px 12px; }
  .featured-meta strong { font-size: 15px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -54px; right: 0; }
  .game-cta-inner { flex-direction: column; text-align: center; }
  .team-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; justify-content: start; }
  .team-card { scroll-snap-align: center; }
  .intern-facts { grid-template-columns: 1fr; }
  .intern-form { grid-template-columns: 1fr; padding: 22px; }
  .pixels i:nth-child(n+5) { display: none; }
  .wordmark-bottom { letter-spacing: 0.38em; padding-left: 0.38em; }
  .spaced-label { letter-spacing: 0.38em; padding-left: 0.38em; }
  .hero-tagline br { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .button { font-size: 16px; }
  .trust-bar { margin-top: 44px; }
  .trust-bar li { font-size: 16px; }
  .lined-heading { gap: 14px; letter-spacing: 0.24em; }
  .section-heading { margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 26px 12px 20px; }
  .service-icon { width: 56px; height: 56px; margin-bottom: 14px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { display: none; }
  .carousel-stage { height: 380px; }
  .carousel-card { left: -100px; width: 200px; height: 290px; }
  .banner { padding: 18px 26px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .footer-row { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
