/* ==========================================================================
   scorebijhouden.nl — stylesheet
   ========================================================================== */

:root {
  --bg:        #f6f7fb;
  --bg-2:      #ffffff;
  --bg-3:      #eef1f8;
  --line:      #dde2ee;
  --txt:       #16203a;
  --txt-2:     #55608a;
  --acc:       #1d4ed8;
  --acc-2:     #1037a8;
  --acc-soft:  #e7edff;
  --ok:        #0f8a4d;
  --warn:      #b45309;
  --bad:       #c42b2b;
  --shadow:    0 1px 2px rgba(16,24,48,.06), 0 8px 24px rgba(16,24,48,.06);
  --shadow-sm: 0 1px 2px rgba(16,24,48,.08);
  --r:         14px;
  --r-sm:      9px;
  --wrap:      1140px;
  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fm: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --bg-2: #141c30; --bg-3: #1c2740; --line: #2a3650;
    --txt: #eef2ff; --txt-2: #9aa7c9; --acc: #6690ff; --acc-2: #86a6ff;
    --acc-soft: #1b294d;
    --ok: #3ecf8e; --warn: #f0b24a; --bad: #ff6b6b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --bg-2: #141c30; --bg-3: #1c2740; --line: #2a3650;
  --txt: #eef2ff; --txt-2: #9aa7c9; --acc: #6690ff; --acc-2: #86a6ff;
  --acc-soft: #1b294d;
  --ok: #3ecf8e; --warn: #f0b24a; --bad: #ff6b6b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 400 16px/1.58 var(--ff);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--acc-2); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); margin-top: 1.35em; }
h3 { font-size: 1.08rem; margin-top: 1.1em; }
p, ul, ol, table { margin: 0 0 .75em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .2em; }
.muted { color: var(--txt-2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--bg-2); padding: 10px 14px; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 14px; min-height: 62px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--txt); font-weight: 500; }
.logo-mark { display: inline-flex; filter: drop-shadow(0 2px 5px rgba(29,78,216,.28)); transition: transform .14s ease; }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.04); }
.logo-txt { font-size: 1.1rem; letter-spacing: -.028em; }
.logo-txt strong { color: var(--acc); font-weight: 750; }
.logo-txt .tld { color: var(--txt-2); font-weight: 400; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 11px; border-radius: 99px; text-decoration: none;
  color: var(--txt-2); font-size: .93rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-3); color: var(--txt); }
.site-nav a[aria-current] { background: var(--acc-soft); color: var(--acc); }
.themebtn {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--txt-2);
  width: 36px; height: 36px; border-radius: 99px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.themebtn:hover { color: var(--txt); border-color: var(--acc); }
.burger { display: none; }
@media (max-width: 860px) {
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    margin-left: auto; width: 42px; height: 38px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); padding: 0 9px;
  }
  .burger span { display: block; height: 2px; background: var(--txt); border-radius: 2px; }
  .site-nav { display: none; width: 100%; margin: 0 0 10px; flex-direction: column; align-items: stretch; }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 10px; border-radius: var(--r-sm); font-size: 1rem; }
  .themebtn { align-self: flex-start; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero { padding: 34px 0 14px; }
.hero h1 { max-width: none; }
.hero .lead { font-size: 1.12rem; color: var(--txt-2); max-width: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.badges li {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 13px; font-size: .86rem; color: var(--txt-2); margin: 0; box-shadow: var(--shadow-sm);
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--txt-2); margin-top: 30px; padding: 16px 0 2px; border-top: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--txt-2); }

