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

.ks [hidden] { display: none !important; }
.ks[data-md="stamp"] .ks-only-pin, .ks[data-md="pin"] .ks-only-stamp { display: none !important; }
.ks[data-fl="1"] .ks-only-sleeve, .ks[data-fl="0"] .ks-only-whole { display: none !important; }
.ks .ks-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.ks .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }

/* the stage: the parts in 3D, and the cookie or dough as it comes out */
.ks-views { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; margin: 0 10px; }
.ks-views .wm-view { margin: 0; }
.ks-dough { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #efe6d4; min-height: 0; }
.ks-dough canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ks-dough figcaption {
    position: absolute; left: 10px; top: 10px; font-size: 0.78rem; font-weight: 500;
    color: #4a3a2a; background: rgba(255, 250, 240, 0.85); padding: 4px 9px; border-radius: 999px;
}

/* the map: the stamp's outline or the pin's strip over it (drawn by app.js) */
.ks .ks-mapwrap { max-width: none; position: relative; }
.ks .ks-map { aspect-ratio: 1; }
.ks-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ks-chips { margin-top: 10px; }
.ks-chips .wm-chip { font-size: 0.76rem; padding: 5px 10px; }

.ks-turn { display: flex; gap: 6px; margin-top: 8px; }
.ks-turn .wm-btn { flex: 1 1 0; justify-content: center; }
.ks-turn .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* warnings */
.ks-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ks-warn:empty { display: none; }
.ks-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; }

.ks-food { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(47, 165, 150, 0.08); border: 1px solid rgba(47, 165, 150, 0.25); }
.ks-food h3 { margin: 0 0 4px; font-size: 0.86rem; }
.ks-food p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

.ks .wm-about > h3 { font-size: 1rem; margin: 28px 0 8px; }
.ks .wm-about > p:not(.wm-credit) { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; max-width: 820px; }

@media (max-width: 1100px) {
    .ks-views { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .ks .wm-stagebar .wm-btn span { display: none; }
}
