* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #e8f0ff;
  background: #0b1020;
  padding: 24px;
  color-scheme: dark;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0b1020;
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, #2a1c5c 0, transparent 45%),
    radial-gradient(circle at 85% 85%, #0c4a52 0, transparent 45%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}

#snake {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

main {
  position: relative;
  z-index: 1;
  margin-block: auto;
  width: 100%;
  max-width: 720px;
}

.home main { text-align: center; max-width: 680px; }
.page main { text-align: left; max-width: 760px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 3;
  padding: .6em .9em;
  border-radius: 10px;
  background: #3ee0d0;
  color: #0b1020;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.box {
  font-size: clamp(64px, 14vw, 110px);
  line-height: 1;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(124, 92, 255, .5));
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }

h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .2em 0;
  background: linear-gradient(90deg, #7c5cff, #3ee0d0, #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 { color: #3ee0d0; background: none; }
}

.tag, .pill {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  display: inline-block;
  padding: .5em 1em;
  border: 1px solid rgba(62, 224, 208, .4);
  border-radius: 999px;
  color: #3ee0d0;
  font-size: .95rem;
}
.tag { margin-bottom: 1.2em; }
.tag::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

p { color: #b4c0dc; font-size: 1.1rem; line-height: 1.6; }
.page p { margin: .55rem 0; }
.headline {
  color: #e8f0ff;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  margin: .15rem 0 .45rem;
}

.topnav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: .4rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .9rem;
}
.page p a, .topnav a, .crumbs a, footer a, .note a, .panel a {
  color: #3ee0d0;
  text-decoration: none;
}
.topnav a:hover, .crumbs a:hover, footer a:hover, .note a:hover, .panel a:hover,
a:focus-visible {
  text-decoration: underline;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #3ee0d0;
  outline-offset: 2px;
}

.apps { margin-top: 2rem; }
.apps h2, section h2 {
  color: #e8f0ff;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.01em;
  margin: 0 0 .45rem;
}
.page section { margin-top: 1.7rem; }
.lede { margin-top: .35rem; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1rem;
  text-align: left;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 100%;
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid rgba(124, 92, 255, .35);
  border-radius: 16px;
  background: rgba(15, 22, 45, .7);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.card:hover, .card:focus-visible {
  border-color: rgba(62, 224, 208, .75);
  text-decoration: none;
}
.card h2, .card h3 {
  color: #e8f0ff;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}
.card p { font-size: .98rem; margin: 0; }
.kicker, .more {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #3ee0d0;
  font-size: .82rem;
}
.more { margin-top: auto; }

.signup {
  margin: 2em auto 0;
  max-width: 460px;
  padding: 1.4em;
  border: 1px solid rgba(124, 92, 255, .35);
  border-radius: 16px;
  background: rgba(15, 22, 45, .7);
  backdrop-filter: blur(6px);
}
.signup h2 { font-size: 1.1rem; margin-bottom: .8em; color: #e8f0ff; }
.row { display: flex; gap: .5em; flex-wrap: wrap; }
input[type=email] {
  flex: 1 1 220px;
  min-width: 0;
  padding: .85em 1em;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, .3);
  background: #0b1020;
  color: #e8f0ff;
  font-size: 1rem;
}
input[type=email]:focus { outline: 2px solid #3ee0d0; outline-offset: 1px; }
button {
  flex: 0 0 auto;
  padding: .85em 1.3em;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #0b1020;
  background: linear-gradient(90deg, #7c5cff, #3ee0d0);
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 420px) { button { flex: 1 1 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: .82rem; color: #7d8aa8; margin-top: .8em; line-height: 1.5; }
.msg { margin-top: .8em; font-weight: 600; min-height: 1.2em; }
.ok { color: #3ee0d0; }
.err { color: #ff8a8a; }

.crumbs {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem;
  color: #7d8aa8;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-top: 1rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .85em 1.3em;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #0b1020;
  background: linear-gradient(90deg, #7c5cff, #3ee0d0);
  text-decoration: none;
}
.cta:hover, .cta:focus-visible { text-decoration: none; filter: brightness(1.06); }
.pill { background: rgba(11, 16, 32, .45); }

.points, .ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.points li, .panel li {
  color: #b4c0dc;
  font-size: 1rem;
  line-height: 1.5;
}
.points li {
  padding: .85rem 1rem;
  border-left: 3px solid #3ee0d0;
  background: rgba(15, 22, 45, .55);
  border-radius: 0 12px 12px 0;
}
.points strong, .panel strong { color: #e8f0ff; }

.panel {
  margin-top: .7rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid rgba(124, 92, 255, .35);
  border-radius: 16px;
  background: rgba(15, 22, 45, .7);
  backdrop-filter: blur(6px);
}
.ticks { margin: .8rem 0 .2rem; gap: .4rem; }
.ticks li { padding-left: 1.1rem; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .45rem;
  height: .45rem;
  border-radius: 99px;
  background: #7c5cff;
}

.gamelist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .65rem;
}
@media (min-width: 800px) {
  .gamelist { grid-template-columns: 1fr 1fr; }
}
.gamelist li {
  padding: .8rem .9rem;
  border: 1px solid rgba(120, 160, 255, .18);
  border-radius: 12px;
  background: rgba(11, 16, 32, .45);
}
.gamelist strong {
  display: block;
  color: #e8f0ff;
  font-size: .95rem;
  margin-bottom: .2rem;
}
.gamelist span { color: #b4c0dc; font-size: .92rem; line-height: 1.45; }

.playcard { margin-top: 1.6rem; }
.playcard h2 a { color: inherit; text-decoration: none; }
.playcard h2 a:hover { color: #3ee0d0; }

.founders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: .35rem 1.4rem;
  margin-top: 2.4rem;
}
.founders figure { margin: 0; text-align: center; }
.founders img {
  display: block;
  height: 132px;
  width: auto;
  margin-inline: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.founders figcaption {
  margin-top: .3rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .85rem;
  color: #7d8aa8;
}
@media (min-width: 700px) {
  .founders img { height: 168px; }
}

footer {
  margin-top: 1.4em;
  font-size: .85rem;
  color: #6d7a99;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
