/* Shared look for the montun.dk front page and wish lists, matching the game. */
:root {
  --paper: #f7f2e7;
  --ink: #2b2a28;
  --ink-soft: #5d5a54;
  --accent: #e5484d;
  --accent-2: #2f6fd6;
  --yellow: #ffd84a;
  --yellow-hi: #ffe57d;
  --card: rgba(255, 252, 244, 0.95);
  --shadow: rgba(43, 42, 40, 0.25);
  --hand: "Segoe Print", "Chalkboard SE", "Comic Sans MS", "Comic Neue", cursive, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  color: var(--ink);
  font-family: var(--hand);
  background: var(--paper) url("papir.webp") 0 0 / 420px auto repeat;
}

.card {
  position: relative;
  width: min(100%, 640px);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px 14px 20px 12px;
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 22px clamp(16px, 5vw, 36px) 26px;
  text-align: center;
}

.logo { display: block; width: min(86%, 420px); height: auto; margin: 4px auto 6px; }

h1 {
  margin: 0.1em 0 0.3em;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
  color: var(--accent);
  transform: rotate(-2deg);
}

p { margin: 0.5em 0; font-size: clamp(15px, 3.6vw, 18px); line-height: 1.4; }
.help { color: var(--ink-soft); }

/* Cut-out family faces, stuck on like stickers. */
.faces {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px clamp(0px, 1vw, 8px);
}
.faces img {
  display: block;
  width: clamp(54px, 15vw, 96px);
  height: auto;
  filter: drop-shadow(2px 3px 0 var(--shadow));
}
.faces li:nth-child(odd) img { transform: rotate(-4deg); }
.faces li:nth-child(even) img { transform: rotate(3deg) translateY(4px); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin: 18px 0 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--hand);
  font-size: clamp(18px, 4.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 14px 10px 16px 9px;
  padding: 8px 24px;
  box-shadow: 2px 3px 0 rgba(43, 42, 40, 0.35);
  cursor: pointer;
}
.btn:hover { background: var(--yellow-hi); }
.btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(43, 42, 40, 0.35); }
.btn.secondary { background: #fff; }
.btn.secondary:hover { background: #fffbea; }
.btn:focus-visible, .back:focus-visible, input:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Decorations from the drawings; purely visual. */
.deco { position: absolute; height: auto; pointer-events: none; }
.deco.sun { width: clamp(54px, 13vw, 92px); top: -26px; right: clamp(-18px, -2vw, -6px); transform: rotate(8deg); }

/* Wish list page */
.back { display: inline-block; margin-bottom: 4px; color: var(--ink-soft); font-size: 16px; }
.back:hover { color: var(--ink); }

.lists { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 12px; }
.lists .btn { width: 100%; justify-content: flex-start; padding: 6px 18px 6px 10px; text-align: left; }
.lists .btn img { width: 46px; height: auto; flex: none; }
.lists .btn .go { margin-left: auto; font-size: 0.9em; }
.lists li:nth-child(even) .btn { background: #fff; }
.lists li:nth-child(even) .btn:hover { background: #fffbea; }

form.login { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0 4px; }
form.login input {
  font: inherit;
  font-size: 20px;
  min-height: 48px;
  width: min(100%, 240px);
  padding: 6px 14px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px 9px 14px 8px;
}
.error { color: var(--accent); font-weight: 700; }
