/* landing-site.css: part of landing.html's styles, linked from it in order (the cascade depends on the order). */
/* Same tokens as the game shell (index.html) and client/src/art/palette.ts. */
:root {
  --paper: #fff4dc;
  --horizon: #fcefd6;
  --ink: #15111c;
  --ink-soft: #4a4252;
  --red: #ef4d4d;
  --blue: #3d7cf2;
  --yellow: #ffd23f;
  --green: #2fae72;
  --sky: #86c8ec;
  --sand: #f0d9a8;
  --sand-shade: #cdb59f;
  --cyan: #4fb3d9;
  --coral: #ef6f6c;
  --pink: #f28fb1;
  --plate: #3d7cf2;
  --discord: #5865f2;
  --font: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --head: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.55 var(--head);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}
p {
  margin: 0 0 1em;
}
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.num {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Comic print primitives: paper, ink border, hard offset shadow, halftone. */
.panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.dots {
  background-image: radial-gradient(rgba(21, 17, 28, 0.14) 22%, transparent 25%);
  background-size: 10px 10px;
}
.logo {
  font: 900 28px/1 var(--head);
  letter-spacing: -1px;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke;
  text-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}
.logo .tld {
  /* ".COM" as the maps' signs paint it (art/logo.ts): the same letters at 0.42 of the word, on its baseline */
  margin-left: 0.04em;
  font-size: 0.42em;
  letter-spacing: -0.04em;
  -webkit-text-stroke-width: 1px;
  text-shadow: 1.5px 1.5px 0 var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font: 900 17px/1 var(--head);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn.big {
  padding: 18px 34px;
  font-size: 26px;
  box-shadow: 6px 6px 0 var(--ink);
}
.btn.paper {
  background: var(--paper);
}

/* ---------- Top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.bar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.bar nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 800;
}
.bar nav a {
  text-decoration: none;
}
.bar nav a:hover {
  text-decoration: underline;
}
.bar .fb-btn {
  padding: 9px 14px;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
.fb-btn svg {
  width: 18px;
  height: 18px;
}
/* Discord stays in the bar on phones too, as its icon alone. */
.bar .discord-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.discord-link svg {
  width: 22px;
  height: 22px;
  color: var(--discord);
}
@media (max-width: 860px) {
  .bar nav .opt {
    display: none;
  }
  .discord-link span {
    display: none;
  }
  .bar .wrap {
    gap: 14px;
  }
  .bar .btn {
    padding: 9px 14px;
  }
}
/* Phones: the bubble alone, so logo, links and PLAY still fit on one line. */
@media (max-width: 480px) {
  .bar .fb-btn {
    padding: 9px 10px;
  }
  .fb-btn span {
    display: none;
  }
}
/* Very narrow phones (320 px): a smaller logo and tighter gaps, or PLAY pushes the page sideways. */
@media (max-width: 380px) {
  .bar .wrap {
    gap: 8px;
  }
  .bar .logo {
    font-size: 22px;
  }
  .bar nav {
    gap: 10px;
  }
  .bar .btn {
    padding: 9px 10px;
  }
}

/* ---------- Feedback form (client/src/feedback.ts, the same form as in the game) ---------- */
#feedback {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px 22px;
  /* The second shadow dims the page behind the card. */
  box-shadow:
    6px 6px 0 var(--ink),
    0 0 0 100vmax rgba(21, 17, 28, 0.45);
}
#feedback[hidden] {
  display: none;
}
#feedback h2 {
  font: 900 28px/1 var(--head);
  margin-bottom: 8px;
}
.fb-lead {
  margin: 0 0 10px;
  font-weight: 700;
}
.fb-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  font-weight: 800;
}
#fb-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 3px solid var(--ink);
  background: #fff;
  font: 14px var(--font);
  resize: vertical;
}
#fb-status {
  min-height: 18px;
  margin: 6px 0;
  font-weight: 800;
}
.fb-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.fb-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Hero: the yard scene ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, #b9def0 45%, var(--horizon) 62%);
  border-bottom: 3px solid var(--ink);
}
.scene {
  width: 100%;
  /* Slim: the yard is a banner, and "Gear up" below shows above the fold. */
  height: clamp(380px, calc((100vh - 64px) * 0.6), 540px);
}
.scene .t {
  font-family: var(--head);
  font-weight: 900;
}
.cloud {
  animation: drift 46s ease-in-out infinite alternate;
}
.cloud.slow {
  animation-duration: 70s;
}
.blimp {
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(40px);
  }
}
.spot {
  cursor: pointer;
  outline: none;
}
/* Opacity only: a CSS transform would replace the tag's SVG transform attribute. */
.spot .tag {
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.spot:hover .tag,
.spot:focus .tag,
.spot:focus-visible .tag {
  opacity: 1;
}
.spot:focus-visible .hit {
  stroke: var(--yellow);
  stroke-width: 8;
}
.join {
  display: flex;
  gap: 12px;
}
.join input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 700 20px var(--head);
  outline: none;
}
.join input:focus {
  background: #fffbe9;
  box-shadow: 0 0 0 4px var(--yellow);
}
.join-error {
  min-height: 22px;
  margin: 6px 0 4px;
  color: #b3261e;
  font-weight: 800;
  font-size: 15px;
}
.phone-note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.sale-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 16px;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1.5deg);
}
@media (max-width: 760px) {
  .scene {
    height: 320px;
  }
  .sale-hint {
    position: static;
    display: block;
    width: fit-content;
    max-width: calc(100% - 2 * var(--gutter));
    margin: 0 auto 24px;
    translate: none;
    white-space: normal;
    transform: none;
  }
}
