:root {
  --mauve: #964b79;
  --mauve-light: #c77fa8;
  --plum: #2a0b20;
  --plum-mid: #4a1838;
  --white: #ffffff;
  --clash: #ffe94a;
  --clash-green: #7dff6a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--white);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--plum);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(199, 127, 168, 0.6) 1.5px, transparent 2.5px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(150, 75, 121, 0.18) 22px 44px);
  background-size: 90px 90px, 130px 130px, auto;
}

a {
  color: var(--clash);
}

a:visited {
  color: var(--mauve-light);
}

code,
pre {
  font-family: "Courier New", Courier, monospace;
}

.small {
  font-size: 0.85em;
  opacity: 0.85;
}

/* marquee */

.marquee {
  overflow: hidden;
  background: var(--clash);
  color: var(--plum);
  border-top: 4px dashed var(--mauve);
  border-bottom: 4px dashed var(--mauve);
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: scroll 40s linear infinite;
}

.marquee-track span {
  padding: 6px 0;
  padding-right: 2em;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* hero */

.hero {
  position: relative;
  text-align: center;
  padding: 24px 16px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1061 / 826;
  margin: 0 auto;
}

.logo .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bob-left {
  animation: bob 2.2s ease-in-out infinite;
}

.bob-right {
  animation: bob 1.7s ease-in-out infinite reverse;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2%) rotate(-2deg); }
}

h1.wobble {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: normal;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.1;
  margin: 12px 0;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--mauve), 6px 6px 0 var(--plum-mid), -2px -2px 0 var(--clash);
  text-transform: uppercase;
}

h1.wobble span {
  display: inline-block;
  animation: wobble 1.6s ease-in-out infinite;
}

h1.wobble span:nth-child(2n) { animation-delay: -0.4s; }
h1.wobble span:nth-child(3n) { animation-delay: -0.8s; color: var(--mauve-light); }
h1.wobble span:nth-child(5n) { animation-delay: -1.2s; }
h1.wobble span:last-child { color: var(--clash); }

@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.pitch {
  font-size: 1.2em;
  max-width: 640px;
  margin: 8px auto 20px;
  background: var(--mauve);
  border: 5px outset var(--mauve-light);
  padding: 12px 16px;
  transform: rotate(-1deg);
}

.pitch em {
  color: var(--clash);
  font-style: normal;
  text-decoration: underline wavy var(--clash-green);
}

.big-button {
  display: inline-block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.6em;
  padding: 10px 28px;
  color: var(--plum) !important;
  background: linear-gradient(var(--clash), #ffb347);
  border: 6px outset #fff4a0;
  text-decoration: none;
  animation: pulse 1s steps(2) infinite;
}

.big-button:active {
  border-style: inset;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px var(--mauve-light), 0 0 24px var(--clash); }
}

/* starbursts */

.burst {
  position: absolute;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  color: var(--plum);
  background: var(--clash);
  clip-path: polygon(50% 0%, 61% 18%, 82% 7%, 79% 30%, 100% 33%, 85% 50%, 100% 67%, 79% 70%, 82% 93%, 61% 82%, 50% 100%, 39% 82%, 18% 93%, 21% 70%, 0% 67%, 15% 50%, 0% 33%, 21% 30%, 18% 7%, 39% 18%);
  animation: spin-pop 2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.burst-free {
  top: 30px;
  left: 4%;
}

.burst-new {
  top: 200px;
  right: 4%;
  background: var(--clash-green);
  animation-delay: -1s;
}

.burst-motd {
  top: -36px;
  right: -20px;
  width: 80px;
  height: 80px;
  font-size: 20px;
  background: var(--mauve-light);
  color: var(--white);
}

.burst-dl {
  top: -40px;
  left: -24px;
  width: 96px;
  height: 96px;
  font-size: 22px;
}

@keyframes spin-pop {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.12); }
}

/* boxes */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

.box {
  position: relative;
  background: var(--plum-mid);
  border: 8px ridge var(--mauve);
  padding: 16px 20px;
  margin: 32px 0;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45);
}

h2 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 2em;
  margin: 0 0 12px;
  color: var(--clash);
  text-shadow: 3px 3px 0 var(--mauve);
  text-align: center;
}

h3 {
  margin: 0 0 6px;
  color: var(--mauve-light);
  font-size: 1.25em;
  text-decoration: underline;
}

.float-right {
  float: right;
  margin: 0 0 8px 12px;
  background: var(--mauve);
  border: 4px dotted var(--clash);
  border-radius: 50%;
}

.what::after {
  content: "";
  display: block;
  clear: both;
}

.rainbow-ish {
  font-size: 2.6em;
  background: var(--mauve);
  border: 6px double var(--clash);
  transform: rotate(1deg);
  padding: 4px;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--plum);
}

/* monster of the day */

.motd {
  max-width: 340px;
  margin: 40px auto;
  text-align: center;
  background: var(--white);
  color: var(--plum);
  border: 10px groove var(--mauve-light);
  transform: rotate(-2deg);
}

