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

.zo .zo-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.zo .wm-sec .zo-label:first-of-type { margin-top: 2px; }
.zo .wm-seg button { padding: 6px 9px; }
.zo .zo-kind { display: flex; width: 100%; }
.zo .zo-kind button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.zo .zo-kind .bx { font-size: 1.05rem; }
.zo .wm-mapwrap { max-width: none; margin-top: 10px; }
.zo .wm-mapwrap .wm-map { aspect-ratio: 16 / 11; }
.zo .zo-chips { margin: 10px 0 12px; gap: 6px; }
.zo .zo-chips .wm-chip { font-size: 0.8rem; padding: 5px 10px; cursor: pointer; font-family: inherit; }
.zo .wm-seg button:disabled { opacity: 0.35; cursor: not-allowed; }

/* where the lake starts, on the map */
.zo-seed {
    width: 18px; height: 18px; border-radius: 50%; cursor: grab;
    background: radial-gradient(circle at 40% 40%, #8fd0ff, #2f86c9 60%, #164e7a);
    box-shadow: 0 0 0 2px #fff, 0 1px 6px rgba(0, 0, 0, 0.6);
}
.zo-seed[hidden] { display: none; }
.zo-seed:active { cursor: grabbing; }

/* the level of every frame */
.zo-levels { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.zo-levels li {
    position: relative; overflow: hidden; background: var(--field); border-radius: 7px; padding: 5px 6px 8px; cursor: pointer;
    font-size: 0.78rem; line-height: 1.2; display: flex; gap: 5px; align-items: baseline; border: 1px solid transparent;
}
.zo-levels li:hover { border-color: rgba(47, 165, 150, 0.45); }
.zo-levels li.is-on { border-color: var(--accent); }
.zo-levels b { color: var(--muted); font-weight: 600; font-size: 0.7rem; min-width: 1.1em; }
.zo-levels span { color: var(--ink); white-space: nowrap; }
.zo-levels i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--f, 0) * 100%); background: #3d93d6; border-radius: 0 2px 0 0; }

/* the frame on show in the preview */
.zo-frame {
    position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none;
    background: rgba(16, 20, 18, 0.82); color: var(--ink); border-radius: 10px; padding: 7px 11px; font-size: 0.82rem; line-height: 1.35;
    display: flex; flex-direction: column; gap: 1px; backdrop-filter: blur(4px);
}
.zo-frame[hidden] { display: none; }
.zo-frame b { font-weight: 650; }
.zo-frame span { color: #8fd0ff; font-weight: 600; }
.zo-frame small { color: var(--muted); font-size: 0.74rem; }
.zo-frame small:empty { display: none; }

/* the preview buttons */
.zo .wm-stagebar .zo-play { background: var(--accent); color: #04201c; font-weight: 650; }
.zo .wm-stagebar .zo-play:hover:not(:disabled) { background: #3cb8a8; }
.zo .wm-stagebar .wm-btn[aria-pressed="true"]:not(.zo-play) { background: rgba(47, 165, 150, 0.22); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

/* how to watch */
.zo-steps { margin: 0 0 10px; padding-left: 18px; font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.zo-steps li + li { margin-top: 4px; }
.zo-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin: 4px 0 8px; }
.zo-table th { text-align: left; font-weight: 650; padding: 6px 8px 6px 0; white-space: nowrap; }
.zo-table td { padding: 6px 8px 6px 0; color: var(--ink); }
.zo-table tr + tr { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.zo-table td:last-child { color: var(--muted); }

.zo-sheet { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.zo-sheet select { background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 0.88rem; }
.zo .wm-sec-out h3 { margin-top: 16px; }
.zo .wm-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 560px) {
    .zo .wm-seg button { padding: 6px 6px; font-size: 0.76rem; }
    .zo .wm-stagebar .wm-btn span { display: none; }
    .zo .wm-stagebar .zo-play span { display: inline; }
    .zo-table td:last-child { display: none; }
    .zo-frame { left: 8px; top: 8px; padding: 5px 9px; font-size: 0.74rem; }
    .zo-frame small { font-size: 0.68rem; }
}
