/* ==========================================================================
   Beats - stijl
   Palet: nachtclub-jukebox. Aubergine als basis, koraal als enige echte
   accentkleur, amber voor labels, mint uitsluitend voor de onthulling.
   ========================================================================== */

:root {
    --ink:      #150b1e;
    --ink-2:    #1e0f2a;
    --panel:    #2a1339;
    --panel-2:  #3a1b4f;
    --line:     rgba(246, 237, 247, .14);
    --coral:    #ff4d6d;
    --coral-dk: #d92b4c;
    --amber:    #ffc24b;
    --mint:     #58e1b0;
    --paper:    #f6edf7;
    --muted:    #b39cc0;

    --display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
    --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --r: 18px;
    --pad: 20px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(120% 80% at 50% -10%, #451f5e 0%, transparent 60%),
        var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

.shell {
    max-width: 560px;
    margin: 0 auto;
    padding:
        calc(env(safe-area-inset-top) + 22px)
        max(var(--pad), env(safe-area-inset-left))
        calc(env(safe-area-inset-bottom) + 28px)
        max(var(--pad), env(safe-area-inset-right));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------- typografie */

.wordmark {
    font-family: var(--display);
    font-size: clamp(44px, 17vw, 76px);
    letter-spacing: -.045em;
    line-height: .84;
    text-transform: uppercase;
    margin: 0;
}
.wordmark em {
    font-style: normal;
    color: var(--coral);
}

h2 {
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 10px;
}

.lede {
    color: var(--muted);
    margin: 14px 0 0;
    max-width: 34ch;
}

/* ---------------------------------------------------------------- knoppen */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    font: 700 16px/1 var(--body);
    letter-spacing: .01em;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn--primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 10px 30px -12px var(--coral-dk);
}
.btn--ghost {
    background: transparent;
    color: var(--paper);
    border: 1.5px solid var(--line);
}
.btn--row { flex-direction: row; }

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

/* ------------------------------------------------------------ keuzelijsten */

.stack { display: grid; gap: 10px; }

.choice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: var(--panel);
    border: 1.5px solid transparent;
    border-radius: var(--r);
    color: var(--paper);
    font: inherit;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.choice:hover { background: var(--panel-2); }
.choice[aria-pressed="true"] {
    border-color: var(--coral);
    background: var(--panel-2);
}
.choice__icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--ink-2);
    border-radius: 12px;
}
.choice__label { font-weight: 700; }
.choice__sub { font-size: 13px; color: var(--muted); }

.pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pill {
    padding: 16px 6px;
    background: var(--panel);
    border: 1.5px solid transparent;
    border-radius: 14px;
    color: var(--paper);
    font: 700 22px/1 var(--display);
    letter-spacing: -.02em;
    cursor: pointer;
}
.pill span {
    display: block;
    font: 600 11px/1.4 var(--body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}
.pill[aria-pressed="true"] {
    border-color: var(--coral);
    background: var(--panel-2);
}
.pill[aria-pressed="true"] span { color: var(--coral); }

/* ------------------------------------------------------------------ header */

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.topbar__title {
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--panel);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}
.tag strong { color: var(--paper); }

/* ---------------------------------------------- de plaat (signature element) */