.motd h2 {
  color: var(--mauve);
  text-shadow: 2px 2px 0 var(--clash);
}

.motd img {
  width: 128px;
  height: 128px;
  background: repeating-conic-gradient(var(--clash) 0 15deg, #fff59d 15deg 30deg);
  border-radius: 50%;
  border: 4px solid var(--mauve);
}

.motd-name {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.8em;
  margin: 4px 0 0;
  color: var(--mauve);
}

.motd-type {
  margin: 0 0 6px;
  font-weight: bold;
}

/* downloads */

.downloads {
  border-color: var(--clash);
  border-width: 10px;
  background: var(--plum);
}

.downloads h2 {
  font-size: 2.4em;
}

.downloads h3 {
  text-align: center;
  color: var(--white);
  margin-top: 18px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dl {
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--plum) !important;
  background: var(--clash);
  border: 6px outset #fff4a0;
  text-align: center;
}

.dl:hover,
.dl:focus {
  background: var(--clash-green);
}

.dl:active {
  border-style: inset;
}

.dl .os {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.5em;
}

.dl .arch {
  font-size: 0.85em;
}

.dl-server {
  background: var(--mauve-light);
  border-color: #e7b3d1;
}

.notes {
  margin-top: 20px;
  border: 4px dashed var(--mauve-light);
  padding: 8px 16px;
}

.notes pre {
  background: #000;
  color: var(--clash-green);
  border: 3px inset var(--mauve);
  padding: 8px 12px;
  overflow-x: auto;
  font-size: 0.9em;
}

.notes code {
  color: var(--clash);
}

.notes pre code {
  color: inherit;
}

/* visitor counter */

.counter-box {
  text-align: center;
  margin: 32px 0;
}

.counter-box p {
  margin: 4px 0;
}

.counter {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 2em;
  letter-spacing: 6px;
  color: var(--clash-green);
  background: #000;
  border: 5px inset var(--mauve);
  padding: 2px 10px;
}

/* footer */

footer {
  text-align: center;
  padding: 20px 12px 32px;
  background: var(--mauve);
  border-top: 8px ridge var(--mauve-light);
}

footer p {
  margin: 6px 0;
}

footer a {
  color: var(--white);
  font-size: 1.2em;
  font-weight: bold;
}

.under-construction {
  display: inline-block;
  font-family: Impact, "Arial Black", sans-serif;
  color: #000;
  padding: 4px 12px;
  background: repeating-linear-gradient(45deg, var(--clash) 0 14px, #000 14px 28px);
  background-clip: padding-box;
  border: 4px solid #000;
  text-shadow: 0 0 3px var(--clash), 0 0 3px var(--clash), 0 0 3px var(--clash);
}

/* phones */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .burst {
    width: 72px;
    height: 72px;
    font-size: 17px;
  }

  .burst-free {
    top: 14px;
    left: 2px;
  }

  .burst-new {
    top: 140px;
    right: 12px;
  }

  .under-construction {
    font-size: 0.8em;
  }

  .burst-dl {
    top: -30px;
    left: -14px;
  }

  .box {
    padding: 14px;
    border-width: 6px;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .float-right {
    width: 88px;
    height: 88px;
  }

  h2 {
    font-size: 1.6em;
  }

  .rainbow-ish {
    font-size: 2em;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ===== The meadow: monsters wandering behind everything ===== */
.meadow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* The page sits above the meadow but lets pointers through its gaps, so the monsters can be pointed at. */
.marquee, .hero, main, footer { position: relative; z-index: 1; pointer-events: none; }
.marquee *, .hero > *, main > *, footer > * { pointer-events: auto; }
.walker {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  background: none;
  cursor: help;
  opacity: 0.85;
}
.walker img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  animation: hop 0.55s ease-in-out infinite;
  animation-delay: inherit;
  filter: drop-shadow(3px 3px 0 #2b0f24);
}
.walker.facing-left img { scale: -1 1; }
.walker.resting img { animation-play-state: paused; }
.walker.talking { opacity: 1; z-index: 3; }
.walker.talking img { animation: wiggle 0.3s ease-in-out infinite alternate; }
.walker:focus-visible { outline: 4px dashed #fff04a; }
@keyframes hop {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 -14px; }
  60% { translate: 0 -10px; }
}
@keyframes wiggle {
  from { rotate: -8deg; }
  to { rotate: 8deg; }
}
.bubble {
  position: fixed;
  z-index: 4;
  width: 280px;
  padding: 10px 12px;
  background: #fff04a;
  color: #2b0f24;
  border: 4px ridge #964b79;
  box-shadow: 6px 6px 0 #2b0f24;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  rotate: -2deg;
  pointer-events: none;
}
.bubble strong { display: block; font-family: Impact, "Arial Black", sans-serif; font-size: 1.2rem; text-transform: uppercase; }
.hint { font-weight: bold; color: #fff04a; }
@media (prefers-reduced-motion: reduce) {
  .walker img, .walker.talking img { animation: none; }
}
