/* facehole.css — page layer for /face-in-hole-template/. The shell (header, controls, buttons, explainer, footer)
   is /assets/polyatic.css; this adds the cutting-mat stage with the board standing on it (its face hole really cut
   out, so the mat shows through), the figure chips and the skin swatches. Built from the site's tokens only. */
.fh-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.fh-head h1{margin-bottom:.25rem}
.fh-head .sub{margin-bottom:.5rem}
.fh-head .you-get{margin:0 0 .75rem;font-size:.9375rem;color:var(--ink-2)}

.duo.fh-duo>.pane-result{position:static}
.fh-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,214,140,.14),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}
.fh-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}
.fh-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:.75rem;align-items:center}
.fh-board{line-height:0;max-width:22rem;margin:0 auto;width:100%}
.fh-board canvas{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 18px rgba(0,0,0,.45))}
.fh-side{min-width:0;display:flex;flex-direction:column;gap:.5rem}
.fh-summary{margin:0;font-size:.8125rem;line-height:1.4;color:var(--mat-ink)}
.fh-summary b{font-weight:700}
.fh-dl{display:flex;flex-direction:column;gap:.4rem}
.fh-dl .btn{width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding-left:.5rem;padding-right:.5rem}
.fh-dl .btn:disabled{opacity:.6;cursor:progress}
.fh-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.fh-stage .btn.ghost:hover{border-color:var(--mat-ink)}
.fh-dl [hidden]{display:none}
.fh-figs{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:center;margin:.75rem 0 0}
.fh-figs button{min-height:2.25rem;padding:.3rem .7rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:transparent;color:var(--mat-ink);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer}
.fh-figs button:hover{border-color:var(--mat-ink)}
.fh-figs button.active{background:var(--signal);border-color:var(--signal);color:var(--signal-ink)}
.fh-figs button:focus-visible,.fh-swatches button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.fh-msg{margin:.625rem 0 0;font-size:.8125rem;text-align:center;color:var(--mat-ink);min-height:1em}
.fh-msg:empty{display:none}

.fh-swatches{display:flex;gap:.5rem;flex-wrap:wrap}
.fh-swatches button{width:2.25rem;height:2.25rem;border-radius:50%;border:2px solid var(--line);cursor:pointer;padding:0}
.fh-swatches button.active{border-color:var(--ink);box-shadow:0 0 0 2px var(--accent-soft)}
.fh-hint{margin:.4rem 0 0;font-size:.8125rem;color:var(--muted)}
.fh-check{display:flex;gap:.5rem;align-items:center;font-size:.875rem;margin-top:.5rem}
.fh-form input[type="text"]{width:100%}
.fh-form [hidden]{display:none}
.explainer .fh-table{width:100%;border-collapse:collapse;font-size:.9375rem;margin:.5rem 0 1rem}
.explainer .fh-table th,.explainer .fh-table td{border-bottom:1px solid var(--line);padding:.4rem .5rem;text-align:left;vertical-align:top}
.explainer .fh-wide{overflow-x:auto}

@media(max-width:380px){.fh-row{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}
@media(min-width:920px){.fh-row{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.25rem}.fh-summary{font-size:.9375rem}}
