/* NewEarth site styles. Mobile-first. No external assets. */
@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/PressStart2P-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #fbf7ec;
  --cream-2: #f3ead6;
  --card: #ffffff;
  --ink: #2a2a22;
  --muted: #55544a;
  --line: #e2d7bf;
  --grass: #3b7d2a;       /* buttons, white text on it */
  --grass-dark: #2c5f1f;
  --grass-light: #8cc63f;
  --grass-tint: #e7f3d9;
  --sky: #7cc4ec;
  --sky-tint: #e1f2fb;
  --sky-dark: #1d5f87;
  --earth: #7a4a24;
  --earth-tint: #f1e2d0;
  --sun: #f6c64a;
  --danger: #a3271c;
  --radius: 10px;
  --shadow: 0 2px 0 rgba(122, 74, 36, 0.12), 0 6px 18px rgba(42, 42, 34, 0.06);
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--sky-dark); text-underline-offset: 3px; }
a:hover { color: var(--grass-dark); }

:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.pixel { font-family: var(--pixel); letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, 0.97);
  border-bottom: 3px solid var(--grass-light);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 48px;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-green { background: var(--grass); color: #fff; box-shadow: 0 3px 0 var(--grass-dark); }
.btn-green:hover { background: var(--grass-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--grass); color: var(--ink); }
.btn-request { padding: 10px 12px; font-size: 15px; white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; padding-bottom: 12px; }
.site-nav.open { display: block; }
.no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.site-nav a:hover { background: var(--grass-tint); }
.site-nav a[aria-current="page"] { background: var(--grass-tint); color: var(--grass-dark); box-shadow: inset 4px 0 0 var(--grass); }

@media (min-width: 1000px) {
  .header-row { min-height: 72px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; padding: 0; order: 0; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { padding: 8px 10px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--grass); }
  .logo { margin-right: 12px; }
  .site-nav { margin-right: auto; }
  .logo span { font-size: 18px; }
  .btn-request { padding: 10px 16px; font-size: 16px; }
  .header-row { flex-wrap: nowrap; }
}
@media (max-width: 999px) {
  .header-row { flex-wrap: wrap; }
  .site-nav { order: 10; width: 100%; }
}
@media (max-width: 360px) {
  .logo span { font-size: 12px; }
  .btn-request { font-size: 14px; padding: 8px 10px; }
}

/* ---------- Placeholders ---------- */
.placeholder {
  position: relative;
  background: var(--sky-tint);
  border: 2px dashed var(--sky);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .ph-label { font-size: 13px; padding: 4px 10px; left: 10px; bottom: 10px; } }
.shot {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--sky-dark);
}
.shot svg { width: 100%; height: 100%; }

.sample-badge {
  display: inline-block;
  background: var(--earth-tint);
  color: var(--earth);
  border: 1px solid #d9bf9f;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #bfe3f5;
  border-bottom: 4px solid var(--earth);
}
.hero-art { width: 100%; height: clamp(320px, 52vw, 540px); }
.hero-art svg { width: 100%; height: 100%; }
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(28px, 6vw, 70px);
  text-align: center;
}
.hero-logo {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(30px, 8.5vw, 96px);
  line-height: 1;
  margin: 0;
  color: #fff;
  text-shadow: 3px 3px 0 var(--earth), 6px 6px 0 rgba(42, 42, 34, 0.25);
}
.hero .ph-label { left: 50%; transform: translateX(-50%); bottom: 12px; white-space: nowrap; }

