/* walkaloot.com — the game's night palette and its one rule: solid fill, cream rim, hard shadow
   straight down (docs/BRAND.md). Night only, like the app. */

:root {
  --sky: #262c55;
  --sky-deep: #1e2447;
  --cloud: #3e4884;
  --cloud-light: #5660a6;
  --shadow: #141a3a;
  --gold: #ffc845;
  --gold-deep: #e0a300;
  --gold-soft: #ffe9ae;
  --cream: #fff8ea;
  --teal: #0e4f48;
  --berry: #ff5c7a;
  --grass: #9ed370;
  --text: #fff8ea;
  --muted: #c6d2f7;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--sky);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

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

h1, h2, h3, .wordmark { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; letter-spacing: 0.01em; }

h1 { font-size: 2.2rem; margin: 0 0 0.4em; }
h2 { font-size: 1.5rem; margin: 1.4em 0 0.4em; }
h3 { font-size: 1.15rem; margin: 0.8em 0 0.3em; }

.wordmark {
  display: inline-block;
  color: var(--gold);
  font-size: 2.6rem;
  transform: rotate(-3deg);
  text-shadow: 0 0.11em 0 var(--teal);
  text-decoration: none;
}

.page { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card {
  background: var(--sky-deep);
  border: 3px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow);
  padding: 18px;
  margin: 0 0 18px;
}

.card.gold { background: var(--gold); color: var(--teal); }
/* Plain links only: a .button carries its own colours, and this used to override them, which made
   the teal button on the business page teal-on-teal (2026-10-02). */
.card.gold a:not(.button) { color: var(--teal); }

.button, button {
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border: 3px solid var(--cream);
  border-radius: 14px;
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--shadow);
  cursor: pointer;
  text-decoration: none;
  transition: transform 60ms, box-shadow 60ms;
}

.button:active, button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shadow); }
.button.gold, button.gold { background: var(--gold); color: var(--teal); }
.button.quiet, button.quiet { background: var(--cloud); }
.button.danger, button.danger { background: var(--berry); color: var(--teal); }
button:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 0 5px 0 var(--shadow); }

.lang { background: var(--cloud); min-height: 36px; padding: 4px 12px; font-size: 0.9rem; }

label { display: block; font-weight: 700; margin: 12px 0 4px; }

input[type=text], input[type=email], input[type=number], input[type=datetime-local], textarea, select {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 3px solid var(--cream);
  border-radius: 12px;
  background: var(--cream);
  color: var(--teal);
  font-weight: 700;
}

textarea { resize: vertical; min-height: 70px; }

input[type=range] { width: 100%; accent-color: var(--gold); }
input[type=checkbox] { accent-color: var(--gold); width: 20px; height: 20px; vertical-align: middle; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.tier {
  background: var(--sky-deep);
  border: 3px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow);
  padding: 16px;
}

.tier .price { font-family: "Lilita One", sans-serif; font-size: 2rem; color: var(--gold); }

.tier-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-choice label {
  flex: 1 1 160px;
  margin: 0;
  padding: 10px 12px;
  border: 3px solid var(--cream);
  border-radius: 14px;
  background: var(--cloud);
  cursor: pointer;
}
.tier-choice input { margin-right: 6px; }
.tier-choice label:has(input:checked) { background: var(--gold); color: var(--teal); }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.error { color: var(--berry); font-weight: 700; }
.ok { color: var(--grass); font-weight: 700; }
.hidden { display: none !important; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cloud);
  font-size: 0.8rem;
  font-weight: 800;
}
.pill.draft { background: var(--cloud-light); }
.pill.pending { background: var(--gold-soft); color: var(--teal); }
.pill.active { background: var(--grass); color: var(--teal); }
.pill.ended, .pill.cancelled { background: var(--cloud); color: var(--muted); }

ul.steps { padding-left: 1.2em; }
ul.steps li { margin: 0.3em 0; }

footer { margin-top: 40px; color: var(--muted); font-size: 0.85rem; }

/* The portal: a sidebar and the map. */
.portal {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  height: 100vh;
}

.side {
  overflow-y: auto;
  padding: 16px;
  border-right: 3px solid var(--shadow);
}

#map { width: 100%; height: 100%; min-height: 360px; }

.drop-item {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 10px;
  background: var(--cloud);
  min-height: 0;
  padding: 10px 12px;
}
.drop-item .title { font-weight: 800; }
.drop-item.selected { background: var(--gold); color: var(--teal); }

.picture-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  object-fit: cover;
  background: var(--cloud);
}

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; margin-top: 6px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--teal); vertical-align: -1px; margin-right: 4px; }
.dot.gold { background: var(--gold); }
.dot.found { background: var(--grass); }
.dot.struck { background: #9aa4b2; }

.code-input { letter-spacing: 0.4em; font-size: 1.4rem; text-align: center; }

@media (max-width: 760px) {
  .portal { grid-template-columns: 1fr; grid-template-rows: auto 60vh; height: auto; }
  .side { border-right: none; border-bottom: 3px solid var(--shadow); }
  #map { height: 60vh; }
  h1 { font-size: 1.8rem; }
}
