@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lilita-one/latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(../fonts/nunito/latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/pixelify-sans/latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cobblemon Bedrock: bright, chunky and blocky. The page reads top to bottom
   like digging down through a Minecraft world: sky, grass, dirt, sand, stone,
   and bedrock at the very bottom. */

:root {
  color-scheme: light;
  --ink: #1b2140;
  --ink-soft: #3a4166;
  --muted: #555d7d;
  --white: #ffffff;
  --paper: #fffaf0;

  --sky-top: #2f8ff5;
  --sky-mid: #5db4ff;
  --sky-low: #bfe8ff;

  --grass: #57c23a;
  --grass-light: #7fdc5c;
  --grass-dark: #3d9a2a;
  --dirt: #9a6a3c;
  --dirt-dark: #7a5230;

  --sand: #fbeed8;
  --stone: #e8edf4;
  --sun: #ffd23f;
  --sun-deep: #ffb31a;
  --orange: #ff9d2e;
  --coral: #ff6b5e;

  --bedrock-c: #5fd35a;
  --bedrock-deep: #2f9e35;
  --java-c: #ff9d2e;
  --java-deep: #c2570c;
  --discord: #8c9eff;

  --radius: 16px;
  --border: 3px solid var(--ink);
  --lift: 0 6px 0 var(--ink);

  --font-display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-pixel: 'Pixelify Sans', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --edge-steps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath d='M0 16V8h8V4h8v4h8V0h8v8h8V4h8v8h8V8h8v8z'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
p { margin: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--sun); color: var(--ink); padding: 8px 14px;
  border: var(--border); border-radius: 10px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .wrap { padding-inline: 28px; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: var(--border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 900 1.05rem/1.1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--ink), inset 0 -4px 0 rgba(27, 33, 64, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 rgba(27, 33, 64, 0.18); }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--sm { padding: 8px 14px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ink), inset 0 -3px 0 rgba(27, 33, 64, 0.18); }
.btn--lg { padding: 15px 24px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn--sun { --btn-bg: var(--sun); }
.btn--bedrock { --btn-bg: var(--bedrock-c); }
.btn--java { --btn-bg: var(--java-c); }
.btn--sky { --btn-bg: #7cc4ff; }
.btn--discord { --btn-bg: var(--discord); }

/* ---------------------------------------------------------------- small bits */

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: var(--border); border-radius: 999px;
  background: var(--white);
  font: 700 0.9rem/1.2 var(--font-pixel);
  box-shadow: 0 3px 0 var(--ink);
}
.chip__dot { width: 10px; height: 10px; background: var(--grass); border: 2px solid var(--ink); }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: var(--border);
  border-radius: 8px;
  background: var(--white);
  font: 700 0.85rem/1.3 var(--font-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--ink);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: var(--border);
  border-radius: 8px;
  font: 700 0.85rem/1.3 var(--font-pixel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag--bedrock { background: var(--bedrock-c); }
.tag--java { background: var(--java-c); }

.ph {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 0 6px;
  border: 2px dashed #c0392b;
  border-radius: 6px;
  background: #fff0ee;
  color: #b3261e;
  font: 700 0.7rem/1.5 var(--font-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph--on-btn { margin-left: 2px; }

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--lift);
}

/* ---------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--white);
  font: 400 1.35rem/1 var(--font-display);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 var(--ink);
}
.nav__brand img { width: 44px; height: 44px; }
.nav__links { display: none; }
.nav__links a {
  color: var(--white);
  text-decoration: none;
  font: 800 1.02rem/1 var(--font-body);
  padding: 10px 12px;
  border-radius: 10px;
  text-shadow: 0 2px 0 var(--ink);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.2); }
.nav__toggle {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border: var(--border); border-radius: 12px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}
.nav__cta { display: none; }

.nav.is-solid { background: rgba(255, 250, 240, 0.96); box-shadow: 0 3px 0 var(--ink); }
.nav.is-solid .nav__brand,
.nav.is-solid .nav__links a { color: var(--ink); text-shadow: none; }
.nav.is-solid .nav__links a:hover { background: rgba(27, 33, 64, 0.08); }

.nav.is-open .nav__links {
  display: grid;
  position: absolute;
  top: 70px; left: 16px; right: 16px;
  padding: 10px;
  background: var(--white);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--lift);
}
.nav.is-open .nav__links a { color: var(--ink); text-shadow: none; padding: 14px 12px; font-size: 1.1rem; }

@media (max-width: 380px) { .nav__brand span { font-size: 1.15rem; } }

@media (min-width: 880px) {
  .nav__links { display: flex; gap: 4px; }
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; }
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 88px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 100%);
  overflow: hidden;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.cloud {
  position: absolute;
  display: block;
  width: 240px;
  aspect-ratio: 32 / 12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffffff' d='M9 1h6v1h2V0h6v2h2v2h3v2h2v2h2v3H0V8h2V6h3V3h4z'/%3E%3Cpath fill='%23d9efff' d='M0 10h32v2H0zM2 8h2v2H2zM26 8h4v2h-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  image-rendering: pixelated;
  opacity: 0.95;
  animation: drift 90s linear infinite;
}
.cloud--a { top: 16%; left: -6%; width: 260px; animation-duration: 110s; }
.cloud--b { top: 38%; left: 58%; width: 180px; opacity: 0.8; animation-duration: 140s; animation-delay: -40s; }
.cloud--c { top: 9%; left: 72%; width: 300px; animation-duration: 120s; animation-delay: -70s; }
.cloud--d { top: 76%; left: 30%; width: 150px; opacity: 0.7; animation-duration: 160s; animation-delay: -20s; }
@media (max-width: 959px) {
  .cloud--b, .cloud--d { display: none; }
  .cloud--a { top: 30%; width: 200px; }
  .cloud--c { top: 52%; width: 220px; }
}
@keyframes drift {
  from { transform: translateX(-20vw); }
  to { transform: translateX(40vw); }
}
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }

.hero__grid {
  display: grid;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
}
.hero__copy {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: 8px;
}
.hero__title {
  margin: 0;
  color: var(--white);
  font: 400 clamp(2.5rem, 6vw, 4rem)/1.05 var(--font-display);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 var(--ink);
}
.hero__lead {
  max-width: 34ch;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 2px 0 rgba(27, 33, 64, 0.6), 0 0 2px rgba(27, 33, 64, 0.9), 0 0 8px rgba(27, 33, 64, 0.35);
}
.hero__note {
  margin: 0;
  max-width: 44ch;
  padding: 10px 14px;
  background: var(--sun);
  color: var(--ink);
  border: var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  font: 600 1rem/1.45 var(--font-body);
}
.hero__note strong { font-weight: 900; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 12px; width: 100%; }
.hero__actions .btn { flex: 1 1 200px; }

/* Phones and tablets: the title, then the models, then the words and buttons. */
@media (max-width: 959px) {
  .hero__copy { display: contents; }
  .hero__grid { gap: 14px; justify-items: start; }
  .hero__title { order: 1; }
  .stage { order: 2; }
  /* The model stage is decoration, so it may use the side gutters. */
  .hero .stage { width: calc(100% + 32px); max-width: 600px; margin-inline: -16px; justify-self: center; }
  .hero__lead { order: 3; }
  .hero__note { order: 4; }
  .hero__actions { order: 5; }
}

.stage {
  --cap: 0px;
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 10 / 9.4;
}
.stage__canvas {
  position: absolute; inset: 0 0 var(--cap) 0;
  width: 100%; height: calc(100% - var(--cap));
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stage.is-ready .stage__canvas { opacity: 1; }
/* Models switched off (or no WebGL): phones drop the stage, wider screens
   show the square icon art in its place. */
.stage.is-off { display: none; }
.stage.is-off .stage__canvas { display: none; }

@media (min-width: 960px) {
  .hero { min-height: min(92svh, 940px); display: flex; flex-direction: column; }
  .hero__grid {
    flex: 1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    padding-bottom: 24px;
  }
  .hero__copy { gap: 20px; padding-top: 0; }
  .hero__lead { font-size: 1.3rem; }
  .hero__actions .btn { flex: 0 0 auto; }
  .stage { aspect-ratio: auto; max-width: none; height: clamp(440px, 64vh, 640px); }
  .stage.is-off { display: grid; place-items: center; }
  .stage.is-off::before {
    content: '';
    width: min(360px, 70%);
    aspect-ratio: 1;
    background: url('../img/icon.svg') center / contain no-repeat;
    filter: drop-shadow(0 12px 0 rgba(27, 33, 64, 0.22));
  }
}

/* Grass lip and dirt band under the sky. */
.ground {
  height: 60px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15' shape-rendering='crispEdges'%3E%3Cpath fill='%2357c23a' d='M0 3h16v4H0zM2 1h2v2H2zM9 0h1v3H9zM13 2h2v1h-2zM0 7h3v1H0zM7 7h4v1H7zM14 7h2v2h-2z'/%3E%3Cpath fill='%237fdc5c' d='M0 3h16v1H0zM2 1h1v1H2zM9 0h1v1H9z'/%3E%3Cpath fill='%233d9a2a' d='M3 7h4v1H3zM11 7h3v1h-3zM5 5h1v1H5zM12 4h1v1h-1z'/%3E%3Cpath fill='%239a6a3c' d='M3 8h4v7H3zM0 8h3v7H0zM7 8h7v7H7zM14 9h2v6h-2z'/%3E%3Cpath fill='%237a5230' d='M1 10h1v1H1zM5 12h2v1H5zM9 9h1v1H9zM12 11h1v2h-1zM3 14h1v1H3zM14 13h1v1h-1z'/%3E%3Cpath fill='%23b98552' d='M4 9h1v1H4zM10 12h1v1h-1zM7 14h1v1H7zM15 10h1v1h-1z'/%3E%3C/svg%3E") left bottom / 64px 60px repeat-x;
  image-rendering: pixelated;
}

/* ----------------------------------------------------------------- sections */

.section {
  --bg: var(--paper);
  position: relative;
  background: var(--bg);
  padding: 56px 0 72px;
}
.section::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -15px;
  height: 16px;
  background: var(--bg);
  -webkit-mask: var(--edge-steps) left top / 64px 16px repeat-x;
  mask: var(--edge-steps) left top / 64px 16px repeat-x;
}
.section--meadow { --bg: var(--sand); padding-top: 40px; }
.section--paper { --bg: var(--stone); }
.section--sun { --bg: var(--sun); }

@media (min-width: 768px) {
  .section { padding: 80px 0 96px; }
  .section--meadow { padding-top: 64px; }
}

.section__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section__head h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  text-shadow: 0 3px 0 rgba(27, 33, 64, 0.14);
}
.section__lead { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; }

/* --------------------------------------------------------------------- join */

.join { display: grid; gap: 28px; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr 1fr; align-items: start; } }

.join__card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 18px 24px;
  overflow: hidden;
}
@media (min-width: 480px) { .join__card { padding: 26px 26px 28px; } }
.join__card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 12px;
  border-bottom: var(--border);
}
.join__card--bedrock::before { background: var(--bedrock-c); }
.join__card--java::before { background: var(--java-c); }
.join__top { display: grid; gap: 10px; justify-items: start; padding-top: 8px; }
.join__top h3 { font-size: 1.75rem; }
.join__top p { color: var(--ink-soft); }
.join__small { margin-top: -8px; color: var(--muted); font-size: 0.92rem; }
.join__aside {
  padding: 12px 14px;
  border: 2px dashed rgba(27, 33, 64, 0.35);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fields { display: grid; gap: 12px; margin: 0; }
.field dt {
  margin-bottom: 6px;
  font: 700 0.8rem/1.3 var(--font-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field dd { display: flex; gap: 8px; margin: 0; min-width: 0; }
.field__value {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: var(--border);
  border-radius: 10px;
  background: #232a4f;
  color: #eaf6ff;
  font: 700 1rem/1.3 var(--font-mono);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}
.field__plain {
  padding: 11px 12px;
  border: 2px dashed rgba(27, 33, 64, 0.35);
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  width: 100%;
}
.copy {
  flex: none;
  min-width: 76px;
  padding: 0 14px;
  border: var(--border);
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font: 900 0.95rem/1 var(--font-body);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.copy:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.copy.is-done { background: var(--bedrock-c); }
.copy { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.copy__icon { width: 18px; height: 18px; flex: none; display: none; }
/* Phones: an icon-only copy button keeps the address on one line. */
@media (max-width: 420px) {
  .field__value { font-size: 0.95rem; padding-inline: 10px; }
  .copy { min-width: 48px; padding: 0; }
  .copy__icon { display: block; }
  .copy__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 46px;
  min-height: 34px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: var(--border);
  border-radius: 8px;
  background: var(--stone);
  font: 700 1rem/1 var(--font-pixel);
  box-shadow: 0 3px 0 var(--ink);
}
.join__card--bedrock .steps li::before { background: #d8f5d1; }
.join__card--java .steps li::before { background: #ffe3c2; }

/* ---------------------------------------------------------------- crossplay */

.section--sandstone { --bg: #f2ddb8; }

.shots { display: grid; gap: 28px; }
.shot { margin: 0; padding: 20px 16px 24px; display: grid; gap: 18px; }
@media (min-width: 640px) { .shot { padding: 24px 24px 28px; } }
.shot__cap { display: grid; gap: 4px; }
.shot__cap h3 { font-size: 1.6rem; }
.shot__cap p { color: var(--ink-soft); }

.shot__pair { display: grid; gap: 22px; align-items: start; }
@media (min-width: 860px) {
  .shot__pair { grid-template-columns: 1fr 1fr; gap: 28px; }
  .shot__cap { grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
}

/* A landscape phone: thick dark bezel, a camera dot on the left edge. */
.device { position: relative; margin: 0; }
.device img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  background: #10142b;
}
/* Pixelify closes C into O at this size, so the labels use the body face. */
.device .tag {
  position: absolute; z-index: 1;
  left: 14px; top: -13px;
  font: 900 0.8rem/1.3 var(--font-body);
  letter-spacing: 0.08em;
  box-shadow: 0 3px 0 var(--ink);
}
.device--phone {
  padding: 10px 10px 10px 22px;
  border: var(--border);
  border-radius: 26px;
  background: #23294a;
  box-shadow: var(--lift), inset 0 0 0 3px #3a4170;
}
.device--phone::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: #0b0e1f;
  box-shadow: 0 0 0 2px #3a4170;
}
.device--phone img { border-radius: 12px; }

/* A monitor on a stand. */
.device--pc {
  padding: 10px;
  margin-bottom: 30px;
  border: var(--border);
  border-radius: 14px;
  background: #23294a;
  box-shadow: var(--lift), inset 0 0 0 3px #3a4170;
}
.device--pc::before,
.device--pc::after {
  content: '';
  position: absolute;
  left: 50%;
  border: var(--border);
  background: #3a4170;
}
.device--pc::before { top: calc(100% + 3px); width: 46px; height: 20px; margin-left: -23px; border-top: 0; }
.device--pc::after { top: calc(100% + 20px); width: 140px; height: 12px; margin-left: -70px; border-radius: 6px 6px 3px 3px; }
.device--pc img { border-radius: 4px; }

.strip {
  display: grid; gap: 22px;
  margin: 36px 0 0; padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip__cap {
  display: block;
  margin-top: 10px;
  color: #dfe5ff;
  font: 800 0.95rem/1.3 var(--font-body);
  text-align: center;
}

/* ----------------------------------------------------------------- features */

.features { display: grid; gap: 24px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } .feature--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } .feature--wide { grid-column: span 2; } }

.feature { display: grid; gap: 12px; align-content: start; padding: 22px 20px 24px; }
.feature h3 { font-size: 1.55rem; }
.feature p { color: var(--ink-soft); }
.feature--wide { grid-template-columns: 1fr; }
.feature--banner { grid-column: 1 / -1; }
.feature > div:not(.feature__icon) { display: grid; gap: 12px; align-content: start; }
@media (min-width: 640px) {
  .feature--wide, .feature--banner { grid-template-columns: auto 1fr; gap: 20px; }
  .feature--wide > div:last-child, .feature--banner > div:last-child { display: grid; gap: 12px; align-content: start; }
}
.feature__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
}
.feature__icon svg { width: 40px; height: 40px; image-rendering: pixelated; }
.feature__icon--coral { background: #ffd9d4; }
.feature__icon--sky { background: #d4ecff; }
.feature__icon--sun { background: #fff1b8; }
.feature__icon--grass { background: #d8f5d1; }

.types {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 0; padding: 0;
  list-style: none;
}
.types li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font: 700 0.8rem/1.4 var(--font-pixel);
}
.types li::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--c);
  border: 2px solid var(--ink);
}

/* -------------------------------------------------------------------- links */

.links { display: grid; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (min-width: 720px) { .links { grid-template-columns: 1fr 1fr; } }
.link-card { display: grid; gap: 12px; padding: 22px 20px 24px; }
.link-card h3 { font-size: 1.6rem; }
.link-card p { color: var(--ink-soft); margin-bottom: 6px; }

/* ------------------------------------------------------------------- footer */

.footer {
  --bg: var(--ink);
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23242b52' d='M1 1h3v2H1zM9 2h2v1H9zM6 6h3v2H6zM12 8h3v3h-3zM2 11h2v2H2zM8 13h2v2H8z'/%3E%3Cpath fill='%23141933' d='M4 3h2v1H4zM13 4h2v2h-2zM0 8h2v1H0zM10 10h1v2h-1zM5 14h2v1H5z'/%3E%3C/svg%3E") 0 0 / 64px 64px,
    var(--ink);
  image-rendering: pixelated;
  color: #d5dbf0;
  padding: 64px 0 32px;
}
.footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -15px;
  height: 16px;
  background: var(--ink);
  -webkit-mask: var(--edge-steps) left top / 64px 16px repeat-x;
  mask: var(--edge-steps) left top / 64px 16px repeat-x;
}
.footer__grid { display: grid; gap: 28px; }
.footer__brand {
  display: flex; align-items: center; gap: 10px; align-self: start;
  color: var(--white);
  font: 400 1.35rem/1 var(--font-display);
  letter-spacing: 0.02em;
}
.footer__brand img { width: 44px; height: 44px; }
.footer h2 {
  margin-bottom: 10px;
  color: var(--white);
  font: 700 0.85rem/1.3 var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__nav { display: grid; align-content: start; gap: 6px; }
.footer__nav a { color: #eef1ff; text-decoration: none; font-weight: 700; padding: 2px 0; }
.footer__nav a:hover { text-decoration: underline; }
.footer__credits p { font-size: 0.92rem; line-height: 1.6; }
.footer__credits a { color: #b9c6ff; }
.footer__legal {
  display: grid; gap: 8px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 2px solid rgba(213, 219, 240, 0.2);
  font-size: 0.85rem;
  color: #aab2d4;
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.2fr 0.6fr 0.6fr 2fr; }
}

/* -------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%; bottom: 20px;
  z-index: 60;
  transform: translate(-50%, 140%);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: var(--border);
  border-radius: 12px;
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 5px 0 var(--ink);
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.2s ease; }

/* Type swatches live here so the CSP does not need inline styles. */
.type-normal { --c: #a8a878; }
.type-fire { --c: #f08030; }
.type-water { --c: #6890f0; }
.type-grass { --c: #78c850; }
.type-electric { --c: #f8d030; }
.type-ice { --c: #98d8d8; }
.type-fighting { --c: #c03028; }
.type-poison { --c: #a040a0; }
.type-ground { --c: #e0c068; }
.type-flying { --c: #a890f0; }
.type-psychic { --c: #f85888; }
.type-bug { --c: #a8b820; }
.type-rock { --c: #b8a038; }
.type-ghost { --c: #705898; }
.type-dragon { --c: #7038f8; }
.type-dark { --c: #705848; }
.type-steel { --c: #b8b8d0; }
.type-fairy { --c: #ee99ac; }

/* Small supporting pages share the sky, cards and footer. */
.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage .nav { position: static; background: var(--sky-top); }
.subpage__main { flex: 1; padding: 48px 0 72px; background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.subpage__wrap { max-width: 860px; }
.subpage__card { padding: clamp(20px, 4vw, 40px); display: grid; gap: 24px; }
.subpage h1 { font: 400 clamp(2.2rem, 6vw, 3rem)/1.1 var(--font-display); }
.subpage .join__card { max-width: 600px; margin: 0 auto; }
.subpage .footer { padding: 32px 0; }
.subpage .footer__legal { margin-top: 20px; }
.notices { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.notices li { display: grid; gap: 8px; padding-top: 20px; border-top: 2px solid var(--stone); }
.notices h2 { font-size: 1.35rem; }
.notices p { white-space: pre-line; overflow-wrap: anywhere; }
.subpage__card .rules, .subpage__card ul { display: grid; gap: 10px; margin: 0; padding-left: 1.4em; }
.subpage__card .rules { list-style: decimal; } .subpage__card ul { list-style: disc; }
.subpage__card .rules li::marker { font-weight: 800; color: var(--ink-soft); }
.footer__simple { display: flex; flex-wrap: wrap; gap: 20px; }
@media (min-width: 880px) and (max-width: 1130px) { .nav__cta { display: none; } }