.welcome {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.welcome p {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 650;
  margin: 0 0 14px;
  max-width: 760px;
}
.welcome .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 34px 0; }
.section.tint { background: var(--cream-2); }
.page-head { padding: 30px 0 8px; }
.page-head p.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.eyebrow {
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.6;
  color: var(--earth);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card .placeholder { margin: -4px 0 14px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .card { border-color: var(--grass); }
.card-link h3 { color: var(--grass-dark); }
.card .icon { width: 44px; height: 44px; margin-bottom: 10px; }
.card.green { border-top: 6px solid var(--grass-light); }
.card.blue { border-top: 6px solid var(--sky); }
.card.brown { border-top: 6px solid var(--earth); }

.note {
  background: var(--sky-tint);
  border-left: 5px solid var(--sky-dark);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.note.warn { background: var(--earth-tint); border-left-color: var(--earth); }
.note.green { background: var(--grass-tint); border-left-color: var(--grass); }
.note > :last-child { margin-bottom: 0; }

ul.clean { padding-left: 1.2em; margin: 0 0 1em; }
ul.clean li, ol.steps li { margin-bottom: 6px; }

/* ---------- Status box ---------- */
.status {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.status-head h2 { margin: 0; font-size: 22px; }
.status dl { margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .status dl { grid-template-columns: repeat(3, 1fr); } }
.status dl div { background: var(--cream); border-radius: 8px; padding: 10px 12px; }
.status dt { font-size: 14px; color: var(--muted); font-weight: 650; }
.status dd { margin: 0; font-size: 19px; font-weight: 750; }
.light {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
  background: #9a9a8a;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
.light.online { background: #36b14a; }
.light.offline { background: #c2402f; }
.status small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Screenshot strip ---------- */
.strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip figure { margin: 0; }
.strip figcaption { font-weight: 700; margin-top: 6px; }

/* ---------- Tabs (join page) ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
.tablist button {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.tablist button[aria-selected="true"] { background: var(--grass); border-color: var(--grass); color: #fff; }
.tabpanel[hidden] { display: none; }
.no-js .tablist { display: none; }
.no-js .tabpanel[hidden] { display: block; }

ol.steps { padding-left: 1.4em; margin: 0 0 1em; }
ol.steps li::marker { font-weight: 800; color: var(--grass-dark); }

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: var(--grass-tint);
  border: 2px solid #c4e0a6;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 14px;
}
.address code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.address .label { font-size: 14px; color: var(--muted); font-weight: 650; width: 100%; }
.copy-btn {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2px solid var(--grass);
  background: #fff;
  color: var(--grass-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn.copied { background: var(--grass); color: #fff; }

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}
details[open] { padding-bottom: 12px; }

/* ---------- Forms ---------- */
form.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-weight: 700; }
.field .hint { font-size: 15px; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #cbbd9e;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--sky-dark); }
fieldset { border: 2px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; margin: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--grass); }
.choice label { font-weight: 600; }
.field-error { color: var(--danger); font-weight: 700; font-size: 15px; margin: 0; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.form-done {
  background: var(--grass-tint);
  border: 2px solid var(--grass);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 20px;
  font-weight: 750;
}
.form-done[hidden] { display: none; }
.draft-flag {
  background: var(--earth-tint);
  border: 1px dashed var(--earth);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
}

/* ---------- Rules ---------- */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rules li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.rules svg { width: 44px; height: 44px; flex: none; }
.rules h3 { margin: 0 0 4px; font-size: 19px; }
.rules p { margin: 0; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--cream-2); }
caption { text-align: left; padding: 10px 12px; font-weight: 700; }

/* ---------- Map ---------- */
.map-frame {
  height: min(78vh, 760px);
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame .inner { max-width: 440px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--earth);
  color: #fff;
  padding: 26px 0 30px;
  border-top: 6px solid var(--grass-light);
}
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer ul a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p { margin: 0 0 6px; color: #fbeedd; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-art img, .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.shot img { object-position: 50% 50%; }

ul.grid, ul.strip { list-style: none; padding: 0; margin: 0; }
ul.grid > li { display: flex; }
ul.grid > li > .card, ul.grid > li > .card-link { flex: 1; }
.card-link .card { height: 100%; }
[hidden] { display: none !important; }

/* Command lists (guides) */
.cmds { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.cmds li { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cmd-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.cmds code, .tip code, .lead code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  background: var(--grass-tint);
  border: 1px solid #c4e0a6;
  border-radius: 6px;
  padding: 2px 7px;
  overflow-wrap: anywhere;
}
.cmds code { font-size: 17px; }
.cmds p { margin: 4px 0 0; color: var(--muted); }
.cmds .copy-btn { min-height: 40px; padding: 4px 12px; font-size: 15px; }
.tip { font-size: 16px; }
.jump { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 650; }
.jump a:hover { border-color: var(--grass); }
.card[id] { scroll-margin-top: 90px; }
@media (min-width: 640px) { .span-2 { grid-column: 1 / -1; } }

.map-frame { position: relative; }
.map-frame.map-live { padding: 0; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.map-open { margin: 12px 0 0; }

/* ===================== v2 polish ===================== */
body { background: linear-gradient(#fbf7ec, #fbf7ec); }
.btn-big { min-height: 54px; padding: 12px 22px; font-size: 18px; }
.btn { transition: transform .08s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(2px); }
.btn-light { box-shadow: 0 3px 0 #d9ccb0; }

/* Hero */
.hero { min-height: clamp(540px, 60vw, 660px); display: flex; overflow: hidden; }
.hero-art { position: absolute; inset: 0; height: auto; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-inner {
  position: relative; inset: auto; z-index: 1;
  padding-top: clamp(34px, 6vw, 72px); padding-bottom: 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-logo { font-size: clamp(34px, 9vw, 100px); margin-bottom: 18px; }
.hero-tagline {
  max-width: 640px; margin: 0 auto 18px;
  background: rgba(251, 247, 236, 0.93);
  border: 2px solid rgba(122, 74, 36, 0.18);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: clamp(17px, 2.2vw, 21px); font-weight: 650; line-height: 1.45; color: var(--ink);
  box-shadow: 0 6px 18px rgba(42, 42, 34, 0.10);
}
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Status overlaps the hero edge */
.status-wrap { position: relative; z-index: 2; margin-top: -56px; }
.status { border-radius: 14px; border-width: 3px; box-shadow: 0 4px 0 rgba(122,74,36,.15), 0 14px 30px rgba(42,42,34,.10); }

/* Tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  height: 100%;
  display: flex; align-items: center; gap: 14px;
  min-height: 84px; padding: 14px 16px;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 3px 0 rgba(122,74,36,.12);
  position: relative;
}
@media (min-width: 1000px) { .tile { flex-direction: column; align-items: flex-start; min-height: 180px; padding: 18px; } .tile-go { position: absolute; right: 14px; top: 12px; } }
a.tile:hover { border-color: var(--grass); transform: translateY(-2px); color: var(--ink); }
a.tile { transition: transform .12s ease, border-color .12s ease; }
.tile-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--grass-tint); }
.tile.blue .tile-icon { background: var(--sky-tint); }
.tile.brown .tile-icon { background: var(--earth-tint); }
.tile-icon svg { width: 36px; height: 36px; }
.tile-text { display: grid; gap: 2px; }
.tile-text strong { font-size: 18px; color: var(--grass-dark); }
.tile.blue .tile-text strong { color: var(--sky-dark); }
.tile.brown .tile-text strong { color: var(--earth); }
.tile-text span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.tile-go { margin-left: auto; font-size: 28px; line-height: 1; color: var(--muted); font-weight: 700; }
.tile.disabled { background: #f4f1ea; border-style: dashed; box-shadow: none; cursor: not-allowed; }
.tile.disabled .tile-icon { background: #e9e5da; }
.tile.disabled .tile-text strong { color: #5b5a4f; }
.soon {
  margin-left: auto; flex: none;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: #fff; border: 1px solid #cfc6b2; color: #55544a; border-radius: 999px; padding: 3px 9px;
}
@media (min-width: 1000px) { .tile .soon { margin-left: 0; } }

/* What is NewEarth */
.what { background: var(--sky-tint); border-top: 4px solid var(--sky); border-bottom: 4px solid var(--sky); }
.what-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .what-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .what-list { grid-template-columns: repeat(4, 1fr); } }
.what-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 16px; border: 2px solid #cfe7f5; }
.what-list svg { width: 40px; height: 40px; flex: none; }
.what-list h3 { font-size: 18px; margin: 0 0 4px; }
.what-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* Page header band */
.page-head.band {
  background: linear-gradient(#cfeaf8, #e9f5fb 70%, #fbf7ec);
  padding: 34px 0 96px;
  position: relative;
}
.page-head.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: url("/img/band.svg") repeat-x left bottom / 800px 64px;
}
.page-head.band + .section { padding-top: 26px; }
.page-head .lead { color: #44433a; }

/* Section headings */
.section h2 + .lead { margin-top: -4px; }
.card { border-radius: 14px; }
.card h2 { font-size: clamp(22px, 3vw, 26px); }

/* Footer brand */
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px !important; }
.foot-brand svg { width: 28px; height: 28px; }
.foot-brand span { font-family: var(--pixel); font-size: 16px; color: #fff; }

/* v2: keep step screenshots modest */
.placeholder.shot{max-width:560px}

/* v2: note under a radio choice */
.choice-note{margin:-.25rem 0 .75rem 2rem;font-size:.95rem}

/* v2: promise strip, privacy line, form sections, honeypot */
.promise{display:grid;gap:.75rem;margin:1.25rem 0}
@media (min-width:720px){.promise{grid-template-columns:1fr 1fr}}
.promise p{margin:0;padding:.85rem 1rem;background:#fff;border:2px solid #cfe6b8;border-left:6px solid #3f8f2a;border-radius:10px}
.privacy{margin:0;padding:.75rem 1rem;background:#eef6ff;border:1px solid #b9d6f2;border-radius:8px}
.form-step{font-size:1.25rem;margin:.5rem 0 0;padding-top:.5rem;border-top:2px dashed #e2d6bd}
.hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* v2: cheat note under the no-cheating rule */
.rules .cheat-note{margin:.6rem 0 0;padding:.6rem .8rem;background:#fff4e5;border:1px solid #f0c48a;border-left:5px solid #c0562b}
.rules .cheat-note p{margin:0;font-size:.95rem}
.cheater-tag{display:inline-block;padding:0 .35rem;background:#2b2b2b;color:#ff5555;font-family:"Press Start 2P",monospace;font-size:.7rem;line-height:1.6;border-radius:3px;letter-spacing:.03em}

/* v3: "How NewEarth works" guide */
.how { margin: 0 0 34px; }
.how > h2, .more-guides { scroll-margin-top: 90px; }
.how .card-title { font-size: clamp(22px, 3vw, 26px); }
.how h4 { font-size: 19px; line-height: 1.25; margin: 1.3em 0 .45em; color: var(--grass-dark); scroll-margin-top: 90px; }
.how .card-title + .how-intro, .how .how-sub > h4:first-child { margin-top: 0; }
.how-intro { font-size: 18px; }
.how-split { margin-top: 18px; }
.how-sub { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.how-sub .cmds li { background: #fff; }
.how-sub > :last-child { margin-bottom: 0; }
.how code, .trust-table code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700; background: var(--grass-tint); border: 1px solid #c4e0a6; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
}
.stat-row { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-row li { background: var(--grass-tint); border: 2px solid #c4e0a6; border-radius: 10px; padding: 10px 8px; text-align: center; }
.stat-row strong { display: block; font-family: var(--pixel); font-size: clamp(13px, 3.4vw, 20px); color: var(--grass-dark); line-height: 1.4; }
.stat-row span { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.trust-table { font-size: 16px; }
.trust-table td:first-child { white-space: nowrap; width: 1%; }
.trust-table tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 760px) { ul.clean.cols-2 { columns: 2; column-gap: 32px; } ul.clean.cols-2 li { break-inside: avoid; } }
@media (max-width: 560px) {
  .trust-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .trust-table, .trust-table tbody, .trust-table tr, .trust-table td { display: block; width: auto; }
  .trust-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .trust-table tbody tr:last-child { border-bottom: 0; }
  .trust-table td { border: 0; padding: 0; white-space: normal; }
  .trust-table td:first-child { width: auto; margin-bottom: 4px; }
}
.how .cmds code { padding: 2px 7px; }
.table-wrap + .tip { margin-top: 10px; }
@media (max-width: 480px) { .how .card { padding: 16px; } .how-sub { padding: 12px; } .how-sub .cmds li { padding: 8px; } }
/* Worlds: 3 cards. On 2-column widths, let the last card span the row so it isn't left alone. */
@media (min-width: 640px) and (max-width: 959px) { .worlds-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Ping test (join page panel + compact version in the Home status box) */
.ping { margin-top: 18px; }
.ping h2 { margin-top: 0; }
.ping-server { font-weight: 700; margin: 0 0 10px; }
.ping-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ping .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.ping-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; }
.ping-progress[hidden] { display: none !important; }
.ping-spin { width: 18px; height: 18px; border: 3px solid var(--grass-tint); border-top-color: var(--grass); border-radius: 50%; animation: ping-spin .8s linear infinite; }
@keyframes ping-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ping-spin { animation-duration: 2.4s; } }
.ping-result { margin-top: 10px; }
.ping-result:empty { display: none; }
.ping-result p { margin: 0 0 4px; }
.ping-main { font-weight: 700; font-size: 18px; }
.ping-detail { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.ping-band { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 15px; font-weight: 800; vertical-align: 1px; border: 2px solid; }
.ping-good { background: var(--grass-tint); color: var(--grass-dark); border-color: var(--grass); }
.ping-ok { background: #fff4d6; color: #6b4a00; border-color: var(--sun); }
.ping-slow { background: #fbe3df; color: var(--danger); border-color: var(--danger); }
.ping-note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.ping-compact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ping-compact .ping-main { font-size: 16px; }
.ping-more { margin: 8px 0 0; font-size: 14px; }
#ping { scroll-margin-top: 90px; }

/* Form send failure (shown only when the backend isn't reachable or answers with an error) */
.form-error { background: #fbe3df; border: 2px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 12px 14px; font-weight: 700; margin: 0; }
.form-error[hidden] { display: none; }
form.form button[disabled] { opacity: .7; cursor: progress; }

/* v14: racetrack page + barter shop sign */
.race code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; background: var(--grass-tint); border: 1px solid #c4e0a6; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.race-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1000px) { .race-points { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.barter-sign { display: grid; gap: 2px; max-width: 260px; margin: 0 0 12px; padding: 12px 14px; background: #b98a4e; border: 4px solid #6b4a24; border-radius: 4px; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: #2a1a08; }
.barter-sign span { display: block; overflow-wrap: anywhere; }

/* v15: illustrations are final art, not placeholders */
.placeholder.shot { border-style: solid; }
