/* money.css — page layer for /money-card-maker/. The shell (header, controls, buttons,
   explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage with the card on
   it, the design tiles and the print-sheet view. The card is paper in both themes: an object on
   the mat. */
@font-face{font-family:"MCM Classic";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/classic.woff2) format("woff2")}
@font-face{font-family:"MCM Script";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/handwritten.woff2) format("woff2")}

.mc-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.mc-head h1{margin-bottom:.25rem}
.mc-head .sub{margin-bottom:.875rem}

/* ---------- the stage ---------- */
.duo.mc-duo>.pane-result{position:static}
.mc-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 1rem;box-shadow:var(--shadow);min-width:0}
.mc-stage-h{font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0 0 .5rem;text-align:center}
.mc-views{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-items:start;max-width:34rem;margin:0 auto}
.mc-view{margin:0;min-width:0}
.mc-view canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;
  box-shadow:0 1px 0 rgba(0,0,0,.1),10px 16px 28px -12px rgba(0,0,0,.6)}
.mc-view figcaption{margin:.375rem 0 0;text-align:center;font-size:.75rem;color:var(--mat-muted)}
.mc-summary{margin:.625rem 0 .625rem;text-align:center;font-size:.8125rem;line-height:1.4;color:var(--mat-ink)}
.mc-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:30rem;margin:0 auto}
.mc-dl .btn{flex:1 1 9rem}
.mc-dl .btn[hidden]{display:none}
.mc-dl .btn:disabled{opacity:.6;cursor:progress}
.mc-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.mc-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.mc-msg:empty{display:none}
.mc-toggle{margin:.5rem 0 0;text-align:center}
.mc-stage .mc-linkbtn{color:var(--mat-ink);font-size:.8125rem}
.mc-sheets[hidden]{display:none}
.mc-sheets>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin-top:.75rem}
.mc-sheet{margin:0}
.mc-sheet canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 12px 30px -14px rgba(0,0,0,.6)}
.mc-sheet figcaption{margin:.375rem 0 0;text-align:center;font-size:.75rem;color:var(--mat-muted)}

/* ---------- the form ---------- */
.mc-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.mc-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.mc-hint[hidden],.mc-form [hidden]{display:none}
.mc-form textarea{min-height:5.5rem;resize:vertical;line-height:1.45}
.mc-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.mc-occ button{flex:1 1 30%}
.mc-linkbtn{border:0;background:none;padding:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}
.mc-linkbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mc-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.625rem}
.mc-sub{margin-top:.625rem}
.mc-check{margin-top:.75rem}
.mc-check input{flex:none}
.mc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.mc-tile{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.375rem .25rem .3125rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--surface-2);color:var(--ink);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;min-width:0}
.mc-tile canvas{display:block;width:100%;max-width:6rem;height:auto;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.mc-tile span{line-height:1.2;text-align:center}
.mc-tile:hover{border-color:var(--muted)}
.mc-tile.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.mc-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

@media(min-width:920px){
  .duo.mc-duo{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-areas:none}
  .duo.mc-duo>.pane-result,.duo.mc-duo>.pane-main{grid-area:auto}
  .mc-stage{position:sticky;top:1rem}
  .mc-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.mc-tile{transition:none}}
