/* Larense Kermis - stemsite */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;700;900&display=swap");

:root {
  --paars: #46297a;
  --paars-donker: #33195c;
  --goud: #c9941f;
  --goud-donker: #a97a13;
  --lime: #c6d531;
  --roze: #e0197f;
  --papier: #f7f5f1;
  --inkt: #2a1a44;
  --wit: #ffffff;
  --radius: 22px;
  --schaduw: 0 10px 30px rgba(51, 25, 92, 0.15);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--inkt);
  background: var(--papier);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(198, 213, 49, 0.18), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(201, 148, 31, 0.18), transparent 40%);
  min-height: 100dvh;
}
.display { font-family: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif; letter-spacing: 0.02em; font-weight: 400; }

/* slingers boven */
.slinger {
  height: 42px;
  background:
    linear-gradient(135deg, var(--paars) 50%, transparent 50%) 0 0 / 28px 42px no-repeat,
    conic-gradient(from 150deg at 50% 0, var(--paars) 0 60deg, transparent 60deg) 0 0 / 56px 42px repeat-x;
  background: conic-gradient(from 150deg at 50% 0, var(--paars) 0 60deg, transparent 60deg) 0 0 / 56px 42px repeat-x,
              conic-gradient(from 150deg at 50% 0, var(--goud) 0 60deg, transparent 60deg) 28px 0 / 56px 42px repeat-x;
  opacity: 0.9;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; }

header.top { text-align: center; padding-top: 6px; }
header.top img { width: min(78%, 330px); height: auto; display: block; margin: 0 auto; }
h1.titel {
  font-size: clamp(52px, 17vw, 88px);
  line-height: 0.95;
  margin: 4px 0 6px;
  color: var(--paars);
  text-align: center;
}
.sterren { display: flex; align-items: center; gap: 10px; color: var(--goud); margin: 0 12px 14px; }
.sterren::before, .sterren::after { content: ""; flex: 1; height: 3px; background: var(--goud); border-radius: 2px; }
.sterren span { font-size: 22px; letter-spacing: 6px; }
.sterren span b { color: var(--paars); }

.banner {
  background: var(--paars);
  color: var(--wit);
  text-align: center;
  padding: 12px 16px;
  font-size: clamp(22px, 6.4vw, 32px);
  clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
  margin: 0 -4px 18px;
}

/* stemknoppen */
.keuzes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.of {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  background: var(--paars); color: var(--wit); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 22px; box-shadow: 0 4px 10px rgba(0,0,0,.2); pointer-events: none; z-index: 2;
}
.team {
  appearance: none; border: 4px solid; border-radius: var(--radius); background: var(--wit);
  padding: 0 0 22px; cursor: pointer; text-align: center; box-shadow: var(--schaduw);
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; color: inherit; font: inherit; overflow: hidden;
}
.team:active { transform: scale(0.97); }
.team .kop { color: var(--wit); font-size: 20px; padding: 8px 0 6px; }
.team .naam { font-size: clamp(38px, 12vw, 58px); line-height: 0.92; padding: 12px 6px 14px; }
.team .rondje { width: 64px; height: 64px; border: 5px solid; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; transition: background .2s; }
.team .rondje svg { width: 36px; height: 36px; opacity: 0; transition: opacity .2s; }
.team.gekozen .rondje { background: currentColor; }
.team.gekozen .rondje svg { opacity: 1; }
.team.loarne { border-color: var(--paars); color: var(--paars); }
.team.loarne .kop { background: var(--paars); }
.team.laorne { border-color: var(--goud); color: var(--goud); }
.team.laorne .kop { background: var(--goud); }
.team[disabled] { cursor: default; }
.team.dim { opacity: .45; filter: grayscale(.6); }

