/*
 * SuperSlop's website. The colors are the game's palette (Palette in core and in the pack generator), and pixel art
 * from art/ is always drawn at a whole multiple of its size, so its pixels stay square and sharp.
 */

:root {
  --goo: #7be35a;
  --goo-light: #c6f78f;
  --goo-dark: #3fa34d;
  --goo-deep: #25704a;
  --goo-ink: #123a31;
  --grape: #9b5cff;
  --grape-light: #cba8ff;
  --grape-deep: #3f2388;
  --grape-ink: #1f1147;
  --gold: #ffc94a;
  --gold-light: #ffeca6;
  --gold-deep: #9c5620;
  --gold-ink: #4a2610;
  --sky: #5cc8ff;
  --sky-light: #c2edff;
  --sky-deep: #1e5696;
  --sky-ink: #0f2a4d;
  --danger: #ff5c6c;
  --danger-light: #ffa9b1;
  --danger-deep: #84203c;
  --danger-ink: #3f0e1d;

  --white: #ffffff;
  --text: #e8ecf5;
  --silver: #c3cad8;
  --soft: #a9b1c2;
  --muted: #8a93a6;
  --slate: #3a4152;
  --panel-light: #2a3040;
  --panel: #1b1f2a;
  --panel-dark: #13161e;
  --ink: #0b0d12;

  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --container: 1120px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--panel-dark);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pixel {
  image-rendering: pixelated;
}

a {
  color: var(--goo-light);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

strong {
  color: var(--white);
  font-weight: 600;
}

code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(123, 227, 90, 0.12);
  color: var(--goo-light);
  font: 600 0.95em/1 var(--font-body);
  white-space: nowrap;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--goo);
  color: var(--goo-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--gutter);
}

/* Buttons: goo with a lit top, a thickness in the deep shade, and an ink outline, like the logo's letters */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-width: 7.5em;
  padding: 13px 22px;
  border: 2px solid var(--goo-ink);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--goo-light) 0, var(--goo) 22%, var(--goo) 72%, var(--goo-dark) 100%);
  color: var(--goo-ink);
  font: 700 1.05rem/1 var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 0 var(--goo-deep), 0 5px 0 2px var(--goo-ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 0 var(--goo-deep), 0 6px 0 2px var(--goo-ink);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 0 var(--goo-deep), 0 1px 0 2px var(--goo-ink);
}

.button--small {
  min-width: 6.5em;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 0 var(--goo-deep), 0 4px 0 2px var(--goo-ink);
}

.button.is-copied {
  background: linear-gradient(180deg, var(--gold-light) 0, var(--gold) 22%, var(--gold) 72%, #e0932f 100%);
  border-color: var(--gold-ink);
  color: var(--gold-ink);
  box-shadow: 0 5px 0 0 var(--gold-deep), 0 5px 0 2px var(--gold-ink);
}

.button--small.is-copied {
  box-shadow: 0 4px 0 0 var(--gold-deep), 0 4px 0 2px var(--gold-ink);
}

/* The bar that slides in once the hero's address scrolls away */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  transform: translateY(-130%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none;
}

.site-nav.is-visible,
.site-nav:focus-within {
  transform: none;
  pointer-events: auto;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgba(19, 22, 30, 0.86);
  box-shadow: 0 6px 0 var(--ink), 0 18px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--white);
  font: 700 1.25rem/1 var(--font-display);
  text-decoration: none;
}

.site-nav__links {
  display: none;
  gap: 4px;
}

.site-nav__links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--silver);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

@media (min-width: 700px) {
  .site-nav__links {
    display: flex;
  }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 136px var(--gutter) 88px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(123, 227, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 92% 95%, rgba(155, 92, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 55% at 6% 90%, rgba(92, 200, 255, 0.12), transparent 70%),
    var(--panel);
}

@media (min-width: 560px) {
  .hero {
    min-height: min(100svh, 880px);
  }
}

/* A faint block grid that fades out toward the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 2px, transparent 2px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--panel-dark));
}

/* The trailer's goo, hanging from the top of the page at twice its size */
.goo-edge {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 128px;
  background: url("art/goo-edge.png") center top / 2560px 128px repeat-x;
  image-rendering: pixelated;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(123, 227, 90, 0.3);
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.55);
  color: var(--goo-light);
  font: 400 0.75rem/1.3 var(--font-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--goo);
  box-shadow: 0 0 0 3px rgba(123, 227, 90, 0.22);
}

.hero__title {
  margin: 28px 0 0;
  line-height: 0;
}

.wordmark {
  width: 336px;
  margin-inline: auto;
  filter: drop-shadow(0 14px 30px rgba(123, 227, 90, 0.22));
}

@media (min-width: 560px) {
  .wordmark {
    width: 504px;
  }
}

@media (min-width: 900px) {
  .wordmark {
    width: 672px;
  }
}

.hero__lead {
  max-width: 36rem;
  margin: 26px auto 0;
  color: var(--silver);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-wrap: pretty;
}