.deck {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.record {
    position: relative;
    width: min(78vw, 310px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.record__disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%,
            #241030 0 3px, #1a0a24 3px 6px);
    box-shadow: 0 26px 60px -20px #000, inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.record__disc::after {
    /* glans over de groeven */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0 18%, transparent 42%);
}
.is-playing .record__disc { animation: spin 2.6s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.record__ring {
    position: absolute;
    inset: -12px;
    transform: rotate(-90deg);
}
.record__ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}
.record__ring .track { stroke: rgba(246, 237, 247, .1); }
.record__ring .value { stroke: var(--coral); }

.record__button {
    position: relative;
    width: 46%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 14px 34px -12px var(--coral-dk);
    transition: transform .12s ease;
}
.record__button:active { transform: scale(.94); }
.record__button svg { width: 34%; height: auto; }
.record__button:disabled { background: var(--panel-2); box-shadow: none; }

.counter {
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    min-height: 22px;
}
.counter strong { color: var(--paper); }

.actions { display: grid; gap: 10px; width: 100%; }

/* ------------------------------------------------------------------- popup */

dialog.sheet {
    width: min(100%, 480px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    /* Een <dialog> krijgt van de browser zwarte tekst mee, ongeacht wat body
       zegt. Zonder deze regel valt elke tekst zonder eigen kleur zwart uit -
       en dat is op het paarse paneel niet te lezen. */
    color: var(--paper);
}
dialog.sheet::backdrop {
    background: rgba(10, 4, 16, .72);
    backdrop-filter: blur(3px);
}
.sheet__inner {
    background: var(--panel);
    border-top: 3px solid var(--mint);
    border-radius: 26px 26px 0 0;
    padding: 24px var(--pad) calc(env(safe-area-inset-bottom) + 24px);
    animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

@media (min-width: 560px) {
    dialog.sheet { margin: auto; }
    .sheet__inner { border-radius: 26px; border-top-width: 3px; }
}

.reveal { display: flex; gap: 16px; align-items: flex-start; }
.reveal__art {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    background: var(--ink-2);
    object-fit: cover;
}
.reveal__year {
    font-family: var(--display);
    font-size: clamp(40px, 15vw, 58px);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--mint);
    margin: 0;
}
.reveal__title {
    font-weight: 700;
    font-size: 19px;
    margin: 8px 0 2px;
    color: var(--paper);
}
.reveal__artist { color: var(--muted); margin: 0; }
.reveal__album {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.reveal__meta { min-width: 0; }
.reveal__meta > * { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ notices */

.notice {
    padding: 14px 16px;
    border-radius: var(--r);
    background: var(--panel);
    border-left: 3px solid var(--amber);
    font-size: 14px;
    color: var(--paper);
    margin-bottom: 16px;
}
.notice a { color: var(--amber); }
.notice--error { border-left-color: var(--coral); }

.hidden { display: none !important; }

.footnote {
    margin-top: 22px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.footnote a { color: var(--muted); }

/* -------------------------------------------------------- installatiebanner */

.install {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--panel);
    border-radius: var(--r);
    font-size: 13px;
}
.install button {
    margin-left: auto;
    white-space: nowrap;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 700 13px var(--body);
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ------------------------------------------------- jaartallen en hulpteksten */

.pills--years { margin-bottom: 8px; }

.hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.topbar__sub {
    display: block;
    font: 600 11px/1.5 var(--body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

/* --------------------------------------------------------- genreraster */

.genres {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}
.genres .choice {
    gap: 11px;
    padding: 12px 13px;
    align-items: center;
}
.choice--wide { grid-column: 1 / -1; }

.choice__text { min-width: 0; }
.choice__text .choice__label,
.choice__text .choice__sub { display: block; }

/* In het raster is geen ruimte voor ondertitels: die zouden toch afkappen.
   Alleen de brede Alles-tegel houdt zijn regel. */
.genres .choice:not(.choice--wide) .choice__sub { display: none; }
.genres .choice__label { white-space: normal; line-height: 1.25; }
.genres .choice__icon {
    flex: 0 0 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
}
.genres .choice__label { font-size: 15px; }
.genres .choice__sub { font-size: 12px; }

@media (min-width: 460px) {
    .genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ spelers */

.pills--players { grid-template-columns: repeat(4, 1fr); }
.pills--players .pill { font-size: 20px; padding: 13px 4px; }
.pills--players .pill span { letter-spacing: .06em; }

.names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}
.nameinput {
    min-width: 0;
    padding: 12px 14px;
    background: var(--panel);
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: var(--paper);
    font: 600 15px var(--body);
}
.nameinput::placeholder { color: var(--muted); font-weight: 400; }
.nameinput:focus {
    border-color: var(--coral);
    outline: none;
    background: var(--panel-2);
}

/* ------------------------------------------------- beurt en puntenstand */

.turn {
    text-align: center;
    margin-bottom: 4px;
}
.turn .eyebrow { margin-bottom: 4px; }
.turn__name {
    font-family: var(--display);
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1;
    letter-spacing: -.03em;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.board__item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--panel);
    font-size: 13px;
    color: var(--muted);
}
.board__item span {
    font-family: var(--display);
    font-size: 14px;
    color: var(--paper);
}
.board__item.is-current {
    background: var(--coral);
    color: #fff;
}
.board__item.is-current span { color: #fff; }

/* --------------------------------------------------------- schakelaar */

.toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px 12px 14px;
    background: var(--panel);
    border-radius: var(--r);
    margin-bottom: 12px;
}
.toggle__label { font-weight: 600; font-size: 15px; }
.toggle__buttons {
    margin-left: auto;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--ink-2);
    border-radius: 999px;
}
.toggle__btn {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: 700 13px var(--body);
    cursor: pointer;
}
.toggle__btn[aria-pressed="true"] {
    background: var(--coral);
    color: #fff;
}

/* ==========================================================================
   Formulierpagina's: inloggen, registreren, herstellen, beheer
   ========================================================================== */

.shell--form { justify-content: center; }
.shell--wide { max-width: 760px; }

.brand {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    letter-spacing: -.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    margin-bottom: 20px;
}
.brand em { font-style: normal; color: var(--coral); }

.card {
    background: var(--panel);
    border-radius: 22px;
    padding: 26px 22px;
}
.card__title {
    color: var(--paper);
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}
.card__lede { color: var(--muted); margin: 0; line-height: 1.55; }
.card__lede code {
    background: var(--ink-2);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
}
.card__links {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.card__links a { color: var(--amber); }
.card__links span { margin: 0 6px; }

.card .stack { margin-top: 18px; gap: 14px; }

.field { display: block; }
.field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.field__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--ink-2);
    border: 1.5px solid transparent;
    border-radius: 14px;
    color: var(--paper);
    font: 400 16px var(--body);   /* 16px voorkomt inzoomen op iOS */
}
.field__input:focus {
    border-color: var(--coral);
    outline: none;
}
.field__hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.notice--ok { border-left-color: var(--mint); }

/* ------------------------------------------------------------- beheer */

.searchbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.searchbar .field__input { flex: 1; }
.searchbar .btn { width: auto; min-height: 0; padding: 0 20px; }

.users { display: grid; gap: 12px; }

.user {
    background: var(--panel);
    border-radius: var(--r);
    padding: 16px;
}
.user--off { opacity: .62; }

.user__name {
    margin: 0 0 2px;
    font-weight: 700;
    font-size: 16px;
}
.user__mail {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge--admin { background: var(--amber); color: var(--ink); }
.badge--off   { background: var(--coral); color: #fff; }
.badge--wait  { background: var(--panel-2); color: var(--muted); }

.user__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 14px 0;
}
.user__meta dt {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.user__meta dd { margin: 0; font-size: 14px; }

.user__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.user__actions form { display: contents; }

.chip {
    padding: 8px 13px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--paper);
    font: 600 13px var(--body);
    cursor: pointer;
}
.chip:hover { background: var(--panel-2); }
.chip--danger { border-color: rgba(255, 77, 109, .5); color: var(--coral); }

@media (min-width: 560px) {
    .user__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.adminbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* ------------------------------------------------- mailserverdiagnose */

.probe {
    background: var(--panel);
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 18px;
}
.probe__title {
    font-family: var(--display);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin: 0 0 12px;
}
.probe__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.probe__item {
    display: grid;
    grid-template-columns: minmax(120px, auto) 56px 1fr;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    color: var(--muted);
}
.probe__where { font-weight: 600; color: var(--paper); }
.probe__state {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mint);
}
.probe__state--off { color: var(--coral); }
.probe__detail { overflow-wrap: anywhere; }
.probe code {
    background: var(--ink-2);
    padding: 2px 5px;
    border-radius: 4px;
}

/* ------------------------------------------------------ scheiding in kaart */

.split {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--muted);
    font-size: 13px;
}
.split::before, .split::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ------------------------------------------------------------- spelcode */

.codebox {
    text-align: center;
    background: var(--panel);
    border-radius: 22px;
    padding: 22px 18px;
    margin-bottom: 20px;
}
.codebox__code {
    font-family: var(--display);
    font-size: clamp(46px, 17vw, 68px);
    letter-spacing: .12em;
    line-height: 1;
    margin: 4px 0 12px;
    color: var(--amber);
}
.codebox__hint { margin: 0; font-size: 13px; color: var(--muted); }
.codebox__hint strong { color: var(--paper); }

.field__input--code {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

.lobby { margin-bottom: 22px; }
.names--single { grid-template-columns: 1fr; }

/* ============================================================== tijdlijn */

.tl { margin: 6px 0 18px; }

.tl__head {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 10px;
    text-align: center;
}

.tl__strip {
    display: flex;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

/* Let op: eigen namen, want .card is al het formulierkader op de inlogpagina's.
   Dezelfde klassenaam voor twee dingen gaf eerder een smalle inlogpagina en
   witte liedjestitels. */
.tlcard {
    flex: 0 0 auto;
    min-width: 92px;
    max-width: 130px;
    padding: 12px 10px;
    background: var(--panel-2);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-snap-align: center;
}
.tlcard__year {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--paper);
}
.tlcard__title {
    font-size: 11px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slot {
    flex: 0 0 auto;
    width: 46px;
    border: 0;
    border-radius: 12px;
    font: 700 20px/1 var(--body);
    cursor: pointer;
    background: transparent;
    color: var(--muted);
}
.slot--idle {
    border: 1.5px dashed var(--line);
    color: var(--line);
    cursor: default;
}
.slot--open {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 8px 20px -10px var(--coral-dk);
    animation: slotpulse 1.6s ease-in-out infinite;
}
.slot--open:active { transform: scale(.94); }
.slot--taken {
    background: var(--panel);
    border: 1.5px solid var(--amber);
    color: var(--amber);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: default;
}
.slot__mark { font-size: 14px; }
.slot__who {
    font-size: 9px;
    font-weight: 600;
    max-width: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes slotpulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .72; }
}

/* --------------------------------------------------------- puntenstand */

.scoreboard { display: grid; gap: 6px; margin-top: 18px; }

.srow {
    display: grid;
    grid-template-columns: minmax(60px, auto) 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    background: var(--panel);
    border-radius: 12px;
    font-size: 13px;
}
.srow.is-current { border-left: 3px solid var(--coral); }
.srow__name { font-weight: 700; }
.srow__years { display: flex; flex-wrap: wrap; gap: 4px; }
.srow__score { color: var(--muted); white-space: nowrap; font-size: 12px; }

.yearchip {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ink-2);
    font-size: 11px;
    font-family: var(--display);
    letter-spacing: .02em;
}

.deck--compact { flex: 0 0 auto; gap: 14px; margin-bottom: 6px; }
.deck--compact .record { width: min(46vw, 190px); }

.verdicts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 5px; }
.verdicts__item { font-size: 13px; color: var(--muted); }


/* ---------------------------------------------------------- keuzevakje */

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}
.check input {
    width: 20px;
    height: 20px;
    accent-color: var(--coral);
}

/* ------------------------------------------------------ manier van spelen */

.modes { display: grid; gap: 10px; margin-bottom: 10px; }

.mode {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--panel);
    border: 1.5px solid transparent;
    border-radius: var(--r);
    color: var(--paper);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.mode[aria-pressed="true"] { border-color: var(--coral); background: var(--panel-2); }
.mode__icon {
    flex: 0 0 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: var(--ink-2);
    border-radius: 12px;
}
.mode__label { font-weight: 700; display: block; }
.mode__sub { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- teller */

.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: var(--panel);
    border-radius: var(--r);
    margin-bottom: 12px;
}
.stepper__label { font-weight: 600; font-size: 15px; }
.stepper__controls { display: flex; align-items: center; gap: 10px; }
.stepper__btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--ink-2);
    color: var(--paper);
    font: 700 24px/1 var(--body);
    cursor: pointer;
}
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__btn:active { transform: scale(.94); }
.stepper__value {
    font-family: var(--display);
    font-size: 28px;
    min-width: 2ch;
    text-align: center;
}