.actie { margin-top: 18px; text-align: center; }
.knop {
  appearance: none; border: 0; border-radius: 999px; padding: 16px 30px; font: inherit; font-weight: 900; font-size: 19px;
  color: var(--wit); background: var(--roze); box-shadow: 0 8px 18px rgba(224, 25, 127, .35); cursor: pointer; width: 100%;
  transition: transform .12s, opacity .2s; -webkit-tap-highlight-color: transparent;
}
.knop:active { transform: scale(.98); }
.knop[disabled] { opacity: .5; cursor: default; box-shadow: none; }
.knop.stil { background: var(--wit); color: var(--paars); box-shadow: var(--schaduw); }
.hint { margin: 12px 0 0; color: #6b5a8a; font-size: 15px; text-align: center; }

/* uitslag */
.kaart { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); padding: 20px; margin-top: 18px; }
.kaart h2 { margin: 0 0 8px; font-size: 34px; color: var(--paars); text-align: center; }
.bedankt { text-align: center; }
.bedankt .groot { font-size: clamp(40px, 12vw, 60px); line-height: 1; margin: 6px 0 4px; }
.bedankt .groot.loarne { color: var(--paars); }
.bedankt .groot.laorne { color: var(--goud); }
.balk { position: relative; height: 46px; border-radius: 999px; overflow: hidden; background: var(--goud); margin: 14px 0 8px; display: flex; }
.balk .l { background: var(--paars); height: 100%; transition: width .8s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.balk .txt { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: var(--wit); font-size: 24px; }
.legenda { display: flex; justify-content: space-between; font-weight: 700; color: #4b3b6a; font-size: 15px; }
.legenda .tot { color: #8a7ba8; font-weight: 400; }

/* speler */
.speler h2 { font-size: 30px; }
.speler .sub { text-align: center; margin: -4px 0 12px; color: #6b5a8a; }
audio { width: 100%; display: block; }
.grote-play {
  display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(135deg, var(--paars), var(--paars-donker)); color: var(--wit); font: inherit; cursor: pointer; text-align: left;
  box-shadow: var(--schaduw); -webkit-tap-highlight-color: transparent; margin-bottom: 10px;
}
.grote-play .icoon { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.grote-play .icoon svg { width: 26px; height: 26px; fill: var(--paars-donker); }
.grote-play .t1 { font-size: 26px; line-height: 1; }
.grote-play .t2 { opacity: .8; font-size: 14px; }

footer { text-align: center; margin-top: 26px; color: var(--paars); }
footer .lijn { display: flex; align-items: center; gap: 10px; color: var(--goud); margin-bottom: 8px; }
footer .lijn::before, footer .lijn::after { content: ""; flex: 1; height: 2px; background: var(--paars); opacity: .4; }
footer .slogan { font-size: clamp(20px, 6vw, 28px); line-height: 1.1; }
footer .klein { margin-top: 14px; font-size: 13px; color: #8a7ba8; }
footer .klein a { color: inherit; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--inkt); color: var(--wit); padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: .25s; max-width: 90vw; text-align: center;
}
.toast.aan { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 2px; animation: val 2.6s ease-in forwards; }
@keyframes val { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }

@media (min-width: 700px) {
  .wrap { padding-top: 20px; }
}

/* songtekst */
.tekst { margin-top: 14px; border-top: 2px dashed #e4dff0; padding-top: 12px; }
.tekst summary { list-style: none; cursor: pointer; font-size: 26px; color: var(--paars); text-align: center; padding: 10px; border-radius: 12px; background: #f3f0fa; -webkit-tap-highlight-color: transparent; }
.tekst summary::-webkit-details-marker { display: none; }
.tekst summary::after { content: " ▾"; font-size: 20px; }
.tekst[open] summary::after { content: " ▴"; }
.tekst-inhoud { padding: 6px 4px 0; text-align: center; font-size: 17px; line-height: 1.5; }
.tekst-inhoud h3 { font-size: 24px; color: var(--goud); margin: 18px 0 4px; letter-spacing: .04em; }
.tekst-inhoud h3:first-child { margin-top: 8px; }
.tekst-inhoud p { margin: 0 0 12px; }
.tekst-inhoud .refrein b { color: var(--paars); }
.tekst-inhoud .slot b:last-child { color: var(--roze); font-size: 1.15em; }