.address {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 10px 10px 10px 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--panel-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 6px 0 var(--ink), 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.address__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.address__label {
  color: var(--muted);
  font: 400 0.625rem/1.3 var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address__value {
  overflow: hidden;
  color: var(--white);
  font: 600 1.55rem/1.15 var(--font-display);
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .address {
    gap: 10px;
    padding-left: 16px;
  }

  .address__value {
    font-size: 1.25rem;
  }

  .address .button {
    min-width: 0;
    padding-inline: 16px;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__version {
  color: var(--soft);
}

.hero__sep {
  display: none;
  color: var(--slate);
}

@media (min-width: 560px) {
  .hero__sep {
    display: inline;
  }
}

.hero__more {
  color: var(--goo-light);
  font-weight: 600;
  text-decoration: none;
}

.hero__more::after {
  content: " \2193";
}

.hero__more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: rgba(123, 227, 90, 0.12);
  color: var(--goo-light);
  font-weight: 600;
}

.status[hidden] {
  display: none;
}

.status__light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--goo);
  box-shadow: 0 0 0 0 rgba(123, 227, 90, 0.6);
  animation: pulse 2s ease-out infinite;
}

.status--offline {
  background: rgba(138, 147, 166, 0.14);
  color: var(--soft);
}

.status--offline .status__light {
  background: var(--muted);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 227, 90, 0.6);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(123, 227, 90, 0);
  }
}

/* Items from the game drifting around the hero */

.hero__floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero__floaters {
    display: block;
  }
}

.floater {
  --tilt: 0deg;
  position: absolute;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.45));
  animation: bob 6s ease-in-out infinite;
}

.floater--1 { top: 22%; left: 8%; --tilt: -16deg; animation-delay: -1.2s; }
.floater--2 { top: 44%; left: 19%; --tilt: 10deg; animation-delay: -3.1s; animation-duration: 5s; }
.floater--3 { top: 66%; left: 9%; --tilt: 8deg; animation-delay: -2.2s; animation-duration: 7s; }
.floater--4 { top: 20%; right: 9%; --tilt: 14deg; animation-delay: -0.4s; }
.floater--5 { top: 42%; right: 19%; --tilt: -8deg; animation-delay: -4s; animation-duration: 5.5s; }
.floater--6 { top: 64%; right: 8%; --tilt: -10deg; animation-delay: -2.8s; animation-duration: 6.5s; }
.floater--7 { top: 82%; left: 26%; --tilt: 0deg; animation-delay: -1.7s; animation-duration: 4.8s; }
.floater--8 { top: 80%; right: 26%; --tilt: 6deg; animation-delay: -3.6s; animation-duration: 7.5s; }

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt));
  }

  50% {
    transform: translateY(-14px) rotate(calc(var(--tilt) + 5deg));
  }
}

/* Sections */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section__header {
  max-width: 42rem;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--goo);
  font: 400 0.75rem/1.3 var(--font-pixel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  color: var(--white);
  font: 700 clamp(2rem, 5.2vw, 3.3rem)/1.05 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__lead {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 1.1rem;
  text-wrap: pretty;
}

/* Game cards: each game's item on a stage in its own colors, over its lettered title */

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.game {
  --accent: var(--goo);
  --accent-light: var(--goo-light);
  --accent-deep: var(--goo-deep);
  --accent-ink: var(--goo-ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 6px 0 var(--ink), 0 28px 50px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.25s ease;
}

.game:hover {
  transform: translateY(-5px);
  box-shadow: 0 11px 0 var(--ink), 0 34px 60px -26px color-mix(in srgb, var(--accent) 45%, transparent);
}

.game--spleef {
  --accent: var(--sky);
  --accent-light: var(--sky-light);
  --accent-deep: var(--sky-deep);
  --accent-ink: var(--sky-ink);
}

.game--colorrush {
  --accent: var(--grape);
  --accent-light: var(--grape-light);
  --accent-deep: var(--grape-deep);
  --accent-ink: var(--grape-ink);
}

.game--sumo {
  --accent: var(--gold);
  --accent-light: var(--gold-light);
  --accent-deep: var(--gold-deep);
  --accent-ink: var(--gold-ink);
}

.game--tnttag {
  --accent: var(--danger);
  --accent-light: var(--danger-light);
  --accent-deep: var(--danger-deep);
  --accent-ink: var(--danger-ink);
}

.game--lobby {
  --accent: var(--silver);
  --accent-light: var(--text);
  --accent-deep: var(--slate);
  --accent-ink: var(--panel-dark);
}

.game__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--accent) 42%, transparent) 0, transparent 52%),
    linear-gradient(180deg, var(--accent-ink) 0%, var(--accent-deep) 130%);
}

.game__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 32px 32px;
  background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}

/* The item's shadow on the stage floor, which shrinks as the item rises */
.game__stage::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 96px;
  height: 14px;
  margin-left: -48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  animation: shadow 4.5s ease-in-out infinite;
}

