/* Degvielas Radars. Asphalt at night, sodium-lamp amber, price-pylon digits. */
:root {
  color-scheme: dark;
  --bg: #16181a;
  --panel: #1f2225;
  --panel2: #262a2d;
  --line: #30353a;
  --ink: #eceee9;
  --mute: #9aa19c;
  --amber: #f5a524;
  --good: #5bc27a;
  --bad: #ee7458;
  --pink: #ff5d73;
  --pylon: #101214;
  --pylon-ink: #ffb32b;
  --pylon-mute: #a8adab;
  --hl: 63%;
  --glow: rgba(245, 165, 36, .13);
  --num: "Bahnschrift", "DIN Condensed", "sans-serif-condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edefec;
  --panel: #ffffff;
  --panel2: #f4f6f3;
  --line: #d4d9d4;
  --ink: #161a1c;
  --mute: #5c6560;
  --amber: #a85f00;
  --good: #23783f;
  --bad: #b8391f;
  --pink: #d92f4c;
  --hl: 36%;
  --glow: rgba(245, 165, 36, .18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  min-height: 100dvh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 50% -140px, var(--glow), transparent 70%);
}
body.noscroll { overflow: hidden; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; }
button:active:not(:disabled), .btn:active { transform: scale(.96); }
button, .btn { transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 16px calc(120px + env(safe-area-inset-bottom)); }
.wrap.v-map { max-width: 900px; }
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; margin: 0 -16px;
}
.top-row { display: flex; align-items: center; gap: 10px; }
.radar { color: var(--ink); flex: none; }
.radar .sweep { transform-origin: 16px 16px; animation: spin 3.2s linear infinite; }
.radar .blip { animation: blip 3.2s ease-out infinite; }
@keyframes blip { 0%, 55% { opacity: 0; r: 1; } 62% { opacity: 1; r: 2.4; } 100% { opacity: 0; r: 3.2; } }
.brand { font: 700 21px/1 var(--num); letter-spacing: .01em; flex: 1; margin: 0; white-space: nowrap; display: flex; align-items: baseline; gap: 5px; overflow: hidden; }
.brand span { color: var(--amber); }
.beta { font: 700 10px/1 var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .06em; background: var(--amber); color: #1a1204; padding: 3px 6px; border-radius: 6px; align-self: center; animation: shine 3s ease-in-out infinite; }
.icon-btn {
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.icon-btn.sm { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; }
.icon-btn.on { color: var(--amber); border-color: var(--amber); }
.icon-btn[aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.meta .stale { color: var(--bad); }

.picker { display: flex; gap: 8px; margin: 12px 0 0; }
.picker select {
  flex: 1; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.chips, .fuels { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar, .fuels::-webkit-scrollbar { display: none; }
.chips { margin-top: 10px; }
.chip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { opacity: .6; margin-left: 4px; }
.chip.wide { grid-column: 1 / -1; }

.fuels { margin: 14px 0 0; }
.fuel {
  flex: 1 0 auto; min-height: 46px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
  font: 700 18px/1 var(--num);
}
.fuel[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1a1204; }

.seg { display: flex; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; padding: 0 8px; border-radius: 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg.slim { margin-top: 10px; }
.seg.slim button { min-height: 38px; }
.seg.inline { margin: 0; }
.seg.inline button { min-height: 38px; padding: 0 16px; }

/* Digit roll (slot-machine counters) */
.roll { display: inline-flex; vertical-align: top; }
.roll > span { display: inline-flex; }
.dg { display: inline-block; height: 1em; overflow: hidden; line-height: 1; font-variant-numeric: tabular-nums; }
.col { display: block; transition: transform 1.1s var(--ease); transition-delay: calc(var(--k, 0) * 75ms); will-change: transform; }
.col i { display: block; height: 1em; line-height: 1; font-style: normal; }
.ch { display: inline-block; height: 1em; line-height: 1; }
sup { font-size: .5em; vertical-align: top; position: relative; top: .06em; margin-left: .03em; line-height: 1; }

/* Board of three prices */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; perspective: 800px; }
.tile {
  position: relative; text-align: left; padding: 12px 12px 10px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; gap: 4px; min-height: 118px;
}
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--line)); opacity: .9; }
.tile .tf { font: 700 15px/1 var(--num); color: var(--mute); letter-spacing: .04em; }
.tile .tp { font: 700 31px/1 var(--num); margin-top: 2px; }
.tile .tc { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .td { font: 700 13px/1 var(--num); margin-top: auto; min-height: 13px; color: var(--mute); }
.td.down { color: var(--good); } .td.up { color: var(--bad); }
.tile.sel { border-color: var(--amber); background: linear-gradient(180deg, color-mix(in srgb, var(--amber) 16%, var(--panel)), var(--panel)); box-shadow: 0 8px 26px -10px var(--amber); transform: translateY(-3px); }
.tile.sel .tf { color: var(--amber); }
.tile.off { opacity: .5; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.board .chips { margin-top: 10px; }

.tile.sk, .sk-hero { background: linear-gradient(100deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--line); }
.sk-hero { height: 220px; margin-top: 16px; border-radius: 18px; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* The pylon: the one loud element. */
.pylon {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 18px 18px 16px; border-radius: 22px;
  background: radial-gradient(420px 200px at 85% -30px, rgba(255, 179, 43, .16), transparent 70%), var(--pylon);
  color: var(--pylon-ink); border: 1px solid #2a2d30;
}
.pylon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -120px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent); transform: skewX(-18deg); pointer-events: none; }
.enter .pylon::after { animation: sweep 1.6s ease-out .5s 1; }
@keyframes sweep { to { left: 120%; } }
.p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pylon .where { color: #f1f2ee; font-size: 17px; font-weight: 600; margin: 0; display: flex; align-items: center; }
.pylon .addr { color: var(--pylon-mute); font-size: 14px; margin: 2px 0 0; }
.ping { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 9px; position: relative; flex: none; }
.ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); animation: ping 1.9s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.price-line { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 6px; }
.pylon-price { font: 700 clamp(84px, 26vw, 128px)/1 var(--num); letter-spacing: -.01em; filter: drop-shadow(0 0 16px rgba(255, 179, 43, .3)); }
.price-side { padding-top: 14px; color: var(--pylon-mute); font: 600 15px/1.25 var(--num); }
.price-side b { display: block; color: #f1f2ee; font-size: 22px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 13px; border: 1px solid #3a3e41; color: #d6d9d5; margin: 0 4px 4px 0; }
:root[data-theme="light"] .mpop .tag, :root[data-theme="light"] .mpop .tag.good { color: var(--ink); }
.tag.warn { border-color: #7a5a12; color: #f3cf74; }
.tag.good { border-color: #2c6b43; color: #8ee0a8; }
:root[data-theme="light"] .mpop .tag.good { color: var(--good); }
.tag.low { border-color: #8a6a10; color: #1a1204; background: linear-gradient(100deg, #ffcf5c 20%, #fff2c2 50%, #ffcf5c 80%); background-size: 220% 100%; animation: shimmer 2.4s linear infinite; font-weight: 700; }
.delta { margin: 8px 0 0; font-size: 14px; color: var(--pylon-mute); }
.delta .down { color: #7be29b; font-weight: 700; }
.delta .up { color: #ff8b73; font-weight: 700; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.btn {
  flex: 1; min-height: 48px; border-radius: 14px; border: 0; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  background: var(--pylon-ink); color: #1a1204;
}
.mpop .btn { background: var(--amber); }
.btn.ghost { background: transparent; color: #f1f2ee; border: 1px solid #3a3e41; }
.mpop .btn.ghost { color: var(--ink); border-color: var(--line); }
.btn.sq { flex: none; width: 48px; padding: 0; }
.btn.wide { grid-column: 1 / -1; }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--pylon-mute); }
.hint button { background: none; border: 0; padding: 0; color: var(--pylon-ink); text-decoration: underline; }

.heart { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; }
.heart.on-dark { color: #7d8280; }
.heart .hs { overflow: visible; }
.heart[aria-pressed="true"] { color: var(--pink); }
.heart[aria-pressed="true"] .hs path { fill: currentColor; }
.heart.pop svg { animation: heartPop .65s var(--ease); }
.heart.pop::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--pink); animation: burst .6s ease-out forwards; }
@keyframes heartPop { 0% { transform: scale(.4); } 45% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes burst { to { transform: scale(2.4); opacity: 0; } }

.install {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.install p { flex: 1 1 200px; margin: 0; font-size: 14px; }
.btn-install { min-height: 44px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--amber); color: #1a1204; font-weight: 700; }
.install-later { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--mute); }

h2 { font: 700 22px/1.1 var(--num); margin: 30px 0 4px; }
h3 { font: 700 18px/1.1 var(--num); margin: 22px 0 4px; }
.sub { margin: 0 0 12px; color: var(--mute); font-size: 14px; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.field input {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
}
.toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--amber); }
.gauge { grid-column: 1 / -1; height: 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.liquid { display: block; height: 100%; width: calc(var(--f) * 100%); border-radius: 8px; background: repeating-linear-gradient(115deg, var(--amber) 0 10px, color-mix(in srgb, var(--amber) 70%, #fff) 10px 20px); background-size: 28px 100%; animation: flow 1.2s linear infinite; transition: width .6s var(--ease); }
@keyframes flow { to { background-position: 28px 0; } }
.sum { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.sum strong { font: 700 30px/1 var(--num); display: inline-flex; align-items: center; gap: 8px; }
.sum p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.sum .save { color: var(--good); font-weight: 600; }

.favrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; }
.favrow::-webkit-scrollbar { display: none; }
.fav { flex: none; width: 150px; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); border-top: 3px solid var(--c); display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; }
.fav .fn { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.fav .fa { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav .fp { font: 700 26px/1 var(--num); margin-top: 4px; }
.fav.est { opacity: .75; }
.fav .td { font: 700 12px/1 var(--num); }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center;
  padding: 12px 0 12px 10px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
}
.row.heat { border-left-color: hsl(var(--h) 70% 52%); }
.row.est .hp { color: var(--mute); }
.row.heat .hp { color: hsl(var(--h) 72% var(--hl)); }
.rank { font: 700 18px/1 var(--num); color: var(--mute); text-align: right; }
.who { min-width: 0; }
.who b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.who span { display: block; color: var(--mute); font-size: 14px; overflow-wrap: anywhere; }
.who .note { font-size: 13px; }
.who .note.warn { color: #e2b94a; }
:root[data-theme="light"] .who .note.warn { color: #c98a00; }
.rp { text-align: right; }
.rp .hp { display: block; font: 700 27px/1 var(--num); font-variant-numeric: tabular-nums; }
.rp .hp sup { font-size: .55em; }
.was { display: block; color: var(--mute); font-size: 12px; }
.ra { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 2px; }
.ra a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--amber); text-decoration: none; padding: 8px 6px; }
.search { margin-top: 10px; }
.search input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.more-prices { display: block; margin: 0 0 0 auto; padding: 4px 0; background: none; border: 0; color: var(--mute); font-size: 13px; text-decoration: underline; }
.detail { grid-column: 2 / -1; margin: 4px 0 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; }
.detail > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.detail > div + div { border-top: 1px solid var(--line); }
.detail b { font: 700 18px/1 var(--num); font-variant-numeric: tabular-nums; }
.detail a { color: var(--amber); }
.mpop .detail { grid-column: auto; margin-top: 8px; }
.more { width: 100%; margin-top: 12px; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }

.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 116px 1fr 58px; gap: 10px; align-items: center; }
.bar button { text-align: left; background: none; border: 0; padding: 6px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.track { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; transform-origin: left; }
.bar em { font: 700 18px/1 var(--num); font-style: normal; font-variant-numeric: tabular-nums; }
.bar small { display: block; color: var(--mute); font-size: 12px; text-align: right; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--mute); font: 12px var(--body); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--mute); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart .end { transform-box: fill-box; transform-origin: center; }

.oil { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oil > div { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.oil b { display: block; font: 700 28px/1 var(--num); margin: 4px 0; }
.oil small { color: var(--mute); }
.oil .up { color: var(--bad); } .oil .down { color: var(--good); }

.empty { margin-top: 24px; padding: 20px; border: 1px dashed var(--line); border-radius: 18px; }
.empty b { display: block; font: 700 20px/1.2 var(--num); margin-bottom: 6px; }
.foot { margin-top: 34px; color: var(--mute); font-size: 13px; }
.foot p { margin: 0 0 8px; }

/* Map */
.mapbox { position: relative; height: clamp(340px, calc(100dvh - 440px), 740px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; background: #1b1e22; isolation: isolate; }
.mapel { position: absolute; inset: 0; isolation: isolate; z-index: 1; }
.mm { position: absolute; inset: 0; overflow: hidden; background: #dfe2de; cursor: grab; user-select: none; -webkit-user-select: none; }
.mm.dark { background: #1b1e22; }
.mm:active { cursor: grabbing; }
.mm-tiles img { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.mm-tiles img.ok { opacity: 1; }
.mm.dark .mm-tiles img { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.75); }
.mm-marks { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; }
.mk .anchor { transform: translate(-50%, -100%); }
.mk.me .anchor { transform: translate(-50%, -50%); }
.pin {
  position: relative; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; white-space: nowrap;
  padding: 5px 9px 5px 7px; border-radius: 999px; font: 700 13px/1 var(--num); font-variant-numeric: tabular-nums;
  background: #14161a; color: hsl(var(--h) 85% 70%); border: 2px solid hsl(var(--h) 70% 55%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); animation: pinIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards;
}
:root[data-theme="light"] .pin { background: #fff; color: hsl(var(--h) 85% 26%); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 9px; height: 9px; background: inherit; border: inherit; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.pin .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: block; }
.pin.mini { padding: 0; width: 12px; height: 12px; margin-bottom: -6px; border-width: 2px; background: hsl(var(--h) 70% 52%); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); animation-duration: .3s; }
.pin.mini::after { display: none; }
.mk.est .pin { border-style: dashed; opacity: .85; }
.mk.best .pin::before { content: ""; position: absolute; inset: -7px; border-radius: 999px; border: 2px solid hsl(var(--h) 80% 60%); animation: ring 1.8s ease-out infinite; }
.mk.sel .pin { transform: scale(1.2); box-shadow: 0 0 0 3px var(--amber), 0 6px 18px rgba(0, 0, 0, .6); }
.me-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; animation: mePulse 2s ease-out infinite; }
@keyframes pinIn { from { transform: translateY(-14px) scale(.3); opacity: 0; } }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes mePulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .65); } 100% { box-shadow: 0 0 0 22px rgba(59, 130, 246, 0); } }
.mm-attr { position: absolute; right: 6px; bottom: 4px; font-size: 10px; background: rgba(0, 0, 0, .45); color: #fff; padding: 1px 6px; border-radius: 6px; pointer-events: none; z-index: 3; }
.mm-ctl.zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.mm-ctl button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.mm-ctl button.on { color: #3b82f6; }
.mm-empty { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 4; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px dashed var(--line); font-size: 14px; }
.mpop { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 6; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); max-height: 62%; overflow: auto; max-width: 480px; margin: 0 auto; }
.mpop.in { animation: popUp .45s cubic-bezier(.2, 1.25, .3, 1); }
@keyframes popUp { from { transform: translateY(40px) scale(.96); opacity: 0; } }
.mp-head { display: flex; align-items: center; gap: 6px; }
.mp-n { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-n .tag { margin: 0; }
.mpop .addr { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.mp-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; flex-wrap: wrap; }
.mp-price .pp { font: 700 44px/1 var(--num); }
.mp-price .u { font: 600 16px var(--num); color: var(--mute); }
.mpop .actions { margin-top: 10px; }
.mpop .btn { min-height: 44px; }

/* Journal */
.jstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jstats > div { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.jstats small { color: var(--mute); font-size: 12px; }
.jstats b { font: 700 26px/1 var(--num); margin: 2px 0; }
.jview .chip { margin-top: 6px; }
.jform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.jform .field input { background: var(--bg); }
.jform .btn { min-height: 50px; }
.jlist { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.jrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.jrow span { display: block; color: var(--mute); font-size: 13px; }
.jr { text-align: right; }
.jr b { font: 700 20px/1 var(--num); display: block; }
.jr .cons { color: var(--amber); font-weight: 600; }

/* Settings sheet */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; }
.scrim.in { animation: fadeIn .25s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 620px; margin: 0 auto; max-height: 88dvh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 10px 18px calc(28px + env(safe-area-inset-bottom)); }
.sheet.in { animation: sheetUp .45s cubic-bezier(.2, .95, .3, 1); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; }
.sh-head h2 { margin: 6px 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.sw { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .25s; flex: none; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sw:checked { background: var(--amber); }
.sw:checked::after { transform: translateX(20px); }
.disc-list { display: grid; gap: 8px; margin-top: 8px; }
.disc { display: grid; grid-template-columns: 1fr 90px 36px; gap: 8px; align-items: center; }
.disc span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.disc input { min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; text-align: right; width: 100%; }
.disc small { color: var(--mute); }

/* Bottom navigation */
.bnav {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(400px, calc(100% - 28px)); display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px;
  border-radius: 24px; background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.bnav .ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 19px; background: var(--amber); transform: translateX(calc(var(--idx) * 100%)); transition: transform .5s cubic-bezier(.3, 1.35, .5, 1); }
.bnav button { position: relative; z-index: 1; border: 0; background: transparent; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--mute); border-radius: 19px; }
.bnav button[aria-current="page"] { color: #1a1204; }
.bnav button[aria-current="page"] svg { animation: navBounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes navBounce { 0% { transform: translateY(6px) scale(.8); } 100% { transform: none; } }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 24px) scale(.95); opacity: 0; pointer-events: none; max-width: calc(100% - 40px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; text-align: center; }
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* Entrance animations: only on a fresh view (the .enter class) */
.enter .tile { animation: tileIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms); }
.enter .tile.sel { animation-name: tileInSel; }
.enter .pylon { animation: pylonIn .8s var(--ease) .3s both; }
.enter .row, .enter .jrow { animation: rowIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 500ms); }
.enter .fav, .enter .jstats > div, .enter .bar, .enter .oil > div { animation: rowIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 350ms); }
.enter .fill { animation: grow 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
.enter .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s ease-out .3s forwards; }
.enter .chart .area { animation: fadeIn 1.2s ease .9s both; }
.enter .chart .end { animation: popIn .5s cubic-bezier(.3, 1.8, .5, 1) 1.6s both; }
.enter .sum, .enter .calc .field, .enter .install, .enter .seg, .enter .search, .enter h2, .enter .board .chips, .enter .mapbox, .enter .fuels { animation: rowIn .6s var(--ease) both; animation-delay: .25s; }
.enter .jform { animation: rowIn .6s var(--ease) .2s both; }
.enter .top .picker { animation: rowIn .5s var(--ease) both; }
.enter .tile.chg.down { animation: tileIn .7s var(--ease) both, flashDown 1.4s ease 1.2s 2; animation-delay: calc(var(--i, 0) * 100ms), 1.2s; }
.enter .tile.chg.up { animation: tileIn .7s var(--ease) both, flashUp 1.4s ease 1.2s 2; animation-delay: calc(var(--i, 0) * 100ms), 1.2s; }
.enter .tile.sel.chg.down { animation: tileInSel .7s var(--ease) both, flashDown 1.4s ease 1.2s 2; animation-delay: calc(var(--i, 0) * 100ms), 1.2s; }
.enter .tile.sel.chg.up { animation: tileInSel .7s var(--ease) both, flashUp 1.4s ease 1.2s 2; animation-delay: calc(var(--i, 0) * 100ms), 1.2s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(22px) rotateX(-45deg) scale(.92); } to { opacity: 1; } }
@keyframes tileInSel { from { opacity: 0; transform: translateY(22px) rotateX(-45deg) scale(.92); } to { opacity: 1; transform: translateY(-3px); } }
@keyframes pylonIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } }
@keyframes flashDown { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 194, 122, 0); } 50% { box-shadow: 0 0 0 5px rgba(91, 194, 122, .5), 0 0 26px rgba(91, 194, 122, .5); } }
@keyframes flashUp { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 116, 88, 0); } 50% { box-shadow: 0 0 0 5px rgba(238, 116, 88, .5), 0 0 26px rgba(238, 116, 88, .45); } }
@keyframes shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }

@media (max-width: 380px) {
  .tile .tp { font-size: 27px; }
  .tiles { gap: 8px; }
}
@media (min-width: 900px) {
  .wrap.v-prices { max-width: 1000px; display: grid; grid-template-columns: 420px 1fr; column-gap: 36px; align-items: start; }
  .wrap.v-prices .top, .wrap.v-prices .foot { grid-column: 1 / -1; }
  .left { position: sticky; top: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   2040 layer: aurora, spatial glass, neon numerals, bento charts.
   Everything below overrides the base tokens above; delete this block to get the v1 look back.
   ===================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
:root {
  --bg: #050403;
  --panel: rgba(255, 196, 120, .06);
  --panel2: rgba(255, 196, 120, .11);
  --line: rgba(255, 176, 80, .17);
  --ink: #f8f1e6;
  --mute: #ab9f8c;
  --amber: #ffb02e;
  --good: #4ff0a0;
  --bad: #ff7a63;
  --teal: #ffc247;
  --violet: #ff6a1f;
  --glow: rgba(255, 122, 26, .2);
  --glass: linear-gradient(155deg, rgba(255, 200, 130, .11), rgba(255, 255, 255, .02));
  --rim: inset 0 1px 0 rgba(255, 210, 150, .2), inset 0 0 0 1px rgba(255, 176, 80, .08);
  --shadow: 0 24px 50px -26px rgba(0, 0, 0, .9);
  --spot: rgba(255, 170, 60, .16);
}
:root[data-theme="light"] {
  --bg: #f2ece2;
  --panel: rgba(255, 255, 255, .72);
  --panel2: rgba(255, 255, 255, .9);
  --line: rgba(110, 70, 10, .16);
  --ink: #1a1208;
  --mute: #6d5e48;
  --amber: #b36200;
  --good: #11864f;
  --bad: #c2432b;
  --teal: #c27400;
  --violet: #d9480f;
  --glow: rgba(255, 150, 40, .25);
  --glass: linear-gradient(155deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  --rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .4);
  --shadow: 0 22px 40px -26px rgba(40, 50, 110, .45);
  --spot: rgba(255, 150, 40, .16);
}
body { background: var(--bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 36% at 18% -4%, rgba(255, 122, 26, .26), transparent 70%),
    radial-gradient(50% 32% at 100% 26%, rgba(255, 176, 46, .13), transparent 70%),
    radial-gradient(70% 40% at 60% 108%, rgba(200, 70, 10, .22), transparent 70%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(60% 36% at 18% -4%, rgba(255, 150, 40, .32), transparent 70%),
    radial-gradient(50% 32% at 100% 26%, rgba(255, 190, 90, .22), transparent 70%),
    radial-gradient(70% 40% at 60% 108%, rgba(230, 120, 30, .22), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(3%, 2%, 0) rotate(6deg) scale(1.08); } 100% { transform: translate3d(-1%, 4%, 0) rotate(-5deg) scale(1.02); } }

/* Spatial glass surfaces. --mx/--my are set by a pointer listener: the light follows the finger. */
.tile, .fav, .ins, .sum, .oil > div, .jstats > div, .save-card, .cta, .jform {
  -webkit-backdrop-filter: blur(3px) saturate(1.3); backdrop-filter: blur(3px) saturate(1.3);
}
.tile, .fav, .ins, .sum, .oil > div, .jstats > div, .save-card, .cta, .jform {
  background-image: radial-gradient(190px circle at var(--mx, -300px) var(--my, -300px), var(--spot), transparent 70%), var(--glass);
  border-color: transparent; box-shadow: var(--rim), var(--shadow);
}
.fuel, .chip, .seg, .search input, .picker select, .more, .icon-btn, .install, .detail { background-image: var(--glass); box-shadow: var(--rim); border-color: transparent; }
.chip[aria-pressed="true"] { background: var(--ink); background-image: none; }
.fuel[aria-pressed="true"] {
  background-image: linear-gradient(135deg, #ffd166, #ffb02e 55%, #ff8a3d); border-color: transparent; color: #1a1204;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 8px 28px -8px var(--amber);
}
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, #ffd166, #ffb02e); color: #1a1204; }
.seg button + button { border-left-color: var(--line); }
.icon-btn.on { color: var(--teal); box-shadow: var(--rim), 0 0 18px -4px var(--teal); }
.field input:focus, .search input:focus, .picker select:focus { outline: 0; box-shadow: var(--rim), 0 0 0 2px var(--violet), 0 0 24px -6px var(--violet); }
option { background: #14100a; color: #f8f1e6; }

.top {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 42%, transparent));
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, .8);
}
.brand { letter-spacing: .04em; text-transform: uppercase; font-size: 19px; }
.brand span { background: linear-gradient(100deg, #ffd166, var(--amber) 45%, #ff6a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hue { to { background-position: 100% 0; } }
.beta { background: linear-gradient(100deg, var(--violet), var(--teal)); color: #05060a; animation: none; }

/* Board tiles */
.tile { border-radius: 22px; min-height: 126px; }
.tile::before { height: 2px; background: linear-gradient(90deg, transparent, var(--c, var(--line)), transparent); opacity: 1; }
.tile .tp { filter: none; }
.tile.sel {
  background-image: radial-gradient(190px circle at var(--mx, -300px) var(--my, -300px), var(--spot), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--amber) 26%, transparent), rgba(255, 255, 255, .03));
  box-shadow: var(--rim), 0 0 0 1.5px color-mix(in srgb, var(--amber) 80%, transparent), 0 16px 44px -14px var(--amber);
}
.tile .ts { display: block; margin-top: 2px; }
.spark { width: 100%; height: 20px; display: block; overflow: visible; }
.spark .ln { filter: drop-shadow(0 0 4px currentColor); }

/* The pylon becomes a holo-card with a travelling edge light. */
.pylon {
  border: 0; border-radius: 28px;
  background: radial-gradient(460px 220px at 88% -40px, rgba(255, 176, 46, .22), transparent 70%), radial-gradient(360px 200px at -10% 110%, rgba(255, 122, 26, .22), transparent 70%), rgba(10, 7, 4, .92);
  -webkit-backdrop-filter: blur(3px) saturate(1.3); backdrop-filter: blur(3px) saturate(1.3);
  box-shadow: var(--rim), 0 30px 70px -30px rgba(255, 176, 46, .45), 0 24px 50px -24px rgba(0, 0, 0, .9);
}
.pylon::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--teal) 68%, var(--violet) 80%, var(--amber) 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  --ang: 200deg;
}
@keyframes spinAng { to { --ang: 360deg; } }
.pylon-price { filter: none; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; color: #ffb52e; text-shadow: none; }
.btn { background: linear-gradient(135deg, #ffd166, var(--pylon-ink) 55%, #ff8a3d); box-shadow: 0 10px 26px -10px var(--amber), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.mpop .btn { background: linear-gradient(135deg, #ffd166, #ffb02e 55%, #ff8a3d); }
.mpop .btn.ghost { background: rgba(255, 255, 255, .06); }
.btn-install { background: linear-gradient(135deg, #ffd166, #ffb02e); }
.tag { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }

/* Lists */
.list { border-top-color: var(--line); }
.row { border-bottom-color: var(--line); transition: background .25s; }
.row:active { background: rgba(255, 255, 255, .05); }
.row.heat { border-left-color: transparent; background: linear-gradient(90deg, hsl(var(--h) 80% 55% / .16), transparent 38%); box-shadow: inset 3px 0 0 hsl(var(--h) 80% 58%); }
.row.heat .hp { text-shadow: none; filter: none; }
h2 { letter-spacing: .02em; }
h2::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), var(--violet)); }
.sheet h2::after, .empty h2::after { display: none; }
.liquid { background: repeating-linear-gradient(115deg, var(--teal) 0 10px, color-mix(in srgb, var(--teal) 70%, #fff) 10px 20px); box-shadow: 0 0 16px -2px var(--teal); }
.gauge { background: var(--panel); border-color: transparent; box-shadow: var(--rim); }
.fill { box-shadow: 0 0 14px -2px currentColor; }
.track { background: rgba(255, 190, 110, .1); }
:root[data-theme="light"] .track { background: rgba(30, 36, 70, .09); }

/* Floating capsule navigation */
.bnav {
  grid-template-columns: repeat(4, 1fr); width: min(430px, calc(100% - 24px)); border-radius: 28px; padding: 6px;
  background: linear-gradient(155deg, rgba(255, 200, 130, .14), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 0; box-shadow: var(--rim), 0 22px 50px -14px rgba(0, 0, 0, .75);
}
:root[data-theme="light"] .bnav { background: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6)); }
.bnav .ind {
  top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 22px;
  background: linear-gradient(135deg, #ffd166, #ffb02e 60%, #ff8a3d); box-shadow: 0 8px 26px -4px var(--amber), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.bnav button { min-height: 52px; border-radius: 22px; }
.bnav button[aria-current="page"] { color: #1a1204; }

/* Settings sheet and map popup */
.sheet { background: color-mix(in srgb, var(--bg) 94%, #2a1a08); border: 0; box-shadow: var(--rim), 0 -30px 80px -20px rgba(0, 0, 0, .8); }
:root[data-theme="light"] .sheet { background: #f6f7fc; }
.scrim { background: rgba(3, 4, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mapbox { border: 0; border-radius: 28px; box-shadow: var(--rim), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.mpop {
  background: linear-gradient(155deg, rgba(20, 23, 36, .86), rgba(12, 14, 22, .8)); border: 0; border-radius: 24px; color: #f2f4fa;
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: var(--rim), 0 20px 50px rgba(0, 0, 0, .6);
  --ink: #f8f1e6; --mute: #a4adc2; --line: rgba(255, 255, 255, .14); --amber: #ffb02e; --good: #4ff0a0;
}
:root[data-theme="light"] .mpop { background: linear-gradient(155deg, rgba(255, 255, 255, .94), rgba(244, 246, 253, .86)); color: #0f1220; --ink: #1a1208; --mute: #6d5e48; --line: rgba(30, 36, 70, .14); --amber: #b36200; --good: #11864f; }
.mm-ctl button { border: 0; background-image: var(--glass); background-color: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: var(--rim), 0 8px 20px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mm-ctl.left { position: absolute; left: 10px; top: 10px; z-index: 5; }
.mm-ctl button.on { color: var(--teal); }
.pin { background: rgba(10, 12, 20, .88); box-shadow: 0 0 14px -2px hsl(var(--h) 90% 55% / .7), 0 4px 12px rgba(0, 0, 0, .5); }
.mk.sel .pin { box-shadow: 0 0 0 3px var(--amber), 0 0 26px 2px var(--amber); }
/* Heat map: soft additive blobs instead of pins */
.mk .anchor:has(.blob) { transform: translate(-50%, -50%); }
.blob { display: block; width: 84px; height: 84px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; animation: blobIn .8s var(--ease) backwards;
  background: radial-gradient(circle, hsl(var(--h) 92% 56% / .85) 0, hsl(var(--h) 92% 56% / .42) 32%, transparent 68%); }
:root[data-theme="light"] .blob { mix-blend-mode: multiply; opacity: .7; }
@keyframes blobIn { from { transform: scale(.2); opacity: 0; } }

/* Insights tab */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ins { position: relative; border-radius: 22px; padding: 14px 14px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.ins:nth-child(1) { grid-column: 1 / -1; background-color: rgba(255, 176, 46, .06); }
.ins small { color: var(--mute); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ins b { font: 700 40px/1.05 var(--num); display: flex; align-items: baseline; gap: 6px; filter: none; }
.ins:nth-child(1) b { font-size: 54px; color: var(--amber); }
.ins b em { font: 600 14px var(--body); font-style: normal; color: var(--mute); filter: none; }
.ins b.chain-b { font-size: 24px; gap: 8px; align-items: center; }
.ins > span { color: var(--mute); font-size: 13px; }
.cta { padding: 16px; border-radius: 22px; margin-top: 8px; }
.cta p { margin: 0 0 12px; color: var(--mute); }
.cta .btn { width: 100%; }
.verdict { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 3px 0 0 var(--mute); }
.verdict.good { box-shadow: inset 3px 0 0 var(--good); }
.verdict.bad { box-shadow: inset 3px 0 0 var(--amber); }
.chart { overflow: visible; }
.swarm text, .scatter text, .linec text, .cols text { font-size: 10px; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.chart .lane { stroke: var(--line); stroke-width: 1; }
.chart .ln-label { fill: var(--ink); font-size: 11px; font-weight: 600; }
.chart .median { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .median-t { fill: var(--amber); font-weight: 600; }
.chart .cnt { fill: #08090f; font: 700 9px var(--num); pointer-events: none; }
.chart .front { stroke: var(--teal); stroke-width: 2.2; filter: drop-shadow(0 0 5px var(--teal)); }
.chart .band { fill: rgba(255, 196, 90, .08); stroke: var(--teal); stroke-opacity: .35; stroke-dasharray: 3 3; }
.chart .axis-t { fill: var(--mute); font-size: 9px; }
.chart .donut-bg { stroke: var(--line); }
.chart .d-c { fill: var(--ink); font: 700 19px var(--num); }
.chart .d-s { fill: var(--mute); font-size: 8px; }
.chart .dseg { filter: drop-shadow(0 0 6px currentColor); stroke-linecap: butt; }
.chart .sd { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease); }
.chart .sd:hover { transform: scale(1.35); }
.chart .sd circle { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .25)); }
.chart .best-ring { fill: none; stroke: var(--amber); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ringSvg 1.8s ease-out infinite; }
@keyframes ringSvg { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.chart .col-b { cursor: pointer; }
.chart .col-b .val { fill: var(--ink); font: 700 10px var(--num); }
.chart .col-b rect { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--amber) 50%, transparent)); transform-box: fill-box; transform-origin: bottom; }
.chartwrap { position: relative; }
.tip { position: absolute; top: 0; transform: translate(-50%, -105%); z-index: 3; pointer-events: none; padding: 7px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap;
  background: rgba(14, 16, 26, .9); color: #f2f4fa; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--rim), 0 10px 26px rgba(0, 0, 0, .5); }
.tip[hidden] { display: none; }
.tip b { display: block; font: 700 12px var(--num); margin-bottom: 2px; color: var(--amber); }
.tip span { display: flex; align-items: center; gap: 6px; }
.tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cross line { stroke: var(--mute); stroke-dasharray: 3 3; }
.chart-hint { margin-top: 4px; font-size: 12px; }
.bar.area { grid-template-columns: 128px 1fr 58px; }
.bar.area .a-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar.area .track { position: relative; height: 14px; }
.avg-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 6px var(--ink); }
.donut-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.donut { width: 100%; height: auto; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 6px 8px; align-items: center; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.legend-list b { font: 700 14px var(--num); white-space: nowrap; }
.legend-list small { color: var(--mute); min-width: 32px; text-align: right; }
.save-card { border-radius: 24px; padding: 18px; }
.save-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.save-big .roll, .save-big em { font: 700 64px/1 var(--num); font-style: normal; color: var(--good); filter: none; }
.save-big small { flex-basis: 100%; color: var(--mute); font-size: 13px; }
.sv-bars { display: grid; gap: 10px; margin: 14px 0; }
.sv-bars > div { display: grid; grid-template-columns: 112px 1fr 58px; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); }
.sv-bars b { font: 700 15px var(--num); color: var(--ink); text-align: right; }
.slider span { display: block; margin-bottom: 8px; color: var(--mute); font-size: 13px; }
.slider b { color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--amber); height: 32px; }
.enter .ins { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.enter .sd { animation: popIn .5s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(var(--k, 0) * 18ms + 350ms); }
.enter .dseg { animation: dsegIn 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + 300ms); }
@keyframes dsegIn { from { stroke-dasharray: 0 100; } }
.enter .col-b rect { animation: growY .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
@keyframes growY { from { transform: scaleY(0); } }
.enter .col-b .val { animation: fadeIn .6s ease both; animation-delay: calc(var(--i, 0) * 80ms + 800ms); }
.enter .front { animation: draw 1.4s ease-out .7s both; stroke-dasharray: 1; }
.enter .save-card, .enter .cta, .enter .donut-row, .enter .verdict { animation: rowIn .6s var(--ease) both; animation-delay: .3s; }
.meter { margin: 8px 0 2px; }
.m-track { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bad), var(--amber), var(--good)); opacity: .9; box-shadow: 0 0 14px -4px var(--good); }
.m-fill { display: none; }
.m-dot { position: absolute; top: 50%; left: var(--w); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--good), 0 0 14px var(--good); animation: popIn .5s cubic-bezier(.3, 1.8, .5, 1) .8s both; }
.meter small { display: block; margin-top: 6px; color: var(--mute); font-size: 12px; }
@keyframes growX { from { width: 0; } }
@media (min-width: 900px) {
  .wrap.v-stats { max-width: 720px; }
}
@media (max-width: 380px) {
  .donut-row { grid-template-columns: 1fr; }
  .ins:nth-child(1) b { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

:root[data-theme="light"] .pylon { background: radial-gradient(460px 220px at 88% -40px, rgba(255, 176, 46, .22), transparent 70%), radial-gradient(360px 200px at -10% 110%, rgba(255, 122, 26, .26), transparent 70%), rgba(10, 11, 20, .95); box-shadow: var(--rim), 0 30px 60px -30px rgba(255, 140, 40, .5); }

/* ---- Motion layer: spring easing, floating glass orbs, 3D tilt, scroll reveal, view transitions ---- */
:root { --spring: cubic-bezier(.34, 1.56, .5, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.3%, 0.987 64.7%, 1.002 72.3%, 1.006 79%, 1 100%); }
}
.bnav .ind { transition: transform .75s var(--spring); }
button:active:not(:disabled), .btn:active { transition-duration: .08s; }
.fuel, .chip, .tile, .icon-btn, .btn { transition-timing-function: var(--spring); transition-duration: .35s; }

.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --fog: #1c1108; }
:root[data-theme="light"] .scene { --fog: #efdcc2; }
.haze { position: absolute; left: 0; right: 0; bottom: 0; height: 58vh; background: radial-gradient(70% 60% at 74% 100%, rgba(255, 140, 60, .28), transparent 70%), linear-gradient(0deg, rgba(255, 122, 26, .26), rgba(255, 122, 26, .08) 55%, transparent); }
:root[data-theme="light"] .haze { background: radial-gradient(70% 60% at 74% 100%, rgba(255, 160, 80, .36), transparent 70%), linear-gradient(0deg, rgba(255, 122, 26, .3), transparent); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 66px; background: linear-gradient(180deg, rgba(10, 7, 4, .93), #070503 40%); }
:root[data-theme="light"] .ground { background: linear-gradient(180deg, rgba(205, 160, 105, .5), rgb(216, 186, 146) 45%); }
.refinery { position: absolute; left: 50%; bottom: 58px; width: min(max(240%, 1000px), 1500px); height: auto; overflow: visible; translate: -50% 0; }
.refinery .l-far { transform: translate(calc(var(--px, 0) * -3px), calc(var(--sy, 0) * .01px)); }
.refinery .l-mid { transform: translate(calc(var(--px, 0) * -7px), calc(var(--sy, 0) * .022px)); }
.refinery .l-near { transform: translate(calc(var(--px, 0) * -13px), calc(var(--sy, 0) * .04px)); }
.refinery .rf { fill: var(--c); }
.refinery .rs { stroke: var(--c); stroke-width: .8; stroke-linejoin: round; }
.refinery .flarestack rect { fill: var(--c); }
.refinery .l-far { --c: rgba(190, 110, 40, .2); }
.refinery .l-mid { --c: rgba(125, 62, 22, .46); }
.refinery .l-near { --c: rgba(8, 6, 4, .93); }
:root[data-theme="light"] .refinery .l-far { --c: rgba(200, 135, 70, .34); }
:root[data-theme="light"] .refinery .l-mid { --c: rgba(150, 88, 38, .5); }
:root[data-theme="light"] .refinery .l-near { --c: rgba(70, 40, 14, .62); }
.refinery .warn { fill: #ff5a4a; opacity: .5; }
.refinery .lt { fill: #ffc766; opacity: .45; }
.refinery .flare-glow { transform-box: fill-box; transform-origin: center; animation: flareGlow 7s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1, .94); opacity: .88; } to { transform: scale(.96, 1.06); opacity: 1; } }
@keyframes flareGlow { from { opacity: .7; } to { opacity: .95; } }
@keyframes blinkRed { 0%, 100% { opacity: .1; } 50% { opacity: .85; } }
@keyframes twinkle { from { opacity: .15; } to { opacity: .7; } }
/* Oil drops at different depths: farther = smaller, slower parallax, softer focus. */
.drop {
  position: absolute; width: var(--w); height: auto; overflow: visible;
  filter: blur(var(--b));
  translate: calc(var(--px, 0) * var(--fx) * 1px) calc(var(--sy, 0) * var(--fy) * -1px + var(--py, 0) * var(--fx) * .5px);
  rotate: var(--r);
  transform-origin: 50% 8%;
  will-change: translate;
}
.drop.far { opacity: .75; }
.drop.near { opacity: .85; }
:root[data-theme="light"] .drop { opacity: .85; filter: blur(var(--b)); }
@keyframes hang { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

.pylon, .save-card { transition: transform .9s var(--spring); }
.pylon.tilting, .save-card.tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .12s ease-out; }
.fav.tilting { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Sections wait (paused at their first frame) until they scroll into view */
.rv:not(.in) *, .rv:not(.in) *::before, .rv:not(.in) *::after { animation-play-state: paused !important; }

/* Page transitions between tabs */
.bnav { view-transition-name: bnav; }
.top { view-transition-name: top; }
::view-transition-group(bnav), ::view-transition-group(top) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
html[data-vt="fwd"]::view-transition-old(root) { animation-name: vtOutL; }
html[data-vt="fwd"]::view-transition-new(root) { animation-name: vtInR; }
html[data-vt="back"]::view-transition-old(root) { animation-name: vtOutR; }
html[data-vt="back"]::view-transition-new(root) { animation-name: vtInL; }
@keyframes vtOutL { to { opacity: 0; transform: translateX(-48px) scale(.97); filter: blur(8px); } }
@keyframes vtInR { from { opacity: 0; transform: translateX(48px) scale(.97); filter: blur(8px); } }
@keyframes vtOutR { to { opacity: 0; transform: translateX(48px) scale(.97); filter: blur(8px); } }
@keyframes vtInL { from { opacity: 0; transform: translateX(-48px) scale(.97); filter: blur(8px); } }

.sort { margin: 8px 0 4px; }
.retry { margin-top: 14px; width: 100%; }

/* Numerals stay razor sharp: no filters or transforms resting on them */
.pylon, .tile, .row, .fav, .ins, .sum, .save-card { text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; }
.pylon .dg, .tile .dg, .ins .dg, .save-big .dg { text-shadow: none; }

/* ===== map: clusters and deal glow ===== */
.pin { box-shadow: 0 0 calc(5px + var(--g, 0) * 20px) calc(var(--g, 0) * 3px) hsl(var(--h) 90% 55% / calc(.28 + var(--g, 0) * .5)), 0 4px 12px rgba(0, 0, 0, .5); }
.mk .anchor { position: relative; }
.cl { position: absolute; left: calc(100% - 3px); top: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font: 800 12px/1 var(--num); color: #1a1208; background: linear-gradient(135deg, #ffd166, #ff9a2e); box-shadow: 0 2px 8px rgba(0, 0, 0, .55), 0 0 0 2px rgba(5, 4, 3, .85); z-index: 2; transition: transform .2s var(--spring, ease); }
.cl:active { transform: scale(.9); }
.mk.sel .pin { box-shadow: 0 0 0 3px var(--amber), 0 0 26px 2px var(--amber); }
.cl::after { content: ""; position: absolute; inset: -12px; }
.mv-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mv-row .seg { flex: none; }
.mapbox.short { height: clamp(260px, 40dvh, 420px); }
.ra-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 13px/1 inherit; cursor: pointer; }
.ra-btn svg { width: 16px; height: 16px; }

/* ===== compare, reliability ===== */
.cmp-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--spring, ease), color .2s, background .2s; }
.cmp-btn[aria-pressed="true"] { color: #1a1208; background: linear-gradient(135deg, #ffd166, #ff9a2e); border-color: transparent; }
.cmp-btn:active { transform: scale(.92); }
.cmp-btn svg { width: 20px; height: 20px; }
.mp-head .cmp-btn { width: 36px; height: 36px; }
.cmpbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 29; display: flex; gap: 8px; animation: popUp .4s var(--spring, ease); }
.cmpbar .go, .cmpbar .x { height: 46px; border: 0; border-radius: 999px; font: 700 15px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7); }
.cmpbar .go { padding: 0 20px; color: #1a1208; background: linear-gradient(135deg, #ffd166, #ff9a2e); }
.cmpbar .go:disabled { opacity: .6; }
.cmpbar .go svg { width: 18px; height: 18px; }
.cmpbar .x { width: 46px; justify-content: center; color: var(--ink); background: color-mix(in srgb, var(--bg) 85%, #2a1a08); border: 1px solid var(--line); }
.cmpbar .x svg { width: 18px; height: 18px; }
.cmp-grid { display: grid; grid-template-columns: 62px repeat(var(--n), minmax(0, 1fr)); gap: 8px 8px; align-items: center; margin-top: 8px; }
.cmp-grid .cc { min-width: 0; font-size: 15px; }
.cmp-grid .cc.head { display: flex; flex-direction: column; gap: 3px; align-self: start; }
.cmp-grid .cc.head span { color: var(--mute); font-size: 12px; line-height: 1.25; }
.cmp-grid .cl-lbl { color: var(--mute); font-size: 12px; }
.cmp-grid .cc small { display: block; color: var(--mute); font-size: 11px; }
.cmp-grid .cp { font: 800 22px/1 var(--num); font-variant-numeric: tabular-nums; }
.cmp-grid .cp.best { color: var(--amber); }
.cmp-grid .tag, .cmp-grid .vsavg { font-size: 12px; }
.cmp-clear { margin-top: 16px; width: 100%; }
.sheet.cmp h3 { margin: 18px 0 0; font-size: 14px; color: var(--mute); }
.rel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.rel .bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.rel .bars i { width: 4px; border-radius: 1px; background: rgba(255, 255, 255, .18); }
.rel .bars i:nth-child(1) { height: 6px; } .rel .bars i:nth-child(2) { height: 9px; } .rel .bars i:nth-child(3) { height: 12px; }
.rel.l1 .bars i:nth-child(-n+1), .rel.l2 .bars i:nth-child(-n+2), .rel.l3 .bars i { background: var(--amber); }
.rel.l0 { color: #ff9b6a; }
.mp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 8px; font-size: 12px; }
.vsavg { font-size: 12px; font-weight: 700; color: var(--mute); }
.vsavg.down { color: var(--good, #4ade80); } .vsavg.up { color: #ff8a6a; }
.mp-meta .upd { color: var(--mute); }
.cmp-grid .rel { flex-direction: column; align-items: flex-start; gap: 3px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; font: 700 12px/1 inherit; color: #1a1208; background: linear-gradient(135deg, #ffd166, #ff9a2e); cursor: pointer; margin-left: auto; }
.cmp-chip svg { width: 15px; height: 15px; }
.wn { display: inline-flex; align-items: stretch; font: 600 13px/1 var(--num); font-variant-numeric: tabular-nums; border-radius: 6px; overflow: hidden; margin-right: 6px; vertical-align: middle; }
.wn s { padding: 5px 7px; background: rgba(255, 255, 255, .1); color: var(--mute); }
.wn b { padding: 5px 8px; background: #f8f1e6; color: #1a1208; font-weight: 800; }

/* ===== sparks and calm pulse ===== */
.sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparks i { position: absolute; bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #ffe2a0 0%, #ffb02e 55%, transparent 72%); opacity: 0; will-change: transform, opacity; animation: spark var(--t) linear var(--dl) infinite; }
@keyframes spark { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: var(--o); } 80% { opacity: calc(var(--o) * .6); } 100% { transform: translate3d(var(--dx), -105vh, 0); opacity: 0; } }
.tile.sel { position: relative; }
.tile.sel::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 22px 2px rgba(255, 176, 46, .55); opacity: .25; animation: breathe 4.8s ease-in-out infinite; }
.mk.sel .pin::before { content: ""; position: absolute; inset: -9px; border-radius: 999px; border: 2px solid rgba(255, 176, 46, .8); animation: ring 3.4s ease-out infinite; pointer-events: none; }
.mk.best .pin::before { animation-duration: 3.4s; }
@keyframes breathe { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }

/* nearest station: a soft sweep of the row's colour from the left strip to the right */
.row.near { position: relative; overflow: hidden; }
.row.near::after { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; width: 200%; pointer-events: none; background: repeating-linear-gradient(90deg, hsl(var(--h) 85% 55% / 0) 0%, hsl(var(--h) 88% 58% / .28) 13%, hsl(var(--h) 90% 62% / .12) 24%, hsl(var(--h) 85% 55% / 0) 38%, hsl(var(--h) 85% 55% / 0) 50%); animation: nearSweep 3.6s linear infinite; will-change: transform; }
/* the pattern repeats every row-width, so the glow flows left to right without ever stopping */
@keyframes nearSweep { from { transform: translateX(0); } to { transform: translateX(50%); } }
.neartag { color: hsl(var(--h) 80% 62%); font-weight: 700; }

/* living flare: a ragged industrial flame leaning in the wind, tongues moving out of phase, drifting smoke */
.refinery .fl { transform-box: fill-box; transform-origin: 50% 100%; }
.refinery .flm { transform-origin: 741px 82px; animation: flSway 4.3s ease-in-out infinite alternate, flRoar 1.7s ease-in-out infinite; }
@keyframes flSway { from { rotate: 3deg; } to { rotate: 11deg; } }
@keyframes flRoar { 0%, 100% { scale: 1 1; } 22% { scale: .93 1.1; } 47% { scale: 1.07 .94; } 71% { scale: .96 1.15; } }
.refinery .body { animation: flBody 1.1s ease-in-out infinite alternate; }
.refinery .t1 { animation: flT1 .8s ease-in-out infinite alternate; }
.refinery .t2 { animation: flT2 .62s ease-in-out infinite alternate; transform-origin: 0% 100%; }
.refinery .t3 { animation: flT3 .71s ease-in-out infinite alternate; transform-origin: 100% 100%; }
.refinery .t4 { animation: flT4 .55s ease-in-out infinite alternate; transform-origin: 0% 100%; }
.refinery .core { animation: flCore .5s ease-in-out infinite alternate; }
@keyframes flBody { 0% { transform: scale(1, 1) skewX(0); } 40% { transform: scale(1.06, .92) skewX(-5deg); } 100% { transform: scale(.94, 1.1) skewX(5deg); } }
@keyframes flT1 { 0% { transform: scale(1, 1) skewX(3deg); } 50% { transform: scale(.8, 1.22) skewX(-6deg); } 100% { transform: scale(1.1, .85) skewX(6deg); } }
@keyframes flT2 { from { transform: scale(1, 1) rotate(0); } to { transform: scale(.75, 1.3) rotate(10deg); } }
@keyframes flT3 { from { transform: scale(1, 1) rotate(0); } to { transform: scale(1.2, .7) rotate(-9deg); } }
@keyframes flT4 { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.7, 1.15) rotate(8deg); } }
@keyframes flCore { from { transform: scale(1, 1); } to { transform: scale(.88, 1.14); } }
.refinery .sm { fill: #120a05; opacity: 0; transform-box: fill-box; transform-origin: center; }
.refinery .s1 { animation: smoke 7s ease-out infinite; }
.refinery .s2 { animation: smoke 9s ease-out 2.5s infinite; }
.refinery .s3 { animation: smoke 6s ease-out 4.2s infinite; }
@keyframes smoke { 0% { transform: translate(0, 10px) scale(.5); opacity: 0; } 18% { opacity: .38; } 100% { transform: translate(20px, -34px) scale(2.1); opacity: 0; } }
.refinery .em { fill: #ffc766; opacity: 0; transform-box: fill-box; }
.refinery .e1 { animation: ember 4.1s ease-out infinite; }
.refinery .e2 { animation: ember 5.3s ease-out 1.4s infinite; }
.refinery .e3 { animation: ember 3.6s ease-out 2.3s infinite; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .85; } 100% { transform: translate(var(--ex, 6px), -34px); opacity: 0; } }
.refinery .e2 { --ex: -7px; } .refinery .e3 { --ex: 3px; }
.refinery .flare-glow { animation: flareGlow 2.6s ease-in-out infinite alternate; }
@keyframes flareGlow { 0% { opacity: .65; } 45% { opacity: .95; } 100% { opacity: .75; } }

/* live canvas flame replaces the SVG fallback tongues */
.flame-cv { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.live-flame .flm, .live-flame .smoke, .live-flame .em { display: none; }

/* cards sit in front: solid enough that the drops behind never show through the numbers */
.tile, .fav, .ins, .sum, .oil > div, .jstats > div, .save-card, .cta, .jform { background-color: rgba(14, 10, 6, .92); box-shadow: var(--rim), 0 20px 36px -18px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 190, 110, .05); }
:root[data-theme="light"] .tile, :root[data-theme="light"] .fav, :root[data-theme="light"] .ins, :root[data-theme="light"] .sum, :root[data-theme="light"] .oil > div, :root[data-theme="light"] .jstats > div, :root[data-theme="light"] .save-card, :root[data-theme="light"] .cta, :root[data-theme="light"] .jform { background-color: rgba(255, 250, 241, .93); }
/* drops sit far behind */
.drop.far { opacity: .5; }
.drop.near { opacity: .6; }
.drop.mid { opacity: .55; }
/* every row keeps the long colour strip on the left; estimates get a softer one */
.row.est { box-shadow: inset 3px 0 0 hsl(var(--h) 70% 52% / .5); background: linear-gradient(90deg, hsl(var(--h) 70% 50% / .07), transparent 32%); }

/* crisp green: a bright strip with a short fade, not a wide haze */
.row.heat { background: linear-gradient(90deg, hsl(var(--h) 72% 42% / .3), hsl(var(--h) 72% 42% / .1) 16%, transparent 30%); }
.row.est { background: linear-gradient(90deg, hsl(var(--h) 66% 40% / .2), hsl(var(--h) 66% 40% / .06) 14%, transparent 26%); }
.row.near::after { background: repeating-linear-gradient(90deg, hsl(var(--h) 85% 55% / 0) 0%, hsl(var(--h) 88% 58% / .3) 7%, hsl(var(--h) 90% 62% / .12) 13%, hsl(var(--h) 85% 55% / 0) 21%, hsl(var(--h) 85% 55% / 0) 50%); }

/* the left strip is equally bright on every row, estimates included */
.row.heat, .row.est { box-shadow: inset 4px 0 0 hsl(var(--h) 85% 58%), inset 14px 0 14px -10px hsl(var(--h) 85% 55% / .55); }

/* fuel badge: tells you which fuel the prices below are for, so you do not lose it while scrolling */
.fbadge {
  --fc: #4da3ff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 28px; height: 20px; padding: 0 6px; border-radius: 7px;
  font: 700 11px/1 var(--num); letter-spacing: .04em; white-space: nowrap;
  color: var(--fc);
  background: color-mix(in srgb, var(--fc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--fc) 52%, transparent);
}
.fbadge[data-f="95"] { --fc: #4da3ff; }
.fbadge[data-f="98"] { --fc: #b183ff; }
.fbadge[data-f="diesel"] { --fc: #f2b72f; }
.fbadge[data-f="dplus"] { --fc: #ff9a5c; }
.fbadge[data-f="lpg"] { --fc: #2dd4bf; }
.fbadge[data-f="cng"] { --fc: #8bd450; }
:root[data-theme="light"] .fbadge { color: color-mix(in srgb, var(--fc) 62%, #000); }
.rp .pline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
h2 .fbadge { height: 22px; font-size: 12px; margin-left: 10px; vertical-align: middle; }