/* --------------------------------------------------------------- QR */

.qrwrap { text-align: center; }
.qrwrap svg {
    width: min(72vw, 260px);
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}
.qrwrap p { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.codebox__actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

/* ------------------------------------------------------------ startpagina */

.home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: var(--panel);
    border-radius: var(--r);
    color: var(--paper);
    text-decoration: none;
    transition: background .12s ease, transform .12s ease;
}
.tile:active { transform: scale(.985); }
.tile:hover { background: var(--panel-2); }

.tile--go {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 12px 30px -14px var(--coral-dk);
}
.tile--go:hover { background: var(--coral-dk); }
.tile--go .tile__icon { background: rgba(255, 255, 255, .18); }
.tile--go .tile__sub { color: rgba(255, 255, 255, .82); }

.tile__icon {
    flex: 0 0 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--ink-2);
    border-radius: 13px;
}
.tile__label { display: block; font-weight: 700; font-size: 16px; }
.tile__sub { display: block; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------ toegang en pakketten */

.panel {
    background: var(--panel);
    border-radius: var(--r);
    padding: 18px 16px;
    margin-bottom: 16px;
}
.panel h2 {
    font-size: 16px;
    margin-bottom: 14px;
}

.status { text-align: center; padding: 22px 0 6px; }
.status__big {
    font-family: var(--display);
    font-size: clamp(30px, 11vw, 44px);
    letter-spacing: -.03em;
    margin: 4px 0 8px;
}
.status__big--off { color: var(--coral); }

.planrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    border-radius: var(--r);
}
.planrow__info { flex: 1; min-width: 0; }
.planrow__name { display: block; font-weight: 700; }
.planrow__sub { display: block; font-size: 13px; color: var(--muted); }
.planrow__buy { width: auto; min-height: 44px; padding: 0 18px; white-space: nowrap; }

