:root {
  --canvas: #030712; --glass: rgb(7 16 34 / .93); --glass-hi: rgb(11 24 50 / .95); --ink: #e3edff; --ink-soft: #8ea6c8; --line: rgb(96 165 250 / .16);
  --cyan: #38bdf8; --cyan-hi: #7dd3fc; --fire: #ff5a1f; --ember: #ffb020; --padam: #64748b; --ok: #34d399; --live: #ff3344;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow: 0 0 0 1px rgb(56 189 248 / .16), 0 1px 0 rgb(125 211 252 / .12) inset, 0 28px 60px -30px rgb(0 0 0 / .9);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --top: max(12px, env(safe-area-inset-top)); --bottom: max(12px, env(safe-area-inset-bottom));
  /* the page is dark by design and draws its own colours: browsers must not invert it */
  color-scheme: only dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--cyan); color: #031020; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.map { position: fixed; inset: 0; }
.sky { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(1px 1px at 12% 18%, #fff7, transparent 60%), radial-gradient(1px 1px at 72% 12%, #fff5, transparent 60%), radial-gradient(1.4px 1.4px at 38% 8%, #fff6, transparent 60%),
  radial-gradient(1px 1px at 86% 30%, #fff4, transparent 60%), radial-gradient(120% 80% at 50% 120%, #0b2a6b 0%, #050c1f 55%, #02040b 100%); }
.brand, .panel, .icon { background: var(--glass);  box-shadow: var(--shadow); }

.top { position: fixed; z-index: 6; left: 16px; right: 16px; top: var(--top); display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 7px 14px 7px 7px; border-radius: 999px; }
.brand img { flex: none; filter: drop-shadow(0 0 10px rgb(255 90 31 / .5)); }
.brand h1 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; }
.brand p { margin: 0; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand p b { color: var(--ok); font-weight: 700; }
.tools { display: flex; gap: 8px; }
.icon { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .14s var(--ease), box-shadow .2s; }
.icon svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan-hi); stroke-width: 2; stroke-linecap: round; }
.icon:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .icon:hover { box-shadow: var(--shadow), 0 0 22px -4px rgb(56 189 248 / .55); } .rank button:hover { background: rgb(56 189 248 / .08); } .list button:hover { color: var(--cyan-hi); } }

.panel { position: fixed; z-index: 4; border-radius: 20px; }
.stats { left: 16px; top: calc(var(--top) + 60px); width: 320px; max-height: calc(100vh - 100px); overflow: auto; padding: 14px 16px 16px; overscroll-behavior: contain; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.big { display: flex; align-items: baseline; gap: 10px; width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: default; }
.big b { font: 700 44px/1 var(--mono); color: var(--fire); letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgb(255 90 31 / .55); }
.big span { font-weight: 600; color: var(--ink-soft); display: grid; line-height: 1.25; }
.big em { font-style: normal; font-size: 12px; color: var(--live); font-weight: 700; }
.big em::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 10px var(--live); animation: blink 1.6s ease-in-out infinite; }
.big em:empty { display: none; }
.chev { display: none; }
.nums .wide { grid-column: 1 / -1; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 14px 0; }
.nums div { margin: 0; } .nums dt { font-size: 11px; color: var(--ink-soft); } .nums dd { margin: 0; font: 700 18px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.rank { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.rank button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; transition: background-color .18s var(--ease); }
.rank button b { font-weight: 600; font-size: 13px; } .rank button span { font: 700 13px var(--mono); color: var(--fire); font-variant-numeric: tabular-nums; }
.rank button i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--fire)); transform-origin: left; box-shadow: 0 0 10px rgb(255 90 31 / .5); }
.src { margin: 10px 0 0; font-size: 11px; color: var(--ink-soft); line-height: 1.7; }
.src i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: var(--ok); vertical-align: 1px; box-shadow: 0 0 8px currentColor; } .src i.late { background: var(--ember); } .src i.down { background: var(--live); }

/* smoke drifts above the map, under the panels; it takes no clicks */
.smoke { position: fixed; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.threat-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 0; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(90deg, rgb(255 51 68 / .18), rgb(255 51 68 / .05)); box-shadow: inset 0 0 0 1px rgb(255 51 68 / .35); }
.threat-row b { font: 700 20px var(--mono); color: #ff6b78; } .threat-row span { font-weight: 600; font-size: 12.5px; } .threat-row i { margin-left: auto; font-style: normal; font-size: 20px; color: #ff6b78; }
.threat-row[hidden] { display: none; }
.tr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); animation: blink 1.2s ease-in-out infinite; flex: none; }
.lvl { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #f59e0b; }
.lvl.bahaya { background: var(--live); box-shadow: 0 0 12px rgb(255 51 68 / .55); }
.tlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tlist button { width: 100%; display: grid; gap: 4px; padding: 10px 12px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; background: rgb(56 189 248 / .05); box-shadow: inset 0 0 0 1px var(--line); }
.tlist .t1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .tlist .t1 b { font-size: 14px; }
.tlist .tl { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgb(56 189 248 / .05); box-shadow: inset 0 0 0 1px var(--line); }
.tlist small { display: block; color: var(--ink-soft); font-size: 12px; } .tlist em { display: block; font-style: normal; color: var(--cyan-hi); font-family: var(--mono); font-size: 11.5px; }
.wind-arrow { display: inline-block; width: 14px; text-align: center; color: var(--cyan-hi); }

/* the one detail panel: a province, a regency or a fire, never two at once */
.detail { right: 16px; top: calc(var(--top) + 60px); width: 380px; max-height: calc(100vh - 100px); overflow: auto; padding: 18px; overscroll-behavior: contain; background: var(--glass-hi); }
.detail.in { animation: rise .32s var(--ease); }
.detail h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; padding-right: 36px; }
.detail .kick { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.detail .close { position: sticky; top: 0; float: right; margin: -4px -4px 0 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; z-index: 5;
  background: #11264d; box-shadow: 0 0 0 1px rgb(125 211 252 / .35), 0 6px 16px -6px #000; }
.detail .close::before, .detail .close::after { content: ""; position: absolute; left: 12px; top: 17px; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); } .detail .close::after { transform: rotate(-45deg); }
.detail .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; } .detail .row .wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.detail .row div { padding: 10px; border-radius: 14px; background: rgb(56 189 248 / .06); box-shadow: inset 0 0 0 1px var(--line); } .detail .row small { display: block; font-size: 11px; color: var(--ink-soft); } .detail .row b { font: 700 17px var(--mono); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 3px; height: 70px; margin: 8px 0 4px; }
.bars i { display: block; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--fire), var(--ember)); min-height: 2px; transform-origin: bottom; animation: grow .5s var(--ease) both; box-shadow: 0 0 10px rgb(255 90 31 / .35); }
.bars-x { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--ink-soft); }
.list { list-style: none; margin: 8px 0 0; padding: 0; } .list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; } .list b { font: 700 13px var(--mono); color: var(--fire); white-space: nowrap; }
.list button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-weight: 600; transition: color .18s; }
.detail h3 { margin: 18px 0 0; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.detail p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }

/* the fire card */
.fc-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.flame { position: relative; width: 64px; height: 64px; border-radius: 18px; background: radial-gradient(60% 60% at 50% 70%, rgb(255 90 31 / .35), transparent 70%), rgb(255 90 31 / .08); box-shadow: inset 0 0 0 1px rgb(255 90 31 / .3); overflow: hidden; }
.flame i { position: absolute; left: 50%; bottom: 8px; width: 26px; height: 40px; margin-left: -13px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(50% 65% at 50% 70%, #fff4c2 0%, #ffb020 35%, #ff5a1f 70%, transparent 72%); filter: blur(.4px); transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; }
.flame i + i { width: 18px; height: 28px; margin-left: -4px; bottom: 9px; opacity: .8; animation-duration: .8s; animation-delay: -.3s; }
.flame.padam i { background: radial-gradient(50% 65% at 50% 70%, #cbd5e1 0%, #64748b 60%, transparent 72%); animation: none; opacity: .5; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--fire); }
.badge.live { background: var(--live); box-shadow: 0 0 18px rgb(255 51 68 / .6); } .badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s ease-in-out infinite; }
.badge.padam { background: var(--padam); }
.fc-head h2 { font-size: 19px; margin-top: 6px; }
.gauge { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 16px 0 4px; }
.gauge svg { width: 120px; height: 120px; display: block; }
.gauge .track { stroke: rgb(56 189 248 / .12); } .gauge .val { stroke: url(#fg); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 0 6px rgb(255 90 31 / .6)); }
.gauge text { fill: var(--ink); font: 700 22px var(--mono); } .gauge .u { font: 600 10px var(--mono); fill: var(--ink-soft); }
.facts { display: grid; gap: 8px; } .facts div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); padding-bottom: 6px; } .facts b { color: var(--ink); font: 600 12.5px var(--mono); text-align: right; }
.spark { width: 100%; height: 84px; display: block; margin-top: 6px; } .spark path { fill: none; stroke: var(--fire); stroke-width: 2; filter: drop-shadow(0 0 6px rgb(255 90 31 / .6)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s var(--ease) .2s forwards; }
.spark .area { fill: url(#sg); stroke: none; filter: none; animation: fade .9s .6s both; stroke-dasharray: none; }
.spark circle { animation: fade .3s both; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .chips span { padding: 4px 10px; border-radius: 999px; font: 600 11px var(--mono); background: rgb(56 189 248 / .08); box-shadow: inset 0 0 0 1px var(--line); }
.chips span i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.coords { margin-top: 12px; font: 500 11.5px var(--mono); color: var(--ink-soft); }
.stagger > * { animation: rise .45s var(--ease) both; } .stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; } .stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; } .stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }

.maplibregl-ctrl-attrib { background: rgb(6 14 30 / .7) !important; color: var(--ink-soft); font-size: 10.5px; } .maplibregl-ctrl-attrib a { color: var(--ink-soft); }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

.intro .stats, .intro .tools, .intro .detail { opacity: 0; transform: translateY(12px); pointer-events: none; }
.tools { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fallback { position: fixed; inset: 80px 16px 16px; overflow: auto; z-index: 3; }
.noscript { max-width: 640px; margin: 15vh auto; padding: 0 20px; } .noscript h1 { font-size: 34px; } .noscript a { color: var(--cyan-hi); }

/* the hologram: a region lifted out of the map, floating above the panel; never takes a pointer */
.holo { position: fixed; z-index: 5; pointer-events: none; transform-origin: 50% 50%; transform-style: preserve-3d; will-change: transform; }
.holo .h-bob, .holo .h-bob > div { position: absolute; inset: 0; transform-style: preserve-3d; }
.holo.lit .h-bob { animation: bob 5s ease-in-out infinite; }
.holo canvas { position: absolute; left: 0; top: 0; }
/* drawn once as bitmaps (app.js bake()); only opacity and transform move */
.h-fireimg { opacity: 0; transition: opacity .6s var(--ease) .1s; } .holo.lit .h-fireimg { opacity: 1; }
.h-sweepbox { position: absolute; inset: 0; overflow: hidden; mask-size: 100% 100%; -webkit-mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; }
.h-sweep { position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: rgb(224 242 254 / .16); animation: sweep 4.5s linear infinite; will-change: transform; }
.h-dot { position: absolute; border-radius: 50%; background: #ff3344; box-shadow: 0 0 0 .5px #fff4e0; opacity: 0; }
.holo.lit .h-dot { opacity: 1; animation: blink 1.6s ease-in-out infinite; }
.h-beam { position: absolute; transform-origin: 50% 100%; transform: rotateX(-90deg) scaleY(0); transition: transform .9s var(--ease) .3s; border-radius: 2px;
  background: linear-gradient(to top, #ffb020, rgb(255 90 31 / .7) 45%, rgb(255 51 68 / 0)); box-shadow: 0 0 10px rgb(255 90 31 / .8); }
.h-beam.lv { background: linear-gradient(to top, #ff6a1a, rgb(255 51 68 / .8) 45%, rgb(255 51 68 / 0)); }
.holo.lit .h-beam { transform: rotateX(-90deg) scaleY(1); }
.holo-cap { position: fixed; z-index: 5; pointer-events: none; display: flex; justify-content: center; gap: 10px; align-items: baseline; opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 8px #020617; }
.holo-cap.in { opacity: 1; transform: none; } .holo-cap b { color: #e0f2fe; } .holo-cap span { color: var(--ember); }
@media (min-width: 761px) { body.has-holo:not(.holo-beside) .detail { top: calc(var(--top) + 290px); max-height: calc(100vh - var(--top) - 306px); } .detail { transition: top .5s var(--ease); } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, 0, 14px); } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(400%); } }

.fixed-note { margin-top: 12px !important; padding: 10px 12px; border-radius: 12px; background: rgb(148 163 184 / .1); box-shadow: inset 0 0 0 1px rgb(148 163 184 / .25); color: var(--ink) !important; }

/* air quality in the panel */
.air-head { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.air-num { display: grid; place-items: center; width: 74px; height: 74px; flex: none; border-radius: 20px; background: color-mix(in srgb, var(--air) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--air), 0 0 26px -6px var(--air); animation: rise .5s var(--ease) both; }
.air-num b { font: 700 26px/1 var(--mono); color: var(--air); font-variant-numeric: tabular-nums; } .air-num small { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--ink-soft); margin-top: -10px; }
.air-head strong { display: block; font-size: 18px; font-weight: 800; color: var(--air); } .air-head small { display: block; font-size: 12px; color: var(--ink-soft); }
.air-scale { position: relative; height: 6px; margin: 12px 0 4px; border-radius: 6px; background: linear-gradient(90deg, #22c55e 0 10%, #38bdf8 10% 20%, #facc15 20% 40%, #f43f5e 40% 60%, #a855f7 60%); }
.air-scale i { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff; animation: fade .6s .3s both; }
.air-tip { color: var(--ink) !important; }
.air-line { width: 100%; height: 64px; display: block; margin-top: 10px; } .air-line path { fill: none; stroke-width: 2; } .air-line .ahead { stroke-dasharray: 4 3; opacity: .8; }
.air-line .past { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.2s var(--ease) .2s forwards; }
.air-line .nowl { stroke: rgb(224 242 254 / .5); stroke-width: 1; stroke-dasharray: 2 2; }
.air-src { font-size: 11px !important; opacity: .8; }

/* the air map switch and its legend */
.icon[aria-pressed="true"] { background: rgb(56 189 248 / .9); color: #031020; box-shadow: var(--shadow), 0 0 22px -4px rgb(56 189 248 / .8); }
.icon[aria-pressed="true"] svg { stroke: #031020; }
.air-legend { position: fixed; z-index: 4; left: 50%; bottom: calc(var(--bottom) + 8px); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--glass);  box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.air-legend span { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11px var(--font); white-space: nowrap; }
.air-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.air-legend[hidden] { display: none; }
/* the fire card's place: coordinates and a way to Google Maps */
.where { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .where .coords { margin: 0; }
.gmaps { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font: 700 12.5px var(--font); color: #031020; background: var(--cyan-hi); text-decoration: none; box-shadow: 0 0 18px -4px rgb(56 189 248 / .8); }
.gmaps::after { content: "↗"; font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .gmaps:hover { background: #fff; } }

/* lists of things to open (regencies, fires): each row is one big button */
.rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rows button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 14px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgb(56 189 248 / .07); box-shadow: inset 0 0 0 1px var(--line); transition: transform .12s var(--ease), background .18s, box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.rows button::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid var(--cyan-hi); border-top: 2px solid var(--cyan-hi); transform: rotate(45deg); opacity: .7; }
.rows button:active { transform: scale(.98); background: rgb(56 189 248 / .16); }
.rows .r-main { flex: 1; min-width: 0; display: grid; } .rows .r-main b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r-main small { font-size: 11.5px; color: var(--ink-soft); }
.rows .r-num { font: 700 13px var(--mono); color: var(--fire); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows .calm .r-num { color: var(--ink-soft); } .rows .calm .r-main b { color: var(--ink-soft); }
.rows .live { background: rgb(255 51 68 / .1); box-shadow: inset 0 0 0 1px rgb(255 51 68 / .35); } .rows .live .r-main b { color: #ff8a95; }
.rows .live .r-main b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: blink 1.2s ease-in-out infinite; vertical-align: 1px; }
.r-more { font-size: 11.5px !important; }
@media (hover: hover) and (pointer: fine) { .rows button:hover { background: rgb(56 189 248 / .14); box-shadow: inset 0 0 0 1px rgb(56 189 248 / .45); } }
/* back to the region above */
.back { display: flex; width: max-content; max-width: calc(100% - 44px); align-items: center; gap: 8px; margin: -2px 0 10px; padding: 6px 12px 6px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(56 189 248 / .12); color: var(--cyan-hi); font: 700 12.5px var(--font); transition: transform .12s var(--ease), background .18s; }
.back i { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 3px; }
.back:active { transform: scale(.96); } .back span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .back:hover { background: rgb(56 189 248 / .22); } }

/* the CCTV player in the panel */
.cam-road { margin-top: 2px !important; }
.cam-view { position: relative; margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #020617; box-shadow: inset 0 0 0 1px var(--line); }
.cam-view video, .cam-view img, .cam-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.cam-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(70% 70% at 50% 50%, #0b1d45, #020617); color: var(--ink-soft); font-size: 12.5px; text-align: center; padding: 16px; }
.cam-veil[hidden] { display: none; }
.cam-scan { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgb(56 189 248 / .25); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
.cam-veil.off .cam-scan { animation: none; border-color: rgb(148 163 184 / .4); }
.cam-live { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgb(2 6 23 / .7); font: 700 10px var(--mono); letter-spacing: .1em; color: #fff; }
.cam-live[hidden] { display: none; } .cam-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: blink 1.2s ease-in-out infinite; }
.cam-clock { position: absolute; right: 10px; bottom: 8px; font: 600 11px var(--mono); color: #fff; text-shadow: 0 1px 6px #000; }
.cam-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.cam-nav { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; background: rgb(56 189 248 / .14); color: var(--cyan-hi); font: 700 22px/1 var(--font); }
.cam-nav:active { transform: scale(.94); }
.cam-note { font-size: 11px !important; opacity: .8; }

/* share: the button in each panel and the share view */
.share-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 6px; padding: 12px 16px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(120deg, rgb(255 90 31 / .9), rgb(255 51 68 / .9)); color: #fff; font: 800 14px var(--font); box-shadow: 0 10px 28px -12px rgb(255 70 40 / .8); transition: transform .12s var(--ease); }
.share-btn i { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 4px; position: relative; } .share-btn i::after { content: ""; position: absolute; left: 4px; top: -7px; width: 5px; height: 9px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); background: transparent; }
.share-btn:active { transform: scale(.98); }
.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding: 4px; border-radius: 14px; background: rgb(56 189 248 / .08); }
.seg { border: 0; border-radius: 11px; padding: 9px 6px; cursor: pointer; background: none; color: var(--ink-soft); font: 700 11.5px var(--font); }
.seg.on { background: var(--cyan-hi); color: #031020; }
.share-frame { margin-top: 12px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px #000; background: #020817; }
.share-img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; margin: 0 auto; }
.share-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-go, .share-alt { display: flex; align-items: center; justify-content: center; padding: 11px 8px; border: 0; border-radius: 12px; cursor: pointer; font: 800 13px var(--font); text-decoration: none; text-align: center; }
.share-go { background: linear-gradient(120deg, #ff5a1f, #ff3344); color: #fff; } .share-alt { background: rgb(56 189 248 / .14); color: var(--cyan-hi); }
.share-go:active, .share-alt:active { transform: scale(.97); }

/* ---------- the menu: a dock on computers, a bar on phones ---------- */
/* no backdrop blur anywhere over the map: with the map, the smoke and Varuna moving underneath, a blur is recomputed every frame */
:root { --nav: 64px; }
.dock { position: fixed; z-index: 8; left: 50%; bottom: calc(var(--bottom) + 4px); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 22px;
  background: var(--glass-hi);  box-shadow: var(--shadow); }
.dock button { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 76px; padding: 8px 10px 7px; border: 0; border-radius: 16px; background: none; cursor: pointer;
  color: var(--ink-soft); font: 700 11px var(--font); transition: background .18s, color .18s, transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock button.on { color: #031020; background: var(--cyan-hi); }
.dock button:active { transform: scale(.94); }
.dock .alert-tab { color: #fff; background: linear-gradient(140deg, #ff5a1f, #e11d2e); box-shadow: 0 8px 22px -8px rgb(255 70 40 / .9); }
.dock .alert-tab.on { color: #fff; background: linear-gradient(140deg, #ff7a3d, #ff2e4d); }
.vt-ring { position: absolute; inset: -3px; border-radius: 18px; box-shadow: 0 0 0 2px rgb(255 120 80 / .55); animation: ring 2.4s ease-out infinite; pointer-events: none; }
.dock-badge { position: absolute; top: 3px; right: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font: 700 10px/18px var(--mono); text-align: center; }
.dock-badge[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .dock button:not(.on):not(.alert-tab):hover { background: rgb(56 189 248 / .12); color: var(--ink); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.intro .dock, .intro .varuna { opacity: 0; pointer-events: none; }
.dock, .varuna { transition: opacity .6s var(--ease); }

/* panels make room for the dock */
@media (min-width: 761px) {
  .stats { max-height: calc(100vh - var(--top) - 160px); }
  .detail { max-height: calc(100vh - var(--top) - 160px); }
  body.has-holo:not(.holo-beside) .detail { max-height: calc(100vh - var(--top) - 390px); }
  .air-legend { bottom: calc(var(--bottom) + 84px); }
}

/* ---------- Varuna, floating over the map ---------- */
.varuna { position: fixed; z-index: 7; right: 22px; bottom: calc(var(--bottom) + 84px); width: 150px; height: 150px; pointer-events: none; transition: right .5s var(--ease), opacity .4s var(--ease); }
.varuna[hidden] { display: none; }
.varuna canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 18px rgb(2 6 23 / .55)); }
.varuna-hit { position: absolute; inset: 14% 12% 6%; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; }
.varuna-tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; white-space: nowrap; font: 800 11px var(--font); color: #fff;
  background: linear-gradient(120deg, #ff5a1f, #e11d2e); box-shadow: 0 6px 16px -6px rgb(255 70 40 / .8); pointer-events: none; }
.varuna.flat canvas { display: none; }
.varuna.flat::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: url(/assets/mark.svg) center / contain no-repeat; }
@media (min-width: 761px) { body.has-detail .varuna:not(.moved) { right: 420px; } }

/* ---------- the notice ---------- */
.notice { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgb(2 6 23 / .86);  }
.notice[hidden] { display: none; }
.notice-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 18px; border-radius: 24px; background: var(--glass-hi); box-shadow: var(--shadow); animation: rise .4s var(--ease); }
.notice-card h2 { margin: 12px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.notice-card p, .notice-card li { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; } .notice-card b { color: var(--ink); }
.notice-card ol { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; }
.notice-small { font-size: 12px !important; opacity: .85; }
.notice-ok { width: 100%; margin-top: 10px; padding: 13px; border: 0; border-radius: 14px; cursor: pointer; background: var(--cyan-hi); color: #031020; font: 800 15px var(--font); }
.madeby { display: block; margin-top: 12px; text-align: center; font: 600 12px var(--mono); color: var(--ink-soft); text-decoration: none; letter-spacing: .04em; }
.madeby:hover { color: var(--cyan-hi); }

/* ---------- search, switches, stacks ---------- */
.search { width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: rgb(56 189 248 / .08); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 15px var(--font); }
.search:focus { outline: 2px solid var(--cyan); outline-offset: 0; }
.rows .toggle .sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: rgb(148 163 184 / .35); transition: background .2s; }
.rows .toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.rows .toggle[aria-pressed="true"] .sw { background: var(--cyan); } .rows .toggle[aria-pressed="true"] .sw::after { transform: translateX(18px); }
.rows .toggle::after { display: none; }
.stack { display: grid; gap: 8px; margin-top: 14px; } .share-alt.wide { width: 100%; }

/* ---------- the chat ---------- */
.v-head { display: flex; align-items: center; gap: 12px; }
.v-face { width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(140deg, #ff5a1f, #e11d2e); position: relative; box-shadow: 0 8px 20px -10px rgb(255 70 40 / .9); }
.v-face::before { content: ""; position: absolute; inset: 9px 8px 7px; border-radius: 50% 50% 46% 46%; background: #9cc3ff; box-shadow: -9px 2px 0 -3px #9cc3ff, 9px 2px 0 -3px #9cc3ff; }
.v-face::after { content: ""; position: absolute; left: 15px; top: 18px; width: 5px; height: 6px; border-radius: 50%; background: #0b1020; box-shadow: 11px 0 0 #0b1020; }
.v-log { display: grid; gap: 10px; margin-top: 14px; max-height: 42vh; overflow: auto; padding-right: 2px; }
.v-msg { display: flex; } .v-me { justify-content: flex-end; }
.v-text { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.v-bot .v-text { background: rgb(56 189 248 / .09); box-shadow: inset 0 0 0 1px var(--line); border-top-left-radius: 6px; }
.v-me .v-text { background: var(--cyan-hi); color: #031020; border-top-right-radius: 6px; }
.v-text p { margin: 0 0 6px; color: inherit !important; font-size: 14px !important; } .v-text p:last-child { margin: 0; }
.v-text ul { margin: 4px 0 6px; padding-left: 18px; } .v-text li { margin: 2px 0; }
.v-link { border: 0; padding: 0 4px; border-radius: 6px; background: rgb(255 90 31 / .18); color: #ffb48a; font: inherit; font-weight: 700; cursor: pointer; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-chips button { border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; background: rgb(56 189 248 / .1); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 12px var(--font); text-align: left; }
.v-chips[hidden] { display: none; }
.v-bar { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.v-input { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 13px; border: 0; border-radius: 14px; background: rgb(56 189 248 / .08); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 15px/1.4 var(--font); }
.v-input:focus { outline: 2px solid var(--cyan); }
.v-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; background: linear-gradient(140deg, #ff5a1f, #e11d2e); }
.v-send svg { width: 20px; height: 20px; fill: #fff; } .v-send:disabled { opacity: .5; }
.v-left { display: block; margin-top: 8px; color: var(--ink-soft); font: 600 11.5px var(--mono); }
.v-note { font-size: 11px !important; opacity: .8; }
.v-busy { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.v-busy[hidden] { display: none; } .v-busy i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1s ease-in-out infinite; } .v-busy i:nth-child(2) { animation-delay: .15s; } .v-busy i:nth-child(3) { animation-delay: .3s; } .v-busy span { margin-left: 6px; }

/* the CCTV wall: two by two, the panel widens on computers */
@media (min-width: 761px) { .detail.wide { width: 580px; } }
@media (min-width: 761px) { body.has-detail:has(.detail.wide) .varuna:not(.moved) { right: 620px; } }
.cam-tools { display: grid; gap: 8px; margin-top: 12px; }
.cam-pick { width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: rgb(56 189 248 / .1); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 700 13.5px var(--font); }
.cam-pick option, .cam-pick optgroup { background: #0b1a33; color: var(--ink); }
.cam-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cam-chip { border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; background: rgb(56 189 248 / .12); color: var(--cyan-hi); font: 700 12px var(--font); }
.cam-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cam-view.tile { margin: 0; border: 0; padding: 0; cursor: zoom-in; border-radius: 12px; }
.tile .tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; background: linear-gradient(to top, rgb(2 6 23 / .85), transparent); text-align: left; }
.tile .tile-name b { display: block; font: 700 11px var(--font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cam-veil { font-size: 11px; gap: 6px; padding: 8px; } .tile .cam-scan { width: 22px; height: 22px; }
.tile iframe { pointer-events: none; }

/* Varuna moves and folds */
.varuna-hit { touch-action: none; cursor: grab; } .varuna.dragging .varuna-hit { cursor: grabbing; } .varuna.dragging { transition: none; }
.varuna-min { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
  background: rgb(4 18 43 / .85); color: #e0f2fe; font: 800 16px/1 var(--font); box-shadow: 0 0 0 1px rgb(125 211 252 / .4); }
.varuna-dot { position: fixed; z-index: 7; right: 14px; bottom: calc(var(--bottom) + 92px); width: 52px; height: 52px; padding: 5px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(140deg, #ff5a1f, #e11d2e); box-shadow: 0 10px 24px -8px rgb(255 70 40 / .9), 0 0 0 2px rgb(255 255 255 / .25); }
.varuna-dot[hidden] { display: none; } .varuna-dot img { display: block; width: 100%; height: 100%; }
@media (min-width: 761px) { body.has-detail .varuna.moved { right: auto; } }
@media (max-width: 760px) { .varuna-dot { bottom: calc(env(safe-area-inset-bottom) + var(--nav) + 86px); } body.has-detail .varuna-dot { opacity: 0; pointer-events: none; } }

/* Intel */
.lock { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(140deg, rgb(167 139 250 / .14), rgb(56 189 248 / .08)); box-shadow: inset 0 0 0 1px rgb(167 139 250 / .35); }
.lock b { font-size: 15px; } .lock p { margin: 0 !important; }
.lock-ic { width: 30px; height: 30px; border-radius: 9px; background: #a78bfa; position: relative; }
.lock-ic::before { content: ""; position: absolute; left: 9px; top: 5px; width: 8px; height: 8px; border: 2.5px solid #1e1b4b; border-bottom: 0; border-radius: 6px 6px 0 0; }
.lock-ic::after { content: ""; position: absolute; left: 7px; top: 13px; width: 16px; height: 11px; border-radius: 3px; background: #1e1b4b; }
.intel-box { margin-top: 6px; }
.intel-graph { height: 300px; margin-top: 12px; border-radius: 14px; background: radial-gradient(70% 70% at 50% 50%, #0b1d45, #020617); box-shadow: inset 0 0 0 1px var(--line); }
.intel-legend span { display: inline-flex; align-items: center; } .intel-legend i { width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.lg-Group i { background: #facc15; } .lg-Company i { background: #38bdf8; } .lg-Mill i { background: #a78bfa; } .lg-Fire i { background: #ff5a1f; }
.chips.land span { font-family: var(--font); font-size: 12px; } .chips.land .peat { background: rgb(146 64 14 / .35); box-shadow: inset 0 0 0 1px rgb(251 146 60 / .5); } .chips.land .prot { background: rgb(34 197 94 / .18); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .5); }
.intel-fire { margin-top: 8px; }
.repeat { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 90 31 / .1); box-shadow: inset 0 0 0 1px rgb(255 122 26 / .35); }
.repeat b { font-size: 13px; color: #ffb48a; } .repeat small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 11px; }
.repeat .yrs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .repeat .yrs span { padding: 2px 8px; border-radius: 999px; background: rgb(255 90 31 / .25); font: 700 11.5px var(--mono); }
.level { margin-top: 12px; padding: 12px 14px; border-radius: 14px; } .level b { font-size: 14px; } .level ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink); } .level p { margin: 4px 0 0 !important; }
.level.hi { background: rgb(244 63 94 / .14); box-shadow: inset 0 0 0 1px rgb(244 63 94 / .45); } .level.hi b { color: #fda4af; }
.level.mid { background: rgb(250 204 21 / .1); box-shadow: inset 0 0 0 1px rgb(250 204 21 / .4); } .level.mid b { color: #fde68a; }
.level.lo { background: rgb(56 189 248 / .08); box-shadow: inset 0 0 0 1px var(--line); }
.yr-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 10px; }
.yr { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.yr i { position: relative; width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(#ff7a1a, #ffb020); display: flex; align-items: flex-end; overflow: hidden; }
.yr i em { display: block; width: 100%; background: rgb(120 53 15 / .85); } .yr small { font: 600 9.5px var(--mono); color: var(--ink-soft); }
.chips.land .forest { background: rgb(22 163 74 / .2); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .55); } .chips.land .apl { background: rgb(148 163 184 / .16); box-shadow: inset 0 0 0 1px rgb(148 163 184 / .45); }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgb(56 189 248 / .06); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }

/* ---------- the opening: satellite intelligence locking on to Indonesia (intro.js) ---------- */
.veil { position: fixed; inset: 0; z-index: 30; background: #01030a; transition: opacity .65s var(--ease), transform .65s var(--ease); overflow: hidden; }
.veil.gone { opacity: 0; transform: scale(1.06); pointer-events: none; }
.veil canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil.flat { background: radial-gradient(80% 60% at 50% 45%, #0b1d45, #02040b); } .veil.flat canvas { display: none; }
.intro-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); color: #cfe6ff; }
.intro-hud::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgb(125 211 252 / .035) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }
.hc { position: absolute; width: 34px; height: 34px; border-color: rgb(125 211 252 / .7); border-style: solid; border-width: 0; }
.hc.tl { left: 18px; top: calc(var(--top) + 6px); border-left-width: 2px; border-top-width: 2px; } .hc.tr { right: 18px; top: calc(var(--top) + 6px); border-right-width: 2px; border-top-width: 2px; }
.hc.bl { left: 18px; bottom: calc(var(--bottom) + 6px); border-left-width: 2px; border-bottom-width: 2px; } .hc.br { right: 18px; bottom: calc(var(--bottom) + 6px); border-right-width: 2px; border-bottom-width: 2px; }
.ih-top { position: absolute; left: 34px; top: calc(var(--top) + 22px); display: flex; gap: 12px; align-items: center; animation: fade .8s .2s both; }
.ih-top img { filter: drop-shadow(0 0 12px rgb(255 90 31 / .6)); } .ih-top b { display: block; font: 800 15px var(--font); letter-spacing: .14em; color: #fff; }
.ih-top span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .2em; color: var(--cyan); animation: blink 1.2s steps(2) infinite; }
.ih-reticle { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 1px solid rgb(125 211 252 / .25); opacity: 0; transition: opacity .6s, transform .8s var(--ease); transform: scale(1.6); }
.ih-reticle i { position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed rgb(125 211 252 / .45); animation: spin 9s linear infinite; }
.ih-reticle i + i { inset: -12px; border: 0; border-top: 2px solid rgb(255 90 31 / .9); border-bottom: 2px solid rgb(255 90 31 / .9); animation-duration: 3s; }
.intro-hud.locked .ih-reticle { opacity: 1; transform: scale(1); }
.ih-count { position: absolute; right: 34px; top: calc(var(--top) + 22px); text-align: right; opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s var(--ease); }
.ih-count.on { opacity: 1; transform: none; } .ih-count small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--ink-soft); }
.ih-count b { font: 700 40px var(--mono); color: var(--fire); text-shadow: 0 0 24px rgb(255 90 31 / .6); font-variant-numeric: tabular-nums; }
.ih-bottom { position: absolute; left: 34px; right: 34px; bottom: calc(var(--bottom) + 26px); display: grid; gap: 10px; max-width: 620px; }
.ih-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 11.5px; letter-spacing: .08em; }
.ih-log li { color: #9fc4ea; animation: rise .35s var(--ease) both; } .ih-log li::before { content: "▸ "; color: var(--cyan); } .ih-log li:last-child { color: #fff; }
.ih-prog { height: 3px; border-radius: 3px; background: rgb(125 211 252 / .15); overflow: hidden; }
.ih-prog i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #38bdf8, #7dd3fc 60%, #ff5a1f); box-shadow: 0 0 12px #38bdf8; }
.ih-row { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .12em; }
.ih-lock { opacity: 0; color: #ff8a5c; font-weight: 700; letter-spacing: .3em; transition: opacity .4s; } .intro-hud.locked .ih-lock { opacity: 1; animation: blink .8s steps(2) 3; }
#intro-skip { margin-left: auto; pointer-events: auto; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: rgb(125 211 252 / .12); color: #cfe6ff; font: 700 11px var(--mono); letter-spacing: .12em; box-shadow: inset 0 0 0 1px rgb(125 211 252 / .35); }
.ih-msg { margin: 0; color: #fda4af; font: 600 13px var(--font); } .ih-msg:empty { display: none; }
@media (max-width: 760px) {
  .ih-top { left: 26px; } .ih-top b { font-size: 13px; } .ih-count { right: 26px; top: auto; bottom: calc(var(--bottom) + 150px); } .ih-count b { font-size: 32px; }
  .ih-bottom { left: 26px; right: 26px; } .ih-log { font-size: 10.5px; } .ih-reticle { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
}

/* reporting a fire */
.report { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: rgb(255 51 68 / .08); box-shadow: inset 0 0 0 1px rgb(255 51 68 / .35); }
.report .note { margin: 0 !important; }
.rep-head { display: flex; gap: 10px; align-items: center; } .rep-head b { display: block; font-size: 15px; color: #ffb4bc; } .rep-head small { color: var(--ink-soft); font-size: 12px; }
.rep-head i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 6px rgb(255 51 68 / .2); animation: blink 1.4s ease-in-out infinite; }
.share-go.wide { width: 100%; padding: 13px 10px; }
.rep-confirm { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 16px; background: rgb(2 6 23 / .86);  }
.rep-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 10px; padding: 20px; border-radius: 22px; background: var(--glass-hi); box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.rep-card h2 { margin: 0; font-size: 19px; } .rep-card p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.rep-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(56 189 248 / .07); box-shadow: inset 0 0 0 1px var(--line); font: 500 11.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); }

/* ---------- the alert ticker: new high-confidence fires ---------- */
.ticker { position: fixed; z-index: 6; top: calc(var(--top) + 6px); left: 250px; right: 490px; height: 34px; border-radius: 999px; overflow: hidden; display: flex;
  background: rgb(48 8 16 / .92);  box-shadow: 0 0 0 1px rgb(255 51 68 / .4), var(--shadow);
  }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent); }
.ticker[hidden] { display: none; }
.tk-track { display: flex; align-items: center; height: 100%; width: max-content; animation: tk var(--tk-dur, 40s) linear infinite; will-change: transform; }
.ticker:hover .tk-track, .ticker.paused .tk-track, .noticing .tk-track { animation-play-state: paused; }
.tk-lead { flex: none; padding: 0 12px; height: 100%; display: flex; align-items: center; background: var(--live); color: #fff; font: 800 10.5px var(--mono); letter-spacing: .1em; }
.tk-run { display: flex; flex: none; }
.tk-run button { flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; background: none; cursor: pointer; color: #ffe4e6; font: 600 12.5px var(--font); white-space: nowrap; }
.tk-run button i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.tk-run button b { font: 700 11.5px var(--mono); color: #fff; } .tk-run button em { font-style: normal; color: #fda4af; font-size: 11.5px; }
@media (hover: hover) and (pointer: fine) { .tk-run button:hover { background: rgb(255 51 68 / .2); } }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--tk-w, 1000px))); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .ticker { overflow-x: auto; } }
@media (max-width: 1100px) and (min-width: 761px) { .ticker { left: 16px; right: 16px; top: calc(var(--top) + 54px); } .stats, .detail { top: calc(var(--top) + 100px); } }
@media (max-width: 760px) { .ticker { left: 10px; right: 10px; top: calc(var(--top) + 54px); height: 30px; } .tk-run button { height: 30px; font-size: 12px; } .tk-lead { font-size: 9.5px; padding: 0 9px; } }

/* ---------- the summary modal ---------- */
.summary { position: fixed; inset: 0; z-index: 22; display: grid; place-items: center; padding: 16px; background: rgb(2 6 23 / .88);  }
.summary[hidden] { display: none; }
.sm-card { width: min(1080px, 100%); height: min(860px, calc(100vh - 32px)); height: min(860px, calc(100dvh - 32px)); display: flex; flex-direction: column; border-radius: 26px; background: var(--glass-hi); box-shadow: var(--shadow); animation: rise .35s var(--ease); overflow: hidden; }
.sm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 8px; } .sm-head h2 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.sm-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: #11264d; color: var(--ink); font-size: 16px; box-shadow: 0 0 0 1px rgb(125 211 252 / .35); }
.sm-tabs { display: flex; gap: 6px; margin: 6px 24px 0; padding: 4px; border-radius: 14px; background: rgb(56 189 248 / .08); width: max-content; max-width: calc(100% - 48px); }
.sm-tabs button { border: 0; border-radius: 10px; padding: 9px 18px; background: none; color: var(--ink-soft); font: 700 13.5px var(--font); cursor: pointer; }
.sm-tabs button[aria-selected="true"] { background: var(--cyan-hi); color: #031020; }
.sm-body { flex: 1; overflow: auto; padding: 16px 24px 24px; overscroll-behavior: contain; }
.sm-body h3 { margin: 22px 0 8px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.sm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sm-stat { padding: 14px; border-radius: 16px; background: rgb(56 189 248 / .07); box-shadow: inset 0 0 0 1px var(--line); }
.sm-stat small { display: block; color: var(--ink-soft); font-size: 12px; } .sm-stat b { display: block; margin-top: 4px; font: 700 24px var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.sm-stat em { display: block; font-style: normal; color: var(--ink-soft); font-size: 11.5px; margin-top: 2px; }
.sm-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; }
.sm-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sm-bar i { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff3344, #ff7a1a 55%, #ffb020); transform-origin: bottom; animation: grow .6s var(--ease) both; }
.sm-bars.cyan .sm-bar i { background: linear-gradient(#7dd3fc, #38bdf8 60%, #1d4ed8); }
.sm-bar small { font: 600 10px var(--mono); color: var(--ink-soft); white-space: nowrap; }
.sm-bar .v { font: 600 9.5px var(--mono); color: var(--ink); white-space: nowrap; transform: rotate(-35deg); transform-origin: left bottom; height: 0; overflow: visible; margin-left: 14px; }
.sm-bars:has(.sm-bar:nth-child(16)) .sm-bar .v { display: none; }
.sm-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }
.sm-years { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.sm-years button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgb(56 189 248 / .1); color: var(--ink); font: 700 12px var(--mono); cursor: pointer; } .sm-years button.on { background: var(--fire); color: #fff; }
.sm-table { display: grid; gap: 4px; }
.sm-tr { display: grid; grid-template-columns: 1fr 120px 130px; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgb(56 189 248 / .05); font-size: 13.5px; }
.sm-tr.head { background: none; color: var(--ink-soft); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sm-tr span:nth-child(n+2) { text-align: right; font: 600 13px var(--mono); }
.sm-tr span:first-child { position: relative; } .sm-tr span:first-child i { position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--fire); transform-origin: left; border-radius: 2px; }
@media (max-width: 760px) {
  .summary { padding: 0; } .sm-card { height: 100%; height: 100dvh; border-radius: 0; }
  .sm-head { padding: calc(var(--top) + 8px) 16px 6px; } .sm-head h2 { font-size: 19px; } .sm-tabs { margin: 6px 16px 0; } .sm-tabs button { padding: 8px 14px; }
  .sm-body { padding: 12px 16px calc(env(safe-area-inset-bottom) + 20px); } .sm-stats { grid-template-columns: 1fr 1fr; } .sm-stat b { font-size: 19px; }
  .sm-bars { height: 140px; gap: 2px; } .sm-bar .v { display: none; } .sm-tr { grid-template-columns: 1fr 80px 96px; font-size: 12.5px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes flick { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(.92, 1.08) rotate(2deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 760px) {
  .top { left: 10px; right: 10px; }
  .brand { padding: 5px 12px 5px 5px; gap: 8px; } .brand img { width: 30px; height: 30px; }
  .brand h1 { font-size: 14px; } .brand p { font-size: 11px; max-width: 46vw; }
  .icon { width: 42px; padding: 0; justify-content: center; } .icon span { display: none; }
  .stats { left: 10px; right: 10px; top: auto; bottom: var(--bottom); width: auto; max-height: 52vh; padding: 10px 14px; border-radius: 18px; }
  .big { cursor: pointer; align-items: center; } .big b { font-size: 30px; } .big span { font-size: 13px; }
  .chev { display: block; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgb(56 189 248 / .1); position: relative; transition: transform .22s var(--ease); }
  .chev::before { content: ""; position: absolute; left: 9px; top: 11px; width: 8px; height: 8px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
  .stats:not(.open) .more { display: none; }
  .stats.open .chev { transform: rotate(180deg); }
  /* one sheet at a time: a detail open puts the national sheet away */
  body.has-detail .stats { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .nums { grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin: 10px 0; } .nums dd { font-size: 16px; }
  .detail { left: 10px; right: 10px; top: auto; bottom: var(--bottom); width: auto; max-height: 56vh; z-index: 6; padding: 16px; }
  .detail h2 { font-size: 19px; }
  .icon.txt { width: auto; padding: 0 14px; } .icon.txt span { display: inline; font: 800 12px var(--mono); letter-spacing: .06em; } .icon.txt svg { display: none; }
  .air-legend { left: 10px; right: 10px; transform: none; top: calc(var(--top) + 58px); bottom: auto; flex-wrap: wrap; justify-content: center; gap: 2px 0; padding: 5px 6px; border-radius: 16px; }
  .air-legend span { padding: 2px 7px; font-size: 10.5px; gap: 5px; }
  body.has-detail .air-legend { display: none; }
  .gauge { grid-template-columns: 100px 1fr; } .gauge svg { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .spark path { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .dock { left: 0; right: 0; bottom: 0; transform: none; border-radius: 20px 20px 0 0; padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px); justify-content: space-around; gap: 0; }
  .dock button { min-width: 0; flex: 1; padding: 7px 2px 6px; font-size: 10.5px; }
  .dock .alert-tab { flex: 1.15; margin: -14px 2px 0; padding-top: 12px; border-radius: 18px; }
  .dock .alert-tab .dock-badge { right: 8px; top: -6px; }
  .stats, .detail { bottom: calc(env(safe-area-inset-bottom) + var(--nav) + 10px); }
  .detail { max-height: 52vh; }
  body.has-detail .varuna, body.noticing .varuna { opacity: 0; pointer-events: none; }
  body.has-detail .varuna .varuna-hit { pointer-events: none; }
  .varuna { right: 6px; bottom: calc(env(safe-area-inset-bottom) + var(--nav) + 86px); width: 104px; height: 104px; }
  .varuna-tag { font-size: 10px; padding: 2px 8px; }
  .v-log { max-height: 38vh; }
  .notice-card { padding: 20px 18px 16px; } .notice-card h2 { font-size: 19px; } .notice-card p, .notice-card li { font-size: 13px; line-height: 1.55; }
}
.segs + h2 { margin-top: 14px; }

/* peat fire risk: the level of one cell */
.peat-hero { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--lv) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lv) 55%, transparent); display: grid; gap: 4px; }
.peat-hero b { font: 800 24px var(--font); color: var(--lv); } .peat-hero span { font-weight: 700; } .peat-hero small { color: var(--ink-soft); }
.air-line.dc { height: 92px; }
.peat-hero.small { margin-top: 6px; padding: 10px 14px; } .peat-hero.small span { font-size: 13.5px; }
