/* Kwistig: /maken. Een werkpagina in dezelfde lobby-sfeer: rustiger, alles binnen één schermbreedte leesbaar. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--kroegzwart); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--body)/1.6 var(--tekstletter); color: var(--tekst); background: var(--kroegzwart); overflow-x: hidden; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--kop); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--messing-licht); outline-offset: 3px; border-radius: 8px; }
.overslaan { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--schuim); color: var(--inkt); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.overslaan:focus { top: 16px; }
.val { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.kopband-balk, .kopband-inhoud, .werk, .voet, .kleef { position: relative; z-index: 2; }

/* knoppen (gelijk aan de landing) */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; font: 700 1.2rem/1.1 var(--tekstletter); text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--on); background: var(--accent); border: 0; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 12px 28px -10px var(--glow); transition: transform .12s var(--uit), filter .12s; }
.knop:hover { filter: brightness(1.06); }
.knop:active { transform: translateY(2px); }
.knop:disabled { cursor: not-allowed; color: rgba(14, 30, 63, .55); background: #b9ad9c; box-shadow: none; filter: none; transform: none; }
.knop-groot { width: 100%; min-height: 64px; font-size: 1.3rem; border-radius: 16px; }

/* ------------------------------------------------------------------ kop (maten uit de mockup) */
.kopband { position: relative; min-height: 640px; overflow: hidden; }
.kopband-beeld { position: absolute; inset: 0; z-index: 0; transform: scale(1.05); background: var(--podium-16x9) center bottom / cover no-repeat, var(--kroegzwart); }
.kopband-beeld::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19, 13, 9, .7), rgba(19, 13, 9, .35) 40%, var(--kroegzwart) 100%); }
.kopband::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, var(--accent), transparent 70%); opacity: .22; }
@media (max-aspect-ratio: 4/5) { .kopband-beeld { background-image: var(--podium-9x16); } }
.kopband-balk { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px 56px 0; }
.logo { display: inline-block; border-radius: 8px; }
.kopband .logo img { width: 240px; height: auto; }
.terug { font-weight: 700; font-size: 17px; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--accent-2); }
.terug:hover { color: #fff; }
.kopband-inhoud { position: relative; z-index: 2; padding: 72px 56px 56px; }
.kopband h1 { font-size: 104px; line-height: .92; max-width: 900px; }
.kopband-inhoud > p:not(.melding):not(.loopt) { max-width: 620px; margin-top: 24px; font-size: 21px; line-height: 1.55; color: rgba(255, 241, 220, .88); }
.melding { margin-top: 24px; padding: 12px 18px; border-radius: 12px; background: rgba(19, 13, 9, .85); border: 2px solid rgba(227, 166, 59, .55); font-weight: 600; max-width: 620px; }
.loopt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; padding: 8px 8px 8px 18px; border-radius: 999px; font-size: 16px;
  background: rgba(19, 13, 9, .72); border: 2px solid rgba(227, 166, 59, .55); }