.planedit {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: var(--ink-2);
    border-radius: 14px;
    margin-bottom: 10px;
}
.planedit--new { border: 1.5px dashed var(--line); background: transparent; }
.planedit__buttons { display: flex; gap: 6px; }

@media (min-width: 620px) {
    .planedit {
        grid-template-columns: 1.4fr .8fr .7fr 2fr .6fr auto auto;
        align-items: center;
    }
}

.payrow {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: var(--panel);
    border-radius: 12px;
    font-size: 13px;
    color: var(--muted);
}
.payrow__status { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.payrow__status--paid { color: var(--mint); }
.payrow__status--open, .payrow__status--pending { color: var(--amber); }
.payrow__status--failed, .payrow__status--expired, .payrow__status--canceled { color: var(--coral); }

select.chip { appearance: none; padding-right: 26px; }

.credit {
    margin: 16px 0 0;
    font-size: 11px;
    color: var(--muted);
}
.credit a { color: var(--muted); }

/* ------------------------------------------------- stappenlijst met code */

.steps {
    margin: 20px 0 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.steps li { margin-bottom: 10px; }
.steps strong, .steps em { color: var(--paper); font-style: normal; }
.steps a { color: var(--amber); }

.copyable {
    display: block;
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--ink-2);
    border-radius: 10px;
    color: var(--amber);
    font-size: 13px;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.copyable:hover { background: var(--panel-2); }

.steps small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
}
.steps small code { background: var(--ink-2); padding: 1px 4px; border-radius: 4px; }

/* --------------------------------------------------------- menu rechtsboven */

.usermenu { position: relative; }

.usermenu > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu[open] > summary { background: var(--panel-2); }
.usermenu__caret { font-size: 10px; color: var(--muted); }

.usermenu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 170px;
    padding: 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px #000;
    display: grid;
    gap: 2px;
}
.usermenu__panel a {
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--paper);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.usermenu__panel a:hover { background: var(--panel); }
.usermenu__out { color: var(--coral) !important; }

