/* The game's UI colours (godot/scripts/ui/ui_style.gd) and fonts, on its sky. */
@font-face {
  font-family: "Grandstander";
  src: url("/fonts/grandstander.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1f2b45;
  --ink-2: #2c3b5c;
  --paper: #fdf3dc;
  --cream: #fffaf0;
  --scarf: #f2b134;
  --hat: #2a9d8f;
  --hat-dark: #1f7a6f;
  --rust: #e2603a;
  --sky-top: #9fd3f2;
  --line: #e6d7b5;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top) 0, #cfe9f6 320px, var(--paper) 760px) no-repeat;
  color: var(--ink);
  font: 18px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif;
}

header { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; }
header img { display: block; width: 100%; height: auto; }

main { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; }

h1, h2, legend, button {
  font-family: "Grandstander", "Atkinson Hyperlegible", system-ui, sans-serif;
}

h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
h2 {
  font-size: 1.4rem; font-weight: 800; margin: 32px 0 8px; color: var(--hat-dark);
  border-bottom: 3px solid var(--scarf); padding-bottom: 4px;
}
h2:first-of-type { margin-top: 8px; }
h2 .opt { font: 400 1rem "Atkinson Hyperlegible", sans-serif; color: var(--ink-2); }

.card {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 6px 0 rgba(31, 43, 69, 0.08);
}

.intro p { margin: 6px 0; }
.small, .hint { font-size: 0.95rem; color: var(--ink-2); }
.hint { margin: 2px 0 6px; }

.q { margin: 18px 0; border: 0; padding: 0; min-width: 0; }
.q > label, legend { display: block; font-weight: 700; margin-bottom: 6px; }
legend { font-size: 1.1rem; font-weight: 700; padding: 0; }

input[type="text"], input:not([type]), input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 104px; }
input:focus, select:focus, textarea:focus, .pill input:focus-visible + span, button:focus-visible {
  outline: 3px solid var(--scarf);
  outline-offset: 2px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  user-select: none;
}
.pill input:checked + span { background: var(--hat); border-color: var(--hat-dark); color: #fff; font-weight: 700; }
.pill:hover span { border-color: var(--hat); }

.privacy { margin: 24px 0 8px; font-size: 0.95rem; color: var(--ink-2); }
.privacy summary { cursor: pointer; font-weight: 700; color: var(--ink); }

button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--scarf);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 5px 0 #c98c1c;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }
button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c98c1c; }

.problem {
  background: #fde6dd; border: 2px solid var(--rust); color: #7a2a12;
  border-radius: 12px; padding: 10px 14px; font-weight: 700;
}

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

a { color: var(--hat-dark); }

footer {
  max-width: 720px; margin: 0 auto; padding: 8px 16px 32px;
  font-size: 0.85rem; color: var(--ink-2); text-align: center;
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .card { padding: 16px; border-radius: 14px; }
  h1 { font-size: 1.7rem; }
}