.loopt b { font-family: var(--kop); font-weight: 800; letter-spacing: .08em; color: var(--accent-2); }
.loopt a { font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.loopt a:first-of-type { background: var(--accent-2); color: #130D09; }
.loopt a + a { padding: 6px 14px; border: 2px solid rgba(255, 241, 220, .5); }
.loopt a:hover { filter: brightness(1.1); }

/* ------------------------------------------------------------------ twee kolommen */
.werk { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; max-width: 1440px; margin: 0 auto; padding: 24px 56px 96px; font-size: 18px; line-height: 1.55; }
.stap { margin-bottom: 84px; }
.stap-kop { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.stap-kop h2 { font-size: 40px; line-height: 1; }
.stap-kop p { color: rgba(255, 241, 220, .75); }
.stap-kop-snel { align-items: baseline; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.stapnr { flex: none; font: 800 104px/.8 var(--kop); letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 2px var(--accent-2); }
.stap-klaar { display: none; }
.laden { color: var(--tekst-zacht); }
.klok { width: 1em; height: 1em; vertical-align: -.14em; margin-right: .3em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* snel starten */
.snel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.snelkaart { display: block; text-align: left; cursor: pointer; padding: 20px 22px; border: 0; color: var(--schuim); background: #221810; box-shadow: inset 0 0 0 2px #3a2f25; }
.snelkaart.vorm-0 { border-radius: 26px 10px 26px 10px; }
.snelkaart.vorm-1 { border-radius: 10px 26px 10px 26px; }
.snelkaart:hover { filter: brightness(1.1); }
.snel-naam { display: block; margin-bottom: 6px; font: 800 22px/1.1 var(--kop); letter-spacing: -0.02em; }
.snel-uitleg { display: block; margin-bottom: 12px; font-size: 15px; line-height: 1.35; opacity: .85; }
.snel-duur { display: block; font-weight: 700; font-size: 14px; color: var(--accent-2); }
.snelkaart[aria-pressed="true"] { background: var(--accent); color: var(--on); box-shadow: 0 0 0 3px var(--accent-2), 0 14px 30px rgba(0, 0, 0, .5); }
.snelkaart[aria-pressed="true"] .snel-duur { color: var(--on); }
.uitklap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pil[open] { flex-basis: 100%; }
.pil > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px dashed rgba(255, 241, 220, .35); cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.pil > summary::-webkit-details-marker { display: none; }
.pil > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; transition: transform .2s; }
.pil[open] > summary::after { transform: rotate(-135deg) translateX(-3px); }
.snel-extra { margin-top: 14px; }

/* stap 1: bierviltjes, elk in de kleur van z'n eigen feest */
.viltjes { display: flex; flex-wrap: wrap; gap: 22px; }
.viltje { --maat: 108px; width: var(--maat); height: var(--maat); flex: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 8px; text-align: center;
  color: var(--inkt); background: var(--schuim); font: 800 15px/1.1 var(--tekstletter); border: 7px solid var(--accent); box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  transform: rotate(var(--draai, 0deg)); transition: transform .2s var(--uit); }
.viltje[data-thema="kroeg"] { border-color: #FF4B0F; }
.viltje[data-thema="sinterklaas"] { border-color: #D4152B; }
.viltje[data-thema="halloween"] { border-color: #FF7A00; }
.viltje[data-thema="verjaardag"] { border-color: #FF3D8B; }
.viltje[data-thema="kerst"] { border-color: #E0312B; }
.viltje[data-thema="oudnieuw"] { border-color: #E3A63B; }
.viltje[data-thema="koningsdag"] { border-color: #FF6A00; }
.viltje[data-thema="carnaval"] { border-color: #FF2E93; }
.viltje[data-thema="pasen"] { border-color: #F2C230; }
.viltje[data-thema="zomer"] { border-color: #12B5B0; }
.viltje:hover { transform: rotate(var(--draai, 0deg)) translateY(-3px); }
.viltje[aria-pressed="true"] { box-shadow: 0 10px 20px rgba(0, 0, 0, .5), 0 0 0 4px #130D09, 0 0 0 7px #E3A63B; }
.thema-regel { margin-top: 18px; color: rgba(255, 241, 220, .8); }
.thema-regel b { color: var(--accent-2); }

/* stap 2: rondes */
.groep { margin-top: 26px; }
.groep-kop { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 800 20px/1.2 var(--kop); letter-spacing: -0.02em; }
.groep-tel { flex: none; font: 700 14px/1.5 var(--tekstletter); letter-spacing: 0; color: #130D09; background: var(--accent-2); border-radius: 999px; padding: 2px 10px; }
.groep-lijn { flex: 1; border-top: 2px dotted rgba(255, 241, 220, .25); min-width: 20px; }
.groep-tussen { margin: 34px 0 4px; font: 800 20px/1.2 var(--kop); letter-spacing: -0.02em; }
.groep-feest { margin-top: 10px; }
.groep-feest > summary { cursor: pointer; list-style: none; min-height: 44px; margin: 0; }
.groep-feest > summary::-webkit-details-marker { display: none; }
.groep-feest > summary .groep-naam { font-size: 17px; }
.groep-feest > summary .groep-naam::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg) translateY(-2px); transition: transform .2s; }
.groep-feest[open] > summary .groep-naam::before { transform: rotate(45deg) translate(-2px, -2px); }
.groep-feest[open] > .ronde-raster { margin: 6px 0 18px; }
.ronde-raster { display: flex; flex-wrap: wrap; gap: 10px; }
.ronde { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 16px 9px 10px; text-align: left; cursor: pointer; border-radius: 14px; color: var(--schuim);
  background: #1b130d; border: 2px solid #3a2f25; }
.ronde:hover { filter: brightness(1.1); }
.ronde-nr { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 800; font-size: 15px; color: rgba(255, 241, 220, .7); border: 2px dashed rgba(255, 241, 220, .4); }
.ronde-tekst { display: block; line-height: 1.2; min-width: 0; }
.ronde-tekst b { display: block; font-weight: 700; font-size: 16px; }
.ronde-tekst small { display: block; font-size: 13px; opacity: .8; }
.ronde[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(0, 0, 0, .4); }
.ronde[aria-pressed="true"] .ronde-nr { border-radius: 50%; background: var(--accent-2); color: #130D09; border: 2px solid var(--accent-2); }
.ronde-eigen { display: grid; gap: 4px; }
.bewerk { font-size: .9rem; font-weight: 600; justify-self: start; padding: 4px 2px; }
.vink-optie { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin: 22px 0 10px; font-weight: 600; cursor: pointer; }
.vink-optie input { width: 22px; height: 22px; accent-color: var(--accent); }

/* stap 3: muziek */
.platen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plaat { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 16px; text-align: left; line-height: 1.2;
  color: var(--schuim); background: #1b130d; border: 2px solid #3a2f25; }
.plaat:hover { filter: brightness(1.1); }
.schijf { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #3a2f25; background: radial-gradient(circle, #E3A63B 0 4px, #130D09 4px 11px, #2a2118 11px 100%); }
.plaat-uit .schijf { background: transparent; border: 2px dashed rgba(255, 241, 220, .5); }
.plaat[aria-checked="true"] { color: var(--on); background: var(--accent); border-color: var(--accent-2); }
.plaat[aria-checked="true"] .schijf { background: radial-gradient(circle, #130D09 0 4px, var(--accent) 4px 11px, #2a2118 11px 100%); animation: draai 3.5s linear infinite; }
.plaat-uit[aria-checked="true"] .schijf { background: transparent; animation: none; }
@keyframes draai { to { transform: rotate(360deg); } }

/* stap 4: spelregels */
.regels { display: grid; gap: 22px; margin-top: 24px; }
.regel { display: block; }
.regel-naam { display: block; margin-bottom: 8px; font-weight: 700; font-size: 16px; color: rgba(255, 241, 220, .85); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 16px; background: #0b0705; border: 2px solid #3a2f25; }
.seg button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; background: transparent; color: var(--schuim); }
.seg button:hover { background: rgba(255, 241, 220, .06); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--on); box-shadow: 0 0 0 2px var(--accent-2); }
.schakelaars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.schakel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; text-align: left; cursor: pointer; border-radius: 16px; color: var(--schuim);
  background: #1b130d; border: 2px solid #3a2f25; }
.schakel-tekst { line-height: 1.25; }
.schakel b { display: block; font-weight: 700; font-size: 16px; }
.schakel small { display: block; font-size: 14px; opacity: .8; }
.knopje { position: relative; flex: none; width: 52px; height: 30px; border-radius: 15px; background: #3a2f25; transition: background .2s; }
.knopje::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--schuim); transition: transform .2s var(--uit), background .2s; }
.schakel[aria-checked="true"] { border-color: var(--accent); background: rgba(255, 255, 255, .06); }
.schakel[aria-checked="true"] .knopje { background: var(--accent); }
.schakel[aria-checked="true"] .knopje::after { transform: translateX(22px); background: var(--on); }

/* ------------------------------------------------------------------ de bon */
.bon-plek { position: sticky; top: 24px; align-self: start; padding-top: 4px; }
.bon { position: relative; padding: 26px 26px 16px; color: var(--inkt); background: var(--schuim); border-radius: 18px 18px 0 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform: rotate(-1.2deg); transform-origin: 50% 100%; }
.bon-rand { height: 14px; margin-top: -1px; transform: rotate(-1.2deg); transform-origin: 50% 0;
  background: linear-gradient(135deg, var(--schuim) 50%, transparent 50%) 0 0 / 20px 14px repeat-x, linear-gradient(225deg, var(--schuim) 50%, transparent 50%) 0 0 / 20px 14px repeat-x; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .4)); }
.bon-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed rgba(14, 30, 63, .35); }
.bon h2 { font-size: 28px; line-height: 1; }
.bon-duur { font-weight: 700; font-size: 14px; color: #8a5a1b; white-space: nowrap; }
.bon-deel { padding: 14px 0; border-bottom: 2px dashed rgba(14, 30, 63, .35); }
.bon-label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 13px; color: #6b6258; }
.bon-rondes { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.bon-rondes li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.5; }
.bon-nr { width: 20px; flex: none; font: 800 15px/1.5 var(--kop); color: #8a5a1b; }
.bon-naam { flex: 1; font-weight: 600; }
.bon-stip { flex: none; width: 28px; height: 0; align-self: center; border-bottom: 2px dotted rgba(14, 30, 63, .3); }
.bon-soort { min-width: 44px; text-align: right; font-size: 12px; font-weight: 700; color: #6b6258; }
.bon-leeg { font-size: 15px; font-weight: 700; color: #a3321b; }
.bon-regels { font-size: 15px; line-height: 1.5; }
.bon-extra { color: #4b4338; }
.bon-naamveld { display: block; padding-top: 14px; }
.bon input { width: 100%; font: 400 17px/1.3 var(--tekstletter); color: var(--inkt); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--inkt); background: #fff; }
.bon input::placeholder { color: rgba(14, 30, 63, .45); }
.bon input:focus-visible { outline-color: var(--inkt); }
.bon-onder { margin-top: 20px; }
.knop-groot { width: 100%; min-height: 64px; padding: 22px 24px; font: 800 22px/1.1 var(--tekstletter); border-radius: 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 2px var(--accent-2), 0 14px 30px rgba(0, 0, 0, .45); }
.knop-groot:hover { filter: brightness(1.1); }
.knop-groot:disabled { background: #8c8277; color: #2a2118; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 14px 30px rgba(0, 0, 0, .45); }
.bon-uitleg { margin: 12px 4px 0; font-size: 14px; line-height: 1.45; color: rgba(255, 241, 220, .75); }

/* kleverige balk (telefoon) */
.kleef { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(19, 13, 9, .94); border-top: 1.5px solid var(--messing); backdrop-filter: blur(8px); }
.kleef-tekst { font-weight: 700; }
.kleef .knop { min-height: 48px; padding: 10px 18px; }

.voet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 36px 56px; background: #0b0705; }
.voet .logo img { width: 190px; height: auto; }
.voet p { color: rgba(255, 241, 220, .7); font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 30; max-width: min(560px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--marine); border: 1.5px solid var(--messing); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); transition: opacity .2s, transform .2s; font-weight: 600; }
.toast.aan { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ------------------------------------------------------------------ kleiner */
@media (max-width: 1180px) { .werk { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-left: 32px; padding-right: 32px; } .snel, .platen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .werk { grid-template-columns: 1fr; gap: 0; padding-bottom: 120px; }
  .bon-plek { position: static; }
  .stap-klaar { display: block; margin-bottom: 20px; }
  .stap-klaar .stap-kop { margin-bottom: 0; }
  .bon, .bon-rand { transform: none; }
  .bon-rondes { max-height: none; }
  .kopband h1 { font-size: clamp(3rem, 10vw, 104px); }
}
@media (max-width: 700px) {
  .kopband { min-height: 0; }
  .kopband-balk { padding: 20px 16px 0; }
  .kopband .logo img { width: 170px; }
  .kopband-inhoud { padding: 48px 16px 40px; }
  .kopband-inhoud > p:not(.melding):not(.loopt) { font-size: 18px; }
  .werk { padding-left: 16px; padding-right: 16px; }
  .stap { margin-bottom: 60px; }
  .stapnr { font-size: 72px; }
  .stap-kop h2 { font-size: 32px; }
  .snel { grid-template-columns: 1fr; }
  .platen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plaat { padding: 8px 12px 8px 8px; font-size: 15px; gap: 10px; }
  .schijf { width: 30px; height: 30px; }
  .viltje { --maat: 88px; font-size: 13px; border-width: 6px; }
  .viltjes { gap: 16px 14px; }
  .schakelaars { grid-template-columns: 1fr; }
  .voet { padding: 32px 16px 120px; }
}
@media (min-width: 961px) { .alleen-mobiel { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .bon, .bon-rand, .viltje, .viltje:hover { transform: none; }
  .plaat[aria-checked="true"] .schijf { animation: none; }
}

/* lobby: starttijd en wifi */
.lobbyvelden { margin-top: 28px; }
.lobbyvelden .regel-naam small { font-weight: 400; opacity: .7; }
.velden { display: grid; grid-template-columns: 160px repeat(2, minmax(0, 1fr)); gap: 12px; }
.veld { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: rgba(255, 241, 220, .8); }
.veld input { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid #3a2f25; background: #0b0705; color: var(--schuim); font: 400 16px/1.2 var(--tekstletter); color-scheme: dark; }
.veld input:focus-visible { border-color: var(--accent-2); outline: none; }
@media (max-width: 700px) { .velden { grid-template-columns: 1fr; } }
