/* hunt.css — page layer for /scavenger-hunt-generator/. The shell (header, controls,
   buttons, explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage with
   the printed sheet on it, the design picker and the hiding-place checklist.
   The sheet is paper-white in both themes: it is an object on the mat. */
@font-face{font-family:"SHG Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/gift-tag-maker/fonts/classic.woff2) format("woff2")}
@font-face{font-family:"SHG Script";font-style:normal;font-weight:400;font-display:swap;src:url(/gift-tag-maker/fonts/handwritten.woff2) format("woff2")}

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

/* ---------- the stage ---------- */
.duo.hs-duo>.pane-result{position:static}
.hs-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}
.hs-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}
.hs-paper{max-width:30rem;margin:0 auto;line-height:0}
.hs-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)}
.hs-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:30rem;margin:.625rem auto 0}
.hs-dl .btn{flex:1 1 9rem}
.hs-dl .btn:disabled{opacity:.6;cursor:progress}
.hs-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.hs-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)}
.hs-pager[hidden]{display:none}
.hs-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}
.hs-pg:disabled{opacity:.35;cursor:default}
.hs-pg:focus-visible,.hs-stage .btn:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.hs-summary{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-ink)}
.hs-summary b{color:#fff}
.hs-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.hs-msg:empty{display:none}
.hs-hide{max-width:30rem;margin:.75rem auto 0;color:var(--mat-ink);font-size:.875rem}
.hs-hide summary{cursor:pointer;font-weight:600}
.hs-hide ol{margin:.5rem 0 0;padding-left:1.25rem;line-height:1.45}
.hs-hide li{margin:.25rem 0}
.hs-hide small{display:block;color:var(--mat-muted);font-size:.8125rem}

/* ---------- the form ---------- */
.hs-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.hs-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.hs-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.hs-designs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.hs-design{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}
.hs-design canvas{display:block;width:100%;max-width:8rem;height:auto;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.hs-design:hover{border-color:var(--muted)}
.hs-design.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.hs-design:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.hs-room{border:0;margin:0 0 .75rem;padding:0;min-width:0}
.hs-room legend{font-family:var(--mono);font-size:.6875rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:.375rem;padding:0}
.hs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.375rem}
.hs-place{display:flex;align-items:center;gap:.4375rem;padding:.375rem .5rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);
  font-size:.8125rem;line-height:1.2;cursor:pointer;min-width:0;min-height:2.5rem}
.hs-place input{flex:none;width:1rem;height:1rem;margin:0;accent-color:var(--accent)}
.hs-place svg{flex:none;width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.hs-place span{min-width:0;overflow-wrap:anywhere}
.hs-place:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-soft)}
.hs-place:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.hs-place-tools{display:flex;gap:.75rem;margin:.25rem 0 .75rem}
.hs-linkbtn{border:0;background:none;padding:0;font:inherit;font-size:.8125rem;color:var(--accent);text-decoration:underline;cursor:pointer}
.hs-form select{width:100%}

@media(min-width:620px){.hs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:920px){
  .duo.hs-duo{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:none}
  .duo.hs-duo>.pane-result,.duo.hs-duo>.pane-main{grid-area:auto}
  .hs-stage{position:sticky;top:1rem}
  .hs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1200px){.hs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- the mode switch + the find-it list (findit-app.js) ---------- */
.hs-duo>[hidden]{display:none!important}
.hs-mode{margin:0 0 .875rem}
.hs-mode button small,.hs-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.hs-lists button{flex:1 1 40%}
.hs-items{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.375rem}
.hs-item{display:flex;align-items:center;gap:.5rem;padding:.25rem .5rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);min-width:0}
.hs-item input[type=checkbox]{flex:none;width:1.125rem;height:1.125rem;margin:0;accent-color:var(--accent)}
.hs-item svg{flex:none;width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.hs-item input[type=text]{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.875rem;padding:.375rem .125rem;min-height:2.25rem}
.hs-item input[type=text]:focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-radius:.25rem}
.hs-item.off{opacity:.55}
.hs-item.off input[type=text]{text-decoration:line-through}
.hs-item.own{border-style:dashed}
.hs-own-tag{flex:none;width:1.125rem;text-align:center;font-weight:700;color:var(--accent)}
.hs-own{display:flex;gap:.5rem;margin:.5rem 0 0}
.hs-own input{flex:1 1 auto;min-width:0}
.hs-own .btn{flex:none}
.hs-form .modes button:disabled{opacity:.4;cursor:not-allowed}
@media(min-width:620px){.hs-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:920px){.hs-items{grid-template-columns:minmax(0,1fr)}}
@media(min-width:1200px){.hs-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
