@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #100e0b;
  --panel: #1b1712;
  --ink: #fff0d5;
  --muted: #b7a992;
  --orange: #ff8a00;
  --line: #403426;
  --lime: #d0fc55;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 95% 15%, #3a241340, transparent 45%), var(--bg);
  color: var(--ink);
  font:
    16px/1.6 "DM Sans",
    sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.btn {
  font:
    800 14px/1.2 "DM Sans",
    sans-serif;
  letter-spacing: 0.035em;
  border: 1px solid var(--line);
  background: #211b14;
  color: var(--ink);
  padding: 17px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover,
.btn:hover {
  background: #382a1c;
  transform: translateY(-2px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.orange {
  background: var(--orange);
  color: #160d03;
  border-color: var(--orange);
}
.orange:hover {
  background: #ffab36;
}
.wide {
  width: 100%;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  object-fit: contain;
}
.wrap {
  max-width: 1320px;
  width: calc(100% - 100px);
  margin: auto;
}
.nav {
  position: sticky;
  top: 16px;
  margin: 16px 32px 0;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #100e0bef;
  backdrop-filter: blur(15px);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    900 26px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px;
  height: 45px;
}
.brand span {
  color: var(--orange);
  font-size: 13px;
}
.nav nav {
  display: flex;
  gap: 23px;
  margin: auto;
}
.nav nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.nav nav a:hover {
  color: var(--orange);
}
.social {
  display: flex;
  gap: 8px;
}
.social button {
  padding: 14px 13px;
  font-size: 12px;
}
.menu {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 70px;
  padding: 82px 0 90px;
  align-items: center;
}
.eyebrow {
  font:
    700 12px/1.5 "DM Sans",
    sans-serif;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 24px;
}
.eyebrow span {
  color: var(--orange);
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin: 0 12px 4px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.91;
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(80px, 8.7vw, 138px);
}
h2 {
  font-size: clamp(52px, 5.5vw, 84px);
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}
em {
  font-style: normal;
  color: var(--orange);
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.lead {
  font-size: 21px;
  color: var(--muted);
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hero .actions .btn {
  font-size: 12px;
}
.micro {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 16px 0 0;
}
.specimen {
  position: relative;
  border: 1px solid #72512f;
  border-radius: 24px;
  background: linear-gradient(145deg, #2a1e12, #15120f);
  padding: 20px;
  transform: rotate(2deg);
  box-shadow: 18px 18px 0 #251a104d;
}
.specimen:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 65px;
  height: 65px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  border-radius: 24px 0 0;
}
.filehead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 11px/1.5 monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 7px 4px 18px;
}
.filehead span {
  color: var(--orange);
}
.hero-art {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  isolation: isolate;
  border-radius: 15px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #ff8a0008 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #ff8a0008 40px),
    #100d09;
  overflow: hidden;
}
.hero-art img {
  height: 420px;
  max-width: 93%;
  position: relative;
  animation: float 5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border: 1px solid var(--orange);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  box-shadow:
    0 0 80px #ff8a0019,
    inset 0 0 60px #ff8a0010;
}
.sticker {
  position: absolute;
  right: 10px;
  top: 20px;
  z-index: 2;
  background: var(--lime);
  color: #142003;
  font-weight: 900;
  font-size: 12px;
  padding: 10px;
  transform: rotate(7deg);
  box-shadow: 4px 4px 0 #956012;
}
dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 5px 5px;
  gap: 14px;
}
dt {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
dd {
  margin: 5px 0;
  font-size: 12px;
  font-weight: 800;
}
.ticker {
  overflow: hidden;
  background: var(--orange);
  color: #1b1106;
  padding: 15px 0;
  transform: rotate(-1deg);
  font:
    900 22px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.08em;
}
.ticker > div {
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  width: max-content;
}
.section {
  padding-top: 110px;
  padding-bottom: 65px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}
.section-title h2 {
  margin: 0;
}
.section-title > p {
  color: var(--muted);
  max-width: 340px;
}
.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.preview-panel {
  align-self: start;
  position: sticky;
  top: 115px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
}
.canvas-wrap {
  position: relative;
  background: #0d0c09;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}
.live {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--muted);
  font: 11px monospace;
  letter-spacing: 0.1em;
}
.print-id {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 11px monospace;
  padding: 17px 0;
  color: var(--muted);
}
.print-id b {
  color: var(--ink);
}
.preview-panel .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.controls {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.control-heading {
  font-size: 12px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.control-heading span {
  color: var(--orange);
}
fieldset {
  border: 0;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  min-width: 0;
}
legend {
  float: left;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.07em;
  margin-bottom: 13px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
}
.chips button {
  font-size: 12px;
  padding: 10px 13px;
  font-weight: 600;
}
.chips button[aria-pressed="true"] {
  background: var(--orange);
  color: #160d03;
  border-color: var(--orange);
}
label {
  display: block;
  font-size: 14px;
  margin-top: 16px;
}
input[type="text"],
input:not([type]) {
  width: 100%;
  font:
    16px "DM Sans",
    sans-serif;
  border: 1px solid #66503a;
  background: #100e0b;
  color: var(--ink);
  border-radius: 6px;
  padding: 12px;
  margin: 7px 0;
}
input[type="range"] {
  accent-color: var(--orange);
  min-width: 0;
  cursor: pointer;
}
.lore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.story-item {
  display: flex;
  gap: 20px;
  padding-top: 25px;
}
.story-item > span {
  color: var(--orange);
  font: 14px monospace;
}
.story-item p {
  color: var(--muted);
  font-size: 15px;
}
.lore-player {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 18px;
}
.story-screen {
  position: relative;
  background: #382616;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  overflow: hidden;
}
.story-screen img {
  width: 90%;
  height: 90%;
}
.story-screen p {
  position: absolute;
  bottom: 0;
  background: #100e0be0;
  width: 100%;
  text-align: center;
  font-weight: 800;
  padding: 16px;
  margin: 0;
  font-size: 12px;
}
.story-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.story-controls button {
  font-size: 12px;
  padding: 10px;
}
.story-controls input {
  flex: 1;
  width: 50px;
}
.crew {
  background: #21180f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 60px;
  padding-bottom: 90px;
}
.crew > div > p:not(.eyebrow) {
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.gallery button {
  display: flex;
  flex-direction: column;
  padding: 15px;
  background: #130f0b;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
}
.gallery span {
  align-self: start;
  font-size: 11px;
  margin: 12px 0 0;
  letter-spacing: 0.08em;
}
.machine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.machine p,
.machine small {
  color: var(--muted);
}
.machine small {
  font-size: 12px;
}
.machine-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 28px;
}
.machine-box .micro {
  margin: 0;
}
#signal {
  padding: 40px 0 25px;
  min-height: 230px;
}
#signal > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 15px;
}
#signal strong {
  display: block;
  font:
    900 44px/0.95 "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--lime);
}
#signal p {
  font-size: 14px;
  margin: 15px 0 0;
}
.contract {
  text-align: center;
}
.address-box {
  max-width: 750px;
  margin: 30px auto 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  display: grid;
  gap: 15px;
  background: var(--panel);
}
.address-box > span {
  font-size: 12px;
  color: var(--orange);
  font-weight: 800;
}
.address-box code {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.address-box button {
  justify-self: center;
}
.contract > p:last-child {
  font-size: 14px;
  color: var(--muted);
}
.closing {
  text-align: center;
  padding: 95px 0 100px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.closing h2 {
  font-size: clamp(55px, 6vw, 95px);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer > span {
  font-size: 12px;
  color: var(--muted);
}
footer button {
  padding: 10px;
  font-size: 12px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: var(--orange);
  color: #000;
  padding: 15px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #1b1106;
  border-radius: 9px;
  padding: 13px 20px;
  z-index: 100;
  opacity: 0;
  max-width: 90%;
  text-align: center;
  font-size: 14px;
  transition: 0.2s;
}
#toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  max-width: 90vw;
  width: 500px;
  border-radius: 15px;
  padding: 20px;
}
dialog::backdrop {
  background: #000c;
}
dialog img {
  display: block;
  max-height: 65vh;
  margin: auto;
}
dialog > a {
  display: flex;
}
#close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 9px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.game-section {
  padding-top: 65px;
}
.game-board,
.game-sidebar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.game-hud {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.game-hud span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.game-hud b {
  font:
    800 25px "Barlow Condensed",
    Impact,
    sans-serif;
}
.game-stage {
  position: relative;
  background: #120f09;
}
.game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #100e0be8;
  text-align: center;
  padding: 25px;
}
.game-overlay[hidden] {
  display: none;
}
.game-overlay h2 {
  font-size: 60px;
  margin: 12px 0;
}
.game-overlay p {
  font-size: 14px;
  color: var(--muted);
  max-width: 370px;
}
.game-overlay img {
  width: 100px;
  height: 100px;
}
.game-controls {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
  padding: 14px;
}
.game-sidebar {
  padding: 24px;
  align-self: start;
}
.runner-image {
  height: 180px;
  width: 100%;
}
.game-sidebar h3 {
  font-size: 13px;
  margin-top: 25px;
}
.game-sidebar p {
  font-size: 14px;
  color: var(--muted);
}
.game-sidebar .chips {
  margin: 15px 0;
}
.game-sidebar strong {
  color: var(--orange);
  font-size: 28px;
}
.game-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.game-nav {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.game-nav > a:last-child {
  font-size: 13px;
}
.game-controls #charge {
  background: linear-gradient(
    90deg,
    #75501c var(--charge, 0%),
    #211b14 var(--charge, 0%)
  );
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 1150px) {
  .nav {
    gap: 10px;
  }
  .nav nav {
    gap: 12px;
  }
  .nav nav a {
    font-size: 10px;
  }
  .social button {
    font-size: 10px;
    padding: 12px 8px;
  }
  .hero {
    gap: 35px;
  }
  .wrap {
    width: calc(100% - 60px);
  }
  .hero-art {
    min-height: 350px;
  }
  .hero-art img {
    height: 350px;
  }
  .orbit {
    width: 280px;
    height: 280px;
  }
}
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    margin: 10px 15px 0;
    top: 10px;
  }
  .menu {
    display: flex;
    margin-left: auto;
    font-size: 11px;
    padding: 10px;
  }
  .nav nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 15px 5px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .nav nav.open {
    display: flex;
  }
  .nav nav a {
    font-size: 13px;
  }
  .social {
    margin-left: 5px;
  }
  .hero {
    gap: 30px;
    padding-top: 60px;
  }
  .hero-art {
    min-height: 280px;
  }
  .hero-art img {
    height: 280px;
  }
  .orbit {
    width: 230px;
    height: 230px;
  }
  .hero h1 {
    font-size: 88px;
  }
  .hero .lead {
    font-size: 18px;
  }
  .filehead {
    font-size: 9px;
  }
  dl {
    gap: 8px;
  }
  dd {
    font-size: 10px;
  }
  .studio {
    gap: 18px;
  }
  .controls {
    padding: 17px;
  }
  .lore,
  .machine {
    gap: 35px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .section {
    padding-top: 80px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 30px;
    height: 33px;
  }
  .social button {
    font-size: 10px;
  }
  .social button:first-child {
    padding: 10px;
  }
  .nav {
    padding: 9px;
    gap: 5px;
  }
  .menu {
    font-size: 10px;
    padding: 9px;
  }
  .hero,
  .studio,
  .lore,
  .machine {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 45px 0 60px;
    gap: 45px;
  }
  .hero h1 {
    font-size: 95px;
    line-height: 0.86;
  }
  .hero .lead {
    font-size: 18px;
  }
  .hero .actions .btn {
    padding: 16px 12px;
    font-size: 11px;
  }
  .specimen {
    margin: 0 10px;
    max-width: 440px;
    width: calc(100% - 20px);
  }
  .hero-art {
    min-height: 350px;
  }
  .hero-art img {
    height: 350px;
  }
  .orbit {
    width: 285px;
    height: 285px;
  }
  .section-title {
    display: block;
  }
  .section-title > p {
    margin: 25px 0 0;
  }
  .preview-panel {
    position: static;
  }
  .controls {
    padding: 20px;
  }
  .section {
    padding-top: 65px;
    padding-bottom: 35px;
  }
  h2 {
    font-size: 57px;
  }
  .lore {
    gap: 25px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery button {
    padding: 8px;
  }
  .gallery span {
    font-size: 9px;
  }
  .crew {
    padding-bottom: 55px;
  }
  .machine {
    gap: 25px;
  }
  .closing {
    padding: 70px 0;
  }
  .closing h2 {
    font-size: 57px;
  }
  footer {
    flex-wrap: wrap;
  }
  .game-section {
    padding-top: 35px;
  }
  .game-hud {
    padding: 12px;
    font-size: 12px;
  }
  .game-overlay h2 {
    font-size: 45px;
  }
  .game-overlay p {
    font-size: 12px;
  }
  .game-overlay img {
    width: 75px;
    height: 75px;
  }
  .game-sidebar {
    display: block;
  }
  .game-controls button {
    padding: 16px 10px;
  }
  .eyebrow {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .game-overlay {
    padding: 12px;
  }
  .game-overlay .eyebrow {
    font-size: 9px;
    margin: 0 0 5px;
  }
  .game-overlay h2 {
    font-size: 34px;
    margin: 4px 0;
  }
  .game-overlay img {
    height: 44px;
    width: 44px;
  }
  .game-overlay p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.3;
    margin: 7px 0;
  }
  .game-overlay button {
    padding: 12px;
    font-size: 12px;
  }
  .game-overlay #restart {
    padding: 7px;
  }
  .machine h2 {
    font-size: clamp(38px, 10vw, 57px);
  }
  .print-id {
    font-size: 10px;
  }
  .preview-panel .actions button {
    font-size: 11px;
    padding: 14px 8px;
  }
}