/* ---------- kaarten ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); margin: 0 0 10px; padding: 0; list-style: none; }
.card {
  display: flex; flex-direction: column; gap: 4px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  text-decoration: none; color: var(--txt); box-shadow: var(--shadow-sm);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  margin: 0;
}
.card:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: var(--shadow); color: var(--txt); }
.card .ic { font-size: 1.7rem; line-height: 1; margin-bottom: 6px; }
.card .tt { font-weight: 650; font-size: 1.04rem; }
.card .st { color: var(--txt-2); font-size: .9rem; }
.card .go { margin-top: auto; padding-top: 10px; color: var(--acc); font-size: .88rem; font-weight: 600; }

.panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow-sm); margin: 0 0 14px;
}
.panel > :last-child { margin-bottom: 0; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.section { padding: 18px 0; }
.prose { max-width: 75ch; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.note { border-left: 3px solid var(--acc); background: var(--acc-soft); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------- tabellen (content) ---------- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .85em; }
table.data { border-collapse: collapse; width: 100%; font-size: .94rem; background: var(--bg-2); }
table.data th, table.data td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
table.data th { background: var(--bg-3); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2);
  padding: 0; margin-bottom: 6px; overflow: hidden;
}
.faq summary { cursor: pointer; padding: 12px 15px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--acc); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 16px 14px; color: var(--txt-2); }
.faq .ans > :last-child { margin-bottom: 0; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--acc); color: #fff; border: 1px solid transparent;
  padding: 11px 18px; border-radius: var(--r-sm); min-height: 44px;
  transition: filter .12s ease;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { background: var(--bg-2); color: var(--txt); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn.sm { padding: 7px 12px; min-height: 38px; font-size: .9rem; }
.btn.danger { background: var(--bad); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }

label { font-size: .9rem; font-weight: 600; color: var(--txt-2); }
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  font: inherit; color: var(--txt); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; min-height: 44px; width: 100%; max-width: 100%;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-fields .field { margin-bottom: 0; flex: 1 1 200px; max-width: 280px; }

/* ==========================================================================
   TOOLS
   ========================================================================== */
.toolhead { padding: 34px 0 10px; }
.toolhead h1 { margin-bottom: .3em; }
.toolhead .lead { color: var(--txt-2); max-width: 70ch; margin: 0; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 14px;
}
.toolbar .spacer { flex: 1 1 auto; }
.toolbar .mini {
  display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--txt-2); font-weight: 600;
}
.toolbar .mini input, .toolbar .mini select { width: auto; min-width: 72px; min-height: 38px; padding: 6px 9px; }

/* score tabel */
.score-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); box-shadow: var(--shadow-sm); }
table.score { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 100%; font-variant-numeric: tabular-nums; }
table.score th, table.score td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.score thead th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-3);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--txt-2);
}
table.score tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-3) 45%, transparent); }
table.score .rnd { color: var(--txt-2); font-size: .85rem; width: 46px; }
table.score tfoot td {
  position: sticky; bottom: 0; background: var(--bg-3); font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--line);
}
table.score .lead-cell { color: var(--ok); }
table.score input {
  width: 72px; min-width: 62px; min-height: 40px; text-align: center; padding: 6px;
  font-variant-numeric: tabular-nums; border-radius: 7px;
}
table.score th.pl input { width: 110px; min-height: 36px; text-align: center; font-weight: 700; color: var(--txt); }
table.score td.del { width: 40px; }
.iconbtn {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--txt-2);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.iconbtn:hover { color: var(--bad); border-color: var(--bad); }

.empty { padding: 26px 16px; text-align: center; color: var(--txt-2); }

