/* cracker.css — page layer for /christmas-cracker-maker/. The shell (header, controls, chips,
   buttons, explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage with the
   printed sheet on it, the design swatches and the three-part switch. The sheet is paper-white in
   both themes: it is an object lying on the mat. */
.cc-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.cc-head h1{margin-bottom:.25rem}
.cc-head .sub{margin-bottom:.625rem}
.cc-view{margin-bottom:.625rem}
.cc-view button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}

/* ---------- the stage ---------- */
.duo.cc-duo>.pane-result{position:static}
@media (min-width:920px){
  .duo.cc-duo{grid-template-columns:minmax(20.5rem,.8fr) minmax(0,1.2fr)}
  .duo.cc-duo>.pane-result{position:sticky;top:1rem}
}
.cc-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,196,120,.16),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.75rem .75rem .875rem;box-shadow:var(--shadow);min-width:0}
.cc-paper{line-height:0}
.cc-paper canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.cc-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 0}
.cc-actions[hidden]{display:none}
.cc-actions .btn{flex:1 1 4rem}
.cc-actions .btn.cc-main{flex:3 1 9rem;font-size:1.0625rem}
.cc-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.cc-stage .btn:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.cc-stage .btn:disabled{opacity:.6;cursor:progress}
.cc-pager{display:flex;align-items:center;justify-content:center;gap:.75rem;margin:.5rem 0 0;font-family:var(--mono);font-size:.8125rem;color:var(--mat-ink)}
.cc-pager[hidden]{display:none}
.cc-pg{border:1px solid rgba(255,255,255,.35);background:transparent;color:var(--mat-ink);border-radius:.4375rem;min-width:2.5rem;min-height:2.25rem;font:inherit;cursor:pointer}
.cc-pg:disabled{opacity:.35;cursor:default}
.cc-summary{margin:.5rem 0 0;font-size:.8125rem;line-height:1.45;color:var(--mat-muted)}
.cc-msg{margin:.375rem 0 0;font-size:.875rem;font-weight:600;color:var(--mat-ink)}
.cc-msg:empty{display:none}

/* ---------- the settings ---------- */
.cc-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.cc-form textarea{min-height:6.5rem;resize:vertical;line-height:1.4}
.cc-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.cc-form .modes{margin-bottom:.25rem}
.cc-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.cc-two{display:grid;grid-template-columns:1fr 1fr;gap:.625rem;margin-top:.5rem}
.cc-two[hidden],.cc-one[hidden]{display:none}
.cc-one{margin-top:.5rem;max-width:12rem}
.cc-two label,.cc-one label{display:block;font-size:.8125rem;color:var(--muted);margin-bottom:.25rem}
.cc-designs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.cc-design{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;padding:.3125rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);color:var(--ink);font:inherit;font-size:.6875rem;line-height:1.2;cursor:pointer;text-align:center}
.cc-design canvas{width:100%;height:auto;border-radius:.25rem;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.cc-design.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.cc-design:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cc-part{border-top:1px solid var(--line);padding-top:.875rem;margin-top:.25rem}
.cc-part.is-current>.head .k{color:var(--accent)}
.cc-check{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem .625rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);font-size:.875rem;line-height:1.35;cursor:pointer;margin-top:.5rem}
.cc-check input{flex:none;width:1.125rem;height:1.125rem;margin:.0625rem 0 0;accent-color:var(--accent)}
.cc-check small{display:block;color:var(--muted);font-size:.78125rem}
.cc-snap{margin:.75rem 0 0;padding:.625rem .75rem;border-left:.1875rem solid var(--accent);background:var(--surface-2);border-radius:.375rem;font-size:.84375rem;line-height:1.45}
@media (min-width:56rem){.cc-designs{grid-template-columns:repeat(4,minmax(0,1fr))}}
