/* Lava flows (/gifts/lava-flows/): on top of the shared maker look (/gifts/globes/maker.css).
   The map (vents, seen from above) and the 3D volcano side by side on a wide screen, one above the other on a narrow one. */

.lf [hidden] { display: none !important; }
.lf .lf-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.lf .lf-mappane { background: #121318; border-radius: 14px; padding: 10px 10px 12px; }
.lf .lf-3d { position: relative; top: 0; height: min(66vh, 600px); min-height: 380px; }
@media (min-width: 1280px) {
    .lf .lf-stage { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); position: sticky; top: 68px; }
    .lf .lf-3d { height: auto; min-height: 0; }
}

/* the map */
.lf-toolrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.lf .lf-tools { flex: 1; min-width: 0; display: flex; }
.lf .lf-tools button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 6px; font-size: 0.8rem; white-space: nowrap; }
.lf .lf-tools .bx { font-size: 1rem; }
.lf-acts { display: flex; gap: 2px; }
.lf .lf-act { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--field); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; padding: 0; }
.lf .lf-act:hover:not(:disabled) { background: #2a302d; }
.lf .lf-act:disabled { opacity: 0.35; cursor: default; }
.lf-mapwrap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - 250px); border-radius: 8px; overflow: hidden; background: #d9d6cf; margin: 0 auto; }
.lf-map { position: absolute; inset: 0; }
.lf-map.is-drawing .maplibregl-canvas-container, .lf-map.is-drawing canvas { cursor: crosshair; }
.lf .lf-map .maplibregl-ctrl-attrib { font-size: 0.68rem; }
.lf-vents { margin: 4px 0 0; font-size: 0.84rem; color: var(--ink); }

/* the eruption bar and the clock */
.lf .lf-bar { gap: 8px; flex-wrap: wrap; }
.lf .wm-stagebar .lf-erupt { background: var(--accent); color: #fff; }
.lf .wm-stagebar .lf-erupt:hover:not(:disabled) { background: #36b6a6; color: #fff; }
.lf .lf-erupt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 0.92rem; min-width: 128px; justify-content: center; font-weight: 600; }
.lf .lf-erupt .bx { font-size: 1.15rem; margin: 0; }
.lf .lf-small { padding: 7px 10px; font-size: 1.05rem; line-height: 1; display: inline-grid; place-items: center; }
.lf .lf-speed button { padding: 5px 10px; font-size: 0.8rem; }
.lf-clock {
    position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; pointer-events: none;
    background: rgba(16, 20, 26, 0.62); border-radius: 12px; padding: 6px 12px 6px 6px; color: #fff;
}
.lf-clock svg { flex: none; display: block; }
.lf-clocktext { display: grid; font-size: 0.8rem; line-height: 1.3; }
.lf-clocktext b { font-size: 0.95rem; font-weight: 650; }
.lf-clocktext span { color: rgba(255, 255, 255, 0.82); }
.lf-sum {
    position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; margin: 0; pointer-events: none; text-align: center;
    font-size: 0.84rem; color: #fff; background: rgba(16, 20, 26, 0.6); border-radius: 999px; padding: 5px 14px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto;
}

/* panel */
.lf .lf-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.lf .wm-sec > .lf-label:first-of-type { margin-top: 6px; }
.lf .wm-seg button { white-space: normal; line-height: 1.2; }
.lf .lf-chips { margin: 0 0 12px; gap: 6px; }
.lf .lf-chips .wm-chip { font-size: 0.8rem; padding: 5px 10px; cursor: pointer; font-family: inherit; }
.lf .lf-lava { display: flex; }
.lf .lf-lava button { flex: 1; }
.lf-facts { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; background: var(--field); border-radius: 10px; padding: 10px 12px; }
.lf-facts:empty { display: none; }
.lf-facts p { margin: 0 0 4px; }
.lf-facts p:last-child { margin: 0; }
.lf-facts b { font-weight: 650; }
.lf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: lf; }
.lf-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.84rem; line-height: 1.4; counter-increment: lf; }
.lf-list li i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-style: normal; font-size: 0.72rem; font-weight: 650; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.8); }
.lf-list li i::before { content: counter(lf); }
.lf-list li b { font-weight: 600; }
.lf-list li.is-live span { color: var(--muted); }
.lf-seed { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.86rem; }
.lf-seed .wm-btn { font-weight: 500; font-size: 0.84rem; }
.lf-pal { display: flex; gap: 4px; margin: 10px 0 2px; }
.lf-pal:empty { display: none; }
.lf-pal i { flex: 1; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.lf .wm-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.lf .wm-colors label[hidden] { display: none; }
.lf .wm-sec-out h3 { margin-top: 14px; }

@media (max-width: 560px) {
    .lf .lf-mappane { padding: 8px 6px 10px; margin: 0 -6px; }
    .lf .lf-tools button { font-size: 0.74rem; padding: 6px 3px; gap: 3px; }
    .lf .lf-tools .bx { display: none; }
    .lf-mapwrap { max-height: none; }
    .lf .lf-3d { height: 62vh; min-height: 360px; }
    .lf .wm-colors { grid-template-columns: minmax(0, 1fr); }
    .lf .lf-erupt { min-width: 0; padding: 8px 12px; }
    .lf .lf-speed button { padding: 5px 7px; font-size: 0.74rem; }
    .lf .lf-bar .wm-size { display: none; }
    .lf-clock { left: 8px; top: 8px; }
}