/* grote scorekaarten (darts, tennis, teller) */
.big-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 14px; }
.big-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; text-align: center; box-shadow: var(--shadow-sm); position: relative;
}
.big-card.active { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.big-card .nm { font-weight: 650; font-size: 1rem; }
.big-card .nm input { text-align: center; font-weight: 650; border-color: transparent; background: transparent; min-height: 36px; }
.big-card .nm input:hover { border-color: var(--line); }
.big-card .val { font-size: clamp(2.4rem, 1.5rem + 5vw, 3.6rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.big-card .sub { color: var(--txt-2); font-size: .85rem; }
.big-card .ctrls { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.big-card .ctrls .btn { flex: 1 1 0; }
.big-card.out { opacity: .55; }
.badge-win { display: inline-block; background: var(--ok); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }

/* numpad */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 330px; margin: 0 auto; }
.numpad button {
  font: inherit; font-size: 1.3rem; font-weight: 700; min-height: 56px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--txt);
}
.numpad button:active { background: var(--acc-soft); }
.numpad button.wide { grid-column: span 2; }
.numpad button.go { background: var(--acc); color: #fff; border-color: transparent; }
.throw-display {
  text-align: center; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums;
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: var(--r-sm); margin-bottom: 10px; background: var(--bg-3);
}
.quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.quick button { font: inherit; font-size: .85rem; padding: 7px 11px; min-height: 38px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line); color: var(--txt); cursor: pointer; }
.quick button:hover { border-color: var(--acc); color: var(--acc); }

/* dobbelstenen */
.dice-area { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 22px 0 10px; min-height: 150px; }
.die {
  --d: clamp(96px, 19vw, 150px);
  width: var(--d); height: var(--d);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: calc(var(--d) * .18); box-shadow: var(--shadow); display: grid; place-items: center;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: calc(var(--d) * .13);
}
.die span {
  width: calc(var(--d) * .19); height: calc(var(--d) * .19);
  border-radius: 50%; background: var(--txt);
}
.die.roll { animation: shake .45s ease; }
@keyframes shake {
  0%,100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-9px) rotate(-11deg); }
  60% { transform: translateY(5px) rotate(9deg); }
}
.die-sum { text-align: center; font-size: 1.25rem; font-weight: 700; margin-bottom: .3em; }

/* yahtzee blok */
table.yz { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
table.yz th, table.yz td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; }
table.yz th.rowh { text-align: left; white-space: nowrap; font-weight: 600; font-size: .92rem; }
table.yz tr.sum td, table.yz tr.sum th { background: var(--bg-3); font-weight: 700; }
table.yz input { width: 64px; min-height: 40px; text-align: center; }
table.yz .hint { display: block; font-weight: 400; font-size: .78rem; color: var(--txt-2); }

/* tennis */
.tennis-board { display: grid; gap: 10px; }
.tennis-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
}
.tennis-row.serving { border-color: var(--acc); }
.tennis-row .pt { font-size: 2rem; font-weight: 800; min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.tennis-row .sets { display: flex; gap: 6px; }
.tennis-row .sets span {
  display: grid; place-items: center; width: 30px; height: 34px; border-radius: 7px;
  background: var(--bg-3); font-weight: 700; font-size: .95rem;
}
.serve-dot { color: var(--acc); font-size: 1.2rem; }

/* sticky actiebalk mobiel */
.sticky-actions {
  position: sticky; bottom: 0; z-index: 30; display: flex; gap: 8px;
  padding: 10px; margin-top: 14px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r);
}
.sticky-actions .btn { flex: 1 1 0; }

/* tool footer content */
.toolcontent { padding-top: 6px; }
.two-col { display: grid; gap: 18px; grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { margin: 0; border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { display: flex; gap: 10px; align-items: center; padding: 11px 2px; text-decoration: none; color: var(--txt); font-weight: 500; font-size: .95rem; }
.linklist a:hover { color: var(--acc); }
.linklist .ic { font-size: 1.1rem; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 8px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}

.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 34px 0 10px; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--txt-2); margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: var(--txt); text-decoration: none; font-size: .93rem; }
.site-foot a:hover { color: var(--acc); text-decoration: underline; }
.foot-logo { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; font-weight: 500; letter-spacing: -.028em; margin: 0 0 10px; }
.foot-logo strong { color: var(--acc); font-weight: 750; }
.foot-logo .tld { color: var(--txt-2); font-weight: 400; }
.foot-logo .logo-mark { display: inline-flex; }
.foot-bot { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; }
.foot-bot p { color: var(--txt-2); font-size: .85rem; margin: 0; }

