/* fenster.css — page layer for /fensterbilder-weihnachten/. The shell (header, controls, buttons,
   explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage with the night-window
   preview (a scene, so it looks the same in both themes), the motif picker, the technique row, the
   pane size row and the downloads. Built from the site tokens. */
.fb-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.fb-head h1{margin-bottom:.25rem}
.fb-head .sub{margin-bottom:.75rem}
.fb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- the stage ---------- */
.duo.fb-duo>.pane-result{position:static}
.fb-stage{background:radial-gradient(120% 70% at 50% 10%,rgba(255,236,170,.10),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.5rem .625rem .75rem;box-shadow:var(--shadow);min-width:0}
.fb-stage-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 0 .375rem}
.fb-stage-h{font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0}
.fb-view-toggle{display:flex;gap:.125rem;border:1px solid rgba(255,255,255,.25);border-radius:.5rem;padding:.125rem}
.fb-view-toggle button{border:0;background:transparent;color:var(--mat-muted);font:inherit;font-size:.75rem;font-weight:600;padding:.25rem .5rem;border-radius:.375rem;cursor:pointer}
.fb-view-toggle button.active{background:var(--mat-ink);color:var(--mat)}
.fb-view{height:clamp(12.5rem,56vw,22rem);display:flex;justify-content:center;align-items:center}
.fb-art{display:block;max-width:100%;max-height:100%;border-radius:.375rem;box-shadow:0 12px 22px -10px rgba(0,0,0,.55);background:#0b0f1a}
.fb-motifs{display:flex;gap:.3125rem;overflow-x:auto;padding:.5rem .125rem .375rem;margin:0 -.125rem;scrollbar-width:thin;scroll-snap-type:x proximity}
.fb-motifs button{flex:0 0 auto;width:4.25rem;display:flex;flex-direction:column;align-items:center;gap:.125rem;padding:.25rem .125rem .3125rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.14);color:var(--mat-ink);font:inherit;font-size:.6875rem;line-height:1.15;cursor:pointer;scroll-snap-align:start;text-align:center;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
.fb-motifs button svg{display:block;width:2.5rem;height:2.25rem}
.fb-motifs button.active{background:var(--mat-ink);color:var(--mat);border-color:var(--mat-ink)}
.fb-motifs button.active svg{filter:drop-shadow(0 0 0 transparent)}
.fb-techs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;margin:.25rem 0 .375rem}
.fb-techs button{padding:.4375rem .125rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.28);background:transparent;color:var(--mat-ink);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;min-width:0;line-height:1.2}
.fb-techs button.active{background:var(--mat-ink);color:var(--mat);border-color:var(--mat-ink)}
.fb-stage button:focus-visible,.fb-stage input:focus-visible{outline:2px solid var(--mat-ink);outline-offset:2px}
.fb-pane{display:flex;align-items:center;gap:.375rem;margin:0 0 .25rem}
.fb-pane-k{font-size:.8125rem;color:var(--mat-muted);flex:none}
.fb-num{flex:1;min-width:0}
.fb-num input{width:100%;font:inherit;font-size:1rem;padding:.375rem .5rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.4);background:rgba(0,0,0,.18);color:var(--mat-ink);min-width:0}
.fb-x,.fb-unit{font-size:.875rem;color:var(--mat-muted);flex:none}
.fb-dl{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:.375rem;margin-top:.375rem}
.fb-dl.fb-cut{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.fb-dl .btn{padding-left:.375rem;padding-right:.375rem;min-width:0}
.fb-dl .btn:disabled{opacity:.55;cursor:not-allowed}
.fb-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.fb-summary{margin:.5rem 0 .25rem;text-align:center;font-size:.8125rem;line-height:1.4;color:var(--mat-ink)}
.fb-msg{margin:.25rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.fb-msg:empty{display:none}

/* ---------- the form ---------- */
.fb-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.fb-form .field[hidden]{display:none}
.fb-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.fb-hint:empty{display:none}
.fb-form .modes{flex-wrap:wrap}
.fb-check{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;margin:.25rem 0 0}
.fb-check input{width:1.125rem;height:1.125rem;accent-color:var(--accent)}
.fb-page{display:flex;flex-direction:column;gap:.25rem}
.fb-page select{width:100%;font:inherit;padding:.4375rem .5rem;border-radius:.5rem;border:1px solid var(--line-2);background:var(--surface);color:var(--ink)}

@media(min-width:920px){
  .duo.fb-duo{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:none}
  .duo.fb-duo>.pane-result,.duo.fb-duo>.pane-main{grid-area:auto}
  .fb-stage{position:sticky;top:1rem}
  .fb-view{height:20rem}
  .fb-motifs button{width:3.9rem}
  .fb-motifs{flex-wrap:wrap;overflow:visible}
}
@media(prefers-reduced-motion:reduce){.fb-motifs{scroll-behavior:auto}}
