/* Gas Money — a highway gas station at night. Asphalt page, canopy light, LED price sign, fuel gauges.
   Boldness lives in the sign and the gauges; everything else stays clean and dark. */
:root {
  --asphalt: #0E0F12; --panel: #17191E; --panel-2: #1C1F25; --line: #2A2D35; --line-2: #353944;
  --text: #F1F2F4; --muted: #8D939E; --dim: #5C626D;
  --amber: #FFB21A; --amber-ink: #1A1200; --amber-dim: #3A2A0A; --amber-ghost: #241B08;
  --green: #2ED47A; --red: #FF6B5E; --canopy: #FFFFFF;
  --radius: 12px; --pill: 999px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--asphalt); color: var(--text); font: 400 15px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
h1, h2, h3, .label { font-family: var(--head); text-transform: uppercase; letter-spacing: .01em; margin: 0; line-height: 1; }
h2 { font-weight: 800; font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.label { font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 15px; height: 15px; flex: none; }

/* ---- buttons, chips ---------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .2s; }
.btn:hover { border-color: #4a4f5c; background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 0 rgba(255, 178, 26, 0); }
.btn.amber:hover { background: #ffbf3f; border-color: #ffbf3f; box-shadow: 0 0 24px rgba(255, 178, 26, .25); }
.btn.ghost { background: transparent; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--panel); font: 500 13px/1 var(--mono); color: var(--text); white-space: nowrap; max-width: 100%; }
.chip .k { font: 700 12px/1 var(--head); letter-spacing: .12em; color: var(--muted); }
.chip button, .chip a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.chip button:hover, .chip a:hover { color: var(--amber); background: var(--panel-2); }
.chip .v { overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 212, 122, .6); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, .55); } 70% { box-shadow: 0 0 0 8px rgba(46, 212, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); } }

/* ---- header --------------------------------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(14, 15, 18, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 800 24px/1 var(--head); letter-spacing: .03em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.hdr .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr .ca { display: none; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.mnav { border-top: 1px solid var(--line); padding: 12px 16px 16px; display: grid; gap: 6px; }
.mnav a { padding: 12px 14px; border-radius: 10px; background: var(--panel); text-decoration: none; font-weight: 600; }
.mnav .chip { justify-self: start; }
@media (min-width: 900px) { .hdr .ca { display: inline-flex; } }
@media (max-width: 1179px) { .hdr .ca .v { display: none; } }
.lbl-short { display: none; }
@media (max-width: 760px) { .nav { display: none; } .hdr .right { gap: 8px; } .hdr .btn { padding: 0 14px; } }
@media (max-width: 520px) { .brand b { font-size: 21px; } .lbl-full { display: none; } .lbl-short { display: inline; } #connect { width: 44px; padding: 0; } #connect .clabel { display: none; } .hdr .wrap { gap: 10px; } }
@media (min-width: 761px) { .burger, .mnav { display: none !important; } }

/* simulated-run banner (functional test view, admin only) */
.simbar { padding: 8px 16px; text-align: center; font-size: 13px; line-height: 1.4; color: #1A1200; background: repeating-linear-gradient(135deg, #FFB21A 0 14px, #F5A400 14px 28px); }
.simbar b { font: 800 14px/1 var(--head); letter-spacing: .12em; margin-right: 6px; }
.simbar a { color: #1A1200; font-weight: 700; margin-left: 8px; }

/* ---- hero + the price sign -------------------------------------------------------------------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero .wrap { grid-template-columns: 1fr minmax(430px, 520px); gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-weight: 800; font-size: clamp(56px, 9vw, 112px); line-height: .88; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lede { color: #C9CDD4; font-size: clamp(16px, 1.7vw, 19px); max-width: 520px; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ca-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); font-size: 13px; }

.sign-zone { position: relative; display: grid; justify-items: center; padding-top: 18px; }
.canopy { position: absolute; inset: -140px -80px auto; height: 520px; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05) 45%, transparent 75%); filter: blur(6px); }
.canopy::before { content: ""; position: absolute; left: 50%; top: 92px; width: min(78%, 420px); height: 6px; transform: translateX(-50%); border-radius: 6px; background: var(--canopy); box-shadow: 0 0 40px 10px rgba(255, 255, 255, .35), 0 0 120px 30px rgba(255, 255, 255, .12); opacity: .9; }
.pylon { position: relative; width: 100%; max-width: 500px; }
.sign { position: relative; background: linear-gradient(#20232a, #16181d); border: 1px solid #383c47; border-radius: 16px; padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sign-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; border-bottom: 1px solid #2c2f38; margin-bottom: 8px; }
.sign-head svg { width: 26px; height: 26px; }
.sign-head b { font: 800 22px/1 var(--head); letter-spacing: .06em; }
.sign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.sign-row + .sign-row { border-top: 1px dashed #2a2d35; border-radius: 0; }
.plate { font: 700 clamp(15px, 2.1vw, 19px)/1.02 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #E6E8EC; }
.plate small { display: block; font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.led { display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; min-width: 262px; background: #07080a; border: 1px solid #262931; border-radius: 8px; padding: 9px 10px; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .8); }
.led .unit { width: 13px; font: 800 20px/1 var(--head); color: var(--amber); text-shadow: 0 0 10px rgba(255, 178, 26, .55); align-self: flex-start; margin-right: 2px; }
.led .suffix { font: 800 20px/1 var(--head); color: var(--amber); text-shadow: 0 0 10px rgba(255, 178, 26, .55); margin-left: 3px; width: 14px; }
.seg { position: relative; width: 25px; height: 44px; overflow: hidden; }
.seg.narrow { width: 7px; }
.seg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seg .on { fill: var(--amber); filter: drop-shadow(0 0 3px rgba(255, 178, 26, .85)) drop-shadow(0 0 9px rgba(255, 178, 26, .35)); }
.seg .off { fill: var(--amber-ghost); }
.seg svg.in { animation: rollIn .5s var(--ease) both; }
.seg svg.out { animation: rollOut .5s var(--ease) both; }
@keyframes rollIn { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rollOut { from { transform: translateY(0); } to { transform: translateY(-105%); } }
@media (max-width: 420px) { .led { min-width: 0; } .seg { width: 19px; height: 34px; } .seg.narrow { width: 6px; } .led .unit, .led .suffix { font-size: 16px; } .sign { padding: 10px; } .sign-row { padding: 9px 6px; gap: 8px; } }
.sign-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 10px 4px; color: var(--dim); font: 600 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.posts { display: flex; justify-content: space-between; padding: 0 22%; }
.posts i { width: 16px; height: 46px; background: linear-gradient(90deg, #1a1c21, #2a2d35 50%, #1a1c21); border-radius: 0 0 3px 3px; }

/* ---- sections ----------------------------------------------------------------------------------- */
.sec { padding: 56px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.sec-head p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel.pad { padding: 20px; }
@media (min-width: 720px) { .panel.pad { padding: 24px; } }
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state svg { width: 28px; height: 28px; color: var(--dim); }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 980px) { .grid-2 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; } }

/* board */
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font: 700 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 10px 14px; border-bottom: 1px solid #202329; white-space: nowrap; }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.board th.num { text-align: right; }
.board .rank { font: 800 18px/1 var(--head); color: var(--muted); width: 44px; }
.board tr.me td { background: rgba(255, 178, 26, .07); }
.board tr.me td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.board .you { margin-left: 8px; font: 700 11px/1 var(--head); letter-spacing: .12em; color: var(--amber-ink); background: var(--amber); padding: 3px 6px; border-radius: 4px; vertical-align: 1px; }
.board .w { font-family: var(--mono); font-size: 13px; }
.board .next { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .board .hide-sm { display: none; } .board td, .board th { padding-left: 10px; padding-right: 10px; } }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid #202329; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { margin-top: 7px; }
.feed b { font-weight: 600; }
.feed .w { font-family: var(--mono); font-size: 13px; color: var(--text); }
.feed time { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.feed li.new { animation: feedIn .6s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); background: rgba(46, 212, 122, .08); } to { opacity: 1; transform: none; } }

/* how it works */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; }
.step .n { font: 800 44px/1 var(--head); color: var(--amber); text-shadow: 0 0 18px rgba(255, 178, 26, .25); }
.step h3 { margin: 16px 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* where the fees go */
.split { display: grid; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } }
.bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); margin: 16px 0 14px; }
.bar i { display: block; height: 100%; }
.bar .h { background: var(--amber); box-shadow: 0 0 16px rgba(255, 178, 26, .4); }
.bar .o { background: #7e8794; }
.bar .b { background: var(--green); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .pct { margin-left: auto; font-family: var(--mono); }
.backed { font: 800 clamp(30px, 4vw, 40px)/1 var(--head); text-transform: uppercase; }
.backed .v { color: var(--green); }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #262931; padding-bottom: 8px; }
.facts li span:last-child { font-family: var(--mono); }
.facts a { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---- footer -------------------------------------------------------------------------------------- */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .fine { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }

/* ---- gauges ---------------------------------------------------------------------------------------- */
.gauge { display: block; overflow: visible; }
.gauge .track { fill: none; stroke: #262a32; stroke-linecap: round; }
.gauge .fill { fill: none; stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 0 6px rgba(255, 178, 26, .45)); }
.gauge .fill.full { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(46, 212, 122, .45)); }
.gauge .tick { stroke: #3a3f4a; stroke-linecap: round; }
.gauge .needle { transition: transform 1.1s var(--ease); transform-box: view-box; }
.gauge .needle line { stroke: #F1F2F4; stroke-linecap: round; }
.gauge .hub { fill: #F1F2F4; }
.gauge .ef { font: 800 16px/1 var(--head); fill: var(--muted); }
.mini-g { width: 40px; height: 24px; }

/* ---- toast, modal -------------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s var(--ease); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 107, 94, .5); }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 8, .72); backdrop-filter: blur(4px); }
.modal .box { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.modal h3 { margin-bottom: 12px; }
.modal .row { display: flex; gap: 10px; margin-top: 20px; }
.modal .row .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
