/* Tsunami and dam break (/gifts/tsunami/): on top of the shared maker look (/gifts/globes/maker.css). */

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

/* the stage bar: Go, reset, speed, what to show, the camera */
.ts .ts-bar { gap: 8px; }
.ts .wm-stagebar .ts-go { background: var(--gold); color: #1d1a10; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; padding: 8px 16px; font-size: 0.92rem; }
.ts .wm-stagebar .ts-go:hover:not(:disabled) { background: #e7c260; color: #1d1a10; }
.ts .wm-stagebar .ts-go .bx { font-size: 1.15rem; margin: 0; }
.ts .ts-small { padding: 7px 10px; font-size: 1.05rem; line-height: 1; display: inline-grid; place-items: center; }
.ts .ts-small .bx { margin: 0 !important; }
.ts .ts-speed button, .ts .ts-mode button { padding: 5px 9px; font-size: 0.78rem; }
.ts .ts-cams { display: flex; gap: 4px; margin-left: auto; }

/* the clock and the legend over the view */
.ts-hud { position: absolute; left: 16px; top: 12px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; color: var(--ink); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.ts-clock { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ts-after { font-size: 0.8rem; color: rgba(236, 238, 233, 0.75); }
.ts-legend {
    position: absolute; right: 12px; top: 12px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 4px;
    background: rgba(20, 23, 22, 0.78); border-radius: 8px; padding: 7px 10px; font-size: 0.74rem; color: var(--ink);
}
.ts-legend span { display: flex; align-items: center; gap: 7px; }
.ts-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.ts-sw-early { background: #21548f; }
.ts-sw-late { background: #8cc7e6; }
.ts-size { position: absolute; right: 14px; bottom: 20px; z-index: 2; pointer-events: none; font-size: 0.72rem; color: rgba(236, 238, 233, 0.6); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ts-timebar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; z-index: 2; pointer-events: none; }
.ts-timebar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* what happens */
.ts-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ts .ts-kinds button {
    display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 9px; border-radius: 10px; border: 0; cursor: pointer;
    background: var(--field); color: var(--muted); font: inherit; font-size: 0.8rem; line-height: 1.2; text-align: center;
}
.ts .ts-kinds button .bx { font-size: 1.5rem; color: var(--ink); }
.ts .ts-kinds button:hover { color: var(--ink); background: #262b29; }
.ts .ts-kinds button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); background: rgba(47, 165, 150, 0.12); }
.ts-chips { margin-top: 12px; }
.ts-chips .wm-chip { font-size: 0.78rem; padding: 5px 11px; }

/* the map */
.ts .ts-mapwrap { max-width: none; margin-top: 10px; }
.ts .ts-map { aspect-ratio: 1; }
.ts-pin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45); cursor: grab; }
.ts-pin-f { background: #b8322a; }
.ts-pin-d { background: #1c2730; width: 20px; height: 20px; border-radius: 5px; }
.ts-pin-r { background: #2d5f95; }
.ts .ts-info { color: var(--ink); opacity: 0.85; }
.ts .ts-ri select { width: 100%; }

@media (max-width: 900px) {
    .ts .ts-cams { margin-left: 0; }
}
@media (max-width: 560px) {
    .ts .ts-speed button, .ts .ts-mode button { padding: 5px 6px; font-size: 0.72rem; }
    .ts-clock { font-size: 1.4rem; }
    .ts-size { display: none; }
    .ts .ts-kinds button { font-size: 0.74rem; }
}
