/* Startpagina van verfpesten.nl: highscores, nieuw spel, meedoen. */

.home {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 16px 48px;
  animation: pop-in 0.32s ease-out both;
}

.home .logo {
  text-align: center;
  font-size: clamp(38px, 11vw, 62px);
  color: var(--gold);
  text-shadow: var(--outline);
  animation: wiggle 3.6s ease-in-out infinite;
  margin-bottom: 2px;
}
.tagline {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 26px;
}

.home-actions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }

.join-card { padding: 18px; }
/* De spelcode is kort: groot, gespatieerd en midden in beeld typt het lekkerst. */
#code-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 12px;
  text-align: center;
  text-indent: 12px; /* compenseert de spatie achter de laatste letter */
  color: #fff;
  background: #10204f;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
  padding: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
#code-input::placeholder { color: rgba(255, 255, 255, 0.28); }
#code-input:focus {
  outline: none;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 0 4px var(--yellow);
}

.error {
  background: #4a1220;
  border: 3px solid #ff5a63;
  border-radius: var(--radius-sm);
  color: #ffc9ce;
  font-size: 16px;
  font-weight: 800;
  padding: 9px 11px;
  margin-bottom: 12px;
}

.scores-card, .rules-card { margin-bottom: 18px; }
.scores-card h2, .rules-card h2 { font-size: 25px; margin-bottom: 14px; }

.highscores { list-style: none; }
.highscores li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "plek naam punten" "plek detail punten";
  align-items: center;
  gap: 2px 12px;
  background: var(--soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), var(--sticker-sm);
  padding: 9px 13px;
  margin-bottom: 10px;
  animation: pop-in 0.3s ease-out both;
}
.hs-plek {
  grid-area: plek;
  font-family: var(--font-display);
  font-size: 24px;
  min-width: 34px;
  text-align: center;
}
.hs-naam {
  grid-area: naam;
  font-family: var(--font-display);
  font-size: 21px;
  overflow-wrap: anywhere;
}
.hs-detail { grid-area: detail; font-size: 14px; color: var(--muted); font-weight: 700; }
.hs-punten {
  grid-area: punten;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 11px;
  box-shadow: 0 3px 0 0 var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  padding: 3px 11px;
  white-space: nowrap;
}

.mini-rules { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.mini-rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.mini-rules span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 0 var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

/* --- de makers: hangt als ondertitel aan het logo --- */
.makers {
  margin: 0 0 26px;
  text-align: center;
  animation: pop-in 0.4s ease-out both;
}
.makers-logo {
  width: 150px;
  max-width: 48%;
  height: auto;
  display: block;
  margin: -2px auto 2px;
  filter: drop-shadow(0 5px 0 rgba(6, 10, 28, 0.5));
  animation: bob 4s ease-in-out infinite;
}
.makers-tekst {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--muted);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-deep) 100%);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), var(--sticker-sm);
  padding: 7px 18px;
  transform: rotate(-1.5deg);
}
.makers-tekst strong {
  color: var(--gold);
  font-size: 23px;
  text-shadow: 0 2px 0 var(--ink);
}
.makers-en { color: var(--muted); }

