/* globe.css — page layer for /snow-globe-template/. The shell (header, controls, buttons, explainer,
   footer) is /assets/polyatic.css; this adds the cutting-mat stage with the finished globe printed on
   white paper (it keeps its print colours in both themes), the use chips, the photo + name row, the
   downloads, the design swatches and the photo sliders. */
.sg-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.sg-head h1{margin-bottom:.25rem}
.sg-head .sub{margin-bottom:.75rem}

/* ---------- the stage ---------- */
.duo.sg-duo>.pane-result{position:static}
.sg-stage{background:radial-gradient(120% 70% at 50% 10%,rgba(200,230,255,.12),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}
.sg-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 .375rem;text-align:center}
.sg-view{height:clamp(16rem,76vw,23rem);display:flex;justify-content:center;align-items:center}
.sg-art{display:block;max-width:100%;max-height:100%;border-radius:.25rem;box-shadow:0 12px 22px -10px rgba(0,0,0,.55);background:#fff;touch-action:none}
.sg-art.can-drag{cursor:grab}
.sg-art.dragging{cursor:grabbing}
.sg-uses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;margin:.5rem 0}
.sg-uses 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}
.sg-uses button.active{background:var(--mat-ink);color:var(--mat);border-color:var(--mat-ink)}
.sg-uses button:focus-visible,.sg-quick input:focus-visible,.sg-photo-btn:focus-within{outline:2px solid var(--mat-ink);outline-offset:2px}
.sg-quick{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.375rem;margin:0 0 .375rem}
.sg-photo-btn{position:relative;display:flex;align-items:center;justify-content:center;font-size:.875rem;min-width:0;cursor:pointer}
.sg-file{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.sg-name input{width:100%;height: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)}
.sg-jump{font-size:.875rem;min-width:0}
.sg-name input::placeholder{color:var(--mat-muted)}
.sg-dl{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:.375rem}
.sg-dl .btn{padding-left:.375rem;padding-right:.375rem;min-width:0}
.sg-dl .btn:disabled{opacity:.55;cursor:not-allowed}
.sg-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.sg-summary{margin:.5rem 0 .25rem;text-align:center;font-size:.8125rem;line-height:1.4;color:var(--mat-ink)}
.sg-msg{margin:.25rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.sg-msg:empty{display:none}

/* ---------- the form ---------- */
.sg-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.sg-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.sg-hint:empty{display:none}
.sg-form .modes{flex-wrap:wrap}
.sg-designs{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.5rem,1fr));gap:.375rem}
.sg-designs button{display:flex;align-items:center;gap:.4375rem;padding:.375rem .5rem;border-radius:.5rem;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:.8125rem;cursor:pointer;text-align:left;min-width:0}
.sg-designs button.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}
.sg-designs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sg-sw{flex:none;width:1.125rem;height:1.125rem;border-radius:50%;border:1px solid rgba(0,0,0,.25);background:var(--sw-b);box-shadow:inset 0 -.4rem 0 var(--sw-a)}
.sg-slider{display:grid;grid-template-columns:6.5rem minmax(0,1fr);align-items:center;gap:.5rem;font-size:.8125rem;color:var(--muted);margin:.25rem 0}
.sg-slider input{width:100%;accent-color:var(--accent)}
.sg-link{margin-left:auto;background:none;border:0;padding:0;color:var(--accent);font:inherit;font-size:.8125rem;text-decoration:underline;cursor:pointer}
.sg-form textarea{width:100%;font:inherit;font-size:.9375rem;padding:.5rem .625rem;border-radius:.5rem;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);resize:vertical}
.sg-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:.625rem}
.sg-two label{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.sg-two input,.sg-page select{width:100%;font:inherit;padding:.4375rem .5rem;border-radius:.5rem;border:1px solid var(--line-2);background:var(--surface);color:var(--ink)}
.sg-page{display:flex;flex-direction:column;gap:.25rem}

@media(min-width:920px){
  .duo.sg-duo{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:none}
  .duo.sg-duo>.pane-result,.duo.sg-duo>.pane-main{grid-area:auto}
  .sg-stage{position:sticky;top:1rem}
  .sg-view{height:30rem}
}