.game__item {
  position: relative;
  width: 128px;
  margin-top: -24px;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 55%, transparent));
  animation: hover 4.5s ease-in-out infinite;
}

.game:nth-child(2n) .game__item,
.game:nth-child(2n) .game__stage::after {
  animation-delay: -2.2s;
}

.game:hover .game__item {
  animation-duration: 1.6s;
}

.game:hover .game__stage::after {
  animation-duration: 1.6s;
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }

  50% {
    transform: scaleX(0.75);
    opacity: 0.6;
  }
}

.game__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 28px;
}

.game__body > p {
  margin: 0;
  color: var(--soft);
}

.game__title {
  margin: 0;
  line-height: 0;
}

.game__tagline {
  margin: 0;
  color: var(--accent-light);
  font: 400 0.75rem/1.5 var(--font-pixel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 6px 0 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Numbers */

.stats {
  border-block: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(92, 200, 255, 0.06), rgba(123, 227, 90, 0.06), rgba(155, 92, 255, 0.06)),
    var(--panel);
}

.stats__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  padding-block: 36px;
}

@media (min-width: 760px) {
  .stats__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

.stat strong {
  display: block;
  color: var(--white);
  font: 700 1.9rem/1.1 var(--font-display);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.feature {
  --accent: var(--goo);
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel-light), var(--panel) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 0 var(--ink);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
}

.feature--gold { --accent: var(--gold); }
.feature--sky { --accent: var(--sky); }
.feature--grape { --accent: var(--grape); }
.feature--danger { --accent: var(--danger); }
.feature--silver { --accent: var(--silver); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--ink));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel-dark));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 0 24px -6px color-mix(in srgb, var(--accent) 50%, transparent);
}

.feature h3 {
  margin: 0 0 8px;
  color: var(--white);
  font: 600 1.3rem/1.25 var(--font-display);
}

.feature p {
  margin: 0;
  color: var(--soft);
}

/* How to join */

.section--join {
  border-top: 2px solid var(--ink);
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(123, 227, 90, 0.14), transparent 70%),
    var(--panel);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.step {
  padding: 28px 26px 26px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--panel-dark);
  box-shadow: 0 6px 0 var(--ink);
}

/* A drop of goo */
.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 50px;
  margin-bottom: 18px;
  padding-top: 6px;
  border: 2px solid var(--goo-ink);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 34% 40%, var(--goo-light) 0 3px, transparent 4px),
    linear-gradient(180deg, var(--goo-light), var(--goo) 30%, var(--goo-dark));
  box-shadow: 0 4px 0 0 var(--goo-deep), 0 4px 0 2px var(--goo-ink);
  color: var(--goo-ink);
  font: 700 1.35rem/1 var(--font-display);
}

.step h3 {
  margin: 0 0 6px;
  color: var(--white);
  font: 600 1.3rem/1.25 var(--font-display);
}

.step p {
  margin: 0;
  color: var(--soft);
}

.join-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  padding: 32px 24px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 50% 90% at 0% 50%, rgba(123, 227, 90, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 90% at 100% 50%, rgba(155, 92, 255, 0.22), transparent 70%),
    linear-gradient(135deg, #0f2a26, #16142b);
  box-shadow: 0 8px 0 var(--ink), 0 40px 90px -40px rgba(123, 227, 90, 0.45);
  text-align: center;
}

@media (min-width: 860px) {
  .join-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: start;
    gap: 28px;
    padding: 28px 32px;
    text-align: left;
  }
}

.join-card__emblem {
  width: 128px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.join-card__title {
  margin: 0;
  color: var(--white);
  font: 700 1.75rem/1.15 var(--font-display);
}

.join-card__lead {
  margin: 6px 0 0;
  color: var(--soft);
}

.address--compact {
  margin: 0;
}

/* Footer */

.footer {
  padding: 56px 0 40px;
  border-top: 2px solid #000;
  background: var(--ink);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer__brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  color: var(--silver);
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--goo-light);
}

.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Feedback after copying the address: a toast, and goo that splashes from the button */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--panel-light);
  box-shadow: 0 5px 0 var(--ink), 0 20px 40px rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast:empty {
  display: none;
}

.splat {
  position: fixed;
  z-index: 70;
  width: 8px;
  height: 8px;
  background: var(--goo);
  box-shadow: inset -2px -2px 0 var(--goo-dark), 0 0 0 2px var(--goo-ink);
  pointer-events: none;
  animation: splat 0.7s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes splat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The hidden field script.js copies through when the browser has no clipboard API */
.copy-field {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

/* The page for missing paths, which Cloudflare Pages serves from 404.html */

.lost {
  min-height: 100svh;
}

.lost__art {
  width: 128px;
  margin: 28px auto 0;
  animation: bob 6s ease-in-out infinite;
}

.lost__title {
  margin: 28px 0 0;
  color: var(--white);
  font: 700 clamp(2.2rem, 7vw, 3.6rem)/1.05 var(--font-display);
}

.lost .button {
  margin-top: 32px;
}
