/* ---------- base ---------- */
:root {
  --bg: #070914;
  --panel: #0d1020;
  --line: #262a4a;
  --violet: #7c4dff;
  --violet2: #a78bfa;
  --text: #f3f4ff;
  --muted: #b4b8d6;
  color-scheme: dark;
}
html {
  box-sizing: border-box;
  scroll-padding-top: 70px;
  scroll-behavior: smooth;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a, img, svg, button { -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--violet2); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.12em;
}

/* ---------- header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 20, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #151831;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.fox { width: 30px; height: 30px; }
img.fox { object-fit: contain; }
.links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.links a { padding: 18px 0; position: relative; }
.links a.on { color: var(--violet2); }
.links a.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  background: var(--violet);
  border-radius: 3px;
}
.icons { display: flex; gap: 18px; font-size: 20px; align-items: center; }
.icons a { display: inline-flex; }
.icons button { background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; padding: 0; }
@media (min-width: 821px) { .icons { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(430px, 52vh, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(4, 3, 16, .93) 0%, rgba(4, 3, 16, .72) 40%, rgba(6, 4, 20, .3) 72%, rgba(6, 4, 20, .12) 100%),
    linear-gradient(180deg, rgba(7, 9, 20, .5) 0%, transparent 28%, transparent 58%, rgba(7, 9, 20, .85) 90%, #070914 100%),
    url("assets/hero_night.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.logo-word {
  font-weight: 900;
  font-size: clamp(42px, 8.5vw, 70px);
  letter-spacing: .5px;
  margin: 0 0 18px;
  line-height: 1;
}
h1 { font-size: clamp(26px, 4.6vw, 36px); line-height: 1.15; margin: 0 0 16px; }
.hero p { max-width: 430px; color: #c9cdec; font-size: 14.5px; margin: 0 0 26px; }

.tm { font-size: .42em; font-weight: 500; letter-spacing: 0; vertical-align: super; margin-left: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  border-bottom: 4px solid #2a0e7a;
  box-shadow: 0 5px 0 #2a0e7a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  cursor: pointer;
  position: relative;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #2a0e7a;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #2a0e7a, inset 0 2px 6px rgba(0, 0, 0, .4);
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
.title { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.title::before { content: ""; width: 30px; height: 3px; background: var(--violet); border-radius: 2px; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); }

/* ---------- games ---------- */
#games {
  background-image:
    linear-gradient(180deg, #070914 0, rgba(7, 9, 20, 0) 240px),
    linear-gradient(180deg, rgba(8, 11, 26, .86), rgba(10, 14, 32, .88)),
    url("assets/recycling_night.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 77, 255, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 18, 52, .92), rgba(13, 16, 32, .96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  animation: featIn .7s ease both;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
@keyframes featIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.shot {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  background: #060814;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 6, 16, .55)),
    radial-gradient(ellipse at 50% 120%, rgba(124, 77, 255, .18), transparent 60%);
  opacity: .5;
  pointer-events: none;
}
.shot-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}
.feature:hover .shot-img { transform: scale(1.05); filter: brightness(1.08); }

.info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px 28px 26px 0; }
.kicker { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--violet2); }
.info h3 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 32px); font-weight: 800; line-height: 1.15; }
.info p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.plats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.plats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 500;
  color: #d6d9f0;
}
.plats svg { width: 16px; height: 16px; color: var(--violet2); fill: currentColor; stroke: none; vertical-align: 0; }
.out {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 4px solid #2a0e7a;
  box-shadow: 0 4px 0 #2a0e7a;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.out:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 5px 0 #2a0e7a; }
.out:active { transform: translateY(4px); box-shadow: 0 0 0 #2a0e7a; }

/* ---------- about ---------- */
.about {
  padding: clamp(64px, 8vw, 110px) 0;
}
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.fox-big { position: relative; width: min(430px, 94%); aspect-ratio: 1; display: grid; place-items: center; margin: auto; }
.fox-big img { position: relative; display: block; width: 56%; }
.about h2.a-h { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.05; letter-spacing: .5px; margin: 0 0 4px; }
.about p { max-width: 560px; margin: 0 0 16px; color: #c6cbe8; font-size: 16.5px; line-height: 1.65; }
.about .btn { margin-top: 14px; padding: 15px 30px; font-size: 15px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid #151831; padding: 44px 0 32px; background: #060812; }
.ftop { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.fbrand p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.fbottom { display: flex; gap: 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid #151831; }
.fbottom a { font-size: 14px; color: var(--muted); transition: color .15s; }
.fbottom a:hover { color: var(--text); }
.soc { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 4px; }
.soc a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg);
  border-bottom: 4px solid var(--edge);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--ink, #fff);
  font-size: 20px;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.soc a:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge); }
.soc a:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.soc a[aria-label="X"]        { --bg: #2a2e35; --edge: #0b0c0f; }
.soc a[aria-label="YouTube"]  { --bg: #ff1f3d; --edge: #8f0f22; }
.soc a[aria-label="TikTok"]   { --bg: #fe2c55; --edge: #85142b; }
.soc a[aria-label="Discord"]  { --bg: #5865f2; --edge: #2b3499; }
.soc a[aria-label="Game Jolt"]{ --bg: #ccff00; --edge: #6f8c00; --ink: #111; }
.soc a[aria-label="Bluesky"]  { --bg: #1185fe; --edge: #0a4a94; }
.soc svg { width: 1em; height: 1em; vertical-align: 0; }
.soc svg path { stroke: none; }

/* ---------- game page ---------- */
.game-hero {
  min-height: clamp(380px, 48vh, 480px);
  background-image:
    linear-gradient(90deg, rgba(4, 3, 16, .95) 0%, rgba(4, 3, 16, .75) 45%, rgba(6, 4, 20, .25) 100%),
    linear-gradient(180deg, transparent 60%, #070914 100%),
    url("assets/shots/terminal.jpg?v=20261018");
}
.game-hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 900; }
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--muted); transition: color .15s; }
.back:hover { color: var(--text); }
.game-head { display: flex; align-items: center; gap: 36px; }
.game-icon { flex: none; width: 160px; height: 160px; border-radius: 28px; border: 1px solid var(--line); object-fit: cover; }
.game-hero p { max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags li { padding: 6px 14px; border: 1px solid rgba(124, 77, 255, .35); border-radius: 6px; background: rgba(31, 27, 77, .7); font-size: 12px; font-weight: 500; color: #cfc6ff; }
.lead { margin: 0 0 16px; color: #c6cbe8; font-size: 17px; line-height: 1.7; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.glance > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.glance dt, .reqs dt { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 8px 0 0; font-size: 15px; }
.glance .plats { margin: 0; }
.story { max-width: 760px; margin-bottom: 40px; }
.story h3, .reqs h3 { margin: 0 0 14px; font-size: 20px; }
.sub { margin: 0 0 18px; font-size: 20px; }
.sub span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.cards h4 { margin: 0 0 10px; font-size: 17px; }
.cards p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reqs > div { padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.reqs dl { margin: 0; }
.reqs dt { margin-top: 14px; }
.reqs dd { margin: 4px 0 0; font-size: 14.5px; color: #d6d9f0; }
.note { max-width: 760px; margin: 18px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.devlog { position: relative; display: block; max-width: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #060814; }
.devlog img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .7; transition: opacity .2s, transform .5s; }
.devlog:hover img { opacity: .9; transform: scale(1.03); }
.play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 28px; }
.cap { position: absolute; left: 16px; bottom: 14px; font-size: 14px; font-weight: 700; }
.faq { max-width: 760px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 500; }
.faq details[open] summary { color: var(--violet2); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: #060814; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .links { display: none; }
  .links.open {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
    background: #0a0c1c;
    border-bottom: 1px solid var(--line);
  }
  .links.open a { padding: 12px 0; }
  .links a.on::after { bottom: 4px; right: auto; width: 40px; }
  .hero {
    background-image:
      linear-gradient(90deg, rgba(4, 3, 16, .9), rgba(4, 3, 16, .7) 55%, rgba(6, 4, 20, .42)),
      linear-gradient(180deg, rgba(7, 9, 20, .5), transparent 30%, transparent 58%, rgba(7, 9, 20, .85) 90%, #070914 100%),
      url("assets/hero_night.png");
  }
  .feature, .about-grid, .shot-grid, .cards, .reqs { grid-template-columns: 1fr; }
  .game-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .game-icon { width: 96px; height: 96px; border-radius: 20px; }
  .info { padding: 8px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.fbrand .tm { font-size: 20px; font-weight: 500; line-height: 1; margin-left: 2px; vertical-align: top; }

/* Research section (home page) */
.research p { max-width: 720px; margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.research-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn .brand { width: 18px; height: 18px; font-size: 17px; line-height: 18px; text-shadow: none; }
.btn-hf { background: #ffd21e; color: #1a1a1a; text-shadow: none; border-bottom-color: #b38a00; box-shadow: 0 5px 0 #b38a00; }
.btn-hf:hover { box-shadow: 0 6px 0 #b38a00; }
.btn-hf:active { box-shadow: 0 1px 0 #b38a00, inset 0 2px 6px rgba(0, 0, 0, .3); }

/* Official accounts section (home page) */
.official p { max-width: 720px; margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.official strong { color: var(--text); }
.oa-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.oa-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); transition: border-color .15s; }
.oa-list a:hover { border-color: var(--violet2); }
.oa-site { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--violet2); }
.oa-handle { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.official .oa-warn { font-size: 14px; color: #ffb45e; }
