@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); }

:root {
  /* All Seazons: cream paper, ink outlines, sticker shadows, seasons colours. */
  --pink: #f9ddea;
  --pink-strong: #e58fb6;
  --blue: #7fb2ca;
  --blue-strong: #4f7dc6;
  --green: #a8d432;
  --yellow: #f9bb16;
  --orange: #f2611f;
  --ink: #1a1424;
  --ink-2: #3a3444;
  --muted: #6b6475;
  --line: #e3dacb;
  --bg: #fff8ee;
  --card: #ffffff;
  --ok: #2e7d4f;
  --warn: #b25e00;
  --bad: #c62828;
  --wa: #25d366;
  --radius: 20px;
  --pop: 0 4px 0 var(--ink);
  --pop-sm: 0 3px 0 var(--ink);
  --shadow: 0 8px 28px rgba(26, 20, 36, 0.12);
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--body);
}
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Mascots are decoration: small files, never in the way of a tap. */
.mascot { pointer-events: none; user-select: none; height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 16px;
  border: 2.5px solid var(--ink); background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--pop-sm); transition: transform .06s, box-shadow .06s;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.soft { background: var(--yellow); color: var(--ink); }
.btn.go { background: var(--green); color: var(--ink); }
.btn.wa { background: var(--wa); color: var(--ink); }
.btn.danger { background: #fff; border-color: var(--bad); color: var(--bad); box-shadow: 0 3px 0 var(--bad); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 13px; }
.btn.block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; flex: none;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--blue-strong); outline-offset: 2px;
}
.error-text { color: var(--bad); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px;
  box-shadow: var(--shadow); z-index: 100; max-width: calc(100% - 32px); font-weight: 700;
  bottom: calc(96px + env(safe-area-inset-bottom));
}
.toast.bad { background: var(--bad); }

.notice {
  background: #fef0c7; border: 2px solid var(--ink); border-radius: 16px;
  padding: 12px 16px; margin: 16px 0;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
