/* cdg.css — the few page-only rules of /christmas-dice-game/. The shell is /assets/polyatic.css, the stage (cutting
   mat, paper, download row) is /gift-tag-maker/tags.css, loaded by path. Colours only from polyatic.css variables,
   so light and dark both follow the site; the printed page itself is paper-white in both themes. */
.cd-ver{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:30rem}
.cd-head .sub{margin-bottom:.625rem}
.cd-pages{display:flex;gap:.375rem;justify-content:center;flex-wrap:wrap;margin:.625rem auto 0;max-width:30rem}
.cd-pages button{flex:1 1 0;min-width:0;min-height:2.25rem;border:1px solid rgba(255,255,255,.35);background:transparent;color:var(--mat-ink);
  border-radius:.4375rem;font:inherit;font-size:.8125rem;cursor:pointer;padding:.25rem .375rem}
.cd-pages button[aria-pressed="true"]{background:var(--mat-ink);color:var(--mat);border-color:var(--mat-ink)}
.cd-pages button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.cd-rules{margin:0 0 .75rem;padding-left:0;list-style:none}
.cd-rules li{padding:.375rem .5rem;border-radius:.375rem;line-height:1.45}
.cd-rules li.on{background:var(--accent-soft);outline:2px solid var(--accent)}
.cd-rounds{margin:0;padding-left:1.1rem;line-height:1.45}
.cd-rounds li{margin:0 0 .375rem}
.cd-roll{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.25rem 0 .75rem}
.cd-roll output{flex:1 1 14rem;min-height:1.5rem;font-weight:600}
.cd-range{display:flex;align-items:center;gap:.75rem}
.cd-range input{flex:1}
.cd-draft{font-size:.8125rem;color:var(--muted)}
.cd-linkbtn{border:0;background:none;color:var(--accent);text-decoration:underline;font:inherit;cursor:pointer;padding:0}
.explainer table{border-collapse:collapse;width:100%;font-size:.9375rem}
.explainer th,.explainer td{border-bottom:1px solid var(--line);padding:.375rem .5rem;text-align:left;vertical-align:top}
.cd-tablewrap{overflow-x:auto}
