@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root {
  /* Wijzig deze variabelen voor de huisstijl. */
  --gold-light: #f9eab6; --gold: #d9a34f; --gold-deep: #996018;
  --ink: #28221d; --cream: #fff9e9; --paper: #fffdf6;
  --radius: 26px; --shadow: 0 24px 80px #4e2c0933;
  font-family: 'DM Sans', Arial, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { height:100vh; background: radial-gradient(ellipse at 12% 7%, #fff4cf 0%, transparent 40%), radial-gradient(ellipse at 95% 96%, #ae711f 0%, transparent 44%), linear-gradient(130deg, var(--gold-light), var(--gold) 60%, #b4772b); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .22em; font-weight: 800; }
.entry { display: grid; place-items: center; padding: 22px; }
.entry-card { width: min(100%, 510px); padding: clamp(26px, 6vw, 50px); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.entry-card::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: #eed18c50; filter: blur(24px); top: -80px; right: -60px; }
.entry-card > * { position: relative; }
.entry .eyebrow { color: var(--gold-deep); }
.entry h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); letter-spacing: -.055em; line-height: 1.08; margin: 0 0 12px; }
.entry p { line-height: 1.5; }
.entry-card > p { margin: 0 0 29px; color: #675d51; }
fieldset { padding: 0; margin: 0 0 24px; border: 0; }
legend, .field-label { font-weight: 800; font-size: .96rem; margin-bottom: 10px; display: block; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 55px; margin: 8px 0; padding: 12px 14px; border: 1px solid #ded3bd; border-radius: 13px; cursor: pointer; transition: border .2s, background .2s; }
.choice:has(input:checked) { border-color: #9e671d; background: #f9edce; }
.choice input { width: 20px; height: 20px; accent-color: #98601b; margin: 0; }
#number, #pin { display: block; width: 100%; height: 56px; border: 1px solid #c5bca8; border-radius: 12px; background: white; padding: 0 15px; color: var(--ink); font-size: 1.12rem; }
#number:focus, #pin:focus, button:focus-visible, .choice:focus-within { outline: 3px solid #74501b; outline-offset: 2px; }
small { font-size: .78rem; color: #65594a; line-height: 1.5; }
.field-label + input + small { display: block; margin: 8px 0 22px; }
.primary { border: 0; border-radius: 100px; background: var(--ink); color: white; font-weight: 800; min-height: 58px; padding: 0 27px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; transition: transform .2s, box-shadow .2s; }
.primary:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 9px 24px #21170e40; }
.entry .primary { width: 100%; }
.primary span { font-size: 1.35rem; }
.feedback { min-height: 1.5em; color: #7c321b; margin: 12px 0 0; font-weight: 700; }
.success { text-align: center; padding: 14px 0; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; background: #dfbd6c; border-radius: 50%; color: white; font-size: 2.3rem; }
.success h2 { font-size: 2.5rem; margin: 15px 0 3px; }
.success p { font-size: 1.24rem; margin: 0 0 20px; }
.success strong { color: #945e18; font-variant-numeric: tabular-nums; }
.draw { min-height: 100svh; overflow-x: hidden; }
.stage { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3.6vw, 56px) clamp(22px, 5vw, 86px); position: relative; isolation: isolate; overflow: hidden; }
.stage::before, .stage::after { content: ''; position: absolute; z-index: -1; width: 48vw; aspect-ratio: 1; border: 1px solid #fff8d95e; border-radius: 50%; }
.stage::before { left: -22vw; bottom: -25vw; box-shadow: 0 0 0 8vw #fff8d911, 0 0 0 16vw #fff8d912; }
.stage::after { right: -23vw; top: -32vw; box-shadow: 0 0 0 9vw #fff8d911, 0 0 0 18vw #fff8d912; }
.stage-top, .stage-bottom { display: flex; justify-content: flex-end; align-items: center; }
.stage-top .eyebrow { color: #5c3d1d; }
.stage-sparkle { font-size: 3rem; color: #fff5c7; }
.stage-center { margin: 10px auto 35px; text-align: center; width: min(100%, 1150px); }
.kicker { margin: 0 0 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .25em; font-size: clamp(.78rem, 1.4vw, 1.05rem); color: #654415; }
.stage h1 { font-size: clamp(3.2rem, 7vw, 7rem); letter-spacing: -.065em; line-height: 1; margin: 0 0 clamp(25px, 4vw, 55px); }
.digits { display: flex; gap: clamp(3px, .8vw, 10px); align-items: stretch; justify-content: center; transform-origin: center; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.digits span { display: grid; place-items: center; width: min(10.3vw, 114px); height: min(14vw, 142px); border-radius: clamp(7px, 1.3vw, 18px); background: var(--paper); box-shadow: 0 9px 0 #87572341, 0 18px 30px #6c41063d; font-size: clamp(1.7rem, 6vw, 5.5rem); font-weight: 800; color: var(--ink); line-height: 1; }
.digits.rolling span { animation: flicker .16s infinite alternate; }
.digits.rolling span:nth-child(even) { animation-delay: -.08s; }
@keyframes flicker { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.digits.winner { animation: reveal .75s cubic-bezier(.17,1.8,.24,1) both; }
@keyframes reveal { 0% {transform:scale(.94)} 65% {transform:scale(1.25)} 100% {transform:scale(1.25)} }
.stage-status { min-height: 1.5em; font-weight: 700; color: #523818; font-size: clamp(1rem, 1.5vw, 1.3rem); margin: clamp(24px, 4vw, 55px) 0 18px; }
.winner-location { display: inline-block; margin: 0 0 22px; padding: 12px 24px; border-radius: 100px; background: var(--paper); box-shadow: 0 5px 16px #6c41062b; color: var(--ink); font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 800; }
.stage-actions { display: flex; align-items: center; justify-content: center; gap: 18px; }
.spin { font-size: clamp(1.2rem, 2vw, 1.7rem); padding: 0 42px; min-height: 72px; box-shadow: 0 10px 24px #58361350; }
.reset { background: #fff6e044; border: 1px solid #51361480; color: #3f2c14; border-radius: 100px; min-height: 54px; padding: 0 21px; font-weight: 700; }
.stage-bottom { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: #62431e; }
.stage-bottom span:last-child { font-size: 1.4rem; }
.overlay { position: fixed; inset: 0; z-index: 5; background: #211c16d9; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--paper); padding: clamp(25px, 5vw, 44px); width: min(100%, 420px); border-radius: 23px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 1.9rem; line-height: 1.1; }
.login-card label { display: block; font-weight: 700; margin-bottom: 9px; }
.login-card button { margin-top: 18px; width: 100%; }
#loginError { color: #8c2419; font-weight: 700; }
@media (max-width: 720px) {
  .draw { overflow: auto; }
  .stage { min-height: 100svh; }
  .stage-center { margin: auto 0; }
  .digits.winner { animation: revealMobile .75s cubic-bezier(.17,1.8,.24,1) both; }
  @keyframes revealMobile { 0% {transform:scale(.92)} 65%,100% {transform:scale(1.08)} }
  .stage-actions { flex-wrap: wrap; }
  .spin { min-height: 61px; }
  .stage-bottom span:first-child { max-width: 70%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