@media print {
  .site-head, .site-foot, .toolbar, .sticky-actions, .toolcontent, .crumbs,
  .faq, .simpel-acties, .skip, .badges, .iconbtn,
  #kj > .panel { display: none !important; }   /* invoerformulier klaverjassen hoeft niet op papier */
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .score-wrap, .panel { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Simpel scorebord — grote tikvlakken
   ========================================================================== */
.tap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.tap-grid.drie { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tap-side { display: flex; flex-direction: column; gap: 8px; }
.tap-naam {
  text-align: center; font-weight: 700; font-size: 1.05rem;
  background: var(--bg-2); border-color: var(--line);
}
.tap-plus {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 38vh; padding: 16px 8px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); color: var(--txt);
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background .1s ease, transform .08s ease;
}
.tap-plus:active { background: var(--acc-soft); transform: scale(.985); }
.tap-plus:hover { border-color: var(--acc); }
.tap-val {
  font-size: clamp(3.4rem, 17vw, 8rem); font-weight: 800; line-height: 1;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.tap-hint { font-size: .82rem; color: var(--txt-2); font-weight: 600; }
.tap-min {
  font: inherit; font-weight: 700; font-size: 1.05rem; min-height: 52px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--txt-2);
}
.tap-min:active { background: var(--acc-soft); }
.tap-min:hover { color: var(--bad); border-color: var(--bad); }
@media (max-width: 600px) {
  .tap-plus { min-height: 32vh; }
}

/* ==========================================================================
   Mobiel: alles ruimer en met grotere raakvlakken
   ========================================================================== */
@media (max-width: 680px) {
  input[type="text"], input[type="number"], input[type="email"], select, textarea {
    min-height: 52px; font-size: 1.05rem; padding: 12px 14px;
  }
  .inline-fields { gap: 10px; }
  .inline-fields .field { flex: 1 1 100%; }
  .field label, label { font-size: .95rem; }
  .btn { min-height: 50px; padding: 13px 18px; }
  .btn.sm { min-height: 44px; font-size: .95rem; }

  .toolbar { padding: 12px 10px; gap: 10px; }
  .toolbar .mini { flex: 1 1 100%; justify-content: space-between; }
  .toolbar .mini select, .toolbar .mini input { flex: 1 1 auto; min-height: 48px; font-size: 1rem; }
  .toolbar > .btn { flex: 1 1 calc(50% - 5px); }

  table.score th, table.score td { padding: 8px 5px; }
  table.score input { width: 100%; min-width: 58px; min-height: 50px; font-size: 1.1rem; padding: 6px 2px; }
  table.score th.pl input { min-height: 46px; font-size: .98rem; width: 86px; padding: 6px 4px; }
  table.score .rnd { width: 34px; font-size: .95rem; }
  table.score tfoot td { font-size: 1.2rem; }
  table.yz input, table.yz select { width: 100%; min-width: 62px; min-height: 50px; font-size: 1.1rem; }
  table.yz th.rowh { font-size: .95rem; }
  table.yz th, table.yz td { padding: 5px 5px; }

  .iconbtn { width: 42px; height: 42px; font-size: 1.15rem; }
  .numpad { max-width: 100%; gap: 10px; }
  .numpad button { min-height: 68px; font-size: 1.6rem; }
  .throw-display { min-height: 66px; font-size: 2.4rem; }
  .quick button { min-height: 46px; font-size: .98rem; padding: 8px 14px; }

  .big-card { padding: 14px 12px; }
  .big-card .val { font-size: clamp(3rem, 14vw, 4.2rem); }

  .tennis-row { grid-template-columns: 1fr auto; gap: 8px 10px; }
  .tennis-row .sets { grid-column: 1; }
  .tennis-row .pt { grid-column: 2; grid-row: 1; font-size: 2.6rem; }
  .tennis-row .btn { grid-column: 2; grid-row: 2; min-width: 110px; }

  .sticky-actions { padding: 10px 8px; gap: 8px; }
  .sticky-actions .btn { padding: 13px 8px; font-size: .98rem; }
}

@media (max-width: 680px) {
  .toolbar.compact .mini { flex: 1 1 calc(50% - 5px); }
  .toolbar .spacer { display: none; }
  .toolbar > .btn { flex: 1 1 calc(50% - 5px); }
}

.simpel-acties { display: flex; gap: 10px; margin-top: 14px; }
.simpel-acties .btn { flex: 1 1 0; }

/* ==========================================================================
   Stepper — grote plus/min naast een invoervakje
   ========================================================================== */
.stepper { display: flex; align-items: stretch; gap: 3px; justify-content: center; }
.stepper input[type="number"] {
  width: 58px; min-width: 0; text-align: center; padding: 6px 2px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .stp {
  flex: 0 0 auto; width: 36px; min-height: 44px; cursor: pointer;
  font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; color: var(--txt);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.stepper .stp:hover { border-color: var(--acc); color: var(--acc); }
.stepper .stp:active { background: var(--acc-soft); }
@media (max-width: 680px) {
  .stepper { gap: 2px; }
  .stepper .stp { width: 42px; min-height: 50px; font-size: 1.45rem; }
  .stepper input[type="number"] { width: 56px; min-width: 0; min-height: 50px; font-size: 1.1rem; }
}
@media print { .stepper .stp { display: none; } }
/* Stepper in een gewoon formulierveld: vult de breedte van het veld */
.field .stepper { width: 100%; }
.field .stepper input[type="number"] { flex: 1 1 auto; width: auto; min-height: 50px; font-size: 1.1rem; }
.field .stepper .stp { min-height: 50px; width: 48px; }

/* Stepper in het Yahtzee-blok */
table.yz .stepper input[type="number"] { width: 54px; }

/* Kaarten in een raster even hoog, ongeacht de lengte van de tekst */
.grid > li { display: flex; }
.grid > li > .card { flex: 1 1 auto; }
/* Namenrij van het Yahtzee-blok mag de volle kolombreedte gebruiken */
table.yz thead input[type="text"] { width: 100%; max-width: 150px; min-width: 90px; }

.field .stepper input[type="number"] { min-width: 76px; }

@media (max-width: 680px) { .inline-fields .field { max-width: none; } }

/* FAQ-vraag is een echte kop, maar oogt als de samenvattingsregel */
.faq summary .q { display: inline; margin: 0; font-size: 1rem; font-weight: 600; line-height: inherit; letter-spacing: 0; }

/* ---- Aftelscorebord ---- */
.tap-plus.aftel:active { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.tap-side.leeg .tap-val { color: var(--ok); }
.tap-side.leeg .tap-plus { border-color: var(--ok); }
.aftel-rij { display: flex; gap: 8px; }
.aftel-rij .tap-min { flex: 1 1 0; }
.aftel-bedrag { display: flex; gap: 6px; }
.aftel-bedrag input[type="number"] { flex: 1 1 auto; min-width: 0; text-align: center; min-height: 48px; }
.aftel-bedrag .btn { flex: 0 0 auto; white-space: nowrap; }
.toolbar .mini .stepper { flex: 1 1 auto; }
.toolbar .mini .stepper input[type="number"] { min-width: 72px; }

/* Antwoord-eerst-blok boven aan een spelregelpagina */
.antwoord {
  background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent);
  border-radius: var(--r); padding: 16px 18px; margin: 4px 0 18px;
}
.antwoord h2 { margin: 0 0 .35em; font-size: 1.12rem; color: var(--acc); }
.antwoord p { margin: 0; font-size: 1.02rem; }
.antwoord strong { color: var(--txt); }

/* ==========================================================================
   Qwixx scoreblok
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 9px 14px; min-height: 42px; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--txt-2);
}
.tab:hover { border-color: var(--acc); color: var(--acc); }
.tab.aan { background: var(--acc); border-color: transparent; color: #fff; }

.qw-naam { margin-bottom: 10px; }
.qw-naam input { max-width: 260px; font-weight: 700; }

.qw-rij {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-2); overflow-x: auto;
}
.qw-label { flex: 0 0 62px; font-weight: 700; font-size: .9rem; }
.qw-score { flex: 0 0 auto; margin-left: auto; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.qw-vakjes, .qw-missers { display: flex; gap: 4px; }
.qw-vak {
  flex: 0 0 auto; width: 40px; min-height: 44px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; color: var(--txt);
  -webkit-tap-highlight-color: transparent;
}
.qw-vak.slot { width: 52px; font-size: .82rem; }
.qw-vak:hover { border-color: var(--acc); }
.qw-vak.aan { color: #fff; }
.qw-vak.weg { opacity: .35; text-decoration: line-through; }
.kleur-r .qw-vak.aan { background: #d92d2d; border-color: #d92d2d; }
.kleur-g .qw-vak.aan { background: #d9a400; border-color: #d9a400; }
.kleur-n .qw-vak.aan { background: #1b9c4e; border-color: #1b9c4e; }
.kleur-b .qw-vak.aan { background: #1d6ed8; border-color: #1d6ed8; }
.kleur-r .qw-label { color: #d92d2d; }
.kleur-g .qw-label { color: #a07700; }
.kleur-n .qw-label { color: #1b9c4e; }
.kleur-b .qw-label { color: #1d6ed8; }
.qw-vak.mis.aan { background: var(--bad); border-color: var(--bad); }
.qw-totaal {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--bg-3); border: 1px solid var(--line); font-weight: 600;
}
.qw-totaal strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .qw-label { flex: 0 0 52px; font-size: .82rem; }
  .qw-vak { width: 38px; min-height: 46px; }
  .qw-vak.slot { width: 48px; }
}

/* ==========================================================================
   Lege scoreblokken om te printen
   ========================================================================== */
.printblok { margin: 0 0 22px; }
.pb-kop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pb-kop h2 { margin: 0; font-size: 1.15rem; }
.pb-vel {
  background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; overflow-x: auto;
}
.pb-titel { font-weight: 700; margin: 0 0 10px; font-size: 1rem; color: #111; }
.pb-voet { margin: 8px 0 0; font-size: .78rem; color: #555; }
table.pb-tabel { border-collapse: collapse; width: 100%; margin: 0 0 6px; font-size: .85rem; }
table.pb-tabel th, table.pb-tabel td {
  border: 1px solid #999; padding: 6px 7px; text-align: center; color: #111; background: #fff;
}
table.pb-tabel th { background: #eee; font-weight: 600; white-space: nowrap; }
table.pb-tabel th:first-child { text-align: left; }
table.pb-tabel tr.som th, table.pb-tabel tr.som td { background: #eee; }
table.pb-tabel td { height: 26px; }
table.pb-qwixx td { width: 7%; }
table.pb-qwixx td.slot { background: #f3f3f3; }

@media print {
  .no-print { display: none !important; }
  .printblok { page-break-after: always; margin: 0; }
  .printblok:last-of-type { page-break-after: auto; }
  .pb-vel { border: 0; padding: 0; }
  body.print-een-blok .printblok:not(.alleen-dit) { display: none !important; }
  body.print-een-blok .printblok { page-break-after: auto; }
  body.print-een-blok .toolhead { display: none; }
}

/* ---- Catan eindtelling ---- */
.catan-kop { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.catan-kop input { max-width: 220px; font-weight: 700; }
.catan-tot { margin-left: auto; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.catan-bonus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bonusknop {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 10px 14px; min-height: 44px; border-radius: 99px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--txt-2);
}
.bonusknop:hover { border-color: var(--acc); color: var(--acc); }
.bonusknop.aan { background: var(--acc); border-color: transparent; color: #fff; }
.field label .hint { font-weight: 400; color: var(--txt-2); }
