/* City Quiz - darts night. Uses the main stylesheet tokens; class names prefixed d- / dsheet to avoid clashes. */
.darts-page .hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.kit-nav a { text-decoration: none; padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 800; }
.dlist { padding-left: 1.2em; margin-top: 10px; display: grid; gap: 8px; }
.dlist.num { list-style: decimal; }
.dh { margin-top: 22px; font-size: 1.15rem; }
.panel > h2:first-child { font-size: 1.3rem; }
.darts-page .panel[id] { scroll-margin-top: 12px; }
.d-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.d-label { display: block; font-weight: 700; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.d-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.d-names input, .d-in { width: 100%; font-weight: 700; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 48px; min-width: 0; }
.d-sel { font-weight: 700; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 48px; }
.d-board { display: grid; gap: 8px; margin-top: 12px; }
.d-pl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--surface-2); border: 2px solid transparent; border-radius: 16px; padding: 10px 14px; }
.d-pl.on { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow); }
.d-pl.win { border-color: var(--pos); }
.d-pl b { font-size: 1.05rem; overflow-wrap: anywhere; }
.d-pl .d-rem { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.d-pl small { color: var(--muted); font-weight: 700; }
.d-pl .d-rem small { font-size: .8rem; margin-left: 4px; }
.d-turn { margin-top: 14px; font-weight: 900; font-size: 1.1rem; }
.d-entry { display: flex; gap: 8px; margin-top: 8px; }
.d-entry .d-in { flex: 1; font-size: 1.3rem; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.d-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; min-width: 52px; min-height: 44px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.d-chip:active { background: var(--accent); color: var(--accent-ink); }
.d-msg { min-height: 1.3em; margin-top: 10px; font-weight: 800; }
.d-msg.bad { color: var(--neg); }
.d-msg.good { color: var(--pos); }
.d-hint { margin-top: 8px; color: var(--muted); font-weight: 700; }
.d-win { background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 14px 16px; font-weight: 900; font-size: 1.3rem; text-align: center; margin-top: 12px; }
.d-hist { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.d-hist li { list-style: none; }
.d-cr { width: 100%; border-collapse: collapse; margin-top: 12px; }
.d-cr th, .d-cr td { text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.d-cr th { font-size: .9rem; overflow-wrap: anywhere; }
.d-cr th.on { background: var(--accent); color: var(--accent-ink); border-radius: 10px 10px 0 0; }
.d-cr td.num { font-weight: 900; font-size: 1.1rem; width: 3.5em; }
.d-cr td.on { background: rgba(47,179,166,.12); }
.d-cr tr.closed td.num { text-decoration: line-through; opacity: .6; }
.d-dots { display: inline-flex; gap: 4px; }
.d-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); display: inline-block; }
.d-dots i.f { background: var(--accent); border-color: var(--accent); }
.d-cr tr.pts td { font-weight: 900; font-size: 1.15rem; border-bottom: 0; }
.d-mult { display: flex; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-top: 12px; }
.d-mult button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 10px 6px; font-weight: 800; cursor: pointer; color: var(--muted); min-height: 44px; }
.d-mult button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.d-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.d-nums .btn { padding: 10px 4px; min-height: 52px; }
.d-nums .btn:disabled { opacity: .3; }
.how { padding-left: 0; }
/* Sheets (paper preview) */
.sheets { margin: 16px 0; display: grid; gap: 16px; }
.dsheet { background: #fff; color: #111; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; overflow-x: auto; }
.dsheet h3 { font-size: 1.1rem; margin: 0 0 4px; border-bottom: 2px solid #111; padding-bottom: 4px; }
.dsheet p { margin: 4px 0 8px; color: #333; font-size: 12px; }
.dsheet table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 520px; }
.dsheet th, .dsheet td { border: 1px solid #111; height: 22px; text-align: center; padding: 0 3px; font-size: 12px; }
.dsheet th { background: #eee; font-weight: 800; }
.dsheet td.rn { width: 2.6em; background: #f3f3f3; font-weight: 800; }
.dsheet td.nm { font-weight: 900; font-size: 15px; background: #f3f3f3; }
.dsheet .nameline { height: 28px; }
.dsheet .foot-note { font-size: 10px; color: #555; text-align: right; margin-top: 6px; }
@media (max-width: 480px) { .d-pl .d-rem { font-size: 1.7rem; } .d-nums { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media print {
  @page { size: A4; margin: 10mm; }
  body { display: block !important; background: #fff; }
  .darts-page { max-width: none; padding: 0; }
  .noprint, .top, .foot, .toast, .skip, .hero, .panel { display: none !important; }
  .sheets { display: block; margin: 0; }
  .dsheet { box-shadow: none; border-radius: 0; padding: 0; margin: 0 0 8mm; overflow: visible; break-inside: avoid; }
  .dsheet table { min-width: 0; }
  .dsheet th, .dsheet td { height: 6.4mm; }
}
