:root {
  color-scheme: dark;
  --bg: #0a101a;
  --surface: #101d2b;
  --line: #263647;
  --text: #eff5fa;
  --muted: #9aacbd;
  --mint: #b4f7a7;
  --pink: #ffafcc;
  --blue: #a2c8ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}
header,
main,
footer {
  max-width: 1380px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.brand span {
  color: var(--mint);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
nav a:hover {
  color: var(--mint);
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: var(--mint);
  color: #122319;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 55px;
  padding: 62px 48px 52px;
  align-items: center;
}
.kicker {
  font:
    700 12px/1.5 "Courier New",
    monospace;
  letter-spacing: 1.7px;
  color: var(--mint);
  margin: 0 0 18px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 100%;
  margin-right: 8px;
}
h1 {
  font-size: clamp(58px, 6.7vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -5px;
  margin: 20px 0 27px;
}
h1 em {
  font-style: normal;
  color: var(--mint);
}
.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 27px 0 20px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #435362;
  border-radius: 7px;
  font-size: 14px;
  font-weight: bold;
  background: transparent;
  color: var(--text);
}
.button:hover {
  border-color: var(--mint);
  background: #b4f7a708;
}
.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #18281d;
}
.primary:hover {
  background: #c9ffbe;
  color: #18281d;
}
.text-link {
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}
.text-link:hover {
  color: var(--mint);
}
.small {
  font-size: 12px;
  color: #8da0b1;
  line-height: 1.6;
}
.habitat {
  height: 355px;
  position: relative;
  border: 1px solid #345049;
  border-radius: 140px 140px 18px 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 40%, #25354a, #101d29 65%);
}
.habitat-top,
.habitat-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font:
    11px "Courier New",
    monospace;
  letter-spacing: 1px;
  color: #95afa9;
  z-index: 2;
  pointer-events: none;
}
.habitat-top {
  top: 34px;
  justify-content: center;
  gap: 40px;
}
.habitat-bottom {
  bottom: 18px;
  flex-direction: column;
  gap: 7px;
  letter-spacing: 0;
}
.habitat-bottom span:first-child {
  color: #dcf1df;
  font-size: 14px;
}
.orbit {
  position: absolute;
  border: 1px dashed #59776a3b;
  border-radius: 50%;
  width: 310px;
  height: 210px;
  left: 18%;
  top: 16%;
  transform: rotate(-30deg);
}
.o2 {
  width: 450px;
  height: 310px;
  left: 3%;
  top: 1%;
}
.little-moon {
  position: absolute;
  width: 65px;
  height: 65px;
  left: 69%;
  top: 28%;
  border-radius: 50%;
  background: #d7e3d7;
  box-shadow: 0 0 70px #c5edd329;
}
.little-moon:after {
  content: "";
  position: absolute;
  right: -4px;
  top: -6px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #213144;
}
.snail {
  position: absolute;
  width: 115px;
  height: 83px;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(100px, 160px);
}
.snail svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 7px 9px #0005);
}
.snail.boop svg {
  animation: boop 0.4s ease;
}
.slime {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.slime i {
  position: absolute;
  width: 26px;
  height: 12px;
  border-radius: 100%;
  background: #a3ffd326;
  animation: fade 2s forwards;
}
@keyframes fade {
  to {
    opacity: 0;
  }
}
@keyframes boop {
  50% {
    transform: translateY(-17px) rotate(-8deg);
  }
}
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  font:
    11px "Courier New",
    monospace;
  letter-spacing: 1.8px;
  color: #8d9caa;
}
.section {
  padding: 65px 48px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head h2,
h2 {
  font-size: clamp(28px, 3.4vw, 43px);
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin: 0;
}
.section-head .kicker {
  margin-bottom: 10px;
}
.section-head > p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.arcade-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
}
.chooser {
  min-width: 0;
}
.game-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 11px;
  border: 1px solid var(--line);
  background: #101a26;
  color: var(--text);
  border-radius: 9px;
  margin-bottom: 10px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.game-tab:hover {
  border-color: #587066;
  transform: translateX(2px);
}
.game-tab.selected {
  border-color: #8db282;
  background: #1a2c27;
  box-shadow: inset 3px 0 var(--mint), 0 0 0 1px #a3ffd31c;
}
.game-tab strong {
  font-size: 15px;
  display: block;
}
.game-tab small {
  font-size: 12px;
  color: var(--muted);
}
.tab-art {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 44px;
  border-radius: 8px;
  font-size: 30px;
}
.moon-art {
  background: #384337;
  color: #d3efb8;
}
.star-art {
  background: #352834;
  color: var(--pink);
}
.brain-art {
  background: #302b48;
  color: #d8ccff;
}
.scribble-art {
  background: #20384a;
  color: var(--blue);
}
.traffic-art {
  background: #42372a;
  color: #ffd28b;
}
.arrow {
  margin-left: auto;
  color: var(--mint);
}
.mission {
  padding: 22px 4px;
}
.mission .kicker {
  font-size: 11px;
  letter-spacing: 1px;
}
.mission h3 {
  font-size: 23px;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
.mission > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.control-notes {
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin: 20px 0;
  padding-top: 10px;
}
.control-notes p {
  margin: 9px 0;
}
kbd {
  border: 1px solid #3b4f5e;
  border-radius: 4px;
  padding: 3px 5px;
  font:
    11px "Courier New",
    monospace;
  background: #172330;
}
.screen {
  border: 1px solid #354858;
  border-radius: 12px;
  overflow: hidden;
  background: #080e20;
}
.screen-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 17px;
  background: #172331;
  border-bottom: 1px solid #354858;
  font:
    10px "Courier New",
    monospace;
  letter-spacing: 1px;
  color: #b5c2ce;
}
.screen-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 7px;
}
iframe {
  width: 100%;
  height: 760px;
  display: block;
  border: 0;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 15px;
  padding: 16px 20px;
}
summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
summary span {
  float: right;
  font-size: 12px;
  color: var(--mint);
}
.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
.guide > p {
  grid-column: 1/-1;
  margin: 0;
}
.guide b {
  color: var(--text);
}
.guide p {
  line-height: 1.7;
}
.legend {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
}
.pink {
  background: var(--pink);
}
.yellow {
  background: #ffe599;
}
.blue {
  background: var(--blue);
}
#work {
  border-top: 1px solid var(--line);
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.projects article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(130deg, #14212e, #0d1723);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.projects article.playable-project {
  box-shadow: inset 0 3px 0 #a3ffd329;
}
.projects article.playable-project .text-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px #a3ffd366;
  vertical-align: 1px;
}
.project-num {
  font:
    13px "Courier New",
    monospace;
  color: var(--mint);
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.project-num span {
  font-size: 10px;
  color: var(--muted);
}
.projects h3 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 32px 0 10px;
}
.projects p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  flex: 1;
}
.secondary-link {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}
.about p {
  color: var(--muted);
}
.about .kicker {
  color: var(--mint);
}
.about .about-lead {
  font-size: 23px;
  color: var(--text);
  line-height: 1.45;
  margin-top: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 48px 35px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1350px) {
  iframe {
    height: 830px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 25px;
    padding: 40px 28px;
  }
  .habitat {
    height: 320px;
  }
  h1 {
    font-size: 66px;
  }
  .actions {
    gap: 16px;
  }
  .arcade-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .section {
    padding: 50px 28px;
  }
  .projects {
    gap: 12px;
  }
  .projects article {
    padding: 20px;
  }
  .screen-bar {
    font-size: 9px;
  }
  .game-tab {
    gap: 8px;
  }
  .tab-art {
    width: 33px;
  }
  summary span {
    float: none;
    display: block;
    margin-top: 5px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 22px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  nav {
    gap: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 20px;
    gap: 25px;
  }
  h1 {
    font-size: 66px;
    letter-spacing: -3px;
  }
  .habitat {
    height: 255px;
    border-radius: 70px 70px 14px 14px;
  }
  .habitat-top {
    top: 22px;
  }
  .hero .lead {
    font-size: 16px;
  }
  .ticker {
    padding: 15px 20px;
    gap: 15px;
    overflow: hidden;
  }
  .ticker span {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .ticker span:last-child {
    display: none;
  }
  .section {
    padding: 40px 20px;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 14px;
  }
  .arcade-layout {
    grid-template-columns: 1fr;
  }
  .chooser [role="tablist"] {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #587066 #101a26;
  }
  .game-tab {
    margin: 0;
    flex: 0 0 min(82vw, 240px);
    min-width: 190px;
    scroll-snap-align: start;
  }
  .game-tab:hover {
    transform: none;
  }
  .mission {
    padding: 15px 2px;
  }
  .mission > p {
    margin: 9px 0;
  }
  .control-notes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 0;
  }
  .chooser > .small {
    margin: 0;
  }
  .projects,
  .about {
    grid-template-columns: 1fr;
  }
  .projects article {
    padding: 24px;
  }
  .projects h3 {
    margin-top: 20px;
  }
  .about {
    gap: 24px;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .guide > p {
    grid-column: auto;
  }
  footer {
    padding: 22px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  iframe {
    height: 780px;
  }
  .screen-bar {
    font-size: 9px;
    padding: 12px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .slime {
    display: none;
  }
}
.dungeon-art {
  background: #2b3430;
  color: #efc978;
  border: 1px solid #776b4a;
  font:
    bold 14px Georgia,
    serif;
}
.screen.dungeon-active iframe {
  height: 1180px;
}
@media (max-width: 760px) {
  .screen.dungeon-active iframe {
    height: 1250px;
  }
}