/* ------------------------------------------------------------ accountpagina */

.section {
    background: var(--panel);
    border-radius: var(--r);
    padding: 18px 16px;
    margin-bottom: 14px;
}
.section > h2 {
    font-size: 16px;
    margin: 0 0 4px;
}
.section__intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--muted);
}
.section .stack { gap: 12px; }
.section .btn { min-height: 48px; }

.facts { display: grid; gap: 8px; margin: 0 0 16px; }
.facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.foldout > summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--amber);
    padding: 8px 0;
}
.foldout > summary::-webkit-details-marker { color: var(--amber); }

/* ==========================================================================
   Beats - home informatie
   ========================================================================== */

.home-info {
    margin: 0 0 24px;
    padding: var(--pad);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--paper);
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.home-info h2,
.home-info h3 {
    margin: 0 0 10px;
    font-family: var(--display);
    line-height: 1.15;
}

.home-info h2 {
    color: var(--amber);
    font-size: 1.5rem;
}

.home-info h3 {
    margin-top: 22px;
    color: var(--coral);
    font-size: 1.1rem;
}

.home-info p {
    margin: 0 0 12px;
}

.home-info p:last-child {
    margin-bottom: 0;
}

.home-info strong {
    color: var(--amber);
}

.home-info a {
    color: var(--coral);
    font-weight: 700;
    text-decoration: none;
}

.home-info a:hover {
    color: var(--paper);
    text-decoration: underline;
}

.home-info ul,
.home-info ol {
    margin: 10px 0 14px;
    padding-left: 22px;
}

.home-info li {
    margin: 5px 0;
}

.home-info li::marker {
    color: var(--coral);
}