/* Map stencils (/gifts/stencils/): on top of the shared maker look (/gifts/globes/maker.css). */

.stn [hidden] { display: none !important; }
.stn .stn-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.stn .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.stn-for { margin-top: 2px; }

/* the map: the outline is what goes on the stencil (drawn by app.js) */
.stn .stn-mapwrap { max-width: none; position: relative; }
.stn .stn-map { aspect-ratio: 1; }
.stn-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stn-chips { margin-top: 10px; }
.stn-chips .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.stn-grounds { margin-top: 8px; }

/* the preview: the dusted / painted result fills the view; the other view sits small in a corner */
.stn-result { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.stn.stn-3d .stn-result { display: none; }
.stn-inset {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 168px; height: 126px; padding: 0; border: 0; cursor: pointer;
    border-radius: 10px; overflow: hidden; background: #0f1014; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stn-inset canvas { width: 100%; height: 100%; display: block; }
.stn-inset span {
    position: absolute; left: 8px; bottom: 7px; font: inherit; font-size: 0.72rem; color: var(--ink);
    background: rgba(15, 16, 20, 0.78); padding: 2px 7px; border-radius: 5px;
}
.stn-inset:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px var(--accent); }
.stn-inset[hidden] { display: none; }

/* warnings, food note */
.stn-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stn-warn:empty { display: none; }
.stn-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }
.stn-food { margin: 14px 0; padding: 12px 13px; border-radius: 10px; background: var(--field); }
.stn-food h3 { margin: 0 0 6px !important; font-size: 0.86rem; }
.stn-food p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }

@media (max-width: 560px) {
    .stn-inset { width: 120px; height: 90px; }
}
