/* Gemoedsrus Kompetisie — public surface. Tokens from DESIGN.md */
:root {
  --green: #1EA75A; --green-deep: #137A40; --green-ink: #0B3F22; --green-soft: #DDF3E6;
  --orange: #F28C1E; --orange-deep: #D9711A; --orange-soft: #FDEBD6;
  --red: #E2453C; --red-soft: #FCE4E2;
  --cream: #FBF7EF; --cream-2: #F3ECDD; --cream-3: #E6DCC6;
  --ink: #1B2A22; --ink-2: #4A5A50;
  --shadow: 0 10px 30px -12px rgba(11,63,34,.25);
  --r-card: 14px; --r-ctl: 10px;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 16px/1.5 var(--font); min-height: 100vh;
  display: flex; flex-direction: column;
  accent-color: var(--green); caret-color: var(--green-deep);
}
::selection { background: var(--orange-soft); color: var(--green-ink); }
a { color: var(--green-deep); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid rgba(30,167,90,.45); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; color: var(--green-ink); }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.tabular { font-variant-numeric: tabular-nums; }

/* header / footer */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; max-width: 560px; width: 100%; margin: 0 auto; }
.site-brand { -webkit-tap-highlight-color: transparent; }
.site-brand img { display: block; width: 200px; height: auto; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.lang { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--green-deep); padding: 8px 12px; border-radius: 999px; background: var(--cream-2); }
.lang:hover { background: var(--cream-3); }
.site-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; }
.site-foot { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.site-foot .powered { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; opacity: .8; }

/* hero */
.hero { padding: 12px 0 20px; }
.hero h1 { margin-bottom: 8px; }
.hero .intro { color: var(--ink-2); font-size: 15px; }
.grand { margin-top: 16px; display: flex; align-items: center; gap: 12px; background: var(--orange-soft); border-radius: var(--r-card); padding: 12px 14px; color: var(--green-ink); }
.grand svg { flex: none; width: 28px; height: 28px; }
.grand strong { display: block; font-weight: 800; font-size: 19px; line-height: 1.2; }
.grand span { font-size: 13px; color: var(--orange-deep); font-weight: 700; }

/* hero extras */
.hero .subtitle { font-size: 18px; font-weight: 800; color: var(--orange-deep); margin: 4px 0 10px; letter-spacing: -0.01em; }
.how { margin-top: 18px; background: #fff; border-radius: var(--r-card); padding: 16px 18px; box-shadow: var(--shadow); }
.how h2 { font-size: 17px; margin-bottom: 8px; }
.how ol { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.how li { position: relative; padding: 6px 0 6px 38px; font-size: 15px; color: var(--ink-2); counter-increment: step; }
.how li::before { content: counter(step); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.notice { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); border-radius: var(--r-ctl); padding: 12px 14px; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.thanks { text-align: center; }
.thanks .text { white-space: pre-wrap; margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.55; text-align: left; }
[hidden] { display: none !important; }

/* card */
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 20px; }
.card + .card { margin-top: 16px; }
.card h2 { margin-bottom: 14px; }

/* form */
.field { margin-bottom: 14px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--green-ink); }
.field .opt { font-weight: 500; color: var(--ink-2); font-size: 12px; margin-left: 6px; }
.field .hint, .hint { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.field .err { font-size: 13px; color: var(--red); margin-top: 5px; font-weight: 700; }
.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--cream-3); border-radius: var(--r-ctl); padding: 13px 14px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #7C8A80; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,167,90,.28); }
.input[aria-invalid="true"] { border-color: var(--red); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23137A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--cream-3); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .15s ease-out; }
.choice input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,167,90,.28); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; }
.check + .check { border-top: 1px solid var(--cream-2); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; }
.check a { font-weight: 700; }
.note { font-size: 13px; color: var(--ink-2); padding: 12px 14px; background: var(--cream); border-radius: var(--r-ctl); margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.alert-err { background: var(--red-soft); color: #8E1F18; }
.alert-ok { background: var(--green-soft); color: var(--green-ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font: inherit; font-weight: 800; font-size: 17px; color: #fff; background: var(--green);
  border: 0; border-radius: var(--r-ctl); padding: 16px 20px; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(19,122,64,.6); transition: background .15s ease-out, transform .15s ease-out;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-orange { background: var(--orange); box-shadow: 0 8px 20px -10px rgba(217,113,26,.6); }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--green-deep); box-shadow: none; border: 1.5px solid var(--cream-3); }
.btn-ghost:hover { background: var(--cream-2); }

/* sheet (terms / popia) */
.sheet { position: fixed; inset: 0; background: rgba(11,63,34,.45); display: none; align-items: flex-end; justify-content: center; z-index: 20; padding: 0; }
.sheet.open { display: flex; }
.sheet-body { background: #fff; width: 100%; max-width: 560px; max-height: 85vh; border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); overflow: auto; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.sheet-body h2 { margin-bottom: 12px; }
.sheet-body .text { white-space: pre-wrap; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.sheet-body .btn { margin-top: 16px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* wheel */
.wheel-wrap { position: relative; width: min(100%, 360px); margin: 8px auto 0; aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 18px 40px -18px rgba(11,63,34,.45); }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 34px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; }
.wheel-hub img { width: 34px; height: 34px; }
.spin-cta { margin-top: 20px; }
.spin-cta .btn { font-size: 19px; padding: 18px 20px; }
.result { display: none; }
.result.show { display: block; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.prize-card { text-align: center; padding: 26px 20px; background: var(--green-ink); color: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); }
.prize-card .kicker-free { font-size: 14px; color: #BFE9CF; font-weight: 700; }
.prize-card h2 { color: #fff; font-size: 28px; margin: 6px 0 4px; }
.prize-card .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.prize-card .claim { margin-top: 14px; font-size: 13px; color: #DDF3E6; }
.prize-card .claimed { margin-top: 14px; display: inline-block; background: var(--orange); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.ticket { margin-top: 16px; text-align: center; padding: 22px 20px; border: 2px dashed var(--cream-3); border-radius: var(--r-card); background: #fff; }
.ticket .num { font-size: 40px; font-weight: 800; letter-spacing: .02em; color: var(--green-deep); font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0 10px; }
.ticket .lbl { font-size: 14px; font-weight: 700; color: var(--green-ink); }
.ticket p { font-size: 13px; color: var(--ink-2); }
.drawn { margin-top: 16px; background: var(--orange); color: #fff; border-radius: var(--r-card); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.drawn h2 { color: #fff; font-size: 26px; }
.drawn p { margin-top: 6px; font-size: 14px; color: #FFF3E5; }
.links { margin-top: 18px; text-align: center; font-size: 14px; }

/* grand-draw panel (countdown + reels + winners) */
.draw-panel { margin-top: 18px; background: var(--green-ink); color: #FBF7EF; border-radius: var(--r-card); padding: 18px 16px 16px; box-shadow: var(--shadow); text-align: center; }
.page-ticket .draw-panel { margin-top: 16px; }
.dp-head { margin-bottom: 14px; }
.dp-kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #F9C58B; }
.dp-when { margin-top: 6px; font-size: 14px; font-weight: 700; color: #DDF3E6; text-wrap: balance; }
.dp-count-wrap { margin-top: 6px; display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dp-count-lbl { font-size: 13px; font-weight: 700; color: #8FCFA9; }
.dp-count-lbl:empty { display: none; }
.dp-count { font-size: 36px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: #fff; }
.draw-panel.is-due .dp-count { font-size: 18px; color: #F9C58B; animation: dp-pulse 1.4s ease-in-out infinite; }
.draw-panel .slot { padding: 12px 10px; gap: 6px; border-width: 2px; border-radius: 16px; --h: clamp(40px, 9vw, 56px); }
.draw-panel .reel { border-radius: 8px; }
.draw-panel.is-drawing .slot { border-color: #fff; }
.dp-winner { margin-top: 14px; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.dp-wlabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #8FCFA9; }
.dp-wname { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; margin-top: 4px; letter-spacing: -0.01em; }
.dp-wprize { font-size: 15px; font-weight: 700; color: #F9C58B; margin-top: 4px; }
.draw-panel.is-won .dp-winner { animation: dp-pop .8s cubic-bezier(.2,.9,.3,1.2); }
.dp-list { margin-top: 16px; text-align: left; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.dp-list h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8FCFA9; margin-bottom: 6px; }
.dp-list ol { margin: 0; padding-left: 18px; font-size: 14px; color: #FBF7EF; }
.dp-list li { padding: 3px 0; }
.dp-list li#dp-empty { list-style: none; margin-left: -18px; }
.dp-list .t { color: #F9C58B; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-list .m { color: #8FCFA9; font-size: 13px; }
@keyframes dp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes dp-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .draw-panel.is-due .dp-count, .dp-winner, .draw-panel.is-won .dp-winner { animation: none; } }

/* closed / check */
.state { text-align: center; padding: 30px 0 10px; }
.state svg { width: 64px; height: 64px; margin-bottom: 14px; }
.state h1 { font-size: 28px; margin-bottom: 8px; }
.state p { color: var(--ink-2); }
.check-form { margin-top: 20px; }
.check-form .input { font-size: 22px; text-align: center; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .result.show, .sheet-body { animation: none; } }

/* wizard */
.step { display: none; }
.step.active { display: block; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.card.step + .card.step { margin-top: 0; }
.progress-wrap { margin: 4px 0 14px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 700; color: var(--green-ink); margin-bottom: 6px; }
.progress-label span:first-child { color: var(--ink-2); white-space: nowrap; }
.progress-label span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--cream-3); overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.wizard-nav { display: flex; gap: 10px; margin-top: 18px; }
.wizard-nav .btn { width: auto; flex: 1 1 0; min-width: 0; }
.wizard-nav #back-btn { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.wizard-nav .btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .step.active { animation: none; } }

/* instant-prize popup */
body.modal-open { overflow: hidden; }
.spin-modal { position: fixed; inset: 0; z-index: 30; background: rgba(11,63,34,.92); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadein .3s ease-out; overflow: auto; }
.spin-modal.closing { animation: fadeout .3s ease-out forwards; }
.spin-box { width: 100%; max-width: 420px; background: var(--cream); border-radius: 22px; padding: 26px 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); text-align: center; animation: rise .45s cubic-bezier(.2,.8,.2,1); }
.spin-stage h1 { font-size: 28px; }
.spin-stage .intro { color: var(--ink-2); margin-top: 4px; }
.spin-win { position: relative; padding: 10px 0 4px; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.win-label { font-size: 15px; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: .12em; }
.win-prize { font-size: 34px; font-weight: 800; color: var(--green-ink); line-height: 1.15; margin: 10px 0 12px; letter-spacing: -0.02em; }
.win-prize .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; }
.win-note { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.burst { position: absolute; left: 50%; top: 32px; width: 0; height: 0; pointer-events: none; }
.burst span { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); animation: burst 1s cubic-bezier(.1,.8,.3,1) forwards; }
.burst span:nth-child(2n) { background: var(--green); } .burst span:nth-child(3n) { background: var(--red); border-radius: 50%; }
.burst span:nth-child(1) { --dx: -120px; --dy: -60px; } .burst span:nth-child(2) { --dx: 120px; --dy: -70px; }
.burst span:nth-child(3) { --dx: -150px; --dy: 10px; } .burst span:nth-child(4) { --dx: 150px; --dy: 0px; }
.burst span:nth-child(5) { --dx: -70px; --dy: -110px; } .burst span:nth-child(6) { --dx: 70px; --dy: -120px; }
.burst span:nth-child(7) { --dx: -40px; --dy: 60px; } .burst span:nth-child(8) { --dx: 50px; --dy: 70px; }
@keyframes burst { from { transform: translate(0,0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(260deg) scale(.4); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
